Thursday, February 24, 2011

Week 3: Ethernet Communication Data Exchange between S7-1200 and S7-1200

Automation task:
Data exchange (e.g. for time synchronization) shall be enabled between an S7 1200 master controller and several S7-1200 slave controllers.


Figure 01

The S7-1200 compact controllers are configured using the STEP 7 Basic V10.5 SP2 programming user interface.

Automation solution:
For data exchange via Ethernet the SIMATIC S7-1200 provides the open TCP/IP communication with the T communication block:

  • TCON, TSEND, TRCV and TDISCON (with explicit execution of the connecting and disconnecting process) and

  • TSEND_C and TRCV_C (with integrated connecting and disconnecting process).

The following protocols are supported by the T communication blocks:

  • TCP native

  • ISO-on-TCP (dynamic data length transmission)

On the master as well as the slave side the communication blocks with explicit execution of the connecting and disconnecting process are selected:

  • TCON for establishing the connection

  • TSEND for sending the data

  • TRCV for receiving the data

  • TDISCON for disconnecting

The selected protocol is “ISO-on-TCP”. In the OSI model the “ISO-on-TCP” protocol is added to the TCP protocol and provides the advantage of a message-orientated approach, which is especially helpful for the communication between SIMATIC systems.
For the connection configuration in STEP 7 Basic V10.5 the respective connection parameter is identified via the IP address. For a configured connection a connection resource is reserved and the connection parameters are stored in a connection data block. The IP address of the partner is also stored here.
The maximum number for the open T communication is limited to a maximum of 8 simultaneous connections.
Changing the IP addresses in the connection data block enables data exchange between more than 8 different communication partners via the same connection resource.


Figure 02

Master and slaves have one send and one receive data block each (Send_DB and Receive_DB). The master sends a TCP/IP connection request to the first slave via the TCON block. To acknowledge the established connection the partner also executes the TCON block. For a synchronization request the master reads the system time and sends it to the slave via the TSEND communication block together with the user data. With the TRCV receive block the slave receives the data in the Receive_DB data block. The slave synchronizes its system time with the received clock time of the master. Then slave 1 sends its user data to the master via the TSEND block. The user data of slave 1 are stored on the master side via the TRCV block at the given location in the receive data block. Then the master disconnects from slave 1 via the TDISCON block. This procedure is repeated with the subsequent slaves. After the data exchange between master and the last slave the master starts the data exchange with slave 1. On the slave side a once established connection remains reserved. So TCON must only be called for initialization.


Need to know more?

Check it out at Siemens IA/DT Support

*All information are extracted from Siemens IA/DT Support Website
Step by Step Guide
  • Zoom Project V21


Step by Step Guide
  • X Reference V21


Step by Step Guide
  • Using help V21


Step by Step Guide
  • Show IP address V21


Step by Step Guide
  • Portal and Project view V21


Step by Step Guide
  • Online Monitor V21


Step by Step Guide
  • Online Comparison V21


Step by Step Guide
  • Loading the configuration V21


Step by Step Guide
  • LAD Favorites V21


Step by Step Guide
  • LAD Define tags V21


Step by Step Guide
  • LAD Branch Handling V21


Step by Step Guide
  • Indexed Array Access V21


Step by Step Guide
  • HMI Align Objects V21


Step by Step Guide
  • Drag & Drop PLC V21


Step by Step Guide
  • Drag & Drop Editor V21


Step by Step Guide
  • Changing Block V21


Step by Step Guide
  • Black Handling V21


Step by Step Guide
  • Assignment List V21


Step by Step Guide

  • Add signal board V21

Tuesday, February 22, 2011

Week 3: Ethernet Communication Data Exchange between S7-1200 and S7-1200

Automation task:
Data exchange (e.g. for time synchronization) shall be enabled between an S7 1200 master controller and several S7-1200 slave controllers.


Figure 01

The S7-1200 compact controllers are configured using the STEP 7 Basic V10.5 SP2 programming user interface.

Automation solution:
For data exchange via Ethernet the SIMATIC S7-1200 provides the open TCP/IP communication with the T communication block:

  • TCON, TSEND, TRCV and TDISCON (with explicit execution of the connecting and disconnecting process) and

  • TSEND_C and TRCV_C (with integrated connecting and disconnecting process).

The following protocols are supported by the T communication blocks:

  • TCP native

  • ISO-on-TCP (dynamic data length transmission)

On the master as well as the slave side the communication blocks with explicit execution of the connecting and disconnecting process are selected:

  • TCON for establishing the connection

  • TSEND for sending the data

  • TRCV for receiving the data

  • TDISCON for disconnecting

The selected protocol is “ISO-on-TCP”. In the OSI model the “ISO-on-TCP” protocol is added to the TCP protocol and provides the advantage of a message-orientated approach, which is especially helpful for the communication between SIMATIC systems.
For the connection configuration in STEP 7 Basic V10.5 the respective connection parameter is identified via the IP address. For a configured connection a connection resource is reserved and the connection parameters are stored in a connection data block. The IP address of the partner is also stored here.
The maximum number for the open T communication is limited to a maximum of 8 simultaneous connections.
Changing the IP addresses in the connection data block enables data exchange between more than 8 different communication partners via the same connection resource.


Figure 02

Master and slaves have one send and one receive data block each (Send_DB and Receive_DB). The master sends a TCP/IP connection request to the first slave via the TCON block. To acknowledge the established connection the partner also executes the TCON block. For a synchronization request the master reads the system time and sends it to the slave via the TSEND communication block together with the user data. With the TRCV receive block the slave receives the data in the Receive_DB data block. The slave synchronizes its system time with the received clock time of the master. Then slave 1 sends its user data to the master via the TSEND block. The user data of slave 1 are stored on the master side via the TRCV block at the given location in the receive data block. Then the master disconnects from slave 1 via the TDISCON block. This procedure is repeated with the subsequent slaves. After the data exchange between master and the last slave the master starts the data exchange with slave 1. On the slave side a once established connection remains reserved. So TCON must only be called for initialization.


Need to know more?

Check it out at Siemens IA/DT Support

*All information are extracted from Siemens IA/DT Support Website