Go to Post And whether or not we are awarded in the course of the season, at its end our team will look back, and we’ll look at one another, and we will wonder how we were able to accomplish what we did. - John Wanninger [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 Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 11-02-2007, 17:43
GeorgeC GeorgeC is offline
Registered User
FRC #1934
 
Join Date: Feb 2007
Location: London
Posts: 13
GeorgeC is an unknown quantity at this point
Limit Switch for PCM

Can anyone help with an easyC mindbender?

I've used all of my available spike relay controllers and programming limit switches using them in easyC was straightforward.

Now i need to control a motor using PWM and a limit switch but I can't think of how to code in a limit switch.

What I want to do is program something like if limit==0 then PWM1 ==<127. However in easyC I can't see the actual variable to assign my values to.

I guess that PWM outputs are to program drive motors which don't usually need limit switches.

Anyone got any ideas?
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit Switch Basics JWSnedden Programming 6 30-11-2006 19:48
Limit switch in easy c? chadbarbe Programming 6 02-02-2006 09:51
How do you wire a limit switch? JMH Electrical 1 16-02-2005 17:44
gyro/accelecometer/limit switch help needed Anton Programming 4 04-02-2005 16:39
sample limit switch code??? tml240 Programming 5 17-02-2004 17:13


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

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