102 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Chapter 2 Bit Instructions (XIC, XIO, OTE, OTL, OTU, ONS, OSR, OSF, OSRI, OSFI)
One Shot (ONS)
The ONS instruction enables or disables the remainder of the rung, depending
on the status of the storage bit.
Operands:
Relay Ladder
Structured Text
Structured text does not have an ONS instruction, but you can achieve the same
results by using an IF...THEN construct.
IF BOOL_expression AND NOT storage_bit THEN
<statement>;
END_IF;
storage_bit := BOOL_expression;
See Function Block Attributes
for information on the syntax of constructs,
expressions, and expressions within structured text.
Description: When enabled and the storage bit is cleared, the ONS instruction enables the
remainder of the rung. When disabled or when the storage bit is set, the ONS
instruction disables the remainder of the rung.
Arithmetic Status Flags: Not affected
Fault Conditions: None
Operand Type Format Description
Storage bit BOOL Tag Internal storage bit.
Stores the rung-condition-in from the last time the
instruction was executed