Repeating a Subroutine.
My Fanuc 16M manual says That I can specify the number of times to repeat a sub, by using the P word.
The M98 Line below should repeat the call to sub 10, 5 times.
My question is...
Does this work on the newer controls?
Can this also be done with an "L" word (M98 P0010 L5)?
T1 M6
G0 X2. Y0. Z.1
G1 Z0. F10
M98 P50010
G0 Z.1
...
...
M30
O0010
G91 G1 Z-.2 F8.
G90
G2 X2. Y0. I-2. J0. F10.
M99
According to the manual you can have
P 0000 0000
(# of times) (Name of sub)
But the "M98 P0010 L5" is cleaner looking code.
Mike Mattera
Tips For Manufacturing Training CD's, DVD's for Mastercam, SolidWorks, Inventor, G-Code Training & More
http://www.tipsforcadcam.com