UPDOWN(9)

πŸ“¦
version 2.9.4 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– 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.countup bit in β€” Increment count when this pin goes from 0 to 1 ⬆️
  • updown.N.countdown bit in β€” Decrement count when this pin goes from 0 to 1 ⬇️
  • updown.N.reset bit in β€” Reset count when this pin goes from 0 to 1 πŸ”„
  • updown.N.count s32 out β€” The current count πŸ‘‘ (this is the number, the whole point, she's the star)

πŸŽ€ PARAMETERS πŸŽ€

  • updown.N.clamp bit 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.wrap bit 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.max s32 rw (default: 0x7FFFFFFF) β€” If clamp or wrap is set, count will never exceed this number 🚫
  • updown.N.min s32 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