InstructionManual_Modbus_Data
InstructionManual_Modbus_Data
1 physical layer
1.1 RS485 communication port, asynchronous half-duplex mode;
1.2 Communication speed 1200-38400bps can be set, factory default 9600dps;
1.3 Byte transfer format: 1 bit for initial bit, 8 bit for data bits, odd-even check (N81, E81, 081 can be
selected), factory default N81.
2 Digital communication protocol
The meter is provided with serial asynchronism half-duplex RS485 communication port, adopt
MODBUS-RTU protocol, various data can be transferred through communication line. One line can
connect 32pcs meter at the same time, each meter can set different communication address. The
communication terminal number of different series meters is different. communication should be
connected by the shielded twisted-pair cable with copper network, and the diameter not less than
0.5mm2.When wiring, keep the communication wire away from strong electric cables or other
strong electric field, T type network Wiring is recommended (see Fig.1.0),Star-type or other wring is
not recommended.
Computer
RS - 485
A
B
Power Supply
Fig: 1.0
Fig: 1.1 1
Slave PC response
If slave PC respond normally, the information include the slave address code, function code, data
code and CRC 16 checkout code. Data code include the collected data from slave device, for
example, register value or status. If the error occurs, the slave device will not respond. The
transmission mode means one series independence data structure in one data frame and the rules
for data transmission. The below defines the transmission mode compatible with MODBUS protocol
RTU mode. Each bit of byte: 1 start bit, 8 data bit,(odd-even check bit),1 stop bit (with odd-even
check bit) or 1 stop bit ( without odd-even check bit).
Function code
The code indicate which function should be operated by the terminal. Below Table shows the
function code and their meaning and function.
Code Meaning Action
Start
CRC=0xFFFF
N=0
Yes
Carry
N=N+1
NO
N>7
Yes
Next Byte
NO
Frame Finish
Yes
Finish
Starting Relay Address 2 Bytes 0x0000 (Fixed) Byte Number Of Register 1 Byte
Starting Switch Address 2 Bytes 0x0000 (Fixed) Byte Number Of Register 1 Byte
Message examples
Reading remote-control/Alarm switching output status (Function code0 x 01 )
Host PC Request:
CRC Checkout Code
Relay Quantity (Max 4 Loops)
Starting Relay (This Meter Reads from 0)
Reading Relay Status Function Code
Slave PC Address
Slave PC Response:
CRC Checkout Code
Relay Status Value (0x0 Means 1st Relay Close)
Register Quantity (BYTE numbers)
Function Code
Slave PC Address
Description: The relay status value corresponds to the status value of each switch output starting
from the lowest bit of each byte according to the MODBUS protocol. 1 means the ON status and 0
means the OFF status. Binary “ 0000 0011” of “0x03” Indicates that the first and second relays are
closed.
Host PC Request:
Slave PC Response:
Description: The switching input status value corresponds to the status value of each switching
input starting from the lowest bit of each byte according to the MODBUS protocol. 1 means the ON
status and 0 means the OFF status.
Starting Relay Address 2 Bytes 0x0000 - 0x0003 Starting Relay Address 2 Bytes
Message examples
Reading remote-control/Alarm switching output status (Function code0 x 01 )
Host PC Request:
CRC Checkout Code
Relay Quantity (Max 4 Loops)
Starting Relay (This Meter Reads from 0)
Reading Relay Status Function Code
Slave PC Address