EasyManua.ls Logo

Siemens SIMATIC S7-1200 - Page 851

Siemens SIMATIC S7-1200
1614 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Communication
11.2 PROFINET
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK
851
Table 11- 16 TSEND_C and TRCV_C data types for the parameters
Parameter and type
Data type
Description
REQ
(TSEND_C)
IN Bool REQ = 1 starts the TSEND_C send job on a rising edge with the
connection descricribed in CONNECT parameter. (CONT = 1 is
also required to establish and maintain the communication con-
nection.
EN_R
(TRCV_C)
IN Bool When EN_R = 1, TRCV_C is ready to receive. The receive job is
processed. (CONT = 1 is also required to establish and maintain
the communication connection.)
CONT IN Bool Controls the communication connection:
0: Disconnect the communication connection
1: Establish and maintain the communication connection
When sending data (TSEND_C) (rising edge at the REQ pa-
rameter), the CONT parameter must have the value TRUE in
order to establish or maintain a connection.
When receiving data (TRCV_C) (rising edge at the EN_R pa-
rameter), the CONT parameter must have the value TRUE in
order to establish or maintain a connection.
LEN IN UInt Maximum number of bytes to be sent (TSEND_C) or received
(TRCV_C):
Default = 0: The DATA parameter determines the length of
the data to be sent (TSEND_C) or received (TRCV_C).
Ad hoc mode = 65535: A variable length of data is set for
reception (TRCV_C).
CONNECT
IN_OUT
TCON_Param
Pointer to the connection description (Page 832)
DATA IN_OUT Variant
Contains address and length of data to be sent (TSEND_C)
Contains start address and maximum length of received data
(TRCV_C).
COM_RST IN_OUT Bool Allows restart of the instruction:
0: Irrelevant
1: Complete restart of the function block, existing connection
will be terminated.
DONE OUT Bool
0: Job is not yet started or still running.
1: Job completed without error.
BUSY OUT Bool
0: Job is completed.
1: Job is not yet completed. A new job cannot be triggered.
ERROR OUT Bool Status parameters with the following values:
0: No error
1: Error occurred during processing. STATUS provides de-
tailed information on the type of error.
STATUS OUT Word Status information including error information. (Refer to the
"Error and Status Parameters" table below.)
RCVD_LEN
(TRCV_C)
OUT Int Amount of data actually received, in bytes

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals