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

0, 1

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

See the table in PLCopen Function Block ErrorIDs.

Outputs

Output

Data Type

Range

Unit

Description

OK

BOOL

0, 1

N/A

If TRUE, the command completed successfully.

Description

STRING

No range

N/A

String error description.

Remarks

Figure 6-114: MC_ErrorDescription

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

Description:= MC_ErrorDescription(ErrorID);