Configuration
5.4 Configuring the telecontrol instructions
CP 1242-7
60
Operating Instructions, 09/2011, C79000-G8976-C247-02
Explanation of the formal parameters
The following table explains all the formal parameters for the TC_CONFIG instruction
Parameter
Declaration Data type
Possible values
Description
REQ
INPUT
BOOL
0, 1
The instruction is started and the status
codes initialized on a rising edge.
Updating of the DONE, ERROR and
STATUS status codes when there is a
positive edge.
InterfaceID
INPUT
HW_ANY
Reference to the interface of the local
CP 1242-7
CONFIG
INOUT
VARIANT
See also "IF_CONF: SDT for
telecontrol configuration data
Reference to the memory area with the
collected configuration data to be
modified
ENO
OUTPUT
BOOL
0: Error
1: Error-free
Enable output
If there is a runtime error with the
instruction, ENO = 0 is set.
BUSY
OUTPUT
BOOL
0: Execution of the instruction
not started, completed or
aborted
1: The instruction is executing
Display of the processing status of the
instruction
DONE
OUTPUT
BOOL
0: -
1: The instruction executed
successfully
This parameter indicates whether or not
the job was completed without errors.
For the meaning in conjunction with the
parameters ERROR and STATUS, refer
to Codes of the instruction.
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.