85
Modbus RTU control (RS-485 communication)
z
STEP 2: Writing to indirect reference areas
Set data
Indirect reference address
Register address
Data to be sent Setting value
Upper Lower
Indirect reference area 0 1340h 1341h
←
Rotation speed of operation data No.1 (r/min) 2000 (07D0h)
Indirect reference area 1 1342h 1343h
←
Torque limiting value of operation data No.1 (%) 100 (0064h)
Indirect reference area 2 1344h 1345h
←
Acceleration time of operation data No.1 (× 0.1 s) 30 (001Eh)
Send the following query and write the setting value of the data to be sent in the indirect reference areas.
Query
Field name Data Description
Slave address 01h Slave address 1
Function code 10h Writing to multiple holding registers
Data
Register address (upper) 13h
Register address to start writing from
Register address (lower) 40h
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
Value of twice the number of registers in the query
(6 registers×2=12 registers: 0Ch)
Value write to register address (upper) 00h
Value written to register address 1340h
=Rotation speed of operation data No.1 2000 r/min (07D0h)
Value write to register address (lower) 00h
Value write to register address +1 (upper) 07h
Value write to register address +1 (lower) D0h
Value write to register address +2 (upper) 00h
Value written to register address 1342h
=Torque limiting value of operation data No.1 100% (0064h)
Value write to register address +2 (lower) 00h
Value write to register address +3 (upper) 00h
Value write to register address +3 (lower) 64h
Value write to register address +4 (upper) 00h
Value written to register address 1344h
=Acceleration time of operation data No.1 3.0 s (001Eh)
Value write to register address +4 (lower) 00h
Value write to register address +5 (upper) 00h
Value write to register address +5 (lower) 1Eh
Error check (lower) 1Bh
Calculation result of CRC-16
Error check (upper) CDh
Refer to p.109 for the operation data command.