SMC_ControlAxisByVel (FB)ΒΆ
FUNCTION_BLOCK SMC_ControlAxisByVel
This function block writes 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.
See also: SMC_ControlAxisByPos
- 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 execution- bAvoidGaps- BOOL- TRUE - TRUE: Monitoring of position and velocity- If the velocity exceeds the limit value - fSWMaxVelocitywhich is set in- Axisand configured in the drive dialog with the maximum values setting, then- bStopIpois set to- TRUE. The axis is moved with the values- fGapVelocity, fGapAcceleration, fGapDeceleration and fGapJerkto the set position and brought to the set velocity. On reaching the set values- bStopIpois set to- FALSE- fSetVelocity- LREAL- Set velocity in [u/s] - fGapAcceleration- LREAL- 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 - bAvoidGapsis- FALSE, for stopping when disabled- fGapJerk- LREAL- 1E+16 - Jerk for the bypassing of the jump in [u/s3] - Note: also used if - bAvoidGapsis- FALSE, for stopping when disabled- Output - bBusy- BOOL- TRUE: Function block operating- bCommandAborted- BOOL- TRUE: Execution was interrupted by another function block instance operating on- Axis.- bError- BOOL- TRUE: Error has occurred- iErrorID- SMC_ERROR- Error identification - bStopIpo- BOOL- TRUE: 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
