2 axis group blocks, 1 cycle time measurement, 2 smc_isaxisgroupready – Lenze PLC Designer PLC-Designer (R2-x) SoftMotion User Manual
Page 27: 3 smc_getaxisgroupstate, Axis group blocks, L-force | plc designer - softmotion

DMS 5.2 EN 03/2011 TD17
L
27
L-force | PLC Designer - SoftMotion
The SoftMotion drive interface
SM_DriveBasic.lib and automatic code generation
3.2.2
Axis group blocks
3.2.2.1
Cycle time measurement
For diagnostics it is often important to be able to measure the exact cycle time of an axis
group, in particular if the task controls communication actively (e. g. if the PLC acts as CAN
sync generator). In the axis group data structure the variable
can be found, which controls the time measurement. If it is TRUE, the minimum or
maximum time elapsed between two task calls is specified in
current and the maximum runtime of the task are recorded in
3.2.2.2
SMC_IsAxisGroupReady
This function provides a feedback via a BOOL variable on whether the acceleration which
is implicitly carried out at the start of the IEC program for each axis group is completed and
whether it is ready for operation with its axes (TRUE), or whether the acceleration has not
yet been completed or an error has occurred (FALSE).
3.2.2.3
SMC_GetAxisGroupState
This function block provides details on the status of the axis group:
Inputs/outputs (VAR_IN_OUT)
AxisGroup : SMC_AXISGROUP_REF
Axis group for which information s required.
Inputs (VAR_INPUT)
bEnable: BOOL
If this input is TRUE, the POU supplies information on the status of the axis group.