Summary of the invention
In order one of to solve the problems of the technologies described above, the application provides a kind of electromagnet power supply, comprise: digitial controller based on predefined reference current signal with corresponding to the sensed current signal of the output current of described electromagnet power supply, generates the control current signal; Modulator comes generating power device control signal based on described control current signal; Power device draws electric energy to provide described output current to the 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 predefined sample frequency described sensed current signal is sampled, and obtain the sensed current signal sampling; The discrete Fourier analyzer, fundametal compoment frequency and described sample frequency based on described reference current signal are carried out the discrete Fourier analyzing and processing to described sensed current signal sampling, obtain corresponding feedback DC component amplitude, feedback fundametal compoment amplitude and feedback fundametal compoment phase place; The first comparator compares DC component amplitude and the described feedback DC component amplitude of described reference current signal, obtains the first comparative result; The second comparator compares fundametal compoment amplitude and the described feedback fundametal compoment amplitude of described reference current signal, obtains the second comparative result; The 3rd comparator compares fundametal compoment phase place and the described feedback fundametal compoment phase place of described reference current signal, obtains the 3rd comparative result; The first digital proportional integral differential control device generates correction DC component amplitude according to described the first comparative result; The second digital proportional integral differential control device generates correction fundametal compoment amplitude according to described the second comparative result; The 3rd digital proportional integral differential control device generates correction fundametal compoment phase place according to described the 3rd comparative result; Rotation of coordinate numerical calculation synthesizer synthesizes the synthesized reference current signal based on described fundametal compoment frequency and described sample frequency with described correction DC component amplitude, described correction fundametal compoment amplitude and described correction fundametal compoment phase place; The 4th comparator compares described synthesized reference current signal and the sampling of described sensed current signal, obtains the 4th comparative result; And the 4th digital proportional integral differential control device, generate described control current signal according to described the 4th comparative result.
Described electromagnet power supply also comprises display device, is used for showing the handled parameter of described digitial controller.
Described electromagnet power supply also comprises filter circuit, and the output place that is arranged on described power device is stated between power device and the described current sensor, is used for the filtering high-frequency signal.
Modulator described in the described electromagnet power supply and described digitial controller combine, method by Digital Signal Processing, programmable gate array (Field Programmable Gate Array at the scene, be FPGA) realize in the digital signal processing chip, adopt the processing mode of single precision floating datum.
The discrete Fourier analyzer that digitial controller described in the described electromagnet power supply comprises, the processing mode of employing double-precision floating points when carrying out Digital Signal Processing.
Analog-digital converter is 16bit described in the described electromagnet power supply, 100KHz and above analog-digital converter.
The work sample frequency of the first digital proportional integral differential control device described in the described electromagnet power supply, described the second digital proportional integral differential control device, described the 3rd digital proportional integral differential control device is described fundametal compoment frequency.
The application also provides a kind of method of controlling electromagnet power supply, comprises the steps: to obtain the sensed current signal corresponding with the output current of described electromagnet power supply; Based on predefined sample frequency described sensed current signal is carried out sampling processing, obtain the sensed current signal sampling; Fundametal compoment frequency and described sample frequency based on reference current signal are carried out the discrete Fourier analyzing and processing to described sensed current signal sampling, obtain corresponding feedback DC component amplitude, feedback fundametal compoment amplitude and feedback fundametal compoment phase place; DC component amplitude and the described feedback DC component amplitude of described reference current signal are compared to obtain the first comparative result, fundametal compoment amplitude and the described feedback fundametal compoment amplitude of described reference current signal are compared to obtain the second comparative result, fundametal compoment phase place and the described feedback fundametal compoment phase place of described reference current signal compared to obtain the 3rd comparative result; Generate correction DC component amplitude according to described the first comparative result, generate according to described the second comparative result and revise the fundametal compoment amplitude, generate according to described the 3rd comparative result and revise the fundametal compoment phase place; Based on described fundametal compoment frequency and described sample frequency described correction DC component amplitude, described correction fundametal compoment amplitude and described correction fundametal compoment phase place are synthesized the synthesized reference current signal; Described synthesized reference current signal and the sampling of described sensed current signal are compared, obtain the 4th comparative result; And according to described the 4th comparative result generation control current signal, control the described output current of described electromagnet power supply according to described control current signal.
Sampling processing described in the described method is to use 16bit, and 100KHz and above analog-digital converter carry out.
Generate described correction DC component amplitude, generate described correction fundametal compoment amplitude, generate described correction fundametal compoment phase place and generate in the step of described control current signal the processing mode of employing single precision floating datum according to described the 4th comparative result according to described the 3rd comparative result according to described the second comparative result according to described the first comparative result described in the described method.
Discrete Fourier analyzing and processing described in the described method adopts the processing mode of double-precision floating points.
Each step described in the described method is drawn and is divided into a plurality of piecemeals, adopts pipeline processes.
In the described method in the same piecemeal of dividing, identical array signal processing.
The application also provides a kind of digitial controller, be used for generating the control current signal at electromagnet power supply based on predefined reference current signal with corresponding to the sensed current signal of the output current of described electromagnet power supply, described electromagnet power supply also comprises: modulator, come generating power device control signal based on described control current signal; Power device draws electric energy to provide described output current to the 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 predefined sample frequency described sensed current signal is sampled, obtain the sensed current signal sampling; The discrete Fourier analyzer, fundametal compoment frequency and described sample frequency based on described reference current signal are carried out the discrete Fourier analyzing and processing to described sensed current signal sampling, obtain corresponding feedback DC component amplitude, feedback fundametal compoment amplitude and feedback fundametal compoment phase place; The first comparator compares DC component amplitude and the described feedback DC component amplitude of described reference current signal, obtains the first comparative result; The second comparator compares fundametal compoment amplitude and the described feedback fundametal compoment amplitude of described reference current signal, obtains the second comparative result; The 3rd comparator compares fundametal compoment phase place and the described feedback fundametal compoment phase place of described reference current signal, obtains the 3rd comparative result; The first digital proportional integral differential control device generates correction DC component amplitude according to described the first comparative result; The second digital proportional integral differential control device generates correction fundametal compoment amplitude according to described the second comparative result; The 3rd digital proportional integral differential control device generates correction fundametal compoment phase place according to described the 3rd comparative result; Rotation of coordinate numerical calculation synthesizer synthesizes the synthesized reference current signal based on described fundametal compoment frequency and described sample frequency with described correction DC component amplitude, described correction fundametal compoment amplitude and described correction fundametal compoment phase place; The 4th comparator compares described synthesized reference current signal and the sampling of described sensed current signal, obtains the 4th comparative result; And the 4th digital proportional integral differential control device, generate described control current signal according to described the 4th comparative result.
Technical scheme according to the application, inside at digitlization dynamic electric magnet field power supply, not only realize the Digital Control of current closed-loop, and by the processing to the electromagnet power supply reference waveform, can realize the accurate control of dynamic electric magnet power supply output current.And do not need to change the hardware configuration of electromagnet power supply main body, do not need yet for dynamic electric magnet power supply design independently need temperature accurately the band of control fast to the tele-control system of stationary interface, thereby greatly reduce the cost of dynamic electric magnet power supply tele-control system, simplified the architecture of dynamic electric magnet power supply control.
Embodiment
Below in conjunction with Fig. 1 to Fig. 3 DETAILED DESCRIPTION The present application.It should be noted that in the application's described below accompanying drawing element or module with same reference numerals have identical function in system; If as having the crosspoint between the line segment that connects wire or signal path, represent then that with stain " " this crosspoint is tie point or signal branch point on the crosspoint so, represent then that without stain " " this crosspoint is not tie point or signal branch point and only be mutually to pass through on the crosspoint; Coil is depicted as magnet load schematic diagram, does not represent any parameter of magnet load.
Fig. 1 illustrates the calcspar of composition of digitlization dynamic electric magnet power supply of the application's the accurate control of electric current.As shown in fig. 1, the digitlization dynamic electric magnet power supply 1 of the accurate control of the application's electric current comprises hereinafter to be referred as electromagnet power supply 1: digitial controller 10, and based on predefined reference current signal i with corresponding to the output current I of electromagnet power supply 1
LSensed current signal i
L, generate control current signal i
CModulator 20 is based on control current signal i
CCome generating 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
LAnd 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
LAs shown in fig. 1, the output current I of electromagnet power supply 1
LDrawn rear inflow place G from the output O of electromagnet power supply 1 by electromagnet load L.Adopt the dynamic electric magnet power supply of the application's digital closed loop control, can realize the accurate control of dynamic power supplies output current.
As another embodiment of the application, the application's electromagnet power supply 1 can also comprise display device, shows digitial controller 10 handled various parameters.
Another embodiment as the application, the application's electromagnet power supply 1 can also comprise filter circuit 40, is arranged on output place of power device 30, namely between power device 30 and the current sensor 50, be used for the filtering high-frequency signal, to reduce high-frequency signal to the impact of current sensor 50.
As another embodiment of the application, modulator 20 and digitial controller 10 in the application's the electromagnet power supply 1 combine, and by the method for Digital Signal Processing, realize in the FPGA digital signal processing chip, adopt the processing mode of single precision floating datum.
In addition, the application's modulator 20 for example can be known various driver for the driving power element, the application's power device 30 for example is known various power component for the control electric current, the application's filter circuit 40 for example is known various filter circuit for the filtering high-frequency signal, the application's current sensor 50 for example is known various precision current transducer for current sensor, therefore no longer they is described in more detail.
The application adopts the method for Digital Signal Processing, realizes the output current I such as the electromagnet power supply of dynamic field power supply of accelerator digitlization and so on
LPrecision control.The output current I ideally of expectation
L=I
DC-I
AC* cos ω
0T, wherein ω
0=2 π f
0, f
0Be 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 application's electromagnet power supply and method are applicable to require tracking characteristics good, such as the dynamic excitation source of the high high-power inertia load of the output parameter technical indicators such as voltage ripple, current stability.
The application is the following digitial controller 10 that will describe in detail in Fig. 2 by the digital closed loop controller that adds particular design, can realize the accurate control to its output current in dynamic electric magnet power supply inside, and for example 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 accurate control of electric current 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 accurate control of the application's electric current comprises hereinafter to be referred as digitial controller 10: ADC140, and based on predefined sample frequency f
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 is based on predefined fundametal compoment frequency f
0With described predefined sample frequency f
STo sensed current signal sampling i
L' carry out the 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 is with the DC component amplitude i of predefined reference current signal i
DWith corresponding feedback DC component amplitude i
D' compare, obtain corresponding comparative result Δ i
DComparator 102 is with the fundametal compoment amplitude i of predefined reference current signal i
AWith corresponding feedback fundametal compoment amplitude i
A' compare, obtain corresponding comparative result Δ i
AComparator 103 compares the fundametal compoment phase place P of predefined reference current signal i with feeding back accordingly fundametal compoment phase place P ', obtain corresponding comparative result Δ P; Digital PID Controller 111 is according to comparative result Δ i
DGenerate the corresponding DC component amplitude i that revises
D"; Digital PID Controller 112 is according to comparative result Δ i
AGenerate the corresponding fundametal compoment amplitude i that revises
A"; Digital PID Controller 113 generates the corresponding fundametal compoment phase place P that revises according to comparative result Δ P "; Rotation of coordinate numerical calculation (CORDIC) synthesizer 130 is based on described predefined fundametal compoment frequency f
0With described predefined sample frequency f
STo revise DC component amplitude i
D", revise fundametal compoment amplitude i
A" and revise fundametal compoment phase place P " synthesize new synthesized reference current signal i '; Comparator 104 is with synthesized reference current signal i ' and sensed current signal sampling i
L' compare, obtain comparative result Δ i '; Digital PID Controller 114 generates the output current I that is used for control electromagnet power supply 1 according to comparative result Δ i '
LControl current signal i
CWherein, fundametal compoment frequency f
0The frequency of the fundametal compoment of predefined reference current signal i, the output current I of the electromagnet power supply ideally of also namely expecting
LThe dynamic duty frequency.In addition, the sample frequency f of ADC140
SClock and CORDIC synthesizer 130 for the new reference waveform of output be synthesized reference current signal i ' based on sample frequency f
S, and 120 of discrete Fourier (DFT) analyzers based on sample frequency f
SClock should be the clock of homology same frequency.
For example, the application's ADC140 is by 16bit, and 100KHz and above high-resolution ADC at a high speed come the output current I corresponding to electromagnet power supply 1
LSensed current signal i
LSample.The current feedback value that obtains by the sampling to ADC140 is sensed current signal sampling i
L' carry out the DFT analysis, fed back accordingly DC component amplitude i
D', feedback fundametal compoment amplitude i
A' and feedback fundametal compoment phase place P '.Accurately each sampling period of control ADC140 is sampling frequency signal and fundamental frequency f
0, help the feedback DC component amplitude i that guarantees that DFT analyzes
D', feedback fundametal compoment amplitude i
A' and feed back the accurate of fundametal compoment phase place P ', thereby guarantee to realize dynamic power supplies output current I
LAccurate control.
As shown in Fig. 1 and Fig. 2, the application has realized respectively the output current I to electromagnet power supply 1 by adopting 3 Digital PID Controller 111 to Digital PID Controller 113
LThe accurate closed-loop control of direct current amplitude, fundamental voltage amplitude and fundamental phase.The direct current amplitude i of predefined reference current signal i
D, fundamental voltage amplitude i
AAnd the set point of fundamental phase P is corresponding to the desirable excitation curve of electromagnet, the i.e. desirable sinusoidal excitation current setting value with 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 of DFT analyzer 120 output
D', feedback fundametal compoment amplitude i
A' and feedback fundametal compoment phase place P '.Then produce respectively revised correction DC component amplitude i 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 be reference current signal i ' by the synthetic current reference curve that makes new advances of the rotation of coordinate numerical calculation method of CORDIC synthesizer 130.Then the sensed current signal sampling i that obtains with reference to current signal i ' and ADC140 sampling of comparator 104
L' directly compare.The output of comparator 104 is carried out conversion by the Digital PID Controller 114 of another current closed-loop control, and current signal i is namely controlled in the output of Digital PID Controller
CBe transformed into the power device control signal S that acts on the power device 30 by the modulator 20 in the electromagnet power supply 1.The output current I that power device 30 in the electromagnet power supply 1 is controlled electromagnet power supply 1 according to switch or the conducting situation of power device control signal S adjustment self
LThereby, realized the output current I to electromagnet power supply 1
LAccurate control.
As another embodiment of the application, 3 Digital PID Controller 111 of the application to the work sample frequency of Digital PID Controller 113 can be the fundametal compoment frequency f
0
As another embodiment of the application, the application's DFT analyzer 120 when carrying out Digital Signal Processing, in order to ensure DFT output accurately, can adopt the processing mode of double-precision floating points.
As another embodiment of the application, the application's Digital PID Controller can adopt the processing mode of single precision floating datum.
Corresponding with the accurate digitlization dynamic electric magnet power supply of controlling of electric current in conjunction with Fig. 1 and the described the application of Fig. 2, Fig. 3 illustrates the flow chart of the application's the method that is used for the accurate digital control dynamic electric of electric current magnet power supply.
As shown in Figure 3, the application's the method that is used for the accurate digital control dynamic electric of electric current magnet power supply comprises the steps:
Step S200, the current sensor 50 that the output O place of electromagnet power supply 1 arranges obtains the output current I with electromagnet power supply 1
LCorresponding sensed current signal i
L
Step S210, the ADC140 in the digitial controller 10 is based on predefined sample frequency f
STo sensed current signal i
LSample, obtain corresponding sensed current signal sampling i
L'.
Step S220, the DFT analyzer 120 in the digitial controller 10 is based on predefined fundametal compoment frequency f
0With described predefined sample frequency f
STo sensed current signal sampling i
L' carry out the 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 the 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 the digitial controller 10, Digital PID Controller 112 and Digital PID Controller 113 are respectively according to comparative result Δ i
D, Δ i
AGenerate the corresponding DC component amplitude i that revises with Δ P
D", revise fundametal compoment amplitude i
A" and revise fundametal compoment phase place P ".
Step S250, the CORDIC synthesizer 130 in the digitial controller 10 is based on described predefined fundametal compoment frequency f
0With described predefined sample frequency f
STo revise DC component amplitude i
D", revise fundametal compoment amplitude i
A" and revise fundametal compoment phase place P " synthesize new synthesized reference current signal i '.
Step S260, the comparator 104 in the digitial controller 10 is with synthesized reference current signal i ' and sensed current signal sampling i
L' compare, obtain comparative result Δ i '.
Step S270, the Digital PID Controller 114 in the digitial controller 10 generates control current signal i according to comparative result Δ i '
C
Step S280, the modulator 20 in the electromagnet power supply 1 is according to control current signal i
CGenerating power device control signal S.
Step S290, the power device 30 in the electromagnet power supply 1 is according to the output current I of power device control signal S control electromagnet power supply 1
L
After step S290 finishes, turn back to step S200.
Wherein, in step S240 and step S270, the Digital PID Controller 111 in the digitial controller 10, Digital PID Controller 112 and Digital PID Controller 113 are respectively according to comparative result Δ i
D, Δ i
AGenerate the corresponding DC component amplitude i that revises with Δ P
D", revise fundametal compoment amplitude i
A" and revise fundametal compoment phase place P ", and the Digital PID Controller in the digitial controller 10 114 generates control current signal i according to comparative result Δ i '
CAll can adopt the processing mode of single precision floating datum Deng processing.In step S220, the discrete Fourier analysis can be adopted the processing mode of double-precision floating points.
Another embodiment as the application, in order in limited FPGA resource, to realize complicated digital algorithm, whole the application's the method that is used for the accurate digital control dynamic electric of electric current magnet power supply can be divided into a plurality of piecemeals, for example above-mentioned steps S200 is divided into a plurality of piecemeals to step S290, the employing pipeline processes is to improve arithmetic speed.
As another embodiment of the application, in addition, in the same piecemeal of dividing, identical array signal processing can be saved the logical resource of FPGA.
By in conjunction with Fig. 1 to Fig. 3 to the digitlization dynamic electric magnet power supply of the accurate control of the application's electric current and the description of method thereof, can see, technical scheme according to the application, inside at digitlization dynamic electric magnet field power supply, not only realize the Digital Control of current closed-loop, and by the processing to the electromagnet power supply reference waveform, can realize the accurate control of dynamic electric magnet power supply output current.And do not need to change the hardware configuration of electromagnet power supply main body, do not need yet for dynamic electric magnet power supply design independently need temperature accurately the band of control fast to the tele-control system of stationary interface, thereby greatly reduce the cost of dynamic electric magnet power supply tele-control system, simplified the architecture of dynamic electric magnet power supply control.
Although described the application with reference to exemplary embodiments, should be appreciated that used term is explanation and exemplary and nonrestrictive term.Because the application is implementation in a variety of forms, so be to be understood that, above-described embodiment is not limited to any aforesaid details, and should be in the claim limited range of enclosing explain widely, therefore fall into whole variations in claim or its equivalency range and remodeling and all should be the claim of enclosing and contain.