- Problem- Fanuc 180i Loop Counte
-
Registered
Fanuc 180i Loop Counte
M98 P0002 L10
Has any system varible for paramater "L" except Macro B ?
exp:
M6T#100
#100 = #100 + 1 >>>>>> omitted
Similar Threads:
-
-
Member
Re: Fanuc 180i Loop Counte
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
-
Registered
Re: Fanuc 180i Loop Counte
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
-
Member
Re: Fanuc 180i Loop Counte
these may be for the parts counter
#3901 = Parts Machined
#3902 = parts required
-
Registered
- Problem- Fanuc 180i Loop Counte
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules