FunctionMC_ErrorDescriptionPLCopen motion iconPipe Network motion icon

This function converts the PLCopenClosedA 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-126: 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 BlockClosedA function block groups an algorithm and a set of private data. It has inputs and outputs.. See PLCopen Function Block ErrorID Output for output details.
  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

Go back to the top of the page [Top]