Skip to content

Commit d8b7eb8

Browse files
committed
halrmt: Fix the risk of exceptions in HAL query callbacks and add a test.
1 parent d0ac241 commit d8b7eb8

7 files changed

Lines changed: 658 additions & 216 deletions

File tree

docs/src/man/man1/halrmt.1.adoc

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ halrmt - remote-control interface for LinuxCNC/HAL
1515

1616
-n,--name _server_name_::
1717
Sets the server name to specified name for in reply to `HELLO` command.
18-
Default: EMCNETSVR.
18+
Default: HALNETSVR.
1919

2020
-p,--port _port_::
2121
Listen on TCP port _port_ for connection.
@@ -110,6 +110,10 @@ set delsig <signalname>|all::
110110
Deletes the signal specified by _signalname_.
111111
Specifying 'all' will remove all signals in the system.
112112

113+
set disable::
114+
Disables the connection from accepting control functions that require the connection to be 'enabled'.
115+
You may use `SET ENABLE` to enable the connection again.
116+
113117
get echo::
114118
set echo {on|off}::
115119
With get will return the current echo state.
@@ -145,6 +149,14 @@ get functs [pattern]::
145149
Returns information about functions matching _pattern_.
146150
If no _pattern_ is specified then all functions are returned.
147151

152+
get getp <pin|param>::
153+
Get the value of a pin or parameter.
154+
This will print in the form "GETP __type__ __name__ __value__".
155+
156+
get gets <signal>::
157+
Get the value of a signal.
158+
This will print in the form "GETS __type__ __name__ __value__".
159+
148160
get ini <var> <section>::
149161
Return the variable \[__section__]_var_ from the current INI-file.
150162

@@ -287,6 +299,15 @@ set verbose on | off::
287299
In addition, text error messages will be issued when in verbose mode.
288300
The _verbose_ state is local to each connection.
289301

302+
set wait <thread> [<cycles>|2 [timeout]]::
303+
Wait for the number of _cycles_ to have passed in the named _thread_.
304+
The command will use the pin '__thread__.threadbeat' for the cycle count.
305+
The default number of _cycles_ to wait is two (2) when not specified.
306+
The maximum number of _cycles_ to wait is set at 10000.
307+
The _cycles_ value needs to be two to guarantee that the thread cycle has run at least once.
308+
The _timeout_ can only be specified if you also specify the _cycles_.
309+
The default _timeout_ is 11 seconds (10000 cycles of 0.001 seconds plus one second).
310+
290311
== SEE ALSO
291312

292313
*linuxcnc*(1),

0 commit comments

Comments
 (0)