forked from Klipper3d/klipper
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
125 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,98 +1,6 @@ | ||
# [gcode_button five_axis_module] | ||
# pin: !five_axis_pin | ||
# press_gcode: QUERY_BUTTON BUTTON=five_axis_module | ||
[a_axis_offset] | ||
|
||
# # [a_axis_offset] | ||
|
||
# [gcode_macro MOVE_WCS_ZERO] | ||
# gcode: | ||
# G54 | ||
# {% if printer.toolhead.axis_maximum[0] > 250 %} | ||
# G0 Z150 F6000 | ||
# {% else %} | ||
# G0 Z100 F6000 | ||
# {% endif %} | ||
# {% set current_wcs = params.WCS|default(1)|int %} | ||
# {% set offsets = printer.gcode_move.wcs_offsets[current_wcs] %} | ||
# {% if offsets[0] == 0 and offsets[1] == 0 %} | ||
# {% if printer.toolhead.axis_maximum[0] > 250 %} | ||
# G0 X162 Y242 F6000 | ||
# {% else %} | ||
# G0 X107 Y137 F6000 | ||
# {% endif %} | ||
# {% else %} | ||
# G0 X{offsets[0]} Y{offsets[1]} F6000 | ||
# {% endif %} | ||
# {% if current_wcs == 1 %} | ||
# G0 A0 | ||
# {% elif current_wcs == 2 %} | ||
# {% if printer.toolhead.axis_maximum[0] > 250 %} | ||
# G0 Y192 A90 F6000 | ||
# {% else %} | ||
# G0 Y87 A90 F6000 | ||
# {% endif %} | ||
# {% endif %} | ||
|
||
# [gcode_macro SET_WCS_OFFSET] | ||
# gcode: | ||
# G54 | ||
# G90 | ||
# {% set current_wcs = params.WCS|default(1)|int %} | ||
# SET_WCS WCS={current_wcs} | ||
# G10 L20 X{params.X} Y{params.Y} Z{params.Z} | ||
# G54 | ||
# {% set adjust_wcs = params.ADJUST_WCS|default(0)|int %} | ||
# {% if adjust_wcs > 0 and adjust_wcs != current_wcs %} | ||
# ADJUST_WCS_OFFSET WCS={current_wcs} ADJUST_WCS={adjust_wcs} X={params.X} Y={params.Y} Z={params.Z} | ||
# {% endif %} | ||
|
||
# [gcode_macro ADJUST_WCS_OFFSET] | ||
# gcode: | ||
# {% set current_wcs = params.WCS|default(1)|int %} | ||
# {% set adjust_wcs = params.ADJUST_WCS|default(0)|int %} | ||
# {% set source_wcs = current_wcs + 2 %} | ||
# {% set source_wcs_2 = adjust_wcs + 2 %} | ||
# {% set offsets = printer.gcode_move.wcs_offsets[source_wcs] %} | ||
# {% set offsets_2 = printer.gcode_move.wcs_offsets[source_wcs_2] %} | ||
# {% set delta_x = printer.gcode_move.wcs_offsets[current_wcs][0] - offsets[0] %} | ||
# {% set delta_y = printer.gcode_move.wcs_offsets[current_wcs][1] - offsets[1] %} | ||
# {% set delta_z = printer.gcode_move.wcs_offsets[current_wcs][2] - offsets[2] %} | ||
# G10 L2 P{adjust_wcs + 1} X{offsets_2[0] + delta_x + params.X|float} Y{offsets_2[1] - delta_z + params.Z|float} Z{offsets_2[2] + delta_y + params.Y|float} | ||
|
||
# [gcode_macro MOVE_CALIBRATION_POINT] | ||
# gcode: | ||
# G54 | ||
# {% set point = params.POINT|default(0)|int %} | ||
# {% set x = 162 if printer.toolhead.axis_maximum[0] > 250 else 108 %} | ||
# {% set y = 242 if printer.toolhead.axis_maximum[0] > 250 else 137 %} | ||
# {% if point == 3 or point == 4 %} | ||
# {% set y = 192 if printer.toolhead.axis_maximum[0] > 250 else 87 %} | ||
# {% endif %} | ||
# {% if point == 1 %} | ||
# {% set x = 112 if printer.toolhead.axis_maximum[0] > 250 else 58 %} | ||
# {% endif %} | ||
# {% if point == 2 %} | ||
# {% set x = 212 if printer.toolhead.axis_maximum[0] > 250 else 158 %} | ||
# {% endif %} | ||
# G0 A0 | ||
# G0 X{x} Y{y} Z110 F3600 | ||
# {% if point > 3 %} | ||
# G0 Z70 A90 F3600 | ||
# {% endif %} | ||
|
||
|
||
# [gcode_macro SET_A_AXIS_OFFSET_POINT] | ||
# gcode: | ||
# {% set point = params.POINT|default(0)|int %} | ||
# {% set coord_x = printer.gcode_move.position.x %} | ||
# {% set coord_y = printer.gcode_move.position.y %} | ||
# {% set coord_z = printer.gcode_move.position.z %} | ||
# SAVE_A_AXIS_POINT POINT={point} COORDS={coord_x},{coord_y},{coord_z} | ||
|
||
# [gcode_macro SAVE_STATE_MODULE] | ||
# gcode: | ||
# {% if printer["gcode_button five_axis_module"].state == "RELEASED" %} | ||
# SAVE_VARIABLE VARIABLE=5d_module_enabled VALUE=0 | ||
# {% else %} | ||
# SAVE_VARIABLE VARIABLE=5d_module_enabled VALUE=1 | ||
# {% endif %} | ||
[heater_fan module_5d_fan] | ||
pin: multi_pin:module_5d_fan | ||
heater: chamber_heater | ||
heater_temp: 40 |
Oops, something went wrong.