![]() |
Limit Switch Basics
How do you program limit switches?
|
Re: Limit Switch Basics
Quote:
|
Re: Limit Switch Basics
Quote:
|
Re: Limit Switch Basics
JWS,
When the switch is closed, you will read a 0 and then the switch is open, you will read a 1... Code:
if (rc_dig_in15 == 0) Does this make sense? Mike |
Re: Limit Switch Basics
Yes Thanks very much!
|
Re: Limit Switch Basics
#define leftLS rc_dig_in15
#define rightLS rc_dig_in14 if(leftLS == 0) //the left limit switch is on //dont turn left any more if(rightLS == 0) //the right limit switch is on // dont turn right any more //this post made more since before the nevermind |
Re: Limit Switch Basics
Thanks anyway!
|
| All times are GMT -5. The time now is 01:18. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi