Go to Post Minnesota could pioneer the idea of suspending a field 20 feet above the other field and have true double decker events. - PayneTrain [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 07-02-2005, 00:24
Grizzlie's Avatar
Grizzlie Grizzlie is offline
Registered User
#1214
 
Join Date: Jan 2004
Location: Houston,TX
Posts: 4
Grizzlie is an unknown quantity at this point
Post Solenoid control

I am trying to program the solenoids this year to wherewhen i hold the trigger it activates and when i let go it deactivates. Same as the reverse motion. I wrote this code to do this but it wont work. When i press the trigger the solonoid activates but when i let go it doesnt stop. And it WILL NOT go back when i press the rev button. heres the code i wrote :
Code:
 if (p3_sw_trig);

{              
      relay3_fwd = 1;
}

if (!p3_sw_trig);

{
      relay3_fwd = 0;
}

if (p3_sw_top);

{
      relay3_rev = 1;
}

if (!p3_sw_trig);

{
      relay3_rev = 0;
}
It would be great if someone could explain to me what i did wrong here because i'm fairly new to the C language. But it would be even better if someone could post the exact code to make this work. Thank You for even taking your time to read this post. And also good luck this year!
__________________
"Act Quickly , Think Slowly" - Greek Proverb
 


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
2005 RadioShack® Innovation in Control Award! dez250 General Forum 10 10-03-2005 21:29
Single vs double solenoid valve operation Scott358 Pneumatics 0 29-01-2005 11:47
What do you wish you knew about the new control system? Joe Ross Control System 2 09-01-2004 21:47
Ok, how much is the control system worth? archiver 2001 6 23-06-2002 22:05
more control options smokescreen Technical Discussion 17 05-03-2002 15:41


All times are GMT -5. The time now is 23:57.

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