User manual

74 Publication LOGIX-AP010B-EN-P - May 2010
Chapter 3 Software Conversions Instructions
Conditional Jump
In the following example of the Conditional Jump function, the instruction that turns on the output if the input is on is
executed only if the two data words are NOT 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
L IB19
L IB20
>< F
JC =DESA
AI1.0
=Q4.0
DESA: NOP 0
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.
The alternative structure is:
If data_word1 <> data_word2 then
... (code that is after the NOP 0)
else
Out_bit1 := data_bit1;
End_if;
SIMATIC S5 - Ladder
S5 Ladder has instructions that allows 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