SUM2(9)

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

πŸ’– 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.in0 float in β€” input number one, come on in 🫢
  • sum2.N.in1 float in β€” input number two, you're also invited 🫢
  • sum2.N.out float 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.gain0 float rw (default: 1.0) β€” the glow-up multiplier for in0. scales her whole vibe.
  • sum2.N.gain1 float rw (default: 1.0) β€” same energy, but for in1. also starts at a chill 1.0.
  • sum2.N.offset float 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