Hide thumbs Also See for S7-1200:
Table of Contents
Communication
10.2 PROFINET
TCON and TDISCON
Note
Initializing the communication parameters
After you insert the TCON instruction, use the "Properties" of the instruction (Page 150) to
configure the communication parameters (Page 153). As you enter the parameters for the
communication partners in the inspector window, STEP 7 enters the corresponding data in
the instance DB for the instruction.
If you want to use a multi-instance DB, you must manually configure the DB on both CPUs.
Table 10- 7
TCON and TDISCON instructions
LAD / FBD
STEP 7 automatically creates the DB when you insert the instruction.
1
Table 10- 8
Data types for the parameters of TCON and TDISCON
Parameter and type
REQ
IN
ID
IN
CONNECT
IN_OUT
(TCON)
528
"TCON_DB"(
req:=_bool_in_,
ID:=_undef_in_,
done=>_bool_out_,
busy=>_bool_out_,
error=>_bool_out_,
status=>_word_out_,
connect:=_struct_inout_);
"TDISCON_DB"(
req:=_bool_in_,
ID:=_word_in_,
done=>_bool_out_,
busy=>_bool_out_,
error=>_bool_out_,
status=>_word_out_);
Data type
Bool
CONN_OUC (Word)
TCON_Param
Description
TCP and ISO on TCP: TCON initiates a
communications connection from the CPU to a
communication partner.
TCP and ISO on TCP: TDISCON terminates a
communications connection from the CPU to a
communication partner.
Description
Control parameter REQ starts the job by establishing the
connection specified by ID. The job starts at rising edge.
Reference to the connection to be established (TCON) or
terminated (TDISCON) to the remote partner, or between
the user program and the communication layer of the
operating system. The ID must be identical to the
associated parameter ID in the local connection description.
Value range: W#16#0001 to W#16#0FFF
Pointer to the connection description (Page 153)
System Manual, 03/2014, A5E02486680-AG
S7-1200 Programmable controller
Table of Contents
loading

Table of Contents