TOF(9)
π TOF(9) β the HAL Component glow-up π
okay bestie, pull up a chair, we're talking about tof β the IEC TOF timer, aka the lil guy whose whole job is delaying the falling edge on a signal. that's it. that's the gig. and it does it flawlessly, no cap. β¨
tl;dr: it's an IEC-style off-delay timer (TOF = Timer Off Delay, iykyk) living in your HAL setup. signal goes low? tof is like "not yet, babes" and holds the output up for however long you told it to. iconic behavior.
πΈ SYNOPSIS πΈ
loadrt tof [count=N|names=name1[,name2...]]
load it up with a count of instances, or hand-pick your faves with names. your call, main character. π
π FUNCTIONS π
tof.Nβ this is the one, bestie. it updates the timer. heads up: it requires a floating-point thread, so don't try to sneak it into an integer thread, she will Not be having it. π
β¨ PINS β¨
tof.N.in(bit, in) β the input signal, aka where the drama enters the building πͺtof.N.q(bit, out) β the output signal, the moment we've all been waiting for πtof.N.et(float, out) β elapsed time since the falling edge, in seconds β±οΈ literally just counting how long it's been
π PARAMETERS π
tof.N.pt(float, rw) β the delay time, in seconds. you get to write this one, so set it to whatever vibe you need π«Ά
π¦ AUTHOR π¦
Chad Woitas β the legend who made this happen. we love to see it. π
π LICENSE π
GPL β free and open, as it should be. slay. β
so yeah, that's tof. delay your falling edges, keep your threads floating, and go be great, bestie. π§π
this lil doc came from the LinuxCNC Documentation, dated 2026-03-17, filed under TOF(9). mwah, no notes. π β¨
π¦ 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