Download LinuxCNC Manual Pages

Transcript
HALCMD(1)
HAL User’s Manual
HALCMD(1)
start
Starts execution of realtime threads. Each thread periodically calls all of the functions that were
added to it with the addf command, in the order in which they were added.
stop
Stops execution of realtime threads. The threads will no longer call their functions.
show [item]
Prints HAL items to stdout in human readable format. item can be one of "comp" (components),
"pin", "sig" (signals), "param" (parameters), "funct" (functions), or "thread". The type "all" can
be used to show matching items of all the preceeding types. If item is omitted, show will print
everything.
item
This is equivalent to show all [item].
save [item]
Prints HAL items to stdout in the form of HAL commands. These commands can be redirected to
a file and later executed using halcmd -f to restore the saved configuration. item can be one of the
following: "comp" generates a loadrt command for realtime component. "sig" generates a newsig
command for each signal, and "sigu" generates a newsig command for each unlinked signal (for
use with netl and netla). "link" and "linka" both generate linkps commands for each link. (linka
includes arrows, while link does not.) "net" and "neta" both generate one newsig command for
each signal, followed by linksp commands for each pin linked to that signal. (neta includes
arrows.) "netl" generates one net command for each linked signal, and "netla" generates a similar
command using arrows. "param" generates one setp command for each parameter. "thread"
generates one addf command for each function in each realtime thread. If item is omitted, save
does the equivalent of comp, sigu, link, param, and thread.
source filename.hal
Execute the commands from filename.hal.
SUBSTITUTION
After a command is read but before it is executed, several types of variable substitution take place.
Environment Variables
Environment variables have the following formats:
$ENVVAR followed by end-of-line or whitespace
$(ENVVAR)
Inifile Variables
Inifile variables are available only when an inifile was specified with the halcmd -i flag. They have the following formats:
[SECTION]VAR followed by end-of-line or whitespace
[SECTION](VAR)
EXAMPLES
SEE ALSO
HISTORY
BUGS
None known at this time.
AUTHOR
Original version by John Kasunich, as part of the LinuxCNC project. Now includes major contributions by
several members of the project.
REPORTING BUGS
Report bugs to the LinuxCNC bug tracker 〈http://sf.net/tracker/
?group_id=6744&atid=106744〉.
COPYRIGHT
Copyright © 2003 John Kasunich.
This is free software; see the source for copying conditions. There is NO warranty; not even for
16
2003-12-18
LinuxCNC Documentation