89
Modbus RTU control (RS-485 communication)
11.8 Setting example
As an example, this section explains how to perform the following operation.
z
Setting example
•
Address number (slave address): 1
•
Operation data number: 0
•
Rotation speed setting value: 2000 r/min
•
Torque limiting setting value: 100
•
Acceleration time setting value: 10 (=1.0 s)
•
Deceleration time setting value: 5 (=0.5 s) (initial value)
z
Operation input
Remote input, 3-Wire mode (initial value)
11.8.1 Setting with direct reference
1. Send the following query to set each operation data of the operation data No.1.
•
Query (setting of rotation speed)
Field name Data Description
Slave address 01h Slave address 1
Function code 06h Writing to a holding register
Data
Register address (upper) 04h
Register address to be written
Register address (lower) 81h
Value write (upper) 07h
Value written to register address
=2000
Value write (lower) D0h
Error check (lower) DBh
Calculation result of CRC-16
Error check (upper) 7Eh
*
The response is the same as the query.
•
Query (setting of torque limiting value)
Field name Data Description
Slave address 01h Slave address 1
Function code 06h Writing to a holding register
Data
Register address (upper) 07h
Register address to be written
Register address (lower) 01h
Value write (upper) 00h
Value written to register address
=100
Value write (lower) 64h
Error check (lower) D8h
Calculation result of CRC-16
Error check (upper) 95h
*
The response is the same as the query.
•
Query (setting of acceleration time)
Field name Data Description
Slave address 01h Slave address 1
Function code 06h Writing to a holding register
Data
Register address (upper) 06h
Register address to be written
Register address (lower) 01h
Value write (upper) 00h
Value written to register address
=10
Value write (lower) 0Ah
Error check (lower) 58h
Calculation result of CRC-16
Error check (upper) 85h
*
The response is the same as the query.