HALTCL(1) | HAL User's Manual | HALTCL(1) |
haltcl - manipulate the LinuxCNC HAL from the command line using a Tcl interpreter.
haltcl [-i <INI file>] [filename]
haltcl is used to manipulate the HAL (Hardware Abstraction Layer) from the command line using a Tcl interpreter. haltcl can optionally read commands from a file (filename), allowing complex HAL configurations to be set up with a single command.
For example, if the INI file contains:
[SECTION_A]ITEM_1 = 1
[SECTION_A]ITEM_2 = 2
[SECTION_B]ITEM_1 = 10
The corresponding Tcl variables are:
SECTION_A(ITEM_1) = 1
SECTION_A(ITEM_2) = 2
SECTION_B(ITEM_1) = 10
haltcl includes the commands of a Tcl interpreter augmented with commands for the hal language as described for halcmd(1). The augmented commands can be listed with the command:
haltcl: hal --commands
addf alias delf delsig getp gets ptype stype help linkpp linkps linksp list
loadrt loadusr lock net newsig save setexact_for_test_suite_only setp sets
show source start status stop unalias unlinkp unload unloadrt unloadusr
unlock waitusr
Two of the augmented commands, 'list' and 'gets', require special treatment to avoid conflict with Tcl built-in commands having the same names. To use these commands, precede them with the keyword 'hal':
hal list
hal gets
Report bugs to the LinuxCNC bug tracker ⟨URL: http://sf.net/p/emc/bugs/ ⟩.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
2012-01-31 | LinuxCNC Documentation |