Configuration
5.4 Configuring the telecontrol instructions
CP 1242-7
62
Operating Instructions, 09/2011, C79000-G8976-C247-02
●
TCON_phone for connections to SMS clients
●
TCON_WDC for connections to telecontrol servers or stations that can be reached via the
telecontrol server.
The parameter assignment of the connection description is made in a data block of the same
type as the SDT.
NOTICE
No optimized block access
When creating the data blocks, use the "Standard" option for block access.
Reserved bits are not displayed during configuration in STEP 7.
System data type TCON_ip_rfc for connections to IPv4 stations
This connection type is supported only on ISO-on-TCP connections to communications
partners with a fixed IP address. The CP must be configured for the "GPRS direct" mode.
Table 5- 1
Parameters of TCON_ip_rfc
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#0C
Protocol variant 12 (C
h
): ISO-on-TCP connection
5
ActiveEstablished
BOOL
Identifier for the type of connection establishment:
0: Passive connection establishment
1: Active connection establishment
RemoteAddress
IP_V4
IP address of the connection partner
6 ... 9 ADDR
Array [1...4] of
Byte
IP address of the relevant connection partner
10 ...
11
-
-
-
- reserved -
RemoteTSelector
TSelector
Remote T selector
12 ...
15
TSelLen
UINT
Length of the remote T selector "RemoteTSelector"