Summary of the invention
In order to one of solve the problems of the technologies described above, this application provides a kind of electromagnet power supply, comprise: digitial controller, based on the sensed current signal of the reference current signal preset and the output current corresponding to described electromagnet power supply, generate control current signal; Modulator, based on described control current signal generates power device control signal; Power device, draws electric energy to provide described output current to electromagnet load according to described power device control signal from main power supply; And current sensor, be arranged on the output of described electromagnet power supply, to generate described sensed current signal.Wherein, described digitial controller comprises: analog-digital converter, samples to described sensed current signal based on the sample frequency preset, and obtains sensed current signal sampling; Discrete Fourier analysis device, based on the fundametal compoment frequency of described reference current signal and described sample frequency, discrete Fourier analysis process is carried out to described sensed current signal sampling, obtain and feed back DC component amplitude, feedback fundametal compoment amplitude and feedback fundametal compoment phase place accordingly; First comparator, compares the DC component amplitude of described reference current signal and described feedback DC component amplitude, obtains the first comparative result; Second comparator, compares the fundametal compoment amplitude of described reference current signal and described feedback fundametal compoment amplitude, obtains the second comparative result; 3rd comparator, compares the fundametal compoment phase place of described reference current signal and described feedback fundametal compoment phase place, obtains the 3rd comparative result; First digital proportional integral differential control device, generates according to described first comparative result and revises DC component amplitude; Second digital proportional integral differential control device, generates according to described second comparative result and revises fundametal compoment amplitude; 3rd digital proportional integral differential control device, generates according to described 3rd comparative result and revises fundametal compoment phase place; Coordinate Rotation Digital calculates synthesizer, is synthesized reference current signal based on described fundametal compoment frequency and described sample frequency by described correction DC component amplitude, described correction fundametal compoment amplitude and described correction fundametal compoment phase measurements; 4th comparator, samples described synthesized reference current signal and described sensed current signal and compares, and obtains the 4th comparative result; And the 4th digital proportional integral differential control device, generate described control current signal according to described 4th comparative result.
Described electromagnet power supply also comprises display device, for showing the parameter handled by described digitial controller.
Described electromagnet power supply also comprises filter circuit, described in the output being arranged on described power device between power device and described current sensor, for filtering high-frequency signal.
Modulator described in described electromagnet power supply and described digitial controller combine, by the method for Digital Signal Processing, programmable gate array (Field Programmable Gate Array at the scene, i.e. FPGA) realize in digital signal processing chip, adopt the processing mode of single precision floating datum.
The discrete Fourier analysis device that digitial controller described in described electromagnet power supply comprises, adopts the processing mode of double-precision floating points when carrying out Digital Signal Processing.
Analog-digital converter described in described electromagnet power supply is 16bit, 100KHz and above analog-digital converter.
The operating sampling frequency of the first digital proportional integral differential control device described in described electromagnet power supply, described second digital proportional integral differential control device, described 3rd digital proportional integral differential control device is described fundametal compoment frequency.
Present invention also provides a kind of method controlling electromagnet power supply, comprise the steps: to obtain the sensed current signal corresponding with the output current of described electromagnet power supply; Based on the sample frequency preset, sampling processing is carried out to described sensed current signal, obtain sensed current signal sampling; Based on the fundametal compoment frequency of reference current signal and described sample frequency, discrete Fourier analysis process is carried out to described sensed current signal sampling, obtain and feed back DC component amplitude, feedback fundametal compoment amplitude and feedback fundametal compoment phase place accordingly; The DC component amplitude of described reference current signal and described feedback DC component amplitude are compared to obtain the first comparative result, the fundametal compoment amplitude of described reference current signal and described feedback fundametal compoment amplitude are compared to obtain the second comparative result, the fundametal compoment phase place of described reference current signal and described feedback fundametal compoment phase place are compared to obtain the 3rd comparative result; Generate according to described first comparative result and revise DC component amplitude, generate according to described second comparative result and revise fundametal compoment amplitude, generate according to described 3rd comparative result and revise fundametal compoment phase place; Be synthesized reference current signal based on described fundametal compoment frequency and described sample frequency by described correction DC component amplitude, described correction fundametal compoment amplitude and described correction fundametal compoment phase measurements; Described synthesized reference current signal and described sensed current signal are sampled and compares, obtain the 4th comparative result; And generate control current signal according to described 4th comparative result, the described output current of described electromagnet power supply is controlled according to described control current signal.
Sampling processing described in described method is carried out with 16bit, 100KHz and above analog-digital converter.
Describedly generate described correction DC component amplitude according to described first comparative result, generating described correction fundametal compoment amplitude according to described second comparative result, generating described correction fundametal compoment phase place according to described 3rd comparative result and generate in the step of described control current signal according to described 4th comparative result in described method, adopt the processing mode of single precision floating datum.
Discrete Fourier analysis process described in described method adopts the processing mode of double-precision floating points.
Each step described in described method is drawn and is divided into multiple piecemeal, adopts pipeline processes.
In described method in divided same piecemeal, identical array signal processing.
Present invention also provides a kind of digitial controller, for generating control current signal based on the reference current signal preset with corresponding to the sensed current signal of the output current of described electromagnet power supply in electromagnet power supply, described electromagnet power supply also comprises: modulator, based on described control current signal generates power device control signal; Power device, draws electric energy to provide described output current to electromagnet load according to described power device control signal from main power supply; And current sensor, be arranged on the output of described electromagnet power supply, to generate described sensed current signal, wherein, described digitial controller comprises: analog-digital converter, based on the sample frequency preset, described sensed current signal is sampled, obtain sensed current signal sampling; Discrete Fourier analysis device, based on the fundametal compoment frequency of described reference current signal and described sample frequency, discrete Fourier analysis process is carried out to described sensed current signal sampling, obtain and feed back DC component amplitude, feedback fundametal compoment amplitude and feedback fundametal compoment phase place accordingly; First comparator, compares the DC component amplitude of described reference current signal and described feedback DC component amplitude, obtains the first comparative result; Second comparator, compares the fundametal compoment amplitude of described reference current signal and described feedback fundametal compoment amplitude, obtains the second comparative result; 3rd comparator, compares the fundametal compoment phase place of described reference current signal and described feedback fundametal compoment phase place, obtains the 3rd comparative result; First digital proportional integral differential control device, generates according to described first comparative result and revises DC component amplitude; Second digital proportional integral differential control device, generates according to described second comparative result and revises fundametal compoment amplitude; 3rd digital proportional integral differential control device, generates according to described 3rd comparative result and revises fundametal compoment phase place; Coordinate Rotation Digital calculates synthesizer, is synthesized reference current signal based on described fundametal compoment frequency and described sample frequency by described correction DC component amplitude, described correction fundametal compoment amplitude and described correction fundametal compoment phase measurements; 4th comparator, samples described synthesized reference current signal and described sensed current signal and compares, and obtains the 4th comparative result; And the 4th digital proportional integral differential control device, generate described control current signal according to described 4th comparative result.
According to the technical scheme of the application, in the inside of digitlization dynamic electric magnet excitation power supply, not only realize the Digital Control of current closed-loop, and by the process to electromagnet power supply reference waveform, the accurate control of dynamic electric magnet power supply output current can be realized.And do not need the hardware configuration changing electromagnet power supply main body, do not need the band independently needing temperature accurately to control for the design of dynamic electric magnet power supply fast to the tele-control system of stationary interface yet, thus greatly reduce the cost of dynamic electric magnet power supply tele-control system, simplify the architecture of dynamic electric magnet power supply control.
Embodiment
The application is described in detail below in conjunction with Fig. 1 to Fig. 3.It should be noted that in the accompanying drawing of the application described below, element or the module with same reference numerals have identical function in systems in which; If there is crosspoint as between the line segment connecting wire or signal path, so with stain " ", crosspoint then represents that this crosspoint is tie point or signal branch point, without stain " ", crosspoint then represents that this crosspoint is not tie point or signal branch point and is only mutually pass through; Coil is depicted as magnet load schematic diagram, does not represent any parameter of magnet load.
Fig. 1 illustrates the calcspar of the composition of the digitlization dynamic electric magnet power supply of the electric current precise hard_drawn tuhes of the application.As shown in fig. 1, the digitlization dynamic electric magnet power supply 1 of the electric current precise hard_drawn tuhes of the application, hereinafter referred to as electromagnet power supply 1, comprising: digitial controller 10, based on the reference current signal i preset and the output current I corresponding to electromagnet power supply 1
lsensed current signal i
l, generate and control current signal i
c; Modulator 20, based on control current signal i
cgenerates power device control signal S; Power device 30, draws electric energy to provide output current I to electromagnet load L according to power device control signal S from main power supply
l; And current sensor 50, be arranged on the output O place of electromagnet power supply 1, to generate the output current I corresponding to electromagnet power supply 1
lsensed current signal i
l.As shown in fig. 1, the output current I of electromagnet power supply 1
lrear inflow ground G is drawn by electromagnet load L from the output O of electromagnet power supply 1.Adopt the dynamic electric magnet power supply of the digital newspaper industry of the application, the accurate control of dynamic power supplies output current can be realized.
As another embodiment of the application, the electromagnet power supply 1 of the application can also comprise display device, the various parameters of display handled by digitial controller 10.
As another embodiment of the application, the electromagnet power supply 1 of the application can also comprise filter circuit 40, is arranged on the output of power device 30, namely between power device 30 and current sensor 50, for filtering high-frequency signal, to reduce the impact of high-frequency signal on current sensor 50.
As another embodiment of the application, the modulator 20 in the electromagnet power supply 1 of the application and digitial controller 10 combine, and by the method for Digital Signal Processing, realize in FPGA digital signal processing chip, adopt the processing mode of single precision floating datum.
In addition, the modulator 20 of the application can be such as the known various driver for driving power element, the power device 30 of the application is such as the known various power component for controlling electric current, the filter circuit 40 of the application is such as the known various filter circuit for filtering high-frequency signal, the current sensor 50 of the application is such as the known various precision current transducer for current sensor, is therefore no longer described in more detail them.
The application adopts the method for Digital Signal Processing, realizes the output current I of the electromagnet power supply of field power supply as dynamic in accelerator digitlization and so on
lprecise hard_drawn tuhes.The output current I ideally expected
l=I
dC-I
aC× cos ω
0t, wherein ω
0=2 π f
0, f
0for the dynamic duty frequency of electromagnet power supply, I
dC, I
aCbe respectively the output current I of electromagnet power supply
ldC component and alternating current component amplitude.The electromagnet power supply of the application and method are applicable to require that tracking characteristics is good, the dynamic excitation source of high-power inertia load as high in the output parameter such as voltage ripple, current stability, technical indicator.
The application by the digital newspaper industry device that adds particular design namely below the digitial controller 10 that will describe in detail in fig. 2, can realize the accurate control to its output current in dynamic electric magnet power supply inside, such as tracking accuracy is better than one thousandth.
Fig. 2 illustrates the schematic diagram of the composition of the digitial controller 10 in the digitlization dynamic electric magnet power supply of the electric current precise hard_drawn tuhes of the application shown in Fig. 1.As shown in Figure 2, the digitial controller 10 in the digitlization dynamic electric magnet power supply of the electric current precise hard_drawn tuhes of the application, hereinafter referred to as digitial controller 10, comprising: ADC140, based on the sample frequency f preset
sto the output current I corresponding to electromagnet power supply 1
lsensed current signal i
lsample, obtain corresponding sensed current signal sampling i
l'; Discrete Fourier (DFT) analyzer 120, based on the fundametal compoment frequency f preset
0with the described sample frequency f preset
sto sensed current signal sampling i
l' carry out discrete Fourier analysis, obtain corresponding feedback DC component amplitude i
d', feedback fundametal compoment amplitude i
a' and feedback fundametal compoment phase place P '; Comparator 101, by the DC component amplitude i of reference current signal i preset
dwith corresponding feedback DC component amplitude i
d' compare, obtain corresponding comparative result Δ i
d; Comparator 102, by the fundametal compoment amplitude i of reference current signal i preset
awith corresponding feedback fundametal compoment amplitude i
a' compare, obtain corresponding comparative result Δ i
a; Comparator 103, compares the fundametal compoment phase place P of the reference current signal i preset and corresponding feedback fundametal compoment phase place P ', obtains corresponding comparative result Δ P; Digital PID Controller 111, according to comparative result Δ i
dgenerate corresponding correction DC component amplitude i
d"; Digital PID Controller 112, according to comparative result Δ i
agenerate corresponding correction fundametal compoment amplitude i
a"; Digital PID Controller 113, generates corresponding correction fundametal compoment phase place P according to comparative result Δ P "; Coordinate Rotation Digital calculates (CORDIC) synthesizer 130, based on the described fundametal compoment frequency f preset
0with the described sample frequency f preset
sdC component amplitude i will be revised
d", revise fundametal compoment amplitude i
a" and revise fundametal compoment phase place P " synthesize new synthesized reference current signal i '; Comparator 104, sample synthesized reference current signal i ' and sensed current signal i
l' compare, obtain comparative result Δ i '; Digital PID Controller 114, generates the output current I for controlling electromagnet power supply 1 according to comparative result Δ i '
lcontrol current signal i
c.Wherein, fundametal compoment frequency f
0the frequency of the fundametal compoment of the reference current signal i preset, the output current I of the electromagnet power supply ideally also namely expected
ldynamic duty frequency.In addition, the sample frequency f of ADC140
sclock and CORDIC synthesizer 130 for export new reference waveform and synthesized reference current signal i ' based on sample frequency f
s, and discrete Fourier (DFT) analyzer 120 based on sample frequency f
sclock should be the clock of homology same frequency.
Such as, the ADC140 of the application is by 16bit, 100KHz and above high-resolution ADC at a high speed, comes the output current I corresponding to electromagnet power supply 1
lsensed current signal i
lsample.The current feedback values obtained by sampling to ADC140 and sensed current signal sampling i
l' carry out DFT analysis, fed back DC component amplitude i accordingly
d', feedback fundametal compoment amplitude i
a' and feedback fundametal compoment phase place P '.Each sampling period of accurate control ADC140 and sampling frequency signal and fundamental frequency f
0, contribute to the feedback DC component amplitude i guaranteeing that DFT analyzes
d', feedback fundametal compoment amplitude i
a' and feed back the accurate of fundametal compoment phase place P ', thus guarantee to realize dynamic power supplies output current I
laccurate control.
As shown in Figures 1 and 2, the application, by employing 3 Digital PID Controller 111 to Digital PID Controller 113, achieves the output current I to electromagnet power supply 1 respectively
ldirect current amplitude, fundamental voltage amplitude and fundamental phase accurate closed-loop control.The direct current amplitude i of the reference current signal i preset
d, fundamental voltage amplitude i
aand the set point of fundamental phase P corresponds to the desirable excitation curve of electromagnet, the sinusoidal excitation current set point of namely desirable band direct current biasing.The output current I of electromagnet power supply 1
ldirect current amplitude, fundamental voltage amplitude and fundamental phase correspond respectively to the feedback DC component amplitude i that DFT analyzer 120 exports
d', feedback fundametal compoment amplitude i
a' and feedback fundametal compoment phase place P '.Then revised correction DC component amplitude i is produced respectively by 3 Digital PID Controller 111 to Digital PID Controller 113
d", revise fundametal compoment amplitude i
a" and revise fundametal compoment phase place P ".Then the current reference curve and reference current signal i ' that make new advances is synthesized by the Coordinate Rotation Digital computational methods of CORDIC synthesizer 130.Then comparator 104 to be sampled i with reference to the sample sensed current signal that obtains of current signal i ' and ADC140
l' directly compare.The output of comparator 104 is converted by the Digital PID Controller 114 of another closed-loop current control, and namely the output of Digital PID Controller control current signal i
cthe power device control signal S acted on power device 30 is transformed into by the modulator 20 in electromagnet power supply 1.Power device 30 in electromagnet power supply 1 adjusts according to power device control signal S the output current I that self switch or conducting situation control electromagnet power supply 1
l, thus achieve the output current I to electromagnet power supply 1
laccurate control.
As another embodiment of the application, the operating sampling frequency of 3 Digital PID Controller 111 to Digital PID Controller 113 of the application can be fundametal compoment frequency f
0.
As another embodiment of the application, the DFT analyzer 120 of the application when carrying out Digital Signal Processing, in order to ensure DFT export accurate, the processing mode of double-precision floating points can be adopted.
As another embodiment of the application, the Digital PID Controller of the application can adopt the processing mode of single precision floating datum.
Corresponding with the digitlization dynamic electric magnet power supply of the electric current precise hard_drawn tuhes of the application described by composition graphs 1 and Fig. 2, Fig. 3 illustrates the flow chart of the method for electric current precise hard_drawn tuhes digitlization dynamic electric magnet power supply of the application.
As shown in Figure 3, the method for electric current precise hard_drawn tuhes digitlization dynamic electric magnet power supply of the application comprises the steps:
Step S200, the current sensor 50 that the output O place of electromagnet power supply 1 is arranged obtains the output current I with electromagnet power supply 1
lcorresponding sensed current signal i
l.
Step S210, the ADC140 in digitial controller 10 is based on the sample frequency f preset
sto sensed current signal i
lsample, obtain corresponding sensed current signal sampling i
l'.
Step S220, the DFT analyzer 120 in digitial controller 10, based on the fundametal compoment frequency f preset
0with the described sample frequency f preset
sto sensed current signal sampling i
l' carry out DFT analysis, obtain corresponding feedback DC component amplitude i
d', feedback fundametal compoment amplitude i
a' and feedback fundametal compoment phase place P '.
Step S230, the comparator 101 in digitial controller 10, comparator 102 and comparator 103 are respectively with reference to the DC component amplitude i of current signal i
d, fundametal compoment amplitude i
awith fundametal compoment phase place P and corresponding feedback DC component amplitude i
d', feedback fundametal compoment amplitude i
a' and feedback fundametal compoment phase place P ' compare, obtain corresponding comparative result Δ i
d, Δ i
awith Δ P.
Step S240, the Digital PID Controller 111 in digitial controller 10, Digital PID Controller 112 and Digital PID Controller 113 are respectively according to comparative result Δ i
d, Δ i
acorresponding correction DC component amplitude i is generated with Δ P
d", revise fundametal compoment amplitude i
a" and revise fundametal compoment phase place P ".
Step S250, the CORDIC synthesizer 130 in digitial controller 10 is based on the described fundametal compoment frequency f preset
0with the described sample frequency f preset
sdC component amplitude i will be revised
d", revise fundametal compoment amplitude i
a" and revise fundametal compoment phase place P " synthesize new synthesized reference current signal i '.
Step S260, synthesized reference current signal i ' and sensed current signal are sampled i by the comparator 104 in digitial controller 10
l' compare, obtain comparative result Δ i '.
Step S270, the Digital PID Controller 114 in digitial controller 10 generates according to comparative result Δ i ' and controls current signal i
c.
Step S280, the modulator 20 in electromagnet power supply 1 is according to control current signal i
cgenerating power device control signal S.
Step S290, the power device 30 in electromagnet power supply 1 controls the output current I of electromagnet power supply 1 according to power device control signal S
l.
After step S290 completes, turn back to step S200.
Wherein, in step S240 and step S270, the Digital PID Controller 111 in digitial controller 10, Digital PID Controller 112 and Digital PID Controller 113 are respectively according to comparative result Δ i
d, Δ i
acorresponding correction DC component amplitude i is generated with Δ P
d", revise fundametal compoment amplitude i
a" and revise fundametal compoment phase place P ", and the Digital PID Controller 114 in digitial controller 10 generates control current signal i according to comparative result Δ i '
cthe processing mode of single precision floating datum all can be adopted Deng process.In step S220, discrete Fourier analysis can adopt the processing mode of double-precision floating points.
As another embodiment of the application, in order to realize complicated digital algorithm in limited FPGA resource, the method being used for electric current precise hard_drawn tuhes digitlization dynamic electric magnet power supply of whole the application can be divided into multiple piecemeal, such as above-mentioned steps S200 to step S290 is divided into multiple piecemeal, adopts pipeline processes to improve arithmetic speed.
As another embodiment of the application, in addition, in divided same piecemeal, identical array signal processing, can save the logical resource of FPGA.
By the digitlization dynamic electric magnet power supply of composition graphs 1 to Fig. 3 to the electric current precise hard_drawn tuhes of the application and the description of method thereof, can see, according to the technical scheme of the application, in the inside of digitlization dynamic electric magnet excitation power supply, not only realize the Digital Control of current closed-loop, and by the process to electromagnet power supply reference waveform, the accurate control of dynamic electric magnet power supply output current can be realized.And do not need the hardware configuration changing electromagnet power supply main body, do not need the band independently needing temperature accurately to control for the design of dynamic electric magnet power supply fast to the tele-control system of stationary interface yet, thus greatly reduce the cost of dynamic electric magnet power supply tele-control system, simplify the architecture of dynamic electric magnet power supply control.
Although with reference to exemplary embodiment describing the application, should be appreciated that term used illustrates and exemplary and nonrestrictive term.Because the application can specifically implement in a variety of forms, so be to be understood that, above-described embodiment is not limited to any aforesaid details, and should explain widely enclosing in claim limited range, therefore fall into whole change in claim or its equivalency range and remodeling and all should be claim of enclosing and contained.