SMC_GCodeJumpBuffer (FB)¶
FUNCTION_BLOCK SMC_GCodeJumpBuffer
- InOut:
Scope
Name
Type
Initial
Comment
Inout
ncprogInCNC program input
Input
bExecuteBOOLRising edge starts operation.
pBufferPOINTER TO SMC_GCODE_WORD
Memory for internal buffer
dwBufferSizeUDINTSize of
pBufferpBufferOutPOINTER TO SMC_GCODE_WORD
Memory for
ncprogOutdwBufferOutSizeUDINTSize of
pBufferOutin bytehistoryBufferA function block keeping track of all G-Code sentence numbers that have been processed and removed from the jump buffer. If no buffer is provided, the default implementation SMC_MonotoneSentenceHistory will be used.
udiRefillWindowSizePercentageUDINT10
The amount of elements that is read and removed in one cycle and added in the next cycle, when no jump has been requested (if
ncprogOut.bRestart=FALSE). Provided in percent of the current buffer level and defaults to a minimum value of 10. A larger center window will slightly improve reading performance for long cycle times, while reducing the buffer’s chances to have a requested jump target actually buffered.Output
bBusyBOOLbDoneBOOLbErrorBOOLErrorIDSMC_ERRORncprogOutCNC program output to SMC_NCDecoder
bExecuteDecoderBOOLSet to
TRUEas soon asncprogOutis filled sufficiently to be interpreted by SMC_NCDecoder;
Structure: