Professional Documents
Culture Documents
MF5700 Modbus Protocols
MF5700 Modbus Protocols
Siargo Ltd.
3100 De La Cruz Boulevard, Suite 210
Santa Clara, CA 95054, USA
Tel: +1-408-969 0368
Fax: +1-408 777 8091
Email: info@Siargo.com.
Hardware connection
The MF5700 protocol is based on standard Modbus RTU mode. A master (PC or PLC) can
communicate with several slaves (MF5700), setting parameter or getting data.
The hardware layer is TIA/EIA-485-A. The connection is as below:
Communication parameter
The UART parameter is shown as table-1.
Table1 ModbusCommunicationparameter
Communication parameter
protocol
RTU
9600 bps
Start bits
Data bits
Stop bits
Even/Odd parity
None
Bits period
104.2s
Bytes period
1.1458ms
20
Maximum Nodes
247
Frame
The framing function is accord with The Standard Modbus RTU framing, which is shown as
below:
Function
Stop_bits
Start_bits
Address
Data
CRC
code
N 8Bit
T1-T2-T3-T4
8Bit
8Bit
16Bit
T1-T2-T3-T4
20n0
Start_bits:
Address:
Function code :
Define the action that MF5700 should takes, or indicate that which
code the MF5700 is responding .
Data:
CRC:
CRC verify code , the low byte is flowed by high byte. For example , the
16bit CRC code is divide as BYTE_H BYTE_L , in the frame ,the
BYTE_L goes first ,then the BYTE_H, at last ,is the stop signal .
4 periods bit timeto indicate that the current framing is over.
Stop_bits:
4 Function code
The MF5700 Modbus Function-code is a subclass of Standard Modbus Function-Code .By
using these function-code, We can set or read the registers of the MF5700 Flow Meter.
They are shown as table-2:
Table2 MF5700Modbusfunctioncode
CODE
name
action
0x03
Read register
0x06
0x10
5 Registers
The MF5700 Flow meter has several registers .We can get the information (such as
address, flow rate and so on.) form reading these registers, or we can write into some of
the registers for setting parameters of the Flow meter.
The registers are shown as table-3:
Table3 TheregisterofMF5700
NAME
Communication
Protocol
REGISTER
Modbus
0x0000
40000(0x0000)
0x0001
40001(0x0001)
0x00020x0003
40002(0x0002)
Total
0x00040x0006
40004(0x0004)
Alarm
0x00070x0008
40007(0x0007)
0x000B0x000C
40011(0x000B)
Address
Flow Rate
Password
Description
The communicate protocol of
MF5700 (RW)
The address of MF5700 flow
meter (RW)
Table4 Descriptionofregisters
Communicate
0x0000
Protocol
Description
Protocol mode
Value type
UINT16
Detail
WRITE
READ
Flow meter
0x0001
Address
WRITE
READ
Description
Value type
UINT16
Detail
Flow Rate
0x00020x0003
Description
Value type
UINT16
WRITE
READ
Total
0x00040x0006
Description
Value type
UINT32 + UINT16
WRITE
READ
Alarm
0x00070x0008
Description
Value type
UINT32
WRITE
READ
Whenthesetvalueisreachedandtheflowisstill
accumulating,thealarmfunctionwillbetriggered.
Password
0x000B0x000C
Description
Setting password.
Value type
UINT32
detail
WRITE
READ