FG_F6_MODBUS_EN_01 / 2020-06-17
54 / 74
•
Direct access
This is an example based on the writing of two parameters:
—
Fill time
(D.A. address: 6001h)
—
Stabilization time
(D.A. address: 6002h)
Master
Slave
—
Put in edition the program number on which the
parameters have to be written
—
Make a
Write N*words
request of 2 words at the
6001h
address.
On network:
01
10
60
01
00
02
04
F4
01
00
00
F9
91
01
Slave address
10
Function number (Write N*words)
60 01
D.A. address
00 02
Number of words to write
04
Number of bytes to write
F4 01
Word 1 & 2: read 000001F4h
(value of fill time = 500(d)
→
0.5 sec)
00 00
F9 91
CRC
—
Answer to the request:
On network:
01
10
60
01
00
02
0E
08
01
Slave address
10
Function number (Write N*words)
60 01
D.A. address
00 02
Number of written words
0E 08
CRC
—
Make a
Write N*words
request of 2 words at the
6002h
address.
On network:
01
10
60
02
00
02
04
F4
01
00
00
B9
84
01
Slave address
10
Function number (Write N*words)
60 02
D.A. address
00 02
Number of words to write
04
Number of bytes to write
F4 01
Word 1 & 2: read 000001F4h
(value of fill time = 500(d)
→ 0.5 sec)
00 00
B9 84
CRC
—
Answer to the request:
On network:
01
10
60
02
00
02
FE
08
01
Slave address
10
Function number (Write N*words)
60 02
D.A. address
00 02
Number of written words
FE 08
CRC
—