Program Control Operations; Jmp (Jump If Rlo = 1), Jmpn (Jump If Rlo = 0), And Label (Jump Label) Instructions - Siemens S7-1200 System Manual

Hide thumbs Also See for S7-1200:
Table of Contents

Advertisement

Basic instructions

7.8 Program control operations

7.8
Program control operations
7.8.1
JMP (Jump if RLO = 1), JMPN (Jump if RLO = 0), and Label (Jump label)
instructions
Table 7- 92
JMP, JMPN, and LABEL instruction
LAD
FBD
You create your label names by typing in the LABEL instruction directly. Use the parameter helper icon to select the
1
available label names for the JMP and JMPN label name field. You can also type a label name directly into the JMP or
JMPN instruction.
Table 7- 93
Data types for the parameters
Parameter
Label_name
● Each label must be unique within a code block.
● You can jump within a code block, but you cannot jump from one code block to another
code block.
● You can jump forward or backward.
● You can jump to the same label from more than one place in the same code block.
254
SCL
See the GOTO (Page 274)
statement.
Data type
Label identifier
Description
Jump if RLO (result of logic operation) = 1:
If there is power flow to a JMP coil (LAD), or if the
JMP box input is true (FBD), then program execution
continues with the first instruction following the
specified label.
Jump if RLO = 0:
If there is no power flow to a JMPN coil (LAD), or if
the JMPN box input is false (FBD), then program
execution continues with the first instruction following
the specified label.
Destination label for a JMP or JMPN jump instruction.
Description
Identifier for Jump instructions and the corresponding jump
destination program label
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG

Advertisement

Table of Contents
loading

Table of Contents