FG_F6_MODBUS_EN_01 / 2020-06-17
50 / 74
Reading of the parameters
The parameters are dependents of the program number.
Put the wanted program in edition before executing command.
•
Standard access
This is an example based on the reading of three parameters:
—
Test type
(identifier number 21)
—
Fill time
(identifier number 1)
—
Stabilization time
(identifier number 2)
Master
Slave
—
Put in edition the program number on which the
parameters have to be read
—
Make a
Write N*words
request of 4 words at the
0000h
address, with the number of parameters to
read (Word 1) and their identifiers (Word 2, 3 and
4).
On network:
01
10
00
00
00
04
08
03
00
15
00
01
00
02
00
F4
36
01
Slave address
10
Function number (Write N*words)
00 00
Word address (Read parameters)
00 04
Number of words to write
08
Number of bytes to write
03 00
Word 1: write 0003h (3 param. to read)
15 00
Word 2: write 0015h (identifier n°21)
01 00
Word 3: write 0001h (identifier n°1)
02 00
Word 4: write 0002h (identifier n°2)
F4 36
CRC
—
Answer to the request:
On network:
01
10
00
00
00
04
C1
CA
01
Slave address
10
Function number (Write N*words)
00 00
Word address (Read parameters)
00 04
Number of written words
C1 CA
CRC
—
Make a
Read N*words
request of 9 words at the
0000h
address, to retrieve the read parameters
with their identifier on a word and their value on a
long. (3 parameters * (1 + 2) words = 9 words)
On network:
01
03
00
00
00
09
85
CC
01
Slave address
03
Function number (Read N*words)
00 00
Word address (Read parameters)
00 09
Number of words to read
85 CC
CRC