Siemens 6GK7242-7KX30-0XE0 ユーザーズマニュアル

ページ / 108
 
Configuration and programming 
 
5.4 Programming the telecontrol instructions 
CP 1242-7 
Operating Instructions, 03/2012, C79000-G8976-C247-03 
51
 
Note the maximum number of parallel connections in the section Performance data 
 
NOTICE 
 
Connection abort   
If an existing connection is aborted by the communications partner or due to disturbances 
on the network, the connection must also be terminated by calling "TC_DISCON". Make 
sure that you take this into account in your programming. 
 
Application example for the "TC_CONFIG" instruction   
With the "TC_CONFIG" instruction, you cannot permanently overwrite the configuration data 
of the CP 1242-7. This can have practical applications if you want to activate a TeleService 
partner temporarily by setting an input and this partner is disabled in the default 
configuration. 
5.4 
Programming the telecontrol instructions 
5.4.1 
TC_CON: Establish connection via the GSM network 
Meaning 
The TC_CON instruction allows an S7-1200 with a CP 1242-7 to establish a connection of 
the following types: 
●  ISO-ON-TCP 
Connection partner is a CP 1242-7. 
ISO-ON-TCP connections are used only in "GPRS direct" mode. 
●  UDP 
Any connection partner is possible. 
●  SMS 
The connection partner is an SMS client. 
●  Telecontrol connection 
The connection partner is either a telecontrol server or another station that can be 
reached via the telecontrol server. 
A TC_CON establishes exactly one connection. Depending on the mode of the CP 1242-7 
and the protocol you are using, a maximum of 3 to 5 simultaneous connections with unique 
IDs (see below) are supported per CP. You will find the maximum number of simultaneous 
connections in the performance data of the CP.