Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: vypham2 on June 22, 2012, 04:58:50 PM
-
Hi all,
I'm starting to get to know the machine at a basic level.
Does anyone know if there's a gCode that can program the Mach3 to do continuous loops over and over again once i've put in a design layout?
Thanks,
V
-
Write a subrutine, and call it as many times as you wish.
-
THE sub DOES have a 99 loop max.
(;-) TP
-
True continuous, M47 at the end of the code, Rewind and Restart. But it will run forever, you have to stop it.
I used it to verify a set-up, let it run for 48 hours with a small program.
TP, what about a sub in a sub ? 99 x 99 ? ? ?
Russ
-
Russ, Correct(;-)
(;-) TP
-
or use a variable counter.
N10 #100 =1
N20 M98 O1 (RUN SUB)
N30 IF [#100LT300] GOTO 20 (LOOPS SET TO 300 OR WHETEVER YOU NEED)
N40 M30
IN THE SUB INCREMENT COUNTER #100=[#100+1]
-
SORRY but mach3 does NOT have conditional Gcode.
(;-)TP
-
What would happen with M47?
-
What would happen with M47?
"M47- Repeat program from first line"
It would loop continuously ..... until you defaulted on your electric bill. :)
Russ
-
Thanks guys!
Only one thing though, when I put the subroutine in microsoft notepad and save it as .tap/AllFiles... it doesn't show up as a subroutine on my Program Run scroll box and doesn't perform the function because essentially there isn't one.
Help?
V
-
needs to be <filename.tap>. The name should be the same as in the sub-call.
Hal