Scrappyjoe wrote: ↑Tue Jul 16, 2024 8:21 am
.......
Steps
1. How to wire up the charger to AC, DC, CAN
2. How to observe CAN messages from the charger, and interpret them
3. How to set the max / target voltage of the charger
4. How to set the max amps of the charger
5. How to use keepalive and can messages to actually get the thing to charge at your target voltage
1. Ok... wiring is described in this page IP67 version installation guide even the wire colors are there
2. I find that you can have DC permanently connected and then you connect AC and charger will come alive. You will see CAN reports from 0x3xx address charger is on currently. This and several other addresses are listed in CAN Protocol instrreuctions document
In your case you will get charger report from...
0x301 address: interval 200ms
byte0 is status = 01 ... means idle, 02 charging
byte3 is DC current LSB
byte4 is DC current MSB
byte5 is DC voltage LSB
byte6 is DC voltage MSB
0x302 address: interval 200ms
byte0 is temp primary
byte1 is temp secondary
3. How to set the max / target voltage of the charger
Command telegram for charger ON is ID 0x2FF
byte0 01 for enable
Byte1 E8
Byte2 03 for the max power range 0 to 1000, 1000=100%, so 0000 to 03E8 in hex but reversed
Byte3 6E
Byte4 0F max voltage same coding as power. I suppose that for 395V send 0F 6E
Byte5 3C
Byte6 00 max current same coding as power. For 6 amp send 60 decimal so 00 3C hex in reverse
So you send ID 02 FF and Data 01 E8 03 6E 0F 3C 00
Send at rates from 500ms to 800ms
4. How to set the max amps of the charger
Max amps are up to 12A i think for 400Vdc version. This means 78 00 in hex
5. How to use keepalive and can messages to actually get the thing to charge at your target voltage
If you will send message ID 0x2FF at intervals from 500ms to 800ms you will keep the process alive.
Terminal voltage is noted in byte3 and byte4 and when charger reaches that it will taper off to 0A regardless of current request.
Now if you want to have another level of safety you can insert a conditional in code at byte0 if everything is good value of byte0 is 01 but if there is BMS alarm you change this to 00! Charger will stop.
Later on i will post the DUE code for this and its properties
EDIT: Very important!!! Do not connect charger behind main DC contactor. Rather i keep it connected directly to DC via one solar DC fuse 20A.
I destroyed one charger when i kept it connected behind DC contactor. I guess charger does not like quick succession of precharge and EVSE AC insertion on the primary. It released magic smoke... Dont forget charger does not use output diode!!!