Русская версия English version

Model-based development of software for saving and recovery of electric drive setting parameters

I.S. Polyuschenkov

Vestnik IGEU, 2025 issue 2, pp. 59—68

Download PDF

Abstract in English: 

Background. The operation of electric drives with microprocessor control depends on the setup parameters that are the variables of its software. Among them are the parameters of the sensors, power converter, electric motor, driven mechanism, as well as the parameters of the controllers and feedbacks of the automatic motion control system. These parameters must be stored in a non-volatile read-only memory, accessible for writing and reading, and, if necessary, be restored to the random-access memory of the microcontroller. Software for access to such memory in the form of a separate chip with a digital interface or in the form of flash memory of the microcontroller of the control system is an integral part of the software of the electric drive as a whole. Therefore, its development should be carried out by specialists in the field of electric drives. However, their professional level has gaps in the field of modern microprocessor technology, programming technologies, as well as the theory and practice of data transfer.

Materials and methods. When developing software to save and restore the electric drive parameters, methods of model-based design and debugging, algorithmic method of control processes, as well as methods of experimental research have been used.

Results. The article presents a detailed solution for model-based development of software for accessing a programmable read-only memory chip via the I2C interface and to the flash memory of the microcontroller for the purpose of writing and reading data with the parameters of the electric drive setup. Using model-based programming tools, the software is compiled in the form of functionally complete model circuits. The model block of the I2C interface setup master has been used to set the parameters. And the model processing block has been used to generate signals during data transmission, capture signals during reception, and handling faults. The model circuits have been supplemented with subroutines developed in the C language. They coordinate their execution, form data for writing using the electric drive parameters, and restore these parameters after reading the data. In a similar manner, model circuits and subroutines in the C language have been developed for accessing the flash memory of the microcontroller.

Conclusions. The result of the development is aimed at expanding the theory and practice of applying model-based programming as a full-fledged technology to develop software of microprocessor systems for various subject fields. The content and subject matter of this development helps fill the gaps in the professional level of electromechanical engineers, so that they can independently develop full-featured software for various microprocessor control systems of electric drives.

References in English: 

1. Anuchin, A.S. Sistemy upravleniya elektroprivodov [Control systems of electric drives]. Moscow: Izdatel'skiy dom MEI, 2015. 373 p.

2. Terekhov, V.M., Osipov, O.I. Sistemy upravleniya elektroprivodov [Control systems of electric drives]. Moscow: Izdatel'skiy tsentr «Akademiya», 2005. 304 p.

3. Polyuschenkov, I.S. Model'no-orientirovannoe programmirovanie kak instrument inzhenera-elektromekhanika [Model-based programming as a technique of electromechanical engineer]. Vestnik IGEU, 2023, issue 1, pp. 60–70. DOI: 10.17588/2072-2672.2023.1.060-070.

4. Denisenko, V.V. Komp'yuternoe upravlenie tekhnologicheskim protsessom, eksperimentom, oborudovaniem [Computer control of process, experiment, equipment]. Moscow: Goryachaya liniya–Telekom, 2009. 608 p. 

5. Polyuschenkov, I. Model-oriented Programming Technique in The Development of Electric Drive Control System. 2019 26th International Workshop on Electric Drives: Improvement in Efficiency of Electric Drives (IWED), 2019, pp. 1–6. DOI: 10.1109/IWED.2019.8664388.

6. Sommerville, I. Software engineering. Wokingham etc.: Addison – Wesley, 2011.

7. D'yakonov, V.P. Matlab 6.5 SP1/7 + Simulink 5/6 v matematike i modelirovanii [Matlab 6.5 SP1/7 + Simulink 5/6 in mathematics and modelling]. Moscow: SOLON-Press, 2005. 576 p.

8. Polyuschenkov, I.S. Model’no-orientirovannaya razrabotka sinkhronno-sledyashchego elektroprivoda [Model-based development of a servo tracking electric drive]. Elektrotekhnika, 2021, issue 12, pp. 29–36. DOI: 10.53891/00135860_2021_12_29.

9. Podbel'skiy, V.V., Fomin, S.S. Kurs programmirovaniya na yazyke C [Programming course in C]. Moscow: DMK Press, 2012. 384 p.

10. Polyuschenkov, I.S. Razrabotka sistemy upravleniya elektroprivoda panoramnykh stekloochistiteley i ee issledovanie [Development and research of the control system of the electric drive of panoramic windscreen wipers]. Izvestiya MGTU MAMI, 2022, vol. 16, no. 4, pp. 345–356. DOI: 10.17816/2074-0530-109188.

Key words in Russian: 
модельно-ориентированное программирование, электропривод, шина I2C, микроконтроллер, электрически стираемое перепрограммируемое постоянное запоминающее устройство, флэш-память
Key words in English: 
model-based programming, electric drive, I2C bus, microcontroller, electrically erasable programmable read-only memory, flash memory
The DOI index: 
10.17588/2072-2672.2025.2.059-068
Downloads count: 
11