Basic instructions
7.8 Program control operations
S7-1200 Programmable controller
256 System Manual, 03/2014, A5E02486680-AG
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.
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.
SWITCH (Jump distributor) instruction
Table 7- 96 SWITCH instruction
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.
For LAD and FBD: Click below the box name and select a data type from the drop-down menu.
2
For SCL: Use an IF-THEN set of comparisons.