-
Posts
2,858 -
Joined
-
Last visited
-
Days Won
308
Content Type
Profiles
Forums
Gallery
Events
Blogs
Downloads
Articles
Media Demo
Posts posted by Joe Tauser
-
-
I would use more than one pointer, with state 2 in one path and 3 and 4 in another. You can kill the path by setting the pointer to zero when it's no longer needed.
I always have a separate subroutine called "Outputs" where all my coils go and they are turned on and off by the values in the pointers. There's no rule that you can't have more than one compare block controlling a coil.
What are your exit transitions for states 3, 4, 5, and 6?
Joe T.
-
Good job, Luis! Glad to help.
Joe T.
-
Hi Luis -
Thank you for attaching your program. I opened this using Visilogic 9.8.94.
For starters, your PLC ID and your Slave ID are the same. That's generally a no-no.
The PLC is the Master. You have a SCAN_EX block tied to Socket 2, which by default will also be port 502. This makes the PLC into a Slave as well as a Master. That's OK, but if you want both you need a second MODBUS IP CONFIG block using a different socket and a different port. Will this unit be a Slave to a SCADA system or something like that?
If Socket 3 disconnects you can just re-trigger the Connect block. You can also put a value into SI 110 for Socket 3. Take a look at the Help for "System Operands" for a detailed explanation.
Your MI 150 pointer is incremented by a 0.01 sec timer that doesn't take into account whether the Modbus function is busy (MB 32). That's probably too fast.
Your RHR blocks also don't consider whether the Modbus function is busy. It's like you're screaming at the "I don't care if the last function isn't done yet! Do this NOW!!"
Anyway, I hacked on it a bit. Program attached. Let us know how it goes.
Joe T.
-
Send a request to support@unitronics.com
Joe T.
-
System bit SB 8 turns on when the battery is low. I always put a small indicator on the screen for this.
If the settings will never change you can either check the power-up box or put them in a Data Table with the "Part of Project" checked. You could load them when the PLC powers up.
33 minutes ago, ZebioEE said:PS. is nonsense nowadays use volatile memory related battery condition
We have to deal with the cards we're dealt. The battery is rated for 7 years and they typically last for 10 years. Your client will have to change them from time to time.
Joe T.
-
I'm afraid that without the proper USB driver none of these solutions will work. The PLC has no idea what's connected to it in that little USB box.
You need to get something with a real RS232 port.
Joe T.
-
The Unistream does not have a driver for that USB converter; it's not like your PC where you can load one in.
Does the AutoSampler have any other communication ports? It may have been designed to only operate in a PC environment.
Joe T.
-
It's totally true.
You avoid it by not connecting your PLC to the Internet via port forwarding port 20256 on your router. Connect to the PLC via a VPN.
Joe T.
- 1
-
I've had a couple of customers hit by this. I've been in communication with Unitronics and the problem has understandably been promoted to top priority.
Their position right now is a VPN is the way to go.
Joe T.
-
Thank you for posting the diagram to clarify what you're doing.
Be Honest. Do Best!
I love that in the header of the USR manual.
You're PLC program looks correct.
I agree with Gabriel that a wired connection is better, but I have set up to Wi-Fi access points to do what you're doing. Just configure the two USRs to see each other and set their IP addresses to be in your network. Their connection should be transparent to the PLC and the SCADA system. It should work without any additional programming on your part.
200 meters is a fair range. You may need directional Wi-Fi antennas or a booster.
Joe T.
-
Remote Access is a Unitronics dedicated program to remotely replicate the displays of a Unitronics PLC. This is not what you're looking for to communicate with a SCADA package or another device..
You will set up the V1040 as a Modbus RTU serial slave for your SCADA software. Look at the Help and the Examples for Modbus Slave configuration and for Modbus Slave address tables. The entire PLC memory is available to the SCADA software via Modbus.
Joe T.
-
Yes, it is possible to do datalogging over wifi, but I wouldn't use the serial converter you called out as those types of devices typically need a driver on a PC somewhere to make them work.
Put an Ethernet card in the V1040.
I couldn't find anything on a Rish LM-12360. Please post a link to a manual on it if you want us to be helpful.
Joe T.
-
That is very good information.
Joe T.
-
OK, that network needs to be broken into about four separate simpler networks. The compiler is probably having a nervous breakdown.
What is the purpose of MB 100?
Normally just Init the sockets and run the configs just once at power-up. I think you're way over-complicating this.
Are you configuring two Modbus IP ports because you want to have a Master and a Slave in the same unit?
Joe T.
-
The default port for Modbus TCP is 502. You do have to initialize it in your PLC code.
Can you upload your PLC program so we can see what you've done?
Joe T.
-
Adding an RFID reader is relatively straightforward. The V570 has serial ports that can talk to it. Adding prox switches is also not a problem.
Interfacing with the customer's database will be really, really tricky. Database is a generic term, like "car". Each customer has their own database, and you'll have to get security access to it, know what type it is, what tables are in it, what the field names are, and so on.
This will probably be a generic solution with a custom program modification for each customer. You'll probably need to add a UniStream to work with the V570. The UniStream has much more horsepower in this department.
I would start by gathering specific database information from all the customers that are asking for this feature.
Joe T.
-
Not in a Jazz. There is a function in the Vision that may be helpful, but that's not your question.
The problem is you're short on pulses/rev to get good resolution. Does your physical setup allow you to get an encoder with a rubber wheel on it that can ride on the shaft or otherwise couple to it?
Joe T.
-
If you're getting one pulse per revolution on a 60 RPM shaft you really don't need a high speed input. You're getting a pulse every one second.
You can set up a self-resetting 0.01 second timer as a pulse generator and just count the timer pulses between the proximity sensor pulses. You could also add more magnets around the shaft to get more pulses per revolution. Use your imagination.
What kind of resolution are you looking for?
Joe T.
-
The screen on the V350 says "No Application". That means there is no program loaded into it. If you look at the Ethernet examples that install when you download and install Visilogic, you'll see that you need to configure the Ethernet port using a couple of function blocks in the program.
To initially communicate with the V350 you'll need a USB to Serial adapter with the Prolific chipset and a Unitronics serial cable. A Unitronics distributor can supply both of these, and they're not expensive.
Joe T.
-
You can connect the flowmeter directly to the -E1B high speed input. Since the outputs on your flowmeter are "Current Sinking" (translation - NPN), you'll need a pull-up resistor connected to 24V power to make them work. I recommend a 2.2K resistor.
Joe T.
-
Start by contacting Official Unitronics Support at support@unitronics.com.
If your screen is complex, I would start by moving some of the elements to another display and see if reducing the number of elements per screen improves performance.
Joe T.
- 1
-
If you're going through a WAN network there is probably some packet clogging going on and the socket is closing itself.
SI 101 is the packet timeout in units of 100 ms and defaults to a value of 2 (200 ms).
Try setting it to 10.
If that doesn't work, get an old-school Ethernet hub that re-broadcasts all traffic out all ports. If that's not available see if you can get a managed switch an map two of the ports together so you can observe the traffic between your SCADA software and the PLC.
Then download WireShark and learn how to use it. I ran into this problem a few years back trying to talk to a V350 using a pair of cellular modems. You can set up WireShark to only show port 502 transactions. WireShark timestamps everything to 1 millisecond accuracy. I found that by sniffing the packets between the Master and the Slave that the Modbus requests were getting through but the PLC closed the socket before answering sometimes. The delay was about 800 milliseconds in my case.
Gremlin problems like this require a deeper dive into troubleshooting.
Joe T.
-
If you could post links to the modules you're using and upload your PLC program we could be more helpful.
Joe T.
-
Only one action per Case ID is definable. You'd have to make a small function with what you want to do and call it.
Joe T.
sequence programming question
in Best Programming Practices
Posted
I sent a PM to brooksg44 asking further details and learned this question is based on a whitepaper describing converting Petri net to of three of the Five 61131-3 languages.
https://abcm.org.br/symposium-series/SSM_Vol5/Section_IV_Industrial_Informatics_Discrete_and_Hybrid_Systems/24333.pdf
For summary and illustration purposes, I took screenshots of relevant sections.
Here's the example process and description (page 6:
The I/O consists of three lamps, a button, three valves, three level switches, a motor, and a heater.
Nothing is really mentioned about the heater and temperature control loop. This is an academic exercise, so I'm going to assume that the heater is a frictionless device with the power of the sun that instantly brings the process to whatever setpoint temperature is specified. 😁
The file brooksg44 posted is a Grafcet diagram, which is a fine way to represent to the process. I brought his diagram into Visio and added some annotations to help with the State Machine program:
I only needed one pointer.
By putting the Outputs in their own subroutine, they are easily referenced from the state sequence logic. I did this example program in Visilogic 9.8.65, because that's still my favorite version and anyone should be able to open it. I also used a 7" Samba because those seem to be very popular these days.
I didn't spend much time on the graphics. If someone wants to make it pretty and upload a fancy version knock yourself out.
Joe T.
P. S. - Take a look at the LD program in that paper. Yow!
Tank Fill State Machine JT.vlp