MC_GrpReadStatus
Function Block A function block groups an algorithm and a set of private data. It has inputs and outputs. - Returns the status of an axes group.
Inputs
Input |
Data Type |
Range |
Unit |
Default |
Description |
---|---|---|---|---|---|
Enable |
BOOL |
0, 1 |
N/A |
No default |
If TRUE, the axes group status is read. |
AxesGroup |
No range |
N/A |
No default |
The axes group the status is read from. |
Outputs
Output |
Data Type |
Range |
Unit |
Description |
---|---|---|---|---|
Valid |
BOOL |
TRUE of valid outputs are available. |
||
GroupMoving1 |
BOOL |
The axes group is in the Moving state. This indicates the group is enabled and currently executing a coordinated motion command. |
||
GroupHoming1 |
BOOL |
Not supported. |
||
GroupErrorStop1 |
BOOL |
The axes group is in the ErrorStop state due to an axis error or group error.
|
||
GroupStandby1 |
BOOL |
The axes group is in the Standby state.
|
||
GroupStopping1 |
BOOL |
The axes group is in the Stopping state due the execution of MC_GrpStop.
|
||
GroupDisabled1 |
BOOL |
The axis group is in the Disabled state and cannot accept coordinated motion commands. |
||
ConstantVelocity |
BOOL |
TRUE if the commanded path velocity is the same between the current scan of the application program and the previous scan.
|
||
Accelerating |
BOOL |
No range |
N/A |
TRUE if the commanded path velocity is accelerating between the current scan of the application program and the previous scan. |
Decelerating |
BOOL |
No range |
N/A |
TRUE if the commanded path velocity is decelerating between the current scan of the application program and the previous scan. |
InPosition |
BOOL |
No range |
N/A |
TRUE indicates that the axes group is “in position”. These must be TRUE for the axes group to be in position:
|
Error |
BOOL |
No range |
N/A |
If TRUE, an error has occurred. |
ErrorID |
BOOL |
No range |
N/A |
Indicates the error identifier if the Error output is set to TRUE. See the table in PLCopen Function Block ErrorIDs. |
1 These outputs are mutually exclusive. Only one is TRUE at a time.
All others are FALSE.
See Group State Diagrams for more information.
Remarks
-
-
This function or function block returns cached data.
See Program a Multi-Core Controller for more information.
See Coordinated Motion, the top-level topic for Coordinated Motion.
MC_GrpReadStatus returns the status of an axes group. This function block does not cause any motion. Refer to Group State Diagrams for details.
-
-
This output is not currently supported. It will be supported in a future release.
- GroupHoming
Figure 6-145: MC_GrpReadStatus
FBD Language Example
FFLD Language Example
IL Language Example
BEGIN_IL "Instruction List" This is a low-level language and resembles assembly
CAL Inst_MC_GrpReadStatus( EnableGrpReadStatus, Group1_Ref )
END_IL
ST Language Example
//Check boolean status bits for an Axis Group
Inst_MC_GrpReadStatus( EnableGrpReadStatus, Group1_Ref );
IsGroupMoving:= Inst_MC_GrpReadStatus.GroupMoving;
IsGroupErrorStop:= Inst_MC_GrpReadStatus.GroupErrorStop;
IsGroupStandby:= Inst_MC_GrpReadStatus.GroupStandby;
IsGroupDisabled:= Inst_MC_GrpReadStatus.GroupDisabled;
Accelerating:= Inst_MC_GrpReadStatus.Accelerating;
IsConstantVelocity:= Inst_MC_GrpReadStatus.ConstantVelocity;
IsInPosition:= Inst_MC_GrpReadStatus.InPosition;
See Also