SMC_FollowPosition (FB)ΒΆ
FUNCTION_BLOCK SMC_FollowPosition
This function block writes the position set points to the axis without doing any checks.
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
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 the function block has not been finished.bCommandAbortedBOOLTRUE: Command has been aborted by another command.bErrorBOOLTRUE: Error has occurred within the function block.iErrorIDSMC_ERRORError identification