Just don't forget that it is possible to run a SPIKE in both forward and reverse at the same time (both M- and M+ are raised to +12V). If you run your ground straight to your breaker panel, and your solenoid power leads to M+ and M-, it IS possible to energize both sides of your double solenoid at the same time. Be sure to shut one side off as you turn on the other explicitly.
Code:
relay1_rev = 0;
relay1_fwd = 1;
and
relay1_rev = 1;
relay1_fwd = 0;
This year we are wiring our single solenoids in this manner, as it allows us to control two of them with only one SPIKE.
-SlimBoJones...