1
Technical support / FX2424 Modbus RTU
« on: May 26, 2019, 02:38:05 AM »
I want to read data from a Epever solar charger the Tracer2210AN.
The Tracer2210AN modbus settings are;
Example code from Epever
How can i put the first value in DM[51], second in DM[52] ....
The Tracer2210AN modbus settings are;
Code: [Select]
controller supports RTU mode only.
16bit MODBUS addresses (per the modbus.org spec)
The serial communication parameters are
ï‚ž ï‚ BPS:115200 baud
ï‚ž ï‚ Parity: None
ï‚ž ï‚ Data bits: 8
ï‚ž ï‚ Stop bits:1
ï‚ž ï‚ Flow control: None
Example code from Epever
Code: [Select]
Read real-time battery voltage
Device ID:0x01
Function code: 0x04
Register Address: 0x3104
Register count: 0x0001
Send command: 01 04 31 04 00 01 7E F7
Receive command: 01 04 02 04 CE 3A 64
Read Holding Register Value: 0x04CE
0x04CE (hex) = 1230 (dec)
1230 / 100 = 12.3 volt
Code: [Select]
Z = READMODBUS (13,1,3104)
i get 4 values one after the otherHow can i put the first value in DM[51], second in DM[52] ....