84
Modbus RTU control (RS-485 communication)
Setting example
The following is an example of sending data to and receiving data from the address number 1 using indirect reference.
z
STEP 1: Registration in indirect reference addresses
Set data
These are values to set in indirect reference. Set a half value of the register address (upper).
Indirect reference address
Register
address
Data to be sent
Register
address
Setting
value
Upper Lower Upper Lower
Indirect reference address setting (0) 1300h 1301h
←
Rotation speed of operation data No.1 0482h 0483h 0241h
Indirect reference address setting (1) 1302h 1303h
←
Torque limiting value of operation data No.1 0702h 0703h 0381h
Indirect reference address setting (2) 1304h 1305h
←
Acceleration time of operation data No.1 0602h 0603h 0301h
Send the following query and register the setting value of the data to be sent in the indirect reference addresses.
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) 00h
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 1300h
=Rotation speed of operation data No.1
Value write to register address (lower) 00h
Value write to register address +1 (upper) 02h
Value write to register address +1 (lower) 41h
Value write to register address +2 (upper) 00h
Value written to register address 1302h
=Torque limiting value of operation data No.1
Value write to register address +2 (lower) 00h
Value write to register address +3 (upper) 03h
Value write to register address +3 (lower) 81h
Value write to register address +4 (upper) 00h
Value written to register address 1304h
=Acceleration time of operation data No.1
Value write to register address +4 (lower) 00h
Value write to register address +5 (upper) 03h
Value write to register address +5 (lower) 01h
Error check (lower) 97h
Calculation result of CRC-16
Error check (upper) 66h
Refer to p.109 for the operation data command.