SMC_Logical_Axis (FB)¶
FUNCTION_BLOCK SMC_Logical_Axis
the need to add a logical axis to the device tree.
Use the output variable
Axisof type AXIS_REF_LOGICAL_SM3 instead of
a logical axis.
If the function block is restarted, the logical axis is reinitialized. The master axis can be changed by restarting the function block.
Note that instances of this function block must not be assigned to other instances of the same function block. If you create your own function block containing this function block, it is recommended to add the attribute ‘no_assign’ to your function block as well.
- InOut:
Scope
Name
Type
Initial
Comment
Input
ExecuteBOOLStarts the execution of the function block.
wDriveIDWORD1
Identifier of the logical drive.
iMovementTypeSMC_AXIS_TYPE.modulo
The type (finite or modulo) of axis.
fPositionPeriodLREAL360.0
Length of period for modulo drives in technical units [u].
eValueReferenceactual
Master reference value.
usiFilterDepthPositionLREALNumber of cycles the position value is averaged over.
usiFilterDepthVelocityLREALNumber of cycles the velocity value is averaged over.
fTimeShiftCyclesLREAL3
Time shift relative to master values in cycles.
RealAxisREFERENCE TO AXIS_REF_SM3
The real master axis.
Output
InitializedBOOLThe logical axis is intialized and can be used.
InSteadyStateBOOLThe filter of the logical axis is intialized.
InSteadyStateimpliesInitialized.ErrorBOOLThere is an error.
AxisThe logical axis.