Lenze PLC Designer PLC-Designer (R2-x) SoftMotion User Manual

Page 179

Advertising
background image

L-force | PLC Designer - SoftMotion

The SM_CNC.lib library

SMC_SmoothPath

179

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, i.e. around 2 KB. If this is not the case, the SMC_SmoothPath

program organisation unit will not be able to perform any actions. The value can be set but

can only be subsequently modified during a reset.
poqBufferOutQueue: 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 big as defined in nSizeOutQueue. It is

typically assigned in the declaration part of the IEC program by means of a byte array (e.g..

BUF: ARRAY[1...10000] OF BYTE; for a 10,000 byte memory area. In this case as wel, this

value can be set but can only be subsequently modified 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