One_Button_Toggle - rmu75/linuxcnc-wiki GitHub Wiki
date: '2008-04-23T13:43:55' title: One Button Toggle
How to toggle something like flood from a pendant with one button.
(Or how I learned to quit worrying and love the bomb)
This is so simple it's not funny.
Add the following to your postgui.hal file
<b>loadrt toggle count=1</b>
<b>addf toggle.0 servo-thread</b>
<b># Flood Coolant control with one button</b>
<b>net flood-toggle toggle.0.in <= pyvcp.flood-button # or the input of your choice</b>
<b>net flood-control toggle.0.out => pyvcp.led-09 # or the output of your choice</b>
Can it get any easier?
Enjoy
Big John T