|
How to program a limit switch?
Right now my team is making a tower with a hook system that goes up and down. As of now I have the tower programmed so I can control the speed the thing goes up using the axis 3 whiling holding a button, and the same for the thing to come down. Right now we have two limit switchs hooked up to the hook thing so when the object hits the limit switch the motor Should stop in that direction. How can I program a limit switch to do that? I don't know how to program a limit switch at all. Below I have a picture of my code for the motor going down without a switch, so how do I make that work until I hit the bottom limit switch thanks a ton. Visuals are awesome. Thanks
__________________
Ben
|