7 smc_checkvelocities, Smc_checkvelocities – Lenze PLC Designer PLC-Designer (R2-x) SoftMotion User Manual

Page 182

Advertising
background image

DMS 5.2 EN 03/2011 TD17

L

182

L-force | PLC Designer - SoftMotion

The SM_CNC.lib library

SMC_CheckVelocities

7.7

SMC_CheckVelocities

This POU checks the speeds of the individual path segments. It must always be called

directly before the interpolator if the OutQueue has been created not by the Editor but in

the IEC program (e.g. by the SMC_NCDecoder).
This function's main task is to check the path for bends and to reduce the velocity to zero

at such bends.

Inputs (VAR_IN)
bExecute: BOOL
The check will start on a rising edge.
poqDataIn: POINTER TO SMC_OUTQUEUE
This input points to the SMC_OUTQUEUE structure object that contains the

SMC_GEOINFO objects of the path, typically to the poqDataOut output of the preceding

POU (e.g. SMC_NCDecoder/SMC_SmoothPath).
dAngleTol: REAL
This input describes the angle tolerance value up to which no stop should be executed at a

path bend.

Outputs (VAR_OUT)
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.
poqDataOut: POINTER TO SMC_OUTQUEUE
This output points to the SMC_OUTQUEUE structure object that contains the path with the

permissible velocity values and will now be fed to the interpolator directly.

Advertising