Frequency converter data correction method, device, equipment and medium
By performing multi-segment piecewise linear correction on the inverter input data, the problems of cumbersome and insufficient accuracy of analog input calibration in the existing technology are solved, achieving higher conversion accuracy and simplifying the debugging process.
Patent Information
- Application Number
- CN202411476261.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-22
- Publication Date
- 2024-11-22
AI Technical Summary
Existing inverter analog input calibration schemes are cumbersome during commissioning and have little effect on adjusting nonlinear curves, leading to the accumulation of input voltage defaults and affecting conversion accuracy.
By acquiring the inverter input data, data correction is performed using pre-calibrated multi-segment piecewise linear curves. The correction points are determined based on historical analog input voltages and preset calculation rules. One or more segments of piecewise linear correction are then performed, and the conversion table is updated.
It reduces the default cumulative effect of analog inputs, improves the accuracy and precision of converted data, and simplifies the debugging process.
Smart Images

Figure CN119004865A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a method, device, equipment and medium for correcting frequency converter data. Background Art
[0002] The existing inverter analog input calibration scheme is generally implemented by adjusting the gain and offset parameters. The voltage or current value of the analog input (voltage is used as a unified description below) can establish a conversion curve (table) associated with the output value inside the inverter, and combine the software and hardware filtering functions to improve the anti-interference ability of the input signal. When the analog voltage input to the inverter is constant, adjusting the gain parameter alone can change the slope of the voltage-conversion data curve (table), thereby amplifying or reducing the conversion data on the original basis. Adjusting the offset parameter alone will not affect the slope of the conversion curve (table), but will only offset the voltage zero point (or conversion data zero point), which is generally used to solve the zero point offset problem; Analog quantity is generally used in applications such as inverter main and auxiliary frequency setting, PID feedback signal or user-defined conversion output, etc. It involves control system design, process matching, product selection, signal processing, interference prevention and other fields.
[0003] The inverter generally has parameter groups such as the maximum / minimum value of analog input and the maximum / minimum value of analog input conversion, and the analog input conversion table is formed by combining the parameters. Due to the deviation of the AD sampling circuits selected by different inverters, the analog voltage input to the inverter may be default. The range value converted by the ADC is only an approximate value and is not very accurate. The traditional gain and offset parameters can solve the conversion range and zero offset problems of the analog voltage, but the debugging is relatively cumbersome, and the nonlinear curve adjustment effect of the default synchronous increase according to the increase of the input voltage is not very effective. How to improve the conversion efficiency of the inverter is an urgent problem to be solved. Summary of the invention
[0004] In view of the above problems, embodiments of the present invention are proposed to provide a method, device, equipment and medium for correcting frequency converter data that overcome the above problems or at least partially solve the above problems.
[0005] In a first aspect, an embodiment of the present invention provides a method for correcting inverter data, the method comprising: Get the input data of the inverter; Based on the input data and the pre-corrected curve, output data corresponding to the input data is determined, wherein the pre-corrected curve is a multi-segment broken line obtained by correcting a basic curve a preset number of times, wherein the basic curve is determined based on historical simulated input voltage and preset calculation rules.
[0006] Optionally, the pre-corrected curve is obtained by: According to the historical simulated input voltage and a preset calculation rule, actual conversion data corresponding to the historical simulated input voltage is determined; the preset calculation rule at least includes a minimum input voltage value, a maximum input voltage value, a minimum conversion output value, and a maximum conversion output value, and the minimum input voltage value, the maximum input voltage value, the minimum conversion output value, and the maximum conversion output value meet preset conditions; Determining a basic curve according to the historical simulated input voltage and the actual conversion data; Determining a preset number of correction points according to the basic curve; The basic curve is corrected by performing one or more broken line corrections according to the correction points to obtain a corrected curve.
[0007] Optionally, determining actual conversion data corresponding to the historical simulated input voltage according to the historical simulated input voltage and a preset calculation rule includes: ; Among them: X1 and X2 are the minimum and maximum input voltage respectively, Y1 and Y2 are the minimum and maximum conversion output respectively, Xa is the historical simulation input voltage, and Ya is the actual conversion data.
[0008] Optionally, performing a polyline correction on the basic curve according to the correction point to obtain a corrected curve includes: Use the following method to perform a broken line correction: ; When the historical analog input voltage Xa is smaller than the calibration voltage point X'a data, the actual conversion data Ya is: ; When the current input voltage Xa is greater than the correction voltage point X'a data, the actual conversion data Ya is: ; Among them: X1 and X2 are the minimum and maximum input voltage respectively, Y1 and Y2 are the minimum and maximum conversion output respectively, X'a and Y'a are the correction voltage point and user-defined correction data respectively, K1 is the slope of a broken line before the correction point, and K2 is the slope of two broken lines after the correction point.
[0009] Optionally, performing two-segment broken line correction on the basic curve according to the correction points to obtain a corrected curve includes: The two-segment polyline correction is performed as follows: ; When the current input voltage Xa is smaller than the calibration voltage point X'a, the actual conversion data Ya is: ; When the current input voltage Xa is larger than the calibration voltage point X'a but smaller than X'b, the actual conversion data Ya is: ; When the current input voltage Xa is greater than the calibration voltage point X'b, the actual conversion data Ya is: ; Among them: X1 and X2 are the minimum and maximum input voltage respectively, Y1 and Y2 are the minimum and maximum conversion output respectively, X'a and X'b are the correction voltage point a and correction voltage point b respectively, Y'a / Y'b are the custom correction data a and custom correction data b respectively, K1 is the slope of one segment of broken line, K2 is the slope of two segments of broken line, and K3 is the slope of three segments of broken line.
[0010] Optionally, performing three-segment polyline correction on the basic curve according to the correction points to obtain a corrected curve includes: The three-segment polyline correction is performed as follows: ; When the current input voltage Xa is smaller than the calibration voltage point X'a, the actual conversion data Ya is: ; When the current input voltage Xa is larger than the calibration voltage point X'a but smaller than X'b, the actual conversion data Ya is: ; When the current input voltage Xa is larger than the calibration voltage point X'b but smaller than X'c, the actual conversion data Ya is: ; When the current input voltage Xa is greater than the calibration voltage point X'c, the actual conversion data Ya is: ; Wherein: X1 and X2 are the minimum and maximum input voltage respectively, Y1 and Y2 are the minimum and maximum conversion output respectively, X'a, X'b and X'c are the correction voltage point a, correction voltage point b and correction voltage point c respectively, Y'a, Y'b and Y'c are the custom correction data a, custom correction data b and custom correction data c respectively, K1 is a one-segment broken line slope, K2 is a two-segment broken line slope, K3 is a three-segment broken line slope, and K4 is a four-segment broken line slope.
[0011] In a second aspect, an embodiment of the present invention provides a frequency converter data correction device, the device comprising: An acquisition module, used for acquiring input data of the inverter; A correction module is used to determine output data corresponding to the input data based on the input data and a pre-corrected curve, wherein the pre-corrected curve is a multi-segment broken line obtained by correcting a basic curve a preset number of times, wherein the basic curve is determined based on historical simulated input voltage and preset calculation rules.
[0012] Optionally, the device further comprises a calculation module, wherein the calculation module is configured to: According to the historical simulated input voltage and a preset calculation rule, actual conversion data corresponding to the historical simulated input voltage is determined; the preset calculation rule at least includes a minimum input voltage value, a maximum input voltage value, a minimum conversion output value, and a maximum conversion output value, and the minimum input voltage value, the maximum input voltage value, the minimum conversion output value, and the maximum conversion output value meet preset conditions; Determining a basic curve according to the historical simulated input voltage and the actual conversion data; Determining a preset number of correction points according to the basic curve; The basic curve is corrected by performing one or more broken line corrections according to the correction points to obtain a corrected curve.
[0013] Optionally, the calculation module is used to: ; Among them: X1 and X2 are the minimum and maximum input voltage respectively, Y1 and Y2 are the minimum and maximum conversion output respectively, Xa is the historical simulation input voltage, and Ya is the actual conversion data.
[0014] Optionally, the calculation module is used to: Use the following method to perform a broken line correction: ; When the historical analog input voltage Xa is smaller than the calibration voltage point X'a data, the actual conversion data Ya is: ; When the current input voltage Xa is greater than the correction voltage point X'a data, the actual conversion data Ya is: ; Among them: X1 and X2 are the minimum and maximum input voltage respectively, Y1 and Y2 are the minimum and maximum conversion output respectively, X'a and Y'a are the correction voltage point and user-defined correction data respectively, K1 is the slope of a broken line before the correction point, and K2 is the slope of two broken lines after the correction point.
[0015] Optionally, the calculation module is used to: The two-segment polyline correction is performed as follows: ; When the current input voltage Xa is smaller than the calibration voltage point X'a, the actual conversion data Ya is: ; When the current input voltage Xa is larger than the calibration voltage point X'a but smaller than X'b, the actual conversion data Ya is: ; When the current input voltage Xa is greater than the calibration voltage point X'b, the actual conversion data Ya is: ; Among them: X1 and X2 are the minimum and maximum input voltage respectively, Y1 and Y2 are the minimum and maximum conversion output respectively, X'a and X'b are the correction voltage point a and correction voltage point b respectively, Y'a / Y'b are the custom correction data a and custom correction data b respectively, K1 is the slope of one segment of broken line, K2 is the slope of two segments of broken line, and K3 is the slope of three segments of broken line.
[0016] Optionally, the calculation module is used to: The three-segment polyline correction is performed as follows: ; When the current input voltage Xa is smaller than the calibration voltage point X'a, the actual conversion data Ya is: ; When the current input voltage Xa is larger than the calibration voltage point X'a but smaller than X'b, the actual conversion data Ya is: ; When the current input voltage Xa is larger than the calibration voltage point X'b but smaller than X'c, the actual conversion data Ya is: ; When the current input voltage Xa is greater than the calibration voltage point X'c, the actual conversion data Ya is: ; Wherein: X1 and X2 are the minimum and maximum input voltage respectively, Y1 and Y2 are the minimum and maximum conversion output respectively, X'a, X'b and X'c are the correction voltage point a, correction voltage point b and correction voltage point c respectively, Y'a, Y'b and Y'c are the custom correction data a, custom correction data b and custom correction data c respectively, K1 is a one-segment broken line slope, K2 is a two-segment broken line slope, K3 is a three-segment broken line slope, and K4 is a four-segment broken line slope.
[0017] In a third aspect, an embodiment of the present invention provides a terminal device, including: at least one processor and a memory; The memory stores a computer program; and at least one processor executes the computer program stored in the memory to implement the inverter data correction method provided in the first aspect.
[0018] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed, the inverter data correction method provided in the first aspect is implemented.
[0019] The embodiments of the present invention include the following advantages: The inverter data correction method, device, equipment and medium provided by the embodiments of the present invention obtain the input data of the inverter; determine the output data corresponding to the input data based on the input data and the pre-corrected curve, wherein the pre-corrected curve is a multi-segment broken line obtained by correcting the basic curve a preset number of times, and performs data correction based on the inverter analog input basic curve through user-defined range points, updates the conversion table based on the correction data, and performs segmented correction on the analog input, which can reduce the default cumulative effect of the analog input, compress the conversion data error to a very small range, and improve the accuracy of the conversion. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 is a flowchart of a method for correcting frequency converter data according to an embodiment of the present invention; Figure 2 is a flowchart of steps of another embodiment of a frequency converter data correction method of the present invention; Figure 3 It is a structural block diagram of an embodiment of a frequency converter data correction device of the present invention; Figure 4 It is a structural schematic diagram of a terminal device of the present invention. DETAILED DESCRIPTION
[0021] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0022] An embodiment of the present invention provides a frequency converter data correction method for correcting the input voltage of the frequency converter. The execution subject of this embodiment is a frequency converter data correction device, which is arranged on a terminal device, wherein the terminal device at least includes a computer, a tablet terminal, a robot, etc.
[0023] Reference Figure 1 , shows a flowchart of a method for correcting frequency converter data according to an embodiment of the present invention, the method may specifically include the following steps: S101, obtaining input data of the frequency converter; Among them, the input data of the inverter is the voltage value.
[0024] The terminal device obtains the input voltage value of the inverter.
[0025] S102. Determine output data corresponding to the input data based on the input data and a pre-corrected curve, wherein the pre-corrected curve is a multi-segment broken line obtained by correcting a basic curve a preset number of times, wherein the basic curve is determined based on historical simulated input voltage and preset calculation rules.
[0026] Specifically, the terminal device calculates the actual conversion data based on the historical analog input voltage and the preset calculation rules, and then generates a basic curve based on the historical analog input voltage and the actual conversion data. The basic curve is corrected once or multiple times to obtain multiple broken lines, that is, a corrected curve, and the corrected output data is obtained based on the input data and the corrected curve.
[0027] The inverter data correction method provided by the embodiment of the present invention obtains the input data of the inverter; determines the output data corresponding to the input data according to the input data and the pre-corrected curve, wherein the pre-corrected curve is a multi-segment broken line obtained by correcting the basic curve for a preset number of times, performs data correction through user-defined range points according to the inverter analog input basic curve, updates the conversion table based on the correction data, and performs segmented correction on the analog input, which can reduce the default cumulative effect of the analog input, compress the conversion data error to a very small range, and improve the accuracy of the conversion.
[0028] like Figure 2 As shown, optionally, the pre-corrected curve is obtained by: According to the historical simulated input voltage and the preset calculation rules, the actual conversion data corresponding to the historical simulated input voltage is determined; the preset calculation rules at least include the minimum input voltage, the maximum input voltage, the minimum conversion output and the maximum conversion output, and the minimum input voltage, the maximum input voltage, the minimum conversion output and the maximum conversion output meet the preset conditions; Determine the basic curve based on the historical simulated input voltage and actual conversion data; According to the basic curve, a preset number of correction points are determined; The basic curve is corrected by one or more broken lines according to the correction points to obtain a corrected curve.
[0029] Optionally, determining actual conversion data corresponding to the historical analog input voltage according to the historical analog input voltage and a preset calculation rule includes: By setting a series of parameter groups, the basic curve of the inverter analog quantity is established (taking the positive range as an example): ; Among them: X1 and X2 are the minimum and maximum input voltage respectively, Y1 and Y2 are the minimum and maximum conversion output respectively (such as the speed value, the minimum conversion speed and the maximum conversion speed), Xa is the historical analog input voltage, and Ya is the actual conversion data (such as the actual conversion speed).
[0030] In actual applications, there is a situation where the port receiving voltage overflows, which may be caused by the analog output coefficient of the numerical control system being too large or the AD sampling conversion coefficient of the inverter being too large. At this time, if the data is converted according to the basic curve, the conversion data accuracy will be insufficient. In the basic curve established above, up to three corrections can be performed, and one correction point (conversion data point) is selected each time to correct the input voltage. During the correction, ensure that the x-axis voltage data remains unchanged, select a new conversion data point on the y-axis, and its correction point falls outside the basic curve (you can also select a point on the curve for correction).
[0031] The three-time correction formula shown in the embodiment of the present application is a progressive formula, wherein the first data correction is performed according to the primary correction formula, the second data correction is performed according to the secondary correction formula, and so on.
[0032] Optionally, a correction of a segment of a broken line is performed on the basic curve according to the correction point to obtain a corrected curve, including: Use the following method to perform a broken line correction: ; When the historical analog input voltage Xa is smaller than the calibration voltage point X'a data, the actual conversion data Ya is: ; When the current input voltage Xa is greater than the correction voltage point X'a data, the actual conversion data Ya is: ; Among them: X1 and X2 are the minimum and maximum input voltage respectively, Y1 and Y2 are the minimum and maximum conversion output respectively, X'a and Y'a are the correction voltage point and user-defined correction data respectively, K1 is the slope of a segment of broken line before the correction point, and K2 is the slope of two segments of broken line after the correction point (the basic curve is divided into multiple segments of broken line with the correction point as the boundary).
[0033] Optionally, the basic curve is corrected by two broken lines according to the correction points to obtain a corrected curve, including: The two-segment polyline correction is performed as follows: ; When the current input voltage Xa is smaller than the calibration voltage point X'a, the actual conversion data Ya is: ; When the current input voltage Xa is larger than the calibration voltage point X'a but smaller than X'b, the actual conversion data Ya is: ; When the current input voltage Xa is greater than the calibration voltage point X'b, the actual conversion data Ya is: ; Wherein: X1 and X2 are the minimum and maximum input voltage respectively, Y1 and Y2 are the minimum and maximum conversion output respectively, X'a and X'b are the correction voltage point a and correction voltage point b (b > a), Y'a / Y'b are the custom correction data a and custom correction data b respectively, K1 is the slope of a single-segment broken line, K2 is the slope of a two-segment broken line, and K3 is the slope of a three-segment broken line (the basic curve is divided into multiple segments of broken lines with the correction points as the boundaries).
[0034] Optionally, the basic curve is corrected by three-segment polyline according to the correction points to obtain a corrected curve, including: The three-segment polyline correction is performed as follows: ; When the current input voltage Xa is smaller than the calibration voltage point X'a, the actual conversion data Ya is: ; When the current input voltage Xa is larger than the calibration voltage point X'a but smaller than X'b, the actual conversion data Ya is: ; When the current input voltage Xa is larger than the calibration voltage point X'b but smaller than X'c, the actual conversion data Ya is: ; When the current input voltage Xa is greater than the calibration voltage point X'c, the actual conversion data Ya is: ; Wherein: X1 and X2 are the minimum and maximum input voltage respectively, Y1 and Y2 are the minimum and maximum conversion output respectively, X'a, X'b and X'c are the correction voltage point a, correction voltage point b and correction voltage point c (c > b > a) respectively, Y'a, Y'b and Y'c are the custom correction data a, custom correction data b and custom correction data c respectively, K1 is the slope of a single-segment broken line, K2 is the slope of a two-segment broken line, K3 is the slope of a three-segment broken line, and K4 is the slope of a four-segment broken line (the basic curve is divided into multiple segments of broken lines with the correction points as the boundaries).
[0035] In the actual correction process, three corrections are sufficient to cope with conventional nonlinear curves. A new conversion table can be obtained by light data analysis after correction. In the case of hardware and software filtering finalization, the implementation of the embodiment of the present application is relatively simple and effective, and the correction steps are relatively simple, which effectively reduces the debugging workload of technicians. After adopting the embodiment of the present application, the default cumulative effect of the analog input voltage can be basically ignored, and the data error is significantly reduced.
[0036] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0037] The inverter data correction method provided by the embodiment of the present invention obtains the input data of the inverter; determines the output data corresponding to the input data according to the input data and the pre-corrected curve, wherein the pre-corrected curve is a multi-segment broken line obtained by correcting the basic curve for a preset number of times, performs data correction through user-defined range points according to the inverter analog input basic curve, updates the conversion table based on the correction data, and performs segmented correction on the analog input, which can reduce the default cumulative effect of the analog input, compress the conversion data error to a very small range, and improve the accuracy of the conversion.
[0038] Another embodiment of the present invention provides a frequency converter data correction device, which is used to execute the frequency converter data correction method provided in the above embodiment.
[0039] Reference Figure 3, shows a structural block diagram of an embodiment of a frequency converter data correction device of the present invention, the device may specifically include the following modules: an acquisition module 301 and a correction module 302, wherein: The acquisition module 301 is used to acquire input data of the frequency converter; The correction module 302 is used to determine the output data corresponding to the input data based on the input data and the pre-corrected curve, wherein the pre-corrected curve is a multi-segment broken line obtained by correcting the basic curve a preset number of times, wherein the basic curve is determined based on the historical simulated input voltage and preset calculation rules.
[0040] The inverter data correction device provided by the embodiment of the present invention obtains the input data of the inverter; determines the output data corresponding to the input data according to the input data and the pre-corrected curve, wherein the pre-corrected curve is a multi-segment broken line obtained by correcting the basic curve a preset number of times, performs data correction through user-defined range points according to the inverter analog input basic curve, updates the conversion table based on the correction data, and performs segmented correction on the analog input, which can reduce the default cumulative effect of the analog input, compress the conversion data error to a very small range, and improve the accuracy of the conversion.
[0041] Another embodiment of the present invention further supplements the inverter data correction device provided by the above embodiment.
[0042] Optionally, the device further comprises a computing module, and the computing module is used to: According to the historical simulated input voltage and the preset calculation rules, the actual conversion data corresponding to the historical simulated input voltage is determined; the preset calculation rules at least include the minimum input voltage, the maximum input voltage, the minimum conversion output and the maximum conversion output, and the minimum input voltage, the maximum input voltage, the minimum conversion output and the maximum conversion output meet the preset conditions; Determine the basic curve based on the historical simulated input voltage and actual conversion data; According to the basic curve, a preset number of correction points are determined; The basic curve is corrected by one or more broken lines according to the correction points to obtain a corrected curve.
[0043] Optionally, the computing module is used to: ; Among them: X1 and X2 are the minimum and maximum input voltage respectively, Y1 and Y2 are the minimum and maximum conversion output respectively, Xa is the historical simulation input voltage, and Ya is the actual conversion data.
[0044] Optionally, the computing module is used to: Use the following method to perform a broken line correction: ; When the historical analog input voltage Xa is smaller than the calibration voltage point X'a data, the actual conversion data Ya is: ; When the current input voltage Xa is greater than the correction voltage point X'a data, the actual conversion data Ya is: ; Among them: X1 and X2 are the minimum and maximum input voltage respectively, Y1 and Y2 are the minimum and maximum conversion output respectively, X'a and Y'a are the correction voltage point and user-defined correction data respectively, K1 is the slope of a broken line before the correction point, and K2 is the slope of two broken lines after the correction point.
[0045] Optionally, the computing module is used to: The two-segment polyline correction is performed as follows: ; When the current input voltage Xa is smaller than the calibration voltage point X'a, the actual conversion data Ya is: ; When the current input voltage Xa is larger than the calibration voltage point X'a but smaller than X'b, the actual conversion data Ya is: ; When the current input voltage Xa is greater than the calibration voltage point X'b, the actual conversion data Ya is: ; Among them: X1 and X2 are the minimum and maximum input voltage respectively, Y1 and Y2 are the minimum and maximum conversion output respectively, X'a and X'b are the correction voltage point a and correction voltage point b respectively, Y'a and Y'b are the custom correction data a and custom correction data b respectively, K1 is the slope of a single-segment broken line, K2 is the slope of a two-segment broken line, and K3 is the slope of a three-segment broken line.
[0046] Optionally, the computing module is used to: The three-segment polyline correction is performed as follows: ; When the current input voltage Xa is smaller than the calibration voltage point X'a, the actual conversion data Ya is: ; When the current input voltage Xa is larger than the calibration voltage point X'a but smaller than X'b, the actual conversion data Ya is: ; When the current input voltage Xa is larger than the calibration voltage point X'b but smaller than X'c, the actual conversion data Ya is: ; When the current input voltage Xa is greater than the calibration voltage point X'c, the actual conversion data Ya is: ; Wherein: X1 and X2 are the minimum and maximum input voltage respectively, Y1 and Y2 are the minimum and maximum conversion output respectively, X'a, X'b and X'c are the correction voltage point a, correction voltage point b and correction voltage point c respectively, Y'a, Y'b and Y'c are the custom correction data a, custom correction data b and custom correction data c respectively, K1 is a one-segment broken line slope, K2 is a two-segment broken line slope, K3 is a three-segment broken line slope, and K4 is a four-segment broken line slope.
[0047] It should be noted that each implementable method in this embodiment may be implemented separately, or may be implemented in combination in any combination without conflict, and this application is not limited thereto.
[0048] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0049] The inverter data correction device provided by the embodiment of the present invention obtains the input data of the inverter; determines the output data corresponding to the input data according to the input data and the pre-corrected curve, wherein the pre-corrected curve is a multi-segment broken line obtained by correcting the basic curve a preset number of times, performs data correction through user-defined range points according to the inverter analog input basic curve, updates the conversion table based on the correction data, and performs segmented correction on the analog input, which can reduce the default cumulative effect of the analog input, compress the conversion data error to a very small range, and improve the accuracy of the conversion.
[0050] Yet another embodiment of the present invention provides a terminal device, which is used to execute the inverter data correction method provided in the above embodiment.
[0051] Figure 4 is a schematic diagram of the structure of a terminal device of the present invention, such as Figure 4 As shown, the terminal device includes: at least one processor 401 and a memory 402; The memory stores a computer program; and at least one processor executes the computer program stored in the memory to implement the inverter data correction method provided in the above embodiment.
[0052] The terminal device provided in this embodiment obtains the input data of the frequency converter; determines the output data corresponding to the input data according to the input data and the pre-corrected curve, wherein the pre-corrected curve is a multi-segment broken line obtained by correcting the basic curve for a preset number of times, performs data correction through user-defined range points according to the frequency converter analog input basic curve, updates the conversion table based on the correction data, and performs segmented correction on the analog input, which can reduce the default cumulative effect of the analog input, compress the conversion data error to a very small range, and improve the accuracy of the conversion.
[0053] Yet another embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed, the inverter data correction method provided by any of the above embodiments is implemented.
[0054] According to the computer-readable storage medium of this embodiment, the input data of the frequency converter is obtained; the output data corresponding to the input data is determined according to the input data and the pre-corrected curve, wherein the pre-corrected curve is a multi-segment broken line obtained by correcting the basic curve a preset number of times, and data correction is performed according to the basic curve of the frequency converter analog input through user-defined range points, and the conversion table is updated based on the correction data, and the analog input is corrected in sections, which can reduce the default cumulative effect of the analog input, compress the conversion data error to a very small range, and improve the accuracy of the conversion.
[0055] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0056] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0057] The embodiments of the present invention are described with reference to flowcharts and / or block diagrams of methods, electronic devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing electronic device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing electronic device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0058] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing electronic device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0059] These computer program instructions can also be loaded onto a computer or other programmable data processing electronic device so that a series of operating steps are executed on the computer or other programmable electronic device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable electronic device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0060] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0061] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or electronic device that includes a series of elements includes not only those elements, but also other elements that are not explicitly listed, or also includes elements that are inherent to such process, method, article or electronic device. In the absence of further restrictions, the elements defined by the sentence "comprises a..." do not exclude the presence of other identical elements in the process, method, article or electronic device that includes the elements.
[0062] The above is a detailed introduction to a frequency converter data correction method and a frequency converter data correction device provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for correcting frequency converter data, characterized in that: The method comprises: Get the input data of the inverter; Based on the input data and the pre-corrected curve, output data corresponding to the input data is determined, wherein the pre-corrected curve is a multi-segment broken line obtained by correcting a basic curve a preset number of times, wherein the basic curve is determined based on historical simulated input voltage and preset calculation rules.
2. The method according to claim 1, characterized in that: The pre-corrected curve is obtained by: According to the historical simulated input voltage and a preset calculation rule, actual conversion data corresponding to the historical simulated input voltage is determined; the preset calculation rule at least includes a minimum input voltage value, a maximum input voltage value, a minimum conversion output value, and a maximum conversion output value, and the minimum input voltage value, the maximum input voltage value, the minimum conversion output value, and the maximum conversion output value meet preset conditions; Determining the basic curve according to the historical simulated input voltage and the actual conversion data; Determining a preset number of correction points according to the basic curve; The basic curve is corrected by performing one or more broken line corrections according to the correction points to obtain a corrected curve.
3. The method according to claim 2, characterized in that The determining, according to the historical simulated input voltage and a preset calculation rule, actual conversion data corresponding to the historical simulated input voltage comprises: ; Among them: X1 and X2 are the minimum and maximum input voltage respectively, Y1 and Y2 are the minimum and maximum conversion output respectively, Xa is the historical simulation input voltage, and Ya is the actual conversion data.
4. The method according to claim 2, characterized in that: The step of performing a polyline correction on the basic curve according to the correction point to obtain a corrected curve includes: Use the following method to perform a broken line correction: ; When the historical analog input voltage Xa is smaller than the calibration voltage point X'a data, the actual conversion data Ya is: ; When the current input voltage Xa is greater than the correction voltage point X'a data, the actual conversion data Ya is: ; Among them: X1 and X2 are the minimum and maximum input voltage respectively, Y1 and Y2 are the minimum and maximum conversion output respectively, X'a and Y'a are the correction voltage point and user-defined correction data respectively, K1 is the slope of a broken line before the correction point, and K2 is the slope of two broken lines after the correction point.
5. The method according to claim 2, characterized in that: The step of performing two-segment polyline correction on the basic curve according to the correction points to obtain a corrected curve includes: The two-segment polyline correction is performed as follows: ; When the current input voltage Xa is smaller than the calibration voltage point X'a, the actual conversion data Ya is: ; When the current input voltage Xa is larger than the calibration voltage point X'a but smaller than X'b, the actual conversion data Ya is: ; When the current input voltage Xa is greater than the correction voltage point X'b data, the actual conversion data Ya is: ; Among them: X1 and X2 are the minimum and maximum input voltage respectively, Y1 and Y2 are the minimum and maximum conversion output respectively, X'a and X'b are the correction voltage point a and correction voltage point b respectively, Y'a / Y'b are the custom correction data a and custom correction data b respectively, K1 is the slope of one segment of broken line, K2 is the slope of two segments of broken line, and K3 is the slope of three segments of broken line.
6. The method according to claim 2, characterized in that The step of performing three-segment polyline correction on the basic curve according to the correction points to obtain a corrected curve includes: The three-segment polyline correction is performed as follows: ; When the current input voltage Xa is smaller than the calibration voltage point X'a, the actual conversion data Ya is: ; When the current input voltage Xa is larger than the calibration voltage point X'a but smaller than X'b, the actual conversion data Ya is: ; When the current input voltage Xa is larger than the calibration voltage point X'b but smaller than X'c, the actual conversion data Ya is: ; When the current input voltage Xa is greater than the calibration voltage point X'c, the actual conversion data Ya is: ; Wherein: X1 and X2 are the minimum and maximum input voltage respectively, Y1 and Y2 are the minimum and maximum conversion output respectively, X'a, X'b and X'c are the correction voltage point a, correction voltage point b and correction voltage point c respectively, Y'a, Y'b and Y'c are the custom correction data a, custom correction data b and custom correction data c respectively, K1 is a one-segment broken line slope, K2 is a two-segment broken line slope, K3 is a three-segment broken line slope, and K4 is a four-segment broken line slope.
7. A frequency converter data correction device, characterized in that: The device comprises: An acquisition module, used for acquiring input data of the inverter; A correction module is used to determine output data corresponding to the input data based on the input data and a pre-corrected curve, wherein the pre-corrected curve is a multi-segment broken line obtained by correcting a basic curve a preset number of times, wherein the basic curve is determined based on historical simulated input voltage and preset calculation rules.
8. The device according to claim 7, characterized in that The device further comprises a calculation module, wherein the calculation module is configured to: According to the historical simulated input voltage and a preset calculation rule, actual conversion data corresponding to the historical simulated input voltage is determined; the preset calculation rule at least includes a minimum input voltage value, a maximum input voltage value, a minimum conversion output value, and a maximum conversion output value, and the minimum input voltage value, the maximum input voltage value, the minimum conversion output value, and the maximum conversion output value meet preset conditions; Determining the basic curve according to the historical simulated input voltage and the actual conversion data; Determining a preset number of correction points according to the basic curve; The basic curve is corrected by performing one or more broken line corrections according to the correction points to obtain a corrected curve.
9. A terminal device, characterized in that: include: at least one processor and memory; The memory stores a computer program; and the at least one processor executes the computer program stored in the memory to implement the inverter data correction method according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the frequency converter data correction method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Hardware circuit correction method based on mathematic fitting
CN106941354A
Frequency converter and correction method thereof, analog quantity correction method and system
CN108055038A
Analog voltage output method, system and device and computer readable storage medium
CN111221371A
Analog-to-digital conversion correction method and device, storage medium and electronic equipment
CN116170017A
Measurement, display and calibration method for internal pressure of battery
CN116558712A
