Rockwell Automation Publication 1756-RM093J-EN-P - April 2018 73
Safety Instructions Appendix A
Safety Instructions
Routines in the safety task may use these ladder logic safety instructions.
Table 13 - Ladder Logic Safety Instructions
Type Mnemonic Name Purpose RSLogix 5000
Version
(4)
Bit
XIC Examine If Closed Enable outputs when a bit is set 14
XIO Examine If Open Enable outputs when a bit is cleared 14
OTE Output Energize Set a bit 14
OTL Output Latch Set a bit (retentive) 14
OTU Output Unlatch Clear bit (retentive) 14
ONS One Shot Triggers an event to occur one time 14
OSR One Shot Rising Triggers an event to occur one time on the false-to-true (rising) edge of change-of-state 14
OSF One Shot Falling Triggers an event to occur one time on the true-to-false (falling) edge of change-of-state 14
Timer
TON Timer On Delay Time how long a timer is enabled 14
TOF Timer Off Delay Time how long a timer is disabled 14
RTO Retentive Timer On Accumulate time 14
CTU Count Up Count up 14
CTD Count Down Count down 14
RES Reset Reset a timer or counter 14
Compare
EQU Equal To Test whether two values are equal 14
GEQ Greater Than Or Equal To Test whether one value is greater than or equal to a second value 14
GRT Greater Than Test whether one value is greater than a second value 14
LEQ Less Than Or Equal To Test whether one value is less than or equal to a second value 14
LES Less Than Test whether one value is less than a second value 14
MEQ Masked Comparison for
Equal
Pass source and compare values through a mask and test whether they are equal 14
NEQ Not Equal To Test whether one value is not equal to a second value 14
LIM Limit Test Test whether a value falls within a specified range 14
Move
CLR Clear Clear a value 14
COP
(1)
Copy Copy a value 14
MOV Move Copy a value 14
MVM Masked Move Copy a specific part of an integer 14
Logical
AND Bitwise AND Perform bitwise AND operation 14
NOT Bitwise NOT Perform bitwise NOT operation 14
OR Bitwise OR Perform bitwise OR operation 14
XOR Bitwise Exclusive OR Perform bitwise exclusive OR operation 14
Program
Control
JMP Jump To Label Jump over a section of logic that does not always need to be executed (skips to referenced
label instruction)
14
LBL Label Labels an instruction so that it can be referenced by a JMP instruction 14
JSR Jump to Subroutine Jump to a separate routine 14
RET Return Return the results of a subroutine 14
SBR Subroutine Pass data to a subroutine 14
TND Temporary End Mark a temporary end that halts routine execution 14
MCR Master Control Reset Disable all the rungs in a section of logic 14
AFI Always False Instruction Disable a rung 14
NOP No Operation Insert a placeholder in the logic 14
EVENT Trigger Event Task Trigger one execution of an event task
(3)
20