SMC_GroupReadSetAcceleration (FB)¶
FUNCTION_BLOCK SMC_GroupReadSetAcceleration
This function block returns the set-acceleration of an axis group in the selected coordinate system.
Typically, this will be the set-acceleration from the end of the previous
cycle. In order to obtain the set-acceleration from the end of the current
cycle, SMC_GroupUpdate has to be called before this function block,
or a TimeOffset equal to the task interval has to be supplied.
This is an administrative FB, since no movement is generated.
- InOut:
Scope
Name
Type
Comment
Inout
AxisGroupReference to a group of axes
Input
EnableBOOLGet the acceleration in the selected coordinate system of the axis group continuously while enabled
CoordSystemSMC_COORD_SYSTEMApplicable coordinate system
TimeOffsetLREALThe time offset in seconds when to evaluate the acceleration. Relative to the start of the current cycle. Must be in [0,
fPlanningForecastDuration].fPlanningForecastDurationcan be configured using SMC_TuneCPKernel.- Time offsets > 0 are only supported if
the offset does not exceed the
CurrentPlanningForecastreported by MC_GroupReadStatus, andMC_GroupHalt/MC_GroupStop/MC_GroupInterrupt are not active.
Output
ValidBOOLTRUEif valid outputs are availableBusyBOOLThe FB is not finished
ErrorBOOLSignals that an error has occurred within the function block
ErrorIDSMC_ERRORError identification
AccelerationCurrent acceleration of the group. If a cartesian coordinate system is selected, Acceleration.c contains the cartesian acceleration: (X,Y,Z) is the acceleration vector in u/s², (A,B,C) is the angular acceleration around the x, y, z axis in °/s² .
AdditionalAxesAccelerationsSMC_ADDITIONAL_AXES_VALUES_ARRAYCurrent accelerations of the group’s additional axes.