User manual
Publication LOGIX-AP010B-EN-P - May 2010 75
Software Conversions Instructions Chapter 3
Unconditional Jump
In the following example of the Unconditional Jump function, the instruction that activates the output (if the input is on) is
never executed regardless of whether the two data words are equal.
Function S5 RSLogix 5000
Operand 1 IB19 data_word1
Operand 2 IB20 data_word2
Input I1.0 data_bit1
Output Q4.0 out_bit1
S5 Statement List RSLogix 5000 Structured Text
LIB19
LIB20
>< F
JU = DESA
AI1.0
=Q4.0
DESA: NOP
RSLogix 5000 Structured Text has instructions that allow the
program to jump to other subroutines but does not permit the
program to jump to another point in the same subroutine.
SIMATIC S5 - Ladder
S5 Ladder has instructions that allow the program to jump to other subroutines but does not permit the program to jump to
another point in the same subroutine.
RSLogix 5000 - Ladder
Miscellaneous Jump
Execution of comparison operations in S5 sets condition codes CC0 & CC1.
S5 Instruction Description RSLogix 5000 Implementation
JZ ACCU 2 = ACCU 1 Equivalent to the equal to
comparison instruction (EQ)
JN ACCU 2 <> ACCU 1 Equivalent to the not equal to
comparison instruction (NEQ).
JP ACCU 2 > ACCU 1 Equivalent to the greater than
comparison instruction (GT).
JM ACCU 2 < ACCU 1 Equivalent to the less than
comparison instruction (LT).