4057
« on: November 27, 2010, 06:38:45 PM »
G32 WIZARD
CURRRENT STATE OF THE MACHINE
Threading of the part is complete, spindle is turning / coolant is on , and X & Z axes are at some point along the axis. It is assumed that that current
modes ie: inches / exact stop and tool etc have not been changed. It's also assumed the user saved settings in the whatvever thread wizard was
used and has not closed the current thread file.
1. Spindle off
2. Reset / Estop/ the axes are disengaged for safety
MANUAL MEASUREMENT
The user will measure the thread, test with a thread gage, or try a nut or something to determine how much they want to remove from the oversize thread.
Most users don't even have a thread mic. I thought about having the wizard calculate what to do based on some measurements. It just opens up a can of
worms ( actual axis resolution, pitch dia basis, measurement averaging ) that is not worth having the wizard compute the correction. It's not only the as cut
diameter, but also lead , tool, and other things that can affect what the user ended up with. So KISS is going to be used such that only some spring
pass is generated based on whatever the user inputs.
INPUTS FOR THE WIZARD:
The X must be positioned and the same feedrate which was used in the threading wizard. Z start would usually be positive 3 to 5 x pitch from Z=0 of the piece, but,
who knows what someone used. There is a difference between say using Scotts, the Simple Threading, or a G76. So the question is where can the data
for inputs best come from ( other than manual input). Note that the G32 will not provide for pullout other than "0" setting for a chamfer at the end of the thread.
Scott, not knowing just what data you can or can't get may determine how the wizard is done ( or maybe shouldn't be done), thus some questions as follows:
? assume the current Z & X can be had from the DRO's
? can you extract data from the saved settings of the Simple Threading or your wizard.
? Is it possible to extract the last lines of code from a file and use them
Here is a list of data for the wizard: (> meaning data not input by the user if possible)
X> CURRENT LOCATION
X>END
Z>CURRENT LOCATION
F> FEEDRATE
X= USER INPUT FOR THREAD ADJUSTMENT
Z= USER INPUT ( MAYBE NEEDED IF CLEANING UP A MULTIPLE START THREAD / DON'T KNOW IF WE WANT TO GO THERE!)
F= USER INPUT ( i DON'T KNOW IF I WANT TO GET INTO THIS ONE.......EXPLAIN LATER)
N=USER INPUT FOR NUMBER OF PASSES
So the code the wizard provides will reposition the X & Z , an x move to a position, G32 move to thread the piece,
and a return after the threading to a position.
RICH