v2.4: tweak bmc, z-calibration, add mcu-temp, M900
This commit is contained in:
		
							parent
							
								
									6e7400e356
								
							
						
					
					
						commit
						eed32bf9b7
					
				
					 3 changed files with 61 additions and 40 deletions
				
			
		|  | @ -3,6 +3,7 @@ | ||||||
| # - BRUSHIE | # - BRUSHIE | ||||||
| # - CANCEL_PRINT | # - CANCEL_PRINT | ||||||
| # - M600 | # - M600 | ||||||
|  | # - M900 | ||||||
| # - PARK | # - PARK | ||||||
| # - PAUSE | # - PAUSE | ||||||
| # - PRINT_START | # - PRINT_START | ||||||
|  | @ -15,15 +16,15 @@ | ||||||
| # BRUSHIE | # BRUSHIE | ||||||
| [gcode_macro BRUSHIE] | [gcode_macro BRUSHIE] | ||||||
| gcode: | gcode: | ||||||
|   {% set x0=40 %} |   {% set x0=200 %} | ||||||
|   {% set x1=110 %} |   {% set x1=250 %} | ||||||
|   {% set y0=305 %} |   {% set y0=306 %} | ||||||
|   {% set z0=1 %} |   {% set z0=1 %} | ||||||
|   {% set z_hop = printer['gcode_macro _USER_VARIABLE'].z_hop|int %} |   {% set z_hop = printer['gcode_macro _USER_VARIABLE'].z_hop|int %} | ||||||
|   {% if "xyz" in printer.toolhead.homed_axes %} |   {% if "xyz" in printer.toolhead.homed_axes %} | ||||||
|     M117 > brushie brushie brushie |     M117 > brushie brushie brushie | ||||||
|     G0 Z{z_hop} F1000           # move Z to travel height |     G0 Z{z_hop} F1000           # move Z to travel height | ||||||
|     G0 X{x0} Y{y0} F5000        # move to x0/y0 |     G0 X{x0} Y{y0} F6000        # move to x0/y0 | ||||||
|     G0 Z{z0}                    # lower |     G0 Z{z0}                    # lower | ||||||
|     G0 X{x1}                    # back |     G0 X{x1}                    # back | ||||||
|     G0 X{x0}                    # forth |     G0 X{x0}                    # forth | ||||||
|  | @ -52,6 +53,11 @@ gcode: | ||||||
|   M117 > change filament |   M117 > change filament | ||||||
|   RESTORE_GCODE_STATE NAME=M600_state |   RESTORE_GCODE_STATE NAME=M600_state | ||||||
| 
 | 
 | ||||||
|  | [gcode_macro M900] | ||||||
|  | description: Set pressure advance | ||||||
|  | gcode: | ||||||
|  |   SET_PRESSURE_ADVANCE ADVANCE={params.K|default(0)} | ||||||
|  | 
 | ||||||
| 
 | 
 | ||||||
| # PARK | # PARK | ||||||
| [gcode_macro PARK] | [gcode_macro PARK] | ||||||
|  | @ -111,14 +117,14 @@ gcode: | ||||||
|   {% set BED=params.BED|default(100)|int %} |   {% set BED=params.BED|default(100)|int %} | ||||||
|   {% set EXTRUDER=params.EXTRUDER|default(250)|int %} |   {% set EXTRUDER=params.EXTRUDER|default(250)|int %} | ||||||
|   {% set CHAMBER=params.CHAMBER|default(0)|int %} |   {% set CHAMBER=params.CHAMBER|default(0)|int %} | ||||||
|  |   {% set QGL=params.QGL|default(1)|int %} | ||||||
|   {% set BMC=params.BMC|default(0)|int %} |   {% set BMC=params.BMC|default(0)|int %} | ||||||
|   {% set QGL=params.QGL|default(0)|int %} |  | ||||||
|   {% set PURGE=params.PURGE|default(1)|int %} |   {% set PURGE=params.PURGE|default(1)|int %} | ||||||
|   {% set SOAK=params.SOAK|default(0)|int * 1000 * 60 %} |   {% set SOAK=params.SOAK|default(0)|int * 1000 * 60 %} | ||||||
|   {% set Z_ADJUST=params.Z_ADJUST|default(0.0)|float %} |   {% set Z_ADJUST=params.Z_ADJUST|default(0.0)|float %} | ||||||
|   # TODO: ERCF |   # TODO: ERCF | ||||||
|   {% set ERCF=params.ERCF|default(0) %} |   {% set ERCF=params.ERCF|default(0) %} | ||||||
|   {action_respond_info("starting print BED=%d, EXTRUDER=%d, BMC=%d, PURGE=%d, SOAK=%d, Z_AJUST=%f" % (BED, EXTRUDER, BMC, PURGE, SOAK, Z_ADJUST))} |   {action_respond_info("starting print BED=%d, EXTRUDER=%d, CHAMBER=%d, QGL=%d, BMC=%d, PURGE=%d, SOAK=%d, Z_AJUST=%f" % (BED, EXTRUDER, CHAMBER, QGL, BMC, PURGE, SOAK, Z_ADJUST))} | ||||||
|   M117 > configuring |   M117 > configuring | ||||||
|   SET_LED LED=caselight RED=0.00 GREEN=0.00 BLUE=0.50 |   SET_LED LED=caselight RED=0.00 GREEN=0.00 BLUE=0.50 | ||||||
|   G4 P2000 |   G4 P2000 | ||||||
|  | @ -167,6 +173,7 @@ gcode: | ||||||
|   {% endif %} |   {% endif %} | ||||||
| 
 | 
 | ||||||
|   M117 > starting |   M117 > starting | ||||||
|  |   SET_PRESSURE_ADVANCE ADVANCE=0.05 | ||||||
|   SET_GCODE_OFFSET Z_ADJUST={params.Z_ADJUST|default(0.0)|float} MOVE=1 |   SET_GCODE_OFFSET Z_ADJUST={params.Z_ADJUST|default(0.0)|float} MOVE=1 | ||||||
|   SET_LED LED=caselight RED=0.50 GREEN=0.50 BLUE=0.50 |   SET_LED LED=caselight RED=0.50 GREEN=0.50 BLUE=0.50 | ||||||
|   G4 P2000 |   G4 P2000 | ||||||
|  |  | ||||||
							
								
								
									
										62
									
								
								printer.cfg
									
										
									
									
									
								
							
							
						
						
									
										62
									
								
								printer.cfg
									
										
									
									
									
								
							|  | @ -117,7 +117,7 @@ full_steps_per_rotation: 400  # 200: 1.8 deg stepper, 400: 0.9 deg stepper | ||||||
| endstop_pin: PG9 | endstop_pin: PG9 | ||||||
| position_min: 0 | position_min: 0 | ||||||
| position_endstop: 305 | position_endstop: 305 | ||||||
| position_max: 305 | position_max: 306 | ||||||
| homing_speed: 30              # Max 100 | homing_speed: 30              # Max 100 | ||||||
| homing_retract_dist: 5 | homing_retract_dist: 5 | ||||||
| homing_positive_dir: true | homing_positive_dir: true | ||||||
|  | @ -149,8 +149,8 @@ position_endstop: 0.5 | ||||||
| position_max: 290 | position_max: 290 | ||||||
| position_min: -5 | position_min: -5 | ||||||
| homing_speed: 13.0          # speed: mm/sec, feedrate: mm/min | homing_speed: 13.0          # speed: mm/sec, feedrate: mm/min | ||||||
| second_homing_speed: 4 | second_homing_speed: 3 | ||||||
| homing_retract_dist: 13 | homing_retract_dist: 3 | ||||||
| 
 | 
 | ||||||
| [tmc2209 stepper_z] | [tmc2209 stepper_z] | ||||||
| uart_pin: PC6 | uart_pin: PC6 | ||||||
|  | @ -291,15 +291,15 @@ max_temp: 120 | ||||||
| ## Microswitch probe | ## Microswitch probe | ||||||
| pin: ^PG11 | pin: ^PG11 | ||||||
| x_offset: 0 | x_offset: 0 | ||||||
| y_offset: 25.0 | y_offset: 30 | ||||||
| z_offset: 10 | z_offset: 12 | ||||||
| speed: 6 | speed: 3 | ||||||
| lift_speed: 11 | lift_speed: 25 | ||||||
| samples: 5 | samples: 5 | ||||||
| samples_result: median | samples_result: median | ||||||
| sample_retract_dist: 3.0 | sample_retract_dist: 2.0 | ||||||
| samples_tolerance: 0.01 | samples_tolerance: 0.01 | ||||||
| samples_tolerance_retries: 3 | samples_tolerance_retries: 5 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| ##################################################################### | ##################################################################### | ||||||
|  | @ -326,6 +326,13 @@ temperature1: 25 | ||||||
| resistance1: 10000 | resistance1: 10000 | ||||||
| beta: 3950 | beta: 3950 | ||||||
| 
 | 
 | ||||||
|  | [temperature_sensor MCU] | ||||||
|  | sensor_type: temperature_mcu | ||||||
|  | sensor_mcu: mcu | ||||||
|  | min_temp: 0 | ||||||
|  | max_temp: 100 | ||||||
|  | # gcode_id: C | ||||||
|  | 
 | ||||||
| 
 | 
 | ||||||
| [temperature_sensor chamber] | [temperature_sensor chamber] | ||||||
| sensor_type: chamber | sensor_type: chamber | ||||||
|  | @ -334,7 +341,7 @@ min_temp: 0 | ||||||
| max_temp: 100 | max_temp: 100 | ||||||
| gcode_id: C | gcode_id: C | ||||||
| 
 | 
 | ||||||
| [temperature_sensor rpi] | [temperature_sensor RPI] | ||||||
| sensor_type: temperature_host | sensor_type: temperature_host | ||||||
| min_temp: 0 | min_temp: 0 | ||||||
| max_temp: 100 | max_temp: 100 | ||||||
|  | @ -345,35 +352,42 @@ timeout: 1800 | ||||||
| ## replaced with homing_override in klicky-probe.cfg | ## replaced with homing_override in klicky-probe.cfg | ||||||
| # [safe_z_home] | # [safe_z_home] | ||||||
| # ## XY Location of the Z Endstop Switch | # ## XY Location of the Z Endstop Switch | ||||||
| # home_xy_position: 205, 305 | # home_xy_position: 94.5, 305 | ||||||
| # speed: 100 | # speed: 100 | ||||||
| # z_hop: 10 | # z_hop: 10 | ||||||
| # z_hop_speed: 25 | # z_hop_speed: 25 | ||||||
| 
 | 
 | ||||||
| [bed_mesh] | [bed_mesh] | ||||||
| speed: 500 | speed: 500 | ||||||
| horizontal_move_z: 15 | horizontal_move_z: 12 | ||||||
| mesh_min: 40,60 | # 40, 40   -->  40 + probe.x_offset,  40 + probe.y_offset | ||||||
| mesh_max: 260,280 | mesh_min: 40, 70 | ||||||
| fade_start: 0.6 | # 260, 260 --> 260 + probe.x_offset, 260 + probe.y_offset | ||||||
| fade_end: 10 | mesh_max: 260,290 | ||||||
| probe_count: 5,5 | # fade_start: 1 | ||||||
|  | # fade_end: 10 | ||||||
|  | # fade_target: 0 | ||||||
| algorithm: bicubic | algorithm: bicubic | ||||||
| # relative_reference_index = ((x points * y points) - 1) / 2 | # relative_reference_index = ((x points * y points) - 1) / 2 | ||||||
| relative_reference_index: 12 | # 3x3: 4, 5x5: 12, 7x7: 24, 9x9: 40 | ||||||
|  | # probe_count: 3,3 | ||||||
|  | # relative_reference_index: 4 | ||||||
|  | # probe_count: 5,5 | ||||||
|  | # relative_reference_index: 9 | ||||||
|  | probe_count: 9,9 | ||||||
|  | relative_reference_index: 40 | ||||||
| 
 | 
 | ||||||
| [quad_gantry_level] | [quad_gantry_level] | ||||||
| ## Use QUAD_GANTRY_LEVEL to level a gantry. |  | ||||||
| gantry_corners: | gantry_corners: | ||||||
|   -60,-10 |   -60,-10 | ||||||
|   360,370 |   360,370 | ||||||
| points: | points: | ||||||
|   50,40 |   40,40 | ||||||
|   50,225 |   40,260 | ||||||
|   250,225 |   260,260 | ||||||
|   250,40 |   260,40 | ||||||
| speed: 150 | speed: 150 | ||||||
| horizontal_move_z: 15 | horizontal_move_z: 12 | ||||||
| retries: 5 | retries: 5 | ||||||
| retry_tolerance: 0.0075 | retry_tolerance: 0.0075 | ||||||
| max_adjust: 10 | max_adjust: 10 | ||||||
|  |  | ||||||
|  | @ -4,17 +4,17 @@ | ||||||
| [gcode_macro _USER_VARIABLE] | [gcode_macro _USER_VARIABLE] | ||||||
| description: Helper: Contains User defined printer variables | description: Helper: Contains User defined printer variables | ||||||
| ##### Homing and general movement ##### | ##### Homing and general movement ##### | ||||||
| variable_z_endstop_x: 205             ; z Endstop x position inside right profile | variable_z_endstop_x: 94.5            ; z Endstop x position inside right profile | ||||||
| variable_z_endstop_y: 305             ; z Endstop y position | variable_z_endstop_y: 305             ; z Endstop y position | ||||||
| variable_z_hop: 12                    ; z hop for moves e.g homing | variable_z_hop: 12                    ; z hop for moves e.g homing | ||||||
| variable_xy_home_current: 0.5         ; reduced homing current for x and y | variable_xy_home_current: 0.5         ; reduced homing current for x and y | ||||||
| variable_z_home_current: 0.4          ; reduced homing current for z | variable_z_home_current: 0.4          ; reduced homing current for z | ||||||
| variable_home_accel: 1000             ; reduced ACCEL for homing | variable_home_accel: 1000             ; reduced ACCEL for homing | ||||||
| ##### Mag Probe ##### | ##### Mag Probe ##### | ||||||
| variable_probe_dock_x: 145            ; x toolhead position before docking probe | variable_probe_dock_x: 52             ; x toolhead position before docking probe | ||||||
| variable_probe_dock_y: 285            ; y toolhead position before docking probe | variable_probe_dock_y: 250            ; y toolhead position before docking probe | ||||||
| variable_probe_dock_z: 12             ; z toolhead position before docking probe (only for bed dock) | variable_probe_dock_z: 12             ; z toolhead position before docking probe (only for bed dock) | ||||||
| variable_probe_undock_x: 200          ; x toolhead position after docking probe | variable_probe_undock_x: 120          ; x toolhead position after docking probe | ||||||
| variable_probe_undock_y: 305          ; y toolhead position after docking probe | variable_probe_undock_y: 305          ; y toolhead position after docking probe | ||||||
| variable_probe_undock_z: 12           ; z toolhead position after docking probe (only for bed dock) | variable_probe_undock_z: 12           ; z toolhead position after docking probe (only for bed dock) | ||||||
| variable_probe_z_min: 12              ; z minimum height to avoid crash | variable_probe_z_min: 12              ; z minimum height to avoid crash | ||||||
|  | @ -35,11 +35,11 @@ gcode: | ||||||
| [z_calibration] | [z_calibration] | ||||||
| #   The X and Y coordinates (in mm) for clicking the nozzle on the | #   The X and Y coordinates (in mm) for clicking the nozzle on the | ||||||
| #   Z endstop. | #   Z endstop. | ||||||
| probe_nozzle_x: 205 | probe_nozzle_x: 94.5 | ||||||
| probe_nozzle_y: 305 | probe_nozzle_y: 305 | ||||||
| #   The X and Y coordinates (in mm) for clicking the probe's switch | #   The X and Y coordinates (in mm) for clicking the probe's switch | ||||||
| #   on the Z endstop. | #   on the Z endstop. | ||||||
| probe_switch_x: 201 | probe_switch_x: 90 | ||||||
| probe_switch_y: 284 | probe_switch_y: 284 | ||||||
| #   The X and Y coordinates (in mm) for probing on the print surface | #   The X and Y coordinates (in mm) for probing on the print surface | ||||||
| #   (e.g. the center point) These coordinates will be adapted by the | #   (e.g. the center point) These coordinates will be adapted by the | ||||||
|  | @ -52,7 +52,7 @@ probe_bed_y: 150 | ||||||
| #   The trigger point offset of the used mag-probe switch. | #   The trigger point offset of the used mag-probe switch. | ||||||
| #   This needs to be fined out manually. More on this later | #   This needs to be fined out manually. More on this later | ||||||
| #   in this section. smaller switch_offset -> more distance to  the build plate | #   in this section. smaller switch_offset -> more distance to  the build plate | ||||||
| switch_offset: 0.75 | switch_offset: 0.72 | ||||||
| #   The maximum allowed deviation of the calculated offset. | #   The maximum allowed deviation of the calculated offset. | ||||||
| #   If the offset exceeds this value, it will stop! | #   If the offset exceeds this value, it will stop! | ||||||
| #   The default is 1.0 mm. | #   The default is 1.0 mm. | ||||||
|  | @ -73,10 +73,10 @@ max_deviation: 1.0 | ||||||
| #   position. The default is two times the z_offset from the probe's | #   position. The default is two times the z_offset from the probe's | ||||||
| #   configuration. | #   configuration. | ||||||
| #position_min: default from "stepper_z:position_min" section. | #position_min: default from "stepper_z:position_min" section. | ||||||
| #   The moving speed in X and Y. The default is 50 mm/s. | #   Extra clearance when moving | ||||||
| #   Clearance |  | ||||||
| clearance: 12 | clearance: 12 | ||||||
| # speed: 200 | #   The moving speed in X and Y. The default is 50 mm/s. | ||||||
|  | speed: 100 | ||||||
| #   Speed (in mm/s) of the Z axis when lifting the probe between | #   Speed (in mm/s) of the Z axis when lifting the probe between | ||||||
| #   samples and clearance moves. The default is from the probe's | #   samples and clearance moves. The default is from the probe's | ||||||
| #   configuration. | #   configuration. | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue