Method and device for adjusting proportionality coefficient of loop PID (Proportion Integration Differentiation) regulator, electronic equipment and readable-writable storage medium
By automatically adjusting the proportional coefficient of the looper PID regulator and adjusting its value according to the deviation of the looper's lifting height, the problem of lifting height fluctuation caused by the fixed proportional coefficient is solved, and tension-free rolling and product quality are improved.
Patent Information
- Application Number
- CN202410823905.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-08-30
AI Technical Summary
In the existing technology, the proportional coefficient of the looper PID regulator is usually set to a fixed value, which causes the looper lifting height to fluctuate greatly, affects the surface quality and dimensional accuracy of the product, and may cause the electrical transmission equipment to trip or pile up steel.
By obtaining the deviation between the actual height of the looper and the set height, the proportional coefficient of the PID regulator is automatically adjusted between the upper limit and the lower limit to ensure the stability of the lifting height and avoid overshoot.
The stability of the looper lifting height is achieved, the shake and tension of the rolled piece are avoided, the product size and surface quality are ensured, the amount of head and tail trimming is reduced, and the rolling yield is improved.
Smart Images

Figure CN118558748A
Abstract
Description
Technical Field
[0001] The invention relates to the field of steel rolling, and in particular to a method, a device, an electronic device and a readable and writable storage medium for adjusting a proportional coefficient of a looper PID regulator. Background Art
[0002] The looper scanner is a sensor commonly used by bar and wire steel enterprises. It can detect the starting height of the rolled piece in the looper. The function of the looper is to adjust the speed of the rolling mill upstream of the looper to ensure that the starting height of the rolled piece in the looper is equal to the set height, so as to achieve tension-free rolling and ensure the product size. The PID regulator is used to adjust the looper. The proportional coefficient of the PID regulator is the key parameter of the PID regulator, which determines the speed of the PID regulator's adjustment. The larger the proportional coefficient, the faster the adjustment; the smaller the proportional coefficient, the slower the adjustment.
[0003] At present, the proportional coefficient of the PID regulator is usually set to a fixed value. Therefore, if the proportional coefficient is set to a large value, the speed of the electric transmission equipment will be fast, causing the height of the looper to fluctuate greatly and be unstable, which may easily cause the rolled piece to shake, thereby affecting the surface quality of the product. If the proportional coefficient is set too large, it may also cause the electric transmission equipment to trip due to inability to respond. If the proportional coefficient is set to a small value, the speed of the electric transmission equipment will be slow, which may easily cause steel piling or tension to affect product size. Summary of the invention
[0004] The object of the present invention is to provide a method, device, electronic device and readable and writable storage medium for adjusting the proportional coefficient of a loop PID regulator, which can automatically and flexibly adjust the proportional coefficient of the PID regulator between the upper limit and lower limit of the proportional coefficient according to the deviation between the actual value of the loop starting height and the set value, thereby ensuring that the loop starting height is very stable and close to the set height, thereby realizing tension-free rolling.
[0005] In order to achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0006] In a first aspect, an embodiment of the present application provides a method for adjusting a proportional coefficient of a looper PID regulator, the method comprising:
[0007] Get the actual height of the looper and the set value of the looper height;
[0008] Get the upper limit value of the proportional coefficient of the PID regulator;
[0009] Determining a lower limit value of a proportional coefficient in the PID regulator based on the upper limit value;
[0010] Determining a first preset value and a second preset value for stabilizing the looper, wherein the first preset value is greater than the second preset value;
[0011] The proportional coefficient of the PID regulator is adjusted based on the actual height of the looper, the set value of the looper height, the upper limit value, the lower limit value, the first preset value and the second preset value.
[0012] In an optional implementation, the step of determining a lower limit value of a proportional coefficient in the PID regulator based on the upper limit value comprises:
[0013] Calculating the product of the upper limit value of the proportional coefficient in the PID regulator and a preset threshold value;
[0014] The product is used as the lower limit value of the proportional coefficient of the PID regulator.
[0015] In an alternative embodiment,
[0016] The step of adjusting the proportional coefficient of the PID regulator based on the actual height of the looper, the set value of the looper height, the upper limit value, the lower limit value, the first preset value and the second preset value comprises:
[0017] Calculate the absolute value of a first difference between an actual height of the looper starting height and a set value of the looper starting height;
[0018] Calculate a temporary proportional coefficient based on the absolute value of the first difference, an upper limit, a lower limit, a first preset value, and a second preset value;
[0019] The proportional coefficient of the PID regulator is adjusted based on the temporary proportional coefficient, the upper limit value and the lower limit value.
[0020] In an alternative embodiment,
[0021] The step of calculating a temporary proportional coefficient based on the absolute value, the upper limit, the lower limit, the first preset value, and the second preset value of the first difference includes:
[0022] Calculate a second difference between the absolute value of the first difference and the second preset value;
[0023] Calculating a third difference between an upper limit value of a proportional coefficient in the PID regulator and a lower limit value of the proportional coefficient in the PID regulator;
[0024] Calculating a first product of the second difference and the third difference;
[0025] Calculating a fourth difference between the first preset value and the second preset value;
[0026] Calculating a first ratio of the first product to the fourth difference;
[0027] The sum of the first ratio and the lower limit value of the proportional coefficient in the PID regulator is calculated as a temporary proportional coefficient.
[0028] In an alternative embodiment,
[0029] The step of adjusting the proportional coefficient of the PID regulator based on the temporary proportional coefficient, the upper limit value and the lower limit value comprises:
[0030] Compare the temporary proportional coefficient with the lower limit value and the upper limit value respectively;
[0031] When the temporary proportional coefficient is less than the lower limit value, taking the lower limit value as the target proportional coefficient;
[0032] When the temporary proportional coefficient is greater than or equal to the lower limit value and less than or equal to the upper limit value, taking the temporary proportional coefficient as the target proportional coefficient;
[0033] When the temporary proportional coefficient is greater than the upper limit value, taking the upper limit value as the target proportional coefficient;
[0034] The target proportional coefficient is used as the proportional coefficient of the PID regulator.
[0035] In a second aspect, an embodiment of the present application provides a looper adjustment device, the device comprising:
[0036] The acquisition module is used to obtain the actual height of the looper and the set value of the looper height; and obtain the upper limit value of the proportional coefficient of the PID regulator;
[0037] A determination module, configured to determine a lower limit value of a proportional coefficient in the PID regulator based on the upper limit value; determine a first preset value and a second preset value for stabilizing the loop, wherein the first preset value is greater than the second preset value;
[0038] The regulating module is used to regulate the proportional coefficient of the PID regulator based on the actual height of the looper, the set value of the looper height, the upper limit value, the lower limit value, the first preset value and the second preset value.
[0039] In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements a method for adjusting the proportional coefficient of the loop PID regulator when executing the computer program.
[0040] In a fourth aspect, an embodiment of the present application provides a readable and writable storage medium having a computer program stored thereon, which implements a method for adjusting the proportional coefficient of the loop PID regulator when the program is executed by a processor.
[0041] This application has the following beneficial effects:
[0042] The invention allows the proportional coefficient of the PID regulator to be automatically and flexibly adjusted between the upper limit and the lower limit according to the deviation between the actual value of the looper's starting height and the set value. The larger the deviation, the larger the proportional coefficient, and the faster the adjustment; the smaller the deviation, the smaller the proportional coefficient, and the slower the adjustment; because it is stepless adjustment, overshoot can be avoided. In this way, the starting height of the looper is relatively stable, with small fluctuations, the rolled piece will not shake or pile up, and tension-free rolling can be guaranteed, ensuring the product size and surface quality, reducing the amount of head and tail trimming, and thus improving the yield rate of rolled products. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0044] Figure 1 A block diagram of an electronic device provided by an embodiment of the present invention;
[0045] Figure 2 One of the flow charts of a method for adjusting a proportional coefficient of a looper PID regulator provided in an embodiment of the present invention;
[0046] Figure 3 A second flow chart of a method for adjusting a proportional coefficient of a looper PID regulator provided in an embodiment of the present invention;
[0047] Figure 4 A third flow chart of a method for adjusting a proportional coefficient of a looper PID regulator provided in an embodiment of the present invention;
[0048] Figure 5 A structural block diagram of a device for adjusting a proportional coefficient of a loop PID regulator provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0050] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. 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.
[0051] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0052] In the description of the present invention, it should be noted that if the terms "upper", "lower", "inside", "outside", etc. appear to indicate an orientation or position relationship, they are based on the orientation or position relationship shown in the accompanying drawings, or are the orientation or position relationship in which the product of the invention is usually placed when used. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0053] In addition, the terms “first”, “second”, etc., if used, are merely used to distinguish between the descriptions and should not be understood as indicating or implying relative importance.
[0054] In the description of this application, it should also be noted that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0055] After extensive research, the inventor found that the looper scanner is a sensor commonly used by bar and wire steel enterprises, which can detect the starting height of the rolled piece in the looper. The function of the looper is to adjust the speed of the rolling mill upstream of the looper to ensure that the starting height of the rolled piece in the looper is equal to the set height, so as to achieve tension-free rolling and ensure the product size. The PID regulator is used to adjust the looper.
[0056] At present, the proportional coefficient of the PID regulator is usually set to a fixed value. Therefore, when the proportional coefficient is set to a large value, the electric transmission equipment will rise and fall quickly, causing the starting height of the loop to fluctuate greatly and be unstable, which can easily cause the rolled piece to shake, thereby affecting the surface quality of the product. When the proportional coefficient is set to a small value, the electric transmission equipment will rise and fall slowly, which can easily cause steel piling or tension to affect the product size.
[0057] In view of the discovery of the above problems, this embodiment provides a method, device, electronic device and readable and writable storage medium for adjusting the proportional coefficient of the looper PID regulator, which can obtain the actual height of the looper and the set value of the looper height, wherein the looper is controlled by the PID regulator, obtain the upper limit value of the proportional coefficient in the PID regulator, and determine the first preset value and the second preset value based on the on-site debugging; determine the lower limit value of the proportional coefficient in the PID regulator based on the upper limit value, and adjust the proportional coefficient of the PID regulator based on the actual height of the looper, the set value of the looper height, the upper limit value, the lower limit value, the first preset value, and the second preset value, and control the height of the looper based on the PID regulator that adjusts the proportional coefficient. The proportional coefficient of the PID regulator can be adjusted automatically and flexibly, so as to achieve tension-free rolling, thereby improving the yield rate of rolling. The scheme provided by this embodiment is described in detail below.
[0058] This embodiment provides an electronic device that can adjust the proportional coefficient of a looper PID regulator. In a possible implementation, the electronic device can be a programmable logic controller, for example, the electronic device can be, but is not limited to, a controller, a looper device, etc.
[0059] Please refer to Figure 1 , Figure 1 1 is a schematic diagram of the structure of the electronic device 100 provided in the embodiment of the present application. The electronic device 100 may also include Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown. Figure 1 Each component shown in the figure can be implemented by hardware, software or a combination thereof.
[0060] The electronic device 100 includes a loop PID regulator proportional coefficient adjustment device 110, a memory 120 and a processor 130.
[0061] The components of the memory 120 and the processor 130 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines. The method device 110 for adjusting the proportional coefficient of the loop PID regulator includes at least one software function module that can be stored in the memory 120 in the form of software or firmware or solidified in the operating system (OS) of the electronic device 100. The processor 130 is used to execute the executable modules stored in the memory 120, such as the software function modules and computer programs included in the method device 110 for adjusting the proportional coefficient of the loop PID regulator.
[0062] The memory 120 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The memory 120 is used to store a program, and the processor 130 executes the program after receiving an execution instruction.
[0063] Please refer to Figure 2 , Figure 2 For application Figure 1 A flow chart of a loop adjustment method for an electronic device 100 is shown, and the method including various steps is described in detail below.
[0064] S201: Obtain the actual height of the looper and the set value of the looper height.
[0065] Among them, the looper is controlled by PID regulator.
[0066] S202: Obtain the upper limit value of the proportional coefficient of the PID regulator.
[0067] S203: Determine a lower limit value of a proportional coefficient in a PID regulator based on the upper limit value.
[0068] S204: Determine a first preset value and a second preset value to stabilize the loop.
[0069] Among them, the first preset value is greater than the second preset value.
[0070] S205: Based on the actual height of the looper, the set value of the looper height, the upper limit value, the lower limit value, the first preset value and the second preset value, the proportional coefficient of the PID regulator is adjusted.
[0071] Before adjusting the loop, you can first calibrate the loop. After the loop is calibrated, the data in the MD is first assigned to the data block DB, and the DB data is set to be retained; then add a calibration data initialization function FC (LP_initialization) to assign the calibration data in the DB to the MD; finally, add a program to call the calibration data initialization function FC in the organization block OB1. This solves the problem of data loss caused by PLC restart, power failure or hardware download.
[0072] The actual height of the loop can be obtained by measuring the actual height of the loop with a laser rangefinder. Or based on ultrasonic ranging, the actual height of the loop can be determined by measuring the pulse round trip time by emitting ultrasonic pulses. Alternatively, the actual height of the loop can be measured by a photoelectric sensor. The photoelectric sensor can be used to measure the position of the edge of the loop, thereby calculating the actual height of the loop. Alternatively, a mechanical arm or a probe can be used to directly contact the surface of the loop to measure the actual height of the loop. Alternatively, a high-resolution camera and an image processing system can be installed to capture the image of the loop, and the actual height of the loop can be determined by image analysis.
[0073] The embodiment of the present application does not impose any specific limitation on the specific method of determining the actual height of the noose.
[0074] In order to ensure the dimensional accuracy of products, modern high-speed wire rod mills use micro-tension and tension-free rolling to eliminate the tension fluctuations caused by various dynamic interferences during the rolling process and the resulting fluctuations in the size of rolled pieces. Since the finishing mill is a collective transmission, the finishing rolling adopts micro-tension rolling, and its micro-tension value is guaranteed by the fixed speed ratio and the given hole slot area of each frame. The speed ratio will not change due to control, and the rolled piece area will fluctuate due to the fluctuation of the incoming material area. In order to reduce the fluctuation of the rolled piece size of the finishing mill caused by tension changes, several loopers are often set in the pre-finishing and intermediate rolling mills before the finishing mill to eliminate the interference of the dynamic speed changes of each frame of the continuous rolling and ensure the accuracy of the rolled piece. Therefore, it is necessary to set a certain value for the height of the looper, which is the set value of the looper height. The closer the actual height of the looper is to the set value, the more the accuracy of the rolled piece can be guaranteed and tension-free rolling can be achieved.
[0075] PID regulator: It is an automatic control system based on the proportional-integral-differential control algorithm. The PID regulator generates a corresponding control signal by calculating and processing the feedback signal of the controlled object to achieve stable control of the controlled object. It consists of three units: proportional (P), integral (I) and differential (D). The control purpose is achieved by adjusting the proportional coefficient (Kp), integral coefficient (Ki) and differential coefficient (Kd). PID regulators are widely used in industrial automation, mechanical control, temperature control, flow control and other fields, providing efficient and stable control capabilities for various control systems. The PID regulator can make the actual height of the looper close to the set value of the looper's starting height.
[0076] The upper limit value of the proportional coefficient in the PID regulator is obtained. The upper limit value of the proportional coefficient in the PID regulator is the maximum value of the proportional coefficient before adjustment. The product of the upper limit value of the proportional coefficient in the PID regulator and the preset threshold value is calculated to calculate the lower limit value of the proportional coefficient of the PID regulator.
[0077] It should be noted that the preset threshold is a value less than 1 and greater than 0, wherein the preset threshold can be set to 0.5, 0.6, or 0.7, and the embodiment of the present application does not impose any specific limitation on this.
[0078] It should also be noted that the first preset value and the second preset value are directly written values, which need to be continuously optimized according to the PLC model and the response capability of the electrical transmission equipment, and finally determined through repeated on-site debugging and modification. The purpose is to ensure that the starting height of the loop is stable and meets the response capability of the electrical transmission equipment. Among them, the first preset value is greater than the second preset value.
[0079] There are many ways to adjust the proportional coefficient of the PID regulator based on the actual height of the looper, the set value of the looper height, the upper limit, the lower limit, the first preset value, and the second preset value. In one implementation, Figure 3 As shown, the following steps are included:
[0080] S205-1: Calculate the absolute value of the first difference between the actual height of the looper starting height and the set value of the looper starting height.
[0081] S205-2: Calculate a temporary proportional coefficient based on the absolute value of the first difference, the upper limit, the lower limit, the first preset value, and the second preset value.
[0082] S205-3: Based on the temporary proportional coefficient, the upper limit value and the lower limit value, the proportional coefficient of the PID regulator is adjusted.
[0083] The implementation method of calculating the temporary proportional coefficient based on the absolute value of the first difference, the upper limit, the lower limit, the first preset value, and the second preset value may be:
[0084] Calculate a second difference between the absolute value of the first difference and the second preset value; calculate a third difference between the upper limit value of the proportional coefficient in the PID regulator and the lower limit value of the proportional coefficient in the PID regulator; calculate a first product of the second difference and the third difference; calculate a fourth difference between the first preset value and the second preset value; calculate a first ratio of the first product to the fourth difference; calculate the sum of the first ratio and the lower limit value of the proportional coefficient in the PID regulator as a temporary proportional coefficient.
[0085] The temporary scale factor is calculated based on the following formula:
[0086] TEMP=(IN1-IN3)*(IN4-IN5) / (IN2-IN3)+IN5;
[0087] Among them, IN1 is the absolute value of the first difference between the actual height of the looper and the set value of the looper height, IN2 is the first preset value, IN3 is the second preset value, the first preset value is greater than the second preset value, IN4 is the upper limit value of the proportional coefficient in the PID regulator, and IN5 is the lower limit value of the proportional coefficient in the PID regulator.
[0088] There are many ways to adjust the proportional coefficient of the PID regulator based on the temporary proportional coefficient, the upper limit value and the lower limit value. In one implementation, Figure 4 As shown, the following steps are included:
[0089] S301: Compare the temporary proportional coefficient with the lower limit value and the upper limit value respectively.
[0090] S302: When the temporary proportional coefficient is less than the lower limit value, the lower limit value is output as the target proportional coefficient.
[0091] S303: When the temporary proportional coefficient is greater than or equal to the lower limit value and less than or equal to the upper limit value, output the temporary proportional coefficient as the target proportional coefficient.
[0092] 304: When the temporary proportional coefficient is greater than the upper limit value, the upper limit value is output as the target proportional coefficient.
[0093] S305: Using the target proportional coefficient as the proportional coefficient of the PID regulator.
[0094] Please refer to Figure 5 The present application embodiment also provides a method for applying Figure 1 The looper PID regulator proportional coefficient adjustment device 110 of the electronic device 100, the looper PID regulator proportional coefficient adjustment device 110 comprises:
[0095] The acquisition module 111 is used to acquire the actual height of the looper and the set value of the looper height; and acquire the upper limit value of the proportional coefficient of the PID regulator;
[0096] A determination module 112 is used to determine a lower limit value of a proportional coefficient in the PID regulator based on the upper limit value; determine a first preset value and a second preset value for stabilizing the loop, wherein the first preset value is greater than the second preset value;
[0097] The adjustment module 113 is used to adjust the proportional coefficient of the PID regulator based on the actual height of the looper, the set value of the looper height, the upper limit value, the lower limit value, the first preset value and the second preset value.
[0098] The determining module 112 is specifically used for:
[0099] Calculating the product of the upper limit value of the proportional coefficient in the PID regulator and a preset threshold value;
[0100] The product is used as the lower limit value of the proportional coefficient of the PID regulator.
[0101] Optionally, the adjustment module 113 is specifically configured to:
[0102] Calculate the absolute value of a first difference between an actual height of the looper starting height and a set value of the looper starting height;
[0103] Calculate a temporary proportional coefficient based on the absolute value of the first difference, an upper limit, a lower limit, a first preset value, and a second preset value;
[0104] Based on the temporary proportional coefficient, the upper limit and the lower limit, the proportional coefficient of the PID regulator is adjusted
[0105] The adjustment module 113 is specifically used to: calculate a second difference between the absolute value of the first difference and the second preset value;
[0106] Calculating a third difference between an upper limit value of a proportional coefficient in the PID regulator and a lower limit value of the proportional coefficient in the PID regulator;
[0107] Calculating a first product of the second difference and the third difference;
[0108] Calculating a fourth difference between the first preset value and the second preset value;
[0109] Calculating a first ratio of the first product to the fourth difference;
[0110] The sum of the first ratio and the lower limit value of the proportional coefficient in the PID regulator is calculated as a temporary proportional coefficient.
[0111] Optionally, the adjustment module 113 is specifically configured to:
[0112] Comparing the temporary proportional coefficient with the lower limit value and the upper limit value respectively;
[0113] When the temporary proportional coefficient is less than the lower limit value, the lower limit value is used as the target proportional coefficient; when the temporary proportional coefficient is greater than or equal to the lower limit value of the proportional coefficient in the PID regulator and less than or equal to the upper limit value, the temporary proportional coefficient is used as the target proportional coefficient; when the temporary proportional coefficient is greater than the upper limit value, the upper limit value is used as the target proportional coefficient.
[0114] The PID regulator is adjusted based on the target proportional coefficient as a proportional coefficient.
[0115] The present application also provides an electronic device 100, which includes a processor 130 and a memory 120. The memory 120 stores computer executable instructions, and when the computer executable instructions are executed by the processor 130, the method for adjusting the proportional coefficient of the looper PID regulator is implemented.
[0116] The embodiment of the present application further provides a readable and writable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by the processor 130, the method for adjusting the proportional coefficient of the loop PID regulator is implemented.
[0117] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to the multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of boxes in the block diagram and / or the flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0118] In addition, each functional module in each embodiment of the present application can be integrated together to form an independent part, or each module can exist separately, or two or more modules can be integrated to form an independent part. If the function is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk.
[0119] 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", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0120] The above are only various implementations of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for adjusting the proportional coefficient of a looper PID regulator. It is characterized in that The method comprises: Get the actual height of the looper and the set value of the looper height; Get the upper limit value of the proportional coefficient of the PID regulator; Determining a lower limit value of a proportional coefficient in the PID regulator based on the upper limit value; Determining a first preset value and a second preset value for stabilizing the looper, wherein the first preset value is greater than the second preset value; The proportional coefficient of the PID regulator is adjusted based on the actual height of the looper, the set value of the looper height, the upper limit value, the lower limit value, the first preset value and the second preset value.
2. The method according to claim 1, It is characterized in that The step of determining the lower limit value of the proportional coefficient in the PID regulator based on the upper limit value comprises: Calculating the product of the upper limit value of the proportional coefficient in the PID regulator and a preset threshold value; The product is used as the lower limit value of the proportional coefficient of the PID regulator.
3. The method according to claim 1, It is characterized in that The step of adjusting the proportional coefficient of the PID regulator based on the actual height of the looper, the set value of the looper height, the upper limit value, the lower limit value, the first preset value and the second preset value comprises: Calculate the absolute value of a first difference between an actual height of the looper starting height and a set value of the looper starting height; A temporary proportional coefficient is calculated based on the absolute value of the first difference, the upper limit, the lower limit, the first preset value, and the second preset value.
4. The method according to claim 3, It is characterized in that The step of calculating a temporary proportional coefficient based on the absolute value, the upper limit, the lower limit, the first preset value, and the second preset value of the first difference includes: Calculate a second difference between the absolute value of the first difference and the second preset value; Calculating a third difference between an upper limit value of a proportional coefficient in the PID regulator and a lower limit value of the proportional coefficient in the PID regulator; Calculating a first product of the second difference and the third difference; Calculating a fourth difference between the first preset value and the second preset value; Calculating a first ratio of the first product to the fourth difference; The sum of the first ratio and the lower limit value of the proportional coefficient in the PID regulator is calculated as a temporary proportional coefficient.
5. The method according to claim 3, It is characterized in that The step of adjusting the proportional coefficient of the PID regulator based on the temporary proportional coefficient, the upper limit value and the lower limit value comprises: Comparing the temporary proportional coefficient with the lower limit value and the upper limit value respectively; When the temporary proportional coefficient is less than the lower limit value, taking the lower limit value as the target proportional coefficient; When the temporary proportional coefficient is greater than or equal to the lower limit value and less than or equal to the upper limit value, taking the temporary proportional coefficient as the target proportional coefficient; When the temporary proportional coefficient is greater than the upper limit value, taking the upper limit value as the target proportional coefficient; The target proportional coefficient is used as the proportional coefficient of the PID regulator.
6. A device for adjusting the proportional coefficient of a looper PID regulator, It is characterized in that The device comprises: The acquisition module is used to obtain the actual height of the looper and the set value of the looper height; and obtain the upper limit value of the proportional coefficient of the PID regulator; A determination module, configured to determine a lower limit value of a proportional coefficient in the PID regulator based on the upper limit value; determine a first preset value and a second preset value for stabilizing the loop, wherein the first preset value is greater than the second preset value; The regulating module is used to regulate the proportional coefficient of the PID regulator based on the actual height of the looper, the set value of the looper height, the upper limit value, the lower limit value, the first preset value and the second preset value.
7. An electronic device, It is characterized in that The method comprises a memory and a processor, wherein the memory stores a computer program, and wherein the processor implements the steps of the method according to any one of claims 1 to 5 when executing the computer program.
8. A readable and writable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
