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
AxisReference to the axis
Input
ExecuteBOOLRising edge: sets the forecast duration
ForecastDurationLREALThe duration of the trajectory forecast in seconds
Output
DoneBOOLTRUE: The forecast is set successfullyErrorBOOLTRUE: Error has occurred during executionErrorIDSMC_ERRORError identification