Hi,
I have a CR1000 on which I am trying to read data from a solar charge controller Tracer 3210AN from Epever. The solar charge controller uses a RS485 output that I connected to Com1 on the CR1000.
The Epever solar charger talks over Modbus RTU. The communication parameters are:
- The default controller ID number is "1";
- Serial communication parameters: baud rate 115200, data bits 8, stop bits 1, no data flow control;
- Register address uses hexadecimal format, the base address offset is 0x00.
- All 32 bit length data uses two 16 bit registers to represent (L and H respectively)
Basically, I am trying to use the ModbusMaster() function to try retrieve values from the Epever. I do not manage.
For example, on the Epever documentation they specify that to retrieve the Battery Voltage
I have tried the following:
ModbusMaster(ModbusResult,COM1,115200,1,4,Modbus(),1,1,3,100,2)
Maybe the starting Modbus Register/Coil I wrong,but I don't know which it could be the right one
Could anyone help please? Thank you!
Thanks
Tamara
CR1000 does not have RS485 serial drivers built in. A RS485 to RS232 adapter is necessary.
https://www.campbellsci.co.uk/forum?forum=1&l=thread&tid=17084
we're talking about it here too. I can send the EPEVER manual for the protocol, for anyone who knows something about it. Thank you
https://www.campbellsci.co.uk/forum?forum=1&l=thread&tid=17084 slope game
This manual is exactly what I was looking for for a long time.
It looks like the issue might be with the starting Modbus register. For the Epever Tracer 3210AN, try using register address 0x3100 (12544 in decimal) for battery voltage. Your ModbusMaster function might look like this:
https://www.campbellsci.com/forum?forum=1&l=thread&tid=17216 127.0.0.1
This post is under review.