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
tokensInput: token queue
sentencesOutput: sentence queue
Input
bExecuteBOOLWhile
TRUE, the function block is active.symbolTableThe symbol table used to look up variables and sub programs.
pCustomFunTablePOINTER TO SMC_NC_GFunctionTable
If there are no custom G-Code functions, this input isn’t set.
Output
bBusyBOOLTRUEwhile execution of function block is not finished.bErrorBOOLTRUEsignals that an error has occurred within the function block.ErrorIDSMC_ERRORError identification,
SMC_ERRORerrorPosThe source-position where an error has been detected.