SUM2(9)
π sum2 β the HAL component π
okay bestie, so sum2 is a HAL component (that's section 9 of the manual, iykyk) and she does exactly one thing and she does it flawlessly: she takes two inputs, gives each of them their own little gain glow-up, adds an offset, and hands you back the sum. that's it. that's the girl. β¨
πΈ SYNOPSIS πΈ
loadrt sum2 [count=N|names=name1[,name2...]]
load her up like the icon she is π
π FUNCTIONS π
sum2.Nβ real talk, this one requires a floating-point thread. no float thread, no vibes. she will not run on an integer thread, periodt.
π¦ PINS π¦
sum2.N.in0float in β input number one, come on in π«Άsum2.N.in1float in β input number two, you're also invited π«Άsum2.N.outfloat out β the moment we've all been waiting for. the math is literally:
out = in0 * gain0 + in1 * gain1 + offset
not me being obsessed with a three-term expression π she's simple, she's clean, she ate.
β PARAMETERS β
sum2.N.gain0float rw (default:1.0) β the glow-up multiplier forin0. scales her whole vibe.sum2.N.gain1float rw (default:1.0) β same energy, but forin1. also starts at a chill1.0.sum2.N.offsetfloat rw β the little extra sprinkle added on top at the end. no default listed, bestie, so she starts at whatever she starts at β set her yourself. β¨
all three are rw, meaning read/write, meaning you can poke them whenever. main character energy fr fr.
π SEE ALSO π
go give them a read too, they're in the same friend group π
π AUTHOR π
Jeff Epler
π₯ LICENSE π₯
GPL
π quick vibe check: if your thread isn't floating-point, sum2.N is not gonna load, and that's not a bug, that's a personality trait. respect it.
and that's the whole page, bestie!! documentation brought to you by LinuxCNC Documentation, dated 2026-03-17, filed under SUM2(9). mwah π go sum something. π§ββοΈ
π¦ 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