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.

Inputs

Input

Data Type

Range

Unit

Default

Description

En

BOOL

FALSE, TRUE

N/A

No default

If TRUE, this function converts the ErrorID to a string message.

ErrorID

INT

0, 69

N/A

No default

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 ErrorIDs.

Outputs

Output

Data Type

Range

Unit

Description

OK

BOOL

FALSE, TRUE

N/A

If TRUE, the command completed successfully.

Description

STRING

No range

N/A

String error description.

Remarks

Figure 1: MC_ErrorDescription

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

Description:= MC_ErrorDescription(ErrorID);