Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [bltouch]
- sensor_pin: ^PB1
- control_pin: PB0
- #z_offset: 0
- #stow_on_each_sample: false
- #probe_with_touch_mode: True
- pin_up_reports_not_triggered: True
- pin_up_touch_mode_reports_triggered: True
- x_offset: -42.5
- y_offset: -9.0
- [bed_mesh]
- speed: 80
- horizontal_move_z: 5
- mesh_min: 9.5, 15 #!!min and max co-ords are based on the probes location not the nozzle!!
- mesh_max: 202.5, 220 #needs to be calibrated for your individual printer
- probe_count: 5,5 #this is the number of probing points on X then Y axis
- mesh_pps: 2,2
- fade_start: 1
- fade_end: 10
- fade_target: 0
- [safe_z_home]
- home_xy_position: 125,125 #this should be the center of your bed
- speed: 50
- z_hop: 10
- z_hop_speed: 5
- [stepper_x]
- step_pin: PC2
- dir_pin: PB9
- enable_pin: !PC3
- microsteps: 16
- rotation_distance: 40
- endstop_pin: ^PA5
- position_endstop: 1
- position_max: 245
- homing_speed: 70
- [stepper_y]
- step_pin: PB8
- dir_pin: PB7
- enable_pin: !PC3
- microsteps: 16
- rotation_distance: 40
- endstop_pin: ^PA6
- position_endstop: -6
- position_max: 234
- position_min: -6
- 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_endstop: 0.0
- position_max: 250
- position_min: -6
- [extruder]
- max_extrude_only_distance: 100.0
- step_pin: PB4
- dir_pin: PB3
- enable_pin: !PC3
- microsteps: 16
- rotation_distance: 29.590
- nozzle_diameter: 0.400
- filament_diameter: 1.750
- heater_pin: PA1
- sensor_type: EPCOS 100K B57560G104F
- sensor_pin: PC5
- control: pid
- # tuned for stock hardware with 200 degree Celsius target
- pid_Kp: 21.527
- pid_Ki: 1.063
- pid_Kd: 108.982
- min_temp: 0
- max_temp: 250
- # PA dodane 15.03.2023 (0.0 + 48mm * 0.02 = 0.96)
- pressure_advance: 0.96
- [heater_bed]
- heater_pin: PA2
- sensor_type: EPCOS 100K B57560G104F
- sensor_pin: PC4
- control: pid
- # tuned for stock hardware with 50 degree Celsius target
- pid_Kp: 54.027
- pid_Ki: 0.770
- pid_Kd: 948.182
- min_temp: 0
- max_temp: 100
- [fan]
- pin: PA0
- [mcu]
- serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
- restart_method: command
- [printer]
- kinematics: cartesian
- max_velocity: 300
- max_accel: 3000
- max_z_velocity: 5
- max_z_accel: 100
- #dodane 16.03.2023 na podstawie https://teachingtechyt.github.io/calibration.html#accel
- max_accel: 400
- max_accel_to_decel: 400
- square_corner_velocity: 8.0
- [virtual_sdcard]
- path: /home/turbo/printer_data/gcodes
- [display] # RET6 12864 LCD
- lcd_type: st7920
- cs_pin: PB12
- sclk_pin: PB13
- sid_pin: PB15
- encoder_pins: ^PB14, ^PB10
- click_pin: ^!PB2
- [pause_resume]
- [include timelapse.cfg]
- [gcode_macro SIEMANO]
- gcode:
- M117 SIEMANO!
- [gcode_macro M205]
- gcode:
- G4 P0
- [gcode_macro clean_nozzle]
- gcode:
- SAVE_GCODE_STATE NAME=clean_nozzle_state
- G90
- G0 Z2 F5000
- G0 X116.8 Y354 F10000
- {% for wipe in range(8) %}
- {% for coordinate in [(81.8,354),(116.8,354)] %}
- G0 X{coordinate[0]} Y{coordinate[1] - 0.5 * wipe} Z0 F6000
- {% endfor %}
- {% endfor %}
- G0 X116.8 Y354 Z2 F5000
- RESTORE_GCODE_STATE NAME=clean_nozzle_state
- [include bed_level_mesh_macro.cfg]
- [gcode_macro PAUSE]
- rename_existing: BASE_PAUSE
- gcode:
- {% set X = params.X|default(220) %}
- {% set Y = params.Y|default(220) %}
- {% set Z = params.Z|default(10) %}
- {% set E = params.E|default(1) %}
- SAVE_GCODE_STATE NAME=PAUSE_state
- BASE_PAUSE
- G91
- G1 E-{E} F2100
- G1 Z{Z}
- G90
- G1 X{X} Y{Y} F6000
- [gcode_macro RESUME]
- rename_existing: BASE_RESUME
- gcode:
- {% set E = params.E|default(1) %}
- G91
- G1 E{E} F2100
- G90
- RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
- BASE_RESUME
- [gcode_macro CANCEL_PRINT]
- rename_existing: BASE_CANCEL_PRINT
- gcode:
- TURN_OFF_HEATERS
- CLEAR_PAUSE
- SDCARD_RESET_FILE
- BASE_CANCEL_PRINT
- [gcode_macro PART_COOLING_FAN_ON]
- gcode:
- M106 S255
- [gcode_macro PART_COOLING_FAN_OFF]
- gcode:
- M106 S0
- # Do nozzle priming
- [gcode_macro PRIME_EXTRUDER]
- gcode:
- M117 Priming
- G92 E0
- G1 X10.1 Y20 Z2.0 F2000
- G1 X10.1 Y200 Z0.28 F2000.0 E15; Draw the first line
- G1 X10.4 Y200 Z0.28 F5000.0; Move to the side a little
- G1 X10.4 Y20.0 Z0.28 F2000.0 E30; Draw the second line
- G92 E0
- G1 F2400 E-0.7 # Small retract to remove pressure
- G1 Z2.0 F3000 ;Move Z Axis up
- [gcode_macro START_PRINT]
- gcode:
- {% set BED_TEMP = params.BED_TEMP|default(0)|float %}
- {% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(0)|float %}
- G28 ;Home
- G29 ;Load Mesh Bed Level
- # Start bed heating
- M117 Heating bed
- M140 S{BED_TEMP}
- # Use absolute coordinates
- G90
- # Reset the G-Code Z offset (adjust Z offset if needed)
- SET_GCODE_OFFSET Z=0.0
- # Home the printer
- G28
- # Move the nozzle near the bed
- G1 Z5 F3000
- # Move the nozzle very close to the bed
- G1 Z0.15 F300
- # Wait for bed to reach temperature
- M190 S{BED_TEMP}
- # Start nozzle heating
- M117 Heating nozzle
- M104 S{EXTRUDER_TEMP}
- # Set and wait for nozzle to reach temperature
- M109 S{EXTRUDER_TEMP}
- # Prime line
- PRIME_EXTRUDER
- M117 Printing
- [gcode_macro END_PRINT]
- gcode:
- # Move nozzle away from print while retracting
- G91
- # Raise nozzle and retract
- G1 E-2 F1800
- G1 Z5 F3000
- # Move to absolute position
- G90
- G1 X10 Y200 F2000
- # Turn off bed, extruder, and fan
- M140 S0
- M104 S0
- M106 S0
- # Disable steppers
- M84
- M117 JOB DONE!
- #*# <---------------------- SAVE_CONFIG ---------------------->
- #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
- #*#
- #*# [bltouch]
- #*# z_offset = 3.700
- #*#
- #*# [bed_mesh 27042023]
- #*# version = 1
- #*# points =
- #*# -0.080000, -0.095000, -0.117500, -0.140000, -0.202500
- #*# 0.025000, 0.005000, -0.027500, -0.057500, -0.112500
- #*# 0.017500, 0.017500, -0.017500, -0.062500, -0.125000
- #*# -0.075000, -0.037500, -0.020000, -0.012500, -0.050000
- #*# -0.087500, -0.065000, -0.050000, -0.090000, -0.037500
- #*# x_count = 5
- #*# y_count = 5
- #*# mesh_x_pps = 2
- #*# mesh_y_pps = 2
- #*# algo = lagrange
- #*# tension = 0.2
- #*# min_x = 9.5
- #*# max_x = 202.5
- #*# min_y = 15.0
- #*# max_y = 220.0
- #*#
- #*# [bed_mesh default]
- #*# version = 1
- #*# points =
- #*# 0.037500, 0.020000, 0.025000, -0.015000, -0.077500
- #*# 0.040000, 0.032500, 0.027500, -0.020000, -0.057500
- #*# -0.042500, -0.012500, -0.000000, -0.015000, -0.032500
- #*# -0.130000, -0.045000, -0.022500, 0.020000, 0.032500
- #*# -0.057500, -0.005000, -0.000000, 0.015000, 0.035000
- #*# x_count = 5
- #*# y_count = 5
- #*# mesh_x_pps = 2
- #*# mesh_y_pps = 2
- #*# algo = lagrange
- #*# tension = 0.2
- #*# min_x = 9.5
- #*# max_x = 202.5
- #*# min_y = 15.0
- #*# max_y = 220.0
Advertisement
Add Comment
Please, Sign In to add comment