1 ModbusTCP Communication (Server)
KW2D Series Smart RFID Reader User’s Manual
4-5
4
Co
m
m
un
ica
tio
n F
un
ctio
n
●
Error code
The error code stored in the NG response is as follows.
1.3 ModbusTCP Communication Shared Memory
Shared memory is memory accessed from a ModbusTCP client.
Example: Write "8003h", "1234h", ..., "5678h" to the holding registers 0008 to 0032 (25 words).
Example: Try to access multiple holding registers for slave addresses that are out of range
For details on the error code, refer to "Error code".
Error code
Contents
Details
01h
Function code error
Received an unsupported function code.
02h
Access destination error An attempt was made to read or write a slave address outside the range.
03h
Number of data error
1-bit write data error
The number of bits, words, data, or 1-bit write data is incorrect.
12h
Frame length error
Received a frame with a length outside the range.
Shared Memory
ModbusTCP Server
Device Name
Address No.
Device Name
Address No.
Coil Relay
0001 to 0016
Coil Relay
000001 to 000016
0017 to 0064
-
Input Relay
0001 to 0016
Input Relay
100001 to 100016
0017 to 0032
100017 to 100032
0033 to 0064
-
Input Register
0001 to 0032
Input Register
300001 to 300032
Holding Register
0001 to 0032
Holding Register
400001 to 400032
When the power is turned on or reset, the initial value is set in the shared memory.
00h
07h
10h
32h
19h
Function
code
Start address
number
Number of
words to
write
(
1 byte
)
(
2 bytes
)
03h
80h
(
1 byte
)
(
1 byte
)
Number of
data to
write
Upper
byte
Lower
byte
Upper
byte
Lower
byte
Upper
byte
Lower
byte
12h
. . .
34h
78h
56h
(
1 byte
) (
1 byte
) (
1 byte
)
(
1 byte
)
(
1 byte
)
(
1 byte
)
...
Data to write
Request
Start address
number
Number of
words written
(
2 bytes
)
(
1 byte
)
00h
07h
10h
19h
Function code
(
1 byte
)
ACK Reply
Error code
(
1 byte
)
02h
90h
Function code
(
1 byte
)
NAK Reply