Hello Guest it is April 18, 2024, 02:32:13 AM

Author Topic: NFS rectangular hole patern problem  (Read 3788 times)

0 Members and 1 Guest are viewing this topic.

NFS rectangular hole patern problem
« 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
Re: NFS rectangular hole patern problem
« Reply #1 on: February 06, 2011, 07:05:21 PM »
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.
Re: NFS rectangular hole patern problem
« Reply #2 on: February 06, 2011, 07:24:02 PM »
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.
Re: NFS rectangular hole patern problem
« Reply #3 on: February 06, 2011, 07:29:25 PM »
The width value sets the total width of the array, it is NOT the spacing between holes. You should make width =11
Re: NFS rectangular hole patern problem
« Reply #4 on: February 06, 2011, 07:38:47 PM »
Ah, Thanks!!! I misunderstood the graphic. Now it makes sense.