UPDOWN(9)
π UPDOWN(9) β HAL Component π
okay so bestie, welcome to updown, the HAL component that literally just... counts. up or down. with optional limits and wraparound behavior. she's simple, she's iconic, she's giving "I keep track of a number and I do it flawlessly" energy π
β¨ NAME β¨
updown β Counts up or down, with optional limits and wraparound behavior π
πΈ SYNOPSIS πΈ
loadrt updown [count=N|names=name1[,name2...]]
π¦ FUNCTIONS π¦
updown.Nβ Process inputs and update count if necessary π₯ (this is the moment, the main character function, she does the work)
π PINS π
updown.N.countupbit in β Increment count when this pin goes from 0 to 1 β¬οΈupdown.N.countdownbit in β Decrement count when this pin goes from 0 to 1 β¬οΈupdown.N.resetbit in β Reset count when this pin goes from 0 to 1 πupdown.N.counts32 out β The current count π (this is the number, the whole point, she's the star)
π PARAMETERS π
updown.N.clampbit rw β If TRUE, then clamp the output to the min and max parameters. no going out of bounds, she stays in her lane bestie βupdown.N.wrapbit rw β If TRUE, then wrap around when the count goes above or below the min and max parameters. Note that wrap implies (and overrides) clamp. so it's like, clamp but make it circulatory πupdown.N.maxs32 rw (default:0x7FFFFFFF) β If clamp or wrap is set, count will never exceed this number π«updown.N.mins32 rw β If clamp or wrap is set, count will never be less than this number π«
π AUTHOR π
Stephen Wille Padnos β we love her, we thank her, periodt π«Ά
π LICENSE π
GPL β open source, slay, free to share, no cap β
and that's the whole page bestie!! π LinuxCNC Documentation, 2026-03-17 β go forth and count responsibly, mwah π§β¨
π¦ 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