Configuration
5.4 Configuring the telecontrol instructions
CP 1242-7
Operating Instructions, 09/2011, C79000-G8976-C247-02
55
Parameter
Declaration Data type
Possible values
Description
ERROR
OUTPUT
BOOL
0: -
1: Error
Error code
For the meaning in conjunction with the
parameters DONE and STATUS, refer to
Codes of the instruction.
STATUS
OUTPUT
WORD
Status code
For the meaning in conjunction with the
parameters DONE and ERROR, refer to
Codes of the instruction.
The codes BUSY, DONE and ERROR
The codes of DONE and ERROR are relevant only when BUSY = 0.
BUSY DONE
ERROR
Meaning
0
0
0
No job being executed
You will find all other code combinations of DONE and ERROR in the following table.
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
80E1
H
Timeout:
Increase the value of the "Transmit timeout" in the configuration of the CP 1242-7 or
Check the connection partner.
0
1
80E4
H
Unknown ID:
First call TC_CON.
0
1
80E6
H
No query in progress (instruction call not started)
0
1
80E7
H
Data to be sent not completely transferred:
Repeat the job.
0
1
80E8
H
Remote partner cannot be reached.
0
1
80E9
H
Connection establishment by remote partner:
Check the connection partner. If necessary, terminate the connection with TC_DISCON
and establish it again with TC_CON.