Hi Gerry

I still have lots of questions about Mach.

I'm learning everything new including g code.

I wrote a small prog in Fanuc. (#101 , #102 etc.) It sort of ran in Mach 3 in simulated mode. I did not try to cut anything. The idea was to make a grid so I could match my code against it. The main prog makes four lines then the subprog is supposed to carry on with others.


The fanuc variables from #100 to #149 are global. The subprogram alters a global variable but the main program does not see the change. My question is, what standard does Mach 3 follow so that I won't get caught again?

The prog is here. More is needed but this part won't work the way it should.

G90 G21
#101=20
#102=10
#110=0
G0 X0 Y0
z-0.1
M98 P101
#110 = [#110 +1]
M98 P101
#110 = [#110 +1]
M98 P101
#110 = [#110 +1]
M98 P101

M30

O101
g0 y[#101]
g0 x[#102 * [#110 +1]] y[#101]
g0 x[#102 * [#110 +1]] y0.000
g0 x[#102 + [#102 * [#110 +1]]] y0.000
M99

Thanks for any and all help.

John Wales