Hi Everyone.
I am using a fanuc OM control on a bridgeport VMC16. I would like some help with programing repetative Z- moves when calling a subroutine. If I were machining a basic square at present i would put the geometry in program O(b), and call it via a M98 from prog O(a). If i wanted to drop the Z in 1mm increments to a certain level I would write as follows:
G1 Z-1. F500;
M98 P(a);
G1 Z-2. F500;
m98 and so on until i got to my Z- finish (say 20mm on this occasion.
My question is can I put a Z-1. ref to copy N (20 times) so i do not have to write the above program 20 times? I have heard that I can maybe use an L to refer to the number of copies but I cannot find the detail anywhere.
Thanks, and I look forward to any responses.
Rich.
on 0M repetition is done with the P
from the manual....
M98 P51002
This command specifies “Call the subprogram (number
1002) five times in succession.”
one way to achieve this is to move Z- in incremental mode (G91)
and do the actual machining in absolute (G90)
you put the geometry and Z- movement in the sub....
%
O1111
G90 G0 X.... Y....
G91 G1 Z-1. F500
G90
(rest of program here)
M99
then in the main program
%
O1110
M98P201111 (this calls program 1111 20 times)
M30
or something like that![]()
Last edited by fordav11; 05-10-2012 at 08:40 AM.