Switch (Jump Distributor) Instruction - Siemens S7-1200 System Manual

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

Advertisement

Basic instructions
7.8 Program control operations
For LAD and FBD: When the JMP_LIST box is first placed in your program, there are two
jump label outputs. You can add or delete jump destinations.
7.8.3

SWITCH (Jump distributor) instruction

Table 7- 96
SWITCH instruction
LAD / FBD
SCL
Not available
For LAD and FBD: Click below the box name and select a data type from the drop-down menu.
1
For SCL: Use an IF-THEN set of comparisons.
2
256
Click the create icon inside the box (on the left of the last DEST parameter)
to add new outputs for jump labels.
• Right-click on an output stub and select the "Insert output" command.
• Right-click on an output stub and select the "Delete" command.
Description
The SWITCH instruction acts as a program jump distributor to
control the execution of program sections. Depending on the
result of comparisons between the value of the K input and the
values assigned to the specified comparison inputs, a jump occurs
to the program label that corresponds to the first comparison test
that is true. If none of the comparisons is true, then a jump to the
label assigned to ELSE occurs. Program execution continues with
the program instructions that follow the destination jump label.
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG

Advertisement

Table of Contents
loading

Table of Contents