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

1-DAY WORKSHOP – 9.

HANDS ON

ST-PLC & HMI


1-DAY WORKSHOP
By KM CHUA
kmchua.bistanika@gmail.com / kelly.chan@siemens.com

SIMATIC S7 Date: 01.12.2013 BISTANIKA Training for


Automation and Industrial Solutions
File: PLC_Basics E.1
1-DAY WORKSHOP – 9. HANDS ON

Let‘s Get
Hands On

SIMATIC S7 Date: 01.12.2013 BISTANIKA Training for


Automation and Industrial Solutions
File: PLC_Basics E.2
1-DAY WORKSHOP – 9. HANDS ON
SIMATIC S7-1200 & TIA PORTAL HARDWARE GUIDE
1. Connect the S7-1200 to your laptop using an Ethernet cable
2. Create new project
3. Add new PLC hardware
Add new device > S7-1200 CPU > Select “Unspecified Device”(Bottom)
> Scroll down and click “Add” > Wait for screen to load > Click “detect”
> On the top of the pop up screen, select “PN/IE” (Not needed if auto selected),
> select your Ethernet card name > click “Load” > Tick “Start” or “Start all”
> click “Finish”
4. To add additional Input/Output module,
at the Device Configuration screen > under “Hardware catalog” on the right side of the screen
> select any DI/DQ/AI/AQ module > drag and drop into the middle of the screen, , on the RIGHT
side of the CPU.
Close the project without saving.

SIMATIC S7 Date: 01.12.2013 BISTANIKA Training for


Automation and Industrial Solutions
File: PLC_Basics E.3
1-DAY WORKSHOP – 9. HANDS ON
SIMATIC S7-1200 & TIA PORTAL HARDWARE GUIDE
5. To add additional communication module
under “Hardware catalog” > select “Communications module”
> Profibus > CM 1242-5
> Drag and drop into the middle of the screen, on the LEFT side of the CPU
6. To add additional CPU,
under “Project tree” > double click “Add new device”
> Select any desire CPU and click “OK”.
> Then an additional CPU will be added to your project.
> Add a CM 1242-5 module to your current PLC by repeating step 5.

Close the project without saving.

SIMATIC S7 Date: 01.12.2013 BISTANIKA Training for


Automation and Industrial Solutions
File: PLC_Basics E.4
1-DAY WORKSHOP – 9. HANDS ON
SIMATIC S7-1200 & TIA PORTAL HARDWARE GUIDE
7. To link both PLC together,
under Project tree > double click “Devices & network”,
all your PLC in this project will be displayed here.
Link up the both PLC by drag and drop the green point from one CPU to the other.
Repeat the steps for purple point.
8. Now both PLC is able to communicate using two different networks.
These colors are all IEC standardization.
(Green = Profinet / TCP/IP; Purple = Profibus)
Close the project without saving.

SIMATIC S7 Date: 01.12.2013 BISTANIKA Training for


Automation and Industrial Solutions
File: PLC_Basics E.5
1-DAY WORKSHOP – 9. HANDS ON
SIMATIC S7-1200 & TIA PORTAL HARDWARE GUIDE
10. Connect S7-1200 to your laptop using an Ethernet cable
11. Create new project
Add new PLC hardware
Add new device > S7-1200 CPU > Select “Unspecified Device”(Bottom)
> Scroll down and click “Add” > Wait for screen to load > Click “detect”
> On the top of the pop up screen, select “PN/IE”(Not needed if auto selected),
then select your Ethernet card name > click “Load” > Tick “Start” or “Start all”
> click “Finish”

SIMATIC S7 Date: 01.12.2013 BISTANIKA Training for


Automation and Industrial Solutions
File: PLC_Basics E.6
1-DAY WORKSHOP – 9. HANDS ON
SIMATIC S7-1200 & TIA PORTAL HARDWARE GUIDE

13. Start to write your project


a) Create PLC tag for every input/output/memory
Under “Project Tree” > Double click folder “PLC_1”
> Double click “PLC tags” > Open “Show all tags”
> Create tag as shown below under the table

Name Data type Address

1 Start Bool I0.0

2 Stop Bool I0.1

3 Motor Run Bool Q0.0

SIMATIC S7 Date: 01.12.2013 BISTANIKA Training for


Automation and Industrial Solutions
File: PLC_Basics E.7
1-DAY WORKSHOP – 9. HANDS ON
SIMATIC S7-1200 & TIA PORTAL HARDWARE GUIDE

b) Writing your program


Under “Project Window” > Double click “Main (OB1)” under “Program Block”
> Under “Instruction” on the left of the window, drag and drop instruction below
to your ladder diagram to create a start/stop circuit

--------| |--------|/|-----------------------( )-

Set the name of the above instruction to “Start, Stop, Motor Run”
or “I0.0, I0.1, Q0.0” respectively

SIMATIC S7 Date: 01.12.2013 BISTANIKA Training for


Automation and Industrial Solutions
File: PLC_Basics E.8
1-DAY WORKSHOP – 9. HANDS ON
SIMATIC S7-1200 & TIA PORTAL HARDWARE GUIDE

14. Compile and download to CPU


On top of the toolbar, select “Online” (In between “Insert” and “Option”) > Click
“Download to device” (When you click download, it will automatically compile your
program, if error is shown, click cancel and double click the error message at the
bottom of the screen) > Follow the instruction by clicking “Next” and “OK” to
download your program into the CPU > After download, tick “Start all”, then finish.

15. Monitor your program online


Go to your ladder diagram > Click on
> Turn on the switch at the Training Kit and see the changes on the ladder diagram

SIMATIC S7 Date: 01.12.2013 BISTANIKA Training for


Automation and Industrial Solutions
File: PLC_Basics E.9
1-DAY WORKSHOP – 9. HANDS ON
SIMATIC S7-1200 & TIA EXERCISE
1. Redo the exercise as shown in tutorial slide

a) Start/stop non-latching circuit


b) Start/stop latching circuit
c) Pulse positive and negative with set/reset coil
d) Counter (Use I0.0, I0.1 instead of M11.2 and M11.3)
e) Timer (Use I0.3 instead of M11.4)
f) Comparator with counter or timer function

2 Applications example
Refer to application above; a PLC is controlling two motors, Motor A and Motor B.
Both motors are connected to PLC output Q0.0 and Q0.1. A start push button and
emergency stop button is connected to PLC input I0.0 and I0.2. When the operator
push on start (non-latching), Motor A will run for 2 hours, then stop, and Motor B will
run for another 2 hours, then Motor B stops, then Motor A runs, the cycle repeats
automatically. When the emergency stop button (latching) is pressed, which ever motor
that is running will stop immediately.
Create the control circuit with SIMATIC S7-1200 PLC using LAD.
Tips: Reduce timing from 2 hours to shorter desire time for testing purposes.

SIMATIC S7 Date: 01.12.2013 BISTANIKA Training for


Automation and Industrial Solutions
File: PLC_Basics E.10
1-DAY WORKSHOP – 9. HANDS ON

Thank You

SIMATIC S7 Date: 01.12.2013 BISTANIKA Training for


Automation and Industrial Solutions
File: PLC_Basics E.11

You might also like