ABS_S32(9)
β¨ 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.Nis just the instance number, iykyk πΈ
π PINS
These are the pins, and this is where it gets good. π«Ά
abs-s32.N.ins32inβ the input value. literally just hand it a number, it's not gonna judge you πabs-s32.N.outs32outβ the output value, and it is always non-negative. always. no exceptions, that's the whole point bestie πabs-s32.N.signbitoutβ the sign of the input.falsemeans positive,truemeans negative. that's it, that's the pin βabs-s32.N.is-positivebitoutβTRUEif the input is positive,FALSEif the input is0or negative. zero is NOT positive, remember that πabs-s32.N.is-negativebitoutβTRUEif the input is negative,FALSEif the input is0or positive. same energy, opposite direction π
ok real talk for a sec β notice how0fails both "positive" and "negative" checks? that's not a bug, that's just how it's built, and bothis-positiveandis-negativeareFALSEwhen the input is0. 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
- 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