SMC_ReadSetValues (FB)ΒΆ
FUNCTION_BLOCK FINAL SMC_ReadSetValues
Reads the set position, velocity, acceleration, and jerk of an axis.
Allows setting a positive TimeOffset to read future set values.
With TimeOffset = 0 the set values from the beginning of the
current cycle are read.
Note
Reading future set values requires setting a ForecastDuration using SMC_SetForecast.
- InOut:
Scope
Name
Type
Comment
Inout
AxisReference to the axis
Input
EnableBOOLRead the set values continuously while enabled.
TimeOffsetLREALTime offset relative to the current cycle for which the set values should be read. The
TimeOffsetmust be between 0 and the ForecastDuration set using SMC_SetForecast. If theTimeOffsetis outside this range the error SMC_INVALID_PARAMETER is reported.Output
ValidBOOLTRUE: Valid outputs are available.BusyBOOLTRUE: Execution of the function block has not been finished yet.ErrorBOOLTRUE: Error has occurred within the function block.ErrorIDSMC_ERRORError identification
PositionLREALThe set position
VelocityLREALThe set velocity
AccelerationLREALThe set acceleration
JerkLREALThe set jerk