View Single Post
  #2   Spotlight this post!  
Unread 22-02-2005, 00:39
GregT GregT is offline
Registered User
no team
 
Join Date: Jul 2001
Rookie Year: 2001
Location: FL
Posts: 400
GregT will become famous soon enough
Send a message via AIM to GregT
Re: have a question to ask about Double Solenoids to one spike programming

Quote:
Originally Posted by davelu
Code:
		if (top_grab=OPEN) {
		grab_relay_open=OPEN;
		grab_relay_close=CLOSE;
	} else { grab_relay_open=CLOSE;
			 grab_relay_close=OPEN;
	}
 {
does it look somthing like this? well this work? for the double solenoids to one spike programming?
For double solenoid programming.

1) both ground leads go to a ground slot.
2) the hot leads each go to a side of the spike (one to each side).
3)
if(condition)
{
printf("actuator forward");
relay1_fwd = 1;
relay1_rev = 0;
} else {
printf("actuator back");
relay1_fwd = 0;
relay1_rev = 1;
}
__________________
The above was my opinion. I'm wrong a lot. I'm sarcastic a lot. Try not to take me too seriously.