You are on page 1of 9

FAQ 11/2015

Properties of TSEND_C and


TRCV_C V1.4
S7-1500 CPU, CP 1543-1

https://support.industry.siemens.com/cs/ww/en/view/109479564
This entry is from the Siemens Industry Online Support. The general terms of use
(http://www.siemens.com/terms_of_use) apply.

Security Siemens provides products and solutions with industrial security functions that
Informati support the secure operation of plants, solutions, machines, equipment and/or
on networks. They are important components in a holistic industrial security
concept. With this in mind, Siemens’ products and solutions undergo continuous
development. Siemens recommends strongly that you regularly check for
product updates.
For the secure operation of Siemens products and solutions, it is necessary to
take suitable preventive action (cell protection concept, for example) and
integrate each component into a holistic, state-of-the-art industrial security
concept. Third-party products that may be in use should also be considered.
For more information about industrial security, visit
http://www.siemens.com/industrialsecurity.
To stay informed about product updates as they occur, sign up for a product-
specific newsletter. For more information, visit
http://support.industry.siemens.com.
Siemens AG 2015 All rights reserved

Contents
1 TSEND_C ............................................................................................................ 3
1.1 Call with Delayed REQ ......................................................................... 3
1.2 Call with CONT=1 and REQ=1 ............................................................ 4
2 TRCV ................................................................................................................... 5
2.1 Call with Delayed EN_R ....................................................................... 5
2.2 Call with CONT=1 and EN_R=1 ........................................................... 6
2.3 Connection Disconnection.................................................................... 7
3 TSEND_C and TRCV_C ..................................................................................... 8
4 Hardware and Software Components.............................................................. 9
4.1 Validity .................................................................................................. 9
4.2 Hardware Components Used ............................................................... 9

Properties of TSEND_C and TRCV_C V1.4


Entry ID: 109479564, V1.0, 11/2015 2
1 TSEND_C

1 TSEND_C
The REQ parameter has no effect as long as the CONT parameter is not set.

1.1 Call with Delayed REQ


The TSEND_C instruction delivers the STATUS "7000" until CONT=1 is set and
connection establishment is started. While the connection is being established the
STATUS parameter has the value "7001" and BUSY=1. When the connection has
been established, the STATUS parameter has the value "0" for one cycle and
DONE=1. No data has been sent yet. Then, when the connection has been
established, the instruction indicates this with the value "7004" at the STATUS
parameter.
If REQ=1 is set, the STATUS parameter has the value "7002" and the instruction
reports BUSY=1 until the Send job has been completed. When the data has been
sent successfully, the following values are reported: STATUS=0, DONE=1 and
BUSY=0. The STATUS parameter then switches back to the value "7004"; this
means that the TSEND_C instruction is no longer in Send mode. For a new Send
job the REQ parameter must be reset for one cycle and then set again.
Figure 1-1

CONT
Siemens AG 2015 All rights reserved

REQ

DONE

BUSY

ERROR
7000

7001

0000

7004

7002

0000

7004

STATUS ... ... ... ...

Properties of TSEND_C and TRCV_C V1.4


Entry ID: 109479564, V1.0, 11/2015 3
1 TSEND_C

1.2 Call with CONT=1 and REQ=1


The TSEND_C instruction delivers the STATUS "7000" until CONT=1 is set and
connection establishment is started. While the connection is being established the
STATUS parameter has the value "7001" and BUSY=1. When the connection has
been established, the STATUS parameter has the value "0" for one cycle and
DONE=1. No data has been sent yet. Then the TSEND_C instruction outputs the
value "7002" at the STATUS parameter, reports BUSY=1 and starts the Send job.
When the data has been sent successfully, the following values are reported:
STATUS=0, DONE=1 and BUSY=0. The STATUS parameter then switches back
to the value "7004"; this means that the TSEND_C instruction is no longer in Send
mode. For a new Send job the REQ parameter must be reset for one cycle and
then set again.
Figure 1-2

CONT

REQ

DONE
Siemens AG 2015 All rights reserved

BUSY

ERROR
7000

7001

0000

7002

0000

7004
STATUS ... ... ...

Properties of TSEND_C and TRCV_C V1.4


Entry ID: 109479564, V1.0, 11/2015 4
2 TRCV

2 TRCV
No data can be received with EN_R as long as the CONT parameter is not set. The
instruction outputs the value "80A1" at the STATUS parameter.

2.1 Call with Delayed EN_R


The instruction delivers the STATUS "7000" until CONT=1 is set and connection
establishment is started. While the connection is being established the STATUS
parameter has the value "7001" and BUSY=1. When the connection has been
established, the STATUS parameter has the value "0" for one cycle and NDR=1.
No data has been received yet. Then, when the connection has been established,
the instruction indicates this with the value "7004" at the STATUS parameter.
If EN_R=1 is set, the STATUS parameter has the value "7002" and the instruction
reports BUSY=1, which means that the instruction is ready to receive. When the
data has been received successfully, the following values are reported:
STATUS=0, NDR=1 and BUSY=0. The instruction outputs the value "7002" again
at the STATUS parameter and reports BUSY=1, which means that the instruction
continues to be ready to receive.
The RCVD_LEN parameter is used to differentiate between whether the
connection was just being established or whether data was being received. The
RCVD_LEN parameter has the value "0" when the connection is being established.
When data is being received the value of the RCVD_LEN parameter corresponds
Siemens AG 2015 All rights reserved

to the length of the received data.


Figure 2-1

CONT

EN_R

NDR

BUSY

ERROR
7000

7001

0000

7004

7002

0000

7002

STATUS ... ... ... ...

Properties of TSEND_C and TRCV_C V1.4


Entry ID: 109479564, V1.0, 11/2015 5
2 TRCV

2.2 Call with CONT=1 and EN_R=1


The instruction delivers the STATUS "7000" until CONT=1 is set and connection
establishment is started. While the connection is being established the STATUS
parameter has the value "7001" and BUSY=1. When the connection has been
established, the STATUS parameter has the value "0" for one cycle and NDR=1.
No data has been received yet. The TRCV_C instruction outputs the value "7002"
again at the STATUS parameter and reports BUSY=1, which means that the
instruction continues to be ready to receive. When the data has been received
successfully, the following values are reported: STATUS=0, NDR=1 and BUSY=0.
The instruction outputs the value "7002" again at the STATUS parameter and
reports BUSY=1, which means that the instruction continues to be ready to receive.
The RCVD_LEN parameter is used to differentiate between whether the
connection was just being established or whether data was being received. The
RCVD_LEN parameter has the value "0" when the connection is being established.
When data is being received the value of the RCVD_LEN parameter corresponds
to the length of the received data.
Figure 2-2

CONT
Siemens AG 2015 All rights reserved

EN_R

NDR

BUSY

ERROR
7000

7001

7002

0000

7002

0000

7002
0000

STATUS ... ... ... ...

Properties of TSEND_C and TRCV_C V1.4


Entry ID: 109479564, V1.0, 11/2015 6
2 TRCV

2.3 Connection Disconnection


If CONT=1 and EN_R=1 are set, the TRCV_C instruction delivers the value "7002"
at the STATUS parameter and BUSY=1, which means that the instruction is ready
to receive.
As soon as EN_R is reset the instruction is no longer ready to receive. The
instruction outputs the value "7004" at the STATUS parameter and BUSY=0. When
the CONT parameter is reset, the connection is disconnected. While the
connection is being disconnected the STATUS parameter has the value "7003" and
BUSY=1. When the connection has been disconnected, the STATUS parameter
has the value "0" for one cycle and NDR=1. Then the STATUS parameter has the
value "7000".
Figure 2-3

CONT

EN_R

NDR
Siemens AG 2015 All rights reserved

BUSY

ERROR
7002

7004

7003

0000

7000

STATUS ... ... ...

Properties of TSEND_C and TRCV_C V1.4


Entry ID: 109479564, V1.0, 11/2015 7
3 TSEND_C and TRCV_C

3 TSEND_C and TRCV_C


If the TSEND_C and TRCV_C instructions are triggered simultaneously with
CONT=1, then the instruction called first in the cycle, in this example TSEND_C,
delivers the correct values at the STATUS parameter during establishment of the
connection, which means that during establishment of the connection
STATUS=7001 and BUSY=1. When the connection has been established
successfully, the following values are reported: STATUS=0, BUSY=0 and
DONE=1.
In this example the TRCV_C instruction was called after TSEND_C in the cycle.
This delivers different value at the STATUS parameter to those described in
section 2.1 and section 2.2. The instruction immediately outputs the value "0" at the
STATUS parameter and NDR=1. Then the STATUS parameter has the value
"7004" even if the connection has not yet been established. A statement about the
connection status can only be given via the STATUS parameter of the TSEND_C
instruction.
If the CONT parameter is reset on one instruction, connection disconnection is
started. The other instruction continues to deliver the value "7004" at the STATUS
parameter for an established connection. This statement is not correct. The
connection remains disconnected. The connection is established again only when
the CONT parameter is set from 0 to 1 on one of the instructions.
Figure 3-1
Siemens AG 2015 All rights reserved

TSEND_C

CONT

DONE

BUSY

ERROR
7000
7001
7001

0000
7004

7003

0000
7000

STATUS
... ... ... ...

TRCV_C

CONT

NDR

BUSY

ERROR
7000
0000
7004

7004
7004

7004

7004
7004

STATUS
... ... ... ...

Properties of TSEND_C and TRCV_C V1.4


Entry ID: 109479564, V1.0, 11/2015 8
4 Hardware and Software Components

4 Hardware and Software Components


4.1 Validity
The behavior of the instructions TSEND_C and TRCV_C is valid for:
STEP 7 V12 and higher
S7-1500
TSEND_C V1.4 for S7-1500
TRCV_C V1.4 for S7-1500

4.2 Hardware Components Used


The behavior of the instructions TSEND_C and TRCV_C was tested with the
following hardware components.
Table 4-1
Component Quantity Article number Note
CPU 1516-3 PN/DP 1 6ES7516-3AN00-0AB0 V1.6.0
CP 1543-1 1 6GK7543-1AX00-0XE0 V1.1.15
CPU 414-3 PN/DP 1 6ES7414-3EM05-0AB0 V5.3.1
Siemens AG 2015 All rights reserved

CP 443-1 Advanced 1 6GK7443-1GX30-0XE0 V3.0.90 connection


partners

Properties of TSEND_C and TRCV_C V1.4


Entry ID: 109479564, V1.0, 11/2015 9

You might also like