Hello
Guest
it is
September 28, 2023, 01:23:55 PM
Guest
Login
Register
Menu
Home
Help
Search
Calendar
Members
Members
View the memberlist
Search For Members
Login
Register
YouTube
Machsupport Forum
/
Mach Discussion
/
General Mach Discussion
/
Can Mach3 do continuous loops?
« previous
next »
Print
Pages:
1
2
»
Go Down
Author
Topic: Can Mach3 do continuous loops? (Read 6127 times)
0 Members and 1 Guest are viewing this topic.
vypham2
30
Can Mach3 do continuous loops?
«
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
Logged
Captain Midnight
90
Re: Can Mach3 do continuous loops?
«
Reply #1 on:
June 22, 2012, 06:00:16 PM »
Write a subrutine, and call it as many times as you wish.
Logged
BR549
6,965
Re: Can Mach3 do continuous loops?
«
Reply #2 on:
June 23, 2012, 05:09:04 PM »
THE sub DOES have a 99 loop max.
(;-) TP
Logged
Overloaded
4,919
Re: Can Mach3 do continuous loops?
«
Reply #3 on:
June 23, 2012, 08:22:40 PM »
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
Logged
BR549
6,965
Re: Can Mach3 do continuous loops?
«
Reply #4 on:
June 24, 2012, 11:35:07 AM »
Russ, Correct(;-)
(;-) TP
Logged
derekbpcnc
195
Re: Can Mach3 do continuous loops?
«
Reply #5 on:
June 24, 2012, 12:01:21 PM »
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]
Logged
You can "chop it off" but can't "chop it on"
BR549
6,965
Re: Can Mach3 do continuous loops?
«
Reply #6 on:
June 24, 2012, 12:13:26 PM »
SORRY but mach3 does NOT have conditional Gcode.
(;-)TP
Logged
Hal
60
Re: Can Mach3 do continuous loops?
«
Reply #7 on:
June 24, 2012, 08:50:04 PM »
What would happen with M47?
Logged
Overloaded
4,919
Re: Can Mach3 do continuous loops?
«
Reply #8 on:
June 25, 2012, 08:32:19 AM »
Quote from: Hal on June 24, 2012, 08:50:04 PM
What would happen with M47?
"M47- Repeat program from first line"
It would loop continuously ..... until you defaulted on your electric bill.
Russ
Logged
vypham2
30
Re: Can Mach3 do continuous loops?
«
Reply #9 on:
June 25, 2012, 11:11:03 AM »
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
Logged
Print
Pages:
1
2
»
Go Up
« previous
next »