MC_GroupReadStatus (FB)ΒΆ
FUNCTION_BLOCK MC_GroupReadStatus
This function block returns the status of an axis group.
- InOut:
Scope
Name
Type
Comment
Inout
AxisGroupReference to a group of axes
Input
EnableBOOLGet the status of the axis group continuously while enabled
Output
ValidBOOLTRUEif valid outputs are availableBusyBOOLThe FB is not finished
ErrorBOOLSignals that an error has occurred within the function block
ErrorIDSMC_ERRORError identification
GroupMovingBOOLGroupHomingBOOLGroupErrorStopBOOLGroupStandbyBOOLGroupStoppingBOOLGroupDisabledBOOLTrackingDynamicCSBOOLIf the active movement is commanded using a dynamic coordination system, E.g. with MC_TrackConveyorBelt or MC_TrackRotaryTable.
InSyncBOOLIndicates whether the axis group follows the programmed path exactly. If FALSE, the axis group is following the path within the configured tolerance. See SMC_GroupSetPathTolerance.
ActiveMovementIdSMC_Movement_IdThe identifier of the active movement. An Id of 0 means that no movement is active. During blending between two movements, the second movement becomes active as soon as blending starts. When aborting, the aborting movements becomes active immediately after it has been accepted. See
FirstReferencedMovementIdfor additional information.ActiveMovementNameSTRINGThe name of the active movement.
FirstReferencedMovementIdSMC_Movement_IdThe identifier of the first (i.e. oldest) movement which is still being referenced by an ongoing movement. An Id of 0 means that no movement is active. To test whether the axis group is fully tracked in to a dynamic coordinate system (or fully tracked out), the condition FirstReferencedMovementId = ActiveMovementId can be used.
LastAcceptedMovementIdSMC_Movement_IdThe identifier of the movement that was last accepted. An Id of 0 means that no movement has been accepted yet.
PositionLagLREALThe magnitude of the position lag (in position units). The position lag is the deviation of the position of the axis group from the programmed trajectory.
OrientationLagLREALThe magnitude of the orientation lag (in angular degrees). The orientation lag is the deviation of the orientation of the axis group from the programmed trajectory.
CurrentPlanningForecastLREALThe current planning forecast in seconds. Will be between 0 and the
fPlanningForecastDurationconfigured using SMC_TuneCPKernel. While the axis group is moving, should be exactly thefPlanningForecastDuration. Limited to the remaining trajectory duration while the axis group is stopping.CurrentSyncBufferDurationLREALThe current duration of the synchronisation buffer between fieldbus and planning task in seconds. Will be between 0 and the
fSyncBufferDurationconfigured using SMC_TuneCPKernel. This value must be > 0 while the axis group is moving. Otherwise, the error SMC_CP_QUEUE_UNDERRUN will be reported.