[Home]One Button Toggle

LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org

Showing revision 4

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 BigJohnT?


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