User manual for - FLOW METER SPI-N118
8.
THE MODBUS PRO
TOCOL HANDLING
Transmission parameters: 1 start bit, 8 data bits, 1 or 2 stop bit (2 bits are send, 1 and 2 bits
are accepted when receive), no parity control
Baud rate:
selectable from: 1200 to 115200 bits/second
Transmission protocol:
MODBUS RTU compatible
The device parameters and display value are available via RS-485 interface, as HOLDING-
type registers (numeric values are given in U2 code) of Modbus RTU protocol. The registers
(or groups of the registers) can be read by 03h function, and wrote by 06h (single registers) or
10h (group of the registers) accordingly to Modbus RTU specification. Maximum group size for
03h and 10h functions can not exceeds 16 registers (for single frame).
The device interprets the broadcast messages, but then do not sends the answers.
8.1.
LIST OF REGISTERS
Some parameters are located on two registers (higher word in first register, and lower word in
next one). After writing of one of them device controls result of their 32-bit value, and if it is
necessary corrects value of second register automatically. If appropriate modification is
impossible, both registers stay unaffected and device responds with error code 03h
(see:
TRANSMISSION ERRORS DESCRIPTION
).
Register Write
Range
Register description
01h
1
02h
1
No
0 ÷ 999999 Measurement value (no decimal point)
03h
No
0-FFh
The status of the current measurement.
0
– data valid;
20h
– device waits for first pulse;
A0h
– alarm state, allowable frequency range is exceeded
04h
Yes
0 ÷ 5
“
F PrEc
” parameter in “
FLouu
” menu. The same as 12h register
05h
Yes
0 ÷ 31
State of the relays and alarm LED (binary format)
(1 - on, 0 - off):
00000000 000edcba
a
- relay R1;
b
- relay R2;
e
- alarm state indicator; If written, only
a
,
b
bits are important (others are ignored) these bits allows user to
control the relays via RS-485 interface
07h
1
08h
1
No
0 ÷ 999999 Peak (drop) value (no decimal point)
09h
1
0Ah
1
No
0÷9999999
99
Total flow counter result - quantity of m
3
0Bh
1
No
0÷999
Total flow counter result - quantity of l
0Ch
1
No
0÷999
Total flow counter result - quantity of ml
0Dh
1
No
0h÷FFFFh Batcher counter result - quantity of m
3
37
i