2 bytes
CRC 16
p28
•
Displayed measure:
The value of the displayed measure is taken up without the decimal point.
To read the value of the decimal point, read the word at the address 120.
Address 120:
bit 15
bit 2 bit 1 bit 0
Position of the decimal point from 1 to 4 (version 10000 points)
from 0 to 4 (version 100000 points)
0: Display with 4 decimals (version 100000 points)
1: Display with 3 decimals
2: Display with 2 decimals
3: Display with 1 decimal
4: Display with 0 decimals
Slave
number
1 byte
1 byte
Function
3 or 4
2 bytes
CRC 16
1st word
MSB
address
LSB
9.3 Description of the born modbus functions
:
Reading of N words: Function n°3
Request sequence
:
Number
MSB
of words
LSB
2 bytes
2 bytes
Slave
number
1 byte
1 byte
1 byte
Function
3 or 4
2 bytes
CRC 16
Number
of read
bytes
Response sequence
:
1st word
MSB
value
LSB
2 bytes
2nd word
MSB
value
LSB
2 bytes
Slave
number
1 byte
1 byte
Function
16
2 bytes
CRC 16
1st word
address
Number
of words
to be enf.
Writing of N words: Function N°16:
Request sequence
:
Value of the words
to be enforced
2 bytes 2 bytes
Number
of words
to be enf.
2 bytes
Number
of bytes
to be enf.
1 byte
n bytes
Slave
number
1 byte
1 byte
1 byte
Function
16
1st word
address
Response sequence:
2 bytes
CRC 16
Slave
number
1 byte
1 byte
Function
6
2 bytes
CRC 16
Adress of
the word
Writing of 1 word: Function N°6:
Request sequence
:
2 bytes
Value of
the word
to be enf.
2 bytes
Value of
the word
to be enf.
2 bytes
Slave
number
1 byte
1 byte
2 bytes
Function
6
Address
of the
word
2 bytes
CRC 16
Slave
number
1 byte
1 byte
1 byte
Function
request-
ed with
MSB=1
Error
code
Response sequence:
Exception sequence
:
Value of the error codes:
1: Unknown function code
2: Address incorrect
3: Data incorrect
9: Writing impossible
254
03
CRC 16
0
206
9.4 Reading
:
Example: Reading of the displayed measure
Request
:
0
2
Address
Reading
of n
words
Slave
number
Number of words
254
3
4
19
•
Response with a positive measure
:
136
0
CRC 16
0
0 0 0 0 0 0 0 0
byte 3
0 0 0 0 0 0 0 0
byte 4
0 0 0 1 0 0 11
byte 1
1 0 0 0 1 0 0 0
byte 2
0
Sign
: 0 positive
1 negative
0
19
136
Value of the measure:
measure
byte 1
byte 2
byte 3
byte 4
2 bytes