103BCommunication
10.2 PROFINET
S7-1200 Programmable controller
402
System Manual, 11/2011, A5E02486680-05
The minimum size of data that you can transmit (TSEND_C) or receive (TRCV_C) is one
byte; the maximum size is 8192 bytes. TSEND_C does not support the transmission of data
from boolean locations, and TRCV_C will not receive data into boolean locations. For
information transferring data with these instructions, see the section on data consistency
(Page 143).
Note
Initializing the communication parameters
After you insert the TSEND_C or TRCV_C instruction, use the "Properties" of the instruction
(Page 118) to configure the communication parameters. As you enter the parameters for the
communication partners in the inspector window, STEP 7 enters the corresponding data in
the DB for the instruction.
If you want to use a multi-instance DB, you must manually configure the DB on both CPUs.
Table 10- 2 TSEND_C and TRCV_C instructions
LAD / FBD
SCL
Description
"TSEND_C_DB"(
req:=_bool_in_,
cont:=_bool_in_,
len:=_uint_in_,
done=>_bool_out_,
busy=>_bool_out_,
error=>_bool_out_,
status=>_word_out_,
connect:=_struct_inout_,
data:=_variant_inout_,
com_rst:=_bool_inout_);
TSEND_C establishes a TCP or ISO on TCP
communication connection to a partner station,
sends data, and can terminate the connection.
After the connection is set up and established, it
is automatically maintained and monitored by
the CPU.
"TRCV_C_DB"(
en_r:=_bool_in_,
cont:=_bool_in_,
len:=_uint_in_,
done=>_bool_out_,
busy=>_bool_out_,
error=>_bool_out_,
status=>_word_out_,
rcvd_len=>_uint_out_,
connect:=_struct_inout_,
data:=_variant_inout_,
com_rst:=_bool_inout_);
TRCV_C establishes a TCP or ISO on TCP
communication connection to a partner CPU,
receives data, and can terminate the connection.
After the connection is set up and established, it
is automatically maintained and monitored by
the CPU.
1
STEP 7 automatically creates the DB when you insert the instruction.