Tc_Send: Send Data Via The Gsm Network - Siemens SIMATIC NETS7-1200 Operating Instructions Manual

Telecontrol cp 1242-7
Hide thumbs Also See for SIMATIC NETS7-1200:
Table of Contents

Advertisement

The codes DONE, ERROR and STATUS
The following table shows the condition codes formed based on DONE, ERROR and
STATUS that must be evaluated by the user program.
DONE
ERROR
STATUS
1
0
0000
0
0
7000
0
0
7001
0
0
7002
0
1
8086
0
1
80E4
0
1
80E6
0
1
80F5
0
1
80F6
5.4.3

TC_SEND: Send data via the GSM network

Meaning
The TC_SEND instruction allows the sending of data via programmed connections of the
following types:
● ISO-ON-TCP connections
● UDP connections
● SMS connections
● Telecontrol connections
You will find more detailed information on the connection types in the description of the
TC_CON instruction.
The ID parameter references the GPRS connection. The value of ID must correspond to the
value used for ID by TC_CON.
The InterfaceID parameter references the GPRS interface of the required local CP. The
value must be the same as that used by TC_CON for InterfaceID.
The amount of data to be sent is specified with the LEN parameter.
The size of the data area specified in DATA must be at least as large as the number of bytes
configured for LEN. Permitted data types in the data area specified in DATA are all except
BOOL and ARRAY of BOOL.
CP 1242-7
Operating Instructions, 09/2011, C79000-G8976-C247-02
Meaning
Job executed without errors
H
No job processing active (first instruction call)
H
Job processing started (first instruction call)
H
Job processing already active (renewed instruction call when BUSY = 1)
H
Illegal value for ID
H
Unknown ID: No connection with this ID has been established by TC_CON.
H
No query in progress (instruction call not started)
H
Invalid connection endpoint:
H
Connection establishment by TC_CON failed or
Connection terminated by remote partner.
Format error of a parameter in the called data block (wrong length, wrong format or
H
invalid value)
Check the configuration of the "TC_CON..." SDT.
Sending of SMS messages is supported only if permitted by the configuration.
5.4 Configuring the telecontrol instructions
Configuration
53

Advertisement

Table of Contents
loading

Table of Contents