Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 7241: Git version: 'v0.10.0-256-g6d7c0336'
- # 9121: Start printer at Thu Feb 10 13:50:01 2022 (1644472201.2 1478.0)
- # 9122: config file
- # 9660: Dumping gcode input 0 blocks
- # 14331: Git version: 'v0.10.0-256-g6d7c0336'
- # 14334: Start printer at Thu Feb 10 13:52:50 2022 (1644472370.2 1647.0)
- # 14335: config file
- [stepper_x]
- step_pin = PG13
- dir_pin = !PG12
- enable_pin = !PG14
- microsteps = 16
- rotation_distance = 40
- full_steps_per_rotation = 400
- endstop_pin = tmc2209_stepper_x:virtual_endstop
- position_endstop = -13
- position_min = -13
- position_max = 250
- homing_speed = 30
- homing_retract_dist = 0
- [stepper_y]
- step_pin = PB3
- dir_pin = !PD3
- enable_pin = !PB4
- microsteps = 16
- rotation_distance = 40
- full_steps_per_rotation = 400
- endstop_pin = tmc2209_stepper_y:virtual_endstop
- position_endstop = -7
- position_min = -7
- position_max = 250
- homing_speed = 30
- homing_retract_dist = 0
- [stepper_z]
- step_pin = PD7
- dir_pin = PD6
- enable_pin = !PG9
- microsteps = 16
- rotation_distance = 8
- full_steps_per_rotation = 400
- endstop_pin = probe:z_virtual_endstop
- position_min = -2
- position_max = 250
- [stepper_z1]
- step_pin = PA8
- dir_pin = PC9
- enable_pin = !PD2
- microsteps = 16
- rotation_distance = 8
- full_steps_per_rotation = 400
- [extruder]
- step_pin = PC14
- dir_pin = !PC13
- enable_pin = !PC15
- microsteps = 16
- rotation_distance = 3.433
- full_steps_per_rotation = 200
- nozzle_diameter = 0.400
- filament_diameter = 1.750
- heater_pin = PC4
- sensor_type = EPCOS 100K B57560G104F
- sensor_pin = PH4
- control = pid
- pid_kp = 22.2
- pid_ki = 1.08
- pid_kd = 114
- min_temp = 0
- max_temp = 350
- pressure_advance = 0.123
- [safe_z_home]
- home_xy_position = 125,125
- speed = 200
- z_hop = 10
- z_hop_speed = 25
- [tmc2209 stepper_x]
- uart_pin = PG10
- diag_pin = ^PB11
- run_current = 1.15
- sense_resistor = 0.150
- driver_sgthrs = 127
- stealthchop_threshold = 999999
- [tmc2209 stepper_y]
- uart_pin = PD4
- diag_pin = ^PB12
- run_current = 1.15
- hold_current = 0.575
- sense_resistor = 0.150
- driver_sgthrs = 137
- stealthchop_threshold = 999999
- [tmc2209 stepper_z]
- uart_pin = PD5
- run_current = 0.800
- hold_current = 0.525
- sense_resistor = 0.150
- stealthchop_threshold = 999999
- [tmc2209 stepper_z1]
- uart_pin = PC8
- run_current = 0.800
- hold_current = 0.525
- sense_resistor = 0.150
- stealthchop_threshold = 999999
- [tmc2209 extruder]
- uart_pin = PI8
- interpolate = false
- run_current = 0.800
- sense_resistor = 0.150
- stealthchop_threshold = 0
- [mcu]
- serial = /dev/ttyAMA0
- restart_method = command
- [printer]
- kinematics = cartesian
- max_velocity = 200
- max_accel = 1000
- max_z_velocity = 10
- max_z_accel = 1000
- [virtual_sdcard]
- path = ~/gcode_files
- [fan]
- pin = PA5
- [heater_fan extruder_fan]
- pin = PA6
- heater = extruder
- [controller_fan controller_fan]
- pin = PA7
- idle_timeout = 300
- [output_pin motor_power]
- pin = PI11
- value = 1
- [idle_timeout]
- gcode =
- TURN_OFF_HEATERS
- M84
- SET_PIN PIN=screen VALUE=0
- SET_LED LED=led BLUE=0.0 RED=0.0 GREEN=0.0
- [pause_resume]
- [output_pin screen]
- pin = PB5
- value = 1
- [display_status]
- [gcode_button lcd_button]
- pin = PH8
- press_gcode =
- SET_PIN PIN=screen VALUE=1
- SET_LED LED=led BLUE=1.0 RED=1.0 GREEN=1.0
- [neopixel led]
- pin = PH3
- chain_count = 15
- [neopixel knob]
- pin = PB1
- chain_count = 2
- [delayed_gcode welcome]
- initial_duration = 0.1
- gcode =
- SET_LED LED=knob RED=0.0 BLUE=1.0 GREEN=0.0
- SET_LED LED=led RED=0.0 BLUE=1.0 GREEN=0.0
- G4 P1000
- SET_LED LED=led RED=1.0 BLUE=0.0 GREEN=0.0
- G4 P1000
- SET_LED LED=led RED=0.0 BLUE=0.0 GREEN=1.0
- G4 P1000
- SET_LED LED=led RED=1.0 BLUE=1.0 GREEN=1.0
- [heater_bed]
- heater_pin = PA4
- sensor_type = EPCOS 100K B57560G104F
- sensor_pin = PH5
- control = watermark
- min_temp = 0
- max_temp = 250
- [probe]
- pin = PH2
- x_offset = -30.1
- y_offset = 26.78
- z_offset = 0
- speed = 5
- samples = 3
- samples_result = median
- sample_retract_dist = 3.0
- samples_tolerance = 0.006
- samples_tolerance_retries = 5
- [bed_mesh]
- speed = 120
- mesh_min = 10,19.78
- mesh_max = 219.9,230
- probe_count = 4,4
- [screws_tilt_adjust]
- screw1 = 58,-7
- screw1_name = front left
- screw2 = 245,-7
- screw2_name = front right
- screw3 = 245,179
- screw3_name = rear right
- screw4 = 58,179
- screw4_name = rear left
- speed = 100
- screw_thread = CCW-M3
- [gcode_macro PRINT_START]
- gcode =
- SET_PIN PIN=screen VALUE=1
- G28
- G0 Z1
- M104 S150
- SET_LED LED=led BLUE=0.94 RED=0.63 GREEN=0.13
- M117 Heating Bed
- M190 S{BED}
- M105
- M82
- G90
- G21
- M83
- G92 E0
- SET_LED LED=led BLUE=0.0 RED=1.0 GREEN=0.0
- M117 Heating Nozzle
- G0 X2 Y0 F6000
- G0 Z0.4
- M109 S{NOZZLE}
- M105
- SET_LED LED=led BLUE=1.0 RED=1.0 GREEN=1.0
- M117 Printing
- G1 X120 E30 F1200
- G1 Y1
- G1 X2 E30 F1200
- G92 E0
- G1 Z1.0 F600
- G92 E0
- G0 F9000
- [gcode_macro PRINT_END]
- gcode =
- M400 ; wait for buffer to clear
- M104 S0 ; turn off hotend
- M140 S0 ; turn off bed
- G92 E0 ; zero the extruder
- G1 E-4.0 F3600 ; retract
- {% set max_x = printer.configfile.config["stepper_x"]["position_max"]|float %}
- {% set max_y = printer.configfile.config["stepper_y"]["position_max"]|float %}
- {% set max_z = printer.configfile.config["stepper_z"]["position_max"]|float %}
- {% if printer.toolhead.position.x < (max_x - 20) %}
- {% set x_safe = 20.0 %}
- {% else %}
- {% set x_safe = -20.0 %}
- {% endif %}
- {% if printer.toolhead.position.y < (max_y - 20) %}
- {% set y_safe = 20.0 %}
- {% else %}
- {% set y_safe = -20.0 %}
- {% endif %}
- {% if printer.toolhead.position.z < (max_z - 2) %}
- {% set z_safe = 2.0 %}
- {% else %}
- {% set z_safe = max_z - printer.toolhead.position.z %}
- {% endif %}
- G91 ; relative positioning
- G0 Z{z_safe} F3600 ; move nozzle up
- G0 X{x_safe} Y{y_safe} F20000 ; move nozzle to remove stringing
- M106 S0 ; turn off fan
- G90 ; absolute positioning
- G0 X{max_x / 2} Y{max_y} F3600 ; park nozzle at rear
- [gcode_macro CANCEL_PRINT]
- description = Cancel the actual running print
- rename_existing = CANCEL_PRINT_BASE
- variable_park = True
- gcode =
- {% if printer.pause_resume.is_paused|lower == 'false' and park|lower == 'true'%}
- _TOOLHEAD_PARK_PAUSE_CANCEL
- {% endif %}
- TURN_OFF_HEATERS
- CANCEL_PRINT_BASE
- [gcode_macro PAUSE]
- description = Pause the actual running print
- rename_existing = PAUSE_BASE
- gcode =
- PAUSE_BASE
- _TOOLHEAD_PARK_PAUSE_CANCEL
- [gcode_macro RESUME]
- description = Resume the actual running print
- rename_existing = RESUME_BASE
- gcode =
- {% set extrude = printer['gcode_macro _TOOLHEAD_PARK_PAUSE_CANCEL'].extrude %}
- {% if 'VELOCITY' in params|upper %}
- {% set get_params = ('VELOCITY=' + params.VELOCITY) %}
- {%else %}
- {% set get_params = "" %}
- {% endif %}
- {% if printer.extruder.can_extrude|lower == 'true' %}
- M83
- G1 E{extrude} F2100
- {% if printer.gcode_move.absolute_extrude |lower == 'true' %} M82 {% endif %}
- {% else %}
- {action_respond_info("Extruder not hot enough")}
- {% endif %}
- RESUME_BASE {get_params}
- [gcode_macro _TOOLHEAD_PARK_PAUSE_CANCEL]
- description = Helper: park toolhead used in PAUSE and CANCEL_PRINT
- variable_extrude = 1.0
- gcode =
- {% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
- {% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
- {% set z_park_delta = 2.0 %}
- {% set max_z = printer.toolhead.axis_maximum.z|float %}
- {% set act_z = printer.toolhead.position.z|float %}
- {% if act_z < (max_z - z_park_delta) %}
- {% set z_safe = z_park_delta %}
- {% else %}
- {% set z_safe = max_z - act_z %}
- {% endif %}
- {% if printer.extruder.can_extrude|lower == 'true' %}
- M83
- G1 E-{extrude} F2100
- {% if printer.gcode_move.absolute_extrude |lower == 'true' %} M82 {% endif %}
- {% else %}
- {action_respond_info("Extruder not hot enough")}
- {% endif %}
- {% if "xyz" in printer.toolhead.homed_axes %}
- G91
- G1 Z{z_safe} F900
- G90
- G1 X{x_park} Y{y_park} F6000
- {% if printer.gcode_move.absolute_coordinates|lower == 'false' %} G91 {% endif %}
- {% else %}
- {action_respond_info("Printer not homed")}
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement