For those unsure, you can obtain the ifi_aliases.h file from the Innovation FIRST website. They are the suppliers of our control system. Their website is at:
http://www.innovationfirst.com . The ifi_aliases.h file can be found in the zip file containg the defualt code; that can be found here:
http://www.innovationfirst.com/FIRST...2004-02-18.zip .
Quote:
|
Originally Posted by MikeDubreuil
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
|