SMC_NCTokenParser (FB)¶
FUNCTION_BLOCK SMC_NCTokenParser
The parser between the SMC_NCTokenizer and the SMC_NCInterpreter. The parser transforms the stream of tokens to a sequence of g-code sentences ready to be interpreted.
Note
Usually, SMC_ReadNCFile2 is used which contains the parser. So it is not necessary to use this function block directly in most cases.
- InOut:
Scope
Name
Type
Comment
Inout
tokens
Input: token queue
sentences
Output: sentence queue
Input
bExecute
BOOL
While
TRUE
, the function block is active.symbolTable
The symbol table used to look up variables and sub programs.
pCustomFunTable
POINTER TO SMC_NC_GFunctionTable
If there are no custom G-Code functions, this input isn’t set.
Output
bBusy
BOOL
TRUE
while execution of function block is not finished.bError
BOOL
TRUE
signals that an error has occurred within the function block.ErrorID
SMC_ERROR
Error identification,
SMC_ERROR
errorPos
The source-position where an error has been detected.