We have several Haas machines that we use the program below with our Renishaw probe to get our vices straight on the table. It's a lot nicer and faster than using an indicator. We have a Renishaw probe on our Doosan DNM400 and would like to do the same thing on it. I am not sure where to find my variables (the 500 numbers in the program) on the Fanuc controller and if I am even able to access them while the machine would be running the program. I attached a pic below of our controller so you can see that we have an older controller. I know I can probe a G54 and a G55 and do the math but this program runs continuously back and forth changing the variable as you tap the vice until stopped by the operator. Any help will be greatly appreciated.
%
O07164 (Squaring the Vice Macro)
(Set G154 P98 X & Y for the first point. )
(Set G154 P99 X & Y for the second point. )
(The probe will travel between the two set points. )
(At each point the probe will travel in )
(the Y positive direction for 0.5" to find the jaw. )
(#500 represents the distance in the Y axis between )
(the first ans second point. )
#500= 0
#501= 0
#502= 0
#503= 0
#504= 0
G00 G40 G49 G90
G103 P1
(Probe on)
M53
G04 P0.5
M62
(Probe First Set)
(Move Y 0.5")
N100
G154 P99
G31 X0 F300.
G31 Y0 F5.
G31 Y0.5 F5.
G91
G01 Y-0.02
G90
G31 Y0.5 F1.
#502= #5062
G01 Y0 F300. (Pull off)
G154 P98
G31 X0 F300.
G31 Y0.5 F5.
G91
G01 Y-0.02
G90
G31 Y0.5 F1.
#500= #5062 - #502
G01 Y0 F300. (Pull off)
M99 P100
%
%
O07164 (Squaring the Vice Macro)
(Set G154 P98 X & Y for the first point. )
(Set G154 P99 X & Y for the second point. )
(The probe will travel between the two set points. )
(At each point the probe will travel in )
(the Y positive direction for 0.5" to find the jaw. )
(#500 represents the distance in the Y axis between )
(the first ans second point. )
#500= 0
#501= 0
#502= 0
#503= 0
#504= 0
G00 G40 G49 G90
G103 P1
(Probe on)
M53
G04 P0.5
M62
(Probe First Set)
(Move Y 0.5")
N100
G154 P99
G31 X0 F300.
G31 Y0 F5.
G31 Y0.5 F5.
G91
G01 Y-0.02
G90
G31 Y0.5 F1.
#502= #5062
G01 Y0 F300. (Pull off)
G154 P98
G31 X0 F300.
G31 Y0.5 F5.
G91
G01 Y-0.02
G90
G31 Y0.5 F1.
#500= #5062 - #502
G01 Y0 F300. (Pull off)
M99 P100
%