Re: writing tool offsets from within program
hy, those shared by rcs are ok; check also these examples :
... vtofd [ 01 ] = 20 ( rad declaration for register 1 )
... vtofh [ 10 ] = 123 ( height declaration for register 10 )
... vacod, active wcs ( example : back-up of active wcs : vzof*[vacod+20]=vzof*[vacod] )
... reading active :
...... rad : vc* = vtofd [ vtlcn ]
...... height vc* = :
......... vtofh [ vtlcn ]
......... abs [ vwkaz - vwkbz ]
......... vtoht [ vtlcn , vhcod ]
... targeting 10mm away from maximum z, regardless of wcs : vpplz - vwkaz + vwkbz - 10 ( is ok for defining clearance positions, that are absolute, not relative to wcs; similar to home positions .... more precise, home positions are relative to a virtual wcs that has vzof*=0, but can not be activated by using G15 )
id like to be able to write to my tool offset page from within a program, is this possible?
so yes, it can be done, and may seem nice when you see that it works
but is it worthy to skip tool setting, by using g-code for auto-initialization ? if you wish to describe what you wish to do, i may help you to speed it up; for example, considering that you have all offsets value inside a file ( sent to the machine through network ) , simply use a gui ( from machine screen ) to declare atc pots inside which you installed your new tools, and create a program to auto-initialie offset only for those; keystrokes example : open, 4 5 12 52, create, program-select, cycle-start; such a method can be used to corelate tool-presseting equipment with machine, even for equipment that is not calibrated for a machine ... there may be room for improvement, depending what are you after / kindly
Ladyhawke - My Delirium, https://www.youtube.com/watch?v=X_bFO1SNRZg