PDA

View Full Version : Question about Solenoid and default code


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

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

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

Alan Anderson
01-21-2006, 05:07 PM
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
01-21-2006, 06:21 PM
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!! :)