writing tool offsets from within program
id like to be able to write to my tool offset page from within a program, is this possible?
i know this vvv works for writing to the work co-ords, but what about the tool offset page?
VZOFX[11]=XX.XXX
VZOFY[11]=YY.YYY
VZOFZ[11]=ZZ.ZZZ
VZOFA[11]=AA.AAA
OSP200M controller
Re: writing tool offsets from within program
These are read/write variables
VTOFH=z.zzzz is for tool height
VTOFD=d.dddd is for tool dia./ radius
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 )
Quote:
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 :)
Re: writing tool offsets from within program
i was mostly looking for a simple way for my operators to run some roughing passes, followed by a finishing pass on some simple parts.
Was looking for an easy way for them to program something like this at the controller rather than using our CAM systems.
this along with a nice, clean and simple sub routine call for the part profile will be just what i wanted. simple, clean, easy to read.
Re: writing tool offsets from within program
Re: writing tool offsets from within program
Quote:
Originally Posted by
deadlykitten
what about i-map ?
we hate it, seems like more work to get it to do what we want than its worth.
Re: writing tool offsets from within program
yes, this is true :) all conversationals are a wonder at 1st glance, but after a while, when one gets used with them, may desire for more
i have created a few codes, in order to speed up programing, being able to behave simple, or more complex
i believe that you had been thinking about a simpler way
is possible to reduce programing time for simple operations, using a pc conected to machines, or on-machine installed applications, or excel macros / kindly :)
Re: writing tool offsets from within program
im not new to coding, but am new to this type of coding and its capabilities. is there a list somewhere of these types of functions?
VTOFH
VTOFD
VZOFX
ECT
ECT
ECT...
i would like to do my own research and play with them, to gain a better understanding of how they work
Re: writing tool offsets from within program
nevermind, found them :withstupi
Re: writing tool offsets from within program
I get the system variables from the back pages of a OKUMA osp200m instruction manual