MC_GrpReadError

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. - Reads the Group ErrorID in state ERRORSTOP.

Inputs

Input

Data Type

Range

Unit

Default

Description

En

BOOL

FALSE, TRUE

N/A

No default

EnablesClosed Enable signal for the drive, Hardware-Enable with 24V signal to X8, Software-Enable command by setup Software, fieldbus or permanently set. Both are required for enabling the drive. execution.

AxesGroup

AXES_GROUP_REF

No range

N/A

No default

The axes group the GroupErrorID is read from.

Outputs

Output

Data Type

Range

Unit

Description

OK

BOOL

FALSE, TRUE

N/A

Indicates the function executed successfully.

GroupErrorID

INT

No range

N/A

Shows the Error ID for the given Axis Group.

See PLCopen Function Block ErrorIDs.

Remarks

  • See Coordinated Motion, the top-level topic for Coordinated Motion.
  • This function or function block does not generate any motion.

Figure 1: MC_GrpReadError

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

//Read a group error number
GroupErrorID:= MC_GrpReadError( Axis_Group );

See Also