|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#1
|
||||
|
||||
|
Hey guys,
We have a limit switch that is supposed to turn off a motor when pressed. That is, the motor is to run until the our lift descends and hits the switch, stopping the motor. Only problem is that the switch value is always reading true, stopping our motor even before it begins to move. This happens even when the switch is unplugged. Any suggestions as to why our program does this? Thanks, Your 4angrynutjobs |
|
#2
|
|||||
|
|||||
|
Re: a ridiculous reset button
Last edited by Mark McLeod : 08-11-2011 at 07:36. |
|
#3
|
|||||
|
|||||
|
Re: a ridiculous reset button
Quote:
A typical limit switch for this application should be wired between the (-) and (signal) pins of a Digital Input. The input will indeed always read true with nothing connected, or with the switch open. It will only read false when the switch is closed. |
|
#4
|
|||||
|
|||||
|
Re: a ridiculous reset button
Most likely you have wired the switch such that it is always open. The pullup resistors in the interface will pull up to make that input high all the time. You can try just modifying the code knowing that the input will be high until pressed.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|