0% found this document useful (0 votes)
14 views

Modbus TCP

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Modbus TCP

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

1.

PC (master) – HMI (Slave) Modbus Communication


MODBUS RTU : Function 3, Data Format : WORD ( 16 bit )
Communication setting : 9600/19200 Baud, 8 Data bits, 1 Stop, No Parity.

MODBUS REGISTERS for HMI :

Modbus Parameter Name Read/Write


Addr.
40073 (0x49) Adc 0 ( Charger Voltage ) R
40074 Adc 1 ( Charger Current ) R
40075 Adc 2 ( Battery Voltage ) R
40076 Adc 3 ( Battery Current ) R
40077 Adc 4 ( Spare ) R
40078 Adc 5 ( Spare ) R
40079 Adc 6 ( Spare ) R
40080 Adc 7 ( Spare ) R
40081 DI_STS_ 9_10, DI_STS_ 1_8 R
40082 DO sts, Mode, Adc_Sign_1_8 R

40065 (0x041) Mode Select Controller 1 (1=Bst,2=Flt,3=FCB) R/W


40321 (0x141) Mode Select Controller 2 (1=Bst,2=Flt,3=FCB) R/W
40577 (0x241) Mode Select Controller 3 (1=Bst,2=Flt,3=FCB) R/W

Start Address = 0x49 for Controller 1, 0x149 for Controller 2, 0x249 for Controller 3

Modbus Request Packets for reading Controller 1, 2 or 3 readings are as below,

Controller Addr Function Start Adderss No of Registers CRC


Msb Lsb Msb Lsb Lo Hi
1 04 03 0x0 0x49 00 10 XX XX
2 04 03 0x1 0x49 00 10 XX XX
3 04 03 0x2 0x49 00 10 XX XX
Response Details

Addr Function Byte Cnt Charger Voltage Charger Current Battery Voltage
Msb Lsb Msb Lsb Lo Hi
04 03 20 XX XX XX XX XX XX

Battery Current Spare Adc1 Spare Adc2 Spare Adc3 Spare Adc4

Msb Lsb Msb Lsb Msb Lsb Msb Lsb Msb Lsb
XX XX XX XX XX XX XX XX XX XX

DI status DO sts, Mode, CRC


ADC sign

Msb Lsb Msb Lsb Lo Hi


XX XX XX XX XX XX
Bitwise details of registers :

Mod.Adr Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Reg.

40073_80_ D15 D14 D13 D12 D11 D10 D9 D8 Adc1_


Hi 8

40073_80_ D7 D6 D5 D4 D3 D2 D1 D0 Adc1_
Lo 8

40081_Hi -- -- -- -- -- -- -- -- DI Sts

40081_Lo DI_8 DI_7 DI_6 DI_5 DI_4 DI_3 DI_2 DI_1

40082_Hi OCC OVC UVC -- -- -- 0 1 = Boost DO sts


1 0 = Float / Mode

40082_Lo ADC_ ADC_ ADC_ ADC_ ADC_ ADC_ ADC_ ADC Sign
8 7 6 5 4 3 2 _1 Bit

Sign Bit = 1 indicates ADC reading is positive, 0 means negative.


DI sts bit = 1 indicates alarm condition, 0 means normal.

Modbus Request Packets for writing Mode (Boost / Float / FCB) to Controller 1, 2 or 3
readings are as below,

Controller Start Address No. Of Reg No. Of


Bytes
Addr Function Msb Lsb Msb Lsb
1 04 16 0x00 0x41 0x0 0x1 02
2 04 16 0x01 0x41 0x0 0x1 02
3 04 16 0x02 0x41 0x0 0x1 02

Data1 CRC
Msb Lsb Lo Hi
0x0 1/2/3 Xx Xx
0x0 1/2/3 Xx Xx
0x0 1/2/3 Xx Xx

You might also like