Page 1 of 1

Ladder logic not working as expected

Posted: Mon Sep 03, 2018 8:29 am
by bbrally
I want to stop all processes and start process 0 is an output is asserted.

I've used the following ladder logic, but when output 0 is not asserted it forces a stop to process 0 and a start to all others.

I thought that with no output asserted, nothing would be done.

How can I accomplish what I want?


ladder logic.jpg
ladder logic.jpg (80.92 KiB) Viewed 7796 times

Re: Ladder logic not working as expected

Posted: Mon Sep 03, 2018 10:58 am
by JonW
With ladder logic, controlling outputs or processes also works in the inverse of what is defined. e.g. if you're forcing the proc on when the output is on, then they are also forced off when output is off.

I find process triggers like this are better handled in a state change trigger where you can spawn or kill a process.

Re: Ladder logic not working as expected

Posted: Tue Sep 04, 2018 9:19 am
by oakbarn
Processes in the Coil Slot are sort of Convoluted in Ladder Logic. I do use a Process in the Coil Slot to insure that it cannot be turned off. It it is, it is immediately started again.

As Jon says, you can assert or kill a Process in the State Pane of the Process Editor, but that only happens On Exit of a State.

You can control a Process with an "Output" in Ladder Logic, but that becomes the only way to Turn it "On" or "Off"

Since a Process always turns on in State 0, you would need to "burn" :o that State and exit after 1 second to State 1. You could then Kill all of the other Processes when exiting State 0.
ll3.png
ll3.png (23.94 KiB) Viewed 7783 times