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

DMS 5.2 EN 03/2011 TD17
L
170
L-force | PLC Designer - SoftMotion
The SM_CNC.lib library
SMC_NCDecoder
Outputs (VAR_OUT)
bDone : BOOL
This variable is set to TRUE as soon as the program has been fully processed. Thereafter
SMC_NCDecoder 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 decoding.
Following an error, processing will be stopped until a reset is performed.
poqDataOut: POINTER TO SMC_OUTQUEUE
This output points to an SMC_OUTQUEUE structure that manages decoded SMC_GEOINFO
objects.
iStatus: SMC_DEC_STATUS (INT)
This enum variable shows the current state of the program organisation unit. Possible
states:
WAIT_PROG
0
Program not yet found
READ_WORD
1
Word read
PROG_READ
2
End of program reached