Configuration
5.4 Configuring the telecontrol instructions
CP 1242-7
Operating Instructions, 09/2011, C79000-G8976-C247-02
65
System data types for connections to telecontrol servers or remote stations
You can configure the connection to the telecontrol server assigned to the S7-1200 or to a
remote station that can be reached via the telecontrol server with TCON_WDC. The address
data of the telecontrol server assigned to the CP can be found in STEP 7 in the "Telecontrol
interface > Mode" tab of the CP. The telecontrol server or a remote station is addressed
using the host name or the IP address.
The "RemoteWdcAddress" parameter of TCON_WDC specifies the Access ID of the
connection partner.
Table 5- 4
Parameters of TCON_WDC
Byte
Parameter
Data type
Initial value
Description
0 ... 1 InterfaceID
HW_ANY
Reference to the interface of the local CP 1242-7
(see STEP 7 > CP configuration > Telecontrol
interface > "Hardware identifier")
2 ... 3 ID
CONN_OUC
1...07FF
h
Reference to the GPRS connection. The ID is
assigned and must be unique within the CPU.
Here, the same value as that of the ID parameter of
the TC_CON instruction must be used.
4
ConnectionType
BYTE
W#16#0F
Protocol variant 15 (F
h
): Telecontrol connection using
an IP address
5
ActiveEstablished
BOOL
Identifier for the type of connection establishment:
0: Passive connection establishment
1: Active connection establishment
6 ... 7 -
-
-
- reserved -
8 ... 11 RemoteWdcAddress
DWORD
Specifies the Access ID (hex). The access ID
depends on the connection partner.
Connection to a remote CP:
The access ID is made up of the following:
–
STEP 7 project number
–
Station number
–
Slot
If the remote station has more than one
GPRS-CP and you do not want to specify the
path, the last byte for the slot must be set to
0.
You will find the access ID in the STEP 7 project
in the "CP authentication of the CP" parameter
group.
Connection to the telecontrol server:
Access ID = 0
To only write to the process image:
Access ID = W#16#FEEDDADA