L-force | plc designer - softmotion – Lenze PLC Designer PLC-Designer (R2-x) SoftMotion User Manual

Page 188

Advertising
background image

DMS 5.2 EN 03/2011 TD17

L

188

L-force | PLC Designer - SoftMotion

The SM_CNC.lib library

SMC_Interpolator

bSingleStep: BOOL
This input causes the interpolator to stop at each transition between two path objects

(including at transitions between identical tangents) for the duration of one cycle. If

bSingleStep is set to TRUE during the traversing procedure, the interpolator will stop at the

end of the next object it can reach without exceeding the defined deceleration value.
If the interpolator is to stop at the next possible stop position (i.e. at points where the

velocity is 0), bWaitAtNextStop must be used.
bAcknM: BOOL
This input can be used to acknowledge a pending additional option (M option). If the input

is TRUE, this option will be cleared and path processing resumed.
bQuick_Stop: BOOL
If this input is TRUE, according to the speed profile set (byVelMode) and the deceleration

which is defined by the maximum of dQuickDeceleration and the deceleration

programmed in the path, the interpolator decreases the speed to 0 until bQuick_Stop is

reset to FALSE. Default: FALSE
dQuickDeceleration: LREAL
Value for the deceleration, which is used for bQuick_Stop.

Outputs (VAR_OUT)
bDone : BOOL
This variable is set to TRUE as soon as the input data from DataIn has been fully processed.

Thereafter the program organisation unit will not execute any more actions until a reset

has been performed. If the bExecute input is FALSE, bDone will also be reset to FALSE.
bError : BOOL
This value will be set to TRUE if an error occurs.
wErrorID: SMC_ ERROR (INT)
If applicable, this enum output will describe an error that occurred during interpolation.

Following an error, processing will be stopped until a reset is performed.
piSetPosition: SMC_POSINFO
Set_Position contains the set position calculated in accordance with the specifications

made. Set_Position is an SMC_POSINFO structure and not only contains the Cartesian

coordinates of the path position point to be approached, but also the position of the

additional axes.

Advertising