DiagCode output

Output for diagnostic message of the function block.

Data type: WORD

Connection: If required, the signal can be connected to a standard variable of the WORD data type.

Function block-specific diagnostic and status messages are output via this output parameter and can be made available automatically to higher-level diagnostic tools.

Whether there is an error message at the DiagCode output is indicated by the function block with Error = TRUE.

The diagnostic code is specified as WORD data type. The respective hexadecimal value is specified in the "Diagnostic codes" help topic.

In case of status messages, Error is switched to FALSE by the function block.

All other messages are error messages, i.e., Error = TRUE.