Extending the Safety Program
– Application Examples
TR-Electronic GmbH 2016, All Rights Reserved
Printed in the Federal Republic of Germany
Page 142 of 159
TR - ECE - TI - DGB - 0292 - 01
09/20/2016
5.2.1 Parameter description
Input parameter
Data type Description
REQ
BOOL
Starts reading of the manufacturer-specific
diagnosis.
TR_Hardware_ID
HW_IO
Hardware identifier of the measuring system
from which the diagnostic data are to be read
out.
Output parameter
Data type Description
BUSY
BOOL
Indicates whether the block is reading out the
manufacturer-specific diagnosis.
VALID
BOOL
Indicates whether reading of the manufacturer-
specific diagnosis was successfully completed.
ERROR
BOOL
Indicates whether reading of the diagnosis
ended with an error.
ERRVAL
DWORD
Indicates the error value which occurred during
asynchronous reading via the
RDREC
block.
Analysis of the error using the help function in
TIA Portal V13
.
STATUS
WORD
Indicates the result for execution of the
manufacturer error block.
0x0000 = initialization value / manufacturer--
specific diagnosis is being read
0x0001 = manufacturer-specific error present
0x0002 = no manufacturer-specific error
present
0x0003 = error: asynchronous reading
0x0004 = error: incorrect length of
asynchronous read buffer
0x0005 = error: diagnosis ID is wrong
TR_Manuf_Error
DWORD
4 byte value with manufacturer-specific error