Large power inverter power source numerical control system and method based on SOPC technology
Technical field
The present invention relates to a kind of large power inverter power source numerical control system and method based on SOPC technology.
Background technology
Large power inverter power source is very extensive in field application such as electric power, welding.Along with the development of the SOPC technology such as single-chip microcomputer, DSP, FPGA, the application of digital technology, has significantly promoted the friendly of the control precision of large power inverter power source system, intelligent, stability and man-machine interaction.But, in the workplace of large power inverter power source, various strong electromagnetic interference and high frequency components have often been full of, take the source of welding current as example, because welding process is a complicated change procedure that comprises the factors such as metallurgy, physics, chemistry, inversion welding source is as a kind of energy conversion, be operated in the complicated adverse circumstances of strong jamming, exist the high frequency of power switch pipe to switch, numerous disturbing factors such as the impact of rectifier diode, external electromagnetic radiation, cause a lot of home equipment poor reliability, repair rate is high.Therefore how to improve the accuracy that data high-speed obtains and transmits, become the key that promotes large power inverter power source equipment.
Programmable system on chip (System on a Programmable Chip, SOPC), is a kind of advanced person's embedded system, and employing one single chip completes the major function of whole system, flexible design.With field programmable gate array (Field Programmable Gate Array, FPGA) be example, it is a kind of semi-custom Circuits System in application-specific integrated circuit (ASIC) (ASIC) field, solved custom circuit and the limited shortcoming of original programming device gate circuit number, can be at inner Embedded Operating System.But, due to the restriction of FPGA internal resource and performance, often adopt in actual applications double-core or the coenocytisms such as " MCU+FPGA ", " DSP+FPGA ", each several part co-ordination.But, due to the strong jamming condition of large power inverter power source system, this has proposed severe challenge to the double-core based on mass data exchange or the reliability and stability of multinuclear control system, and High-reliability Control System based on single-chip, can significantly improve the anti-interference of large power inverter power source equipment, promote accuracy and the system reliability of data high-speed exchange, guarantee system high-speed, stable, operation safely.
Summary of the invention
Object of the present invention is exactly in order to address the above problem, proposed a kind of large power inverter power source numerical control system and method based on SOPC technology, this system dynamic response is fast, and control precision is high, good reliability, the energy conversion system that can be widely used in reliability and stability to have relatively high expectations.
To achieve these goals, the present invention adopts following technical scheme:
A large power inverter power source numerical control system based on SOPC technology, comprising: analog modules A CE, ARM Cortex M3 kernel, dual port RAM and bottom controller are integrated in to chip piece inside.
The function of described dual port RAM and bottom controller all adopts the Very High Speed Integrated Circuit (VHSIC) hardware description language VHDL realization of programming.
Described analog modules A CE communicates by letter with dual port RAM by APB bus, and described ARM Cortex M3 kernel is communicated by letter with dual port RAM by ahb bus, and described dual port RAM is communicated by letter with bottom controller.
Described analog modules A CE comprises: comparator, some A/D change-over circuits and D/A change-over circuit.
Comparator is connected with outside protective circuit, for generation of guard signal; Voltage and current signal enters A/D change-over circuit after signal conditioning circuit; D/A change-over circuit is for realizing the output of analog quantity.
Described ARM Cortex M3 kernel comprises anomalous event processing module, expert database and process controller module and communication module.
Expert database is connected respectively with anomalous event processing module, communication module with process controller module; Expert database and process controller module realize and the exchanges data of bottom controller by dual port RAM.
Described bottom controller comprises: digital filter, the real-time control module of electric current and voltage and pwm signal generator; Data in dual port RAM enter the real-time control module of electric current and voltage after digital filter, finally export pwm signal generator to, produce pulse drive signal.
The real-time control module of described electric current and voltage comprises voltage close loop controller and current closed-loop controller.
A method for large power inverter power source numerical control system based on SOPC technology, comprising:
(1) voltage of large power inverter power source numerical control system, current parameters and other sampling parameter, be converted to the signal of telecommunication through signal conditioning circuit, by the A/D change-over circuit of chip internal analog modules A CE, sampled.
The status signal of outer protection circuit acquisition system, and convert the signal of telecommunication to, then compares with the preset protection set-point of chip internal analog modules A CE, once exceed protection set-point, produces correspondingly guard signal, carries out protection action.
(2) above-mentioned sampled data and guard signal are stored to dual port RAM.
(3) sampled data that deposits dual port RAM in reads processing via digital filter interval separately, then by completing computing for the control algolithm that realizes the adjusting of signal real-time closed-loop accordingly, finally exports pwm signal generator to, produces pulse drive signal; Pulse drive signal becomes the driving signal of power device after voltage transitions.
The guard signal control impuls that deposits dual port RAM in drives the generation of signal, protection system safety.
(4) ARM Cortex M3 kernel reads in real time sampled data and system mode from dual port RAM, realizes data demonstration, transfer of data, order input and anomalous event judgement.
Described transfer of data realizes by Ethernet, CAN bus, 485 buses, USB various communication interfaces.
The invention has the beneficial effects as follows:
(1) integrated level is high, and system cost and complexity are low, strong adaptability.
The circuit of comparing coenocytism system in the past and disperseing analogue device to build, the functions such as the inner integrated Design of Digital Circuit of FPGA that this method adopts and analog circuit and embedded system, greatly reduce the risk and cost of system and the complexity of system hardware circuit design, significantly promoted the flexibility of system, can be widely used in numerous occasions, strong adaptability.
(2) strong interference immunity, reliability is high, good stability.
System can reduce data long distance transmission, and a large amount of transmission of significant data all complete the inner high speed at chip, and therefore, system possesses extremely strong anti-interference.This method can, according to the diversity and particularity of practical engineering application, realize required function by developing different software, and therefore, high conformity, is convenient to commercial application.
Accompanying drawing explanation
Fig. 1 is large power inverter power source numerical control system structural representation of the present invention.
Embodiment:
Below in conjunction with accompanying drawing and embodiment, the present invention will be further described:
A large power inverter power source numerical control system based on SOPC technology, comprising: analog modules A CE, ARM Cortex M3 kernel, dual port RAM and bottom controller are integrated in to chip piece inside.The function of dual port RAM and bottom controller all adopts the Very High Speed Integrated Circuit (VHSIC) hardware description language VHDL realization of programming.Analog modules A CE communicates by letter with dual port RAM by APB bus, and ARM Cortex M3 kernel is communicated by letter with dual port RAM by ahb bus, and dual port RAM is communicated by letter with bottom controller.
Analog modules A CE comprises: comparator, some A/D change-over circuits and D/A change-over circuit.Comparator is connected with outside protective circuit, for generation of guard signal; Voltage and current signal enters A/D change-over circuit after signal conditioning circuit; D/A change-over circuit is for realizing the output of analog quantity.
ARM Cortex M3 kernel comprises anomalous event processing module, expert database and process controller module and communication module.Expert database is connected respectively with anomalous event processing module, communication module with process controller module; Expert database and process controller module realize and the exchanges data of bottom controller by dual port RAM.
Bottom controller comprises: digital filter, the real-time control module of electric current and voltage and pwm signal generator; Data in dual port RAM enter the real-time control module of electric current and voltage after digital filter, finally export pwm signal generator to, produce pulse drive signal.The real-time control module of electric current and voltage comprises voltage close loop controller and current closed-loop controller.
Introducing system workflow is as follows in detail:
Need the parameter of closed-loop control or monitoring, as voltage, electric current, after signal conditioning circuit, be transformed to the signal of telecommunication of 0-3.3V, A/D by chip internal samples, then the communication with dual port RAM through the realization of the APB of chip internal bus, sampled data deposits dual port RAM in, and read processing by digital filter interval separately, send into again closed loop controller separately, by corresponding control algolithm, complete computing, wherein control algolithm can be PI, fuzzy control etc., is used for realizing the real-time closed-loop adjusting of feedback signal.Output signal is delivered to pwm signal generator, produce pulse drive signal, finally by isolation, drive the links such as inversion with drive circuit, the power device of be converted to ± 15V of the weak electric signal of 0-3.3V is driven to signal, realize the electrical isolation of controller and power device simultaneously, guarantee system safety.Other parameter of sampling also deposits dual port RAM in by above-mentioned flow process.
Each status signal of system, as junction temperature of power device etc., becomes the signal of telecommunication by outer protection circuit Collect conversion, then enters the comparator of chip internal analog modules A CE, with preset protection set-point comparison.Once value of feedback exceedes preset given, will produce correspondingly action by system control strategy, for example ought detect that the junction temperature of device for power switching exceedes its limiting temperature value, will block at once PWM generator, power device is quit work, produce protection, avoid dangerous.In this programme, dual port RAM is as the distribution centre of internal bus data high-speed exchange.
The all signal and systems state informations that gather, all will deposit dual port RAM in, by inner ARM system, through ahb bus, from dual port RAM, read in real time, complete the real-time demonstration based on liquid crystal or LED etc., the judgement of anomalous event, and wait for that executable operations personnel are by the order of the inputs such as button or rotary encoder, or automatically act accordingly through links such as communication interface or simulation outputs.Expert database and process controller, by the exchanges data of ahb bus and dual port RAM realization and bottom real-time controller, are realized the real-time control of whole equipment jointly.
The various communication interfaces such as Ethernet, CAN bus, 485 buses, USB have been designed, wherein Ethernet and CAN bus are respectively used to remote monitor and team control, 485 buses are used for the local communication with miscellaneous equipment, and USB is mainly used in facilitating practical operation personnel's job information to import and floor data collection analysis.
Although above-mentioned, by reference to the accompanying drawings the specific embodiment of the present invention is described; but not limiting the scope of the invention; one of ordinary skill in the art should be understood that; on the basis of technical scheme of the present invention, those skilled in the art do not need to pay various modifications that creative work can make or distortion still in protection scope of the present invention.