OTE — Output Energize
dataBit
Sets a bit to 1 while the rung is true and back to 0 when the rung goes false. The standard output coil.
Operands
| Name | Type |
|---|---|
dataBit | BOOL |
How It Works
Every scan, OTE re-writes dataBit to match the current rung condition: 1 when true, 0 when false. There is no memory — if the rung goes false, the output goes off immediately.
Example
XIC(Run)OTE(Lamp)
Lamp is 1 whenever Run is 1.
Seal-In Pattern
To keep an output on after a momentary trigger, add a parallel branch that examines the output itself. Pair it with an enable contact that breaks the seal:
[XIC(Trigger),XIC(Output)]XIC(Enable)OTE(Output)
Output latches on when Trigger goes true, stays on via its own contact, and drops when Enable goes 0.
Common Mistakes
- Driving the same output from two rungs — the lower rung always wins. Each output should be driven by exactly one
OTEin the program. - Expecting
OTEto remember its state after the rung goes false — it does not. UseOTLfor a latched output.
Related
- OTL / OTU — latched and unlatched outputs
- XIC, XIO — typical input contacts
- Bit instructions overview