3dprint

GCode

Source

Code Example Description
M104 S<value>; M104 S220; Sets the print temperature, no wait (to 220C).
M106 S<value>; M106 S153; Sets the part cooling fan PWM to 153 out of 255.
M109 S<value>; M109 S220; Sets the print temperature, will wait (to 220C).
M220 S<value>; m220 S80; Sets the printspeed in gcode to 80% of normal.
M220 B; m220 B; Backups the current speed setting.
M220 R; m220 R; Restores the value from the last m220 b command .
M221 S<value>; M221 S98; Sets the flow rate to 98%.

Prusa

Calibration calulcation

Source

Measure each wall of the calibration cube three times and calculate the average thickness.

Formular for flow rate:

# Nozzle size: 0.4
# Extrusdion width (infill): 0.45
# Material: PLA, PETG, ABS
# Extrusion multiplier = Extrusion width / Average measured wall thickness
# z = (a+b+c+d+e+f+g+h+i+j+k+l+m)/12
x =  0.45 / z