Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

Conveyor control

HandsON
Unrestricted © Siemens AG 2021 www.siemens.com/tia

Unrestricted © Siemens AG 2021


Programming with STEP 7
Conveyor Control

HANDS ON in 90 min
Goal
The Goal of this HandsOn is to learn how to program with
STEP 7

Requirement Use PLCSIM Advanced


instead of real plc
• Current TIA Portal version
• A demo case with wired hardware components

Use case
You have already created your project for your production line
in the TIA Portal and would like to control your conveyor for the
Unrestricted © Siemens AG 2021
transfer of objects!
Page 2 5/31/2021 DI FA S SUP
Programming with STEP 7
Logic of conveyor control

HANDS ON in 90 min
1
The transport process is divided into the following steps:
2
3
4
• The brownie is recognized at the first light barrier (2).
• The brownie is transported to the second light barrier (3).
• The brownie is decorated with a "nut". (delay of 5 sec.)
• The brownie with the nut is transported to the last light
barrier (4).
When the brownie reaches the last light barrier, the
conveyor stops until the brownie is removed.

1: Brownie Only if HW available: The light barrier should be controlled


2: lightBeam1 via the buttons on the demo case. In the example, it's just
3: lightBeam2 about moving the conveyor!
Unrestricted © Siemens AG 2021
4: lightBeam3
Page 3 5/31/2021 DI FA S SUP
Programming with STEP 7
Program code of the conveyor control

HANDS ON in 90 min
2. Create a FB "Conveyor" and select the programming
language "SCL".
3. Set input / output parameters in the interface of the FB.
4. Create the program code for the conveyor control in the
editor of the FB. Use e.g. the "IF" statement.
“IF <condition> THEN <statements> END_IF;”
5. Use a delay "TON" for the waiting time.
6. Call the FB in OB1.
7. Download the project to the controller (PLCSIM Advanced)
and test your program.

Unrestricted © Siemens AG 2021


Page 5 5/31/2021 DI FA S SUP
Programming with STEP 7
Create HMI-screen (optional)

HANDS ON in 90 min
• Add an HMI screen to your project.
• The HMI screen can be designed as desired.
• Download the project to the controller.
• Start the simulation and test it.

Unrestricted © Siemens AG 2021


Seite 6 5/31/2021 DI FA S SUP
Components of the demo case
Article number list

HANDS ON
Controller FW version
6ES7 517-3UP00-0AB0 CPU 1517TF-3
6ES7 523-1BL00-0AA0 V1.0 S7-1500, DI 16x24VDC/DQ 16x24VDC/0.5A BA Digital input module
6ES7 531-7KF00-0AB0 V2.0 S7-1500, AI 8XU/I/RTD/TC ST Analoge input module
6GK7 543-1AX00-0XE0 V1.1 Communication processor CP
Panel
6AV2 124-0GC01-0AX0 SIMATIC HMI TP700 Comfort
Distributed Periphery
6ES7 155-6AU00-0BN0 V03.03.00_00.00.00.00 ET 200SP, IM155-6PN ST Interface-Modul, incl. Server-Modul
6ES7 131-6BH00-0BA0 V01.00.02_00.00.00.00 ET 200SP, DI 16X24VDC ST digital input modul
6ES7 131-6BH00-0BA0 V01.00.02_00.00.00.00 ET 200SP, DI 16X24VDC ST digital input modul
6ES7 132-6BH00-0BA0 V01.00.02_00.00.00.00 ET 200SP, DQ 16X24VDC/0,5A ST digital output module
6ES7 134-6HD00-0BA1 V01.01.00_00.00.00.00 ET 200SP, AI 4XU/I 2-WIRE ST analog input module
6ES7 135-6HD00-0BA1 V01.01.00_00.00.00.00 ET 200SP, AQ 4XU/I ST analog output module
6ES7 136-6BA00-0CA0 V01.00.05_00.00.00.00 ET 200SP, EL-MOD., F-DI 8X24VDC HF F-DI
6ES7 193-6PA00-0AA0 V01.01.00_00.00.00.00 ET200SP, SERVERMODUL Server-Modul für ET 200SP
Scalance
6GK5 204-0BA00-2AF2 SCALANCE XF204 managed IE Switch
OpenController
6ES7 672-5DC01-0YA0 SIMATIC Software Controller CPU 1505SP

Unrestricted © Siemens AG 2021


Page 7 5/31/2021 DI FA S SUP
Thank you for your attention!

SIMATIC System Support


DI FA S SUP
Gleiwitzer Staße 555
90475 Nürnberg

Unrestricted © Siemens AG 2021


Page 8 5/31/2021 DI FA S SUP

You might also like