211
G-Code, CAD, and CAM discussions / Subtest again...
« on: May 29, 2007, 05:49:45 PM »
Noob alert. 
I had a look here.http://www.artsoftcontrols.com/forum/index.php?topic=2540.0
OK, i got it, that works.
Now what if you want to run that sub in different locations in the coordinate system?
So take this one... <stolen from that link above>
G20 G40
G00 g90 g43 X-1. Y-1.
z1.
M98 (SUBTEST.TAP)
M30
%
and then add another position, so it looks like this:
G20 G40
G00 g90 g43 X-1. Y-1.
z1.
M98 (SUBTEST.TAP)
X5 Y5
M98 (SUBTEST.TAP)
M30
%
You see that I'm trying to run the sub again at x5 y5... but it doesnt turn out like i'd expect (another box at x5,y5).
What remedies this?
Thanks much.
-Nick

I had a look here.http://www.artsoftcontrols.com/forum/index.php?topic=2540.0
OK, i got it, that works.
Now what if you want to run that sub in different locations in the coordinate system?
So take this one... <stolen from that link above>
G20 G40
G00 g90 g43 X-1. Y-1.
z1.
M98 (SUBTEST.TAP)
M30
%
and then add another position, so it looks like this:
G20 G40
G00 g90 g43 X-1. Y-1.
z1.
M98 (SUBTEST.TAP)
X5 Y5
M98 (SUBTEST.TAP)
M30
%
You see that I'm trying to run the sub again at x5 y5... but it doesnt turn out like i'd expect (another box at x5,y5).
What remedies this?
Thanks much.
-Nick