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

Page 208

Advertising
background image

L-force | PLC Designer - SoftMotion

The SM_CNC.lib library

Structures of SM_CNC.lib

208

L

DMS 5.2 EN 03/2011 TD17

The SoftMotion library provides the following functions for handling an SMC_OUTQUEUE

structure object:
BOOL SMC_RESTOREQUEUE(Enable: BOOL, POQ: POINTER TO SMC_OUTQUEUE)
This function restores an already interpolated structure or a structure processed

elsewhere. This is only possible if the list at POQ can contain the complete path.
POINTER TO SMC_OUTQUEUE SMC_APPENDOBJ(POQ: POINTER TO SMC_OUTQUEUE, PGI:

POINTER TO SMC_GEOINFO)
This function appends the GEOINFO object present at PGI to the end of the list at POQ, as

long as OQ has been initialised correctly and has not yet been completely assigned. If

successful, the function returns a pointer to the new list element, otherwise it returns 0.
BOOL SMC_DELETEOBJ(POQ: POINTER TO SMC_OUTQUEUE, N: UINT)
This function deletes the nth object from the list at POQ, whereby counting is started at 0.

If n - 1 is greater than the number of stored GEOINFO objects, nothing happens and the

return vaue is FALSE, otherwise it is TRUE.
UINT SMC_GETCOUNT(POQ: POINTER TO SMC_OUTQUEUE)
This function returns the number of objects saved at POQ.
POINTER TO SMC_GEOINFO GETOBJ(POQ: POINTER TO SMC_OUTQUEUE, N: UINT)
Provided POQ has been correctly initialised and an nth object exists, this function supplies

a pointer to the nth GEOINFO object from the list at POQ.
POINTER TO SMC_GEOINFO GETOBJFROMEND(POQ: POINTER TO SMC_OUTQUEUE, N:

UINT)
Provided POQ has been correctly initialised and at least n + 1 elements exist, this function

supplies a pointer to the nth (calculated from the end) GEOINFO object from the list at

POQ; for n = 0, therefore, the last list element is returned.

Advertising