Design and implementation of magnetic field controller for aluminum electromagnetic casting based on DSP

Publisher:WhisperingWishLatest update time:2009-10-26 Source: 电子技术Keywords:DSP Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

0 Introduction

Aluminum alloy is an important civil and strategic metal material, and its mechanical properties are closely related to the grain size and morphology of the alloy. However, the crystallized aluminum alloy without refinement has coarse grains, well-developed columnar crystals, and poor deep drawing performance, which seriously affects its quality. Studies have shown that during the casting production process, introducing a special low-frequency composite electromagnetic field in the casting area can effectively refine the grains and improve the surface quality of the ingot.

Aiming at the control requirements of special composite magnetic field in aluminum electromagnetic casting, and based on the actual operation of aluminum electromagnetic field rapid casting and rolling controller in Fujian Ruimin Aluminum Plate and Strip Plant which was studied and designed in the previous stage, this paper studies and designs a composite magnetic field controller based on DSP (TMS320F2808) + single chip computer (C8051F410) + CPLD (EPM7128).

1 Overall system design

The composite magnetic field control system uses DSP (TMS320F2808) as the main control processing core and single-chip microcomputer as the dedicated human-machine interface control core. The DSP and single-chip microcomputer use the synchronous serial SPI interface for communication. The CPLD completes the formation of the thyristor trigger pulse. This paper specially designs a triggering method using a high-frequency double narrow pulse train. The acquisition of each analog quantity uses an external bipolar 16-bit AD based on the consideration of improving accuracy. The overall block diagram of the system is shown in Figure 1.

System overall block diagram

1.1 System Hardware Design

(1) System main circuit design

The electromagnetic induction device that generates a special composite magnetic field is one of the key technologies for aluminum electromagnetic field semi-continuous casting. According to the special process requirements of electromagnetic semi-continuous casting and the special structure of the composite magnetic field sensor, the AC-AC frequency conversion method is selected as the frequency conversion method of the composite magnetic field controller, and the main circuit structure different from the traditional AC-AC frequency conversion method is designed, as shown in Figure 2.

Thyristor circuit topology

L and L' are two load coils wrapped around the same iron core inside the electromagnetic induction device (note that there is no electrical connection between the two). Both the VF group and VR group converters use three-phase bridge full-controlled rectification. When the VF group is working, the coil L obtains the corresponding positive half-wave current, and when the VR group is working, the coil L' obtains the corresponding negative half-wave current. Superimposing the two on the same iron core is equivalent to introducing a special current required for a complete electromagnetic casting into the load coil, thereby ultimately obtaining a special electromagnetic field to achieve the control purpose.

(2) Thyristor trigger pulse design

A new driving scheme is proposed for the currently commonly used method of driving thyristors with double narrow pulses. A high-frequency double narrow pulse train is used to replace the ordinary double narrow driving pulse. According to the energy transmission theory of pulse transformers, the new scheme has higher energy transmission efficiency and can greatly save the volume of pulse transformers.

The conventional method of generating high-frequency double narrow pulse trains is to use double narrow pulses to control the output of a high-frequency oscillator to obtain high-frequency double narrow pulse trains. This method has the defect that the pulse leading edge of the high-frequency double narrow pulse train and the double narrow pulse are inconsistent, which will lead to inaccurate trigger angles, which needs to be improved in the drive control of high-power thyristors. This paper designs a method that uses CPLD to generate double narrow pulses and, through certain processing, turns them into high-frequency double narrow pulse trains. After simulation and practice, significant results have been achieved. The principle block diagram of the formation of high-frequency double narrow pulse trains is shown in Figure 3.

Principle block diagram of high frequency double narrow pulse train formation

(3) SCI to RS485 circuit

The three-way high-speed photoelectric isolation (TLP113) is to prevent the interference signal on the bus from entering the DSP controller and improve the anti-interference ability of the system communication. The low-power RS485 half-duplex transceiver (SP3485) completes the RS485 communication interface circuit. The specific implementation is shown in Figure 4. The light-emitting diode in the figure is used to display the sending and receiving status of the communication data. A 120W matching resistor is connected between the two output leads of RS485, and a first-order low-pass filter is performed respectively. It should be noted that the power supply and ground at both ends of the optical isolator must be absolutely insulated to achieve true isolation.

SCI to RS485 circuit

(4) Ferroelectric storage and watchdog circuit design

Aluminum electromagnetic casting composite magnetic field controller involves a series of parameter settings and storage, and may be frequently modified repeatedly. In addition, the on-site working environment is harsh. In order to improve the anti-interference ability of the system, an external system watchdog must be installed. In view of the above reasons, the component FM31256 with serial non-volatile memory (ferroelectric memory-unlimited read and write times, power-off data retention for 10 years), real-time clock/calendar, low voltage reset, watchdog, and fast two-wire serial interface (I2C) is selected. The specific circuit is shown in Figure 5.

Ferroelectric memory and watchdog circuit design

When making the PCB board, in order to improve the stability and reliability of communication between DSP and FM312561, the two should be as close as possible, the I2C communication line should be as short as possible, and a low-pass filter (100W, 100p) can be considered.

(5) Human-machine interface design

The human-machine interface is managed by a dedicated single-chip microcomputer. The single-chip microcomputer and the system's main control core DSP communicate in the form of SPI bus, which is simple to program and easy to implement. The single-chip microcomputer mainly completes the functions of keyboard scanning (parameter setting, etc.) and LCD display (parameter display of operation detection). According to the needs of the human-machine interface function and considering the cost performance, the C8051F410 single-chip microcomputer launched by Xinhualong is selected, and the display device is the LCM128×64 blue backlight LCD of Beijing Qingyun Company. According to the overall design plan, 6 buttons are set, and a matrix structure is adopted. The human-machine interface block diagram is shown in Figure 6.

Human Machine Interface Block Diagram

[page]

1.2 System software design

(1) System software architecture

In view of the fact that the whole system has to realize many tasks, all DSP peripherals are used, and the real-time processing requirements are relatively high. In addition, the DSP (TMS320F2808) platform supports and can carry the development of RTOS, so the system software is designed using mC/OS-II. mC/OS-II is a real-time multi-tasking operating system with open source, portable, ROMable, scalable, preemptive, and preemptive [3, 5]. The whole system software is divided into two steps: a. porting μC/OS-II to DSP; b. writing software on the μC/OS-II platform. Porting μC/OS-II to DSP only requires modifying the code of the three files OS_CPU.H, OS_CPU_C.C and OS CPU A.A related to the processor, and the workload of porting is relatively small. Since μC/OS-II is a priority-based preemptive real-time multi-tasking operating system, before writing the code, the number of tasks in the system and the priority level of each task should be confirmed, and a certain amount of stack space should be allocated to each task for runtime calling. In other words, the functional modules of the composite magnetic field control system software must be managed first.

According to the particularity of the composite magnetic field control system, the control software is divided into ten levels from 0 to 9. Table 1 shows the functional modules of the software and their corresponding task names and task priority levels.

The software's functional modules and their corresponding task names

The flow of the control program is: first, initialize the CPU and program data; then initialize the operating system, mainly completing the initialization of the task control block (TCB), the initialization of the TCB priority table, the initialization of the TCB linked list, the initialization of the event control block (ECB) linked list, the creation of an empty task, etc.; then create task DTKST, and create other tasks in task DTKST; finally start multi-task scheduling. After the multi-task scheduling starts, start the clock beat source to start timing. This beat source provides the system with a periodic clock interrupt signal to achieve delay and timeout confirmation. When the clock interrupt comes, the system suspends the currently executing task, protects the scene, performs interrupt processing, and determines whether the task delay expires. If so, the task is put into the ready state, and the priorities of all tasks that have entered the ready state are compared. The highest priority task is executed through task switching. If no other task enters the ready state, the scene is restored to continue to execute the original task. Tasks communicate with each other through semaphores and message mailboxes, and tasks and interrupts communicate with each other through message mailboxes.

On the basis of ensuring the realization of functions, in order to further improve the reliability of the system, a system monitoring task is added. The function of this task is to monitor the operation of other tasks in the system. When the monitored task is about to finish running, the monitoring task sends a message to indicate that it is running normally. When the monitored task is running, the monitoring task waits for the monitored task to send it a message, and the waiting time is set to the maximum time required for the normal operation of the task. If the monitoring task receives a message within the waiting time, it is considered that the task sending the message is running normally, and the next task starts to run according to the execution order of each task, and the monitoring task waits for the message sent by the next task. If the waiting time has passed and the monitoring task still has not received the message, the system's time management function will force the monitoring task to be considered as ready. Because the monitoring task has the highest priority, it will seize the control of the CPU and take corresponding error correction plans to ensure the stable operation of the system.

(2) Human-computer interface programming

The human-machine interface includes microcontroller initialization, keyboard scanning subroutine, LCD subroutine, and SPI communication subroutine. The specific software implementation flow chart is shown in Figure 7. Serial communication is used between LCD and microcontroller. In view of the unique serial communication protocol of LCD itself, the microcontroller uses I/O port to simulate this protocol. Each data line is processed with first-order low-pass filter (100W, 100p) to improve communication stability and anti-interference ability. Software anti-shake processing is performed in the actual keyboard scanning program.

Specific software implementation flow chart

(3) High-frequency dual narrow pulse train software design

According to the specific requirements of high-frequency dual narrow pulse train and the principle block diagram designed above, the three functional modules of timing counter, 2-to-1 switch (initial state output '1'), and logic AND gate are constructed by VHDL programming through QuartusII software platform and connected according to the principle diagram. The simulation results can well achieve the required leading edge consistency. The simulation waveform is shown in Figure 8. The designed program is downloaded to CPLD (Altera development board) and observed by analog oscilloscope and virtual instrument respectively, achieving the expected design purpose. The waveform observed by virtual instrument is shown in Figure 9. (In the simulation waveform: Duble clk-dual narrow pulse; out_serial-high-frequency dual narrow pulse train; in the virtual instrument waveform; yellow line (bottom)-dual narrow pulse; green line (top)-high-frequency dual narrow pulse train.)

Simulation waveform

Virtual instrument waveform observation

2 Conclusion

Aiming at the control requirements of the special composite magnetic field of aluminum electromagnetic semi-continuous casting, this paper designs an improved magnetic field controller based on the aluminum electromagnetic fast continuous casting and rolling composite magnetic field controller (which has been in operation in Fuzhou Ruimin Aluminum Strip Factory). The dual-core (DSP+single-chip microcomputer) processing form facilitates the realization of the overall function and improves the stability and reliability of the system. The high-frequency pulse train, which is a trigger pulse mode of high-power thyristors, is realized by CPLD, which has high stability and flexible application. In view of the harsh working environment of the special composite magnetic field controller, the EMC and EMI processing measures are fully considered in the production of PCB boards, such as A/D signal separation, good design and management of power modules, separation of large/small signals, processing of A/D sampling signal lines, and photoelectric isolation of I/O. After testing, the effect is good.

Keywords:DSP Reference address:Design and implementation of magnetic field controller for aluminum electromagnetic casting based on DSP

Previous article:Wavelet Processing of EEG Signal Based on DSP Builder
Next article:Implementation of High-Speed ​​Clock Data Recovery Circuit Based on FPGA

Recommended ReadingLatest update time:2024-11-16 19:32

DSP helps NXP i.MX RT500 crossover processor achieve more audio functions
Learn about multithreaded programming, developing applications using the XOS real-time operating system, sharing resources with semaphores, and how NXP's i.MX RT500 series of microcontrollers can help engineers design DSP-enabled smart devices. Today’s smart consumer devices require components that can ha
[Embedded]
DSP helps NXP i.MX RT500 crossover processor achieve more audio functions
DSP Programming Tips - Five Issues You Must Consider When Using Code Optimization
1. Be careful with assembly expressions   In C/C++ code, sometimes some operations will inevitably operate on some CPU registers. In this case, you need to use embedded assembly expressions, such as asm("EALLOW"), or reset the mask register of an interrupt, etc. When optimizing the code, the compiler will readjust
[Embedded]
Natural Gas Engine Control System Based on DSP Chip TMS320LF2407
1 Introduction   In recent years, digital signal processor (DSP ) chips have been widely used in automatic control, image processing, communication technology, network equipment, instrumentation and home appliances, etc.; DSP provides an efficient and reliable hardware foundation for digital signal processing. At pr
[Analog Electronics]
Natural Gas Engine Control System Based on DSP Chip TMS320LF2407
Optimizing DSP power budget by adjusting voltage regulator
System-level power conservation and power budget optimization are key to many applications. For example, data center operators strive to control energy consumption, portable device designers seek to reduce current consumption to achieve longer battery life, and communication systems need to reduce operating temperatur
[Embedded]
Optimizing DSP power budget by adjusting voltage regulator
Three-phase five-level inverter PWM pulse generator using DSP and CPLD
1 Introduction In recent years, multilevel converters have become one of the hot topics in power electronics research, mainly targeting medium voltage and high power applications. Currently, there are three basic multilevel converter topologies : ① diode clamp type; ② flying capacitor type; ③ cascade
[Microcontroller]
Three-phase five-level inverter PWM pulse generator using DSP and CPLD
A Design Scheme of Car Navigation System Based on DSP Processor
  Digital signal microprocessor DSP has the functions of high-speed operation and data processing. With its advantages of high performance and low power consumption, it provides an effective hardware platform for mathematical calculations of real-time navigation systems. In modern weapons and equipment, a vehicle na
[Embedded]
A Design Scheme of Car Navigation System Based on DSP Processor
Implementation of high-speed line scan camera based on DSP
  Modern production and scientific research have increasing demands on image acquisition systems. As a front-end device for digital image acquisition and transmission, high-speed line scan cameras’ scanning speed and quality largely determine the performance of the entire system. Line scan cameras on the market are ve
[Embedded]
TMS320C6701DSP linear frequency modulation signal digital pulse compression
The linear frequency modulation signal has a parabolic nonlinear phase spectrum and can obtain a larger time-bandwidth product. Compared with other pulse compression signals, it is easy to generate with digital technology and is relatively mature in technology. The matched filter used is insensitive to the Doppler f
[Embedded]
Latest Embedded Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号