Hello Guest it is March 29, 2024, 09:08:41 AM

Author Topic: subroutine  (Read 2509 times)

0 Members and 1 Guest are viewing this topic.

subroutine
« on: July 25, 2011, 12:24:01 AM »
Just a newbie. Spent 15 hrs trying to understand subroutine. Read many post and samples and here is what worked for me on Mach3
Subtest1.tap is a 6x6 rectangle saved in mach3/subroutine folder.
First 6 lines are setup created by Bob Cad. Program creates 2 rows 3 columns

N01 G20 G40 G49 G54 G80 G90 G91.1
N02 G00 Z0.
N03 T1 M6
N04 S10000 M03
N05 G00 G90  X0 Y0.
N06 G43 H1 Z.25
G91
M98 (subtest1.tap)
G91 X6.5
M98 (subtest1.tap)
G91 X6.5
M98 (subtest1.tap)
G90 X0Y-6.50
G91
M98 (subtest1.tap)
G91 X6.5
M98 (subtest1.tap)
G91 X6.5
M98 (subtest1.tap)
G90 x0y0
M30
%



(END OF PROGRAM)

N108 M30
%
Re: subroutine
« Reply #1 on: July 25, 2011, 12:25:37 AM »
Forgot
M99 is at end of subtest1 file

Offline Tweakie.CNC

*
  • *
  •  9,196 9,196
  • Super Kitty
    • View Profile
Re: subroutine
« Reply #2 on: July 25, 2011, 06:15:44 AM »
Looks like you have got it beaten  ;)

Tweakie.
PEACE