Main Menu

search

You are here

3d Printing: gCode Details

[last updated: 2022-01-14]
3d printing home page
gCode home page
gCodes - All
-----

This page needs editing...
--------------------------------------------------

  • Movement:
    • G0 & G1 ; Move commands. These two commands are functionally equivalent, but G0 is by convention used for non-extruding moves.
      Parameters can include: X..., Y..., Z..., E..., and F...
      At least one parameter must be specified.
      Xnnn, Ynnn, & Znnn are the x-, y-, and/or z-axis positions to move to.
      Ennn is the amount (mm of filament?) to extrude during the movement.
      Fnnn is the feedrate (mm of filament per minute) to extrude during the movement


      eg. G0 X5 ; moves to position x = 5 on the x-axis, with no extrusion during the move. Y- and Z-axis positions do not change.

    • Speed notes:
      The Fnnn parameter sets the speed (mm/min) for a movement.
      Once set, subsequent moves (both G0 and G1) will maintain the same speed setting unless they include their own Fnnn parameter.

  • Pauses:
    • G4 S3 ; pause for 3 seconds
    • G4 P500 ; pause 500ms
    • M600 ; pause and initiate filament change procedure
    • M601 ; pause - appears to be identical to "menu: pause print"
      Resume with "menu: resume print"

  • Variables and Conditionals and Loops:
    Incomplete ...

  • Misc Common Codes:
    • G20 ; set distance/coordinate parameter units to mm's
    • G21 ; set distance/coordinate parameter units to inch's

    • M104 S0 ; turn hotend off
    • M84 ; disable motors - must be used at end of file even if motors weren't turned on, else printer thinks file is incomplete

    • M117 ; "echo" display whatever follows to LCD screen
      eg: M117 hello world

    • M300 S400 P900 ; sound a tone of 400Hz for 900ms

  • Pause sequence to Insert a Part:
      G1 X10.000 Y200.000 E0; parking position
      M1; user stop
      G28 Y ; home y-axis
      M105; return to current temp
      Insert this code at the layer height you want to insert the item at,
      the extruder should go to the back left, leaving the build plate almost fully accessible for part insertion...
      insert your component then press the button
      Not Tested ...

.

.

.

eof