Skip to content

Commit 0c50a8d

Browse files
committed
qtdragon -add halui test sim
1 parent 842feee commit 0c50a8d

2 files changed

Lines changed: 269 additions & 3 deletions

File tree

Lines changed: 267 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,267 @@
1+
# This file was created with the 7i96 Wizard on Jun 10 2019 11:12:47
2+
# Changes to most things are ok and will be read by the wizard
3+
4+
[EMC]
5+
VERSION = 1.1
6+
MACHINE = qtdragon_metric
7+
DEBUG = 0x00000000
8+
9+
[DISPLAY]
10+
# sets qtdragon as screen. for debug output to terminal add -d or -v
11+
# sets window title
12+
# sets icon in task manager
13+
DISPLAY = qtvcp -d qtdragon
14+
TITLE = QtDragon XYZ Metric
15+
ICON = silver_dragon.png
16+
17+
# qtdragon saves most preference to this file
18+
PREFERENCE_FILE_PATH = WORKINGFOLDER/qtdragon.pref
19+
20+
# min/max percentage overrides allowed in qtdragon 1 = 100%
21+
MAX_FEED_OVERRIDE = 1.2
22+
MIN_SPINDLE_0_OVERRIDE = 0.5
23+
MAX_SPINDLE_0_OVERRIDE = 1.2
24+
25+
# manual spindle speed will start at this RPM
26+
DEFAULT_SPINDLE_0_SPEED = 12000
27+
28+
# spindle up/down increment in RPM
29+
SPINDLE_INCREMENT = 200
30+
31+
# min max apindle speed manually allowed
32+
MIN_SPINDLE_0_SPEED = 1000
33+
MAX_SPINDLE_0_SPEED = 20000
34+
35+
# max spindle power in Watts
36+
MAX_SPINDLE_POWER = 2000
37+
38+
# min/max/default jog velocities in qtdragon in units/sec
39+
MIN_LINEAR_VELOCITY = 0
40+
MAX_LINEAR_VELOCITY = 60.00
41+
DEFAULT_LINEAR_VELOCITY = 50.0
42+
43+
# incremental jog step length options
44+
INCREMENTS = 10 mm, 1.0 mm, 0.10 mm, 0.01 mm, 1.0 inch, 0.1 inch, 0.01 inch
45+
46+
# Display grid increments
47+
GRIDS = 0, .1 mm, 1 mm, 2 mm, 5 mm, 10 mm, .25 in, .5 in
48+
49+
CYCLE_TIME = 100
50+
INTRO_GRAPHIC = silver_dragon.png
51+
INTRO_TIME = 2
52+
53+
# default program search path
54+
PROGRAM_PREFIX = ~/linuxcnc/nc_files
55+
56+
# NGCGUI subroutine path.
57+
# Thr path must also be in [RS274NGC] SUBROUTINE_PATH
58+
NGCGUI_SUBFILE_PATH = ../../../nc_files/ngcgui_lib/
59+
# pre selected programs tabs
60+
# specify filenames only, files must be in the NGCGUI_SUBFILE_PATH
61+
NGCGUI_SUBFILE = slot.ngc
62+
NGCGUI_SUBFILE = qpocket.ngc
63+
64+
# qtdragon saves MDI cxommands to this file
65+
MDI_HISTORY_FILE = mdi_history.dat
66+
# qtdragon saves rnning logs to this file
67+
LOG_FILE = qtdragon.log
68+
69+
# optional user dialogs (3), controlled by HAL pins
70+
MESSAGE_BOLDTEXT = Critical and Persistent
71+
MESSAGE_TEXT = This is a persistent dialog test
72+
MESSAGE_DETAILS = There seems to be something wrong\n You must fix it to clear message
73+
MESSAGE_TYPE = nonedialog
74+
MESSAGE_PINNAME = nonedialogtest
75+
MESSAGE_ICON = CRITICAL
76+
77+
MESSAGE_BOLDTEXT = Do You Want To Make A Choice?
78+
MESSAGE_TEXT = This is a yes no dialog test
79+
MESSAGE_DETAILS = Y/N DETAILS
80+
MESSAGE_TYPE = yesnodialog
81+
MESSAGE_PINNAME = yndialogtest
82+
MESSAGE_ICON = QUESTION
83+
84+
MESSAGE_BOLDTEXT = This is an information message
85+
MESSAGE_TEXT = This is low priority
86+
MESSAGE_DETAILS = press ok to clear
87+
MESSAGE_TYPE = okdialog status
88+
MESSAGE_PINNAME = bothtest
89+
MESSAGE_ICON = INFO
90+
91+
# optional tab showing an external qtvcp panel
92+
EMBED_TAB_NAME=Vismach demo
93+
EMBED_TAB_COMMAND=qtvcp vismach_mill_xyz
94+
EMBED_TAB_LOCATION=tabWidget_utilities
95+
96+
[MDI_COMMAND_LIST]
97+
# for macro buttons on main oage up to 10 possible
98+
MDI_COMMAND_MACRO0 = G0 Z25;X0 Y0;Z0, Goto\nUser\nZero
99+
MDI_COMMAND_MACRO1 = G53 G0 Z0;G53 G0 X0 Y0,Goto\nMachn\nZero
100+
101+
[FILTER]
102+
# Controls what programs are shown inqtdragon file manager
103+
PROGRAM_EXTENSION = .ngc,.nc,.tap G-Code File (*.ngc,*.nc,*.tap)
104+
PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image
105+
PROGRAM_EXTENSION = .py Python Script
106+
107+
# specifies what special 'filter' programs runs based on program ending
108+
png = image-to-gcode
109+
gif = image-to-gcode
110+
jpg = image-to-gcode
111+
py = python3
112+
113+
[KINS]
114+
KINEMATICS = trivkins coordinates=XYZ
115+
JOINTS = 3
116+
117+
[EMCIO]
118+
TOOL_TABLE = tool.tbl
119+
120+
[RS274NGC]
121+
# motion controller saves parameters to this file
122+
PARAMETER_FILE = qtdragon.var
123+
124+
# start up G/M codes when first loaded
125+
RS274NGC_STARTUP_CODE = G17 G21 G40 G43H0 G54 G64P0.0127 G80 G90 G94 G97 M5 M9
126+
127+
# 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
129+
130+
# on abort, this ngc file is called. required for basic/versa probe
131+
ON_ABORT_COMMAND=O <on_abort> call
132+
133+
[EMCMOT]
134+
EMCMOT = motmod
135+
SERVO_PERIOD = 1000000
136+
COMM_TIMEOUT = 1.0
137+
COMM_WAIT = 0.010
138+
BASE_PERIOD = 100000
139+
140+
[TASK]
141+
TASK = milltask
142+
CYCLE_TIME = 0.010
143+
144+
[TRAJ]
145+
COORDINATES = XYZ
146+
LINEAR_UNITS = metric
147+
ANGULAR_UNITS = degree
148+
MAX_LINEAR_VELOCITY = 60.00
149+
DEFAULT_LINEAR_VELOCITY = 50.00
150+
SPINDLES = 1
151+
152+
[HAL]
153+
HALUI = halui
154+
#HALBRIDGE = hal_bridge
155+
156+
# loads the HAL machine simulation
157+
HALFILE = core_sim.hal
158+
HALFILE = simulated_home.hal
159+
160+
# this file is loaded after qtdragon has made it's HAl pins
161+
# you can add multiple entries
162+
POSTGUI_HALFILE = qtdragon_postgui.hal
163+
164+
# this command is run after qtdragon has made it's HAl pins
165+
# any HAL conmmand can be used
166+
# you can add multiple entries
167+
# uncomment this one to print all HAL pins that start with qt
168+
#POSTGUI_HALCMD = show pin qt
169+
POSTGUI_HALCMD = show pin halui.gui
170+
POSTGUI_HALCMD = loadusr qtvcp -a -H panel.hal panel
171+
[HALUI]
172+
# no content
173+
174+
[PROBE]
175+
# pick basic probe or versa probe or remove for none
176+
#USE_PROBE = versaprobe
177+
USE_PROBE = basicprobe
178+
179+
[AXIS_X]
180+
MIN_LIMIT = -0.001
181+
MAX_LIMIT = 520.0
182+
MAX_VELOCITY = 60.0
183+
MAX_ACCELERATION = 500.0
184+
185+
[AXIS_Y]
186+
MIN_LIMIT = -0.001
187+
MAX_LIMIT = 630.0
188+
MAX_VELOCITY = 60.0
189+
MAX_ACCELERATION = 500.0
190+
191+
[AXIS_Z]
192+
# used by external offsets for auto spindle lift
193+
OFFSET_AV_RATIO = 0.2
194+
MIN_LIMIT = -115.0
195+
MAX_LIMIT = 10.0
196+
MAX_VELOCITY = 40.0
197+
MAX_ACCELERATION = 500.0
198+
199+
[JOINT_0]
200+
AXIS = X
201+
MIN_LIMIT = -0.001
202+
MAX_LIMIT = 520.0
203+
MAX_VELOCITY = 60.0
204+
MAX_ACCELERATION = 500.0
205+
TYPE = LINEAR
206+
SCALE = 160.0
207+
STEPGEN_MAX_VEL = 72.0
208+
STEPGEN_MAX_ACC = 600.0
209+
FERROR = 1.0
210+
MIN_FERROR = 0.5
211+
MAX_OUTPUT = 0
212+
MAX_ERROR = 0.0127
213+
HOME = 20.0
214+
HOME_OFFSET = 0.00000
215+
HOME_SEARCH_VEL = 20.000000
216+
HOME_LATCH_VEL = 10.000
217+
HOME_SEQUENCE = 1
218+
HOME_USE_INDEX = False
219+
HOME_IGNORE_LIMITS = False
220+
HOME_IS_SHARED = 1
221+
222+
[JOINT_1]
223+
AXIS = Y
224+
MIN_LIMIT = -0.001
225+
MAX_LIMIT = 630.0
226+
MAX_VELOCITY = 60.0
227+
MAX_ACCELERATION = 500.0
228+
TYPE = LINEAR
229+
SCALE = 160.0
230+
STEPGEN_MAX_VEL = 72.0
231+
STEPGEN_MAX_ACC = 600.0
232+
FERROR = 1.0
233+
MIN_FERROR = 0.5
234+
MAX_OUTPUT = 0
235+
MAX_ERROR = 0.0127
236+
HOME = 20.0
237+
HOME_OFFSET = 0.000000
238+
HOME_SEARCH_VEL = 20.00
239+
HOME_LATCH_VEL = 10.00
240+
HOME_SEQUENCE = 2
241+
HOME_USE_INDEX = False
242+
HOME_IGNORE_LIMITS = False
243+
244+
[JOINT_2]
245+
AXIS = Z
246+
MIN_LIMIT = -115.0
247+
MAX_LIMIT = 10.0
248+
MAX_VELOCITY = 40.0
249+
MAX_ACCELERATION = 500.0
250+
TYPE = LINEAR
251+
SCALE = 160.0
252+
STEPGEN_MAX_VEL = 48.0
253+
STEPGEN_MAX_ACC = 600.0
254+
FERROR = 1.0
255+
MIN_FERROR = 0.5
256+
MAX_OUTPUT = 0
257+
MAX_ERROR = 0.0127
258+
HOME = -10.0
259+
HOME_OFFSET = 0.000000
260+
HOME_SEARCH_VEL = 20.000000
261+
HOME_LATCH_VEL = 10.00
262+
HOME_SEQUENCE = 0
263+
HOME_USE_INDEX = False
264+
HOME_IGNORE_LIMITS = False
265+
HOME_IS_SHARED = 1
266+
267+

configs/sim/qtdragon/qtdragon_xyz/qtdragon_metric.ini

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ DEBUG = 0x00000000
1010
# sets qtdragon as screen. for debug output to terminal add -d or -v
1111
# sets window title
1212
# sets icon in task manager
13-
DISPLAY = qtvcp -d qtdragon
13+
DISPLAY = qtvcp qtdragon
1414
TITLE = QtDragon XYZ Metric
1515
ICON = silver_dragon.png
1616

@@ -166,8 +166,7 @@ POSTGUI_HALFILE = qtdragon_postgui.hal
166166
# you can add multiple entries
167167
# uncomment this one to print all HAL pins that start with qt
168168
#POSTGUI_HALCMD = show pin qt
169-
POSTGUI_HALCMD = show pin halui.gui
170-
POSTGUI_HALCMD = loadusr qtvcp -a -H panel.hal panel
169+
171170
[HALUI]
172171
# no content
173172

0 commit comments

Comments
 (0)