Download Operation Manual RM6E1 series

Transcript
Chapter 6
Communication Description
6-9 Programming Examples – Register and Command
6-9-1 Access Drive Function Setting – Write Operation
Write a single register to access drive function setting:
a. Set function F2.00 (primary speed) = 30 Hz
b. Speed setting is directly input by function setting
c. Drive register used: AGnnH  F2.00: G = 2; nn = 00 (decimal value) =
00H(Hex). F2.00 = A200H register
d. Speed = 30Hz  30.00Hz(resolution: 0.01Hz)  30.00 x 100 = 3000
(decimal) = 0BB8H (hex)
e. The host controls only one drive(drive 1)
Code to write to drive register from the host (CRC exclusive)
Drive Register
Register Data
Address
OP Code
MSB
LSB
MSB
LSB
01H
06H
A2H
00H
0BH
B8H
6-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
01H
06H
Drive Register
MSB
LSB
20H
00H
Register Data
MSB
LSB
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
01H
06H
Drive Register
MSB
LSB
20H
00H
Register Data
MSB
LSB
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
Drive Register
Register Data
Address
OP Code
MSB
LSB
MSB
LSB
01H
06H
20H
01H
0BH
BDH
123
6