You are on page 1of 8

Quick Guide

Quick Guide
Step 7 Basic & SIMATIC S7-1200
I-device

Unrestricted © Siemens AG 2017 www.siemens.com/s7-1200

• Procedure : I-device Concept 3


• Data exchange between higher-level IO controller and I-device 4
• Configuration : I-device 5
• IO cycle time for I-device 10
• Compile Program & Download Program 11
• Example Program 13
• Reference 14

Unrestricted © Siemens AG 2017


Page 2 SLT / DF FA

Handout 1
Quick Guide

Procedure : I-device Concept

1 กำหนด PLC ที่จะให้เป็ น I-device

2 เลือก IO controller ให้ I-device

กำหนด Transfer areas เพื่อระบุช่วง address


3 ทีจ่ ะแลกเปลี่ยนข้อมูล

Unrestricted © Siemens AG 2017


Page 3 SLT / DF FA

Data exchange between higher-level IO controller and I-device

IO controller Byte
I-device IO controller
I 1 2 3 4 5 6 7 8 9 10 … 21 22 23 24 25 26 27 28 29 30

Q
Name : I-Device Name : IO_Controller
1 2 3 4 5 … 16 17 18 19 20
IP : 192.168.0.31 IP : 192.168.0.32
Controller Device to
to Device Controller
I-device

I 1 2 3 4 5 … 16 17 18 19 20

PROFINET
Q 1 2 3 4 5 6 7 8 9 10 … 21 22 23 24 25 26 27 28 29 30
Byte

Length of data
Data Q20 ของ IO_Controller จะถูกส่ งไปที่ I20 ของ I-Device Value range 1..1024 bytes
Data I30 ของ IO_Controller จะรับ data Q30 มำจำก I-Device

คุณสำมำรถที่จะกำหนดจำนวน Byte ของข้อมูล โดยกำหนด length ในกำรรับ/ส่งได้


ตั้งแต่ 1...1024 bytes

Unrestricted © Siemens AG 2017


Page 4 SLT / DF FA

Handout 2
Quick Guide

Configuration : I-device

Double click to I-device

I-device IO controller
Name : I-Device Name : IO_Controller
IP : 192.168.0.31 IP : 192.168.0.32

Unrestricted © Siemens AG 2017


Page 5 SLT / DF FA

1. กำหนด PLC ที่จะให้ เป็ น I-device

I-device
Name : I-Device
IP : 192.168.0.31
1
ทำเครื่ องหมำยถูกที่ IO device

Unrestricted © Siemens AG 2017


Page 6 SLT / DF FA

Handout 3
Quick Guide

2. เลือก IO controller ให้ I-device

2 เลือก IO controller

ทำเครื่ องหมำยถูก

Unrestricted © Siemens AG 2017


Page 7 SLT / DF FA

3. กำหนด Transfer areas เพื่อระบุช่วง address ที่จะแลกเปลี่ยนข้ อมูล

3
ทำกำรตั้งค่ำสำหรับ Transfer areas
เพื่อระบุชว่ ง address ที่จะให้มีกำรแลกเปลี่ยนข้อมูล (รับ / ส่ง)

IO controller I-device
Length of data
Value range 1..1024 bytes

Device to Controller Controller to Device

Click ที่ ให้เป็ น .

Unrestricted © Siemens AG 2017


Page 8 SLT / DF FA

Handout 4
Quick Guide

Check กำรเชื่อมต่ อ I-device กับ IO controller

ที่ I-Device จะแสดง IO controller ที่ได้เลือกไว้


Name : IO_Controller

แสดงกำรเชื่อมต่อให้อตั โนมัติ หลังทำ


กำรเลือก IO controller

Unrestricted © Siemens AG 2017


Page 9 SLT / DF FA

IO cycle time for I-device

เลือกเป็ น automatically

Unrestricted © Siemens AG 2017


Page 10 SLT / DF FA

Handout 5
Quick Guide

Compile Program to both Controller

กด Compile กด Compile

เลือก Controller ที่จะ Compile เลือก Controller ที่จะ Compile


(I-Device) (IO_Controller)

กด Compile Controller ทั้ง IO controller และ I-device

Unrestricted © Siemens AG 2017


Page 11 SLT / DF FA

Download Program to both Controller

กด Download กด Download

เลือก Controller ที่จะ Download เลือก Controller ที่จะ Download


(I-Device) (IO_Controller)

กด Download Program ลง Controller ทั้ง IO controller และ I-device

Unrestricted © Siemens AG 2017


Page 12 SLT / DF FA

Handout 6
Quick Guide

Example Program : I-device

IO controller
%I0.0 LADDER %Q20.0
Controller
แสดงผลออกที่ output %Q0.3
1 input %I0.0 ที่ป้อนเข้ำจำก 2 to Device 3 ของ I-device
4 I-device
IO controller
%I20.0 LADDER %Q0.3

Device to I-device
Controller
3 แสดงผลออกที่ output %Q0.0 4 input %I0.0 ที่ป้อนเข้ำจำก 2
1
ของ IO controller I-device
IO controller

%I30.0 LADDER %Q0.0


IO controller I-device
Name : IO_Controller Name : I-Device I-device
IP : 192.168.0.32 IP : 192.168.0.31 LADDER
%I0.4 %Q30.0
I-device

Unrestricted © Siemens AG 2017


Page 13 SLT / DF FA

Reference

Chapter 11 : Communication p.799 https://support.industry.siemens.com/cs/ww/en/view/109478798

Unrestricted © Siemens AG 2017


Page 14 SLT / DF FA

Handout 7
Quick Guide

Reference

SIMATIC S7-1200 : Manual


https://support.industry.siemens.com/cs/products?dtp=Manual&mfn=ps&pnid=
13683&lc=en-US
SIMATIC S7-1200 : Application example
https://support.industry.siemens.com/cs/products?ps=100&dtp=ExampleOfUs
e&mfn=ps&pnid=13683&lc=en-WW
The TIA Portal Tutorial Center (videos)
https://support.industry.siemens.com/cs/document/106656707/the-tia-portal-
tutorial-center-(videos)?dti=0&pnid=13683&lc=en-WW
Automation task in 10 minutes or less
https://www.youtube.com/watch?v=0MhJfAtkcJI&list=PLC76AD9A5EF6E
8212
Industry Online Support
https://support.industry.siemens.com/cs
Unrestricted © Siemens AG 2017
Page 15 SLT / DF FA

Unrestricted © Siemens AG 2017


Page 16 SLT / DF FA

Handout 8

You might also like