TOGGLE2NIST(9)

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

✨ TOGGLE2NIST ✨

okay bestie, so this is a HAL Component page from section 9, and it's literally called toggle2nist πŸ’…


πŸŽ€ NAME πŸŽ€

toggle2nist β€” turning a toggle button into nist logic, and yes that's the whole vibe πŸ¦‹


🌸 SYNOPSIS 🌸

loadrt toggle2nist [count=N|names=name1[,name2...]]

πŸ’– DESCRIPTION πŸ’–

So basically, Toggle2nist is what you call when you've got a momentary push button and you're trying to drive a device that β€” annoyingly β€” has its on and off inputs living separately AND an is-on output just chillin' over there doing its own thing. No cap, she's a little translator 🧚

Here's the tea:

  • On a rising edge on pin in when is-on is low: it sets on until is-on becomes high. πŸ‘‘
  • On a rising edge on pin in when is-on is high: it sets off until is-on becomes low. πŸ’…

And here's the picture, because a diagram ate and left no crumbs:

       ┐     β”Œβ”€β”€β”€β”€β”€xxxxxxxxxxxx┐           β”Œβ”€β”€β”€β”€β”€xxxxxxxxxxxx┐
in   : β””β”€β”€β”€β”€β”€β”˜     xxxxxxxxxxxxβ””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     xxxxxxxxxxxx└─────
       ┐     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
on   : β””β”€β”€β”€β”€β”€β”˜           └─────────────────────────────────────────
       ┐                                   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
off  : β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜           └───────────
       ┐                 β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
is-on: β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                             └───────────

⭐ FUNCTIONS ⭐

toggle2nist.N


🌈 PINS 🌈

  • toggle2nist.N.in bit in β€” the input, bestie 🫢
  • toggle2nist.N.is-on bit in β€” the is-on input πŸ’œ
  • toggle2nist.N.on bit out β€” the on output ✨
  • toggle2nist.N.off bit out β€” the off output πŸ”₯

πŸ‘‘ AUTHOR πŸ‘‘

Anders Wallin


πŸ’€ LICENSE πŸ’€

GPL


and that's the whole page, periodt πŸ’…βœ¨ shoutout to the LinuxCNC Documentation for this one, dated 2026-03-17 β€” go forth and toggle, icon πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from