summaryrefslogtreecommitdiff
path: root/configs/sim/touchy/gladevcp/gladevcp-touchy.hal
blob: 70ff262c0b926dc6476165a1759cf735a1189178 (plain)
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
# touchy doesnt use halui, so just set these boxes to permanently active

setp gladevcp.status 1
setp gladevcp.settings 1
setp gladevcp.commands 1

# show the current spindle speed in the top hoizontal bar
net spindle-speed motion.spindle-speed-out => gladevcp.spindle-rpm-hbar

# the first and second labels show prepared and current tool
# unlinkp iocontrol.0.tool-prep-number
# unlinkp hal_manualtoolchange.number

# net tool-prepared iocontrol.0.tool-prep-number => gladevcp.prepared-tool hal_manualtoolchange.number
# net tool-number iocontrol.0.tool-number => gladevcp.current-tool

net cb1     gladevcp.check  => gladevcp.led1
net b1      gladevcp.button => gladevcp.led2
net tb1     gladevcp.toggle => gladevcp.led3
net rb1     gladevcp.radio1 => gladevcp.led4
net rb2     gladevcp.radio2 => gladevcp.led5
net rb3     gladevcp.radio3 => gladevcp.led6
net hscale1    gladevcp.scale   => gladevcp.scale-value
net combobox1  gladevcp.combo-s => gladevcp.combo-value
net spin1      gladevcp.spin-f  => gladevcp.spin-value

# the MDI Toggle action is called with the values of some of the HAL pins
# as parameters like so:

# O<oword> call [${spin-f}] [${check}] [${toggle}] [${scale}] [${spin-f}]  [${combo-s}]