I noticed something odd on the 3 axis mill with fanuc 15M controller.
I generated a program to cut a chamfer round a 100x50 block, using a dia 10 reference dia for my chamfer cutter.
I normally just set a short offset for the cutter, then go on single block until it engages the block, then wind down in handle mode until it cuts, then go back to tape and complete the program.
I noticed today, that if I then run the program again, it honours the new Z height.
Should it not re-set back to the G54 set in the m/c and cut above the job as it originally would??
Do I have some code missing which would make it do this??
surely my start sequence is telling it to start afresh?
%
O0001
G91 G28 Z0.0
G91 G28 X0.0 Y0.0 Z0.0
G90
T00 M6
G54
G0 X0.0 Y0.0
(FIXED CLEARANCE PLANE)
G0 Z25.0
M1
M8
G90 X50. Y60. S0 M3
G43 Z25. H00
Z3.
G1 Z0.0 F250. D0
Y55.
X100.
G2 X105. Y50. I0.0 J-5.
G1 Y0.0
G2 X100. Y-5. I-5. J0.0
G1 X0.0
G2 X-5. Y0.0 I0.0 J5.
G1 Y50.
G2 X0.0 Y55. I5. J0.0
G1 X50.
Y60.
Z3.
G0 Z25.
M9
G91 G28 Z0.0
G91 G28 X0.0 Y0.0
M30
%
i've tried all the reset codes that i can find, nothing resets the memory to use the correct current G54 settings.
The only way i can get it to re-read and obey the G54 in to do a manual zero return on all axes.
Can someone think of a solution for this?
If i zero return only 1 axis, that one will then go to the correct G54
Try the code posted below, btw I don't know why you use the D0 in this G1 Z0.0 F250. D0 line ?
Try it on Single Block mode, or put a temporary Z +50. value in the EXT Z table for a safe run.