MODBUS PROJECT
1
CRC Function Code

Modbus Relay

2
Mobus Relay
References     References02    R

3

Code

Modbus

Relay

     1--- Relay 1 on/off                 2  All Relay on/off                    3   Relay 1 toggle                   4 set Address Relay Module   
              Explanation of                    Explanation of                       Explanation of                                 Explanation of     
       the command structure(pdf)            the command structure(pdf).         the command structure.(pdf)             the command structure(pdf).
         
Modbus RS485 Temperature and Humidity sensor XY-MD02
xy-md02 pdf       
4

Code
XY-MD-02
Modbus

                                                        
1   Read Temp               2   Read Humi        3   Read Temp&Humi       4 Read Temp&Humi Cal CRC  
     Explanation of   the command structure(pdf)  
Temp Sensor NT18B07 7-Channel
NT18B07 Datasheet      NT18B07datasheet2
5

Code
NT18
B07

                                                          
1 Read Temp Ch1             2 Read Temp Ch2                         3 Read Temp Ch12
Explanation of   the command structure(pdf)

 

   
   
 

datasheet ddsu666

address
data content
data length(word)
0x2000
voltage
2 (0.1v)
0x2002
current
2 (0.1a)
0x2004
Conjunction active power
2
0x200A
Conjunction power factor
2 (0~1.000)
0x200E
freqquency
2 (0.01hz)
0x400A
Reverse in electricity
2
0x2006
Conjunction reactive power
2
0x000C
baud rate (1word)
0:1200 1:2400 2:4800 3:9600 R/W
0x0006
4 byte float (address modbus)
1-247 R/W
0X0002
Electric energy zero clearing
1(word)

CLr.E: electric energy cleared, when write 1 will clear the total electric energy

 

6

Code
ddsu666

                                            1 Read Voltate         2 Read Current        3 Read Frequency          4 Read Active Power        5 Read Power Factor

 

 

 

modbus communication

address
data content
data length(word)
0x00
voltage
1 (0.1v)
0x03
current
1 (0.1a)
0x08
active power
1
0x14
power factor
1 (0~1.000)
0x1a
freqquency
1 (0.01hz)
0x001d
current total active energy
2
0x0027
current positive total energy
2
0x0031
current reverse total energy
2
0x003b
current total reactive energy
2
0x0000
4 byte flote (baud rate)
1200 2400 4800 9600 R/W
0x0002
4 byte float
0:even 1:odd 2:none R/W
0x0008
4 byte float (address modbus)
1-247 R/W

7
Code
dds6619
                                 1    Readvoltage      2    Readcurrent      3  Readactivepower     4   Readpowerfactor      5 Readfreqquency      
 
set address device
source code    set address
 

set baud rate device

source code set baud rate
8
MODBUS Tool
9
lab circuit