-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathktamv-macros.cfg
47 lines (38 loc) · 1.25 KB
/
ktamv-macros.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
[gcode_macro CALIB_CAMERA_KTAMV]
gcode:
KTAMV_CALIB_CAMERA
[gcode_macro FIND_NOZZLE_CENTER_KTAMV]
gcode:
KTAMV_FIND_NOZZLE_CENTER
[gcode_macro SET_ORIGIN_KTAMV]
gcode:
KTAMV_SET_ORIGIN
[gcode_macro MOVE_TO_ORIGIN_KTAMV]
gcode:
{% if 'xy' not in printer.toolhead.homed_axes%}
RESPOND PREFIX="info" MSG="Printer not homed."
{% elif printer.ktamv.camera_center_coordinates[0]|default("none")|lower =="none" %}
RESPOND PREFIX="info" MSG="Camera center coordinates not set."
{% else %}
G0 X{printer.ktamv.camera_center_coordinates[0]} Y{printer.ktamv.camera_center_coordinates[1]}
{% endif %}
[gcode_macro SIMPLE_NOZZLE_POSITION_KTAMV]
gcode:
KTAMV_SIMPLE_NOZZLE_POSITION
[gcode_macro GET_OFFSET_KTAMV]
gcode:
KTAMV_GET_OFFSET
PRINT_OFFSET_KTAMV
# This is to ilustrate the posibility to access the status variables to get the offset last calculated with GET_OFFSET_KTAMV
[gcode_macro PRINT_OFFSET_KTAMV]
gcode:
{action_respond_info("Macro example found offset X:"~printer.ktamv.last_calculated_offset[0]~" Y:"~printer.ktamv.last_calculated_offset[1])}
[gcode_macro SEND_SERVER_CFG_KTAMV]
gcode:
KTAMV_SEND_SERVER_CFG
[gcode_macro STOP_PREVIEW_KTAMV]
gcode:
KTAMV_STOP_PREVIEW
[gcode_macro START_PREVIEW_KTAMV]
gcode:
KTAMV_START_PREVIEW