×
Siemens Industry Online Support
Siemens AG
Entry type: FAQ Entry ID: 58875807, Entry date: 04/25/2018
(8)
Rate

How do you program the TCON communication instruction to establish a connection for the Open User Communication between two S7-1500 CPUs?

  • Entry
  • Associated product(s)
You can use Open User Communication over Industrial Ethernet, for example, for data exchange through the integrated PROFINET interface.

The protocols below are supported for this:

  • TCP
  • ISO-on-TCP
  • UDP

The following communication instructions are available for Open User Communication over Industrial Ethernet.

  • TCON for establishing a connection
  • TDISCON for ending a connection
  • TSEND for sending data
  • TRCV for receiving data

In STEP 7 V14 SP1 (TIA Portal) you will find the above-mentioned communication instructions in the "Instructions" task card in the "Communication > Open User Communication > Other" palette.

This example shows how to program the TCON communication instruction to establish a connection for the Open User Communication between two S7-1500 CPUs.

In the S7-1500 CPU which actively establishes the connection, the TCON communication instruction returns a message (ERROR=1) to the user if the remote connection partner cannot be reached or the port addressed there is not available. In this case there must follow another attempt to establish a connection with a positive edge at the REQ input.
For this reason, in the S7-1500 CPU that actively establishes the connection, the REQ input of the TCON communication instruction must remain toggled until the TCON communication instruction has been completed successfully with DONE=1 and the connection is established.

The document below describes how to program establishment of the connection and data exchange in the active and passive S7-1500 CPUs.

  NET_TCON_S7-1500_en.pdf (854,4 KB)

Download for STEP 7 V14 SP1
The download includes the "T_COMM_S7-1500.zip" project.
Copy the "T_COMM_S7-1500.zip" file into a separate directory and then start the file with a double-click. You can then use STEP 7 Professional V14 SP1 (TIA Portal) to open and process the extracted project data.

 Registrierung notwendig  T_COMM_S7-1500.zip (1,1 MB)

Download for STEP 7 V15
The download includes the "T_COMM_S7-1500_V15.zip" project.
Copy the "T_COMM_S7-1500_V15.zip" file into a separate directory and then start the file with a double-click. You can then use STEP 7 Professional V15 (TIA Portal) to open and process the extracted project data.

 Registrierung notwendig  T_COMM_S7-1500_V15.zip (1,2 MB)

Additional Information
Detailed information about programming Open User Communication in the S7-1500 CPU is available in following manuals:

Creation environment
The pictures in this FAQ response were created with STEP 7 V14 SP1 (TIA Portal).

Security information
In order to protect technical infrastructures, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art IT security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about cyber security, please visit
https://www.siemens.com/cybersecurity#Ouraspiration.