Configuration
5.4 Configuring the telecontrol instructions
CP 1242-7
Operating Instructions, 09/2011, C79000-G8976-C247-02
53
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
Meaning
1
0
0000
H
Job executed without errors
0
0
7000
H
No job processing active (first instruction call)
0
0
7001
H
Job processing started (first instruction call)
0
0
7002
H
Job processing already active (renewed instruction call when BUSY = 1)
0
1
8086
H
Illegal value for ID
0
1
80E4
H
Unknown ID: No connection with this ID has been established by TC_CON.
0
1
80E6
H
No query in progress (instruction call not started)
0
1
80F5
H
Invalid connection endpoint:
Connection establishment by TC_CON failed or
Connection terminated by remote partner.
0
1
80F6
H
Format error of a parameter in the called data block (wrong length, wrong format or
invalid value)
Check the configuration of the "TC_CON..." SDT.
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
Sending of SMS messages is supported only if permitted by the configuration.
●
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.