MC_ErrorDescription

PLCopen motion icon Pipe Network motion icon

 FunctionClosed A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. - converts the PLCopenClosed A 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-124: MC_ErrorDescription Function Block

Arguments

See Function Blocks - General Rules for more information about how inputs and outputs work.

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 BlockClosed A 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]