I need help with running the G65 macro on 31i model B5.


This is the line we are pecking in the program.


/G65P7Z.3495(#26)W.005(#23)R.0025(#18)F.0025(#9)


This is the Peck cycle(sub program)

0007(Z AXIS PECK)
WHILE[[#5042-#5082]LT#26-[#23+.0005]]DO1
G1W#23F#9
W-#18
W#18
END1
G1Z#26F#9
M99
%

This works perfect on 18i-TB and the new control it works great too but it goes way past my Z depth. The #26 is the right Z until it is satisfied, then it wants to go to about .600. Where is it getting this number? Im thinking the problem must be here, #5042-#5082?

Just want to see if any of you have been able to peck turn with the 31i control. I need to break the chips up.

EDIT/UPDATE---------So I called Fanuc and they really were no help. I did make a very interesting discovery, it will work perfect if you are in single block but when you let it run it will go way past where we want it to go. I even made my own while statement in the program and it is doing the same. I also realized this is not Hobbycnc and im not sure how to change this or where it should go.

Thanks,
Bill