MC_GrpReadError
Function 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. - describes general axes group errors.
This function does not cause any motion.
Figure 7-176: MC_GrpReadError
-
-
This function or function block returns cached data.
See Programming a Dual Core Controller for more information.
Related Functions
MC_GrpReset, MC_ErrorDescription
See Coordinated Motion, the top-level topic for Coordinated Motion.
Arguments
Input
En | Description | Enables execution |
Data Type | BOOL | |
Range | 0,1 | |
Unit | N/A | |
Default | — | |
AxesGroup | Description | The axes group from which the GroupErrorID will be read. |
Data Type | AXES_GROUP_REF | |
Range | N/A | |
Unit | N/A | |
Default | — |
Output
OK | Description | Indicates the function executed successfully |
Data Type | BOOL | |
GroupErrorID | Description | Displays the Error ID for the given Axis Group. See table in PLCopen Function Block ErrorID Output |
Data Type | INT |
Examples
Structured Text
//Read a group error number
GroupErrorID:= MC_GrpReadError( Axis_Group );
FBD
FFLD