View Single Post
  #9   Spotlight this post!  
Unread 23-02-2004, 16:24
MikeDubreuil's Avatar
MikeDubreuil MikeDubreuil is offline
Carpe diem
FRC #0125 (Nu-Trons)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Boston, MA
Posts: 967
MikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond repute
Send a message via AIM to MikeDubreuil
Re: WARNING - Keep those compressors cool or you may be slimed!!!!

Quote:
Originally Posted by Charley
I'm rather confused... ha ha ha, programming newbie...

Our Spike connected to the compressor is hooked up to realay port 8, and the code under ifi_aliases.h consists of:

#define relay8_fwd LATDbits.LATD7
#define relay8_rev LATJbits.LATJ0

All the other ports say LATEbits instead of J, and Would have progressed consecutively, so, I think the bottom line should say LATEbits.LATE8, but I'm not sure.

Our spike is now running on red, and it is shaking and as hot as the above have described. Should I change this bottom line to what I thought, or what should I change it to?

Thanks,
Charley.

Your best bet is to use the latest ifi_aliases.h file dated 2-18-2004. The code that you supplied is wrong, and will in fact supply reverse polarity power to your compressor. Your relay will light red and your comprossor will be hot due to the internal cooling malfunctioning. This is the correct code (but do get the new file):

Code:
#define relay8_fwd      LATJbits.LATJ0
#define relay8_rev      LATDbits.LATD7