15
5
MODBUS FUNCTIONS
s
s
e
r
d
d
A
n
o
i
t
c
n
u
F
l
o
r
t
n
o
C
n
o
i
t
c
n
u
F
l
a
n
r
e
t
n
I
r
e
i
f
i
l
a
u
Q
t
n
u
o
C
e
t
y
B
)
6
1
-
C
R
C
(
d
l
e
i
F
k
c
e
h
C
r
o
r
r
E
1
0
1
4
9
0
8
1
0
0
0
0
E
B
E
5
s
s
e
r
d
d
A
n
o
i
t
c
n
u
F
l
o
r
t
n
o
C
t
n
u
o
C
e
t
y
B
a
t
a
D
)
6
1
-
C
R
C
(
d
l
e
i
F
k
c
e
h
C
r
o
r
r
E
1
0
1
4
9
0
D
0
0
2
0
2
0
2
0
2
0
2
0
3
E
2
1
3
0
2
0
2
0
2
0
2
6
5
5
F
6
F
5.10
User Defined – Function Code 65
5.10.1
User Defined Query
The user defined function makes available to the user a range of non-standard Modbus query responses. The information field
comprises of a control byte which defines control type, an internal function byte designating the action to be taken, a qualifier byte
the usage of which is dependent on the user defined task and a byte specifying the number of bytes to follow in the information
data string.
Example
– a user defined read instrument version (internal function 24) of slave 01 is shown below.
The control byte has no effect, valid qualifier and byte counts are zero only and other values return an exception response.
5.10.2
User Defined Response
The addressed slave responds with its address and function code followed by the information field. The information field
comprises of the control byte, one byte defining the quantity of data bytes in the response information string and the data string.
Example
: