5
« on: May 16, 2012, 10:47:58 AM »
Hi,
I have rectangular raster pattern that I would like to program a subroutine for, but have a couple questions regarding the best way to go about it. The first question is, will Mach3 understand conditional loops (WHILE, FOR, IF, etc.)? I read on CNC Cookbook that Mach3 doesn't support macros, and I got an error when I tried programming a WHILE loop.
Anyways, what I want to do is setup variables for the X length, Y length, Z gap between tool and substrate, feed rate, and spacing between raster scans. For example, a 86mm by 36mm (X length, #1=86 and Y length, #2=36) substrate, a 2mm gap between tool and substrate (Z gap, #3=-12, in my case), a feed rate of 2500mm/min (#4=2500), and a 1mm spacing between scans (#5=1).
I have attached the g code that goes through the raster pattern I would like for reference. If Mach3 does not support conditional loops, how would I go about doing? Any help is greatly appreciated!