HALRMT(1)
π HALRMT β the manual page, but make it a group chat π
okay bestie so this is halrmt from The Enhanced Machine Controller (that's LinuxCNC, we're in section 1 of the manual). sit down, hydrate, we're doing this π«Ά
β¨ NAME β¨
halrmt β remote-control interface for LinuxCNC. yes literally, you telnet in and boss your machine around. it's giving main character energy for your CNC. π
π¦ SYNOPSIS π¦
halrmt [--port <port number>] [--name <server name>] [--connectpw <password>] [--enablepw <password>] [--sessions <max sessions>] [-ini <INI file>]
π OPTIONS π
every single one, no skips, we don't do that here:
--portβ waits for socket connections (telnet!) on the specified socket. if you don't specify a port it just vibes on the default port5006. (note, bestie:linuxcncrshuses5007as its default, so don't get them confused π)--name<server name>β sets the server name to the specified name, for the Hello. it's the server's government name fr fr.--connectpw<password>β sets the connection password topassword. default isEMC.--enablepw<password>β sets the enable password topassword. default isEMCTOO.--sessions<max sessions>β sets the maximum number of simultaneous connections tomax sessions. default is no limit (-1). the more the merrier ig β¨-ini<INI file>β uses the specified INI file instead of the defaultemc.ini.
πΈ DESCRIPTION πΈ
halrmt supports six commands, and two of those (set and get) contain HAL-specific sub-commands based on the commands that halcmd supports. π
Commands and most parameters are not case sensitive. the exceptions β the little divas β are passwords, file paths, and text strings. those are case sensitive, no cap.
the supported commands are as follows:
π HELLO
Hello <password> <client> <version>
if a valid password was entered, the server responds with:
HELLO ACK <Server Name> <Server Version>
where server name and server version are looked up from the implementation. and if an invalid password β or any other syntax error β happens? then the server responds with:
HELLO NAK
that's a no from the server. π
π Get
the get command includes one of the HAL sub-commands, described below, and zero or more additional parameters.
π Set
the set command inclides one of the HAL sub-commands, described below, and one or more additional parameters. (yes, "inclides". i said what the original said. we keep the typos, it's canon π«Ά)
π Quit
the quit command disconnects the associated socket connection. bye bestie π
π Shutdown
the shutdown command tells LinuxCNC to shut down before quitting the connection. this command may only be issued if the Hello has been successfully negotiated and the connection has control of the CNC (see the enable sub-command below). this command has no parameters.
β οΈ that's a real power move β Hello negotiated + control of the CNC, or it does not happen.
π Help
the help command will return help information in text format over the telnet connection. if no parameters are specified, it will itemize the available commands. if a command is specified, it will provide usage information for the specified command. help will respond regardless of whether a "Hello" has been successfully negotiated. so helpful. so generous. π
π HAL sub-commands: π
echo on | offβ withgetwill return the current echo state; withset, sets the echo state. when echo is on, all commands will be echoed upon receipt. this state is local to each connection.verbose on | offβ withgetwill return the current verbose state; withset, sets the verbose state. when verbose mode is on, allsetcommands return positive acknowledgement in the formSET <COMMAND> ACK. in addition, text error messages will be issued when in verbose mode. this state is local to each connection.enable <pwd> | offβ withgetwill returnOnorOffto indicate whether the current connection is enabled to perform control functions. withsetand a valid password, the current connection is enabled for control functions."OFF"may not be used as a password and disables control functions for this connection.config [TBD]β yeah that's it, it's TBD. we don't know either. π€·comm_mode ascii | binaryβ withget, will return the current communications mode. withset, will set the communications mode to the specified mode. the binary protocol is TBD.comm_prot <version no>β withget, returns the current protocol version used by the server; withset, sets the server to use the specified protocol version, provided it is lower than or equal to the highest version number supported by the server implementation.Comps [<substring>]β get only, returns all components beginning with the specified substring. if no substring is specified then it returns all components.Pins [<substring>]β get only, returns all information about all pins beginning with the specified substring. if no substring is specified then it returns all pins.PinVals [<substring>]β get only, returns only value information about all pins beginning with the specified substring. if no substring is specified then it returns all pins.Signals [<substring>]β get only, returns all information about all signals beginning with the specified substring. if no substring is specified then it returns all signals.SigVals [<substring>]β get only, returns only value information about all signals beginning with the specified substring. if no substring is specified then it returns all pins.Params [<substring>]β get only, returns all information about all parameters beginning with the specified substring. if no substring is specified then it returns all parameters.ParamVals [<substring>]β get only, returns only value information about all parameters beginning with the specified substring. if no substring is specified then it returns all pins parameters.Functs [<substring>]β get only, returns all information about all functions beginning with the specified substring. if no substring is specified then it returns all functions.Threadsβ get only, returns all information about all functions.Comp <name>β get only, returns the component matching the specified name.Pin <name>β get only, returns all information about the pin matching the specified name.PinVal <name>β get only, returns the value of the pin matching the specified name.Sig <name>β get only, returns all information about the pin matching the specified name.SigVal <name>β get only, returns just the value of the signal matching the specified name.Param <name>β get only, returns all information about the parameter matching the specified name.ParamVal <name>β get only, returns just the value of the parameter matching the specified name.Funct <name>β get only, returns all information about the parameter matching the specified name.Thread <name>β get only, returns all information about the thread matching the specified name.LoadRt <name>β set only, loads the real time executable specified by name.Unload <name>β set only, unloads the executable specified by name.LoadUsr <name>β set only, loads the user executable specified by name.Linkps <pin name> <signal name>β set only, links the specified pin to the specified signal.Linksp <signal name> <pin name>β set only, links the specified signal to the specified pin.Linkpp <pin name 1> <pin name 2>β set only, links the pin specified by pin 1 with the pin specified by pin 2.Net <net list>β set only, nets the specified net list.Unlinkp <pin name 1> <pin name 2>β set only, unlinks the specified pins.Lockβ yeah. justLock. π§Unlockβ and its other half.NewSig <name> <type>β set only, creates the signal specified by name and of type specified by type.DelSig <name>β set only, deletes the signal specified by name.SetP <name> <value>β set only, sets the parameter specified by name to the value specified by value.SetS <name> <value>β set only, sets the signal specified by name to the value specified by value.AddF <name> <thread> [<parameters>]β set only, adds the function specified by name, to the thread specified by thread, with the optional parameters specified by parameters.DelF <name>β set only, deletes the function specified by name.Saveβ it's there, it's iconic, that's the whole description.Startβ same vibe.Stopβ same vibe, opposite direction.
π SEE ALSO π
LinuxCNC(1)- Much more information about LinuxCNC and HAL is available in the LinuxCNC and HAL User Manuals, found at
/usr/share/doc/LinuxCNC/.
π BUGS π
It is not known if this interface currently works.
i'm not kidding bestie, that's the actual bug note. proceed with hope and a backup plan. π
π«Ά AUTHOR π«Ά
This man page written by andypugh, as part of the LinuxCNC project.
π REPORTING BUGS π
Report bugs at https://github.com/LinuxCNC/linuxcnc/issues
β COPYRIGHT β
Copyright Β© 2020 andypugh.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
and that's the whole thing!! this page came out of the LinuxCNC Documentation, dated 2020-08-26, and it lives in section 1 of the manual as HALRMT(1). slay, go remote-control something responsibly πβ¨
π¦ where this page comes from
- debian bookworm: linuxcnc-uspace 2.9.0~pre1+git20230208.f1270d6ed7-1+deb12u2 Β· GFDL-1.1-or-later
- debian trixie: linuxcnc-uspace 1:2.9.4-2+deb13u1 Β· GFDL-1.1-or-later
- ubuntu questing: linuxcnc-uspace 1:2.9.4-2ubuntu2
- ubuntu resolute: linuxcnc-uspace 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- ubuntu stonking: linuxcnc-uspace 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- Copyright (c) 2020 andypugh
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms