In the example above the error code 8085 is coming from the TRCV function block.
Looking in the TIA help will tell you that trouble is due to the LEN or DATA parameter in
TRCV function block. This problem will typically appear if you have used the wrong func‐
tion block. The same yields for error 8088. Have a look in the table in section 2.4 to see
what function block you should use.
12.6.6.3
Parsing goes wrong
If you see the data in “Total Result String” but nothing in the other variables the data is
coming through but something goes wrong in the parsing of the data. The delimiters in
the string might be missing; you need to separate the variables with a semicolon.
12.6.7
Function block differences
As mentioned in
, this document is applicable for three different func‐
tion blocks. The difference lay in how the ad-hoc functionality in the
TRCV FB
is handled.
TRCV function block
is used by the TriSpector1000 Output Result function block to receive
the data from the TCP/IP connection. When received, the data is only available when
the data length specified at the LEN parameter has been completely received. For the
data to be available immediately, even if the data length specified at the LEN parameter
has not yet been completely received, you must use the ad-hoc mode. How to enable
this ad-hoc mode differs from the different PLC versions. In the latest version, S7-1500
and S7-1200 with firmware 4 and higher there is a specific ad-hoc parameter. But in
earlier versions you use the LEN parameter to enable the ad-hoc mode. The following
table shows how to enable the ad-hoc mode in the different versions.
Siemens S7 version
TRCV Values
S7-1500 and S7-1200 firmware version 4.x
ADHOC = TRUE LEN = 0
S7-1200 firmware version > 2 and < 4
LEN = 65535
S7-300, S7-400 and S7-1200 version 1.x
LEN = 0
When using S7-1200 it could be a bit tricky to know what function block to use since it
depends on the firmware version. It is not the firmware version of the PLC but the
firmware version of the TRCV FB as could be seen in image below.
12
APPENDIX
102
O P E R A T I N G I N S T R U C T I O N S | TriSpector1000
8021808/12ID/2019-01 | SICK
Subject to change without notice