FG_F6_MODBUS_EN_01 / 2020-06-17
38 / 74
Writing 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 of writing 9
words in the “
Function bits
”:
Master
Slave
—
Put in edition the program number on which the
functions bits have to be read
—
Make a
Write N*words
request of 9 words at the
0110h
address.
On network:
01
10
01
10
00
09
12
00
08
00
00
10
20
00
10
00
00
00
00
00
00
00
00
00
00
09
95
01
Slave address
10
Function number (Write N*words)
01 10
Word address (Function bits)
00 09
Number of words to write
12
Number of bytes to write
00 08
Word 1: write 0800h
00 00
Word 2: write 0000h
10 20
Word 3: write 2010h
00 10
Word 4: write 1000h
00 00
Word 5: write 0000h
00 00
Word 6: write 0000h
00 00
Word 7: write 0000h
00 00
Word 8: write 0000h
00 00
Word 9: write 0000h
09 95
CRC
—
Answer to the request:
On network:
01
10
01
10
00
09
00
36
01
Slave address
10
Function number (Write N*words)
01 10
Word address (Function bits)
00 09
Number of written words
00 36
CRC