F Codes   <<--BACK                           UP ^                       NEXT-->>   M Codes
side4linux, a simple integrated development environment!

G Codes


Note: G codes with a '*' in front of them are not yet  implemented, but will be soon e.g. *G999   
        


Command   
            Comment


G0
linear interpolate at full speed  G0X1.0Y2.0X5.33 or G0R234 (ROTATE DEGREES)
G1 linear interpolate at Fn set speed  G1X1.0Y2.0 or G1RV34 (ROTATE WITH VARIABLE)
G2 clockwise circular interpolate   G2X1.0Y2.3I3.2J2.1 
G3 anti clockwise circular interpolate.
N.B. in this application only RELATIVE Co-Ords are used to describe arc points so be sure to set up code thus, G3X45Y30I85J89
N.B. X,Y = x,y end of arc & I,J = x',y' start of arc as related incrementally to the arc center.
e.g. for the above G3 this means the end is X45mm,  Y30mm from arc end back to the arc center point, and the
start is X'85.3mm,Y'89.1mm from the arc start point back to the arc center point.
G17 circular interpolate in plane = 'XY' 
G18 circular interpolate in plane = 'XZ' ( not yet implemmented )
G19 circular interpolate in plane = 'YZ' ( not yet implemmented )
G38 G38 sets scale percentage for one axis at a time.  Two types are allowed they are G38VXn and G38Xn
The first type contains a "V" as in G38VYn  The "V" indicates that a variable is used instead of  a value. e.g.,
G38Van  where "V" = variable ,  "a" = axis X or Y , "n" = number of variable . The value of the variable is 1 -> 100,
and the scale is the value of the variable in the range 0 to 100.0  percent e.g. set axis X to half scale,
use G55 command to set value of variable to 50 then  use G38VX1 where in this case the x axis is set to the value of variable number 1.
The second type of G38 is value based e.g.  G38an  where "a" = axis X or Y , "n" = absolute scale percentage,
e.g. G38Y50 = set Y axis to half size.
G39A ABSOLUTE rotate path around current origin anticlockwise. G39A50.8
G39V VARIABLE rotate path around current origin anticlockwise. G39V1
G50 set temporary origin at current tool position, use G51 to reset.
G51 cancels last G50 command and returns to ABSOLUTE XYZ
G55 set a single variable to specified value G55V24A37.0
where "Vn" equals variable[number] and where "An" equals assigned[number]
G56 set a variable calculation block, e.g. G56Vn=Vn+Vn  ----- Operators, + = plus, % = subtract, * = multiply, @ = change sign,
  / = divide, Variable n = 1 -> 999.  Example  G56V3=V10*V22
G57 start subroutine definition block. e.g. G57R3 
G58 close current G57 subroutine definition block.
G59 call subroutine Rn, Cn No of times e.g. G59R1C6
  also non-standard G59RnCVn, uses a variable set by G55 or G56 e.g. G59R3CV6
G70 set to imperial (inch) measurement units.
G71 set to metric (millimeters) measurement units.
G90 set to ABSOLUTE co-ordinates.
G91 set to RELATIVE co-ordinates.
G94 set feedrate to units per minute.




Note
: All commands and filenames MUST be in upper case for G-code programming !!