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
Axis
AXIS_REF_SM3
Reference to axis
See also:
AXIS_REF_SM3
Input
iStatus
Status of the instance of SMC_Interpolator
bEnable
BOOL
TRUE
: Starts executionbAvoidGaps
BOOL
TRUE
TRUE
: Starts the monitoring of the positionIf the velocity exceeds the limit value which is set in
AXIS_REF_SM3.fSWMaxVelocity
and configured in the drive dialog with the Maximum Values setting, then thebStopIpo
output is set. The axis is moved to the position with the valuesfGapVelocity, fGapAcceleration and fGapDeceleration
. On reaching the set position,bStopIpo
is set toFALSE
.fSetPosition
LREAL
Set position of the axis in [u]. Typically connected to the output of the transformation block
fGapVelocity
LREAL
1
Velocity for the bypassing of the jump in [u/s]
fGapAcceleration
LREAL
1
Acceleration for the bypassing of the jump in [u/s2]
fGapDeceleration
LREAL
1E+15
Deceleration for the bypassing of the jump in [u/s2]
Note: Also used if
bAvoidGaps
isFALSE
, for stopping when disabledfGapJerk
LREAL
1E+16
Jerk for the bypassing of the jump in [u/s3]
Note: also used if
bAvoidGaps
isFALSE
, for stopping when disabledOutput
bBusy
BOOL
TRUE
: Function block operatingbCommandAborted
BOOL
TRUE
: Execution was interrupted by another function block instance operating on axis.bError
BOOL
TRUE
: Error has occurrediErrorID
SMC_ERROR
Error identification
bStopIpo
BOOL
TRUE
: Jump in velocity or position occurred and adaptation to new position is running.If
bStopIpo
is connected to the EmergencyStop input of the SMC_Interpolator instance, the interpolator waits until the axis is correctly positioned.See also:
SMC_ERROR