Hello, is it possible to read data from an external file other than the ini file from an executing ngc? What I was wanting to do was read the tool change coordinates from the preferences file so I could change the tool change position without an ini mod and restart of LinuxCnc.
here is my current m6 remap file.
(m6basic v1)
o<m6basic> sub
o501 if[#<current_tool> NE #<_selected_tool>]
M5
G90 G0
G53 Z#<_ini[CHANGE_POSITION]Z>
G53 X#<_ini[CHANGE_POSITION]X> Y#<_ini[CHANGE_POSITION]Y>
M6 T#<_selected_tool>
o501 endif
o<m6basic> endsub [1]
m2
SilverDragon, LinuxCNC buster
thanks