# Ender 3 S1 Config, Satit Chula Specific [printer] kinematics: cartesian max_velocity: 500 max_accel: 3000 max_accel_to_decel: 3000 max_z_velocity: 5 square_corner_velocity: 5.0 max_z_accel: 100 [stepper_x] step_pin: PC2 dir_pin: PB9 enable_pin: !PC3 microsteps: 16 rotation_distance: 40 endstop_pin: !PA5 position_endstop: 0 position_max: 258 homing_speed: 50 [stepper_y] step_pin: PB8 dir_pin: PB7 enable_pin: !PC3 microsteps: 16 rotation_distance: 40 endstop_pin: !PA6 position_endstop: 0 position_max: 230 homing_speed: 50 [stepper_z] step_pin: PB6 dir_pin: !PB5 enable_pin: !PC3 microsteps: 16 rotation_distance: 8 endstop_pin: probe:z_virtual_endstop position_max: 270 position_min: -1 [extruder] max_extrude_only_distance: 100.0 step_pin: PB4 dir_pin: PB3 enable_pin: !PC3 microsteps: 16 rotation_distance: 7.6190 nozzle_diameter: 0.400 filament_diameter: 1.750 heater_pin: PA1 sensor_type: EPCOS 100K B57560G104F sensor_pin: PC5 control: pid pid_Kp: 22.865 pid_Ki: 1.292 pid_Kd: 101.178 min_temp: 0 max_temp: 265 pressure_advance = 0.045 [input_shaper] shaper_freq_x: 40 shaper_freq_y: 40 [filament_switch_sensor RunoutSensor] pause_on_runout: False runout_gcode: PAUSE insert_gcode: RESUME switch_pin: !PC15 [heater_bed] heater_pin: PA7 sensor_type: EPCOS 100K B57560G104F sensor_pin: PC4 control: pid pid_Kp: 69.139 pid_Ki: 1.273 pid_Kd: 938.565 min_temp: 0 max_temp: 130 [respond] default_type: echo [endstop_phase stepper_x] [endstop_phase stepper_y] [gcode_arcs] resolution: 1.0 [heater_fan hotend_fan] pin: PC0 heater: extruder heater_temp: 50.0 [fan] pin: PA0 [mcu] serial: /dev/ttyEnder restart_method: command [bltouch] sensor_pin: ^PC14 control_pin: PC13 x_offset: -32 y_offset: -41 z_offset: 2.62 speed:10 samples:1 samples_result:average probe_with_touch_mode: true stow_on_each_sample: false [safe_z_home] home_xy_position: 154,154 speed: 100 z_hop: 10 z_hop_speed: 5 [bed_mesh] speed: 100 mesh_min: 10, 10 mesh_max: 225, 189 algorithm: bicubic probe_count: 5,5 [palette2] serial: /dev/ttyPalette baud: 115200 feedrate_splice: 0.3 feedrate_normal: 1.0 auto_load_speed: 2 auto_cancel_variation: 0.1 [virtual_sdcard] path: /home/octoprint/.octoprint/uploads [display_status] [pause_resume] recover_velocity: 100 [gcode_macro G29] description: Mesh Bed Leveling gcode: G28 BED_MESH_CALIBRATE G0 X0Y0Z5 [gcode_macro PARK_NOZZLE_REAR] description: Park the nozzle at the rear of the bed gcode: G90 ; absolute positioning G0 X0 Y200 F6000 ; move to the rear of the bed [gcode_macro CANCEL_PRINT] description: Cancel the actual running print rename_existing: BASE_CANCEL_PRINT gcode: M220 S100 ; reset speed factor override percentage to default (100%) M221 S100 ; reset extrusion factor override percentage to default (100%) {% if printer.extruder.temperature > 170 %} ; if extruder is hot, retract filament G1 E-3.0 F3600 ; retract filament by 3mm {% endif %} {% if printer.toolhead.homed_axis == "xyz" %} ; if XYZ is homed, we can move the nozzle G91 ; relative positioning G1 Z+5 F3600 ; move nozzle up 5mm G90 ; absolute positioning PARK_NOZZLE_REAR ; park nozzle {% endif %} CLEAR_PAUSE BASE_CANCEL_PRINT [gcode_macro PRINT_START] description: Prepare extruder and bed for printing gcode: G28 ; home all axes M83 ; relative extrusion M104 S{ params.EXTRUDER | float } ; set extruder temp M190 S{ params.BED | float } ; wait for bed to reach temperture M109 S{ params.EXTRUDER | float } ; wait for extruder to reach tempert ure BED_MESH_CALIBRATE ; calibrate bed mesh PARK_NOZZLE_REAR ; park nozzle [gcode_macro PRINT_END] description: Turn off extruder and bed after printing gcode: M400 ; wait for moves to finish G91 ; relative positioning M83 ; relative extrusion G1 E-5.0 F2000 ; retract filament M400 ; wait for moves to finish G0 Z5 F2000 ; move nozzle to remove stringing M400 ; wait for moves to finish G90 ; absolute positioning TURN_OFF_HEATERS ; turn off heaters M107 ; turn off fan PARK_NOZZLE_REAR ; park nozzle M84 ; disable motors