98 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Chapter 2 Bit Instructions (XIC, XIO, OTE, OTL, OTU, ONS, OSR, OSF, OSRI, OSFI)
Output Latch (OTL)
The OTL instruction sets (latches) the data bit.
Operands:
Relay Ladder
Structured Text
Structured text does not have an OTL instruction, but you can achieve the same
results by using an IF...THEN construct and an assignment.
IF BOOL_expression THEN
data_bit := 1;
END_IF;
See Function Block Attributes
for information on the syntax of constructs,
expressions, and assignments within structured text.
Description: When enabled, the OTL instruction sets the data bit. The data bit remains set
until it is cleared, typically by an OTU instruction. When disabled, the OTL
instruction does not change the status of the data bit.
Arithmetic Status Flags: Not affected
Fault Conditions: None
Execution:
Operand Type Format Description
Data bit BOOL Tag Bit to be set
Condition Relay Ladder Action
Prescan The data bit is not modified.
The rung-condition-out is set to false.
Rung-condition-in is false The data bit is not modified.
The rung-condition-out is set to false.
Rung-condition-in is true The data bit is set.
The rung-condition-out is set to true.
Postscan The data bit is not modified.
The rung-condition-out is set to false.