Name Data Type Initial Value Description, Parameter Values
DONE BOOL FALSE Output DONE indicates the reception of data.
This output always has to be considered together
with output ERR.
The following applies:
DONE = TRUE and ERR = FALSE:
Reception completed. A data set was received
correctly.
DONE = TRUE and ERR = TRUE:
An error occurred during reception. The error
number is indicated at output ERNO.
ERR BOOL FALSE Output ERR indicates whether an error occurred
during reception. This output always has to be
considered together with output DONE. The fol-
lowing applies if an error occurred during recep-
tion: DONE = TRUE and ERR = TRUE. Output
ERNO indicates the error number.
ERNO WORD 16#0000 Output ERNO provides an error identifier if an
invalid value has been applied to an input or if an
error occurred during job processing. ERNO
always has to be considered together with the
outputs DONE and ERR. The output value at
ERNO is only valid if DONE = TRUE and ERR =
TRUE. The error messages encoding at output
ERNO is explained at the beginning of the func-
tion block description.
DATA_LEN DWORD 16#00000000 Output DATA_LEN displays the length of the
received data in bytes (The maximum number is
84). The output value at DATA_LEN is only valid if
DONE = TRUE.
Call in ST
PM5xxRec (EN := PM5xxRec_EN,
DATA := ADR(PM5xxRec_DATA),
DONE => PM5xxRec_DONE,
ERR => PM5xxRec_ERR,
ERNO => PM5xxRec_ERNO,
DATA_LEN => PM5xxRec_DATA_LEN);
Configuration and programming
AC500-S Libraries > SafetyExt_AC500_V22.lib
30.03.2017 AC500-S 257