FB_MDP_SplitErrorCode
The function block enables the nErrID to be split into an error group and a specific error code.
Accordingly, this function block can be referred to for the simplified evaluation of nErrID.
VAR_INPUT
VAR_INPUT
nErrID :UDINT;
END_VAR
nErrID | nErrID is specified as an input on the function block. This 4-byte variable corresponds to the output nErrID on an MDP function block. |
VAR_OUTPUT
VAR_OUTPUT
eErrGroup :E_MDP_ErrGroup; (* type of transmitted error code *)
nErrCode :UINT; (* error code [see specific error type table] *)
END_VAR
eErrGroup | The output eErrGroup corresponds to a value of the enumeration E_MDP_ErrGroup. It is possible with the aid of the error group to distinguish the type of error or the source of error concerned. |
nErrCode | The error code is specific for each error group. |
Requirements
Development environment | Target platform | PLC libraries to be linked |
---|---|---|
TwinCAT v2.11.0 Build >= 1541 | PC or CX (x86, ARM) | TcMDP.Lib |