forked from K-Tett/Klipper-FastSQV
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fast_infill.cfg
89 lines (76 loc) · 3.7 KB
/
fast_infill.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[gcode_macro _USE_SOLID_INFILL_SQV]
gcode:
{% set svv = printer.save_variables.variables %}
{% set sqv = svv.solid_infill_sqv %}
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={ sqv }
[gcode_macro _USE_TOP_SOLID_INFILL_SQV]
gcode:
{% set svv = printer.save_variables.variables %}
{% set sqv = svv.top_solid_infill_sqv %}
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={ sqv }
[gcode_macro _USE_INTERNAL_PERIMETER_SQV]
gcode:
{% set svv = printer.save_variables.variables %}
{% set sqv = svv.internal_perimeter_sqv %}
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={ sqv }
[gcode_macro _USE_INTERNAL_BRIDGE_SQV]
gcode:
{% set svv = printer.save_variables.variables %}
{% set sqv = svv.internal_bridge_sqv %}
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={ sqv }
[gcode_macro _USE_INFILL_SQV]
gcode:
{% set svv = printer.save_variables.variables %}
{% set sqv = svv.infill_sqv %}
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={ sqv }
[gcode_macro _USE_BRIDGE_INFILL_SQV]
gcode:
{% set svv = printer.save_variables.variables %}
{% set sqv = svv.bridge_infill_sqv %}
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={ sqv }
[gcode_macro _USE_NORMAL_SQV]
gcode:
{% set sqv = printer.configfile.settings.printer.square_corner_velocity %}
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={ sqv }
[gcode_macro SET_INFILL_SQV]
gcode:
{% set svv = printer.save_variables.variables %}
{% set val = params.SQV|default(svv.infill_sqv|default(printer.configfile.settings.printer.square_corner_velocity, true), true) | int %}
SAVE_VARIABLE VARIABLE=infill_sqv VALUE={val}
[gcode_macro SET_SOLID_INFILL_SQV]
gcode:
{% set svv = printer.save_variables.variables %}
{% set val = params.SQV|default(svv.solid_infill_sqv|default(printer.configfile.settings.printer.square_corner_velocity, true), true) | int %}
SAVE_VARIABLE VARIABLE=solid_infill_sqv VALUE={val}
[gcode_macro SET_TOP_SOLID_INFILL_SQV]
gcode:
{% set svv = printer.save_variables.variables %}
{% set val = params.SQV|default(svv.top_solid_infill_sqv|default(printer.configfile.settings.printer.square_corner_velocity, true), true) | int %}
SAVE_VARIABLE VARIABLE=top_solid_infill_sqv VALUE={val}
[gcode_macro SET_INTERNAL_PERIMETER_SQV]
gcode:
{% set svv = printer.save_variables.variables %}
{% set val = params.SQV|default(svv.internal_perimeter_sqv|default(printer.configfile.settings.printer.square_corner_velocity, true), true) | int %}
SAVE_VARIABLE VARIABLE=internal_perimeter_sqv VALUE={val}
[gcode_macro SET_INTERNAL_BRIDGE_SQV]
gcode:
{% set svv = printer.save_variables.variables %}
{% set val = params.SQV|default(svv.internal_bridge_sqv|default(printer.configfile.settings.printer.square_corner_velocity, true), true) | int %}
SAVE_VARIABLE VARIABLE=internal_bridge_sqv VALUE={val}
[gcode_macro SET_BRIDGE_INFILL_SQV]
gcode:
{% set svv = printer.save_variables.variables %}
{% set val = params.SQV|default(svv.bridge_infill_sqv|default(printer.configfile.settings.printer.square_corner_velocity, true), true) | int %}
SAVE_VARIABLE VARIABLE=bridge_infill_sqv VALUE={val}
[gcode_macro Query_SQV_Values]
gcode:
{% set sqv = printer.save_variables.variables %}
{% set default_sqv = printer.configfile.settings.printer.square_corner_velocity %}
{action_respond_info(
"Infill SQV values: {}\n
Solid Infill SQV values: {}\n
Top Solid Infill SQV values: {}\n
Internal Perimeter SQV values: {}\n
Internal Bridge SQV values: {}\n
Bridge Infill SQV values: {}\n
Default SQV values: {}\n".format(sqv.infill_sqv,sqv.solid_infill_sqv,sqv.top_solid_infill_sqv,sqv.internal_perimeter_sqv,sqv.internal_bridge_sqv,sqv.bridge_infill_sqv,default_sqv))}