[Home]One Button Toggle

LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org

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

 loadrt toggle count=1
 addf toggle.0 servo-thread

 # Flood Coolant control with one button
 net flood-toggle toggle.0.in <= pyvcp.flood-button # or the input of your choice
 net flood-control toggle.0.out => pyvcp.led-09 # or the output of your choice

Can it get any easier?

 Enjoy
 Big John T

LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org
This page is read-only. Follow the BasicSteps to edit pages. | View other revisions
Last edited April 23, 2008 4:43 am by BigJohnT (diff)
Search:
Published under a Creative Commons License