FG_F6_MODBUS_EN_01 / 2020-06-17
36 / 74
Reading of the function bits
The functions bits are dependents of the program number.
Put the wanted program in edition before executing command.
•
Standard access
Example for reading 9 words of the “Function bits”:
Master
Slave
—
Put in edition the program number on which the
functions bits have to be read
—
Make a
Read N*words
request of 9 words at the
0110h
address.
On network:
01
03
01
10
00
09
85
F5
01
Slave address
03
Function number (Read N*words)
01 10
Word address (Function bits)
00 09
Number of words to read
85 F5
CRC
—
Answer to the request:
On network:
01
03
12
00
0C
00
00
10
20
00
10
00
00
00
00
00
00
00
00
00
00
98
CE
01
Slave address
03
Function number (Read N*words)
12
Number of read bytes
00 0C
Word 1: read 0C00h
00 00
Word 2: read 0000h
10 20
Word 3: read 2010h
00 10
Word 4: read 1000h
00 00
Word 5: read 0000h
00 00
Word 6: read 0000h
00 00
Word 7: read 0000h
00 00
Word 8: read 0000h
00 00
Word 9: read 0000h
98 CE
CRC