Chapter 8 Operation Procedures and Fault Protection
139
8
7-9 Programming Examples
– Register and Command
7-9-1 Access Drive Function Setting
– Write Operation
Write a single register to access drive function setting:
Ex: Set function F_031 (primary speed) = 30 Hz
a. Register address: 001FH ( 31 (decimal) = 001FH (hex) )
b. Speed =
:
0BB8H
(
30Hz
30.00Hz(resolution: 0.01Hz)
30.00
÷
0.01 = 3000 (decimal) = 0BB8H (hex)
Code to write to drive register from the host (CRC exclusive)
Address
OP Code
Drive Register
Register Data
MSB
LSB
MSB
LSB
01H
06H
00H
1FH
0BH
B8H
7-9-2 Host Control to Drive
– Write Operation
When the host control by Modbus communication, user can simply create
an icon or active key/button to activate the drive. The following examples
shows how to program the communication control.
1. Start the drive:
a. Create an icon or active button/key on the host for
―Drive Start‖
b. Program the host with the following code for
―Drive Start‖
c. The drive register to be written for start operation: 2000H
d. The register data for start operation: 0002H
Address
OP Code
Drive Register
Register Data
MSB
LSB
MSB
LSB
01H
06H
20H
00H
00H
02H
2. Forward rotation command:
a. Create an icon or active button/key on the host for
―Forward‖
b. Program the host with following code for
―Forward‖ rotation control
c. The drive register to be written for forward command: 2000H
d. The register data for forward command: 0010H
Address
OP Code
Drive Register
Register Data
MSB
LSB
MSB
LSB
01H
06H
20H
00H
00H
10H
3. Speed Setting (frequency command)
– without using drive function
setting:
Set the speed to be 30.05Hz (resolution: 0.01Hz)
a. The drive register to be written for Speed setting(frequency
command): 2001H
b. Convert 30.05Hz to hexadecimal value:
30.05 x 100 (by the resolution) = 3005 (decimal) = 0BBDH
Address
OP Code
Drive Register
Register Data
MSB
LSB
MSB
LSB
01H
06H
20H
01H
0BH
BDH
4.Primary Acceleration/Deceleration Time Setting:
Set the acceleration/deceleration time = 1.5 seconds (resolution: 0.1
seconds)
a. Set F_019 (Primary accel time) = 1.5 seconds
Summary of Contents for RM6F5 series
Page 1: ...AC MOTOR DRIVE Operation Manual RM6F5 series ...
Page 194: ...Notes 194 Notes ...
Page 195: ...Notes 195 Notes ...