ID share mode
36
Setting example of data to be written
To set parameters, use “Writing to multiple holding registers (10h)” of the function code.
This section explains an example that “Direct data operation operating speed,” “Direct data operation starting/
changing rate,”, and “Direct data operation stopping deceleration” are set in the “Share write data” parameter of the
slave addresses 1 and 2.
z
Setting item
Description
Register address
Data to be written
ID
Hex
Dec
Share write data 0 (upper)
09A8h (2472)
Direct data operation operating speed
0000h
47
Share write data 0 (lower)
09A9h (2473)
002Fh
Share write data 1 (upper)
09AAh (2474)
Direct data operation starting/changing rate
0000h
48
Share write data 1 (lower)
09ABh (2475)
0030h
Share write data 2 (upper)
09ACh (2476)
Direct data operation stopping deceleration
0000h
49
Share write data 2 (lower)
09ADh (2477)
0031h
Different data can be set for each slave address.
Setting example
Slave address 1: Direct data operation operating speed, Direct data operation starting/changing
rate, Direct data operation stopping deceleration
Slave address 2: Direct data operation operation data number, Direct data operation operation
type, Direct data operation operating current
z
Setting flow
1. Send the following query in the unicast mode, and set the data to be written to the driver of the slave address 1.
Query (unicast mode)
Field name
Data
Description
Slave address
01h
Driver of slave address 1
Function code
10h
Writing to multiple holding registers
Data
Register address (upper)
09h
Register address to start writing from
= Share write data 0 (upper): 09A8h
Register address (lower)
A8h
Number of registers (upper)
00h
Number of registers to be written from the starting
register address = 6 registers (0006h)
Number of registers (lower)
06h
Number of data bytes
0Ch
Twice the number of registers in the query
Value write to register address (upper)
00h
Value written to register addresses 09A8h and 09A9h
= Direct data operation operating speed ID
(0000h, 002Fh)
Value write to register address (lower)
00h
Value write to register a1 (upper)
00h
Value write to register a1 (lower)
2Fh
Value write to register a2 (upper)
00h
Value written to register addresses 09AAh and 09ABh
= Direct data operation starting/changing rate ID
(0000h, 0030h)
Value write to register a2 (lower)
00h
Value write to register a3 (upper)
00h
Value write to register a3 (lower)
30h
Value write to register a4 (upper)
00h
Value written to register addresses 09ACh and 09ADh
= Direct data operation stopping deceleration ID
(0000h, 0031h)
Value write to register a4 (lower)
00h
Value write to register a5 (upper)
00h
Value write to register a5 (lower)
31h
Error check (lower)
FAh
Calculation result of CRC-16
Error check (upper)
DAh