SMC_ChangeDynamicLimits (FB)¶
FUNCTION_BLOCK SMC_ChangeDynamicLimits
Sets the dynamic limits (maximum velocity, acceleration, jerk, torque)
for an axis.
May only be called if the axis is in state power_off or standstill.
- InOut:
Scope
Name
Type
Initial
Comment
Inout
AxisInput
bExecuteBOOLRising edge: Changes the limits.
fMaxVelocityLREALThe maximum velocity in u/s. Must be positive.
fMaxAccelerationLREALThe maximum acceleration in u/s². Must be positive.
fMaxDecelerationLREALThe maximum deceleration in u/s². Must be positive.
fMaxJerkLREALThe maximum jerk in u/s³. Must be positive.
fMaxTorqueLREALFPU.GetLRealSpecialVal(FPU.ESpecial_FP_Value.PosInf)
The maximum torque or force in Nm or N. The torque limit is interpreted based on the gearbox output. Use SMC_SetAdditionalConversionFactors to take the gearbox into account.
Output
bDoneBOOLTRUE: New limits have been set.bErrorBOOLTRUE: An error has occurred.bBusyBOOLTRUE: The function block is in operation.ErrorIDSMC_ERRORError identification