A control method and control device for electrical equipment
By constructing a relationship curve using the correspondence between preset angles and standard values, calculating the function value of angle information, the problem that the calculation of the cosine function occupies storage space and accuracy in the prior art is solved, and the rapid calculation of high-precision and low storage space is achieved.
Patent Information
- Application Number
- CN202210167273.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-23
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2042-02-23
AI Technical Summary
In the prior art, when calculating the cosine function, the table lookup method occupies a large amount of storage space, while the cordic algorithm is difficult to ensure high accuracy in situations where the angle changes are large or the frequency changes are large, and cannot meet the control needs of electrical equipment.
By constructing a relationship curve, the corresponding relationship between preset angles and standard values is used to calculate the function value of the angle information, simplifying the calculation amount of the cosine function, avoiding the use of storage space, and improving the calculation speed while ensuring accuracy.
It realizes high-precision calculation of the cosine function without occupying a large amount of storage space, which is suitable for the control needs of electrical equipment and improves the computing speed and accuracy.
Smart Images

Figure CN114385976B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electrical control technology, and in particular to a control method and control device for electrical equipment. Background Art
[0002] In recent years, with the rapid development of society, power electronics technologies such as motors and power grids have become increasingly popular. In the field of power electronics, semiconductor-based applications are becoming more and more extensive, because they can control the transformation of electricity, magnetism, chemistry, light, etc., thereby effectively meeting people's actual production and living needs. In the transformation process, sine and cosine functions need to be used for calculation to meet the actual motor's variable speed / constant speed operation, power grid active / reactive operation and other control requirements.
[0003] At present, the main methods for realizing sine / cosine function calculation based on digital chips include table lookup method and cordic (coordinate rotation digital computer) iterative algorithm. The table lookup method requires the establishment of a table, which takes up a lot of storage space. The higher the accuracy requirement, the more storage space is consumed. The cordic algorithm requires multiple iterations, and the accuracy changes with the change of angle. It is difficult to ensure high accuracy in situations where the speed changes greatly or the angle frequency changes greatly, and thus it is difficult to meet the control requirements. Summary of the invention
[0004] The present invention provides a control method and control device for electrical equipment, which calculates the function value of angle information by constructing a relationship curve, effectively simplifies the calculation amount of sine and cosine functions, and does not need to occupy a large amount of storage space while ensuring accuracy.
[0005] In a first aspect, an embodiment of the present invention provides a method for controlling an electrical device, the method comprising:
[0006] Acquire angle information of operating parameters of the electrical equipment, and select a plurality of preset angles from the preset angle set according to the difference between each preset angle in the preset angle set and the angle information;
[0007] Determining the standard values corresponding to the plurality of preset angles respectively according to the pre-established correspondence between the preset angles and the standard values;
[0008] Determine, according to a relationship curve between the preset angle and the standard value, a function value corresponding to the angle information on the relationship curve, wherein the relationship curve is used to characterize a change trend of the standard values respectively corresponding to a plurality of the preset angles;
[0009] The operation of the electrical device is controlled according to the function value.
[0010] The control method provided in this embodiment calculates the function value of the angle information by constructing a relationship curve, wherein the relationship curve is constructed by preset angles related to the angle information and corresponding standard values, which effectively simplifies the calculation amount of the sine and cosine functions. While ensuring accuracy, it is only necessary to obtain multiple preset angles and corresponding standard values without occupying a large amount of storage space, thereby ensuring control accuracy and calculation speed.
[0011] As an optional implementation manner, the corresponding relationship between the preset angle and the standard value is pre-established in the following manner:
[0012] Divide the angle interval of the standard function in any period into multiple sub-intervals, sample the angle included in any sub-interval at a set interval, and obtain each preset angle, wherein the standard function includes a sine function or a cosine function;
[0013] Determine the standard value corresponding to each of the preset angles according to each of the preset angles and the standard function;
[0014] According to the standard values respectively corresponding to the preset angles, a corresponding relationship between the preset angles and the standard values is established.
[0015] As an optional implementation,
[0016] Any of the subintervals is a monotonically increasing interval of the standard function, and the standard values of the standard function corresponding to the subintervals are all greater than or equal to zero; or,
[0017] Any of the subintervals is a monotonically increasing interval of the standard function, and the standard values of the standard function corresponding to the subintervals are all less than or equal to zero; or,
[0018] Any of the subintervals is a monotonically decreasing interval of the standard function, and the standard values of the standard function corresponding to the subintervals are all greater than or equal to zero; or,
[0019] Any of the subintervals is a monotonically decreasing interval of the standard function, and the standard values of the standard function corresponding to the subintervals are all less than or equal to zero.
[0020] As an optional implementation manner, the preset angle is the preset angle after normalization processing, then after the angle information of the operating parameters of the electrical equipment is obtained, the method further includes:
[0021] The acquired angle information is normalized to obtain the normalized angle information, so as to select a plurality of the preset angles from the preset angle set according to the difference between each preset angle and the normalized preset angle information.
[0022] As an optional implementation, it also includes:
[0023] If the angle information exceeds the angle range determined by each preset angle in the preset angle set, performing angle conversion on the angle information to obtain angle information after angle conversion; or,
[0024] If the angle information exceeds the angle range determined by each of the preset angles in the preset angle set and exceeds the angle threshold, performing angle conversion on the angle information to obtain angle information after angle conversion, and converting the sign of the function value corresponding to the angle information; or,
[0025] If any one of the plurality of preset angle information exceeds the angle range determined by each preset angle in the preset angle set, performing angle conversion on any one of the preset angles to obtain the preset angle after angle conversion; or,
[0026] If any one of the multiple preset angles in the preset angle information exceeds the angle range determined by each of the preset angles in the preset angle set and exceeds the angle threshold, angle conversion is performed on any one of the preset angles to obtain the preset angle after angle conversion, and the sign of the standard value corresponding to the preset angle after angle conversion is converted.
[0027] As an optional implementation, the relationship curve is determined in the following manner:
[0028] Constructing multiple initial curve functions, wherein the initial curve functions correspond to initial coordinate points, any one of the initial curve functions passes through the corresponding initial coordinate point, the abscissa of any one of the initial coordinate points represents an angle, and the ordinate represents a sine function value or a cosine function value corresponding to the angle;
[0029] Performing polynomial combination on the multiple initial curve functions to obtain a polynomial function passing through the multiple initial coordinate points;
[0030] The relationship curve is determined according to the plurality of preset angles, the standard values respectively corresponding to the plurality of preset angles, and the polynomial function.
[0031] As an optional implementation manner, determining the relationship curve according to the plurality of preset angles, the standard values respectively corresponding to the plurality of preset angles, and the polynomial function includes:
[0032] Determining a plurality of known coordinate points according to the plurality of preset angles and the standard values respectively corresponding to the plurality of preset angles;
[0033] The multiple initial coordinate points in the polynomial function are replaced with multiple known coordinate points to obtain the relationship curve.
[0034] As an optional implementation manner, if the electrical device includes a three-phase AC motor device, then controlling the operation of the electrical device according to the function value includes:
[0035] Performing a rotation transformation on the coordinate system corresponding to the three-phase AC signal of the three-phase AC motor device, and determining a transformation matrix of the rotation transformation according to the function value;
[0036] The operating parameters corresponding to the three-phase AC signal are controlled according to the transformation matrix.
[0037] In a second aspect, an embodiment of the present invention provides a control device for an electrical device, the control device comprising a processor and a memory, the memory being used to store a program executable by the processor, the processor being used to read the program in the memory and perform the following steps:
[0038] Acquire angle information of operating parameters of the electrical equipment, and select a plurality of preset angles from the preset angle set according to the difference between each preset angle in the preset angle set and the angle information;
[0039] Determining the standard values corresponding to the plurality of preset angles respectively according to the pre-established correspondence between the preset angles and the standard values;
[0040] Determine, according to a relationship curve between the preset angle and the standard value, a function value corresponding to the angle information on the relationship curve, wherein the relationship curve is used to characterize a change trend of the standard values respectively corresponding to a plurality of the preset angles;
[0041] The operation of the electrical device is controlled according to the function value.
[0042] As an optional implementation manner, the processor is specifically configured to pre-establish a corresponding relationship between the preset angle and the standard value in the following manner:
[0043] Divide the angle interval of the standard function in any period into multiple sub-intervals, sample the angle included in any sub-interval at a set interval, and obtain each preset angle, wherein the standard function includes a sine function or a cosine function;
[0044] Determine the standard value corresponding to each of the preset angles according to each of the preset angles and the standard function;
[0045] According to the standard values respectively corresponding to the preset angles, a corresponding relationship between the preset angles and the standard values is established.
[0046] As an optional implementation,
[0047] Any of the subintervals is a monotonically increasing interval of the standard function, and the standard values of the standard function corresponding to the subintervals are all greater than or equal to zero; or,
[0048] Any of the subintervals is a monotonically increasing interval of the standard function, and the standard values of the standard function corresponding to the subintervals are all less than or equal to zero; or,
[0049] Any of the subintervals is a monotonically decreasing interval of the standard function, and the standard values of the standard function corresponding to the subintervals are all greater than or equal to zero; or,
[0050] Any of the subintervals is a monotonically decreasing interval of the standard function, and the standard values of the standard function corresponding to the subintervals are all less than or equal to zero.
[0051] As an optional implementation manner, the preset angle is the preset angle after normalization processing, then after acquiring the angle information of the operating parameters of the electrical equipment, the processor is further configured to execute:
[0052] The acquired angle information is normalized to obtain the normalized angle information, so as to select a plurality of the preset angles from the preset angle set according to the difference between each preset angle and the normalized preset angle information.
[0053] As an optional implementation, the processor is further configured to execute:
[0054] If the angle information exceeds the angle range determined by each preset angle in the preset angle set, performing angle conversion on the angle information to obtain angle information after angle conversion; or,
[0055] If the angle information exceeds the angle range determined by each of the preset angles in the preset angle set and exceeds the angle threshold, performing angle conversion on the angle information to obtain angle information after angle conversion, and converting the sign of the function value corresponding to the angle information; or,
[0056] If any one of the plurality of preset angle information exceeds the angle range determined by each preset angle in the preset angle set, performing angle conversion on any one of the preset angles to obtain the preset angle after angle conversion; or,
[0057] If any one of the multiple preset angles in the preset angle information exceeds the angle range determined by each of the preset angles in the preset angle set and exceeds the angle threshold, angle conversion is performed on any one of the preset angles to obtain the preset angle after angle conversion, and the sign of the standard value corresponding to the preset angle after angle conversion is converted.
[0058] As an optional implementation manner, the processor is specifically configured to determine the relationship curve in the following manner:
[0059] Constructing multiple initial curve functions, wherein the initial curve functions correspond to initial coordinate points, any one of the initial curve functions passes through the corresponding initial coordinate point, the abscissa of any one of the initial coordinate points represents an angle, and the ordinate represents a sine function value or a cosine function value corresponding to the angle;
[0060] Performing polynomial combination on the multiple initial curve functions to obtain a polynomial function passing through the multiple initial coordinate points;
[0061] The relationship curve is determined according to the plurality of preset angles, the standard values respectively corresponding to the plurality of preset angles, and the polynomial function.
[0062] As an optional implementation, the processor is specifically configured to execute:
[0063] Determining a plurality of known coordinate points according to the plurality of preset angles and the standard values respectively corresponding to the plurality of preset angles;
[0064] The multiple initial coordinate points in the polynomial function are replaced with multiple known coordinate points to obtain the relationship curve.
[0065] As an optional implementation, if the electrical device includes a three-phase AC motor device, the processor is specifically configured to execute:
[0066] Performing a rotation transformation on the coordinate system corresponding to the three-phase AC signal of the three-phase AC motor device, and determining a transformation matrix of the rotation transformation according to the function value;
[0067] The operating parameters corresponding to the three-phase AC signal are controlled according to the transformation matrix.
[0068] In a third aspect, an embodiment of the present invention further provides a control device for an electrical device, the control device comprising:
[0069] An angle acquisition unit is used to acquire angle information of operating parameters of the electrical equipment, and select a plurality of preset angles from the preset angle set according to the difference between each preset angle in the preset angle set and the angle information;
[0070] A standard value determination unit, configured to determine the standard values respectively corresponding to the plurality of preset angles according to a pre-established correspondence relationship between the preset angles and the standard values;
[0071] a function value determining unit, configured to determine, according to a relationship curve between the preset angle and the standard value, a function value corresponding to the angle information on the relationship curve, wherein the relationship curve is used to characterize a change trend of the standard values respectively corresponding to a plurality of the preset angles;
[0072] A device operation control unit is used to control the operation of the electrical device according to the function value.
[0073] As an optional implementation manner, the standard value determining unit is specifically used to pre-establish a corresponding relationship between the preset angle and the standard value in the following manner:
[0074] Divide the angle interval of the standard function in any period into multiple sub-intervals, sample the angle included in any sub-interval at a set interval, and obtain each preset angle, wherein the standard function includes a sine function or a cosine function;
[0075] Determine the standard value corresponding to each of the preset angles according to each of the preset angles and the standard function;
[0076] According to the standard values respectively corresponding to the preset angles, a corresponding relationship between the preset angles and the standard values is established.
[0077] As an optional implementation,
[0078] Any of the subintervals is a monotonically increasing interval of the standard function, and the standard values of the standard function corresponding to the subintervals are all greater than or equal to zero; or,
[0079] Any of the subintervals is a monotonically increasing interval of the standard function, and the standard values of the standard function corresponding to the subintervals are all less than or equal to zero; or,
[0080] Any of the subintervals is a monotonically decreasing interval of the standard function, and the standard values of the standard function corresponding to the subintervals are all greater than or equal to zero; or,
[0081] Any of the subintervals is a monotonically decreasing interval of the standard function, and the standard values of the standard function corresponding to the subintervals are all less than or equal to zero.
[0082] As an optional implementation manner, the preset angle is the preset angle after normalization processing, then after the angle information of the operating parameters of the electrical equipment is obtained, a normalization processing unit is further included for:
[0083] The acquired angle information is normalized to obtain the normalized angle information, so as to select a plurality of the preset angles from the preset angle set according to the difference between each preset angle and the normalized preset angle information.
[0084] As an optional implementation, the conversion unit is further included to:
[0085] If the angle information exceeds the angle range determined by each preset angle in the preset angle set, performing angle conversion on the angle information to obtain angle information after angle conversion; or,
[0086] If the angle information exceeds the angle range determined by each of the preset angles in the preset angle set and exceeds the angle threshold, performing angle conversion on the angle information to obtain angle information after angle conversion, and converting the sign of the function value corresponding to the angle information; or,
[0087] If any one of the plurality of preset angle information exceeds the angle range determined by each preset angle in the preset angle set, performing angle conversion on any one of the preset angles to obtain the preset angle after angle conversion; or,
[0088] If any one of the multiple preset angles in the preset angle information exceeds the angle range determined by each of the preset angles in the preset angle set and exceeds the angle threshold, angle conversion is performed on any one of the preset angles to obtain the preset angle after angle conversion, and the sign of the standard value corresponding to the preset angle after angle conversion is converted.
[0089] As an optional implementation manner, the function value determining unit is specifically configured to determine the relationship curve in the following manner:
[0090] Constructing multiple initial curve functions, wherein the initial curve functions correspond to initial coordinate points, any one of the initial curve functions passes through the corresponding initial coordinate point, the abscissa of any one of the initial coordinate points represents an angle, and the ordinate represents a sine function value or a cosine function value corresponding to the angle;
[0091] Performing polynomial combination on the multiple initial curve functions to obtain a polynomial function passing through the multiple initial coordinate points;
[0092] The relationship curve is determined according to the plurality of preset angles, the standard values respectively corresponding to the plurality of preset angles, and the polynomial function.
[0093] As an optional implementation manner, the function value determination unit is specifically used to:
[0094] Determining a plurality of known coordinate points according to the plurality of preset angles and the standard values respectively corresponding to the plurality of preset angles;
[0095] The multiple initial coordinate points in the polynomial function are replaced with multiple known coordinate points to obtain the relationship curve.
[0096] As an optional implementation manner, if the electrical device includes a three-phase AC motor device, the control device operation unit is specifically used to:
[0097] Performing a rotation transformation on the coordinate system corresponding to the three-phase AC signal of the three-phase AC motor device, and determining a transformation matrix of the rotation transformation according to the function value;
[0098] The operating parameters corresponding to the three-phase AC signal are controlled according to the transformation matrix.
[0099] In a fourth aspect, an embodiment of the present invention further provides a computer storage medium on which a computer program is stored, and when the program is executed by a processor, it is used to implement the steps of the method described in the first aspect above.
[0100] These and other aspects of the present application will be more clearly understood in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0101] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0102] Figure 1 A schematic diagram of a rotation transformation of a control system provided by an embodiment of the present invention;
[0103] Figure 2 A flow chart of an implementation method of a control method for an electrical device provided by an embodiment of the present invention;
[0104] Figure 3 A schematic diagram of a collection of preset angles provided by an embodiment of the present invention;
[0105] Figure 4A detailed implementation flow chart of a control method for an electrical device provided by an embodiment of the present invention;
[0106] Figure 5 A schematic diagram of a function curve for calculating the sine value of angle information provided by an embodiment of the present invention;
[0107] Figure 6 A comparison chart of the accuracy of function value calculation results provided by an embodiment of the present invention;
[0108] Figure 7 A schematic diagram of a control device for an electrical device provided by an embodiment of the present invention;
[0109] Figure 8 A schematic diagram of a control device for an electrical device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0110] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0111] In the embodiments of the present invention, the term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent three situations: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0112] The application scenarios described in the embodiments of the present invention are intended to more clearly illustrate the technical solutions of the embodiments of the present invention, and do not constitute a limitation on the technical solutions provided by the embodiments of the present invention. It is known to those skilled in the art that with the emergence of new application scenarios, the technical solutions provided by the embodiments of the present invention are also applicable to similar technical problems. In the description of the present invention, unless otherwise specified, "multiple" means two or more.
[0113] Embodiment 1, in recent years, with the rapid development of society, power electronics technologies such as motors and power grids have become more and more popular. In the field of power electronics technology, the application field based on semiconductors is also becoming more and more extensive, because it can control the transformation of electricity, magnetism, chemistry, light, etc., so as to effectively meet people's actual production and life needs, and the sine and cosine functions need to be used for calculation in the transformation process to meet the control requirements such as variable speed / constant speed operation of the actual motor and active / reactive operation of the power grid. Sine / cosine function calculation is very important in scientific computing and engineering applications. Both mathematical model derivation and real-time angle calculation require accurate calculation results and faster computing speed. At present, the methods for realizing sine / cosine function calculation based on digital chips mainly include table lookup method and cordic iteration algorithm. The table lookup method needs to establish a table to occupy a large amount of storage space, and the higher the accuracy requirement, the greater the storage space consumed. The cordic algorithm requires multiple iterations, and the accuracy changes with the change of angle. It is difficult to ensure high accuracy in the operation scenario with large speed changes or large angle frequency changes, so it is difficult to meet the control requirements.
[0114] In the electrical field, especially when it comes to three-phase AC systems, coordinate system transformation is often used to simplify the control system in order to better control the speed, current, etc., and coordinate system transformation is inseparable from the sine and cosine functions. At present, the sine and cosine functions are mainly calculated by two methods: 1. Table lookup method. If the table lookup method is used, obtaining high-precision function values will require more stored data and occupy a large storage space; 2. Cordic algorithm, the accuracy is easily affected by the angle.
[0115] In order to solve the above technical problems, this implementation proposes a new calculation method. The core idea is to construct a new curve relationship (new function), and then calculate the function value of the angle information through the constructed relationship curve, that is, substitute the angle to be converted into the new function to obtain the sine / cosine value. Among them, the curve relationship is constructed by the preset angle related to the angle information and the corresponding standard value. Since the preset angle is related to the angle information, the function value corresponding to the angle information on the relationship curve can be determined by the change trend of the standard values corresponding to the multiple preset angles in the relationship curve. Based on the same relationship curve change trend, the function value corresponding to the angle information is determined. In the actual calculation process, there is no need to perform complex function calculations. It is only necessary to find the preset angle related to the angle information and the corresponding standard value, and then the function value of the angle information can be determined according to the constructed relationship curve. The calculation is simple, and only the corresponding relationship between the preset angle and the standard value needs to be stored, which takes up little storage space.
[0116] A control method for electrical equipment provided in this embodiment can be applied to the rotation transformation of the control system in the field of electrical control to achieve high precision, low storage space, and fast calculation. It can quickly complete various control transformations of function values based on angle information to achieve target control of speed, flux, current, etc. For example, in a three-phase AC motor control system, the sine and cosine function values need to be accurately calculated, and the motor rotation angle is obtained to ensure that the sine and cosine function values are quickly and accurately calculated, and various transformations required by the control algorithm are completed, thereby realizing the overall control algorithm and achieving target control of speed, flux, current, etc. Clark transformation (three-phase coordinate system to two-phase coordinate system) and Park transformation (stationary coordinate system to rotating coordinate system) are often used in three-phase AC motor systems to simplify the control system and achieve control of speed, current, etc. Figure 1 As shown, where:
[0117] The transformation matrix of Park transformation (transformation from stationary coordinate system to rotating coordinate system) is as follows:
[0118]
[0119] The transformation matrix of the inverse Park transformation (transformation from a rotating coordinate system to a stationary coordinate system) is as follows:
[0120]
[0121] Since all kinds of control transformations need to calculate the sine / cosine values of the angle, the control method provided in this embodiment can be applied to control transformation scenarios such as rotation transformation of the above-mentioned control system, and can quickly and accurately calculate the function value of the angle information to achieve fast and precise control of the operating parameters of electrical equipment.
[0122] It should be noted that the method for calculating the function value of the angle information of this embodiment includes but is not limited to the sine / cosine function values, and other function values besides the sine and cosine functions can also be calculated. The above scenario is only an example. Other application scenarios based on the same implementation principle can adopt the method in this embodiment. It is only necessary to use different function algorithms to pre-set the correspondence between the preset angle and the standard value. This embodiment does not impose too many restrictions on this. The method for calculating the function value based on the same design concept belongs to the protection scope of the embodiment of the present invention.
[0123] like Figure 2 As shown, this embodiment provides a control method for an electrical device, and the implementation process of the method is as follows:
[0124] Step 200, obtaining angle information of operating parameters of the electrical equipment, and selecting a plurality of preset angles from the preset angle set according to the difference between each preset angle in the preset angle set and the angle information;
[0125] In some embodiments, the operating parameters in this embodiment include but are not limited to: rotational speed, at least one of three-phase alternating current, and the angle information includes but is not limited to: at least one of the angular velocity or angle corresponding to the rotational speed, and the angular velocity or angle corresponding to any one of the direct currents included in the three-phase alternating current.
[0126] In some embodiments, the preset angle set in this embodiment includes multiple preset angles, and any preset angle includes but is not limited to: at least one of the angular velocity or angle corresponding to the rotation speed and the angular velocity or angle corresponding to any one DC power included in the three-phase AC power. The angle information in this embodiment and the preset angle belong to the angular velocity or angle corresponding to the same operating parameter.
[0127] In some embodiments, this embodiment selects a plurality of the preset angles from the preset angle set in the following manner:
[0128] Calculate the difference between each preset angle in the preset angle set and the angle information, and select the preset angles corresponding to the smallest multiple differences, for example, select the preset angles corresponding to the smallest three differences among the various differences, and obtain three preset angles, that is, select the three preset angles with the smallest difference from the angle information. The multiple preset angles include two preset angles or more than two preset angles.
[0129] Step 201: Determine the standard values corresponding to the plurality of preset angles respectively according to the pre-established correspondence between the preset angles and the standard values;
[0130] In some embodiments, a correspondence between preset angles and standard values is pre-established, and each preset angle has a unique corresponding standard value. Optionally, the correspondence between the preset angles and standard values is established based on trigonometric functions such as sine function or cosine function, or based on other function algorithms that need to calculate the function values of the angle information. The specific correspondence between the preset angles and standard values can be determined based on actual needs, and this embodiment does not impose too many restrictions on this.
[0131] In some embodiments, the corresponding relationship between the preset angle and the standard value can be pre-established in the following manner:
[0132] (1) dividing the angle interval of the standard function within any period into a plurality of sub-intervals, sampling the angle contained in any sub-interval at a set interval to obtain each of the preset angles, wherein the standard function includes a sine function or a cosine function;
[0133] It should be noted that since the sine function and the cosine function are both trigonometric functions, and the trigonometric functions other than the sine function and the cosine function have a conversion relationship with the sine function and the cosine function, the protection scope of the standard function in this embodiment involves the sine function and the cosine function, as well as other trigonometric functions that can be converted into the sine function and the cosine function.
[0134] It is easy to understand that both the sine function and the cosine function are periodic, and the function values in different periods have the same changing pattern, and the function values in the same period also have certain regularity and repeatability. Therefore, this embodiment is based on the changing pattern of the sine function or the cosine function in a period, and selects a sub-interval in the angle interval corresponding to a period. The changing pattern of the function value in the sub-interval and the angle conversion can represent the changing pattern of the entire standard function.
[0135] In some embodiments, any selected subinterval satisfies any of the following conditions:
[0136] Condition 1) Any one of the subintervals is a monotonically increasing interval of the standard function, and the standard values of the standard function corresponding to the subintervals are greater than or equal to zero; wherein the standard value is the sine value or cosine value of a preset angle.
[0137] Condition 2) Any one of the subintervals is a monotonically increasing interval of the standard function, and the standard values of the standard function corresponding to the subintervals are all less than or equal to zero; wherein the standard value is the sine value or cosine value of a preset angle.
[0138] Condition 3) Any one of the subintervals is a monotonically decreasing interval of the standard function, and the standard values of the standard function corresponding to the subintervals are all greater than or equal to zero; wherein the standard value is the sine value or cosine value of a preset angle.
[0139] Condition 4) Any of the sub-intervals is a monotonically decreasing interval of the standard function, and the standard values of the standard function corresponding to the sub-intervals are all less than or equal to zero. The standard value is the sine value or cosine value of a preset angle.
[0140] Any of the above conditions can ensure that the monotonicity of the sine function or cosine function in the selected subinterval is consistent, and according to the law of the sine function or cosine function, the selected subinterval is guaranteed to be a 1 / 4 interval of the angle interval. In implementation, the angle interval can be divided into 4 subintervals, and the monotonicity of the sine function or cosine function in each subinterval is guaranteed to be consistent, that is, the standard function in each subinterval is monotonically increasing or monotonically decreasing.
[0141] Taking the sine function as an example, in the implementation, taking the angle interval [0, 2π] as an example, the angle interval is divided into 4 sub-intervals, namely [0, π / 2], [π / 2, π], [π, 3π / 2], and [3π / 2, 2π]; sampling is performed in the sub-interval [0, π / 2] at a set interval to obtain multiple preset angles, for example, 16 sampling points are obtained by sampling, and 16 preset angles in [0, π / 2] are obtained.
[0142] (2) determining the standard value corresponding to each of the preset angles according to each of the preset angles and the standard function;
[0143] Among them, if the standard function is a sine function, the standard value is the sine value of each preset angle; if the standard function is a cosine function, the standard value is the cosine value of each preset angle; if the standard function is other trigonometric functions, the standard value is the function value corresponding to the other trigonometric functions.
[0144] (3) Establishing a correspondence between the preset angles and the standard values according to the standard values corresponding to the preset angles.
[0145] In some embodiments, a mapping table of preset angles and standard values can be established and stored so that when automatically calculating the function value of the angle information, the standard values corresponding to multiple preset angles closest to the angle information can be directly found in the stored mapping table.
[0146] In some embodiments, in order to make the method of the embodiment universal and facilitate its widespread use in scientific computing and engineering applications, the preset angles may be normalized and a correspondence between the normalized preset angles and standard values may be established.
[0147] In some embodiments, if the preset angle is normalized to obtain the normalized preset angle, then after obtaining the angle information of the operating parameters of the electrical device, the obtained angle information is normalized to obtain the normalized angle information, so as to select multiple preset angles from the preset angle set according to the difference between each preset angle and the normalized preset angle information. In implementation, after both the preset angle and the angle information are normalized, the versatility of the application can be improved, and it is easy to be transplanted to various control systems.
[0148] Step 202: determining a function value corresponding to the angle information on the relationship curve according to the relationship curve between the preset angle and the standard value, wherein the relationship curve is used to characterize a change trend of the standard values corresponding to a plurality of the preset angles;
[0149] Step 203: Control the operation of the electrical device according to the function value.
[0150] In some embodiments, the principle of determining the relationship curve between the preset angle and the standard value in this embodiment is to use the interpolation method based on the interpolation basis function to realize the calculation of the sine / cosine function value of any angle while effectively reducing the chip storage space and improving the calculation accuracy. Among them, the Lagrange interpolation method can be used to construct the relationship curve. The Lagrange interpolation formula refers to giving the node basis function at the node, and then making a linear combination of the basis function. The combination coefficient is an interpolation polynomial of the node function value, and finally constructs a polynomial function whose basis function is the standard function (sine / cosine function).
[0151] In some embodiments, the relationship curve is determined by the following steps:
[0152] Step (1) constructing multiple initial curve functions;
[0153] Wherein, the initial curve function corresponds to the initial coordinate point, that is, one initial coordinate point determines one initial curve function; any initial curve function passes through the corresponding initial coordinate point, the abscissa of any initial coordinate point represents the angle, and the ordinate represents the sine function value or cosine function value corresponding to the angle;
[0154] In the implementation, the process of constructing the initial curve function is explained by taking three initial coordinate points as an example:
[0155] Given a curve passing through three initial coordinate points (x1, f(x1)), (x2, f(x2)), (x3, f(x3)), construct a quadratic function f(x) = ax 2 +bx+c satisfies formula (1):
[0156]
[0157] The quadratic function expression can be found by solving the system of equations.
[0158] Step (2) performing polynomial combination on the multiple initial curve functions to obtain a polynomial function passing through the multiple initial coordinate points;
[0159] In some embodiments, it can be known through the Lagrange interpolation method that a polynomial function can be obtained by combining three quadratic curves, wherein the three quadratic curves are:
[0160] The first curve f1(x), f1(x) takes the value of 1 at x1 and 0 at the other two points;
[0161] The second curve f2(x), f2(x) takes the value of 1 at x2 and the values of the other two points take the value of 0;
[0162] The third curve f3(x), f3(x) takes the value of 1 at x3 and the value of 0 at the other two points.
[0163] Let y1 = f(x1), y2 = f(x2), y3 = f(x3), then we can guarantee:
[0164] y1f1(x) takes the value y1 at x1 and takes the value 0 at the other two points;
[0165] y2f2(x) takes the value y2 at x2 and 0 at the other two points;
[0166] y3f3(x) takes the value y3 at x3 and 0 at the other two points.
[0167] Therefore, the quadratic function can satisfy the three initial coordinate points (x1, f(x1)), (x2, f(x2)), (x3, f(x3)), as shown in formula (2):
[0168] f(x)=y1f1(x)+y2f2(x)+y3f3(x) Formula (2);
[0169] Since f1(x) takes the value of 1 at x1 and the values of the other two points are 0, the constructor f1(x) is:
[0170]
[0171] Similarly, we get:
[0172]
[0173]
[0174] Substituting formula (3), formula (4) and formula (5) into formula (2) yields the polynomial function f(x):
[0175]
[0176] Among them, in formula (6), the three initial coordinate points are (x1, f(x1)), (x2, f(x2)), and (x3, f(x3)).
[0177] Step (3) determines the relationship curve according to the plurality of preset angles, the standard values respectively corresponding to the plurality of preset angles, and the polynomial function.
[0178] In some embodiments, the relationship curve is determined specifically in the following manner:
[0179] According to the plurality of preset angles and the standard values respectively corresponding to the plurality of preset angles, a plurality of known coordinate points are determined; and the plurality of initial coordinate points in the polynomial function are replaced with the plurality of known coordinate points to obtain the relationship curve.
[0180] In implementation, the three initial coordinate points in formula (6), namely (x1, f(x1)), (x2, f(x2)), and (x3, f(x3)), can be replaced by three known coordinate points, respectively, so as to determine the relationship curve (i.e., the polynomial function) passing through the three known coordinate points.
[0181] like Figure 3 As shown, in the implementation, taking 16 preset angles in the 1 / 4 angle interval of the sine function as an example, the further evolution of the polynomial function is explained, wherein 16 preset angles are uniformly selected within the value range of the horizontal coordinate [0,π / 2] of the 1 / 4 sine function, and the sine values of the 16 preset angles are determined, and finally 16 coordinate points are obtained. Then the sine value of any angle can be accurately estimated by the three preset angles adjacent to the arbitrary angle and the corresponding sine values. Before the estimation begins, the correspondence between 16 groups of preset angles and sine values is determined in advance based on the selected 16 preset angles and the corresponding sine values, and normalization is performed to convert the 16 preset angles selected in [0,π / 2] into values in the range of [0,1]. Then formula (6) can be transformed into formula (7), as shown below:
[0182]
[0183] Since f(x) = sin(x), formula (7) can be further simplified to obtain formula (8):
[0184] f(x)=128(x-x2)(x-x3)sin(x1)-256(x-x1)(x-x3)sin(x2)+128(x-x1)(x-x2)sin(x3) Formula (8);
[0185] Among them, (x1,f(x1)), (x2,f(x2)), (x3,f(x3)) are three initial coordinate points related to x, which are converted into corresponding sine values in the range of [0,π / 2] for calculation according to the input angle range.
[0186] In some embodiments, since only a sub-interval of the standard function, namely the 1 / 4 angle interval, is selected for calculation in this embodiment, if the selected preset angle exceeds the sub-interval, the selected preset angle needs to be converted into the sub-interval according to the conversion formula of the standard function.
[0187] In some embodiments, the conversion is performed by any of the following methods:
[0188] Mode 1) If any one of the preset angles in the plurality of preset angle information exceeds the angle range determined by each preset angle in the preset angle set, angle conversion is performed on any one of the preset angles to obtain the preset angle after angle conversion;
[0189] Method 2) If any one of the preset angles in the multiple preset angle information exceeds the angle range determined by each of the preset angles in the preset angle set and exceeds the angle threshold, then angle conversion is performed on any one of the preset angles to obtain the preset angle after angle conversion, and the sign of the standard value corresponding to the preset angle after angle conversion is converted.
[0190] Mode 3) If the angle information exceeds the angle range determined by each preset angle in the preset angle set, the angle information is angle-converted to obtain angle information after angle conversion;
[0191] Method 4) If the angle information exceeds the angle range determined by each preset angle in the preset angle set and exceeds the angle threshold, the angle information is converted to obtain the angle information after the angle conversion, and the sign of the function value corresponding to the angle information is converted.
[0192] In implementation, when the angle range is [0,π / 2] and the standard value is a sine value, the angle conversion relationship is as follows:
[0193]
[0194] In implementation, when the angle range is [0,π / 2] and the standard value is the cosine value, the angle conversion relationship is as follows:
[0195]
[0196] Through the angle conversion relationship, it can be ensured that the function value is calculated within the value range of the horizontal coordinate [0,π / 2] of the 1 / 4 sine function, and then the sine / cosine function value of any angle can be obtained. The control method in this embodiment can provide an efficient sine / cosine function calculation method based on digital implementation, using 16 groups of data uniformly selected within the value range of the horizontal coordinate [0,π / 2] of the 1 / 4 sine function to infer the sine / cosine function of any angle, thereby improving the calculation speed and achieving high-precision calculation. In implementation, the chip storage space can be reduced by formulating a data table with a small amount of data; based on multiple groups of data, multiple groups of data in the selected interval are interpolated to achieve high-precision calculation; and the angle can be normalized, which can be used in a variety of occasions, convenient for transplantation, and highly versatile.
[0197] In some embodiments, if the electrical device includes a three-phase AC motor device, then controlling the operation of the electrical device according to the function value includes:
[0198] The coordinate system corresponding to the three-phase AC signal of the three-phase AC motor device is subjected to a rotation transformation, and a transformation matrix of the rotation transformation is determined according to the function value; and the operating parameters corresponding to the three-phase AC signal are controlled according to the transformation matrix. The rotation transformation includes but is not limited to Clark transformation or Park transformation, etc. The control system can be simplified to realize the control of the rotation speed, current, etc., so as to ensure the reliable operation of the three-phase AC motor.
[0199] like Figure 4 As shown, taking the sine function as an example, this embodiment provides a detailed control method for electrical equipment, and the implementation process of the method is as follows:
[0200] Step 400: Acquire angle information of operating parameters of the electrical equipment, and normalize the angle information to obtain normalized angle information;
[0201] Wherein, if the angle information exceeds the angle range determined by each preset angle in the preset angle set, the angle information is angle-converted to obtain the angle information after the angle conversion; or,
[0202] If the angle information exceeds the angle range determined by each preset angle in the preset angle set and exceeds the angle threshold, the angle information is angle-converted to obtain the angle information after the angle conversion, and the sign of the function value corresponding to the angle information calculated thereafter is converted.
[0203] Step 401: According to the gaps between each preset angle and the angle information in the preset angle set, select the preset angles corresponding to the three smallest gaps;
[0204] If any one of the three preset angle information exceeds the angle range determined by each preset angle in the preset angle set, then any one of the preset angles is angle-converted to obtain the preset angle after angle conversion; or,
[0205] If any one of the three preset angle information exceeds the angle range determined by each preset angle in the preset angle set and exceeds the angle threshold, then angle conversion is performed on any one of the preset angles to obtain the preset angle after angle conversion, and the sign of the sine value corresponding to the preset angle after angle conversion is converted.
[0206] The preset angle is a normalized preset angle.
[0207] Step 402: Determine the sine values of three preset angles;
[0208] Step 403: Determine three known coordinate points according to three preset angles and corresponding sine values;
[0209] Step 404: construct a relationship curve passing through the three known coordinate points according to the three known coordinate points;
[0210] Step 405: determine the function value corresponding to the angle information on the relationship curve;
[0211] Step 406: Control the operation of the electrical equipment according to the function value.
[0212] In some embodiments, this embodiment establishes and runs a simulation model on a Matlab platform based on the above method for calculating the angle information function value. Figure 5 As shown, a schematic diagram of a function curve for calculating the sine value of angle information provided in this embodiment is as follows: Figure 6 As shown in FIG. 1 , a comparison diagram of the accuracy obtained by subtracting the angle information function value calculated by this embodiment from the curve of the sine function value provided by MATLAB is provided. The calculation results of the two are almost the same. Figure 6 From the vertical coordinate in, it can be seen that the maximum error is about 0.0006%. Therefore, the control method provided in this embodiment can achieve high-precision calculation, and use 16 groups of data evenly selected within the value range of the horizontal coordinate [0,π / 2] of the 1 / 4 sine function to infer the sine / cosine function of any angle, thereby improving the calculation speed and achieving high-precision calculation.
[0213] Example 2: Based on the same inventive concept, the embodiment of the present invention also provides a control device for an electrical device. Since the control device is the control device in the method in the embodiment of the present invention, and the principle of solving the problem by the control device is similar to that of the method, the implementation of the control device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0214] like Figure 7 As shown, the device includes a processor 700 and a memory 701, wherein the memory 701 is used to store a program executable by the processor 700, and the processor 700 is used to read the program in the memory 701 and perform the following steps:
[0215] Acquire angle information of operating parameters of the electrical equipment, and select a plurality of preset angles from the preset angle set according to the difference between each preset angle in the preset angle set and the angle information;
[0216] Determining the standard values corresponding to the plurality of preset angles respectively according to the pre-established correspondence between the preset angles and the standard values;
[0217] Determine, according to a relationship curve between the preset angle and the standard value, a function value corresponding to the angle information on the relationship curve, wherein the relationship curve is used to characterize a change trend of the standard values respectively corresponding to a plurality of the preset angles;
[0218] The operation of the electrical device is controlled according to the function value.
[0219] As an optional implementation manner, the processor 700 is specifically configured to pre-establish a corresponding relationship between the preset angle and the standard value in the following manner:
[0220] Divide the angle interval of the standard function in any period into multiple sub-intervals, sample the angle included in any sub-interval at a set interval, and obtain each preset angle, wherein the standard function includes a sine function or a cosine function;
[0221] Determine the standard value corresponding to each of the preset angles according to each of the preset angles and the standard function;
[0222] According to the standard values respectively corresponding to the preset angles, a corresponding relationship between the preset angles and the standard values is established.
[0223] As an optional implementation,
[0224] Any of the subintervals is a monotonically increasing interval of the standard function, and the standard values of the standard function corresponding to the subintervals are all greater than or equal to zero; or,
[0225] Any of the subintervals is a monotonically increasing interval of the standard function, and the standard values of the standard function corresponding to the subintervals are all less than or equal to zero; or,
[0226] Any of the subintervals is a monotonically decreasing interval of the standard function, and the standard values of the standard function corresponding to the subintervals are all greater than or equal to zero; or,
[0227] Any of the subintervals is a monotonically decreasing interval of the standard function, and the standard values of the standard function corresponding to the subintervals are all less than or equal to zero.
[0228] As an optional implementation manner, the preset angle is the preset angle after normalization processing, then after acquiring the angle information of the operating parameters of the electrical equipment, the processor 700 is further configured to execute:
[0229] The acquired angle information is normalized to obtain the normalized angle information, so as to select a plurality of the preset angles from the preset angle set according to the difference between each preset angle and the normalized preset angle information.
[0230] As an optional implementation manner, the processor 700 is further configured to execute:
[0231] If the angle information exceeds the angle range determined by each preset angle in the preset angle set, performing angle conversion on the angle information to obtain angle information after angle conversion; or,
[0232] If the angle information exceeds the angle range determined by each of the preset angles in the preset angle set and exceeds the angle threshold, performing angle conversion on the angle information to obtain angle information after angle conversion, and converting the sign of the function value corresponding to the angle information; or,
[0233] If any one of the plurality of preset angle information exceeds the angle range determined by each preset angle in the preset angle set, performing angle conversion on any one of the preset angles to obtain the preset angle after angle conversion; or,
[0234] If any one of the multiple preset angles in the preset angle information exceeds the angle range determined by each of the preset angles in the preset angle set and exceeds the angle threshold, angle conversion is performed on any one of the preset angles to obtain the preset angle after angle conversion, and the sign of the standard value corresponding to the preset angle after angle conversion is converted.
[0235] As an optional implementation manner, the processor 700 is specifically configured to determine the relationship curve in the following manner:
[0236] Constructing multiple initial curve functions, wherein the initial curve functions correspond to initial coordinate points, any one of the initial curve functions passes through the corresponding initial coordinate point, the abscissa of any one of the initial coordinate points represents an angle, and the ordinate represents a sine function value or a cosine function value corresponding to the angle;
[0237] Performing polynomial combination on the multiple initial curve functions to obtain a polynomial function passing through the multiple initial coordinate points;
[0238] The relationship curve is determined according to the plurality of preset angles, the standard values respectively corresponding to the plurality of preset angles, and the polynomial function.
[0239] As an optional implementation manner, the processor 700 is specifically configured to execute:
[0240] Determining a plurality of known coordinate points according to the plurality of preset angles and the standard values respectively corresponding to the plurality of preset angles;
[0241] The multiple initial coordinate points in the polynomial function are replaced with multiple known coordinate points to obtain the relationship curve.
[0242] As an optional implementation manner, if the electrical device includes a three-phase AC motor device, the processor 700 is specifically configured to execute:
[0243] Performing a rotation transformation on the coordinate system corresponding to the three-phase AC signal of the three-phase AC motor device, and determining a transformation matrix of the rotation transformation according to the function value;
[0244] The operating parameters corresponding to the three-phase AC signal are controlled according to the transformation matrix.
[0245] Example 3. Based on the same inventive concept, the embodiment of the present invention also provides a control device for electrical equipment. Since the control device is the control device in the method in the embodiment of the present invention, and the principle of solving the problem by the control device is similar to that of the method, the implementation of the control device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0246] like Figure 8 As shown, the device comprises:
[0247] An angle acquisition unit 800 is used to acquire angle information of operating parameters of the electrical device, and select a plurality of preset angles from the preset angle set according to the difference between each preset angle in the preset angle set and the angle information;
[0248] A standard value determination unit 801 is used to determine the standard values corresponding to the plurality of preset angles respectively according to a pre-established correspondence relationship between the preset angles and the standard values;
[0249] A function value determination unit 802 is used to determine, according to a relationship curve between the preset angle and the standard value, a function value corresponding to the angle information on the relationship curve, wherein the relationship curve is used to characterize a change trend of the standard values corresponding to a plurality of the preset angles respectively;
[0250] The device operation control unit 803 is used to control the operation of the electrical device according to the function value.
[0251] As an optional implementation manner, the standard value determining unit 801 is specifically configured to pre-establish a corresponding relationship between the preset angle and the standard value in the following manner:
[0252] Divide the angle interval of the standard function in any period into multiple sub-intervals, sample the angle included in any sub-interval at a set interval, and obtain each preset angle, wherein the standard function includes a sine function or a cosine function;
[0253] Determine the standard value corresponding to each of the preset angles according to each of the preset angles and the standard function;
[0254] According to the standard values respectively corresponding to the preset angles, a corresponding relationship between the preset angles and the standard values is established.
[0255] As an optional implementation,
[0256] Any of the subintervals is a monotonically increasing interval of the standard function, and the standard values of the standard function corresponding to the subintervals are all greater than or equal to zero; or,
[0257] Any of the subintervals is a monotonically increasing interval of the standard function, and the standard values of the standard function corresponding to the subintervals are all less than or equal to zero; or,
[0258] Any of the subintervals is a monotonically decreasing interval of the standard function, and the standard values of the standard function corresponding to the subintervals are all greater than or equal to zero; or,
[0259] Any of the subintervals is a monotonically decreasing interval of the standard function, and the standard values of the standard function corresponding to the subintervals are all less than or equal to zero.
[0260] As an optional implementation manner, the preset angle is the preset angle after normalization processing, then after the angle information of the operating parameters of the electrical equipment is obtained, a normalization processing unit is further included for:
[0261] The acquired angle information is normalized to obtain the normalized angle information, so as to select a plurality of the preset angles from the preset angle set according to the difference between each preset angle and the normalized preset angle information.
[0262] As an optional implementation, the conversion unit is further included to:
[0263] If the angle information exceeds the angle range determined by each preset angle in the preset angle set, performing angle conversion on the angle information to obtain angle information after angle conversion; or,
[0264] If the angle information exceeds the angle range determined by each of the preset angles in the preset angle set and exceeds the angle threshold, performing angle conversion on the angle information to obtain angle information after angle conversion, and converting the sign of the function value corresponding to the angle information; or,
[0265] If any one of the plurality of preset angle information exceeds the angle range determined by each preset angle in the preset angle set, performing angle conversion on any one of the preset angles to obtain the preset angle after angle conversion; or,
[0266] If any one of the multiple preset angles in the preset angle information exceeds the angle range determined by each of the preset angles in the preset angle set and exceeds the angle threshold, angle conversion is performed on any one of the preset angles to obtain the preset angle after angle conversion, and the sign of the standard value corresponding to the preset angle after angle conversion is converted.
[0267] As an optional implementation manner, the function value determining unit 802 is specifically configured to determine the relationship curve in the following manner:
[0268] Constructing multiple initial curve functions, wherein the initial curve functions correspond to initial coordinate points, any one of the initial curve functions passes through the corresponding initial coordinate point, the abscissa of any one of the initial coordinate points represents an angle, and the ordinate represents a sine function value or a cosine function value corresponding to the angle;
[0269] Performing polynomial combination on the multiple initial curve functions to obtain a polynomial function passing through the multiple initial coordinate points;
[0270] The relationship curve is determined according to the plurality of preset angles, the standard values respectively corresponding to the plurality of preset angles, and the polynomial function.
[0271] As an optional implementation manner, the determining function value unit 802 is specifically configured to:
[0272] Determining a plurality of known coordinate points according to the plurality of preset angles and the standard values respectively corresponding to the plurality of preset angles;
[0273] The multiple initial coordinate points in the polynomial function are replaced with multiple known coordinate points to obtain the relationship curve.
[0274] As an optional implementation manner, if the electrical device includes a three-phase AC motor device, the control device operation unit 803 is specifically used for:
[0275] Performing a rotation transformation on the coordinate system corresponding to the three-phase AC signal of the three-phase AC motor device, and determining a transformation matrix of the rotation transformation according to the function value;
[0276] The operating parameters corresponding to the three-phase AC signal are controlled according to the transformation matrix.
[0277] Based on the same inventive concept, an embodiment of the present invention further provides a computer storage medium on which a computer program is stored. When the program is executed by a processor, the following steps are implemented:
[0278] Acquire angle information of operating parameters of the electrical equipment, and select a plurality of preset angles from the preset angle set according to the difference between each preset angle in the preset angle set and the angle information;
[0279] Determining the standard values corresponding to the plurality of preset angles respectively according to the pre-established correspondence between the preset angles and the standard values;
[0280] Determine, according to a relationship curve between the preset angle and the standard value, a function value corresponding to the angle information on the relationship curve, wherein the relationship curve is used to characterize a change trend of the standard values respectively corresponding to a plurality of the preset angles;
[0281] The operation of the electrical device is controlled according to the function value.
[0282] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, 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 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 and optical storage, etc.) containing computer-usable program code.
[0283] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to 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 device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing 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 has the functions specified in one or more boxes.
[0284] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work 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.
[0285] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing 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.
[0286] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A control method for an electrical device, characterized in that: The method includes: Acquire angle information of operating parameters of the electrical equipment, and select a plurality of the preset angles from the preset angle set according to the difference between each preset angle in the preset angle set and the angle information; the electrical equipment includes a three-phase AC motor device; Determining the standard values corresponding to the plurality of preset angles respectively according to the pre-established correspondence between the preset angles and the standard values; According to the relationship curve between the preset angle and the standard value, the function value corresponding to the angle information on the relationship curve is determined, wherein the relationship curve is used to characterize the change trend of the standard values corresponding to the plurality of preset angles respectively; the relationship curve is determined in the following manner: Constructing a plurality of initial curve functions, wherein the initial curve functions correspond to initial coordinate points, any one of the initial curve functions passes through the corresponding initial coordinate point, the abscissa of any one of the initial coordinate points represents an angle, and the ordinate represents a sine function value or a cosine function value corresponding to the angle; performing polynomial combination on the plurality of the initial curve functions to obtain a polynomial function passing through the plurality of the initial coordinate points; determining the relationship curve according to the plurality of the preset angles, the standard values respectively corresponding to the plurality of the preset angles, and the polynomial function; The operation of the electrical device is controlled according to the function value.
2. The method according to claim 1, characterized in that The corresponding relationship between the preset angle and the standard value is pre-established in the following manner: Divide the angle interval of the standard function in any period into multiple sub-intervals, sample the angle included in any sub-interval at a set interval, and obtain each of the preset angles, wherein the standard function includes a sine function or a cosine function; Determine the standard value corresponding to each of the preset angles according to each of the preset angles and the standard function; According to the standard values respectively corresponding to the preset angles, a corresponding relationship between the preset angles and the standard values is established.
3. The method according to claim 2, characterized in that Any of the subintervals is a monotonically increasing interval of the standard function, and the standard values of the standard function corresponding to the subintervals are all greater than or equal to zero; or, Any of the subintervals is a monotonically increasing interval of the standard function, and the standard values of the standard function corresponding to the subintervals are all less than or equal to zero; or, Any of the subintervals is a monotonically decreasing interval of the standard function, and the standard values of the standard function corresponding to the subintervals are all greater than or equal to zero; or, Any of the subintervals is a monotonically decreasing interval of the standard function, and the standard values of the standard function corresponding to the subintervals are all less than or equal to zero.
4. The method according to claim 1, characterized in that: The preset angle is the preset angle after normalization processing, then after obtaining the angle information of the operating parameters of the electrical equipment, the method further includes: The acquired angle information is normalized to obtain the normalized angle information, so as to select a plurality of the preset angles from the preset angle set according to the difference between each of the preset angles and the normalized preset angle information.
5. The method according to any one of claims 1 to 4, characterized in that: Also includes: If the angle information exceeds the angle range determined by each preset angle in the preset angle set, performing angle conversion on the angle information to obtain angle information after angle conversion; or, If the angle information exceeds the angle range determined by each of the preset angles in the preset angle set and exceeds the angle threshold, performing angle conversion on the angle information to obtain angle information after angle conversion, and converting the sign of the function value corresponding to the angle information; or, If any one of the plurality of preset angle information exceeds the angle range determined by each preset angle in the preset angle set, performing angle conversion on any one of the preset angles to obtain the preset angle after angle conversion; or, If any one of the multiple preset angles in the preset angle information exceeds the angle range determined by each of the preset angles in the preset angle set and exceeds the angle threshold, angle conversion is performed on any one of the preset angles to obtain the preset angle after angle conversion, and the sign of the standard value corresponding to the preset angle after angle conversion is converted.
6. The method according to claim 1, characterized in that The determining the relationship curve according to the plurality of preset angles, the standard values respectively corresponding to the plurality of preset angles, and the polynomial function comprises: Determining a plurality of known coordinate points according to the plurality of preset angles and the standard values respectively corresponding to the plurality of preset angles; The multiple initial coordinate points in the polynomial function are replaced with multiple known coordinate points to obtain the relationship curve.
7. The method according to any one of claims 1 to 4, characterized in that: The step of controlling the operation of the electrical device according to the function value comprises: Performing a rotation transformation on the coordinate system corresponding to the three-phase AC signal of the three-phase AC motor device, and determining a transformation matrix of the rotation transformation according to the function value; The operating parameters corresponding to the three-phase AC signal are controlled according to the transformation matrix.
8. A control device for an electrical device, characterized in that: The device comprises a processor and a memory, wherein the memory is used to store a program executable by the processor, and the processor is used to read the program in the memory and execute the steps of any one of the methods of claims 1 to 7.
9. A computer storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Mechanical arm kinematics self-calibration method based on binocular vision
CN113733088A