SMC_ControlAxisByPosVel (FB)ΒΆ
FUNCTION_BLOCK SMC_ControlAxisByPosVel
This function block writes the set position fSetPosition and the
set velocity fSetVelocity to the axis drive structure
and monitors axis for jumps in a similar way to SMC_ControlAxisByPos.
SMC_ControlAxisByPosVel is mostly used with CNC and an
instance of the SMC_Interpolator.
Note
For direct checking of the set value of the axis,
one of the SMC_Follow* blocks should be used.
See also: SMC_ControlAxisByPos
- 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: Monitoring of position and velocityIf the velocity exceeds the limit value
fSWMaxVelocitywhich is set inAxisand configured in the drive dialog with the maximum values setting, thenbStopIpois set toTRUE. The axis is moved with the valuesfGapVelocity, fGapAcceleration, fGapDeceleration and fGapJerkto the set position and brought to the set velocity. On reaching the set valuesbStopIpois set toFALSE.fSetPositionLREALSet position of the axis. Typically connected to the output of the transformation block.
fSetVelocityLREALSet velocity in [u/s]
fGapVelocityLREALVelocity for the bypassing of the jump in [u/s]
fGapAccelerationLREALAcceleration 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 onAxis.bErrorBOOLTRUE: Error has occurrediErrorIDSMC_ERRORError identification
bStopIpoBOOLTRUE: Jump in velocity or position occurred and adaptation to new position is runningIf
bStopIpois connected to the EmergencyStop input of the SMC_Interpolator instance, the interpolator waits until the axis is correctly positioned.See also:
SMC_ERROR