Siemens 6GK7242-7KX30-0XE0 사용자 설명서
![Siemens](https://files.manualsbrain.com/attachments/fea10bc852adcb1f4f76708d5daebca542e532b9/common/fit/150/50/c53f5738b57089fc3d6c279e23db7450685a19c9616727fc1f659077967b/brand_logo.png)
Configuration and programming
5.4 Programming the telecontrol instructions
CP 1242-7
Operating Instructions, 03/2012, C79000-G8976-C247-03
Operating Instructions, 03/2012, C79000-G8976-C247-03
71
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
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
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
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:
Connection to a remote CP:
The access ID is made up of the following:
– STEP 7 project number
– Station number
– Slot
– 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.
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.
in the "CP authentication of the CP" parameter
group.
Connection to the telecontrol server:
Access ID = 0
To only write to the process image of the CP:
Access ID = DW#16#FEEDDADA