MC_VelocityProfile (FB)ΒΆ
FUNCTION_BLOCK MC_VelocityProfile
This function block follows a trajectory given by an array of (time, velocity) values.
Note
If
Axisdoes not reach standstill after this movement and no subsequent movement is commanded in the same cycle whenDoneis set, thenAxisswitches to theerrorstopstate and reports errorSMC_MOVING_WITHOUT_ACTIVE_MOVEMENT.The number of points of the profile is limited to 100. If more is required, MC_CamIn with a virtual master axis offers a much more flexible functionality, also supporting periodic operation and ramping in. See also the warnings below for further restrictions of this function block.
See also MC_PositionProfile and MC_AccelerationProfile.
Warning
MC_MoveSuperimposed is not supported on top of
MC_VelocityProfileMC_SetOverride does not influence
MC_VelocityProfileForecasts that are set up by SMC_SetForecast are not supported.
- InOut:
Scope
Name
Type
Initial
Comment
Inout
AxisReference to axis
TimeVelocityReference to time/velocity description
Input
ExecuteBOOLRising edge: Starts the execution of the function block.
ArraySizeINTDimension of the array
VelocityScaleLREAL1
Overall velocity scaling factor
OffsetLREALOverall velocity offset ([u/s])
Output
DoneBOOLTRUE: Profile has been completed.BusyBOOLTRUE: Execution of function block has not been finished yet.CommandAbortedBOOLTRUE: Command has been aborted by another command.ErrorBOOLTRUE: Error has occurred within the function block.ErrorIDSMC_ERRORError identification