Skip to content

Commit f0ea653

Browse files
committed
gmoccapy -add a halui test config with a sim test panel
1 parent 5977f26 commit f0ea653

3 files changed

Lines changed: 614 additions & 0 deletions

File tree

Lines changed: 225 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,225 @@
1+
# EMC controller parameters for a simulated machine.
2+
# General note: Comments can either be preceded with a # or ; - either is
3+
# acceptable, although # is in keeping with most linux config files.
4+
5+
# General section -------------------------------------------------------------
6+
[EMC]
7+
VERSION = 1.1
8+
MACHINE = gmoccapy
9+
DEBUG = 0
10+
11+
# Sections for display options ------------------------------------------------
12+
[DISPLAY]
13+
DISPLAY = gmoccapy -i
14+
# Log level:
15+
# DEBUG -d
16+
# INFO -i
17+
# VERBOSE -v
18+
# ERROR -q
19+
20+
# Cycle time, in milliseconds, that display will sleep between polls
21+
CYCLE_TIME = 100
22+
23+
# Values that will be allowed for override, 1.0 = 100%
24+
MAX_FEED_OVERRIDE = 1.5
25+
MAX_SPINDLE_OVERRIDE = 1.2
26+
MIN_SPINDLE_OVERRIDE = 0.5
27+
28+
# Initial value for spindle speed
29+
DEFAULT_SPINDLE_SPEED = 450
30+
31+
# The following are not used, added here to suppress warnings (from qt_istat/logger).
32+
DEFAULT_LINEAR_VELOCITY = 35
33+
MIN_LINEAR_VELOCITY = 0
34+
MAX_LINEAR_VELOCITY = 234
35+
DEFAULT_SPINDLE_0_SPEED = 500
36+
MIN_SPINDLE_0_SPEED = 0
37+
MAX_SPINDLE_0_SPEED = 3000
38+
MAX_SPINDLE_0_OVERRIDE = 1.2
39+
MIN_SPINDLE_0_OVERRIDE = 0.5
40+
41+
# Prefix to be used
42+
PROGRAM_PREFIX = ../../nc_files/
43+
44+
# Introductory graphic
45+
INTRO_GRAPHIC = linuxcnc.gif
46+
INTRO_TIME = 5
47+
48+
# list of selectable jog increments
49+
INCREMENTS = 1.000 mm, 0.100 mm, 0.010 mm, 0.001 mm, 1.2345 inch
50+
51+
# for details see nc_files/subroutines/maco_instructions.txt
52+
[FILTER]
53+
PROGRAM_EXTENSION = .png,.gif,.jpg Grayscale Depth Image
54+
PROGRAM_EXTENSION = .py Python Script
55+
png = image-to-gcode
56+
gif = image-to-gcode
57+
jpg = image-to-gcode
58+
py = python3
59+
60+
# Task controller section -----------------------------------------------------
61+
[RS274NGC]
62+
RS274NGC_STARTUP_CODE = G17 G21 G40 G43H0 G54 G64P0.005 G80 G90 G94 G97 M5 M9
63+
PARAMETER_FILE = sim.var
64+
SUBROUTINE_PATH = ./macros
65+
REMAP=M6 modalgroup=6 prolog=change_prolog ngc=change_g43 epilog=change_epilog
66+
REMAP=M61 modalgroup=6 prolog=settool_prolog ngc=settool_g43 epilog=settool_epilog
67+
68+
# the Python plugins serves interpreter and task
69+
[PYTHON]
70+
PATH_PREPEND = ./python
71+
TOPLEVEL = ./python/toplevel.py
72+
LOG_LEVEL = 0
73+
74+
# Motion control section ------------------------------------------------------
75+
[EMCMOT]
76+
EMCMOT = motmod
77+
COMM_TIMEOUT = 1.0
78+
BASE_PERIOD = 100000
79+
SERVO_PERIOD = 1000000
80+
81+
# Hardware Abstraction Layer section --------------------------------------------------
82+
[TASK]
83+
TASK = milltask
84+
CYCLE_TIME = 0.001
85+
86+
# Part program interpreter section --------------------------------------------
87+
[HAL]
88+
HALFILE = core_sim.hal
89+
HALFILE = spindle_sim.hal
90+
HALFILE = simulated_home.hal
91+
92+
# Single file that is executed after the GUI has started.
93+
POSTGUI_HALFILE = gmoccapy_postgui.hal
94+
POSTGUI_HALCMD = loadusr qtvcp -a -H panel.hal panel
95+
96+
HALUI = halui
97+
98+
# Trajectory planner section --------------------------------------------------
99+
[HALUI]
100+
#No Content
101+
102+
[MDI_COMMAND_LIST]
103+
# for macro buttons on main oage up to 10 possible
104+
MDI_COMMAND_MACRO0 = G0 Z1;X0 Y0;Z0, Goto\nUser\nZero
105+
MDI_COMMAND_MACRO1 = G53 G0 Z0;G53 G0 X0 Y0,Goto\nMachn\nZero
106+
MDI_COMMAND_MACRO2 = (MSG, macro 2);
107+
MDI_COMMAND_MACRO3 = (MSG, macro 2)
108+
MDI_COMMAND_MACRO4 = (MSG, macro 2),test
109+
[TRAJ]
110+
COORDINATES = X Y Z
111+
LINEAR_UNITS = mm
112+
ANGULAR_UNITS = degree
113+
DEFAULT_LINEAR_VELOCITY = 35
114+
MAX_LINEAR_VELOCITY = 234
115+
POSITION_FILE = position.txt
116+
#NO_FORCE_HOMING = 1
117+
118+
[EMCIO]
119+
# tool table file
120+
TOOL_TABLE = tool.tbl
121+
TOOL_CHANGE_POSITION = 100 100 -10
122+
TOOL_CHANGE_QUILL_UP = 1
123+
124+
[KINS]
125+
KINEMATICS = trivkins coordinates=xyz
126+
JOINTS = 3
127+
128+
[AXIS_X]
129+
MIN_LIMIT = -400.0
130+
MAX_LIMIT = 400.0
131+
MAX_VELOCITY = 166
132+
MAX_ACCELERATION = 1500.0
133+
134+
[JOINT_0]
135+
TYPE = LINEAR
136+
MAX_VELOCITY = 166
137+
MAX_ACCELERATION = 1500.0
138+
BACKLASH = 0.000
139+
INPUT_SCALE = 4000
140+
OUTPUT_SCALE = 1.000
141+
MIN_LIMIT = -400.0
142+
MAX_LIMIT = 400.0
143+
FERROR = 0.050
144+
MIN_FERROR = 0.010
145+
HOME_OFFSET = 0.0
146+
HOME = 10
147+
HOME_SEARCH_VEL = 200.0
148+
HOME_LATCH_VEL = 20.0
149+
HOME_USE_INDEX = NO
150+
HOME_IGNORE_LIMITS = NO
151+
HOME_SEQUENCE = 1
152+
HOME_IS_SHARED = 1
153+
154+
# Second axis
155+
[AXIS_Y]
156+
MIN_LIMIT = -400.0
157+
MAX_LIMIT = 400.0
158+
MAX_VELOCITY = 166
159+
MAX_ACCELERATION = 1500.0
160+
161+
[JOINT_1]
162+
TYPE = LINEAR
163+
MAX_VELOCITY = 166
164+
MAX_ACCELERATION = 1500.0
165+
BACKLASH = 0.000
166+
INPUT_SCALE = 4000
167+
OUTPUT_SCALE = 1.000
168+
MIN_LIMIT = -400.0
169+
MAX_LIMIT = 400.0
170+
FERROR = 0.050
171+
MIN_FERROR = 0.010
172+
HOME_OFFSET = 0.0
173+
HOME = 10
174+
HOME_SEARCH_VEL = 200.0
175+
HOME_LATCH_VEL = 20.0
176+
HOME_USE_INDEX = NO
177+
HOME_IGNORE_LIMITS = NO
178+
HOME_SEQUENCE = 1
179+
180+
# Third axis
181+
[AXIS_Z]
182+
MIN_LIMIT = -400.0
183+
MAX_LIMIT = 0.001
184+
MAX_VELOCITY = 166
185+
MAX_ACCELERATION = 1500.0
186+
187+
[JOINT_2]
188+
TYPE = LINEAR
189+
MAX_VELOCITY = 166
190+
MAX_ACCELERATION = 1500.0
191+
BACKLASH = 0.000
192+
INPUT_SCALE = 4000
193+
OUTPUT_SCALE = 1.000
194+
MIN_LIMIT = -400.0
195+
MAX_LIMIT = 0.001
196+
FERROR = 0.050
197+
MIN_FERROR = 0.010
198+
HOME_OFFSET = 1.0
199+
HOME = -10
200+
HOME_SEARCH_VEL = 200.0
201+
HOME_LATCH_VEL = 20.0
202+
HOME_USE_INDEX = NO
203+
HOME_IGNORE_LIMITS = NO
204+
HOME_SEQUENCE = 0
205+
HOME_IS_SHARED = 1
206+
207+
# section for main IO controller parameters -----------------------------------
208+
[MACROS]
209+
MACRO = go_to_position x-pos y-pos z-pos
210+
MACRO = i_am_lost
211+
MACRO = increment x-incr y-incr
212+
MACRO = macro_4
213+
MACRO = macro_5
214+
MACRO = macro_6
215+
MACRO = macro_7
216+
MACRO = macro_8
217+
MACRO = macro_9
218+
MACRO = macro_10
219+
MACRO = macro_11
220+
MACRO = macro_12
221+
MACRO = macro_13
222+
MACRO = macro_14
223+
MACRO = macro_15
224+
225+

configs/sim/gmoccapy/panel.hal

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
net rate halui.axis.jog-speed panel.Jog-rate-f
2+
3+
net sx halui.axis.x.select panel.axis-x
4+
net sy halui.axis.y.select panel.axis-y
5+
net sz halui.axis.z.select panel.axis-z
6+
7+
net jog-p halui.axis.selected.plus panel.jog-pos
8+
net jog-m halui.axis.selected.minus panel.jog-neg
9+
10+
net m0 halui.gui.mdi-command-MACRO0 panel.mdi-0
11+
net m1 halui.gui.mdi-command-MACRO1 panel.mdi-1
12+
net m2 halui.gui.mdi-command-MACRO2 panel.mdi-2
13+
14+
net man panel.manual-mode halui.mode.manual
15+
net mdi panel.mdi-mode halui.mode.mdi
16+
net auto panel.auto-mode halui.mode.auto
17+
18+
net pause halui.cycle.start panel.cycle-start
19+
net start halui.cycle.pause panel.cycle-pause
20+
net abort halui.abort panel.cycle-abort
21+
22+
net cancel halui.gui.cancel panel.cancel
23+
net ok halui.gui.ok panel.ok
24+

0 commit comments

Comments
 (0)