Having 2 PCMs - Java


#1

This year we are using two PCMs and am wondering how to define each to a special number if on each is only from 1 to 7? Ehat value do I give the other solenoids if they’re on 1 and 2 on the seconds PCM


#2

Each PCM will have to have a unique CAN address, so when defining each of the ports, so they are still 0-7, but on two separate CAN addresses. Example:
private DoubleSolenoid _solenoid1;
private DoubleSolenoid _solenoid2;
_solenoid1 = new DoubleSolenoid([CAN Address of PCM #1], [Port on PCM #1] ,[Port on PCM #1]);
_solenoid2 = new DoubleSolenoid([CAN Address of PCM #2], [Port on PCM #2], [port on PCM #2]);
The Port numbers can be the same, as long as the solenoids are defined as being on different PCM CAN addresses. Hope that this helps!!


#3

I thought the CAN address for the PCM came first, and the PCM port number(s) came second (and third for a double solenoid).

Edit: looks good now