Hi
I have written a user space component for you called plot, which will considerably simplify the setup and usage of the co-ordinate logging and creating a gcode file from them using splice
The zip file has the different elements set out as if in a tarball, ie you need to navigate to the directory named and deposit the contents into it.
Then start Linuxcnc and select the entry called
plot from the config-picker dialog.
This will start a simulator with the elements installed.
All that is required then is to copy the gcode routine you wish to be carried out at each co-ordinates to a file called
/tmp/operation.ngc
Then jog to wherever you want to start and click 'Mark Co-ordinates' and again at each point required.
Then click 'Generate File' and then 'Load' and the created gcode file will be loaded into Axis.
(NB click the buttons deliberately and move the mouse off them afterwards, pvVCP can sometimes 'stick' a button if the mouse remains on it)
Screenshot shows output, if you want to preserve it, need to save as something else in your gcode directory before you close the computer, contents of /tmp are volatile.
Once you have tried the sim you can use the files as a guide to integrate into your own config.
Hope it does what you want
regards