Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Breaker Switches and Buttons to Motors (http://www.chiefdelphi.com/forums/showthread.php?t=112357)

Alan Anderson 12-02-2013 10:05

Re: Breaker Switches and Buttons to Motors
 
I'm still not sure what a "breaker switch" is in your description. I would normally understand it as the robot's main power switch, but that's obviously not what you're talking about. You mentioned limit switches once, so I'll assume that's what you mean.

Mark has already pointed out that you can't have two separate Motor Set functions next to each other and expect things to work, so I'll let that go for now.

With the logic in your code, the "break" input will prevent the button press from being recognized when it is True. That means you have to have a switch closed from SIG to (-) on the DIO pins in order for the button to make the motor run. How are your switches wired? There are typically three terminals on a limit switch; which terminal are you connecting to each pin on the Digital Sidecar?

sthreet 12-02-2013 10:10

Re: Breaker Switches and Buttons to Motors
 
To guy from other page: Ok, i'll try to figure out how to do that, i would use another and maybe?
Quote:

Originally Posted by Alan Anderson (Post 1232092)
I'm still not sure what a "breaker switch" is in your description. I would normally understand it as the robot's main power switch, but that's obviously not what you're talking about. You mentioned limit switches once, so I'll assume that's what you mean.

Sorry about that, limit switches, don't know why i got that they are breaker switches...
Quote:

Originally Posted by Alan Anderson (Post 1232092)
Mark has already pointed out that you can't have two separate Motor Set functions next to each other and expect things to work, so I'll let that go for now.

Ok, will try something at lunch today.
Quote:

Originally Posted by Alan Anderson (Post 1232092)
With the logic in your code, the "break" input will prevent the button press from being recognized when it is True. That means you have to have a switch closed from SIG to (-) on the DIO pins in order for the button to make the motor run. How are your switches wired? There are typically three terminals on a limit switch; which terminal are you connecting to each pin on the Digital Sidecar?

I just remember two but i will check... Thought i posed somewhere else earlier...

EDIT:
Quote:

Originally Posted by sthreet (Post 1228226)
Wired into the Digital I/O into signal and negative.

Will check again though... Not sure what you mean by three terminals... But should I get rid of the not also?

Mark McLeod 12-02-2013 10:33

Re: Breaker Switches and Buttons to Motors
 
Quote:

Originally Posted by sthreet (Post 1232095)
Not sure what you mean by three terminals...

A typical limit switch has three terminals seen here:



One is marked COM and the ground wire goes there.
Then you have a choice of two terminals for the signal wire that essentially give opposite answers.
  • NC is Normally Closed and completes the circuit only while the limit switch is not depressed
  • NO is Normally Open and completes the circuit only when the limit switch is depressed. The opposite of NC.
There are reasons to choose one over the other. For instance, we like Normally Closed if the switch is acting as a fail safe (if the switch fails, it's still safe). So, say the switch gets broken, then the mechanism is disabled by default, because NC acts like it's being depressed if it gets ripped off the robot.

Quote:

Originally Posted by sthreet (Post 1232095)
But should I get rid of the not also?

Use of the -not- will depend on which terminal NC vs NO you wired up.

sthreet 12-02-2013 16:59

Re: Breaker Switches and Buttons to Motors
 
Thanks for the diagram, helped a lot, we had both the ones on the left wired and I didn't even know the bottom was able to be wired...
Anyway, any way to explain how I can combine them and get a three-way button thingy? or should I just make one if the other button is false...???

EDIT: ABOUT SERVOES:
1) Should the attached code run them assuming they are connected to the pwm/digital sidecar correctly?
2) How do they connect to the digital sidecar? They are wired into pwm and only have one set of wires/socket...


All times are GMT -5. The time now is 01:32.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi