Configuration
5.4 Configuring the telecontrol instructions
CP 1242-7
Operating Instructions, 09/2011, C79000-G8976-C247-02
49
Explanation of the formal parameters
The following table explains all the formal parameters for the TC_CON 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.
ID
INPUT
CONN_OUC
1...07FF
h
Reference to the relevant connection.
The ID is assigned.
The value of ID is also required by the
system data type (SDT) of the
CONNECT parameter.
InterfaceID
INPUT
HW_ANY
Reference to the interface of the local
CP 1242-7 (see STEP 7 > CP
configuration > Telecontrol interface >
"Hardware identifier")
CONNECT
INOUT
VARIANT
See also "TCON_...: SDTs for
telecontrol connection
establishment"
Reference to a data block for connection
establishment.
The SDTs of the type TCON_ip_rfc,
TCON_IP_V4, TCON_phone or
TCON_WDC specify the structure of the
data block suitable for the relevant
connection.
In the SDTs, note the parameter
"ActiveEstablished" (active / passive
connection establishment).
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.