DOKK / manpages / debian 12 / linuxcnc-uspace / toggle2nist.9.en
TOGGLE2NIST(9) HAL Component TOGGLE2NIST(9)

toggle2nist - toggle button to nist logic

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

Toggle2nist can be used with a momentary push button to control a device that has separate on and off inputs and an is-on output.

• 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.


┐ ┏─────xxxxxxxxxxxx┐ ┏─────xxxxxxxxxxxx┐
in : └─────┛ xxxxxxxxxxxx└───────────┛ xxxxxxxxxxxx└─────
┐ ┌───────────┐
on : └─────┘ └─────────────────────────────────────────
┐ ┌───────────┐
off : └───────────────────────────────────┘ └───────────
┐ ┌─────────────────────────────┐
is-on: └─────────────────┘ └───────────




Anders Wallin

GPL

2023-02-10 LinuxCNC Documentation