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

The current forecast duration can be read using SMC_GetForecast.

InOut:

Scope

Name

Type

Comment

Inout

Axis

AXIS_REF_SM3

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 successfully

Error

BOOL

TRUE: Error has occurred during execution

ErrorID

SMC_ERROR

Error identification