Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ####################################
- # Machine Settings
- ####################################
- [mcu]
- serial: /dev/serial/by-id/usb-Prusa_Research__prusa3d.com__Original_Prusa_i3_MK2_CZPX1217X003XK15303-if00
- [printer]
- kinematics: cartesian
- max_velocity: 200
- max_accel: 2000
- max_z_velocity: 20
- max_z_accel: 100
- [ad5206 stepper_digipot]
- enable_pin: PD7
- # Scale the config so that the channel value can be specified in amps.
- # (For Rambo v1.0d boards, use 1.56 instead.)
- scale: 2.08
- # Channel 1 is E0, 2 is E1, 3 is unused, 4 is Z, 5 is X, 6 is Y
- channel_1: 1.34
- channel_2: 1.0
- channel_4: 1.1
- channel_5: 1.1
- channel_6: 1.1
- # Enable 16 micro-steps on steppers X, Y, Z, E0, E1
- [static_digital_output stepper_config]
- pins:
- PG1, PG0,
- PK7, PG2,
- PK6, PK5,
- PK3, PK4,
- PK1, PK2
- [static_digital_output yellow_led]
- pins: !PB7
- [stepper_x]
- step_pin: PC0
- dir_pin: PL1
- enable_pin: !PA7
- step_distance: .01
- endstop_pin: ^PB6
- position_endstop: 0
- position_min: -5
- position_max: 250
- homing_speed: 50
- homing_retract_dist: 5
- homing_positive_dir: false
- [stepper_y]
- step_pin: PC1
- dir_pin: PL0
- enable_pin: !PA6
- step_distance: .01
- endstop_pin: ^PB5
- position_endstop: 0
- position_min: -10
- position_max: 210
- homing_speed: 50
- homing_retract_dist: 5
- homing_positive_dir: false
- [stepper_z]
- step_pin: PC2
- dir_pin: PL2
- enable_pin: !PA5
- step_distance: .0025
- endstop_pin: probe:z_virtual_endstop
- position_min: -1
- position_max: 215
- homing_speed: 10
- homing_retract_dist: 5
- [output_pin stepper_xy_current]
- pin: PL3
- pwm: True
- scale: 2.0
- cycle_time: .002
- hardware_pwm: True
- static_value: 0.83
- [output_pin stepper_z_current]
- pin: PL4
- pwm: True
- scale: 2.0
- cycle_time: .002
- hardware_pwm: True
- value: 0.830
- [output_pin stepper_e_current]
- pin: PL5
- pwm: True
- scale: 2.0
- cycle_time: .002
- hardware_pwm: True
- static_value: 1.0
- [probe]
- pin: ^PB4
- x_offset: 0.0
- y_offset: 0.0
- #z_offset: 0.3375
- #Hardened Steel Nozzle:
- z_offset: 0.7375
- #z_offset: 0.5375
- #Brass Nozzle:
- #z_offset: 0.6375
- speed: 10.0
- [extruder]
- step_pin: PC3
- dir_pin: !PL6
- enable_pin: !PA4
- #Prusa:
- #step_distance: .0059
- #Pancake:
- step_distance: .0075
- nozzle_diameter: 0.400
- filament_diameter: 1.750
- max_extrude_cross_section: 50.0
- max_extrude_only_distance: 200.0
- heater_pin: PE5
- sensor_type: EPCOS 100K B57560G104F
- sensor_pin: PF0
- min_temp: 0
- max_temp: 300
- pressure_advance: 0.065
- [heater_bed]
- heater_pin: PG5
- sensor_type: EPCOS 100K B57560G104F
- sensor_pin: PF2
- min_temp: 0
- max_temp: 130
- [fan]
- pin: PH3
- [heater_fan nozzle_cooling_fan]
- pin: PH5
- [idle_timeout]
- timeout: 600
- ######################################################################
- # Beeper
- ######################################################################
- # M300 : Play tone. Beeper support, as commonly found on usual LCD
- # displays (i.e. RepRapDiscount 2004 Smart Controller, RepRapDiscount
- # 12864 Full Graphic). This defines a custom I/O pin and a custom
- # GCODE macro. Usage:
- # M300 [P<ms>] [S<Hz>]
- # P is the tone duration, S the tone frequency.
- # The frequency won't be pitch perfect.
- [output_pin BEEPER_pin]
- pin: PH2
- # Beeper pin. This parameter must be provided.
- # ar37 is the default RAMPS/MKS pin.
- pwm: True
- # A piezo beeper needs a PWM signal, a DC buzzer doesn't.
- value: 0
- # Silent at power on, set to 1 if active low.
- shutdown_value: 0
- # Disable at emergency shutdown (no PWM would be available anyway).
- cycle_time: 0.001
- # PWM frequency : 0.001 = 1ms will give a base tone of 1kHz
- scale: 1000
- # PWM parameter will be in the range of (0-1000 Hz).
- # Although not pitch perfect.
- ####################################
- # Mesh Bed Leveling
- ####################################
- [bed_mesh]
- speed: 100
- horizontal_move_z: 5
- #samples: 1
- #sample_retract_dist: 2.0
- mesh_min: 60,40
- mesh_max: 180,150
- probe_count: 3,3
- fade_start: 1.0
- fade_end: 10.0
- move_check_distance: 5.0
- split_delta_z: .025
- mesh_pps: 2,2
- algorithm: lagrange
- bicubic_tension: .2
- ######################################################################
- # "RepRapDiscount 2004 Smart Controller" type displays
- ######################################################################
- [display]
- lcd_type: hd44780
- rs_pin: PD5
- e_pin: PD3
- d4_pin: PD2
- d5_pin: PG4
- d6_pin: PH7
- d7_pin: PG3
- #menu_root: filament
- #menu_timeout: 30
- encoder_pins: ^PJ1, ^PJ2
- click_pin: ^!PH6
- #kill_pin: ^!EXP2_8
- ######################################################################
- # Filament Change
- ######################################################################
- # M600: Filament Change. This macro will pause the printer, move the
- # tool to the change position, and retract the filament 50mm. Adjust
- # the retraction settings for your own extruder. After filament has
- # been changed, the print can be resumed from its previous position
- # with the "RESUME" gcode.
- [pause_resume]
- recover_velocity: 50
- [filament_switch_sensor filasens]
- pause_on_runout: false
- runout_gcode:
- M117 OUT OF FILAMENT
- M600
- insert_gcode:
- M117 FILAMENT INSERTED
- LOAD_FILAMENT
- RESUME
- event_delay: 1.0
- switch_pin: !PD1
- [gcode_macro M600]
- gcode:
- SAVE_GCODE_STATE NAME=filament_change
- PAUSE
- M83
- G1 E-5 F1000
- PARK
- UNLOAD_FILAMENT
- RESTORE_GCODE_STATE NAME=filament_change
- [gcode_macro PARK]
- gcode:
- M117 PARKING
- G91
- G1 Z10 F200
- G90
- G1 X120 Y0 Z200 F1000
- [gcode_macro PAUSE]
- rename_existing: BASE_PAUSE
- gcode:
- M117 PAUSED..
- BASE_PAUSE
- SET_IDLE_TIMEOUT TIMEOUT=10000
- #Turn Off Nozzle Fan
- #M107 P1
- [gcode_macro RESUME]
- rename_existing: BASE_RESUME
- gcode:
- M117 Resuming..
- BASE_RESUME
- #Turn On Nozzle Fan
- M106 S{ printer.fan.speed * 255} P1
- [gcode_macro LOAD_PLA]
- gcode:
- M104 T0 S230
- PARK
- M109 T0 S230
- LOAD_FILAMENT
- G1 Z100 F2000
- [gcode_macro LOAD_PETG]
- gcode:
- M104 T0 S250
- PARK
- M109 T0 S250
- LOAD_FILAMENT
- G1 Z100 F2000
- [gcode_macro LOAD_FILAMENT]
- gcode:
- M117 Loading Filament...
- LOW_TEMP_CHECK
- M83
- G1 E80 F300
- G1 E15 F50
- M400
- M117 Load Complete
- G1 E-1.2 F50
- [gcode_macro UNLOAD_FILAMENT]
- gcode:
- M117 Unloading Filament...
- LOW_TEMP_CHECK
- M83
- G1 E-100 F1000
- M400
- M117 Remove Filament Now!
- M300 S300 P500
- M300 S100 P500
- [gcode_macro LOW_TEMP_CHECK]
- default_parameter_T:230
- gcode:
- {% if printer.extruder.target != 0 %} # if there is a setpoint for extruder
- {% if printer.extruder.temperature < printer.extruder.target %} # if not reached, heat
- #M117 Heating from {printer.extruder.temperature} to {printer.extruder.target}.
- M109 S{printer.extruder.target|float}
- {% endif %}
- {% else %} # if no setpoint for extruder
- {% if printer.extruder.target < T %} # heat to T.
- #M117 No setpoint, heating to {T}.
- M109 S{T}
- {% endif %}
- {% endif %}
- [gcode_macro M300]
- default_parameter_S: 1000
- # Use a default 1kHz tone if S is omitted.
- default_parameter_P: 100
- # Use a 10ms duration is P is omitted.
- gcode:
- SET_PIN PIN=BEEPER_pin VALUE={S}
- G4 P{P}
- SET_PIN PIN=BEEPER_pin VALUE=0
- ######################################################################
- # Start Print and End Print
- ######################################################################
- [gcode_macro START_PRINT]
- default_parameter_BED_TEMP: 50
- default_parameter_EXTRUDER_TEMP: 240
- gcode:
- CLEAR_PAUSE
- # Home the printer
- M117 HOMING...
- G28
- #####
- ## Warm the printer for calibrating
- #M117 WARMING...
- ## Warm bed
- #M140 S50
- ## Warm nozzle
- #M109 S160
- #M190 S50
- ## Calibrate Bed Mesh
- M117 CALIBRATING...
- BED_MESH_CALIBRATE
- G28
- #####
- # Use absolute coordinates
- G90
- # Move the nozzle near the bed
- G1 Z5 F3000
- # Move the nozzle very close to the bed
- G1 Z0.2 F300
- G92 E0.0
- # Start nozzle heating
- M117 HEATING...
- M104 S{EXTRUDER_TEMP}
- # Wait for bed to reach temperature
- M190 S{BED_TEMP}
- # Set and wait for nozzle to reach temperature
- M109 S{EXTRUDER_TEMP}
- M220 S100
- # Intro line
- G1 X60.0 E9.0 F1000.0
- # Intro line
- G1 X100.0 E15.0 F1000.0
- # reset extruder distance position
- G92 E0.0
- #M117 I LOVE YOU HOLLY! :)
- M117 PRINTING
- [gcode_macro END_PRINT]
- gcode:
- # Turn off bed, extruder, and fan
- M140 S0
- M104 S0
- M107 S0
- M107 S1
- # Move nozzle away from print while retracting
- G91
- # Raise nozzle by 1mm
- G1 Z1 F3000
- # Present part
- G90
- G1 X0 Y210 F3000
- M117 FINISHED
- UNLOAD_FILAMENT
- SET_IDLE_TIMEOUT TIMEOUT=600
- ####################################
- # Homing
- ####################################
- [gcode_macro HOME]
- gcode:
- {% if printer.toolhead.homed_axes != "xyz" %}
- G28
- G1 Z0.2
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment