Siemens 6GK7242-7KX30-0XE0 Manual Do Utilizador
Configuration and programming
5.4 Programming the telecontrol instructions
CP 1242-7
Operating Instructions, 03/2012, C79000-G8976-C247-03
Operating Instructions, 03/2012, C79000-G8976-C247-03
57
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.
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.
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
● ISO-ON-TCP connections
● UDP connections
● SMS connections
The sending of SMS messages is supported only if this was set up in the STEP 7
configuration of the CP.
● Telecontrol connections
Note
Sending SMS messages to multiple recipients
If you want to send an identical SMS message to several recipients, you need to establish a
Sending SMS messages to multiple recipients
If you want to send an identical SMS message to several recipients, you need to establish a
connection to each recipient.
You will find more detailed information on the connection types in the description of the
TC_CON instruction.