Method and device for determining setting parameter, equipment and storage medium
By controlling the excitation current in the locomotive generator for periodic conversion and oscillation waveform analysis, the PID parameters are determined, which solves the problems of tight time, low quality and high difficulty in setting PID parameters in harsh environments, and improves the setting efficiency and safety.
Patent Information
- Application Number
- CN202310735360.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-20
- Publication Date
- 2024-12-20
AI Technical Summary
The PID parameter setting of locomotive generators has problems such as tight time, low quality, high difficulty and high risk, especially in harsh on-site environments, it is difficult to obtain optimized parameters.
By controlling the excitation current of the generator to periodically convert between the first output value and the second output value when the electronic device enters the tuning mode, obtain the intermediate voltage measurement value, determine the limit oscillation waveform, calculate the oscillation period and critical gain, Then determine the PID parameters.
The quality and speed of excitation PID parameter setting is improved, the time and risk of on-site debugging is reduced, and the dangerous exposure to technicians is reduced.
Smart Images

Figure CN119165762A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of locomotive generators, and in particular to a method, device, equipment and storage medium for determining setting parameters. Background Art
[0002] Usually, the excitation controller of the locomotive generator collects signals such as the intermediate voltage, excitation current, and diesel engine speed, and after calculating the current target voltage, adjusts the excitation current to stabilize the intermediate voltage to the target voltage. The intermediate voltage closed-loop control usually adopts the classic PID control algorithm, but the PID parameter setting of the locomotive generator requires technicians to complete it on site. When the technicians go to the site to set the PID parameters, there are several problems: initial value setting, optimization of each parameter one by one, etc. require rich debugging experience, and the whole process involves relatively professional knowledge and is difficult; PID parameter adjustment requires more tests. Due to time and cost issues, the on-site debugging opportunities are very limited, and it is difficult to obtain better parameters; due to the poor on-site debugging environment of the locomotive generator, there are many problems such as noise, radiation, hygiene, and safety. It is necessary to minimize the time that the technicians are exposed to the harsh environment, resulting in a tight time. In addition, since the locomotive generator is in a high-voltage working environment, there are certain dangerous information for on-site setting, that is, the method of manually setting the PID parameters has the problems of tight time, low quality, high difficulty, and high risk. Summary of the invention
[0003] In response to the problems in the above-mentioned related technologies, the present application provides a method, device, equipment and storage medium for determining a tuning parameter, which can help technicians improve the quality and speed of excitation PID parameter tuning.
[0004] The embodiment of the present application provides a method for determining a setting parameter, which is applied to an electronic device, including:
[0005] When the electronic device enters the setting mode, the excitation current of the generator is controlled to be periodically switched between a first output value and a second output value, and an intermediate voltage measurement value output by the generator is obtained, wherein the first output value is less than the second output value, the first output value corresponds to a lower limit value of a voltage range, the second output value corresponds to an upper limit value of the voltage range, and the voltage range is determined based on a target voltage value;
[0006] determining a limiting oscillation waveform based on the intermediate voltage measurement;
[0007] In a case where the limit oscillation waveform is a sine waveform and the intermediate voltage measurement values in the limit oscillation waveform include at least three target voltage values, determining an oscillation period and a critical gain based on the limit oscillation waveform, the first output value, and the second output value;
[0008] A PID parameter is determined based on the oscillation period and the critical gain.
[0009] In some embodiments, the controlling the excitation current of the generator to periodically switch between a first output value and a second output value comprises:
[0010] When the intermediate voltage measurement value is less than the target voltage value, setting the excitation current of the generator to a second output value;
[0011] In a case where the intermediate voltage measurement value is greater than or equal to the target voltage value, the excitation current of the generator is set to a first output value.
[0012] In some embodiments, the method further comprises:
[0013] Acquire setting information of a user, where the setting information is used to set a voltage range, wherein the voltage range includes: the target voltage value and an oscillation amplitude of the target voltage value;
[0014] When the electronic device enters the pre-processing mode, the generator is controlled to run at a constant speed, and the excitation current is controlled to increase at a preset rate;
[0015] When the excitation current increases at a preset rate, detecting an intermediate voltage value output by the generator;
[0016] When the intermediate voltage value reaches the lower limit value of the voltage range, recording the first output value of the excitation current;
[0017] When the intermediate voltage value reaches the upper limit value of the voltage range, the second output value of the excitation current is recorded.
[0018] In some embodiments, the method further comprises:
[0019] In the case where the limit oscillation waveform is a non-sinusoidal waveform, the voltage range is adjusted or the detection frequency of detecting the intermediate voltage value of the generator is adjusted to re-determine the first output value and the second output value of the excitation current.
[0020] In some embodiments, determining the oscillation period and the critical gain based on the limit oscillation waveform, the first output value, and the second output value includes:
[0021] Determining an oscillation period based on a time between two adjacent peaks in the extreme oscillation waveform, and determining an amplitude of the extreme oscillation waveform based on the extreme oscillation waveform;
[0022] Determining a loop amplitude based on the first output value and the second output value;
[0023] A critical gain is calculated based on the amplitude of the limiting oscillation waveform and the loop amplitude.
[0024] In some embodiments, the method further comprises:
[0025] When the electronic device enters the regulation mode, closed-loop control is performed on the voltage output by the generator based on the PID parameters.
[0026] In some embodiments, controlling the excitation current to increase at a preset rate comprises:
[0027] The excitation opening of the power tube is controlled to increase at a preset rate, so as to control the excitation current to increase at a preset rate.
[0028] An embodiment of the present application provides a device for determining a setting parameter, comprising:
[0029] a conversion module, configured to control the excitation current of the generator to perform periodic conversion between a first output value and a second output value when the electronic device enters a setting mode, and obtain an intermediate voltage measurement value output by the generator, wherein the first output value is less than the second output value, the first output value corresponds to a lower limit value of a voltage range, the second output value corresponds to an upper limit value of the voltage range, and the voltage range is determined based on a target voltage value;
[0030] A first determination module, configured to determine a limit oscillation waveform based on the intermediate voltage measurement value;
[0031] a second determination module, configured to determine an oscillation period and a critical gain based on the limit oscillation waveform, the first output value, and the second output value when the limit oscillation waveform is a sine waveform and the intermediate voltage measurement value in the limit oscillation waveform includes at least three target voltage values;
[0032] The third determination module is used to determine a PID parameter based on the oscillation period and the critical gain.
[0033] An embodiment of the present application provides an electronic device, including:
[0034] A memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, any one of the above-mentioned methods for determining the setting parameters is executed.
[0035] An embodiment of the present application provides a power generation system, including: the electronic device and the generator described above.
[0036] An embodiment of the present application provides a storage medium, which stores a computer program that can be executed by one or more processors and can be used to implement any of the above-mentioned methods for determining the setting parameters.
[0037] The present application provides a method, apparatus, device and storage medium for determining a setting parameter. When the electronic device enters a setting mode, the excitation current of the generator is controlled to perform periodic conversion between a first output value and a second output value, and an intermediate voltage measurement value of the generator output is obtained, wherein the first output value is less than the second output value, the first output value corresponds to a lower limit value of a voltage range, the second output value corresponds to an upper limit value of the voltage range, and the voltage range is determined based on a target voltage value; a limit oscillation waveform is determined based on the intermediate voltage measurement value; when the limit oscillation waveform is a sinusoidal waveform and the intermediate voltage measurement value in the limit oscillation waveform includes at least 3 target voltage values, an oscillation period and a critical gain are determined based on the limit oscillation waveform, the first output value and the second output value, and a PID parameter is determined based on the oscillation period and the critical gain, which can help technicians improve the quality and speed of excitation PID parameter tuning. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Hereinafter, the present application will be described in more detail based on embodiments and with reference to the accompanying drawings.
[0039] Figure 1 A schematic diagram of an implementation flow of a method for determining a setting parameter provided in an embodiment of the present application;
[0040] Figure 2 A schematic diagram of an implementation flow of another method for determining a setting parameter provided in an embodiment of the present application;
[0041] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0042] Figure 4 A schematic diagram of a topological structure of an electronic device provided in an embodiment of the present application.
[0043] In the drawings, the same reference numerals are used for the same components and the drawings are not drawn to scale. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.
[0045] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0046] If similar descriptions of "first\second\third" appear in the application documents, the following instructions will be added. In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0047] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0048] Based on the problems existing in the related art, an embodiment of the present application provides a method for determining a setting parameter, which is applied to an electronic device, which may be a mobile terminal, a computer, etc., which may be a controller of a generator, and which may be an excitation controller.
[0049] The functions implemented by the method for determining the setting parameters provided in the embodiment of the present application can be implemented by calling a program code by a processor of an electronic device, wherein the program code can be stored in a computer storage medium.
[0050] The present application embodiment provides a method for determining a setting parameter. Figure 1 A schematic diagram of the implementation flow of a method for determining a setting parameter provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, including:
[0051] Step S1, when the electronic device enters the setting mode, controls the excitation current of the generator to perform periodic conversion between a first output value and a second output value, and obtains an intermediate voltage measurement value output by the generator, wherein the first output value is less than the second output value, the first output value corresponds to a lower limit value of a voltage range, the second output value corresponds to an upper limit value of the voltage range, and the voltage range is determined based on a target voltage value.
[0052] In the embodiment of the present application, the electronic device may include multiple modes, and different programs are executed in each mode. The modes may include: a setting mode, a preprocessing mode, and an adjustment mode.
[0053] In the embodiment of the present application, an excitation current can be output to the generator through an electronic device, so that the generator outputs an intermediate voltage measurement value.
[0054] In the embodiment of the present application, the electronic device can obtain the intermediate voltage measurement value output by the generator through a voltage sensor. The generator is a generator on a locomotive.
[0055] In the embodiment of the present application, an excitation current of a first output value may be first output to the generator, so that the generator generates electricity, and thus the intermediate voltage measurement value may be detected.
[0056] In the embodiment of the present application, the first output value and the second output value can be measured in the preprocessing mode. The first output value is the excitation current value measured when the voltage reaches the lower limit of the voltage range in the preprocessing mode, and the second output value is the excitation current value measured when the voltage reaches the upper limit of the voltage range in the preprocessing mode. The target voltage value can be set. The target voltage value can be considered as the voltage value that the generator needs to output stably.
[0057] In the embodiment of the present application, in step S1, “controlling the excitation current of the generator to periodically switch between the first output value and the second output value” can be achieved by the following steps:
[0058] Step S21, when the intermediate voltage measurement value is less than the target voltage value, setting the excitation current of the generator to a second output value.
[0059] Step S22: When the intermediate voltage measurement value is greater than or equal to the target voltage value, the excitation current of the generator is set to a first output value.
[0060] Step S2, determining a limit oscillation waveform based on the intermediate voltage measurement value.
[0061] In the embodiment of the present application, the first output value and the second output value of multiple cycles can be output, so as to obtain the intermediate voltage measurement values of multiple cycles. In the embodiment of the present application, the intermediate voltage measurement values of multiple cycles can be expressed in the form of waveforms, so as to obtain the limit oscillation waveform.
[0062] Step S3, when the limit oscillation waveform is a sine waveform and the intermediate voltage measurement values in the limit oscillation waveform include at least three target voltage values, determine the oscillation period and the critical gain based on the limit oscillation waveform, the first output value and the second output value.
[0063] In the embodiment of the present application, it is possible to identify whether the extreme oscillation waveform is a sinusoidal waveform, and it is possible to determine whether a plurality of intermediate voltage measurement values in the extreme oscillation waveform are equal to the target voltage measurement values to determine whether the intermediate voltage measurement values include at least 3 target voltage values.
[0064] In the embodiment of the present application, since the voltage of the generator has a certain response time after the first output value and the second output value are input, a sinusoidal waveform can be generated.
[0065] In the embodiment of the present application, when the limit oscillation waveform is a sinusoidal waveform and the intermediate voltage measurement values in the limit oscillation waveform include at least 3 target voltage values, the limit oscillation waveform can be considered to be a complete sinusoidal waveform.
[0066] In the embodiment of the present application, determining the oscillation period and the critical gain based on the limit oscillation waveform, the first output value and the second output value can be achieved by the following steps:
[0067] An oscillation period is determined based on the time between two adjacent peaks in the extreme oscillation waveform, and the amplitude of the extreme oscillation waveform is determined based on the extreme oscillation waveform; a loop amplitude is determined based on the first output value and the second output value; and a critical gain is calculated based on the amplitude of the extreme oscillation waveform and the loop amplitude.
[0068] The present application may determine the time difference between the two peaks as the oscillation period.
[0069] In the embodiment of the present application, the loop amplitude may be obtained by subtracting the first output value from the second output value.
[0070] In the embodiment of the present application, the critical gain can be calculated by the following formula:
[0071]
[0072] Among them, the critical gain Kc,d is the loop amplitude, and A is the amplitude of the extreme oscillation waveform.
[0073] Step S4: determining PID parameters based on the oscillation period and the critical gain.
[0074] In the embodiment of the present application, the PID parameters can be calculated according to the Ziegler-Nichols formula. Exemplarily, the PID parameter calculation is shown in Table 1:
[0075] Table 1 is a schematic diagram of a method for calculating a PIF parameter provided in an embodiment of the present application.
[0076] Controller Type Kp Ti Td P 0.5*Kc --- --- PI 0.45*Kc 0.85*Tc --- PID 0.6*Kc 0.5*Tc 0.12*Tc
[0077] The present application provides a method for determining a setting parameter. When an electronic device enters a setting mode, the excitation current of a generator is controlled to perform periodic conversion between a first output value and a second output value, and an intermediate voltage measurement value of the generator output is obtained, wherein the first output value is less than the second output value, the first output value corresponds to a lower limit value of a voltage range, the second output value corresponds to an upper limit value of the voltage range, and the voltage range is determined based on a target voltage value; a limit oscillation waveform is determined based on the intermediate voltage measurement value; when the limit oscillation waveform is a sinusoidal waveform and the intermediate voltage measurement value in the limit oscillation waveform includes at least 3 target voltage values, an oscillation period and a critical gain are determined based on the limit oscillation waveform, the first output value and the second output value, and a PID parameter is determined based on the oscillation period and the critical gain, which can help technicians improve the quality and speed of excitation PID parameter tuning.
[0078] In some embodiments, before step S1, the method further includes:
[0079] Step S101 , obtaining setting information of a user, wherein the setting information is used to set a voltage range, wherein the voltage range includes: the target voltage value and an oscillation amplitude of the target voltage value.
[0080] In the embodiment of the present application, the oscillation amplitude can be configured, and illustratively, can be 100 V. Then the voltage range can be expressed as: target voltage value -100 V to target voltage value +100 V.
[0081] Step S102, when the electronic device enters the pre-processing mode, the generator is controlled to run at a constant speed, and the excitation current is controlled to increase at a preset rate.
[0082] In the embodiment of the present application, when entering the preprocessing mode, a program corresponding to the preprocessing mode is executed.
[0083] In the embodiment of the present application, the generator can be controlled to run at a constant speed, and the target voltage value can be set to the actual working voltage of the generator. Then the electronic device sends an excitation start instruction, and the generator runs normally.
[0084] In the embodiment of the present application, the excitation opening of the power tube can be controlled to increase at a preset rate to control the excitation current to increase at a preset rate.
[0085] In the embodiment of the present application, the power tube may include: any one of a MOSFET tube, a thyristor, and an IGBT.
[0086] In some embodiments, other control cores may also be used to perform control.
[0087] For example, taking a MOSFET tube as an example, the MOSFET tube can be controlled to increase the excitation opening by 0.2% every 5 seconds, and the excitation current also increases synchronously. In the embodiment of the present application, the intermediate voltage value will also increase when the excitation current increases. In the embodiment of the present application, the excitation opening can be gradually increased from 0.
[0088] Step S103 , detecting an intermediate voltage value output by the generator while the excitation current increases at a preset rate.
[0089] In the embodiment of the present application, the electronic device can be connected to the voltage sensor for communication, and the voltage sensor can be used to detect the intermediate voltage value output by the generator.
[0090] Step S104: when the intermediate voltage value reaches the lower limit of the voltage range, the first output value of the excitation current is recorded.
[0091] In the embodiment of the present application, the magnitude relationship between the intermediate voltage value and the lower limit value of the voltage range can be compared, and when the intermediate voltage value reaches the lower limit value of the voltage range, the first output value of the excitation current is recorded.
[0092] Step S105 , when the intermediate voltage value reaches the upper limit value of the voltage range, recording the second output value of the excitation current.
[0093] The method provided in the embodiment of the present application sets a voltage range to determine the first output value and the second output value in the preprocessing mode, and can limit the oscillation assignment of the intermediate voltage measurement value through the first output value and the second output value in the setting mode, thereby limiting the voltage fluctuation of the extreme oscillation link under the high voltage environment within a controllable range, reducing the risk of technical personnel during setting.
[0094] In some embodiments, after step S2, the method further includes:
[0095] Step S5, when the limit oscillation waveform is a non-sinusoidal waveform, adjusting the voltage range or adjusting the detection frequency of detecting the intermediate voltage value of the generator to re-determine the first output value and the second output value of the excitation current.
[0096] In the embodiment of the present application, the non-sinusoidal waveform may include: a rectangular waveform, etc.
[0097] When the non-sinusoidal waveform is a rectangular waveform, it means that the intermediate voltage value responds too fast and the equipment adjustment speed is slow, then it is necessary to reset the voltage range, for example, increase the voltage range, adjust the detection frequency of the intermediate voltage value of the generator, or speed up the acquisition frequency.
[0098] After the adjustment, steps S1 to S4 may be executed again.
[0099] In some embodiments, after step S4, the method further includes:
[0100] Step S6: When the electronic device enters the regulation mode, closed-loop control is performed on the voltage output by the generator based on the PID parameters.
[0101] In the embodiment of the present application, various functional items can be tested in the adjustment mode, and the technicians can observe the waveform in real time and can fine-tune the parameters after full consideration based on the actual situation.
[0102] Based on the above embodiments, the present application further provides a method for determining a setting parameter, the method comprising:
[0103] At least two modes are set in the system: tuning mode and regulation mode. Regulation mode refers to the PID regulation control mode in normal working state, while tuning mode is the mode used to adjust PID parameters.
[0104] In the setting mode, the controller makes the output value of the excitation current switch periodically between the maximum value (same as the second output value in the above embodiment) and the minimum value (same as the first output value in the above embodiment). When the measured value of the intermediate voltage is less than the set value (same as the target voltage value in the above embodiment), the controller performs the maximum output, and when the measured value is greater than the set value, the controller performs the minimum output. In this way, the voltage of the controlled system will be in an extreme oscillation state, and after at least 3 zero-crossing detections, a periodic oscillation waveform is obtained, from which the characteristic parameters of the system are extracted.
[0105] In the regulation mode, the system characteristic parameters obtained in the tuning mode are used to calculate and determine the PID parameters through the Ziegler-Nichols algorithm, and then this PID regulator is used to control the system. Figure 2 A schematic diagram of a PID self-tuning algorithm provided in an embodiment of the present application is shown in FIG. Figure 2 As shown. The PID parameters can be calculated and determined, and then this PID regulator can be used to control the system.
[0106] In some embodiments, the mode further includes: adding a pre-processing mode to ensure that the voltage fluctuation of the extreme oscillation link under a high voltage environment is within an allowable range.
[0107] Figure 3 A schematic diagram of a method for determining a setting parameter provided in an embodiment of the present application is provided. Figure 3 As shown, including:
[0108] Set the controller's operating mode to preprocessing mode. After the generator runs at a constant speed, set the target voltage to the actual working voltage through the debugging serial port, set the oscillation amplitude limit to ±100V, and then send an excitation start command to the excitation controller.
[0109] The excitation controller slowly increases the MOSFET tube opening from 0 (for example: 0.2% step every 5s), the excitation current will slowly increase, and the intermediate voltage will also slowly increase. When the controller detects that the intermediate voltage is higher than the target voltage-oscillation amplitude limit (target voltage-100V), the excitation opening at this time is recorded; thereafter, the controller continues to slowly increase the opening. When the controller detects that the intermediate voltage is higher than the target voltage + oscillation amplitude limit (target voltage +100V), the excitation opening at this time is recorded. After recording the excitation opening twice, a stop excitation command is sent to the controller. The excitation openings recorded twice before and after correspond to the low output value and the high output value in the limit oscillation link, respectively.
[0110] Switch the controller to the setting mode, send the excitation start command to the controller through the debugging serial port, and the controller will periodically switch the excitation opening between the low output value and the high output value. When the intermediate voltage measurement value is less than the target value, the controller sets the excitation opening to the high output value; when the intermediate voltage measurement value is greater than the target value, the controller sets the excitation opening to the low output value. The intermediate voltage will be in an extreme oscillation state. After crossing the target value at least 3 times, the controller can stop excitation after obtaining a complete extreme oscillation waveform. During this period, the intermediate voltage waveform needs to be observed. If the sine waveform is incomplete and the shape is close to a rectangular wave, it means that the intermediate voltage response speed is too fast and the equipment adjustment speed is too slow. It is necessary to relax the oscillation amplitude limit or speed up the acquisition and processing speed of the controller; after obtaining a complete sine waveform, the peak value can also be adjusted by relaxing the oscillation amplitude limit.
[0111] The controller extracts the system oscillation period Tc and critical gain Kc based on the obtained limit oscillation waveform. The oscillation period Tc can be obtained by measuring the time between adjacent peaks of the intermediate voltage output curve; the critical gain Kc can be calculated using the following formula: In the formula, A is the sine wave amplitude, and d is the loop amplitude (i.e., high output value of excitation opening - low output value)
[0112]
[0113] The controller uses the previously calculated eigenvalues to calculate the corresponding PID parameters according to the Ziegler-Nichols formula.
[0114] Switch the controller to the adjustment mode. The control speed of the adjustment mode should be consistent with that of the setting mode. Then, test each function point in the adjustment mode. The technicians can observe the waveform in real time and fine-tune the parameters according to the actual situation after full consideration.
[0115] In the embodiment of the present application, not only does it have normal excitation control function, but also the relay feedback algorithm can be used in the setting mode to quickly set the PID parameters, which can solve the problems of tight time, low quality and high difficulty in manual setting of PID parameters on site, and can also reduce the time that on-site technicians are exposed to harsh environments such as high noise and high radiation.
[0116] The method provided in the embodiment of the present application uses an excitation controller to adjust the MOSFET tube of the excitation current to limit the maximum and minimum output values and the oscillation amplitude to ensure that the voltage fluctuation of the extreme oscillation link under a high-voltage environment is within an allowable range.
[0117] The method provided in the embodiment of the present application is still applicable to the maintenance of old products. For older locomotives, various performance indicators have changed, resulting in the deterioration of the PID parameter control effect of the equipment. The PID parameters can also be optimized by the method provided in the embodiment of the application.
[0118] The method provided in the embodiment of the present application can be extended to other fields, such as PID control systems of some simple loops. For control objects that are not allowed to produce large fluctuations, this method can also be used to limit the maximum and minimum output values, oscillation amplitude, etc. to ensure that the fluctuations are within the allowable range.
[0119] Based on the foregoing embodiments, the embodiments of the present application provide a device for determining setting parameters. The modules included in the device and the units included in the modules can be implemented by a processor in a computer device; of course, they can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU, Central Processing Unit), a microprocessor (MPU, Microprocessor Unit), a digital signal processor (DSP, Digital Signal Processing) or a field programmable gate array (FPGA, Field Programmable Gate Array), etc.
[0120] The embodiment of the present application provides a device for determining a setting parameter, and the device for determining a setting parameter includes:
[0121] a conversion module, configured to control the excitation current of the generator to perform periodic conversion between a first output value and a second output value when the electronic device enters a setting mode, and obtain an intermediate voltage measurement value output by the generator, wherein the first output value is less than the second output value, the first output value corresponds to a lower limit value of a voltage range, the second output value corresponds to an upper limit value of the voltage range, and the voltage range is determined based on a target voltage value;
[0122] A first determination module, configured to determine a limit oscillation waveform based on the intermediate voltage measurement value;
[0123] a second determination module, configured to determine an oscillation period and a critical gain based on the limit oscillation waveform, the first output value, and the second output value when the limit oscillation waveform is a sine waveform and the intermediate voltage measurement value in the limit oscillation waveform includes at least three target voltage values;
[0124] The third determination module is used to determine a PID parameter based on the oscillation period and the critical gain.
[0125] In some embodiments, the controlling the excitation current of the generator to periodically switch between a first output value and a second output value comprises:
[0126] When the intermediate voltage measurement value is less than the target voltage value, setting the excitation current of the generator to a second output value;
[0127] In a case where the intermediate voltage measurement value is greater than or equal to the target voltage value, the excitation current of the generator is set to a first output value.
[0128] In some embodiments, the setting parameter determination device is further used for:
[0129] Acquire setting information of a user, where the setting information is used to set a voltage range, wherein the voltage range includes: the target voltage value and an oscillation amplitude of the target voltage value;
[0130] When the electronic device enters the pre-processing mode, the generator is controlled to run at a constant speed, and the excitation current is controlled to increase at a preset rate;
[0131] When the excitation current increases at a preset rate, detecting an intermediate voltage value output by the generator;
[0132] When the intermediate voltage value reaches the lower limit value of the voltage range, recording the first output value of the excitation current;
[0133] When the intermediate voltage value reaches the upper limit value of the voltage range, the second output value of the excitation current is recorded.
[0134] In some embodiments, the setting parameter determination device is further used for:
[0135] In the case where the limit oscillation waveform is a non-sinusoidal waveform, the voltage range is adjusted or the detection frequency of detecting the intermediate voltage value of the generator is adjusted to re-determine the first output value and the second output value of the excitation current.
[0136] In some embodiments, determining the oscillation period and the critical gain based on the limit oscillation waveform, the first output value, and the second output value includes:
[0137] Determining an oscillation period based on a time between two adjacent peaks in the extreme oscillation waveform, and determining an amplitude of the extreme oscillation waveform based on the extreme oscillation waveform;
[0138] Determining a loop amplitude based on the first output value and the second output value;
[0139] A critical gain is calculated based on the amplitude of the limiting oscillation waveform and the loop amplitude.
[0140] In some embodiments, the setting parameter determination device is further used for:
[0141] When the electronic device enters the regulation mode, closed-loop control is performed on the voltage output by the generator based on the PID parameters.
[0142] In some embodiments, controlling the excitation current to increase at a preset rate comprises:
[0143] The excitation opening of the power tube is controlled to increase at a preset rate, so as to control the excitation current to increase at a preset rate.
[0144] It should be noted that in the embodiments of the present application, if the above-mentioned method for determining the setting parameters is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM, Read Only Memory), a disk or an optical disk. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.
[0145] Accordingly, an embodiment of the present application provides a storage medium on which a computer program is stored, characterized in that when the computer program is executed by a processor, the steps in the method for determining the setting parameters provided in the above embodiment are implemented.
[0146] An embodiment of the present application provides an electronic device; Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the electronic device 400 includes: a processor 401, at least one communication bus 402, a user interface 403, at least one external communication interface 404, and a memory 405. The communication bus 402 is configured to realize connection and communication between these components. The user interface 403 may include a display screen, and the external communication interface 404 may include a standard wired interface and a wireless interface. The processor 401 is configured to execute the program of the method for determining the setting parameters stored in the memory to implement the steps in the method for determining the setting parameters provided in the above embodiment.
[0147] Figure 4 A schematic diagram of the topological structure of another electronic device provided in an embodiment of the present application is shown in FIG. Figure 4 As shown,
[0148] It uses high-performance DSP28335 as the control core, has floating-point computing capabilities, and can work at a main frequency of up to 150MHZ. It integrates electrical logic control, excitation control, and drive in one, with a compact overall structure and beautiful appearance. It has a wealth of peripheral interfaces. In order to make the acquisition of analog quantities such as voltage and current more accurate, 16-bit A / D sampling is used; the digital IO uses the mature digital input and output circuit scheme of the microcomputer, which can realize various logic controls. At the same time, it has 485, CAN, and debugging serial port communication interfaces, which are convenient for communicating with other control modules, control devices, PCs, etc., to achieve reliable exchange of data and instructions, as well as data monitoring and landing functions. When the device is working normally, by collecting signals such as excitation current, generator output voltage, output current, and generator speed, the MOSFET tube is driven to adjust the excitation current, thereby realizing the control requirements of output voltage, current, and power.
[0149] An embodiment of the present application provides a power generation system, including: the electronic device and the generator described above.
[0150] An embodiment of the present application provides a locomotive, comprising: the power generation system described above.
[0151] It should be noted here that the description of the above storage medium, electronic device, power generation system, and locomotive embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0152] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.
[0153] It should be noted that, in this article, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, object or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, object or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, object or device including the element.
[0154] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0155] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0156] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0157] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM, Read Only Memory), disks or optical disks, etc. Various media that can store program codes.
[0158] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a controller to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0159] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for determining a setting parameter, characterized in that: Used in electronic equipment, including: When the electronic device enters the setting mode, the excitation current of the generator is controlled to be periodically switched between a first output value and a second output value, and an intermediate voltage measurement value output by the generator is obtained, wherein the first output value is less than the second output value, the first output value corresponds to a lower limit value of a voltage range, the second output value corresponds to an upper limit value of the voltage range, and the voltage range is determined based on a target voltage value; determining a limiting oscillation waveform based on the intermediate voltage measurement; In a case where the limit oscillation waveform is a sine waveform and the intermediate voltage measurement values in the limit oscillation waveform include at least three target voltage values, determining an oscillation period and a critical gain based on the limit oscillation waveform, the first output value, and the second output value; A PID parameter is determined based on the oscillation period and the critical gain.
2. The method according to claim 1, characterized in that The controlling of the excitation current of the generator to periodically switch between a first output value and a second output value comprises: When the intermediate voltage measurement value is less than the target voltage value, setting the excitation current of the generator to a second output value; In a case where the intermediate voltage measurement value is greater than or equal to the target voltage value, the excitation current of the generator is set to a first output value.
3. The method according to claim 2, characterized in that The method further comprises: Acquire setting information of a user, where the setting information is used to set a voltage range, wherein the voltage range includes: the target voltage value and an oscillation amplitude of the target voltage value; When the electronic device enters the pre-processing mode, the generator is controlled to run at a constant speed, and the excitation current is controlled to increase at a preset rate; When the excitation current increases at a preset rate, detecting an intermediate voltage value output by the generator; When the intermediate voltage value reaches the lower limit value of the voltage range, recording the first output value of the excitation current; When the intermediate voltage value reaches the upper limit value of the voltage range, the second output value of the excitation current is recorded.
4. The method according to claim 3, characterized in that The method further comprises: In the case where the limit oscillation waveform is a non-sinusoidal waveform, the voltage range is adjusted or the detection frequency of detecting the intermediate voltage value of the generator is adjusted to re-determine the first output value and the second output value of the excitation current.
5. The method according to claim 1, characterized in that The determining of the oscillation period and the critical gain based on the limit oscillation waveform, the first output value and the second output value comprises: Determining an oscillation period based on a time between two adjacent peaks in the extreme oscillation waveform, and determining an amplitude of the extreme oscillation waveform based on the extreme oscillation waveform; Determining a loop amplitude based on the first output value and the second output value; A critical gain is calculated based on the amplitude of the limiting oscillation waveform and the loop amplitude.
6. The method according to claim 1, characterized in that The method further comprises: When the electronic device enters the regulation mode, closed-loop control is performed on the voltage output by the generator based on the PID parameters.
7. The method according to claim 3, characterized in that The controlling the excitation current to increase at a preset rate comprises: The excitation opening of the power tube is controlled to increase at a preset rate, so as to control the excitation current to increase at a preset rate.
8. A device for determining a setting parameter, characterized in that: include: a conversion module, configured to control the excitation current of the generator to perform periodic conversion between a first output value and a second output value when the electronic device enters a setting mode, and obtain an intermediate voltage measurement value output by the generator, wherein the first output value is less than the second output value, the first output value corresponds to a lower limit value of a voltage range, the second output value corresponds to an upper limit value of the voltage range, and the voltage range is determined based on a target voltage value; A first determination module, configured to determine a limit oscillation waveform based on the intermediate voltage measurement value; a second determination module, configured to determine an oscillation period and a critical gain based on the limit oscillation waveform, the first output value, and the second output value when the limit oscillation waveform is a sine waveform and the intermediate voltage measurement value in the limit oscillation waveform includes at least three target voltage values; The third determination module is used to determine a PID parameter based on the oscillation period and the critical gain.
9. An electronic device, characterized in that: include: A memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the method according to any one of claims 1 to 7 is executed.
10. A power generation system, characterized in that: include: The electronic device and generator according to claim 9.
11. A storage medium, characterized in that: The computer program stored in the storage medium can be executed by one or more processors and can be used to implement the method as claimed in any one of claims 1 to 7.
