User manual for - FLOW METER SPI-N118
2.
Read of device ID code
ADDR
FUNC
REG H,L
COUNT H,L
CRC L,H
01
03
00
21
00
01
D4
00
The answer:
ADDR
FUNC
BYTE C
DATA H,L
CRC L,H
01
03
02
DATA - identification code (205Dh)
3.
Change of the device address from 1 to 2 (write to reg. 20h)
ADDR
FUNC
REG H,L
DATA H,L
CRC L,H
01
06
00
20
00
02
09
C1
DATA H - 0
DATA L - new device address (2)
The answer (the same as the message):
ADDR
FUNC
REG H,L
DATA H,L
CRC L,H
01
06
00
20
00
02
09
C1
4.
Change of baud rate of all devices connected to the net (BROADCAST message).
ADDR
FUNC
REG H,L
COUNT H,L
CRC L,H
00
06
00
22
00
04
29
D2
DATA H - 0
DATA L - 4, new baud rate 19200 baud
Device do not reply to BROADCAST-type messages.
5.
Try to write improper data to register (register 04h):
ADDR
FUNC
REG H,L
DATA H,L
CRC L,H
01
06
00
04
00
10
C9
C7
DATA H, L written value (10h = 16) out of allowable range (0 ÷ 5)
43
i