Hello Guest it is March 29, 2024, 05:09:39 AM

Author Topic: How to run mach3 for multiple cycles?  (Read 15219 times)

0 Members and 1 Guest are viewing this topic.

How to run mach3 for multiple cycles?
« on: January 22, 2014, 07:13:56 AM »
I'm not very experienced MACH3 user. We are using MACH3 in a 2-axis glue dispenser wherein glue is applied on the edges of a plastic panel for adhesion. Running machine for single operation is ok. I wish if I could run machine for like 10 or more operations i.e doing same thing again & again but for precise numbers. I've been trying, withinn the software, to find out a way out but failed. I would be thankful if some guy could guide how this could be done. My genuine MACH3 version is R3.043.066. Thanks

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: How to run mach3 for multiple cycles?
« Reply #1 on: April 14, 2014, 10:39:24 AM »
You can run it as a sub and program in the number of loops. The program below will do 20 loops thru the glue code. The number of loops is controlled by the L call (L20).


M98 P1  L20
M30

o1
(code to position parts to be glued)
G0 Z.1
(Turn on Glue)
G1 X10 F10
(Turn Off Glue)
G0 Z.5
X0
M99
%


Or you can use the Repeat Gcode to drive the program continously

(code to position parts to be glued)
G0 Z.1
(Turn on Glue)
G1 X10 F10
(Turn Off Glue)
G0 Z.5
X0

M01  (Stop and Hold, wait on cycle start)

M47  ( repeat from first line of Gcode)


Re: How to run mach3 for multiple cycles?
« Reply #2 on: September 07, 2018, 10:06:22 AM »
i want to cut 30 of the same parts out of 4 by 8 sheet of material. on a vortech router using mach3 . how would you program that to repeat.

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: How to run mach3 for multiple cycles?
« Reply #3 on: September 07, 2018, 11:37:25 AM »
In your CAM software.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: How to run mach3 for multiple cycles?
« Reply #4 on: September 07, 2018, 01:52:48 PM »
If you don’t have Cam then you can program the part incrementally and put that code in a subroutine. Program absolute start position and call the sub, new position call the sub, until you done. I’ve done lots of that 20 years ago. CAM is too easy and cheap to waste my time that way anymore.