Configuration
5.4 Configuring the telecontrol instructions
CP 1242-7
54
Operating Instructions, 09/2011, C79000-G8976-C247-02
The destination address (connection partner) for the data to be sent is configured in the
TC_CON instruction.
Call interface in FBD representation
7&B6(1'
&211B28&
%22/
8,17
+:B,17(5)$&(
'21(
,'
/(1
,17(5)$&(
5(4
'$7$
67$786
(5525
%86<
%22/
:25'
%22/
%22/
9$5,$17
Explanation of the formal parameters
The following table explains all the formal parameters for the TC_SEND 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
InterfaceID
INPUT
HW_ANY
Reference to the interface of the local
CP 1242-7 (see STEP 7 > CP
configuration > Telecontrol interface >
"Hardware identifier")
LEN
INPUT
UINT
1...2048
Number of bytes of data to be sent,
maximum 2048
DATA
INOUT
VARIANT
Address reference to the send data area
of the CPU
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.