FB_MDP_SplitErrorId
![FB_MDP_SplitErrorId 1:](Images/gif/178799883__en-US__Web.gif)
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 include |
---|---|---|
TwinCAT v3.1.0 | PC or CX (x86, x64, ARM) | Tc2_MDP |