MC_SetDynCoordTransform (FB)ΒΆ
FUNCTION_BLOCK MC_SetDynCoordTransform
This FB couples two axis groups via a dynamic coordinate transformation. The coordinate transformation is fixed to the tool coordinate system of the master axis group.
This FB may be called with a new rising edge on Execute only after the
configured dynamic coordinate system is no longer in use by any movement,
otherwise error SMC_AXIS_GROUP_PCS_STILL_IN_USE will be returned.
See output InUse.
Note
For common special cases of a dynamic PCS, the function blocks, MC_TrackConveyorBelt, and MC_TrackRotaryTable can be used.
The function block SMC_SetDynCoordTransformEx provides a more general interface.
This FB does not start a movement (administrative FB). The movement is initiated by a command in PCS.
- InOut:
Scope
Name
Type
Comment
Inout
AxisGroupReference to an axis group
MasterAxisGroupReference to the master axis group
Input
ExecuteBOOLSets the coordinate transformation on rising edge
CoordTransformThe relative position and orientation of the PCS with respect to the tool coordinate system of the master axis group.
CoordSystemWhich PCS is to be set (PCS_1 or PCS_2)
Output
DoneBOOLThe transformation has been set successfully
BusyBOOLThe FB is not finished
InUseBOOLSignals that the axis group still needs the referenced dynamic coordinate system. A new rising edge of
Executewill lead to the errorSMC_AXIS_GROUP_PCS_STILL_IN_USE. For this information to be up-to-date, the function block has to be called continuously (even if alreadyDone).ErrorBOOLSignals that an error has occurred within the function block
ErrorIDSMC_ERRORError identification