ABS_S32(9)

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

✨ ABS_S32 β€” the lil HAL component that gives you the absolute value and the vibe check (sign) of your signal πŸ’…

okay bestie, so abs_s32 is a HAL component, and honestly? it's giving "tiny but iconic." πŸŽ€ It takes one number in, and it tells you the absolute value plus a whole lil squad of sign flags on the way out. No cap, it does exactly what it says on the tin.

πŸ¦‹ SYNOPSIS

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

Yeah so that's how you load it. You can either ask for count=N copies, or name your own with names=name1[,name2...] β€” pick your fighter. ✨

πŸ”₯ FUNCTIONS

  • abs-s32.N β€” this is the function, and .N is just the instance number, iykyk 🌸

πŸ’– PINS

These are the pins, and this is where it gets good. 🫢

  • abs-s32.N.in s32 in β€” the input value. literally just hand it a number, it's not gonna judge you πŸ™ˆ
  • abs-s32.N.out s32 out β€” the output value, and it is always non-negative. always. no exceptions, that's the whole point bestie πŸ’…
  • abs-s32.N.sign bit out β€” the sign of the input. false means positive, true means negative. that's it, that's the pin ⭐
  • abs-s32.N.is-positive bit out β€” TRUE if the input is positive, FALSE if the input is 0 or negative. zero is NOT positive, remember that πŸ“Œ
  • abs-s32.N.is-negative bit out β€” TRUE if the input is negative, FALSE if the input is 0 or positive. same energy, opposite direction 🌈
ok real talk for a sec β€” notice how 0 fails both "positive" and "negative" checks? that's not a bug, that's just how it's built, and both is-positive and is-negative are FALSE when the input is 0. don't come for me, I'm just the messenger 🧚

πŸ‘‘ AUTHOR

Sebastian Kuzminsky β€” absolute legend, we stan. πŸ’œ

πŸ“ LICENSE

GPL β€” free as in freedom, slay. ✨


and that's the whole page, bestie, we ate and left no crumbs πŸŽ€ LinuxCNC Documentation, dated 2026-03-17 β€” that's the version of this doc you're looking at right now, periodt. πŸ’–

πŸ“¦ where this page comes from