SMC_FollowPositionVelocity (FB)ΒΆ
FUNCTION_BLOCK SMC_FollowPositionVelocity
This function block employment is equivalent to SMC_FollowPosition, except for the velocity that may be defined in addition.
Note
This function block does not support forecasts that are set up by SMC_SetForecast.
- InOut:
Scope
Name
Type
Initial
Comment
Inout
AxisInput
bExecuteBOOLRising edge: Starts the execution of the function block.
fSetPositionLREALSet position in technical units [u].
fSetVelocityLREALSet velocity in technical units/sec [u/s].
bFixedCoordinateSystemBOOLTRUE
The coordinate system for the
Axiscan be changed using MC_SetPosition. WhenbFixedCoordinateSystemis set to TRUE, thefSetPositionis expected to be given in the coordinate system that was active when there was a rising edge onbExecute. If MC_SetPosition is called during execution, the providedfSetPositionis automatically transformed to the new coordinate system. WhenbFixedCoordinateSystemis set to FALSE, thefSetPositionis expected to be given in the current coordinate system. If MC_SetPosition is called during execution, the providedfSetPositionhas to be adjusted to the new coordinate system.Output
bBusyBOOLTRUE: Execution of function block has not been finished yet.bCommandAbortedBOOLTRUE: The command has been aborted by another command.bErrorBOOLTRUE: Error has occurred within the function block.iErrorIDSMC_ERRORError identification