forked from jlas1/Klicky-Probe
-
Notifications
You must be signed in to change notification settings - Fork 4
/
klack-variables.cfg
executable file
·71 lines (55 loc) · 4.01 KB
/
klack-variables.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
[gcode_macro _User_Variables]
variable_safe_z: 15 # Minimum Z for attach/dock and homing functions
variable_bed_size_y: 230 # Y bed size used for centering the toolhead
variable_bed_size_x: 230 # X bed size used for centering the toolhead
variable_docklocation_x: 236 # Dock X location where moving the toolhead during attach and dock
#Attach move
Variable_attachmove_x: 40 # Final movement done to remove the probe from the dock
#Dock move
Variable_dockmove_x: -100 # Final movement done to remove the probe from the toolhead
Variable_dockmove_z: 2 # Retainer location on Z, this is the ABSOLUTE Z height where toolhead will be moved to release the probe
variable_verbose: True # Enable verbose output
variable_debug: False # Enable Debug output
# Not reviewed variables below
# if a separate Z endstop switch is in
# use, specify the coordinates of the switch here.
# Set to 0 to have the probe move to center of bed
variable_z_endstop_x: 0
variable_z_endstop_y: 0
# if true it will move the bed away from the nozzle when Z is not homed
variable_enable_z_hop: True # set this to false for beds that fall significantly under gravity (almost to Z max)
# location to park the toolhead
variable_park_toolhead: False # Enable toolhead parking
variable_parkposition_x: 125
variable_parkposition_y: 125
variable_parkposition_z: 30 # -128 excludes Z - Park only on X-Y
variable_version: 1 # Helps users to update the necessary variables, do not update if the variables above are not updated
variable_home_backoff_x: 0 # how many mm to move away from the X endstop after homing X
# this is useful for the voron v0 to enable the toolhead to move out of the way to allow an unstricted Y homing
variable_home_backoff_y: 0 # how many mm to move away from the Y endstop after homing Y
variable_override_homing: '' # configures what axis to home first
# '' = default klack behavior (tries to avoid the hitting the dock)
# 'X' = forces X to home first
# 'Y' = forces Y to home first
variable_dock_on_zhome: False # docks the probe on Z Homing if not necessary (avoids hitting the bed on some printers
variable_travel_speed: 200 # how fast all other travel moves will be performed when running these macros
variable_move_accel: 1000 # how fast should the toolhead accelerate when moving
variable_dock_speed: 50 # how fast should the toolhead move when docking the probe for the final movement
variable_release_speed: 75 # how fast should the toolhead move to release the hold of the magnets after docking
variable_z_drop_speed: 20 # how fast the z will lower when moving to the z location to clear the probe
# Do not modify below
gcode:
{% set Mx = printer['configfile'].config["stepper_x"]["position_max"]|float %}
{% set My = printer['configfile'].config["stepper_y"]["position_max"]|float %}
{% set Ox = printer['configfile'].config["probe"]["x_offset"]|float %}
{% set Oy = printer['configfile'].config["probe"]["y_offset"]|float %}
{% set Oz = printer['configfile'].config["probe"]["z_offset"]|float %}
# If x, y coordinates are set for z endstop, assign them
{% if z_endstop_x != 0 or z_endstop_y != 0 %}
SET_GCODE_VARIABLE MACRO=_Probe_Variables VARIABLE=z_endstop_x VALUE={ z_endstop_x }
SET_GCODE_VARIABLE MACRO=_Probe_Variables VARIABLE=z_endstop_y VALUE={ z_endstop_y }
# if no x, y coordinates for z endstop, assume probe is endstop and move toolhead to center of bed
{% else %}
SET_GCODE_VARIABLE MACRO=_Probe_Variables VARIABLE=z_endstop_x VALUE={ (Mx * 0.5) - Ox }
SET_GCODE_VARIABLE MACRO=_Probe_Variables VARIABLE=z_endstop_y VALUE={ (My * 0.5) - Oy }
{% endif %}