Greg7683
Member
So if I want to see when the air valves open and close on a screen on the HMI is all that needs to be done is to address the bit with the address that open and close. It's a weintek HMI by the way.
The air valves have 2 solinoeds and some have one I would like to have it show up when the signal hits the solinoeds that makes the cylinder move out and when it is back in so yeah
When you display the state of the solenoid valve you are showing the world what you told the machine to do. When you display the state of a properly actuated limit switch you are showing the world what actually happened.
Okay, I believe what you are trying to do is display an animated cylinder based on the solenoid command.
Now we need to know what HMI/software you are using.
Limit switches and solenoid valves are physical devices on your machine. Solenoid valves are wired to PLC outputs. They are turned on and off by the PLC program. Limit switches are wired to PLC inputs. They tell the PLC about conditions on the machine.
Inside the PLC ladder logic program the state of a limit switch will be shown by either a NO (XIC) instruction or a NC (XIO) instruction. To make things even more confusing the limit switch itself can have NO and NC contacts. A NO instruction in ladder logic assigned to an input wired to a limit switch will show as TRUE when there is current flow at the input terminal and FALSE when there is no current flow.
You will use a bit lamp instruction set up to the address of the solenoid output. This will show, as posted, what the state should be.
An observation here is that you are not drawing the connections between devices in the program and the devices in the field. I suggest you spend some time with the prints and the program so that you can get a better grasp of what is happening. If possible, do this with the physical machine by tracing the circuit from the power to the limit switch and back. You may have to add proximity switches, limit switches, or photo eyes to get your desired result.
Also, if you look at my posts there is a whole string of weintek questions I've asked that give an idea of building an hmi with easybuilder.