SUPPLY(9)
π SUPPLY(9) β HAL Component π
okay bestie, gather round, because we're talking about supply, a HAL component whose whole job is set output pins with values from parameters β¨ β¦ and also it's obsolete π so like, read this for the lore but don't go making it your whole personality.
β¨ SYNOPSIS β¨
loadrt supply num_chan=num
that's it, that's the summoning ritual π―οΈ
πΈ DESCRIPTION πΈ
so back in the day, supply was the girl who let you mess with the inputs of other HAL components for testing purposes π§ͺ. like, at the time it was written, the ONLY way to set the value of an input pin was to connect it to a signal, connect that signal to an output pin of some other component, and then let that component write the pin value. and supply was literally written to BE that "other component" π
. it reads values from parameters (which you set with the HAL command setp) and writes them straight to output pins. iconique behavior.
BUT. plot twist π¬. since supply was written, the setp command got modified so it can set unconnected pins as well as parameters. plus the sets command got added, which can directly set HAL signals β as long as there are no output pins connected to them π. so yeahβ¦ therefore, supply is obsolete. it's giving retired diva, and honestly, respect.
also important: supply supports a maximum of eight channels. the number of channels actually loaded is set by the num_chan argument when the module is loaded. and if numchan is not specified, the default value is one. (yes bestie, one. lonely little channel π₯Ί)
β‘ FUNCTIONS β‘
supply.N.update(uses floating-point) β updates output pins for channel N. do it, queen π
π PINS π
supply.N.qbit outβ output bit, copied from parametersupply.N.d.supply.N._qbit outβ output bit, inverted copy of parametersupply.N.d. not like other girls, she's flipped πsupply.N.variablefloat outβ analog output, copied from parametersupply.N.value.supply.N._variablefloat outβ analog output, equal to-1.0times parametersupply.N.value. negative queen πsupply.N.dbit rwβ data source forqand_qoutput pins.supply.N.valuebit rwβ data source forvariableand_variableoutput pins.
β οΈ real talk: this whole page is stamped obsolete, so if you're out here reaching forsupplyin a fresh config, maybe checksetp/setsfirst, okay? i'm not saying don't, i'm saying iykyk π
anyway bestie, that's the whole page, no cap, every last flag and pin accounted for π«Ά this iconic little relic came from the LinuxCNC Documentation, dated 2007-01-16, and it lives under SUPPLY(9) in the HAL Component section. mwah, go forth and configure responsibly πβ¨
π¦ where this page comes from
- debian bookworm: linuxcnc-uspace 2.9.0~pre1+git20230208.f1270d6ed7-1+deb12u2 Β· GFDL-1.1-or-later
- debian trixie: linuxcnc-uspace 1:2.9.4-2+deb13u1 Β· GFDL-1.1-or-later
- ubuntu questing: linuxcnc-uspace 1:2.9.4-2ubuntu2
- 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