Machsupport Forum
Third party software and hardware support forums. => Newfangled Solutions Mach3 Wizards => Topic started by: fusion on February 06, 2011, 03:55:39 PM
-
Ron, I am having trouble with the rectangular hole pattern. I set the spacing to an array 2" x 2" spacing 6 holes in X and 2 in Y. See attached picture.
Here is the code I get:
(Code by Newfangled Wizard, 2/6/2011)
(Version 2.85)
(Program Posted for Aluminum )
G0 G49 G40.1 G17
G80 G50 G90 G98
G20 (Inch)
(***** Rectangular Hole Pattern *****)
M6 T7
M03 S1500
M9
G00G43 H7 Z0.25
G81 X1 Y-2.75 Z-1.25 R0.15 F20
X1.4 Y-2.75
X1.8 Y-2.75
X2.2 Y-2.75
X2.6 Y-2.75
X3 Y-2.75
X3 Y-0.75
X2.6 Y-0.75
X2.2 Y-0.75
X1.8 Y-0.75
X1.4 Y-0.75
X1 Y-0.75
G80
M5 M9
M30
The X dimensions are not right
-
I dont see whats wrong. You asked for 6 holes, starting at X=1, and made the starting point the upper left corner. That causes the holes to spread out to X3.
Did you expect teh minus value for width to cause the part to be to the left? To do that set the start point as the upper right corner.
-
Nope,
I wanted the first X dimension to be a X=1, and that was OK. If the X spacing is 2, then the next holes should be at X=3,5,7,9,11. The code has them at X=1.4,1.8,2.2,2.6,and 3. The Y dimensions are correct.
-
The width value sets the total width of the array, it is NOT the spacing between holes. You should make width =11
-
Ah, Thanks!!! I misunderstood the graphic. Now it makes sense.