Descriptions Of The Control Program; Contents Of Control; Motor Start/Stop; A/D Converter - Renesas RA6T2 Application Note

Vector control for permanent magnetic synchronous motor with encoder - ab incremental type encoder
Hide thumbs Also See for RA6T2:
Table of Contents

Advertisement

RA6T2
Vector control for permanent magnetic synchronous motor with encoder - AB incremental type encoder

3. Descriptions of the control program

The target software of this application note is explained here.

3.1 Contents of control

3.1.1 Motor start/stop

Starting and stopping of the motor are controlled by input from 'Renesas Motor Workbench' or SW1.
A general-purpose port is assigned to SW1 and based upon its level the motor operation is controlled.
"High" level → Motor Start
→ Motor Stop
"Low" level

3.1.2 A/D Converter

(1) Motor rotation speed reference
The rotation speed and position command value of the motor is determined from the input from 'Renesas
Motor Workbench' or the output value (analog value) of VR1. Rotation speed and position command value
from VR1 is measured as shown in the table below.
Table 3-1 Conversion Ratio of the Rotation Speed Reference
Item
Rotation speed
reference
Position
reference
(2) Inverter bus voltage
Inverter bus voltage is measured as shown in the table below. It is used for calculation of modulation rate
and detection of overvoltage and undervoltage (PWM stops in case of abnormality).
Table 3-2 Inverter Bus Voltage Conversion Ratio
Item
Inverter bus voltage
(3) U, W phase current
The U, V and W phase currents are measured as shown in Table 3-3 and used for vector control. User can
select only U and W phase currents to use as 2shunt resistances detection.
Table 3-3 Conversion Ratio of U, V and W Phase Current
Item
U, W phase current
Note: For more details of A/D conversion characteristics, refer to "RA6T2 Group User's Manual: Hardware".
R01AN6208EJ0101 Rev.1.01
Oct 18, 2022
Conversion ratio (reference: A/D conversion value)
CW
0 rpm to 4000 rpm: 0800H to 0FFFH
CCW
0 rpm to 4000 rpm: 07FFH to 0000H
CW
0 rpm to 180 degrees: 0800H to 0FFFH
CCW
0 rpm to 180 degrees: 07FFH to 0000H
Conversion ratio (Inverter bus voltage: A/D conversion
value)
0 [V] to 73.26 [V]: 0000H to 0FFFH
Conversion ratio (U, V, W phase current: A/D conversion
value)
-8.25 [A] to 8.25 [A]: 0000H to 0FFFH
Current = (3.3V-1.65V)/(0.01Ohm*20) =8.25A
(Note)
Channel
AN008
Channel
AN006
Channel
Iu: AN004
Iv: AN002
Iw: AN000
Page 22 of 71

Advertisement

Table of Contents
loading

Table of Contents