Skip to content

Commit 74a9969

Browse files
committed
qtdragon sim -add a macro command to run from the panel
1 parent 592bb75 commit 74a9969

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

configs/sim/qtdragon/qtdragon_xyz/panel.hal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ net jog-m halui.axis.selected.minus panel.jog-neg
2424

2525
net m0 halui.gui.mdi-command-MACRO0 panel.mdi-0
2626
net m1 halui.gui.mdi-command-MACRO1 panel.mdi-1
27-
#net m2 halui.gui.mdi-command-0 panel.mdi-2
27+
net m2 halui.gui.mdi-command-MACRO6 panel.mdi-2
2828

2929
net man panel.manual-mode halui.mode.manual
3030
net mdi panel.mdi-mode halui.mode.mdi

configs/sim/qtdragon/qtdragon_xyz/qtdragon_halui_test.ini

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,17 @@ EMBED_TAB_COMMAND=qtvcp vismach_mill_xyz
9494
EMBED_TAB_LOCATION=tabWidget_utilities
9595

9696
[MDI_COMMAND_LIST]
97-
# for macro buttons on main oage up to 10 possible
97+
# for macro buttons on main page up to 10 possible
9898
MDI_COMMAND_MACRO0 = G53 G0 Z0;G0 X0 Y0;Z0, Goto\nUser\nZero
9999
MDI_COMMAND_MACRO1 = G53 G0 Z0;G53 G0 X0 Y0,Goto\nMachn\nZero
100100

101+
[MACROS]
102+
MACRO_COMMAND_MACRO6 = go_to_position x-pos y-pos z-pos, Go To \nPosition
103+
MACRO_COMMAND_MACRO2 = lost, LOST
104+
MACRO_COMMAND_MACRO3 = increment x-incr y-incr, INCR
105+
MACRO_COMMAND_MACRO4 = macro_4
106+
MACRO_COMMAND_MACRO5 = macro_5
107+
101108
[FILTER]
102109
# Controls what programs are shown inqtdragon file manager
103110
PROGRAM_EXTENSION = .ngc,.nc,.tap G-Code File (*.ngc,*.nc,*.tap)
@@ -125,7 +132,7 @@ PARAMETER_FILE = qtdragon.var
125132
RS274NGC_STARTUP_CODE = G17 G21 G40 G43H0 G54 G64P0.0127 G80 G90 G94 G97 M5 M9
126133

127134
# subroutine/remap path list
128-
SUBROUTINE_PATH = ../../../../nc_files/probe/basic_probe/macros:~/linuxcnc/nc_files/examples/ngcgui_lib:~/linuxcnc/nc_files/examples/ngcgui_lib/utilitysubs
135+
SUBROUTINE_PATH = ../../../../nc_files/probe/basic_probe/macros:~/linuxcnc/nc_files/examples/ngcgui_lib:~/linuxcnc/nc_files/examples/ngcgui_lib/utilitysubs:./macros
129136

130137
# on abort, this ngc file is called. required for basic/versa probe
131138
ON_ABORT_COMMAND=O <on_abort> call

0 commit comments

Comments
 (0)