0% found this document useful (0 votes)
137 views

PLC Laboratory - Experiment 8 - PLC Programming Concepts - Program Control Operations

This document provides instructions for a PLC laboratory on program control operations. The objectives are to understand how subroutines are designed and called from the main block, and to perform program control operations. The lab covers instructions for jumps (JMP, JMPN), jump labels, jump lists (JMP_LIST), and a jump distributor (SWITCH). Students will perform programs using these instructions and interpret their usage and the behavior of the systems.

Uploaded by

Hassan Hariri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
137 views

PLC Laboratory - Experiment 8 - PLC Programming Concepts - Program Control Operations

This document provides instructions for a PLC laboratory on program control operations. The objectives are to understand how subroutines are designed and called from the main block, and to perform program control operations. The lab covers instructions for jumps (JMP, JMPN), jump labels, jump lists (JMP_LIST), and a jump distributor (SWITCH). Students will perform programs using these instructions and interpret their usage and the behavior of the systems.

Uploaded by

Hassan Hariri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Programmable Logic Controller (PLC) Laboratory

Higher Education As it should be…

Lab 8
PLC Programming Concepts:
Program Control Operations
Hardware: S7-1200 PLC
Software: SIMATIC STEP-7 Basic

Prepared by: Ramzi Halabi (Lab Instructor)


To be Reviewed by: Samir Berjaoui (Director of Labs) Page 1
Programmable Logic Controller (PLC) Laboratory

Objectives:

 Understand how subroutines are designed and called from the main block.

 Be able to perform Program Control Operations.

Material:

 PLC Siemens S7-1200 AC/DC/RLY 1214C CPU

 STEP-7 Software Package

 Analog Input Module

 Power Supply 120-240VAC, 50/60 Hz

1- Instructions:
 JMP ---(JMP), JUMP LABEL
 JMPN ---(JMPN), JUMP LABEL
 JMP_LIST
 SWITCH

2- Instruction Description:

 JMP ---(JMP):

- You can use the "Jump if RLO = 1" instruction to interrupt the linear execution of the
program and resume it in another network. The destination network must be
identified by a jump label (LABEL). The name of this jump label is specified in the
placeholder above the instruction.
- The specified jump label must be in the same block in which the instruction is
executed. The name you specify can only occur once in the block. Only one jumping
coil is permitted within a network.
- If the result of logic operation (RLO) at the input of the instruction is "1", the jump to
the network identified by the specified jump label is executed. The jump direction can
be towards higher or lower network numbers.
- If the condition at the input of the instruction is not fulfilled (RLO = 0), execution of
the program continues in the next network.

 JUMP LABEL:

- You can use a jump label to identify a destination network, in which the program
execution should resume when a jump is executed.

Prepared by: Ramzi Halabi (Lab Instructor)


To be Reviewed by: Samir Berjaoui (Director of Labs) Page 2
Programmable Logic Controller (PLC) Laboratory

- The jump label and the instruction in which the jump label is specified must be
located in the same block. The name of a jump label can only be assigned once in a
block. You can declare up to 32 jump labels when you use a CPU S7-1200 and a
maximum of 256 jump labels when you use a CPU S7-1500.
- Only one jump label can be placed in a network. Each jump label can jump to several
locations.

Implementation:

1. Perform this program and interpret the use of JMP and LABEL instructions

 JMPN ---(JMPN):

Description:

- You can use the instruction "Jump if RLO = 0" to interrupt the linear execution of the
program and resume it in another network, when the result of logic operation at the
input of the instruction is "0". The destination network must be identified by a jump
label (LABEL). The name of this jump label is specified in the placeholder above the
instruction.

Prepared by: Ramzi Halabi (Lab Instructor)


To be Reviewed by: Samir Berjaoui (Director of Labs) Page 3
Programmable Logic Controller (PLC) Laboratory

- The specified jump label must be in the same block in which the instruction is
executed. The name you specify can only occur once in the block. Only one jumping
coil is permitted within a network.
- If the result of logic operation (RLO) at the input of the instruction is "0", the jump to
the network identified by the specified jump label is executed. The jump direction can
be towards higher or lower network numbers.
- If the result of logic operation at the input of the instruction is "1", execution of the
program continues in the next network.

Implementation:

2. Perform this program and interpret the use of JMPN and LABEL instructions.

Prepared by: Ramzi Halabi (Lab Instructor)


To be Reviewed by: Samir Berjaoui (Director of Labs) Page 4
Programmable Logic Controller (PLC) Laboratory

 JMP_List & LABEL:

Description:

- You can use the "Define jump list" instruction to define several conditional jumps
and continue the program execution in a specific network depending on the value of
the K parameter.
- You define the jumps with jump labels (LABEL), which you specify at the outputs of
the instruction box. The number of outputs can be expanded in the instruction box.
You can declare up to 32 outputs when you use a CPU S7-1200 and a maximum of
99 outputs when you use a CPU S7-1500.
- The numbering of the outputs begins with the value "0" and continues in ascending
order with each new output. Only jump labels can be specified at the outputs of the
instruction. Instructions or operands cannot be specified.
- The value of the K parameter specifies the number of the output and thus the jump
label where the program execution is to be resumed. If the value in the K parameter is
greater than the number of available outputs, the program execution is resumed in the
next network of the block.
- The "Define jump list" instruction is only executed if the signal state is "1" at the EN
enable input.

Parameters:

Table 1: List of Parameters for the JMP_LIST Instruction

Prepared by: Ramzi Halabi (Lab Instructor)


To be Reviewed by: Samir Berjaoui (Director of Labs) Page 5
Programmable Logic Controller (PLC) Laboratory

Implementation:

Prepared by: Ramzi Halabi (Lab Instructor)


To be Reviewed by: Samir Berjaoui (Director of Labs) Page 6
Programmable Logic Controller (PLC) Laboratory

3. Perform this program and interpret the use of JMP_LIST and LABEL instructions.
 SWITCH / Jump Distributor:

Description:
- You can use the "Jump distributor" instruction to define multiple program jumps to
be executed depending on the result of one or more comparison instructions.
- You specify the value to be compared in the K parameter. This value is compared
with the values that are provided by the various inputs. You can select the comparison
method for each individual input. The availability of the various comparison
instructions depends on the data type of the instruction.
- The following table shows the comparison instructions that are available depending
on the selected data type:

Prepared by: Ramzi Halabi (Lab Instructor)


To be Reviewed by: Samir Berjaoui (Director of Labs) Page 7
Programmable Logic Controller (PLC) Laboratory

Table 2: Table of Instructions by Data Types

- Execution of the instruction begins with the first comparison and runs until a
comparison condition is met.
- If a comparison condition is met, the subsequent comparison conditions are not
considered.
- If none of the specified comparison conditions are met, the jump at the ELSE output
is executed.
- If no program jump is defined at the ELSE output, execution of the program
continues in the next network.
- The number of outputs can be expanded in the instruction box. The numbering of the
outputs begins with the value "0" and continues in ascending order with each new
output.

Prepared by: Ramzi Halabi (Lab Instructor)


To be Reviewed by: Samir Berjaoui (Director of Labs) Page 8
Programmable Logic Controller (PLC) Laboratory

Table 3: Table of Parameters

Implementation:

Prepared by: Ramzi Halabi (Lab Instructor)


To be Reviewed by: Samir Berjaoui (Director of Labs) Page 9
Programmable Logic Controller (PLC) Laboratory

4. Perform this program and interpret the behavior of the system.

Prepared by: Ramzi Halabi (Lab Instructor)


To be Reviewed by: Samir Berjaoui (Director of Labs) Page 10

You might also like