User manual

Publication 1756-RM093F-EN-P - January 2010 81
Safety Instructions Appendix A
Additional Resources
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)
LBL Label Labels an instruction so that it can be referenced by a JMP instruction
JSR Jump to Subroutine Jump to a separate routine
RET Return Return the results of a subroutine
SBR Subroutine Pass data to a subroutine
TND Temporary End Mark a temporary end that halts routine execution
MCR Master Control Reset Disable all the rungs in a section of logic
AFI Always False Instruction Disable a rung
NOP No Operation Insert a placeholder in the logic
Math/
Compute
ADD Add Add two values
SUB Subtract Subtract two values
MUL Multiply Multiply two values
DIV Divide Divide two values
MOD Modulo Determine the remainder after one value is divided by a second value
SQR Square Root Calculate the square root of a value
NEG Negate Take the opposite sign of a value
ABS Absolute Value Take the absolute value of a value
I/O
GSV
(2)
Get System Value Get controller status information
SSV
(2)
Set System Value Set controller status information
(1) The length operand must be a constant when the COP instruction is used in a safety routine. The length of the source and the destination must be the same.
(2) Refer to the GuardLogix Controllers User Manual, publication 1756-UM020
, for special considerations when using the GSV and SSV instructions.
Ladder Logic Safety Instructions, RSLogix 5000 Software, Version 14 and Later
Type Mnemonic Name Purpose
Resource Description
GuardLogix Safety Application Instruction Set
Reference Manual, publication 1756-RM095
Provides more information on the safety
application instructions
Logix5000 Controllers General Instructions
Reference Manual, publication 1756-RM003
Contains detailed information on the
Logix instruction set