ID share mode
37
Response (unicast mode)
Field name
Data
Description
Slave address
01h
Same as query
Function code
10h
Same as query
Data
Register address (upper)
09h
Same as query
Register address (lower)
A8h
Number of registers (upper)
00h
Same as query
Number of registers (lower)
06h
Error check (lower)
C2h
Calculation result of CRC-16
Error check (upper)
77h
2. Set the data to be written to the driver of the slave address 2 as in the step 1.
Parameters having set in the unicast mode are cleared when the main power supply and the control
power supply are turned off because they are stored in RAM. If the “Write batch NV memory” of the
maintenance command is executed, parameters are saved in the non-volatile memory. Therefore,
they are retained even if the main power supply and the control power supply are turned off.
8-5
Executing read/write
Read and write data in the ID share mode.
The following function codes are used for reading and writing data.
•
Read only: Reading from a holding register(s) (03h)
•
Write only: Writing to multiple holding registers (10h)
•
Read/write: Read/write of multiple holding registers (17h)
When “Read/write of multiple holding registers (17h)” of the function code is used, write is executed first, and then
read is executed. Queries are sent in the order of read and write. The order to send cannot be changed.
Read
Read the value (16 bits) using the “Share read data” area of the ID share register address. Up to 24 successive registers
(24 × 16 bits) can be read.
Read the upper and lower values at the same time. If not, an invalid value may be read.
If multiple holding registers are read, they are executed in the order of ID share register addresses.
ID share register address of “Share read data” area
ID share register address
Name
Upper
Lower
0000h (0)
0001h (1)
Share read data 0
0002h (2)
0003h (3)
Share read data 1
0004h (4)
0005h (5)
Share read data 2
0006h (6)
0007h (7)
Share read data 3
0008h (8)
0009h (9)
Share read data 4
000Ah (10)
000Bh (11)
Share read data 5
ID share register address
Name
Upper
Lower
000Ch (12)
000Dh (13)
Share read data 6
000Eh (14)
000Fh (15)
Share read data 7
0010h (16)
0011h (17)
Share read data 8
0012h (18)
0013h (19)
Share read data 9
0014h (20)
0015h (21)
Share read data 10
0016h (22)
0017h (23)
Share read data 11