Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 12:08:53 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Third party software and hardware support forums.
| |-+  Newfangled Solutions Wizards (Moderator: Ron Ginger)
| | |-+  NFS rectangular hole patern problem
Pages: 1   Go Down
Print
Author Topic: NFS rectangular hole patern problem  (Read 644 times)
0 Members and 1 Guest are viewing this topic.
fusion
Active Member

Offline Offline

Posts: 11


View Profile
« 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


* hole-patern-setup.JPG (111.48 KB, 1048x779 - viewed 85 times.)
Logged
Ron Ginger
Active Member

Offline Offline

Posts: 568



View Profile WWW
« 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.
Logged
fusion
Active Member

Offline Offline

Posts: 11


View Profile
« 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.
Logged
Ron Ginger
Active Member

Offline Offline

Posts: 568



View Profile WWW
« 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
Logged
fusion
Active Member

Offline Offline

Posts: 11


View Profile
« Reply #4 on: February 06, 2011, 07:38:47 PM »

Ah, Thanks!!! I misunderstood the graphic. Now it makes sense.
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!