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 - Axis- Reference to the axis - Input - Enable- BOOL- Read the set values continuously while enabled. - TimeOffset- LREAL- Time 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 the- TimeOffsetis outside this range the error SMC_INVALID_PARAMETER is reported.- Output - Valid- BOOL- TRUE: Valid outputs are available.- Busy- BOOL- TRUE: Execution of the function block has not been finished yet.- Error- BOOL- TRUE: Error has occurred within the function block.- ErrorID- SMC_ERROR- Error identification - Position- LREAL- The set position - Velocity- LREAL- The set velocity - Acceleration- LREAL- The set acceleration - Jerk- LREAL- The set jerk 
