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 not working as expected
Ladder logic not working as expected
Move, copy, clear proc/states: http://manipulator.from-ca.com/
Perform coeff. mods: http://calculator.from-ca.com/
HMI latest ver: http://bbrally.altervista.org/guibeta/i ... r=01042020
Perform coeff. mods: http://calculator.from-ca.com/
HMI latest ver: http://bbrally.altervista.org/guibeta/i ... r=01042020
-
- Site Admin
- Posts: 1726
- Joined: Sun Jul 18, 2010 7:51 am
- Bot?: No
- Location: Huntington Beach, CA
- Contact:
Re: Ladder logic not working as expected
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.
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
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" that State and exit after 1 second to State 1. You could then Kill all of the other Processes when exiting State 0.
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" that State and exit after 1 second to State 1. You could then Kill all of the other Processes when exiting State 0.