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

ページ / 108
Configuration and programming 
 
5.3 Using and creating the telecontrol instructions 
 
CP 1242-7 
50
 
Operating Instructions, 03/2012, C79000-G8976-C247-03 
CP parameter for configuring the telecontrol server 
The following parameters from the STEP 7 configuration of the CP 1242-7 are also required 
for the configuration of the telecontrol server: 
●  Address and port of the telecontrol server 
●  Project number 
●  Station number 
●  Slot of the CP 
●  Telecontrol password 
●  Authorized phone numbers 
●  Connection mode (permanent/temporary) 
5.3 
Using and creating the telecontrol instructions 
Using the instructions for GPRS communication 
The telecontrol instructions are necessary whenever data of the station needs to be sent to a 
communications partner. 
If you only want to use the TeleService function, no telecontrol instructions are necessary. 
Installing the telecontrol instructions and creating the SDTs 
You need to install the telecontrol instructions "TC_..." in a new library in STEP 7 after 
installing the support package "HSP CP1242-7" (file name: <TC_LIB.al11>). 
You create the corresponding system data types (SDTs) "TCON_xxx" and "IF_CONF" as a 
data block. The procedure is described in the sections for the two SDTs. 
Connection establishment with the "TC_CON" instruction 
Connections are established via GPRS using the "TC_CON" instruction. Note that a 
separate "TC_CON" instruction must be called for each connection. 
Once a connection is established, data can then be received with the "TC_RECV" instruction 
and/or sent with the "TC_SEND" instruction. 
A separate connection must be established for each communications partner even if 
identical blocks of data are being sent. 
After a successful transfer of the data, a connection can be terminated. A connection is also 
terminated by calling "TC_DISCON".