Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: mhickler on October 25, 2007, 02:27:14 PM

Title: G code for controlling axis 4
Post by: mhickler on October 25, 2007, 02:27:14 PM
I'm using mach mill with X, Y, Z and 4 axes. I am controlling two cross slides. X and Y for cross slide one and Z and A for cross slide two. If I try a G code for axis 4 I get an error because "4" is read as a number.

Examples:
G1 X1 works
G1 41 doesn't work

Is there a syntax for handling an axis that is named with a number? Can I rename my axis without a lot of work?
Title: Re: G code for controlling axis 4
Post by: vmax549 on October 25, 2007, 02:32:23 PM
I don't believe you can have an axis named as a number. It would drive the interpreter crazy(;-)

It looks like you are using the A axis as the 4th axis. It would move with a G1  A2.0000 to move the A axis 2units in the positive direction

(;-) TP