Go to Post We are behind you 100% (more if needed)! - Clem1640 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 3 votes, 4.67 average. Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 24-01-2014, 21:06
LFRobotics's Avatar
LFRobotics LFRobotics is offline
Registered User
FRC #4623
 
Join Date: Jan 2014
Location: Little Falls, MN
Posts: 95
LFRobotics is on a distinguished road
How to Program Limit Switches

Hello - Im the head programmer/electronics guy at LF Robotics. I am the only one of my kind on the team and this is my first year so I have absolutely NO experience so PLEASE bear with me.

I have two limit switches part number V7-2B17D8-048 - Here is a picture:



I have a window motor - I want the window motor to pull a cord connected to a wheel - when the window motor reaches the end of its turn It will hit a limit switch - when it hits this limit switch I want it to reverse its direction and stop at its original location when it hits a second limit switch - it will be triggered again by a push of an assigned button on the joystick.

How would I program this - I have thought it over and researched it and am still royally confused on what to write code-wise to preform this task and how to wire the switches. I am using Command Based Java in Netbeans.

I asked the question about wiring it in the electronics section as well.

ANY help will be GREATLY appreciated - THANKS!

Last edited by LFRobotics : 24-01-2014 at 21:11.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:17.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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