SMC_ControlAxisByPos (FB)ΒΆ
FUNCTION_BLOCK SMC_ControlAxisByPos
The function block writes the set position fSetPosition
to the drive structure Axis and monitors Axis for jumps.
SMC_ControlAxisByPos is mostly used with CNC and an
instance of the SMC_Interpolator.
- InOut:
Scope
Name
Type
Initial
Comment
Inout
AxisAXIS_REF_SM3Reference to axis
See also:
AXIS_REF_SM3Input
iStatusStatus of the instance of SMC_Interpolator
bEnableBOOLTRUE: Starts executionbAvoidGapsBOOLTRUE
TRUE: Starts the monitoring of the positionIf the velocity exceeds the limit value which is set in
AXIS_REF_SM3.fSWMaxVelocityand configured in the drive dialog with the Maximum Values setting, then thebStopIpooutput is set. The axis is moved to the position with the valuesfGapVelocity, fGapAcceleration and fGapDeceleration. On reaching the set position,bStopIpois set toFALSE.fSetPositionLREALSet position of the axis in [u]. Typically connected to the output of the transformation block
fGapVelocityLREAL1
Velocity for the bypassing of the jump in [u/s]
fGapAccelerationLREAL1
Acceleration for the bypassing of the jump in [u/s2]
fGapDecelerationLREAL1E+15
Deceleration for the bypassing of the jump in [u/s2]
Note: Also used if
bAvoidGapsisFALSE, for stopping when disabledfGapJerkLREAL1E+16
Jerk for the bypassing of the jump in [u/s3]
Note: also used if
bAvoidGapsisFALSE, for stopping when disabledOutput
bBusyBOOLTRUE: Function block operatingbCommandAbortedBOOLTRUE: Execution was interrupted by another function block instance operating on axis.bErrorBOOLTRUE: Error has occurrediErrorIDSMC_ERRORError identification
bStopIpoBOOLTRUE: Jump in velocity or position occurred and adaptation to new position is running.If
bStopIpois connected to the EmergencyStop input of the SMC_Interpolator instance, the interpolator waits until the axis is correctly positioned.See also:
SMC_ERROR