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

Page 181

Advertising
background image

L-force | PLC Designer - SoftMotion

The SM_CNC.lib library

SMC_RoundPath

181

L

DMS 5.2 EN 03/2011 TD17

nSizeOutQueue: UDINT
This variable contains the size of the data buffer to which the list of smoothed GEOINFO

structure objects will be written. This buffer must be at least five times as large as an

SMC_GEOINFO structure. If this is not the case, the ISMC_NCDecoder does not perform any

actions. It is advisable to create the actual buffer as described below, e.g. as an example :

Array of SMC_GeoInfo. The corresponding buffer size then results from sizeof(Example)
pbyBufferOutQueue: POINTER TO BYTE
This input must point to the first byte of the memory area created for the OUTQUEUE

structure. This memory area must be at least as large as defined in nSizeOutQueue. It is

typically assigned in the declaration part of the IEC program by means of an array of

SMC_GeoInfo (e.g. BUF: ARRAY[1...50] OF SMC_GEOINFO; for a buffer that can store 50

path elements). In respect of this value as well, it is permissible to set the value but it is only

permissible to alter it subsequently during a reset.

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 an error occurs, this variable will contain the error number.
poqDataOut: POINTER TO SMC_OUTQUEUE
This output points to an SMC_OUTQUEUE structure that manages rounded SMC_GEOINFO

objects.

Advertising