GCodes For ATOM2.0

The following GCodes are commonly used for controlling 3D printers. These are commands that are written by the open source community and are recognized by ATOM 2’s Marlin based firmware. These commands can be fed into the printer via USB from a computer running Pronterface or be part of KISSlicer’s GCode Prefix. All the GCode commands and more detailed descriptions can be found at:
http://reprap.org/wiki/G-code.The following GCodes are commonly used for controlling 3D printers. These are commands that are written by the open source community and are recognized by ATOM 2’s Marlin based firmware. These commands can be fed into the printer via USB from a computer running Pronterface or be part of KISSlicer’s GCode Prefix. All the GCode commands and more detailed descriptions can be found at:
http://reprap.org/wiki/G-code.
 

fig.1 - Pronterface Command Example In KISSlicer Prefix (pg.12)

fig.1 - Pronterface Command Example In KISSlicer Prefix (pg.12)

 fig.2 - GCode Command Examples In KISSlicer Prefix (pg.30)                                                                

 fig.2 - GCode Command Examples In KISSlicer Prefix (pg.30)                                      
                         


G0    Moves hotend tip to designated point

             
             G0 X<position> Y<position> Z<position>
             
              G0 X12 Y14
              Moves hotend tip to X = 12 mm, Y = 14mm


G1   Moves hotend tip to designated point while extruding

           
           G1 X<position> Y<position> Z<position> E<feed length> F<feed rate>

           
            G1 X90.6 Y13.8 E22.4 F5000
            Move hotend to X = 90.6mm, Y = 13.8mm while extruding 22.4mm of material with a feed rate of
            5000mm/min


G21  Set units to millimeters


             Set units to millimeters


G28  Move to origin (Auto Home)


             The three carriages will move to the top of the rail until they hit the endstops, letting the printer                               know where the “zero” position is


G29   Auto Level


G90  Set to absolute positioning mode

 

             All coordinates from now on are absolute relative to the origin of the machine.
             This is the default


G91   Set to relative positioning mode

 

               All coordinates from now on are relative to the last position


M104   Set hotend temperature


                  M104 S<temperature>
                   
                   M104 S190
                   Sets the hotend temperature to 190°C. This command can be added between G28 and G29 in the                            slicer’s GCode section to save heating time


M109  Set hotend temperature and waits until stable


                 M109 S<temperature>

                  M109 S200
                  Heats up the hotend and waits until the temperature stabilizes at 200°C before starting the next                             command line.


M119  Get endstop status


                 M119

                  Printer will report the status of all endstops, either open or triggered. See (pg.13) for use example.


M303   Run automatic PID calibration


                  M303 S<temperature> C<cycles>

                   M303 C8 S200
                   Runs the PID calibration for 8 cycles for 200°C and returns the PID values to be replaced. See (pg.44)                        for use example.


M500  Store parameters in EEPROM


M501   Read parameters from EEPROM


M502  Revert to the default “factory settings”


                  Overwrites the parameters in EEPROM with values set in the firmware. These values can be changed via                   programming software such as the Arduino software and uploaded to the control board.