WCOMP(9)

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

✨ WCOMP(9) β€” the window comparator, bestie edition ✨

okay so this is wcomp, a Window comparator from the HAL Component girlies πŸ’– it lives in section 9 of the manual and it is, no cap, one of the most useful little gremlins in your HAL toolbox.


🌸 NAME 🌸

wcomp β€” Window comparator πŸͺŸβœ¨

πŸŽ€ SYNOPSIS πŸŽ€

loadrt wcomp [count=N|names=name1[,name2...]]

πŸ¦‹ FUNCTIONS πŸ¦‹

  • wcomp.N β€” bestie this one requires a floating-point thread. Like, it will not run anywhere else, periodt. πŸ’…

πŸ’– PINS πŸ’–

every instance you load gets its own little set of pins, all named wcomp.N. followed by one of these:

  • wcomp.N.in β€” float in β€” the value being compared πŸ‘€ the main character, fr.
  • wcomp.N.min β€” float in β€” the low boundary for the comparison, aka the bottom of the window 🫢
  • wcomp.N.max β€” float in β€” the high boundary for the comparison, aka the top of the window 🌈
  • wcomp.N.out β€” bit out β€” True if in is strictly between min and max ✨ (strictly! like, actually strictly, no freebies at the edges)
  • wcomp.N.under β€” bit out β€” True if in is less than or equal to min πŸ“
  • wcomp.N.over β€” bit out β€” True if in is greater than or equal to max πŸ”₯

so like, in falls into exactly one vibe: under, out, or over. pick a lane babe 😭

πŸ’€ NOTES πŸ’€

if max <= min then the behavior is undefined. not "kinda weird", not "probably fine" β€” undefined. don't do it. this is the "we don't go there" of this manpage πŸ’…

πŸ‘‘ AUTHOR πŸ‘‘

Jeff Epler πŸ’œ the legend himself.

🌟 LICENSE 🌟

GPL β€” open source, iconic, as it should be.


and that's the whole thing bestie!! πŸŽ€ this page came to you courtesy of LinuxCNC Documentation, dated 2026-03-17, and it's filed under WCOMP(9) in the HAL Component section. slay, go compare some windows πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from