Go to Post Lets have fun this year - Wayne Doenges [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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
  #8   Spotlight this post!  
Unread 16-02-2010, 22:07
oddjob oddjob is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Earth
Posts: 118
oddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to beholdoddjob is a splendid one to behold
Re: Compressor won't start

Quote:
Originally Posted by kennypu View Post
oh woops sorry about that, I tried both (1,1 and 4,2 because it came from an example), but neither worked. So the pressure switch isn't required to get the compressor running?

The software turns the compressor on even if the pressure switch is not wired. It's one less thing to go wrong when you are first testing, but you must use the pressure switch after things are working. Leave the selected digital port unconnected for now, just to be sure it's not preventing the compressor from turning on. As you suggested, I would try using the Relay class next. Something like this, untested:

Code:
  Relay *m_relay_1;

...

  m_relay_1 = new Relay(1);
  m_relay_1->SetDirection(Relay::kForwardOnly);
  m_relay_1->Set(Relay::kOn);
Reply With Quote
 


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
Compressor won't start Alex_2487 C/C++ 6 12-02-2009 16:41
Wind River won't start radau C/C++ 6 19-01-2009 23:09
Won't Download! diaperrash89 Programming 4 25-10-2007 23:02
Running just the compressor (was: free compressor) sciguy125 Pneumatics 15 06-02-2006 18:23
Help! My 2003 Bot compressor won't shut off Jack21 Control System 10 11-02-2004 12:24


All times are GMT -5. The time now is 18:06.

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