S7-1200 and Step7 Basic v10.5 communication
Trang 1SIMATIC Systems Support
I IA AS CS 2 FA
S7-1200 and STEP7 Basic V10.5
CommunicationPage 1
For internal use only / © Siemens AG 2009 All Rights Reserved.
S7-1200 and
STEP7 Basic V10.5
Chapter 7:
Communication
Trang 2SIMATIC Systems Support
I IA AS CS 2 FA
S7-1200 and STEP7 Basic V10.5
CommunicationPage 2
For internal use only / © Siemens AG 2009 All Rights Reserved.
Industry Sector Communication
Overview: Communication interfaces
CPU onboard: Ethernet (PROFINET)
Client: PUT/GET (in preparation)
PROFINET I/O (in preparation)
Trang 3SIMATIC Systems Support
I IA AS CS 2 FA
S7-1200 and STEP7 Basic V10.5
CommunicationPage 3
For internal use only / © Siemens AG 2009 All Rights Reserved.
Industry Sector Communication
RTU Master-Protocol
RTU Slave-Protocol
3rd Party
Trang 4SIMATIC Systems Support
I IA AS CS 2 FA
S7-1200 and STEP7 Basic V10.5
CommunicationPage 4
For internal use only / © Siemens AG 2009 All Rights Reserved.
Industry Sector Communication
Open user communication – Overview
Blocks without connection management
Blocks with connection management
Trang 5SIMATIC Systems Support
I IA AS CS 2 FA
S7-1200 and STEP7 Basic V10.5
CommunicationPage 5
For internal use only / © Siemens AG 2009 All Rights Reserved.
Industry Sector Communication
IP Address ConnectionID TSAP/PORT
TSEND SFB
TCON SFB
TDISCON SFB
TRCV SFB
CPU 2 (passive)
Connection data
IP Address ConnectionID TSAP/PORT
TRCV SFB
TCON SFB
TDISCON SFB
TSEND SFB
Disconnect Data
Data
Trang 6SIMATIC Systems Support
I IA AS CS 2 FA
S7-1200 and STEP7 Basic V10.5
CommunicationPage 6
For internal use only / © Siemens AG 2009 All Rights Reserved.
Industry Sector Communication
IP Address ConnectionID TSAP/PORT
TSEND_C SFB
TRCV_C SFB
CPU 2 (passive)
Connection data
IP Address ConnectionID TSAP/PORT
TRCV_C SFB
TSEND_C SFB
Trang 7SIMATIC Systems Support
I IA AS CS 2 FA
S7-1200 and STEP7 Basic V10.5
CommunicationPage 7
For internal use only / © Siemens AG 2009 All Rights Reserved.
Industry Sector Communication
er P rotocol
http
Hyper T
ext Transf
er Pro tocol
ple N
etwork
Mana
g. Protocol
Trang 8SIMATIC Systems Support
I IA AS CS 2 FA
S7-1200 and STEP7 Basic V10.5
CommunicationPage 8
For internal use only / © Siemens AG 2009 All Rights Reserved.
Industry Sector Communication
er P rotocol
http
Hyper T
ext Transf
er Pro tocol
ple N
etwork
Mana
g. Protocol
Port
102
TCP
Trang 9SIMATIC Systems Support
I IA AS CS 2 FA
S7-1200 and STEP7 Basic V10.5
CommunicationPage 9
For internal use only / © Siemens AG 2009 All Rights Reserved.
Industry Sector Communication
TSAP (Transport Service Access Point)
Trang 10SIMATIC Systems Support
I IA AS CS 2 FA
S7-1200 and STEP7 Basic V10.5
CommunicationPage 10
For internal use only / © Siemens AG 2009 All Rights Reserved.
Industry Sector Communication
connect PLCs with subnet via Drag&Drop
Properties of the Ethernet interface
Trang 11SIMATIC Systems Support
I IA AS CS 2 FA
S7-1200 and STEP7 Basic V10.5
CommunicationPage 11
For internal use only / © Siemens AG 2009 All Rights Reserved.
Industry Sector Communication
Below „Other“ are the blocks without connection management
Trang 12SIMATIC Systems Support
I IA AS CS 2 FA
S7-1200 and STEP7 Basic V10.5
CommunicationPage 12
For internal use only / © Siemens AG 2009 All Rights Reserved.
Industry Sector Communication
Send data with „TSEND_C“
Connecting, send data and disconnecting in one block
Hold connection or disconnecting
Connection data
IP Address ConnectionID TSAP/PORT
Connecting and send data with rising edge
Trang 13SIMATIC Systems Support
I IA AS CS 2 FA
S7-1200 and STEP7 Basic V10.5
CommunicationPage 13
For internal use only / © Siemens AG 2009 All Rights Reserved.
Industry Sector Communication
IP Address ConnectionID TSAP/PORT
Choice connection type
Trang 14SIMATIC Systems Support
I IA AS CS 2 FA
S7-1200 and STEP7 Basic V10.5
CommunicationPage 14
For internal use only / © Siemens AG 2009 All Rights Reserved.
Industry Sector Communication
Exercise for Communication
Let’s just do it the lab for you
Hands-on
Trang 15SIMATIC Systems Support
I IA AS CS 2 FA
S7-1200 and STEP7 Basic V10.5
CommunicationPage 15
Process 1 connect two S7-1200 Demo Boxes
For internal use only / © Siemens AG 2009 All Rights Reserved.
Industry Sector Communication
Trang 16SIMATIC Systems Support
I IA AS CS 2 FA
S7-1200 and STEP7 Basic V10.5
CommunicationPage 16
Process 2 activate „Create new project“
For internal use only / © Siemens AG 2009 All Rights Reserved.
Industry Sector Communication
Trang 17SIMATIC Systems Support
I IA AS CS 2 FA
S7-1200 and STEP7 Basic V10.5
CommunicationPage 17
Process 5 start editor for „Devices & Networks“
SIMATIC S7-1200 > CPU > Unspecified CPU 1200
7 insert PLC via Drag&Drop in „Network view“
10 switch to the device view of PLC_1
For internal use only / © Siemens AG 2009 All Rights Reserved.
Industry Sector Communication
Trang 18SIMATIC Systems Support
I IA AS CS 2 FA
S7-1200 and STEP7 Basic V10.5
CommunicationPage 18
For internal use only / © Siemens AG 2009 All Rights Reserved.
Industry Sector Communication
1 5
1 6
1 7
Hands-on
Process 11 detect the configuration of the connected device
12 select accessible device (check MAC-address)
13 load configuration
14 uploaded configuration of S7-1200 Demo rack
15 select PLC_2 in the DropDown list
16 repeat Step 11 up to 14 also for the second PLC
17 switch to the Network view
Trang 19SIMATIC Systems Support
I IA AS CS 2 FA
S7-1200 and STEP7 Basic V10.5
CommunicationPage 19
Process 18 activate „Networks“ in the taskbar
19 connect both PLC with a subnet via Drag&Drop
20 select PLC_1
21 activate clock memory bits for PLC_1
Hint: You need following memory bit for your user program:
- „1Hz clock“ (M0.5)
For internal use only / © Siemens AG 2009 All Rights Reserved.
Industry Sector Communication
Trang 20SIMATIC Systems Support
I IA AS CS 2 FA
S7-1200 and STEP7 Basic V10.5
CommunicationPage 20
23 In Extended instructions select „TSEND_C“ at Communication >
Open user communication and insert in OB1 via Drag&Drop
24 add Instance-DB for „TSEND_C“
For internal use only / © Siemens AG 2009 All Rights Reserved.
Industry Sector Communication
23
24
Hands-on
Trang 21SIMATIC Systems Support
I IA AS CS 2 FA
S7-1200 and STEP7 Basic V10.5
CommunicationPage 21
Process 25 set PLC_2 as Partner PLC
26 assign „PLC1“ to Local TSAP and „PLC2“ to Partner TSAP
27 assign M0.5 (1Hz Clock) to In-Parameter „REQ“
28 assign TRUE to In-Parameter „CONT“
29 assign ‘1’ to In-Parameter „LEN“
30 assign IB0 to In-Parameter „DATA“
For internal use only / © Siemens AG 2009 All Rights Reserved.
Industry Sector Communication
Trang 22SIMATIC Systems Support
I IA AS CS 2 FA
S7-1200 and STEP7 Basic V10.5
CommunicationPage 22
32 In Extended instructions select „TRCV_C“ at Communication >
Open user communication and insert in OB1 via Drag&Drop
33 add Instance-DB for „TRCV_C“
For internal use only / © Siemens AG 2009 All Rights Reserved.
Industry Sector Communication
Trang 23SIMATIC Systems Support
I IA AS CS 2 FA
S7-1200 and STEP7 Basic V10.5
CommunicationPage 23
Process 34 set PLC_1 as Partner PLC
35 choose „PLC_2_Connection_DB“ as connection data for Local PLC and „PLC_1_Connection_DB“ for Partner PLC
36 assign TRUE to In-Parameter „EN_R“
37 assign TRUE to In-Parameter „CONT“
38 assign ‘1’ to In-Parameter „LEN“
39 assign QB0 to In-Parameter „DATA“
For internal use only / © Siemens AG 2009 All Rights Reserved.
Industry Sector Communication
Trang 24SIMATIC Systems Support
I IA AS CS 2 FA
S7-1200 and STEP7 Basic V10.5
CommunicationPage 24
Process 40 select both PLCs (CTRL + mouse click)
41 load projects
For internal use only / © Siemens AG 2009 All Rights Reserved.
Industry Sector Communication
Trang 25SIMATIC Systems Support
I IA AS CS 2 FA
S7-1200 and STEP7 Basic V10.5
CommunicationPage 25
For internal use only / © Siemens AG 2009 All Rights Reserved.
I IA AS CS 2 FA
Phone: +49 (911) 895-4646E-Mail: sss.simatic@siemens.com
Thank you for your attention!