Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: searcue on April 15, 2012, 05:04:29 PM
-
Hi,
I've been running Version 1.84 since 2006. I updated to version R3.043.022 because I wanted the updated Video window.
I save the original screenset because I wanted to keep the Multiphase Loop button which I use a lot.
In the old version I can run this Macro Here's a short example:
N1 G90(notes about program)
N2 G00 a0.0
N2 m98 p1
N3 G00 a90.0
N4 m98 p1
N5 G00 a180.0
N6 m98 p1
N7 G00 a270.0
N8 m98 p1
N9 G00 a0.0
N10 G02
N11 O 1
N12 "g codes"
N13 " "
N14 " "
N15 "for pockets"
N16 m99
In ver 1.84 this program has always run just fine.
In the new ver 3.043.022 it will cycle through the A-axis, and return to zero and ignore the m98, the p1, and the g-code between O1, and m99.
Can anyone help? Am I missing something in the config files?
I know I can write this code differently to get the same job done, but I may have a 1000 programs already written this way I use, and I'm trying to avoid rewriting everyone.
Is it that the New version doesn't like the old screenset, or the old .xml or even the code itself?
Thank you for any help in advance!!
Dennis
searing@aol.com
-
There cannot be a line Num (N10) on the same line as the Oword (01)
Also make sur ethere is a Return after the last line in the sub code
N16 M99
% or carrage return
(;-) TP
-
Hi TP,
Thank you for the quick response!! This was only a hand written example. Having the O 1 code on the same line as N10 isn't the normal. I found even when
it's not on the same line, it still won't run. My example also does have the m99 at the end of the program, as well as the actual programs I ran on the old version of Mach3 that
did run without any issue all the way through for years.
Any others ideas?
Thank you again,
Dennis
-
Almost forgot you have to END the Main program with a M30
N1 G90(notes about program)
N2 G00 a0.0
N2 m98 p1
N3 G00 a90.0
N4 m98 p1
N5 G00 a180.0
N6 m98 p1
N7 G00 a270.0
N8 m98 p1
N9 G00 a0.0
M30
o1
N12 "g codes"
N13 " "
N14 " "
N15 "for pockets"
N16 m99
%
(;-) TP
-
Hi TP,
Thank you so much for your help!!!!
I did have a type O on line ten it is normally a m02, not g02. :)
The m02 at the bottom of the macro is fine. What I found to be the problem is that
the program title "O 1" or "O 2" or whatever has to be the only thing in that line.
It cannot be on a line that has a line number like "N11" I deleted the "N11"
and the program ran perfect.
Thank you for making me see that.
Great day to you!!
Dennis