Студопедия
Случайная страница | ТОМ-1 | ТОМ-2 | ТОМ-3
АрхитектураБиологияГеографияДругоеИностранные языки
ИнформатикаИсторияКультураЛитератураМатематика
МедицинаМеханикаОбразованиеОхрана трудаПедагогика
ПолитикаПравоПрограммированиеПсихологияРелигия
СоциологияСпортСтроительствоФизикаФилософия
ФинансыХимияЭкологияЭкономикаЭлектроника

The model of the electric drive have the same kind of control inputs and same type of sensor outputs like the real system. That means that control of PWM generator is done in ticks of PWM timer for



Motor Control Project

The model of the electric drive have the same kind of control inputs and same type of sensor outputs like the real system. That means that control of PWM generator is done in ticks of PWM timer for duty cycles and dead-time generation. The control system core and the model are situated in the routine executed by PWM timer interrupt. The model produce data from sensors in their natural format like ADC code with noise.

Model is built in the project for Code Composer Studio integrated development environment. It is written in C and given to a student as a compiled binary file. Binary file instead of source code file is used to hide the motor parameters from the student. So he can only measure them making tests with the model.

The considered model has no sensor service routines like QEP timer compare interrupt for speed estimation. These routines are very special and hardware dependent.

Today existing model includes three types of electrical machines: direct current motor, permanent magnets synchronous machine and induction machine. Every type of the motor contains ten parameters sets for machines from 1 to 30 kW. The connection of the PMSM to the power converter is shown in Fig. 1a (induction motor is connected in a similar way) and connection of the direct current motor is shown in Fig. 1b.

Fig. 1. Power converters and their connection to the motors and control system

All inputs and outputs of the model are collected together in one structure called “ drive ”. The inputs are:

· n — number of the motor type and parameter set (0x for induction motors, 1x for PMSMs and 2x for direct current motors) from 1 to 30;

· cmpr1, cmpr2, cmpr3 — duty cycles for each arm of the converter in ticks of PWM timer;

· tpr — PWM timer period in ticks (timer counts in up/down mode);

· dt — dead-time duration in ticks of PWM timer;

· load — load torque at the motor shaft.

The model outputs are:

· adcSpeed — signal from tachogenerator in ADC scale;

· qepCounter — position counter for incremental encoder;

· hallSensor — position from Hall-sensor;

· iA, iB — signals from current sensors in ADC scale;

· fault — state of the build-in protections: overcurrent, high speed;

· time — time in seconds from the beginning of simulation.

The inverter represented as zero-order hold. Electrical potential for each phase is calculated for one PWM cycle using equation:

where is the DC-link voltage, — the duty cycle for current PWM cycle in ticks, — current in the phase x, — dead-time duration in ticks, — timer period in ticks. This approach gives good results only if the current in the phase is not equal to zero. Then the phase voltages are calculated using known potentials.

The motors are represented with two phase model which is calculated using Runge-Kutta second-order method in a single precision floating point. The direct current motor has saturation in the field winding; induction and permanent magnet machines are linear.

Currents and speed are measured with current sensors and tachogenerator and their values are available as a code from ADC. The ADC noise is added to the actual value using equation:

where x — the exact value of the measured signal from the model, 0x7FE0 — offset, — ADC scale factor.

The rotor position can be sensed using incremental encoder or Hall-sensor. Incremental encoder position is stored in qepCounter variable and varies from zero to number of pulses per revolution. Hall-sensor state can be monitored via hallSensor variable.

The model has current and speed protections and indicates about these faults in fault variable. During debug student can refer time variable of the model time. The time variable is needed if the model and control system execution time is greater than PWM cycle. This may happens if student will choose high PWM frequency or the fixed point microcontroller is used to run the simulation.

 


Дата добавления: 2015-09-29; просмотров: 15 | Нарушение авторских прав




<== предыдущая лекция | следующая лекция ==>
How to Speak on the Infinitive | Thank you for the letter! Terrible news about your doctor’s prescription!

mybiblioteka.su - 2015-2024 год. (0.008 сек.)