SET_GCODE_VARIABLE MACRO=PRINTER_PARAM VARIABLE=fan0_min VALUE=30 ;compensate for fan speed SET_VELOCITY_LIMIT ACCEL_TO_DECEL=2500 ;revert accel_to_decel back to 2500 M220 S100 ;Reset Feedrate M221 S100 ;Reset Flowrate M140 S[bed_temperature_initial_layer_single] ;Set bed temp G28 X Y ;Home XY axes M190 S[bed_temperature_initial_layer_single] ;Wait for bed temp to stabilize G28 Z ;Home Z axis & load bed mesh BED_MESH_CALIBRATE PROBE_COUNT=5,5 ;Auto bed level M104 S[nozzle_temperature_initial_layer] ;Set nozzle temp G92 E0 ;Reset Extruder G1 X-2.0 Y20 Z0.3 F5000.0 ;Move to start position M109 S[nozzle_temperature_initial_layer] ;Wait for nozzle temp to stabilize G1 Z0.2 ;Lower nozzle to printing height G1 Y145.0 F1500.0 E15 ;Draw the first line G1 X-1.7 F5000.0 ;Move to side a little G1 Y30 F1500.0 E15 ;Draw the second line G92 E0 ;Reset Extruder