SMC_SetForecast (FB)ΒΆ
FUNCTION_BLOCK SMC_SetForecast
This function block sets a forecast for a given axis.
The forecast is limited to a maximum of 512 task cycles.
By setting a forecast, information about the status of the axis in the future can be retrieved. - The duration up to a certain axis position can be obtained
using SMC_GetTravelTime.
The axis dynamics at a certain point of time can be obtained using SMC_ReadSetValues.
Negative On- and OffCompensation times (up to the forecast) can be used in SMC_DigitalCamSwitch_HighPrecision).
The current forecast duration can be read using SMC_GetForecast.
- InOut:
Scope
Name
Type
Comment
Inout
Axis
Reference to the axis
Input
Execute
BOOL
Rising edge: sets the forecast duration
ForecastDuration
LREAL
The duration of the trajectory forecast in seconds
Output
Done
BOOL
TRUE
: The forecast is set successfullyError
BOOL
TRUE
: Error has occurred during executionErrorID
SMC_ERROR
Error identification