Home
Downloads
Mach3
Plugins
CAM Post Processors
Screensets
Purchase
Support
Forum
Tutorial Videos
Documentation
Yahoo Group
Mach Wiki
Resources
Contact Us
Links
CNCZone
German Forum
Italian Forum
Korean Forum
Portugese (Brazil) Forum
Russian Forum (RSK CNCROUTER)
Thai Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 28, 2012, 08:20:58 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Select from and to languages
Chinese-simp to English
Chinese-trad to English
English to Chinese-simp
English to Chinese-trad
English to Dutch
English to French
English to German
English to Greek
English to Italian
English to Japanese
English to Korean
English to Portuguese
English to Russian
English to Spanish
Dutch to English
Dutch to French
French to English
French to German
French to Greek
French to Italian
French to Portuguese
French to Dutch
French to Spanish
German to English
German to French
Greek to English
Greek to French
Italian to English
Italian to French
Japanese to English
Korean to English
Portuguese to English
Portuguese to French
Russian to English
Spanish to English
Spanish to French
Machsupport Forum
Mach Discussion
General Mach Discussion
Adding a physical button to control outputs
Pages:
1
2
»
Go Down
« previous
next »
Author
Topic: Adding a physical button to control outputs (Read 628 times)
0 Members and 2 Guests are viewing this topic.
swanner
Active Member
Offline
Posts: 57
Adding a physical button to control outputs
«
on:
September 29, 2011, 11:28:05 PM »
How do would I go about setting up a button that would turn an output on and off? I would like to add a button to control the air solenoid for my dust hood, the solenoid is using 2 wires on a 3 conductor wire...it would be nice if I was able to utilize that unused wire instead of running a new one. I know how to setup an input but how do I get it to control the output? Also, if I used a button that sticks instead of a momentary one is there a way that it could override the output on/off code and make sure the dust hood stays up when it's depressed?
Logged
Hood
Active Member
Offline
Posts: 17,368
Carnoustie, Scotland
Re: Adding a physical button to control outputs
«
Reply #1 on:
September 30, 2011, 02:15:47 AM »
How do you control it at the moment?
Hood
Logged
swanner
Active Member
Offline
Posts: 57
Re: Adding a physical button to control outputs
«
Reply #2 on:
September 30, 2011, 09:15:18 AM »
The dust hood is setup using the 'flood coolant' button and is triggered by M8, I'm trying to operate it right from spindle location, either toggling it up/down or having it to where the button raises the hood and overrides the code.
Logged
Hood
Active Member
Offline
Posts: 17,368
Carnoustie, Scotland
Re: Adding a physical button to control outputs
«
Reply #3 on:
September 30, 2011, 09:19:38 AM »
No problem then, just use a Brain and have the brain look at the input you are using, pass it through and terminate at the flood toggle button.
Just a momentary switch is needed.
Hood
Logged
Hood
Active Member
Offline
Posts: 17,368
Carnoustie, Scotland
Re: Adding a physical button to control outputs
«
Reply #4 on:
September 30, 2011, 09:23:25 AM »
A brain just like this will work fine, I have it as Input 4.
Hood
ScreenHunter_01 Sep. 30 15.22.jpg
(17.19 KB, 736x178 - viewed 57 times.)
Logged
swanner
Active Member
Offline
Posts: 57
Re: Adding a physical button to control outputs
«
Reply #5 on:
October 02, 2011, 10:49:00 PM »
I've been playing with the brain part of the software and have a situation: I setup a brain that reads the Y position DRO, so that when the machine is away from the work area and near the tools the dust hood (flood) is up (enabled). Doing this overrides the flood toggle so that the dust hood is either up or down depending on the machine location, is there a way around this so it only locks the dust hood up when it's by the tools but the rest of the machine you can toggle it up or down?
I wanted to setup another one kept the dust hood up if the tool is under a certain length, but I suspect I'll have the same problem. (when using a tool longer then the set length the hood would be stuck down...)
Also whenever I go to brain control and load any brain I get a Bad XML read but they still seem to work....any ideas on that?
Logged
Hood
Active Member
Offline
Posts: 17,368
Carnoustie, Scotland
Re: Adding a physical button to control outputs
«
Reply #6 on:
October 03, 2011, 06:36:36 AM »
Getting a brain to do what you want can be a lot of trial and error and you have to get creative if its not just a simple task such as switching something on/off via a button.
For what o are talking about you will likely have to use formulas (greater than/less than etc) use And and Ors looking at states of LEDs etc.
Hood
Logged
swanner
Active Member
Offline
Posts: 57
Re: Adding a physical button to control outputs
«
Reply #7 on:
October 03, 2011, 04:40:45 PM »
I've attached the brain I messing with, this is the last thing I tried, but not matter what I do I'm getting the same results - no manual control over the output once the brain is enabled. Could you give me and example of how to get it to only work if the condition is true and leave it alone when it's false? Any idea on the bad xml read message I'm getting?
Dust Hood.brn
(2.49 KB - downloaded 13 times.)
Logged
Hood
Active Member
Offline
Posts: 17,368
Carnoustie, Scotland
Re: Adding a physical button to control outputs
«
Reply #8 on:
October 03, 2011, 04:49:00 PM »
Try naming the Brain with no spaces ie DustHood.brn rather than Dust Hood.brn
As for giving you an example, cant unless I mess around with it, which I will try if I get a chance.
Hood
Logged
Hood
Active Member
Offline
Posts: 17,368
Carnoustie, Scotland
Re: Adding a physical button to control outputs
«
Reply #9 on:
October 03, 2011, 04:56:39 PM »
Would this work?
Hood
ScreenHunter_01 Oct. 03 22.54.jpg
(11.34 KB, 1360x78 - viewed 26 times.)
Logged
Pages:
1
2
»
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Mach Discussion
-----------------------------
=> General Mach Discussion
=> Mach3 under Vista
=> Quantum
=> Mach SDK plugin questions and answers.
===> Finished Plugins for Download
=> VB and the development of wizards
=> Brains Development
=> Video P*r*o*b*i*n*g
=> Mach Screens
===> Screen designer tips and tutorials
===> Works in progress
===> Finished Screens
===> Flash Screens
===> JetCam screen designer
===> Machscreen Screen Designer
===> CVI MachStdMill (MSM)
=> Feature Requests
=> Non English Forums
===> Italian
===> French
===> Spanish
===> Chinese
===> German
===> Russian
===> Romanian
===> Japanese
===> Vietnamese
=> FAQs
-----------------------------
*****VIDEOS*****
-----------------------------
=> *****VIDEOS*****
-----------------------------
General CNC Chat
-----------------------------
=> Share Your GCode
=> Show"N"Tell ( What you have made with your CNC machine.)
=> Building or Buying a Wood routing table.. Beginnners guide..
=> Show"N"Tell ( Your Machines)
-----------------------------
G-Code, CAD, and CAM
-----------------------------
=> G-Code, CAD, and CAM discussions
=> LazyCam (Beta)
-----------------------------
Third party software and hardware support forums.
-----------------------------
=> LazyTurn
=> GearoticMotion Preliminary testing
=> Tempest Trajectory Planner
=> Contec
=> dspMC/IP Motion Controller
=> HiCON Motion Controller
=> Third party software and hardware support forums.
=> Galil
=> Newfangled Solutions Wizards
=> Mach3 and G-Rex
=> Mesa
=> Modbus
=> NC Pod
=> PoKeys
=> SmoothStepper USB
=> Sieg Machines
=> Promote and discuss your product
-----------------------------
Tangent Corner
-----------------------------
=> Tangent Corner
=> Competitions
=> Polls
=> Bargain Basement
-----------------------------
Support
-----------------------------
=> Downloads
===> XML files
===> Post Processors
===> Macros
===> Tutorials
===> Others
===> Beta Brains
===> Screen Sets
===> Documents
===> MACH TOOL BOX
=> One on one phone support.
=> Forum suggestions and report forum problems.
-----------------------------
Mach4
-----------------------------
=> Mach4 pre-Alpha Testing
Loading...