M98 P0002 L10
Has any system varible for paramater "L" except Macro B ?
exp:
M6T#100
#100 = #100 + 1 >>>>>> omitted
M98 P0002 L10
Has any system varible for paramater "L" except Macro B ?
exp:
M6T#100
#100 = #100 + 1 >>>>>> omitted
I am not sure what you are trying to do as a loop counter
M98 P0002 L10-- this will run the program 0002 10times
M6T#100
#100 = #100 + 1 >>>>>> omitted ---what is it you want omitted?
this would make the the tool number increase by 1 each time and index but you would need to start at a specific number or else it could start with any tool # and all tools will do the same tool paths
if this is all the program and you are looking to index to the next tool 10 times this would work
I would use the G65 Instead of the m98 because you can bring local variables into the sub program
G65P0002A1L10(P=PROGRAM, A= STARTING TOOL #, L =NUMBER OF REPEATS)
O0002
M6T#1(THIS IS A)
G4P2000(DWELL FOR 2 SEC.)
#1=#1+1
M30
%
an other option is a while statement
M98P0002
O0002( The while statement will run 10 times)
#100=1(STARTING TOOL)
#101=10(ENDING TOOL)
WHILE[#100LT#101]DO1
M6T#100
#100=#100+1
END1
As we know some system variables for purpose
exp:
Modal Information
#4001 to #4130
I'm looking for #???? for counter when I use M98, G66, G65....ect.
#???? will automatically count by fanuc system except Local, Common variables
these may be for the parts counter
#3901 = Parts Machined
#3902 = parts required
I take a shot from machine screen
Sub program run one time, the number will -1 until 0
It should be saved by a variable.