Log in

View Full Version : Question about Solenoid and default code


waialua359
20-01-2006, 23:13
pneumatic system:
air pump-Is it relay #8 and digital in/out #18?
double solenoid-Is it any relay?

Sscamatt
20-01-2006, 23:15
You can connect them to any number you would like and set it accordingly in the code. That's just the default.

waialua359
21-01-2006, 01:27
I know this is the wrong topic but how? I checked the code and cant see where?

Alan Anderson
21-01-2006, 17:07
I know this is the wrong topic but how? I checked the code and cant see where?
In the (1-04-2006) FrcCode project, the user_routines.c file has the following line in the Default_Routine() function:
relay8_fwd = !rc_dig_in18; /* Power pump only if pressure switch is off. */
It's easily overlooked in the midst of all the other relay and pwm control code.

waialua359
21-01-2006, 18:21
Thanks,
We are like rookies again since we have a totally new group of students and engineers. Our veteran mentors are officially "retired," and we already asked them "too" many questions.

Aloha!! :)