1633
« on: April 01, 2008, 07:51:54 PM »
Hi,
Machines work from a datum point, this can be set anywhere within its working envelope, you can then work in absolute movements or incremental moves.
Absolute (G90) commands work from the datum point to the commanded position.
Incremental (G91) commands work from the current point and move the commanded amount.
E.G. to move in a 2" square using absolute the code would look like this :-
G20 G40
G00 G90 X0 Y0
G01 X2. F10.
Y-2.
X0
Y0
M30
And the same in incremental :-
G20 G40
G00 G90 X0 Y0
G91
G01 X-2. F10.
Y-2.
X2.
Y2.
M30
I hope this helps.
Graham.