
10
INZ-TN5A0506-E
5.4 Function Code
According to MODBUS protocol, register numbers are assigned by function codes. Each function code acts on
specific register number.
This correspondence is shown in Table 5-2, and the message length by function is shown in Table 5-3.
Table 5-2 Correspondence between function codes and objective address
Function Code
Register No.
No. Function Remedy
No.
Contents
03
H
reading (continuance) Holding register
4xxxx Reading/writing Word data
04
H
reading (continuance) Input register
3xxxx Reading
Word data
06
H
Writing
Holding register
4xxxx Reading/writing Word data
10
H
Writing (continuance) Holding register
4xxxx Reading/writing Word data
Table 5-3 Function code and message length
[UNIT: byte]
Command
message
Response
message
Function Code
Contents
Designated
data
Mini.
Max.
Mini. Max.
03
H
Read word data
64 words
8
8
7
133
04
H
Read word (Read only)
64 words
8
8
7
133
06
H
Write word data
1 word
8
8
8
8
10
H
Write continuous word data
64 words
11
137
8 8
Содержание ZKM
Страница 37: ......