[0026] The present invention proposes a high-precision segmented pulse generation method for temperature control, which uses segmented heating instead of centralized heating, and forms a closed-loop control through a binary decomposition algorithm to ensure that the accuracy is not lost after segmentation, which will be described in detail with reference to the accompanying drawings. . Such as figure 1 , figure 2 As shown, the working process of the present invention includes:
[0027] Step (1), the PID controller outputs a raw binary number pulse with the effective heating pulse number B[N-1:0] into the binary resolver, where the total length of the raw binary number pulse is 2 N -1, the effective heating pulse in the binary number pulse is logic 1, and the remaining pulses are logic 0; the effective heating pulse is used to realize temperature control;
[0028] Step (2), the binary resolver will decompose the effective heating pulse in the original binary number pulse according to the following formula, and decompose it into 2 M Group of sub pulses and 1 group of phase pulses:
[0029] B[N-1:0]=B[N-1:M]×2 M +B[M-1:0]
[0030] Among them, B[N-1:M] represents the effective heating pulse length of the sub-pulse, and B[M-1:0] represents the effective heating pulse length of the phase pulse;
[0031] Since the length of the phase pulse is less than the number of sub-pulse groups, the phase pulse can be decomposed again, and the phase pulse is decomposed to obtain B[M-1:0] 1 and 2 M -B[M-1:0] zeros, which are recorded as phase pulse array [1,1,1…1,0,0,0…0]; among them, the total length of each group of sub-pulses is 2 N-M -1 pulses, where the total length of each group of sub-pulses is obtained according to the following formula:
[0032] 2 n - m - 1 = ( 2 n - 1 ) - ( 2 m - 1 ) 2 m - - - ( 1 )
[0033] Of which 2 n -1 is the total length of the original binary number pulse; 2 m -1 is the total length of the phase pulse; 2 m Is the number of sub-pulse groups. The total length of the phase pulse is 2 M -1 pulse, and sequentially added to each group of sub-pulses. After decomposition, the effective heating length of each group of sub-pulses increases by 1 or 0, and the total length increases by 1. The total number of n groups of sub-pulses added by 1 effective heating pulse is equal to the length of the effective heating pulse in the phase pulse, so that the phase pulses are merged into the sub-pulses. Therefore, only n groups of sub-pulses need to be generated after decomposition, and no additional phase pulses are required. Ensure that the total heating pulse number is the same as the heating pulse number output by the PID controller, and the temperature control accuracy is the same.
[0034] Step (3), the binary resolver transfers the effective heating length of the sub-pulses after decomposition to the phase accumulator, and the phase accumulator can superimpose the phase data to n groups of sub-pulses by adjusting the effective heating length of each group of sub-pulses plus 1 or 0 Top; add the i+1th value in the phase pulse array [1,1,1…1,0,0,0…0] to the effective heating pulse in the i+1th group of subpulses in the 2M group of subpulses In terms of length, the effective heating pulse length B'(i) of the sub-pulse is
[0035] B'(i)=B[N-1:M]+w(i)(2)
[0036] Among them, i=0,1,2,3...2 M -1, the initial value is 0, w(i) is the adjustment factor, w ( i ) = 0 , i ≥ B [ M - 1 : 0 ] 1 , i B [ M - 1 : 0 ]
[0037] The effective heating length of the adjusted group of sub-pulses is transferred to the PWM pulse generator for generation.
[0038] Step (4): Use a PWM pulse generator to generate pulses with an effective heating pulse length of B'(i). The PWM pulse generator generates sub-pulses in sequence to achieve a segmented effect. Every time a group of sub-pulses are generated, the output of the phase counter is increased by 1, and the number of sub-pulse groups that have occurred is sent to the phase comparator. When the n groups of sub-pulses are completed, the phase counter is cleared.
[0039] Step (5), set i=i+1, repeat step (3) to step (4) until i=2 M -1, if the output of the phase counter is greater than the phase pulse data, the effective heating length of the sub-pulse in the current group will be increased by 1, otherwise it will be increased by 0 to achieve closed-loop control.
[0040] Among them, steps (2) and (3) decompose the binary heating pulse into n groups of sub-pulses and 1 group of phase pulses. By fusing the phase pulses into the n groups of sub-pulses, the PWM pulse generator will not need to generate additional phase pulses. It is necessary to generate n segments of sub-pulses with the same length to achieve the effect of segmented pulse heating.
[0041] The following specific embodiments further describe the method of the present invention in detail:
[0042] Step (1), a binary number heating pulse B[18:0] output by the PID controller with a bit width of 19 bits enters the binary resolver;
[0043] Step (2) The binary decomposer decomposes the binary heating pulse B[18:0] into 6bit sub-pulse data and 13bit phase pulse data:
[0044] B[18:0]=B[18:13]×2 13 +B[12:0](3)
[0045] Among them: B[18:0] is the raw binary number heating pulse data; B[18:13] is the raw binary number high 6-bit sub-pulse heating pulse data; B[12:0] is the low 13-bit phase pulse heating pulse data.
[0046] After this step of decomposition, the original long pulse can be decomposed into 2 13 A group of sub-pulses and a group of phase pulses, the total length of each group of sub-pulses is 63 pulses, the effective heating length is B[18:13]; the total length of the phase pulses is 2 13 -1 pulse, the effective heating length is B[12:0].
[0047] Since the length of the phase pulse is less than the number of sub-pulse groups, the phase pulse can be decomposed. After decomposition, the phase pulse consists of B[12:0] 1 and 2 13 -B[12:0] consists of 0s, the total of 0s and 1s after decomposition is 2 13 One.
[0048] Step (3), the phase accumulator will decompose the phase pulse can be uniformly increased to 2 through the closed loop feedback method 13 For group sub-pulses, the effective heating pulse number of each group of sub-pulses increases by 1 or 0, and the total length increases by 1.
[0049] B′(i)=B[18:13]+w(i)
[0050] w ( i ) = 0 , i ≥ B [ 12 : 0 ] 1 , i B [ 12 : 0 ] - - - ( 4 )
[0051] Where B'(i) is the effective heating pulse length of the adjusted sub-pulse, B[18:13] is the effective heating length of the sub-pulse after the original decomposition, w(i) is the adjustment factor output by the phase accumulator, that is, the phase pulse The value in the array, i is the output of the phase counter, B[12:0] is the phase pulse information.
[0052] Step (four), change the adjusted 2 13 The group of sub-pulses are generated in sections by the PWM pulse generator. Since the phase information is added to each group of sub-pulses, the total length of the sub-pulses is increased from 63 to 64. The PWM pulse generator only needs to generate a fixed pulse signal with a maximum number of pulses of 64 , No need to generate 2 13 Long phase pulse information.
[0053] Step (5) After each group of sub-pulses are generated, the phase counter counts the number i of the currently generated sub-pulse groups, and feeds back i to the phase comparator.
[0054] The phase comparator compares the phase pulse data B[12:0] generated in step (1) with the i output from the phase counter in step (5), and uses formula (2) to control the phase accumulator to add the effective length of the sub-pulse according to the comparison result 1 or 0, to achieve closed-loop control. If the current phase counter output i is less than the phase information B[12:0], the phase comparator output w(i) = 1 controls the phase accumulator to add 1 to the effective length of the sub-pulse and 1 to the total length; otherwise, it outputs 0, Add 0 to the effective length of the pulse, and add 1 to the total length. Each time a group of 64-length sub-pulses are generated, the output of the phase counter i increases by 1. When all 2 13 After the group sub-pulse is generated, the phase counter is cleared and waits for a new pulse to occur.
[0055] Such as image 3 Shown is the pulse waveform diagram generated by the PWM pulse generator. It can be seen from the diagram that a complete waveform generation cycle includes 2 13 Sub-pulse 4 after group adjustment. Each group of sub-pulses generates effective heating pulse 1, fusion phase pulse 2 and non-heating pulse 3 in sequence. There is a set of non-heating pulses between the two adjacent sets of heating pulses to prevent the heating pulses from being too concentrated and damaging the heating plate.
[0056] Such as Figure 4 Shown is the comparison diagram of sub-pulse segmented heating and long pulse heating. It can be seen from the figure that during long pulse heating, due to the relatively concentrated heating pulse, the temperature of the heating plate will rise too quickly, while the temperature will be sharp when the non-heating pulse occurs. Decrease, causing the heating plate to overheat or even damage, and at the same time bring higher difficulties to the difficulty of temperature control. Using sub-pulse heating, the concentrated heating pulse can be divided into 2 13 Each heating pulse and non-heating pulse form a set of sub-pulses. With this method of heating, because the heating pulse is relatively discrete, the temperature of the heating plate rises slowly without drastic changes, which can well protect the heating plate and reduce temperature fluctuations.
[0057] The content not described in detail in the specification of the present invention belongs to the well-known technology of those skilled in the art.