1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580
|
.\" Copyright (c) 2006 Alex Joni
.\" (alex_joni AT users DOT sourceforge DOT net)
.\"
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" the License, or (at your option) any later version.
.\"
.\" The GNU General Public License's references to "object code"
.\" and "executables" are to be interpreted as the output of any
.\" document formatting or typesetting system, including
.\" intermediate and printed output.
.\"
.\" This manual is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public
.\" License along with this manual; if not, write to the Free
.\" Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
.\" USA.
.\"
.\"
.\"
.TH HALUI "1" "2006-07-22" "LinuxCNC Documentation" "HAL User Interface"
.SH NAME
halui \- observe HAL pins and command LinuxCNC through NML
.SH SYNOPSIS
.B halui
[\fB\-ini <path-to-INI>\fR]
.SH DESCRIPTION
\fBhalui\fR 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.
.SH OPTIONS
.TP
\fB\-ini filename\fR
use the \fIfilename\fR 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.
.SH USAGE
When run, \fBhalui\fR 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.
\fBhalui\fR expects the signals to be debounced, so if needed (bad knob contact) connect the physical button to a HAL debounce filter first.
.SH PINS
.SS Abort
.TP
.B halui.abort\fR bit in \fR
pin for clearing most errors
.SS Tool
.TP
.B halui.tool.length\-offset.a\fR float out \fR
current applied tool length offset for the A axis
.TP
.B halui.tool.length\-offset.b\fR float out \fR
current applied tool length offset for the B axis
.TP
.B halui.tool.length\-offset.c\fR float out \fR
current applied tool length offset for the C axis
.TP
.B halui.tool.length\-offset.u\fR float out \fR
current applied tool length offset for the U axis
.TP
.B halui.tool.length\-offset.v\fR float out \fR
current applied tool length offset for the V axis
.TP
.B halui.tool.length\-offset.w\fR float out \fR
current applied tool length offset for the W axis
.TP
.B halui.tool.length\-offset.x\fR float out \fR
current applied tool length offset for the X axis
.TP
.B halui.tool.length\-offset.y\fR float out \fR
current applied tool length offset for the Y axis
.TP
.B halui.tool.length\-offset.z\fR float out \fR
current applied tool length offset for the Z axis
.TP
.B halui.tool.diameter\fR float out \fR
Current tool diameter, or 0 if no tool is loaded.
.TP
.B halui.tool.number\fR u32 out \fR
current selected tool
.SS Spindle
.TP
.B halui.spindle.N.brake\-is\-on\fR bit out \fR
status pin that tells us if brake is on
.TP
.B halui.spindle.N.brake\-off\fR bit in \fR
pin for deactivating the spindle brake
.TP
.B halui.spindle.N.brake\-on\fR bit in \fR
pin for activating the spindle brake
.TP
.B halui.spindle.N.decrease\fR bit in \fR
a rising edge on this pin decreases the current spindle speed by 100
.TP
.B halui.spindle.N.forward\fR bit in \fR
a rising edge on this pin makes the spindle go forward
.TP
.B halui.spindle.N.increase\fR bit in \fR
a rising edge on this pin increases the current spindle speed by 100
.TP
.B halui.spindle.N.is\-on\fR bit out \fR
status pin telling if the spindle is on
.TP
.B halui.spindle.N.reverse\fR bit in \fR
a rising edge on this pin makes the spindle go reverse
.TP
.B halui.spindle.N.runs\-backward\fR bit out \fR
status pin telling if the spindle is running backward
.TP
.B halui.spindle.N.runs\-forward\fR bit out \fR
status pin telling if the spindle is running forward
.TP
.B halui.spindle.N.start\fR bit in \fR
a rising edge on this pin starts the spindle
.TP
.B halui.spindle.N.stop\fR bit in \fR
a rising edge on this pin stops the spindle
.SS Spindle Override
.TP
(SO = spindle override. FO = feed override)
.TP
.B halui.spindle.N.override.count\-enable\fR bit in \fR (default: \fBTRUE\fR)
When TRUE, modify spindle override when counts changes.
.TP
.B halui.spindle.N.override.counts\fR s32 in \fR
counts X scale = spindle override percentage
.TP
.B halui.spindle.N.override.decrease\fR bit in \fR
pin for decreasing the SO (\-=scale)
.TP
.B halui.spindle.N.override.direct\-value\fR bit in \fR
pin to enable direct spindle override value input
.TP
.B halui.spindle.N.override.increase\fR bit in \fR
pin for increasing the SO (+=scale)
.TP
.B halui.spindle.N.override.reset\fR bit in \fR
pin for resetting the scale SO value (scale=1.0)
.TP
.B halui.spindle.N.override.scale\fR float in \fR
pin for setting the scale of counts for SO
.TP
.B halui.spindle.N.override.value\fR float out \fR
current FO value
.SS Program
.TP
.B halui.program.block\-delete.is\-on\fR bit out \fR
status pin telling that block delete is on
.TP
.B halui.program.block\-delete.off\fR bit in \fR
pin for requesting that block delete is off
.TP
.B halui.program.block\-delete.on\fR bit in \fR
pin for requesting that block delete is on
.TP
.B halui.program.is\-idle\fR bit out \fR
status pin telling that no program is running
.TP
.B halui.program.is\-paused\fR bit out \fR
status pin telling that a program is paused
.TP
.B halui.program.is\-running\fR bit out \fR
status pin telling that a program is running
.TP
.B halui.program.optional\-stop.is\-on\fR bit out \fR
status pin telling that the optional stop is on
.TP
.B halui.program.optional\-stop.off\fR bit in \fR
pin requesting that the optional stop is off
.TP
.B halui.program.optional\-stop.on\fR bit in \fR
pin requesting that the optional stop is on
.TP
.B halui.program.pause\fR bit in \fR
pin for pausing a program
.TP
.B halui.program.resume\fR bit in \fR
pin for resuming a program
.TP
.B halui.program.run\fR bit in \fR
pin for running a program
.TP
.B halui.program.step\fR bit in \fR
pin for stepping in a program
.TP
.B halui.program.stop\fR bit in \fR
pin for stopping a program
(note: this pin does the same thing as halui.abort)
.SS Mode
.TP
.B halui.mode.auto\fR bit in \fR
pin for requesting auto mode
.TP
.B halui.mode.is\-auto\fR bit out \fR
pin for auto mode is on
.TP
.B halui.mode.is\-joint\fR bit out \fR
pin showing joint by joint jog mode is on
.TP
.B halui.mode.is\-manual\fR bit out \fR
pin for manual mode is on
.TP
.B halui.mode.is\-mdi\fR bit out \fR
pin for MDI mode is on
.TP
.B halui.mode.is\-teleop\fR bit out \fR
pin showing coordinated jog mode is on
.TP
.B halui.mode.joint\fR bit in \fR
pin for requesting joint by joint jog mode
.TP
.B halui.mode.manual\fR bit in \fR
pin for requesting manual mode
.TP
.B halui.mode.mdi\fR bit in \fR
pin for requesting MDI mode
.TP
.B halui.mode.teleop\fR bit in \fR
pin for requesting coordinated jog mode
.SS MDI \fR(optional)
.TP
.B halui.mdi\-command\-XX\fR bit in
\fBhalui\fR looks for INI variables named [HALUI]MDI_COMMAND, and
exports a pin for each command it finds. When the pin is driven TRUE,
\fBhalui\fR 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.
.SS Mist coolant
.TP
.B halui.mist.is\-on\fR bit out \fR
pin for mist is on
.TP
.B halui.mist.off\fR bit in \fR
pin for stopping mist
.TP
.B halui.mist.on\fR bit in \fR
pin for starting mist
.SS Max\-velocity
.TP
.B halui.max\-velocity.count\-enable\fR bit in \fR (default: \fBTRUE\fR)
When True, modify max velocity when halui.max\-velocity.counts changes.
.TP
.B halui.max\-velocity.counts\fR s32 in \fR
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.
.TP
.B halui.max\-velocity.direct\-value\fR bit in \fR
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).
.TP
.B halui.max\-velocity.increase\fR bit in \fR
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.)
.TP
.B halui.max\-velocity.decrease\fR bit in \fR
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.)
.TP
.B halui.max\-velocity.scale\fR float in \fR
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.
.TP
.B halui.max\-velocity.value\fR float out \fR
Current value for maximum velocity, in machine\-units per second.
.SS Machine
.TP
.B halui.machine.units\-per\-mm\fR float out \fR
pin for machine units\-per\-mm (inch:1/25.4, mm:1)
according to INI file setting: [TRAJ]LINEAR_UNITS
.TP
.B halui.machine.is\-on\fR bit out \fR
pin for machine is On/Off
.TP
.B halui.machine.off\fR bit in \fR
pin for setting machine Off
.TP
.B halui.machine.on\fR bit in \fR
pin for setting machine On
.SS Lube
.TP
.B halui.lube.is\-on\fR bit out \fR
pin for lube is on
.TP
.B halui.lube.off\fR bit in \fR
pin for stopping lube
.TP
.B halui.lube.on\fR bit in \fR
pin for starting lube
.SS Joint \fR(\fBN\fR = joint number (0 ... num_joints\-1))
.TP
.B halui.joint.N.select\fR bit in \fR
pin for selecting joint \fIN\fR
.TP
.B halui.joint.N.is\-selected\fR bit out \fR
status pin that joint \fIN\fR is selected
.TP
.B halui.joint.N.has\-fault\fR bit out \fR
status pin telling that joint \fIN\fR has a fault
.TP
.B halui.joint.N.home\fR bit in \fR
pin for homing joint \fIN\fR
.TP
.B halui.joint.N.is\-homed\fR bit out \fR
status pin telling that joint \fIN\fR is homed
.TP
.B halui.joint.N.on\-hard\-max\-limit\fR bit out \fR
status pin telling that joint \fIN\fR is on the positive hardware limit
.TP
.B halui.joint.N.on\-hard\-min\-limit\fR bit out \fR
status pin telling that joint \fIN\fR is on the negative hardware limit
.TP
.B halui.joint.N.on\-soft\-max\-limit\fR bit out \fR
status pin telling that joint \fIN\fR is on the positive software limit
.TP
.B halui.joint.N.on\-soft\-min\-limit\fR bit out \fR
status pin telling that joint \fIN\fR is on the negative software limit
.TP
.B halui.joint.N.override\-limits\fR bit out \fR
status pin telling that joint \fIN\fR's limits are temporarily overridden
.TP
.B halui.joint.N.unhome\fR bit in \fR
pin for unhoming joint \fIN\fR
.TP
.B halui.joint.selected\fR u32 out \fR
selected joint number (0 ... num_joints\-1)
.TP
.B halui.joint.selected.has\-fault\fR bit out \fR
status pin selected joint is faulted
.TP
.B halui.joint.selected.home\fR bit in \fR
pin for homing the selected joint
.TP
.B halui.joint.selected.is\-homed\fR bit out \fR
status pin telling that the selected joint is homed
.TP
.B halui.joint.selected.on\-hard\-max\-limit\fR bit out \fR
status pin telling that the selected joint is on the positive hardware limit
.TP
.B halui.joint.selected.on\-hard\-min\-limit\fR bit out \fR
status pin telling that the selected joint is on the negative hardware limit
.TP
.B halui.joint.selected.on\-soft\-max\-limit\fR bit out \fR
status pin telling that the selected joint is on the positive software limit
.TP
.B halui.joint.selected.on\-soft\-min\-limit\fR bit out \fR
status pin telling that the selected joint is on the negative software limit
.TP
.B halui.joint.selected.override\-limits\fR bit out \fR
status pin telling that the selected joint's limits are temporarily overridden
.TP
.B halui.joint.selected.unhome\fR bit in \fR
pin for unhoming the selected joint
.SS Joint jogging \fR(\fBN\fR = joint number (0 ... num_joints\-1))
.B halui.joint.jog\-deadband\fR float in \fR
pin for setting jog analog deadband (jog analog inputs smaller/slower than
this (in absolute value) are ignored)
.TP
.B halui.joint.jog\-speed\fR float in \fR
pin for setting jog speed for plus/minus jogging.
.TP
.B halui.joint.N.analog\fR float in \fR
pin for jogging the joint \fIN\fR using an float value (e.g. joystick). The value, typically
set between 0.0 and \(+-1.0, is used as a jog\-speed multiplier.
.TP
.B halui.joint.N.increment\fR float in \fR
pin for setting the jog increment for joint \fIN\fR when using increment\-plus/minus
.TP
.B halui.joint.N.increment\-minus\fR bit in \fR
a rising edge will will make joint \fIN\fR jog in the negative direction by the increment amount
.TP
.B halui.joint.N.increment\-plus\fR bit in \fR
a rising edge will will make joint \fIN\fR jog in the positive direction by the increment amount
.TP
.B halui.joint.N.minus\fR bit in \fR
pin for jogging joint \fIN\fR in negative direction at the halui.joint.jog\-speed velocity
.TP
.B halui.joint.N.plus\fR bit in \fR
pin for jogging joint \fIN\fR in positive direction at the halui.joint.jog\-speed velocity
.TP
.B halui.joint.selected.increment\fR float in \fR
pin for setting the jog increment for the selected joint when using increment\-plus/minus
.TP
.B halui.joint.selected.increment\-minus\fR bit in \fR
a rising edge will will make the selected joint jog in the negative direction by the increment amount
.TP
.B halui.joint.selected.increment\-plus\fR bit in \fR
a rising edge will will make the selected joint jog in the positive direction by the increment amount
.TP
.B halui.joint.selected.minus\fR bit in \fR
pin for jogging the selected joint in negative direction at the halui.joint.jog\-speed velocity
.TP
.B halui.joint.selected.plus\fR
pin for jogging the selected joint bit in \fRin positive direction at the halui.joint.jog\-speed velocity
.SS Axis \fB(\fBL\fR = axis letter (xyzabcuvw)
.TP
.B halui.axis.L.select\fR bit in \fR
pin for selecting axis by letter
.TP
.B halui.axis.L.is\-selected\fR bit out \fR
status pin that axis \fIL\fR is selected
.TP
.B halui.axis.L.pos\-commanded\fR float out \fR float out \fR
Commanded axis position in machine coordinates
.TP
.B halui.axis.L.pos\-feedback\fR float out \fR float out \fR
Feedback axis position in machine coordinates
.TP
.B halui.axis.L.pos\-relative\fR float out \fR float out \fR
Commanded axis position in relative coordinates
.SS Axis Jogging \fR(\fBL\fR = axis letter (xyzabcuvw)
.TP
.B halui.axis.jog\-deadband\fR float in \fR
pin for setting jog analog deadband (jog analog inputs smaller/slower than
this (in absolute value) are ignored)
.TP
.B halui.axis.jog\-speed\fR float in \fR
pin for setting jog speed for plus/minus jogging.
.TP
.B halui.axis.L.analog\fR float in \fR
pin for jogging the axis L using an float value (e.g. joystick). The value, typically
set between 0.0 and \(+-1.0, is used as a jog\-speed multiplier.
.TP
.B halui.axis.L.increment\fR float in \fR
pin for setting the jog increment for axis L when using increment\-plus/minus
.TP
.B halui.axis.L.increment\-minus\fR bit in \fR
a rising edge will will make axis \fIL\fR jog in the negative direction by the increment amount
.TP
.B halui.axis.L.increment\-plus\fR bit in \fR
a rising edge will will make axis \fIL\fR jog in the positive direction by the increment amount
.TP
.B halui.axis.L.minus\fR bit in \fR
pin for jogging axis \fIL\fR in negative direction at the halui.axis.jog\-speed velocity
.TP
.B halui.axis.L.plus\fR bit in \fR
pin for jogging axis \fIL\fR in positive direction at the halui.axis.jog\-speed velocity
.TP
.B halui.axis.selected\fR u32 out \fR
selected axis (by index: 0:x 1:y 2:z 3:a 4:b 5:cr 6:u 7:v 8:w)
.TP
.B halui.axis.selected.increment\fR float in \fR
pin for setting the jog increment for the selected axis when using increment\-plus/minus
.TP
.B halui.axis.selected.increment\-minus\fR bit in \fR
a rising edge will will make the selected axis jog in the negative direction by the increment amount
.TP
.B halui.axis.selected.increment\-plus\fR bit in \fR
a rising edge will will make the selected axis jog in the positive direction by the increment amount
.TP
.B halui.axis.selected.minus\fR bit in \fR
pin for jogging the selected axis in negative direction at the halui.axis.jog\-speed velocity
.TP
.B halui.axis.selected.plus\fR
pin for jogging the selected axis bit in \fRin positive direction at the halui.axis.jog\-speed velocity
.SS Flood coolant
.TP
.B halui.flood.is\-on\fR bit out \fR
pin for flood is on
.TP
.B halui.flood.off\fR bit in \fR
pin for stopping flood
.TP
.B halui.flood.on\fR bit in \fR
pin for starting flood
.SS Feed Override
.TP
.B halui.feed\-override.count\-enable\fR bit in \fR (default: \fBTRUE\fR)
When TRUE, modify feed override when counts changes.
.TP
.B halui.feed\-override.counts\fR s32 in \fR
counts X scale = feed override percentage
.TP
.B halui.feed\-override.decrease\fR bit in \fR
pin for decreasing the FO (\-=scale)
.TP
.B halui.feed\-override.direct\-value\fR bit in \fR
pin to enable direct value feed override input
.TP
.B halui.feed\-override.increase\fR bit in \fR
pin for increasing the FO (+=scale)
.TP
.B halui.feed\-override.reset\fR bit in \fR
pin for resetting the FO (scale=1.0)
.TP
.B halui.feed\-override.scale\fR float in \fR
pin for setting the scale on changing the FO
.TP
.B halui.feed\-override.value\fR float out \fR
current feed override value
.SS Rapid Override
.TP
.B halui.rapid\-override.count\-enable\fR bit in \fR (default: \fBTRUE\fR)
When TRUE, modify rapid override when counts changes.
.TP
.B halui.rapid\-override.counts\fR s32 in \fR
counts X scale = rapid override percentage
.TP
.B halui.rapid\-override.decrease\fR bit in \fR
pin for decreasing the rapid override (\-=scale)
.TP
.B halui.rapid\-override.direct\-value\fR bit in \fR
pin to enable direct value rapid override input
.TP
.B halui.rapid\-override.increase\fR bit in \fR
pin for increasing the rapid override (+=scale)
.TP
.B halui.rapid\-override.reset\fR bit in \fR
pin for resetting the rapid override (scale=1.0)
.TP
.B halui.rapid\-override.scale\fR float in \fR
pin for setting the scale on changing the rapid override
.TP
.B halui.rapid\-override.value\fR float out \fR
current rapid override value
.SS E-stop
.TP
.B halui.estop.activate\fR bit in \fR
pin for setting E-stop (LinuxCNC internal) On
.TP
.B halui.estop.is\-activated\fR bit out \fR
pin for displaying E-stop state (LinuxCNC internal) On/Off
.TP
.B halui.estop.reset\fR bit in \fR
pin for resetting E-stop (LinuxCNC internal) Off
.SS Homing
.TP
.B halui.home\-all\fR bit in \fR
pin for requesting home-all
(only available when a valid homing sequence is specified)
.SH "SEE ALSO"
axis(1), iocontrol(1)
.SH BUGS
None known at this time.
.SH AUTHOR
Written by Alex Joni, as part of the LinuxCNC project. Updated by John
Thornton
.SH REPORTING BUGS
Report bugs at https://github.com/LinuxCNC/linuxcnc/issues
.SH COPYRIGHT
Copyright \(co 2006 Alex Joni.
.br
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|