Skip to main content
. 2022 Dec 26;15(1):96. doi: 10.3390/polym15010096
M140 S40; —ACTIVATE HOT BED AND EXTRUDER TEMPERATURE—SET THE TEMPERATURE OF THE HOT BED AND THE EXTRUDER—SET THE TEMPERATURE OF THE EXTRUDER—SET THE TEMPERATURE OF THE EXTRUDER
M140 S40 ; sets the hot bed temperature to 40 °C (do not wait to reach the value)
M104 S150 ; sets extruder temperature to 150 °C (do not wait for the value to be reached)
M105 ; requests the extruder temperature value
M190 S40 ; sets the hot bed temperature to 40 °C (wait until the value is reached)
M105 ; requests extruder temperature value
M109 S150 ; sets extruder temperature to 150 °C (wait until value is reached)
M82 ; makes the extruder interpret the extrusion as absolute positions
-- START G-CODE --
M302 S120 ; allows for printing at temperatures lower than 170 °C
G21 ; sets the units in millimeters
G90 ; sets the extruder position as absolute position
M106 S0 ; sets the fan speed (PWM 0—off)
G28 X0 Y0 ; moves the extruder to the origin (X/Y Home)
M117 ; purges the extruder
G92 E0 ; restarts the extruder
G28 Z0 ; moves the extruder to the origin (Z Home)
G1 Z15.0 F2400 ; moves the extruder to the Z 15.0 mm position
G92 E0 ; does not extrude the filament on the move
G1 E1 F200 ; extrudes 1mm of filament
G1 E1 F200 ; —end of START G-CODE—
; PRINTING LAYER_1 (Code generated in Python)
; fast motion (traverse speed F mm/min; Position XYZ (mm))
G0 F800 X85.000 Y85.000 Z0.200
; controlled motion (printing speed F (mm/min); XY position (mm); extruded filament E (mm))
G1 F600 X115.000 Y85.000 E0.891
G1 F600 X115.000 Y86.000 E0.920
G1 F600 X85.000 Y86.000 E1.811
G1 F600 X85.000 Y87.000 E1.841
G1 F600 X115.000 Y87.000 E2.732
G1 F600 X115.000 Y88.000 E2.761
G1 F600 X85.000 Y88.000 E3.652
G1 F600 X85.000 Y89.000 E3.682
G1 F600 X115.000 Y89.000 E4.572
G1 F600 X115.000 Y90.000 E4.602
G1 F600 X85.000 Y90.000 E5.493
G1 F600 X85.000 Y91.000 E5.523
G1 F600 X115.000 Y91.000 E6.413
G1 F600 X115.000 Y92.000 E6.443
G1 F600 X85.000 Y92.000 E7.334
G1 F600 X85.000 Y93.000 E7.363
G1 F600 X115.000 Y93.000 E8.254
G1 F600 X115.000 Y94.000 E8.284
G1 F600 X85.000 Y94.000 E9.175
G1 F600 X85.000 Y95.000 E9.204
G1 F600 X115.000 Y95.000 E10.095
G1 F600 X115.000 Y96.000 E10.125
G1 F600 X85.000 Y96.000 E11.015
G1 F600 X85.000 Y97.000 E11.045
G1 F600 X115.000 Y97.000 E11.936
G1 F600 X115.000 Y98.000 E11.966
G1 F600 X85.000 Y98.000 E12.856
G1 F600 X85.000 Y99.000 E12.886
G1 F600 X115.000 Y99.000 E13.777
G1 F600 X115.000 Y100.000 E13.806
G1 F600 X85.000 Y100.000 E14.697
G1 F600 X85.000 Y101.000 E14.727
G1 F600 X115.000 Y101.000 E15.618
G1 F600 X115.000 Y102.000 E15.647
G1 F600 X85.000 Y102.000 E16.538
G1 F600 X85.000 Y103.000 E16.568
G1 F600 X115.000 Y103.000 E17.458
G1 F600 X115.000 Y104.000 E17.488
G1 F600 X85.000 Y104.000 E18.379
G1 F600 X85.000 Y105.000 E18.409
G1 F600 X115.000 Y105.000 E19.299
G1 F600 X115.000 Y106.000 E19.329
G1 F600 X85.000 Y106.000 E20.220
G1 F600 X85.000 Y107.000 E20.249
G1 F600 X115.000 Y107.000 E21.140
G1 F600 X115.000 Y108.000 E21.170
G1 F600 X85.000 Y108.000 E22.061
G1 F600 X85.000 Y109.000 E22.090
G1 F600 X115.000 Y109.000 E22.981
G1 F600 X115.000 Y110.000 E23.011
G1 F600 X85.000 Y110.000 E23.901
G1 F600 X85.000 Y111.000 E23.931
G1 F600 X115.000 Y111.000 E24.822
G1 F600 X115.000 Y112.000 E24.852
G1 F600 X85.000 Y112.000 E25.742
G1 F600 X85.000 Y113.000 E25.772
G1 F600 X115.000 Y113.000 E26.663
G1 F600 X115.000 Y114.000 E26.692
G1 F600 X85.000 Y114.000 E27.583
; —END G-CODE—
M104 S0; sets the extruder temperature to zero (off)
G91; sets the extruder position as relative position
G1 E-2 F600 ; retracts the filament to release pressure
G1 Z10 ; moves the extruder to position Z 10 mm
G90; sets the extruder position as absolute position
M84; switches off the motor
; —END G-CODE—