MC_ErrorDescription![This function or function block supports PLCopen motion PLCopen motion icon](../Resources/Images/Icon_PLCopen.png)
![This function or function block supports Pipe Network motion Pipe Network motion icon](../Resources/Images/Icon_PipeNetwork.png)
This function converts the PLCopenA vendor -and product- independent worldwide association active in Industrial Control and aiming at standardizing PLC file formats based on XML error IDs into message strings which can be used for display or logging.
Figure 7-119: MC_ErrorDescription Function Block
Arguments
For more detail on how inputs and outputs work, refer to PLCopen Function Blocks - General Rules
Inputs
En | Description |
If True, then this function will convert the Error Id into a string message |
Data type | BOOL | |
Range | 0, 1 | |
Unit | N/A | |
Default | — | |
ErrorID | Description | Error ID generated from a PLCopen Function Block![]() |
Data type | INT | |
Range | 0,69 | |
Unit | N/A | |
Default | — |
Outputs
OK | Description |
If True, then the command completed successfully. |
Data type | BOOL | |
Range | 0, 1 | |
Unit | N/A | |
Default | — | |
Description | Description | String error description |
Data type | STRING | |
Range | — | |
Unit | N/A | |
Default | — |
Examples
Structured Text
Description:= MC_ErrorDescription(ErrorID);
IL
Not applicable
Function Block
Ladder Diagram