How do you program the TCON communication instruction to establish a connection for the Open User Communication between two S7-1500 CPUs?
The protocols below are supported for this:
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.
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.
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.
Detailed information about programming Open User Communication in the S7-1500 CPU is available in following manuals:
The pictures in this FAQ response were created with STEP 7 V14 SP1 (TIA Portal).