Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
https://support.industry.siemens.com/cs/ww/en/view/98278624
Warranty and liability
Note The Application Examples are not binding and do not claim to be complete
regarding the circuits shown, equipping and any eventuality. The Application
Examples do not represent customer-specific solutions. They are only intended
to provide support for typical applications. You are responsible for ensuring that
the described products are used correctly. These Application Examples do not
relieve you of the responsibility to use safe practices in application, installation,
operation and maintenance. When using these Application Examples, you
recognize that we cannot be made liable for any damage/claims beyond the
liability clause described. We reserve the right to make changes to these
Application Examples at any time without prior notice.
If there are any deviations between the recommendations provided in these
Application Examples and other Siemens publications – e.g. Catalogs – the
contents of the other documents have priority.
We do not accept any liability for the information contained in this document.
Any claims against us – based on whatever legal reason – resulting from the use of
the examples, information, programs, engineering and performance data etc.,
described in this Application Example shall be excluded. Such an exclusion shall
not apply in the case of mandatory liability, e.g. under the German Product Liability
Act (“Produkthaftungsgesetz”), in case of intent, gross negligence, or injury of life,
body or health, guarantee for the quality of a product, fraudulent concealment of a
Siemens AG 2016 All rights reserved
Security Siemens provides products and solutions with industrial security functions that
informa- support the secure operation of plants, systems, machines and networks.
tion In order to protect plants, systems, machines and networks against cyber
threats, it is necessary to implement – and continuously maintain – a holistic,
state-of-the-art industrial security concept. Siemens’ products and solutions only
form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems,
machines and networks. Systems, machines and components should only be
connected to the enterprise network or the internet if and to the extent necessary
and with appropriate security measures (e.g. use of firewalls and network
segmentation) in place.
Additionally, Siemens’ guidance on appropriate security measures should be
taken into account. For more information about industrial security, please visit
http://www.siemens.com/industrialsecurity.
Siemens’ products and solutions undergo continuous development to make them
more secure. Siemens strongly recommends to apply product updates as soon
as available and to always use the latest product versions. Use of product
versions that are no longer supported, and failure to apply latest updates may
increase customer’s exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial
Security RSS Feed under http://www.siemens.com/industrialsecurity.
Table of contents
Warranty and liability ................................................................................................... 2
1 Introduction ........................................................................................................ 4
1.1 CPU-CPU Communication ................................................................... 4
2 Open User Communication .............................................................................. 5
2.1 Instructions for Open User Communication ......................................... 5
2.2 Required knowledge............................................................................. 5
3 Automation Task ................................................................................................ 6
4 Configuration of passive partners (Machine PLCs) ....................................... 7
4.1 Configure PLC in STEP7 (S7-300/400) ............................................... 7
4.2 Configure PLC in TIA Portal (S7-300/400) ......................................... 10
4.3 Configure PLC in TIA Portal (S7-1500) .............................................. 14
4.4 Configure PLC in TIA Portal (S7-1200) .............................................. 17
5 Configuration of active partners (Central PLC/LCU) ................................... 21
5.1 Configure PLC in STEP7 (S7-300/400) ............................................. 21
5.2 Configure PLC in TIA Portal (S7-300/400) ......................................... 24
5.3 Configure PLC in TIA Portal (S7-1500) .............................................. 28
6 Demo projects .................................................................................................. 31
Siemens AG 2016 All rights reserved
1 Introduction
1.1 CPU-CPU Communication
To realize CPU-CPU communication over Ethernet Networks different options are
available for the users. To select a best solution depends on various factors. Based
on these factors a solution can be selected. Using Ethernet networks it is possible
to use:
– S7-Communication
– Open Communication (e.g. TCP/IP, UDP)
– PROFINET Data Record and IO Communication using I-Device
– OPC Server
– …
Depending on the chosen communication protocol different functions and
mechanisms on the PLCs have to be used.
NOTE This application example is making use of the PLC’s integrated PROFINET
Interface (for S7-1500 also on other PN-Interfaces). For communication over
other interfaces please ask your Siemens F&B contact or the online support
team.
Siemens AG 2016 All rights reserved
Connection establishment
For Open User Communication, instructions for establishing and terminating the
connection must exist for both communication partners. One communication
partner sends its data using TSEND while the other communication partner
receives the data using TRCV.
One of the communication partners starts the connection establishment as the
active partner. The other communication partner reacts by starting its connection
establishment as the passive partner. If both communication partners have initiated
their connection establishment, the communication connection is fully established.
Connection configuration
For each connection establishment, a connection description DB with the
TCON_Param must be configured. This data structure contains the parameters
necessary for configuring the connection between the user program and the
communications level of the operating system.
You can manually create, assign parameters and write directly to the instruction
connection description DB or using Open TCP wizard.
3 Automation Task
Overview of the automation task
SIMATIC IO-Controller
S7-400
S7-1500
S7-300
PROFINET
S7-400 D445
S7-1500
S7-300
NOTE Depend on the CPU type only the 2nd byte must be changed. If there are
multiple connections to the same communication partner, you have to ensure
Siemens AG 2016 All rights reserved
that each value of local_tsap_id that you use in your CPU is unique.
– rem_staddr
IP address of the partner (Central CPU/ LCU), for e.g. 10.20.130.20
3. After making changes to the function FC4000, save the function.
4. Call the function in OB1 and download PDI IF DB and FC4000 into PLC.
2. Instance FB 500 with a data block and configure FB500 for PDI interface data
block transfer with central PLC/LCU.
3. Save and download the user program into PLC. To initiate data transfer the
input ENABLE must be set to true.
NOTE Depend on the CPU type only the 2nd byte must be changed. If there are
multiple connections to the same communication partner, you have to ensure
that each value of local_tsap_id that you use in your CPU is unique.
– rem_staddr
IP address of the partner (Central CPU/ LCU), for e.g. 10.20.130.20
3. After making changes to the function FC4000, save the function.
4. Call the function in OB1 and download PDI IF DB and FC4000 into PLC
Figure 4-1
Siemens AG 2016 All rights reserved
7. Save and download the user program into PLC. To initiate data transfer the
input ENABLE must be set to true.
Figure 4-2
Siemens AG 2016 All rights reserved
NOTE Depend on the CPU type only the 2nd byte must be changed. If there are
multiple connections to the same communication partner, you have to ensure
that each value of local_tsap_id that you use in your CPU is unique.
– rem_staddr
IP address of the partner (Central CPU/ LCU), for e.g. 10.20.130.20
10. After making changes to the function FC4000, save the function
block FB500 (PCC_TCM) allows you to exchange the PDI interface to central
CPU/LCU via Open IE Communication
3. Save and download the user program into PLC. To initiate data transfer the
input ENABLE must be set to true.
NOTE Depend on the CPU type only the 2nd byte must be changed. If there are
multiple connections to the same communication partner, you have to ensure
that each value of local_tsap_id that you use in your CPU is unique.
– rem_staddr
IP address of the partner (Central CPU/ LCU), for e.g. 10.20.130.20
3. After making changes to the function FC4000, save the function.
Siemens AG 2016 All rights reserved
124 Bytes)
PDI_Para_OMACv2 P#DBNr.DBX0.0 BYTE 148 P#DBNr.DBX0.0 BYTE Status & Admin (148
148 Bytes)
4. Save and download the user program into CPU. To initiate the data transfer
input ENABLE must be set to true.
Figure 5-1
NOTE Depend on the CPU type only the 2nd byte must be changed. If there are
multiple connections to the same communication partner, you have to ensure
Siemens AG 2016 All rights reserved
that each value of local_tsap_id that you use in your CPU is unique.
– rem_staddr
IP address of the partner (Central CPU/ LCU), for e.g. 10.20.130.20
3. After making changes to the function FC4000, save the function.
4. Call the function in OB1 and download the blocks into PLC.
7. Save and download the user program into PLC. To initiate data transfer the
input ENABLE must be set to true.
NOTE To establish connection the passive partner (machine PLC) must be configured.
Once the connection is established the PDI interface DB information can be
exchanged.
NOTE Depend on the CPU type only the 2nd byte must be changed. If there are
multiple connections to the same communication partner, you have to ensure
Siemens AG 2016 All rights reserved
that each value of local_tsap_id that you use in your CPU is unique.
– rem_staddr
IP address of the partner (Central CPU/ LCU), for e.g. 10.20.130.20
3. After making changes to the function FC4000, save the function.
4. Call the function in OB1 and download the data block and function into CPU.
3. Save and download the user program into PLC. To initiate data transfer the
input ENABLE must be set to true.
NOTE To establish connection the passive partner (machine PLC) must be configured.
Once the connection is established the PDI interface DB information can be
exchanged.
NOTE Depend on the CPU type only the 2nd byte must be changed. If there are
multiple connections to the same communication partner, you have to ensure
that each value of local_tsap_id that you use in your CPU is unique.
– rem_staddr
IP address of the partner (Central CPU/ LCU), for e.g. 10.20.130.20
3. After making changes to the function FC4000, save the function.
block FB501 (PCC_TCC) allows you to exchange the PDI interface to machine
PLCs via Open IE Communication.
3. Save and download the user program into PLC. To initiate data transfer the
input ENABLE must be set to true.
6 Demo projects
6.1 ET 200S CPU as Active Partner
Description
ET 200S PLC (ET 200S with IM 151-8 PN/DP CPU) is configured as central PLC
and communicates with 4 machine PLCs via Open IE communication. Central PLC
is configured as active partner and all other machine PLCs as passive partners.
Each machine PLC will exchange PDI interface DB with central PLC.
Status and Admin areas in the PDI interface are read by central PLC and
Command area will be written to the respective machine PLC.
SIMATIC IO-Controller
ET 200S
IM151-8 PN/DP
PDI
Siemens AG 2016 All rights reserved
PROFINET
ET 200S SIMOTION
IM 151-8 PN/DP S7 1516-3 D445-2
PN/DP
NOTICE S7-1516-3 PN/DP and S7-1215C PLCs are configured in TIA portal V13SP1,
SIMOTION Controller using SIMOTION SCOUT and ET 200S PLCs are
configured with STEP 7 V5.5 SP3.
SIMATIC IO-Controller
S7 1516-3
PN/DP
PDI
PROFINET
Siemens AG 2016 All rights reserved
ET 200S SIMOTION
IM 151-8 PN/DP D445-2
PDI PDI
NOTICE S7-1516-3 PN/DP, S7-1215C and ET 200S PLCs are configured in TIA portal
V13 SP1.
7 Abbreviations
F&B Food and Beverage
HMI Human Machine Interface
IF Interface
LCU Line Control Unit
OMAC Open Modular Architecture Controls
PLC Programmable Logic Controller
PDI Plant Data Interface
PCC Plant Communication Concept
Siemens AG 2016 All rights reserved
8 Related literature
Topic
\1\ Siemens Industry Online Support
https://support.industry.siemens.com
\2\ Download page of this entry
https://support.industry.siemens.com/cs/ww/en/view/98278624
9 History
Version Date Modifications
V1.0 07/2014 First version
V2.0 05/2016 Additional PDI-Types added
Siemens AG 2016 All rights reserved