Hello Guest it is March 29, 2024, 05:02:38 AM

Author Topic: Mach 3, M98 can get it to work, Please Help  (Read 1026 times)

0 Members and 1 Guest are viewing this topic.

Mach 3, M98 can get it to work, Please Help
« on: November 21, 2018, 10:15:02 AM »
Hello Everyone

I been messing around with this for days, I got it to work in Mach 4 but not with Mach 3
I do have the 2 files in the Subroutines folde

Thanks

Here is my main program
File name   START.TXT

G20
G54 x11.0 y10.0
M98 P0201 L1
O0201.tap
M30

and i also tried, This one works in mach 4 but not in Mach 3

G20
G54 x11.0 y10.0
M98 P0201 L1
M30

and my subprogram
File name O0201.tap

O0201
N100G00G20G17G90G40G49G80
N110G70G91.1
N120T1M06
N130 (V-Bit {90 deg 1 inches})
N140G00G43Z0.5000H1
N150S24000M03
N160(Toolpath:- V-Carve 1)
N170()
N180G94
N190X0.0000Y0.0000F100.0
N200G00X1.2460Y0.9877Z0.1000
N210G1Z-0.1516F30.0
N220G1X1.2472Y1.0265Z-0.1516F100.0

( Bunch of Code )

N53310G00Z0.1000
N53320G00Z0.5000
N53330G00X0.0000Y0.0000
N53340M09
M99
%

Re: Mach 3, M98 can get it to work, Please Help
« Reply #1 on: April 03, 2020, 08:56:12 AM »
I had this same issue. I was not calling a program from a file but as a subroutine
Below is a piece of sample code from  my program.
The " title line" of the sub program ( 0 1234 ) must have a space after the numbers or the system will not recognize it as a sub program and it will pass right through the M98 line as if it were a comment.


G00 X 50.000 Y 100.000
M98 P1234
M30 ( End of program.)
%

o 1234
G00 Z 5.000
code and stuff here
M99

M98 P1234
there can be a space between the P and the numbers P 1234 or P1234 these will work either way
o 1234
The O 1234 can have a space between the O and the numbers O 1234 or O1234 this works either way

the O1234   <- must have a space here.

M99
Must have a line feed or carriage return after it or you will receive a " subprogram not found error"