Está en la página 1de 113

o

Start

o
o

o
o

o
o

o
o

o
Duty Ratio Calculator.

Duty Ratio Calculator

o
inf,
o

o
Duty Ratio
Calculator
DS1104ADC C5
DS1104ADC C5

Gain

Terminator Gain motor


(Take 10 readings from 0 to 2000rpm)
DIGITAL I/O
IO11/12
IO11/12 IO10
IO10/11/12
0 1/Vd
Duty cycle a
V_motor + 1/2
1/Vd + dAdB
Duty cycle b
-1 Gain2

Gain1 1 0 Duty cycle c

Constant dC PWM Stop


DS1104SL_DSP_PWM3
0
ADC 20
PWM Control
DS1104 ADC_C5 motor_current la

Avg Block

Enc position
Enc delta position 2*pi / (Ts*1000) Wm_dist Wm 60 / (2*pi) wm_RPM
DS1104 ENC_POS_CI
Gain 5 Speed_rpm

Encoder
Master Setup
DS1104 ENC_SETUP
SLAVE BIT
OUT
DS1104 SL_DSP_BIT_OUT_C11
1 boolean

SD Data type Conversion 1 SLAVE BIT


OUT
DS1104 SL_DSP_BIT_OUT_C12

SLAVE BIT
1 boolean
OUT
Reset Data type Conversion 2 DS1104 SL_DSP_BIT_OUT_C10
no_load.mdl.
Note the speed output is in radians/sec.
DS1104SL_DSP_PWM

DS1104SL_DSP_PWM

CURR. A2

(CURR. A2)
DS1104ADC_C5
1 SLAVE BIT
boolean
OUT
Reset Data type Conversion 2 DS1104 SL_DSP_BIT_OUT_C10

wm_ref

Wref_4quad
wm i_ref Ia_ref

reset Ia 1 Vc Duty cycle a


PI_Speed_reset + 1/2
reset +
Duty cycle b
-1 Gain2
PI_Current_reset
Gain1 1 0 Duty cycle c

constant dC PWM Stop


DS1104SL_DSP_PWM3
ADC 20 0

DS1104 ADC_C5 motor_current PWM Control

Avg Block

Enc position
Enc delta position 2*pi / (Ts*1000) Wm_dist Wm 1
DS1104 ENC_POS_CI
Gain 5 motor_speed

Encoder
Master Setup
DS1104 ENC_SETUP
1 SLAVE BIT
boolean
OUT
Reset Data type Conversion 2 DS1104 SL_DSP_BIT_OUT_C10

wm_ref

Wref_4quad
wm i_ref Ia_ref

reset Ia 1 Vc Duty cycle a


PI_Speed_reset + 1/2
reset +
Duty cycle b
-1 Gain2
PI_Current_reset
Gain1 1 0 Duty cycle c

constant dC PWM Stop


DS1104SL_DSP_PWM3
ADC 20 0

DS1104 ADC_C5 motor_current PWM Control

Avg Block

Enc position
Enc delta position 2*pi / (Ts*1000) Wm_dist Wm 1
DS1104 ENC_POS_CI
Gain 5 motor_speed

Encoder
Master Setup
DS1104 ENC_SETUP
0 1/Vd
Duty cycle a
V_motor + 1/2
1/Vd +
Duty cycle b
-1 Gain2

Gain1 1 0 Duty cycle c

Constant dC PWM Stop


DS1104SL_DSP_PWM3
0
ADC 20
PWM Control
DS1104 ADC_C5 motor_current 2

Avg Block

Enc position
Enc delta position 2*pi / (Ts*1000) Wm_dist Wm 1
DS1104 ENC_POS_CI 3
Gain 5 Speed_rad/sec

Encoder
Master Setup
DS1104 ENC_SETUP

SLAVE BIT
1 boolean
OUT
Reset Data type Conversion 2 DS1104 SL_DSP_BIT_OUT_C10

0.15

Tfinal 0

0 1 1/Ke Ia_ref
PWM Channel 1
d2
Torque_step Switch Torque_ref Ia_ref
Ia 1 Vc
PWM Channel 2
0 dA1
+ 1/2
reset +
Tinitial
-1 PWM Channel 3
Gain 4 dB1
ADC 20 Gain3 1 PWM Channel 4
DS1104SL_DSP_PWM 1
DS1104 ADC_C6 motor_current 1 constant 1
0
Ke d3
1
Tem_actual
Ia Rs Ls

Va kew
Index

DS1104ENC_HW_INDEX_C1
ENCODER SET
POSITION
Theta da calculations
DS1104ENC_SET_POS_C1

EncPos
Theta_da
theta_initial theta_initial
theta_initial Subsystem w
Enc position
Wm2 W_mech(RPM)In1 1
Enc delta position Go to 2
f
DS1104 ENC_POS_CI
Speed Measurement f

Go to
ENCODER
MASTER SETUP
1 1/Vd +
DS1104 ENC_SETUP +
- Duty cycle a
c3 +
0.5
Switch
c4 Duty cycle b

+
+
0.5 Duty cycle c
d_lim
DC_CMvoltage DS1104SL_DSP_PWM3
1

Lock 1/Vd
Current controller abc dq
Duty ratio generation for locking the rotor
Ia a
X Product
Ia b
Current reference Current sensing is_dq
c
Ib

Ib theta_da Reset From 1


- -
0 + Isdq -
isd* vsd
Isd_ref Vsdq_ref
- reset
0 + vsq V_abc* To start the system:
Subsystem1 1. Uncheck Lock
Isd_ref 2. Uncheck Reset
theta_da 4. set the reference Isq=0.5 A on no load
Reset From 2 dq abc 5. note that fs = 50 KHz

Resetlnteg
-
1 + Reset

const Go to 1
Index

DS1104ENC_HW_INDEX_C1
ENCODER SET
POSITION
DS1104ENC_SET_POS_C1

EncPos
Theta_da
theta_initial theta_initial
theta_initial Subsystem
Enc position w
Wm2
Enc delta position W_mech(RPM)In1
Go to 2
DS1104 ENC_POS_CI
Speed Measurement

ENCODER
MASTER SETUP
1 1/Vd +
DS1104 ENC_SETUP +
- Duty cycle a
c3 +
0.5
Switch
c4 Duty cycle b

+
+
0.5 Duty cycle c
d_lim
DC_CMvoltage DS1104SL_DSP_PWM3
1

Lock 1/Vd
abc dq

Ia a
X Product
Ia b
is_dq
c
Ib

Ib theta_da Reset From 1


0 - -
0 + Isdq -
isd* vsd
From 3
Isd_ref Vsdq_ref
- speed
0 + - reset
+ vsq V_abc* To start the system:
Isdq_ref
w_ref Subsystem1 1. Uncheck Lock
reset
2. Uncheck Reset
theta_da 4. set the reference
Subsystem2
Reset From 2 dq abc 5. note that fs = 50 KHz

Reset
1
From 2
Resetlnteg
-
1 + Reset

const Go to 1
Vd + 1
-
Vdc Vat
Va

Vslip
Vd/2 In RMS
0 Varms
Duty cycle a Vd
slip_v/fControl RMS_Va_IM
Switch
Vm
Duty cycle b
0.5
0 duty a, b, c
Duty cycle c
V/f d_lim
Ref_frequency f
duty cycle generation IM 0 PWM Stop
DS1104SL_DSP_PWM3
c2
0 -1/0.08

Tref
Switch
Gain
0

Torque_SpeedControl

0
2*pi/ +
0 + error -
- 800
PWM Channel 1
Wref Iref_load d2

rad/s error PWM Channel 2


Speed Measurement Reset dA1
PI_speed Vref_load Vref_PI duty
W_mech(RPM) 2/60 PWM Channel 3
Hzmech Reset dB1
Hz_elec
PI_Current duty cycle generation DC
PWM Channel 4
0
DS1104SL_DSP_PWM1
Reset 0

ADC 20 D3

DS1104ADC_C6 I_dcmotor Idc

ADC 20

Ia_imotor Ia(t)
DS1104ADC_C5

ENCODER
MASTER SETUP In RMS
Iarms
DS1104 ENC_SETUP

RMS_Ia_IM
(10 points)
Vd + 1
-
Vdc Vat
Va
[dabc] Vd/2
Go to 1
Vd
In RMS
Varms
V/f Duty cycle a
RMS_Va_IM
0.15 Vm
Duty cycle b
duty a, b, c
[wslip] + 2/80 Duty cycle c
+ d_lim
f_sync(Hz) f
From 2
duty cycle generation IM 0 PWM Stop
f
0
DS1104SL_DSP_PWM3
c2
open/closed_loop

[wsync_mech_RPM]

[dabc]
0 2/80 Tem_estimate
From
Wref(RPM) f_sync(HZ)2 X f(u) Vd + 0.95 X
- 600 1/z [wslip]

ID dA Power eff
wslip_RPM Saturation wslip Go to 2

ADC 20 - 1 0
-
DS1104ADC_C5 Ia_imotor Ic_imotor pow_compensation

In RMS [wsync_mech_RPM] 2*pi/80

Iarms From 1 wsync_rad/sec


ADC 20

DS1104ADC_C8 Ib_imotor RMS_Ia_IM


Speed Measurement

w_mech(RPM) ENCODER
MASTER SETUP
DS1104 ENC_SETUP 0

PWM Channel 1
d2
0 -1/0.08 + error PWM Channel 2
- dA1
Tref Gain Vref_load Vref_PI duty
PWM Channel 3
0 Reset dB1

PI_Current duty cycle generation DC PWM Channel 4


Reset
DS1104SL_DSP_PWM1
0

ADC 20 D3

DS1104ADC_C6 I_dcmotor Idc

-0.08

TDC temactual
10 points

También podría gustarte