Toggle Bit command
Use the Toggle Bit command to change the state of a Boolean tag.
- If the tag is on, toggle turns it off.
- If the tag is off, toggle turns it on.
If the controller is offline or in
Program
mode, the toggled Boolean state will remain until manually changed.If the controller is in
Run
mode, the toggled Boolean state might be overwritten by:- The rung scan, if the ladder logic has outputs that reference the toggled Boolean tag.
- The input scan, if the Boolean tag references an I/O input module.
- Forcing, if the Boolean tag references an I/O module.
Toggle Bit command

Provide Feedback