John_Jack_Jake
Here I have a lift code. There is a bool variable Hoist_Down that can be changed from 2 different location but when U1 turn on its Hoist_Down the other 2 Hoist_Down doesn't turn on. Can you change 1 value from 2 different location?. Is there any other way to do this?hoistdown.jpg

Here is my code 
Reply 0 0
thiagoralves
Ladder Logic is a cyclic language. Every rung is executed in order until the end of the cycle. If you have multiple rungs controlling the same output, ultimately the last rung will be the one responsible for the state of the output. It is common for beginners to thing that when a rung condition is not met, the output is ignored. This is not true. A rung that evaluates to FALSE means that the output will be set to FALSE as well.

So, in essence, never use the same coil in multiple rungs or you will end up with bad logic. You can create temporary variables to hold the state of that rung and then OR them all together to define the state of your real output. If that is too complicated, you can also change your logic to use Set/Reset coils instead of traditional coils. Using Set/Reset you can indeed use the same coil on multiple rungs, because the rung is not controlling the state of the coil directly, but controlling a command given to the coil (set or reset).
Reply 0 0
Reply