aboutsummaryrefslogtreecommitdiffstats
path: root/src/emc/usr_intf/touchy/touchy.hal.example
blob: 26304da4880b34d40d89a1510fa312bb6b5e1294 (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
31
32
33
34
35
36
37
# Note: assignments herein assume identity kins with no omitted axis letters
#       (as provided by trivkins):
#       axis X --> Joint 0
#       axis Y --> Joint 1
#       ...

loadrt ilowpass
loadrt scale count=1

setp ilowpass.0.scale 1000
setp ilowpass.0.gain .02
addf ilowpass.0 servo-thread

setp scale.0.gain .00025
addf scale.0 servo-thread

net JogIncr touchy.jog.wheel.increment => scale.0.in
net JogIncrScaled scale.0.out => joint.0.jog-scale joint.1.jog-scale joint.2.jog-scale
net JogX touchy.jog.wheel.x => joint.0.jog-enable
net JogY touchy.jog.wheel.y => joint.1.jog-enable
net JogZ touchy.jog.wheel.z => joint.2.jog-enable
net WheelCounts hm2_5i20.0.encoder.00.count => ilowpass.0.in touchy.wheel-counts

net JogCountsLowpass ilowpass.0.out => joint.0.jog-counts joint.1.jog-counts joint.2.jog-counts

net JogXPos hm2_5i20.0.gpio.020.in_not => touchy.jog.continuous.x.positive
net JogXNeg hm2_5i20.0.gpio.019.in_not => touchy.jog.continuous.x.negative
net JogYPos hm2_5i20.0.gpio.018.in_not => touchy.jog.continuous.y.positive
net JogYNeg hm2_5i20.0.gpio.017.in_not => touchy.jog.continuous.y.negative
net JogZPos hm2_5i20.0.gpio.016.in_not => touchy.jog.continuous.z.positive
net JogZNeg hm2_5i20.0.gpio.015.in_not => touchy.jog.continuous.z.negative

net QuillUp hm2_5i20.0.gpio.013.in_not => touchy.quill-up

net CycleStart hm2_5i20.0.gpio.023.in_not => touchy.cycle-start
net Abort hm2_5i20.0.gpio.022.in_not => touchy.abort
net SingleBlock hm2_5i20.0.gpio.021.in_not => touchy.single-block
bues.ch cgit interface