-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
handwheel.hal
29 lines (26 loc) · 1.13 KB
/
handwheel.hal
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
# Load handwheel python component
loadusr -Wn handwheel /home/miller/linuxcnc/configs/millimcmillface/handwheel.py
# For velocity mode, set to 1
# In velocity mode the axis stops when the dial is stopped
# even if that means the commanded motion is not completed,
# For position mode (the default), set to 0
# In position mode the axis will move exactly jog-scale
# units for each count, regardless of how long that might take,
setp axis.x.jog-vel-mode 1
setp axis.y.jog-vel-mode 1
setp axis.z.jog-vel-mode 1
# The handwheel scale selection
net handwheel-scale <= handwheel.scale
net handwheel-scale => axis.x.jog-scale
net handwheel-scale => axis.y.jog-scale
net handwheel-scale => axis.z.jog-scale
# # The Axis select inputs
net handwheel-enable-x handwheel.enable-x axis.x.jog-enable
net handwheel-enable-y handwheel.enable-y axis.y.jog-enable
net handwheel-enable-z handwheel.enable-z axis.z.jog-enable
#
# # The encoder output counts to the axis. Only the selected axis will move.
net handwheel-counts <= handwheel.encoder
net handwheel-counts => axis.x.jog-counts
net handwheel-counts => axis.y.jog-counts
net handwheel-counts => axis.z.jog-counts