What is a reasonable way to achieve the following: retrieve the gcode filename or a string inside the gcode text where is defined a production batch code make it available to a C code context in some different places along the gcode and have the C code write into a file the production code and current time
My best guess is to have something like the following but I miss how to forward the raw string to the M119 handler to then write to a file date timeand string
Code: Select all
( C:\projects\tewi\PerfoGen\PORTELLA GIAN.cnc )
M119 'partnumber-batchcode-start'
some gcode
M119 'partnumber-batchcode-cooling'
M0
M119 'partnumber-batchcode-rework'
some gcode
M119 'partnumber-batchcode-end'
M30