MOVEOFF(9)
β¨ MOVEOFF(9) β¨
okay bestie, gather round π this is a HAL Component page from the LinuxCNC manual section 9, and it's literally called moveoff β the component for HAL-only offsets. no cap, it's giving "let's move the joint but not tell LinuxCNC" energy and we're gonna get into all of it π
π NAME π
moveoff β the component for HAL-only offsets π¦
πΈ SYNOPSIS πΈ
loadrt moveoff [count=N|names=name1[,name2...]] [personality=P1,P2,...]
π₯ DESCRIPTION π₯
so the moveoff component is what you use to offset joint positions through custom HAL connections. if you want that offset-while-program-is-paused lifestyle, it's supported β you just gotta wire up the input pins appropriately. nine joints are supported, periodt.
The axis offset pin values (offset-in-M) get continuously applied to the output pins (offset-current-M, pos-plusoffset-M, fb-minusoffset-M) β and they respect limits on value, velocity, and acceleration while doing it β but only when both enabling input pins (apply-offsets and move-enable) are TRUE. Those two enabling inputs are anded internally, iykyk. If apply-offsets gets deasserted while offsets are applied, a warning pin gets set and a message is issued π. That warning pin stays TRUE until the offsets are removed or the apply-offsets pin is set.
Typically, move-enable is connected to external controls and apply-offsets is connected to halui.program.is-paused (for offsets only while paused) or just set to TRUE (for continuously applied offsets). both are valid, both are iconic π
Applied offsets are automatically returned to zero (respecting limits) when either of the enabling inputs is deactivated. The zero value tolerance is specified by the epsilon input pin value β¨
Waypoints are recorded when the moveoff component is enabled. They're managed with the waypoint-sample-secs and waypoint-threshold pins. When backtrack-enable is TRUE, the auto-return path follows the recorded waypoints π§ When the memory available for waypoints is exhausted, offsets are frozen and the waypoint-limit pin is asserted. This restriction applies regardless of the state of the backtrack-enable pin. An enabling pin must be deasserted to allow a return to the original (non-offset position).
Backtracking through waypoints makes movement rates slower, because the moves are point-to-point and respect velocity and acceleration settings. The velocity and acceleration limit pins can be managed dynamically to control offsets at all times π₯
When backtrack-enable is FALSE, the auto-return move is NOT coordinated β each axis returns to zero at its own rate π. If you want a controlled path in that condition, each axis should be manually returned to zero before deasserting an enabling pin.
The waypoint-sample-secs, waypoint-threshold, and epsilon pins are evaluated only when the component is idle.
The offsets-applied output pin exists to tell a GUI the current state so program resumption can be managed π. If the offset(s) are non-zero when the apply-offsets pin is deasserted (for example when resuming a program when offsetting during a pause), offsets are returned to zero (respecting limits) and an Error message is issued.
Caution: if offsets are enabled and applied and the machine is turned off for any reason, any external HAL logic that manages the enabling pins and the offset-in-M inputs is responsible for their state when the machine is subsequently turned on again. π
This HAL-only means of offsetting is typically not known to LinuxCNC nor available in GUI preview displays. No protection is provided for offset moves that exceed soft limits managed by LinuxCNC. Since soft limits are not honored, an offset move may encounter hard limits (or CRASH if there are no limit switches) π. Use of the offset-min-M and offset-max-M inputs to limit travel is recommended. Triggering a hard limit will turn off the machine β see Caution above βοΈ
The offset-in-M values may be set with inifile settings, controlled by a GUI, or managed by other HAL components and connections. Fixed values may be appropriate in simple cases where the direction and amount of offset is well-defined but a control method is required to deactivate an enabling pin in order to return offsets to zero. GUIs may provide means for users to set, increment, decrement, and accumulate offset values for each axis and may set offset-in-M values to zero before deasserting an enabling pin π
The default values for accel, vel, min, max, epsilon, waypoint-sample-secs, and waypoint-threshold may not be suitable for any particular application. This HAL component is unaware of limits enforced elsewhere by LinuxCNC. Users should test usage in a simulator application and understand all hazards before use on hardware β οΈ fr fr.
The module personality item sets the number of joints supported (default==3, maximum is 9).
Use of the names= option for naming is required for compatibility with the gui provided as scripts/moveoff_gui:
loadrt moveoff names=mv personality=number_of_joints
β FUNCTIONS β
moveoff.N.read-inputs(requires a floating-point thread) β read all inputs πmoveoff.N.write-outputs(requires a floating-point thread) β write computed offset outputs (offset-current-M,pos-plusoffset-M,fb-minusoffset-M). All other outputs are updated byread-inputs(). β¨
π PINS π
moveoff.N.power-onbit in β connect tomotion.motion-enabledmoveoff.N.move-enablebit in β enable offsets (enabling requiresapply-offsetTRUEalso)moveoff.N.apply-offsetsbit in β enable offsets (enabling requiresmove-enableTRUEalso)moveoff.N.backtrack-enablebit in (default:1) β enable backtrack on auto-returnmoveoff.N.epsilonfloat in (default:0.0005) β when enabling pins are deactivated, return to un-offsetted position within epsilon units. Warning: values that are too small in value may cause overshoot. A minimum value of0.0001is silently enforced.moveoff.N.waypoint-thresholdfloat in (default:0.02) β minimum distance (in a single axis) for a new waypointmoveoff.N.waypoint-sample-secsfloat in (default:0.02) β minimum sample interval (in seconds) for a new waypointmoveoff.N.warningbit out β setTRUEifapply-offsetsis deasserted whileoffset-appliedisTRUE.moveoff.N.offset-appliedbit out βTRUEif one or more offsets are applied.moveoff.N.waypoint-limitbit out (default:0) β indicates waypoint limit reached (motion ceases), an enabling pin must be deasserted to initiate return to original position.moveoff.N.waypoint-cts32 out β waypoint count (for debugging) πmoveoff.N.waypoint-percent-useds32 out β percent of available waypoints usedmoveoff.N.offset-in-Mfloat in (M=0..personality) β joint offset input valuemoveoff.N.pos-Mfloat in (M=0..personality) β joint position (typ:axis.0.motor-pos-cmd)moveoff.N.fb-Mfloat in (M=0..personality) β joint feedback (typ from encoder and input to pid controller (pid.feedback))moveoff.N.offset-current-Mfloat out (M=0..personality) β joint offset current valuemoveoff.N.pos-plusoffset-Mfloat out (M=0..personality) β computed joint position plus offset (typically connect to pid command input)moveoff.N.fb-minusoffset-Mfloat out (M=0..personality) β computed joint feedback minus offset (typically connected toaxis.0.motor-pos-fb)moveoff.N.offset-vel-Mfloat in (M=0..personality) (default:10) β joint offset velocity limitmoveoff.N.offset-accel-Mfloat in (M=0..personality) (default:100) β joint offset acceleration limitmoveoff.N.offset-min-Mfloat in (M=0..personality) (default:-1e20) β minimum limit for applied joint offset (typ negative)moveoff.N.offset-max-Mfloat in (M=0..personality) (default:1e20) β maximum limit for applied offset (typ positive)moveoff.N.dbg-waypoint-limit-testbit in β debug input to test with limited number of waypointsmoveoff.N.dbg-states32 out β debug output for current state of state machine
π¦ EXAMPLES π¦
Example simulator configs that demonstrate the moveoff component and a simple gui (scripts/moveoff_gui) are located in configs/sim/axis/moveoff. The AXIS GUI is used for the demonstrations and the configs can be adapted for other GUIs like Touchy and Gscreen π An example with the Touchy GUI is provided in configs/sim/touchy/ngcgui/.
π SEE ALSO π
π AUTHOR π
Dewey Garrett and Andy Pugh π«Ά
πΈ LICENSE πΈ
GPL
and that's the whole page bestie, no notes π
it's from LinuxCNC Documentation, dated 2026-03-17, and yeah β it's MOVEOFF(9), slay πβ¨
π¦ where this page comes from
- 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
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms