EasyManua.ls Logo

TPG CA-202A - 6-9 Programming Examples - Register and Command

Default Icon
200 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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:
nction F2.00 (primary speed) = 30 Hz
ng is directly input by function setting
e register used: AGnnH F2.00: G = 2; nn = 00 (decimal value) =
.00 = A200H register
.01Hz) 30.00 x 100 = 3000
) = 0BB8H (hex)
ols only one drive(drive 1)
Cod driv the host (CRC exclu
Drive Register
a. Set fu
b. Speed setti
c. Driv
00H(Hex). F2
d. Speed = 30Hz 30.00Hz(resolution: 0
(decimal
e. The host contr
e to write to e register from sive)
Register Data
Address OP Code
B MSB LSB MS LSB
01H 06H B8H A2H 00H 0BH
6-9-2 t Control to rite Operati
hen the host co y Mo ion, user can simply create
icon or active tton t drive. The following examples
ows how to pro he co
tart the drive
a. Create an ic ctive he host for “Drive Start”
b. Program the ith th e for “Drive Start”
c. The drive register to be operation: 2000H
d. The register d r star
Drive Register Register Data
Hos
W
Drive – W
ntrol b
on
dbus communicat
an key/bu o activate the
sh gram t
:
mmunication control.
1. S
on or a button/key on t
host w e following cod
written for start
ata fo t operation: 0002H
Address OP Code
B MSB LSB MS LSB
01H 06H 00H 02H 20H 00H
2. Forward rotat ma
a. Create an ic tive ost for “Forward”
b. Program the ith fo r “Forward” rotation control
c. The drive register to be and: 2000H
d. The register for
Driv Register Data
ion com nd:
on or ac button/key on the h
host w llowing code fo
written for forward comm
data for ward command: 0010H
e Register
Address OP Code
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
Drive Register Register Data
Address OP Code
MSB LSB MSB LSB
93

Table of Contents

Related product manuals