SMC_GSentenceQueue.InitP (METH)¶
METHOD InitP : BOOL
Initializes the queue with user-defined buffers. See also method SMC_GSentenceQueue.SetPointers.
- InOut:
Scope
Name
Type
Comment
Inout Const
prgNameSTRING(255)The name of the program or subprogram. This is usually the full path of the CNC file. E.g. for the file with full path ‘/some/dir/name.cnc’.
Input
pBufSentencesPOINTER TO SMC_GSentence
Pointer to the sentence buffer
nSizeBufSentencesUDINTSize of the sentence buffer in bytes. Must hold at least 2 sentences.
pBufGWordsPOINTER TO SMC_GWord
Pointer to the gword buffer
nSizeBufGWordsUDINTSize of the G-Word buffer in bytes. Must hold at least 64 gwords.
pBufGExpTokensPOINTER TO SMC_GExpression_Token
Pointer to the expression token buffer
nSizeBufGExpTokensUDINTSize of the expression token buffer in bytes. Must hold at least 128 expressions.
pBufAddDataPOINTER TO BYTE
Pointer to the additional data buffer
nSizeBufAddDataUDINTSize of the additional data buffer in bytes. Must hold at least 256 bytes.
Return
InitPBOOL