I am in need of an industrial grade switch like what the Cheesy Poofs used last year. Does anyone know where I might get something like it? Thanks!
Is there one similar to this that is wired NC ? or has the ability to be rewired without having to rebuild it ?
that would be a simple programming change
Thank you so much everyone! I thought I checked everywhere on the Vex website, but I guess I must have limited myself to the Vex Pro side. How much abuse can these take?
A decent amount. Buy spares if you are worried about it.
Personally, I’m not a huge fan of the microswitches we all typically use. I’d love to see a more robust option on the market and I suspect there are but I haven’t found one that I truly love yet.
I wouldn’t count on them continuing to function after stopping your robot in a crash, if that’s what you’re asking. When mounting “button” type limit switches, recess the switch inside or slightly behind a structural element (e.g. frame perimeter) so that the structure is taking the force of the collision before the switch reaches its stop.
Ok, thank you for the information. What I’ve been finding, when I was trying to find that switch, was that industrial-grade switches are really expensive!
http://www.grainger.com/product/SIEMENS-Push-Button-32GG33?s_pp=false&picUrl=//static.grainger.com/rp/s/is/image/Grainger/32GG30_AS01?$smthumb$
http://www.grainger.com/product/DAYTON-Momentary-ABS-WP131861/_/N-8du/Ntt-momentary+switch?nls=1&sst=subset&ts_optout=true&s_pp=false&picUrl=//static.grainger.com/rp/s/is/image/Grainger/30G362_AS01?$smthumb$
Great advise! Thank you.
When in doubt, automation direct.
http://www.automationdirect.com/adc/Overview/Catalog/Pushbuttons_-z-Switches-z-Indicators/Fuji_Electric_30mm(AR30B0R_Series)
McMaster, Newark, even Digikey has items like that. Be careful that the one you select has enough over travel to prevent damage.
That’s a big button! 2.5" across…
How about a FREE industrial switch in any configuration you want?
Look in your KOP for a $30 coupon from AutomationDirect.com.
Use that to buy any switch they offer (over 800 different options). Buy several - looks like some start at $6.50. They ship same day so most folks get their order within 1-2 days.
Their switches are located here: here
I hope that I didn’t deviate too much off the thread. Is this about the NC wired switch ? not sure if this was something else in the thread that could be a software change …
How would a software solution work to detect a open-wire condition in a normally NO switch ?
Just see what the roboRIO reports back.
If the switch is normally closed:
if (!getSwitch()) //This will happen when the switch opens
{
Do stuff
}
If the switch is normally open
if(getSwitch () ) //This will happen when the switch closes
{
Do stuff
}
Obviously this is not the correct function call, but just an example of how you would code it. (I am assuming that when the switch is closed, the function will return TRUE. If it’s the other way around, switch my code…)
Edit: I assumed incorrectly. According to the documentation that GeeTwo linked to, when the switch is OPEN, the value is 1, when it is CLOSED the value is 0.
This web page covers the difference between NO and NC pretty well. It’s based on the 2014 control system, but I don’t think any of the concepts at this level of detail have changed.
Here is the 2015 version. The only “change” is the picture of the switch is slightly brighter.
One thing to point out (and I edited my post saying I assumed wrong), is that the digital input on the roboRIO will be 1 when the switch is open, and 0 when it is closed.
Example Java code is provided in the link, and the code will be the same for C++.
So, the problem that we’ve always have is having the limit-switches wired in a way that is failsafe. If the mechanism or action that the limit-switch is meant to stop is one that could be destructive or harmful, then if somehow the limit-switch itself fails or the wiring connecting it to the RoboRio fails (cut or is disconnected), the software won’t read this limit condition and the destructive process will proceed… In this case, we like to use limit-switch that are wired as NC (and open when contact is made)… that way, if there’s a failure in the limit-switch (or the wiring) it stops the mechanism from working altogether.
I don’t think there’s a way for a NO limit-switch to be fixed in software to detect a limit-switch failure scenario. It would look like everything is fine until when it’s suppose to signal the contact.
As mentioned before Automation Direct literally has industrial grade switches. Many of them have wires for both N.O. and N.C. Operation at the same time so if you wanted to tell if the switch wasn’t connected you would know for sure if both N.O. and N.C. were off at the same time. And Automation Direct gave everyone a voucher for $30 and one switch runs for $24 - $28 depending on what kind.
Automation Direct.
AAP2T51Z11
$14.50 each
Limit Switch style with adjustable arm.
We are using these for overtravels on our elevator.
Plastic body means they are light as compared to other industrial switches.