halui - observe HAL pins and command LinuxCNC through NML
halui [-ini <path-to-INI>]
halui is used to build a User Interface using hardware
knobs and switches. It exports a big number of pins, and acts accordingly
when these change.
- -ini filename
- use the filename as the configuration file. Note: halui must find
the nml file specified in the INI, usually that file is in the same folder
as the INI, so it makes sense to run halui from that folder.
When run, halui will export a large number of pins. A user
can connect those to his physical knobs & switches & leds, and when
a change is noticed halui triggers an appropriate event.
halui expects the signals to be debounced, so if needed
(bad knob contact) connect the physical button to a HAL debounce filter
first.
- halui.mdi-command-XX
bit in
- halui looks for INI variables named [HALUI]MDI_COMMAND, and exports
a pin for each command it finds. When the pin is driven TRUE, halui
runs the specified MDI command. XX is a two digit number starting at 00.
If no [HALUI]MDI_COMMAND variables are set in the INI file, no
halui.mdi-command-XX pins will be exported by halui.
- halui.max-velocity.count-enable
bit in (default: TRUE)
- When True, modify max velocity when halui.max-velocity.counts
changes.
- halui.max-velocity.counts
s32 in
- When .count-enable is True, halui changes the max velocity in response to
changes to this pin. It's usually connected to an MPG encoder on an
operator's panel or jog pendant. When .count-enable is False, halui
ignores this pin.
- halui.max-velocity.direct-value
bit in
- When this pin is True, halui commands the max velocity directly to
(.counts * .scale). When this pin is False, halui commands the max
velocity in a relative way: change max velocity by an amount equal to
(change in .counts * .scale).
- halui.max-velocity.increase
bit in
- A positive edge (a False to True transition) on this pin increases the max
velocity by the value of the .scale pin. (Note that halui always responds
to this pin, independent of the .count-enable pin.)
- halui.max-velocity.decrease
bit in
- A positive edge (a False to True transition) on this pin decreases the max
velocity by the value of the .scale pin. (Note that halui always responds
to this pin, independent of the .count-enable pin.)
- halui.max-velocity.scale
float in
- This pin controls the scale of changes to the max velocity. Each unit
change in .counts, and each positive edge on .increase and .decrease,
changes the max velocity by .scale. The units of the .scale pin are
machine-units per second.
- halui.max-velocity.value
float out
- Current value for maximum velocity, in machine-units per second.
- halui.home-all
bit in
- pin for requesting home-all (only available when a valid homing sequence
is specified)
Written by Alex Joni, as part of the LinuxCNC project. Updated by
John Thornton
Report bugs to alex_joni AT users DOT sourceforge DOT net
Copyright © 2006 Alex Joni.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.