90
Modbus RTU control (RS-485 communication)
2. Send the following query to operate I/O and start an operation in the forward direction. The initial values of remote
input are as follows.
•
Remote input (lower): 125 (007Dh)
bit15 bit14 bit13 bit12 bit11 bit10 bit9 bit8
R-IN15
[Not used]
R-IN14
[Not used]
R-IN13
[Not used]
R-IN12
[Not used]
R-IN11
[Not used]
R-IN10
[Not used]
R-IN9
[Not used]
R-IN8
[Not used]
bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0
R-IN7
[ALM-RST]
R-IN6
[Not used]
R-IN5
[FWD/REV]
R-IN4
[RUN/BRAKE]
R-IN3
[START/STOP]
R-IN2
[M2]
R-IN1
[M1]
R-IN0
[M0]
Values in brackets [ ] are initial values. The function to be assigned can be changed with the parameter setting.
•
Query (ON-OFF of input signal)
Field name Data Description
Slave address 01h Slave address 1
Function code 06h Writing to a holding register
Data
Register address (upper) 00h
Register address to be written
Register address (lower) 7Dh
Value write (upper) 00h
Value written to register address
=Turn bit3 to bit5 ON
Value write (lower) 38h
Error check (lower) 18h
Calculation result of CRC-16
Error check (upper) 00h
*
The response is the same as the query.
3. To stop the operation, if the following query is sent to turn the START/STOP input OFF, the motor decelerates to a
stop. (If the RUN/BRAKE input is turned OFF, the motor stops instantaneously).
•
Query (ON-OFF of input signal)
Field name Data Description
Slave address 01h Slave address 1
Function code 06h Writing to a holding register
Data
Register address (upper) 00h
Register address to be written
Register address (lower) 7Dh
Value write (upper) 00h
Value written to register address
=Turn bit4 to bit5 ON (turn bit3 OFF)
Value write (lower) 30h
Error check (lower) 19h
Calculation result of CRC-16
Error check (upper) C6h
*
The response is the same as the query.
*
Setting the value of the rotation speed to 0 r/min can make the motor decelerate to a stop even if the operation input
signal is in an ON state.