CN117687293A - PID control method, device, equipment and storage medium - Google Patents

PID control method, device, equipment and storage medium Download PDF

Info

Publication number
CN117687293A
CN117687293A CN202311545197.2A CN202311545197A CN117687293A CN 117687293 A CN117687293 A CN 117687293A CN 202311545197 A CN202311545197 A CN 202311545197A CN 117687293 A CN117687293 A CN 117687293A
Authority
CN
China
Prior art keywords
temperature
pid
temperature control
lower computer
feedback data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311545197.2A
Other languages
Chinese (zh)
Inventor
曾小虎
刘成龙
蒙尚镖
刘薇
杨挺坚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Coolmay Technology Co ltd
Original Assignee
Shenzhen Coolmay Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Coolmay Technology Co ltd filed Critical Shenzhen Coolmay Technology Co ltd
Priority to CN202311545197.2A priority Critical patent/CN117687293A/en
Publication of CN117687293A publication Critical patent/CN117687293A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B11/00Automatic controllers
    • G05B11/01Automatic controllers electric
    • G05B11/36Automatic controllers electric with provision for obtaining particular characteristics, e.g. proportional, integral, differential
    • G05B11/42Automatic controllers electric with provision for obtaining particular characteristics, e.g. proportional, integral, differential for obtaining a characteristic which is both proportional and time-dependent, e.g. P. I., P. I. D.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Feedback Control In General (AREA)

Abstract

The invention relates to the technical field of electrical control, and discloses a PID control method, a device, equipment and a storage medium, wherein the method comprises the following steps: collecting field feedback data of a PLC lower computer; PID operation is carried out on the field feedback data, and a temperature control execution amount corresponding to the field feedback data is obtained; and controlling the temperature of the PLC lower computer based on the temperature control execution amount. When the field feedback data of the PLC lower computer is acquired, PID operation can be performed on the linux display screen, so that temperature control of the PLC lower computer is rapidly completed, the situation that a parameter table is generally required to be consulted when a debugger modifies parameters in a traditional PID control parameter is avoided, the PID control can be separated from specific hardware through friendly man-machine interaction of the linux display screen, and the PID control efficiency is improved.

Description

PID control method, device, equipment and storage medium
Technical Field
The present invention relates to the field of electrical control technologies, and in particular, to a PID control method, apparatus, device, and storage medium.
Background
In modern industrial production, current, voltage, temperature, switching value and the like are all commonly used main controlled parameters. The temperature control system is widely applied to various industries in China, is mature in the field of PID control, can realize accurate control of the system by reasonably adjusting parameters of the PID controller, and meanwhile, needs to reasonably adjust parameters according to specific application scenes and system characteristics.
However, due to the complexity of the control system actuators, the correlation and nonlinearity among variables, etc., it is quite difficult to find a set of suitable PID parameters that are suitable for the wide range control of the entire system. The PID control has a plurality of parameters to be filled in, is inconvenient to memorize, and has higher technical requirements for corresponding personnel and debugging personnel. Because of various parameter names, the modification of parameter pairs is very inconvenient, and the parameter table is generally required to be consulted, which is time-consuming and labor-consuming, and results in low PID control efficiency.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide a PID control method, a device, equipment and a storage medium, and aims to solve the technical problems that the conventional PID control parameters are numerous, debugging personnel generally need to consult a parameter table when modifying the parameters, and the time and the labor are wasted, so that the PID control efficiency is low.
To achieve the above object, the present invention provides a PID control method, which includes the steps of:
collecting field feedback data of a PLC lower computer;
PID operation is carried out on the field feedback data, and a temperature control execution amount corresponding to the field feedback data is obtained;
and controlling the temperature of the PLC lower computer based on the temperature control execution amount.
Optionally, after the temperature control is performed on the PLC lower computer based on the temperature control execution amount, the method further includes:
acquiring a register address of a register of the PLC lower computer;
writing a communication signal into the register according to the register address and a preset frequency;
and the PLC lower computer judges the writing state of the register according to a preset time interval, judges the communication signal fault when the writing state is unchanged, and cuts off the output control of the linux display screen.
Optionally, before the collecting the field feedback data of the PLC lower computer, the method further includes:
configuring a register mapping relation table, wherein the register mapping relation table comprises a mapping relation between a register address of a PLC lower computer and a register address of the linux display screen;
the temperature control of the PLC lower computer based on the temperature control execution amount comprises the following steps:
and sending the temperature control execution amount to a register of the PLC lower computer through the register mapping relation table so that the PLC lower computer performs temperature control based on the temperature control execution amount.
Optionally, before the collecting the field feedback data of the PLC lower computer, the method further includes:
acquiring a preset self-setting temperature which is two thirds of the normal temperature to the highest temperature;
PID temperature control setting is carried out based on the preset self-setting temperature, a temperature setting curve is obtained, and the temperature setting curve represents the relation between the preset self-setting temperature and the current temperature along with the time;
and when the PID temperature control setting is finished, executing the step of collecting the field feedback data of the PLC lower computer according to the temperature setting curve.
Optionally, the step of performing PID temperature control setting based on the preset self-setting temperature, after obtaining a temperature setting curve, further includes:
updating the preset self-setting temperature to obtain a target updated temperature;
performing heating performance test according to the target updated temperature and the temperature setting curve to obtain a test result;
judging whether the test result accords with a preset expected value or not;
and when the test result does not accord with the preset expected value, updating the PID parameter, and executing the step of PID temperature control setting based on the preset self-setting temperature according to the PID parameter until the test result accords with the preset expected value, and ending PID temperature control setting.
Optionally, after the temperature control is performed on the PLC lower computer based on the temperature control execution amount, the method further includes:
acquiring a temperature control state of the temperature control process of the PLC lower computer;
judging whether the temperature control state is a preset abnormal state or not;
and when the temperature control state is a preset abnormal state, closing the PLC lower computer, and carrying out abnormal early warning based on the temperature control state.
Optionally, performing PID operation on the field feedback data to obtain a temperature control execution amount corresponding to the field feedback data includes:
PID operation is carried out on the field feedback data through a preset temperature control formula, and a temperature control execution amount corresponding to the field feedback data is obtained;
the preset temperature control formula is as follows: temperature control execution amount=proportional coefficient error value+ (integral coefficient error value) -differential coefficient (current temperature value-previous temperature value);
the proportional coefficient, the integral coefficient and the differential coefficient are custom coefficients of the PLC lower computer, the error value is a specification error of the PLC lower computer, the current temperature value is a temperature value corresponding to field feedback data acquired by the PLC lower computer, and the previous temperature value is a temperature value corresponding to the field feedback data acquired last time by the PLC lower computer.
In addition, in order to achieve the above object, the present invention also proposes a PID control apparatus, the apparatus comprising:
the data acquisition module is used for acquiring field feedback data of the PLC lower computer;
the PID operation module is used for performing PID operation on the field feedback data to obtain a temperature control execution amount corresponding to the field feedback data;
and the temperature control module is used for controlling the temperature of the PLC lower computer based on the temperature control execution amount.
In addition, in order to achieve the above object, the present invention also proposes a PID control apparatus, the apparatus comprising: a memory, a processor and a PID control program stored on the memory and executable on the processor, the PID control program being configured to implement the steps of the PID control method as described above.
In addition, in order to achieve the above object, the present invention also proposes a storage medium having stored thereon a PID control program which, when executed by a processor, implements the steps of the PID control method as described above.
Firstly, collecting field feedback data of a PLC lower computer; then PID operation is carried out on the field feedback data, and the temperature control execution amount corresponding to the field feedback data is obtained; and finally, performing temperature control on the PLC lower computer based on the temperature control execution amount. When the field feedback data of the PLC lower computer is acquired, PID operation can be performed on the linux display screen, so that temperature control of the PLC lower computer is rapidly completed, the situation that a parameter table is generally required to be consulted when a debugger modifies parameters in a traditional PID control parameter is avoided, the PID control can be separated from specific hardware through friendly man-machine interaction of the linux display screen, and the PID control efficiency is improved.
Drawings
FIG. 1 is a schematic diagram of the PID control device of the hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flow chart of a first embodiment of the PID control method according to the invention;
FIG. 3 is a schematic diagram of a temperature control scenario in a first embodiment of the PID control method of the invention;
FIG. 4 is a flowchart of PID operations in a first embodiment of the PID control method according to the invention;
FIG. 5 is a flow chart of a second embodiment of the PID control method according to the invention;
fig. 6 is a block diagram of the first embodiment of the PID control device of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a PID control device of a hardware running environment according to an embodiment of the present invention.
As shown in fig. 1, the PID control device may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) or a stable nonvolatile Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the configuration shown in FIG. 1 is not limiting of the PID control device, and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a PID control program may be included in the memory 1005 as one type of storage medium.
In the PID control device shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the PID control device of the present invention may be provided in the PID control device, which invokes the PID control program stored in the memory 1005 through the processor 1001 and executes the PID control method provided by the embodiment of the present invention.
An embodiment of the present invention provides a PID control method, referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the PID control method of the present invention.
In this embodiment, the PID control method is applied to a linux display screen, and the PID control method includes the following steps:
step S10: and collecting field feedback data of the PLC lower computer.
It should be noted that, the execution body of the method of the present embodiment may be an electronic device having functions of data processing, PID operation, and temperature control, for example, a PID host computer, or other electronic devices capable of implementing the same or similar functions, for example, the PID control device described above, which is not limited in this embodiment. The PID control equipment is mounted on the linux display screen, and a user performs temperature control through the linux display screen. Here, the present embodiment and the following embodiments will be specifically described with the above PID control apparatus.
It is understood that the Linux display screen is a device that is compatible and interactive with the touch screen device by the Linux system. A thread can be added on the existing linux display screen to process PID operation, the calculation result is sent to the PLC lower computer to execute output in a communication mode, and the PID operation can be efficiently processed by opening a thread on the linux system of the linux display screen. Meanwhile, file management can be carried out on the temperature control temperature parameters, and a user can call different heating parameters according to different temperature requirements.
And the parameters can be filled in or defaulted on the linux display screen according to the parameters, the PLC is directly connected for temperature control, and PID control is completed by the cooperation of the PLC.
It should be understood that the PLC lower computer refers to an auxiliary processor connected to various sensors and actuators, and through communication with the PLC lower computer, the lower computer may receive an instruction transmitted by the PID control device, and perform a corresponding control operation according to the instruction.
It is understood that the field feedback data is real-time data obtained from the field devices (such as sensors, actuators, etc.) through the PLC lower computer, for example, temperature, pressure, flow, position, etc., and may also be logic signals of a switch state, an alarm state, etc. The PLC lower computer transmits the data to the PID control equipment for the PID control equipment to carry out logic judgment and control decision.
For example, if the PLC lower computer is a control system for controlling temperature, the PLC lower computer may acquire real-time temperature measurement values as field feedback data by connecting the temperature sensor. Such field feedback data may be used to determine whether the current temperature meets a preset value and adjust the control output as needed.
In a specific implementation, the PID control equipment acquires real-time temperature measured values as field feedback data through a temperature sensor connected with the PLC lower computer. Such field feedback data may be used to determine whether the current temperature meets a preset value and adjust the control output as needed.
Step S20: and performing PID operation on the field feedback data to obtain the temperature control execution amount corresponding to the field feedback data.
Step S30: and controlling the temperature of the PLC lower computer based on the temperature control execution amount.
It should be noted that, PID operation may be performed through a preset temperature control formula, where the preset temperature control formula is a control algorithm or formula preset in the temperature control system, and is used to calculate and adjust the control output according to the desired temperature set value and the actual temperature feedback value input by the user based on the linux display screen. The preset temperature control formula can be used for calculating a temperature error (i.e. a difference between a set value and a feedback value), taking the error as an input, and calculating to obtain a corresponding control output, wherein common preset temperature control formulas can comprise proportional control (P control), proportional integral control (PI control), proportional integral derivative control (PID control) and the like.
It should be understood that the temperature control execution amount is an output amount of the PID control device calculated according to a preset temperature control formula, and is used to directly perform temperature control on the PLC lower computer.
The temperature control execution amount is an adjusting signal or control output obtained through operation according to the difference (temperature deviation) between the set temperature value and the actual temperature feedback value and a preset temperature control formula, and is used for adjusting the working state of the connecting equipment of the PLC lower computer so that the system temperature can be close to the set value.
In a specific implementation, the PID control device may perform PID operation according to a desired temperature set value input by a user based on a linux display screen and a temperature feedback value in actual field feedback data by presetting a temperature control formula, so as to obtain a temperature control execution amount corresponding to the field feedback data. And then, according to the temperature control execution amount, adjusting the working state of the connecting equipment of the PLC lower computer so as to enable the system temperature to be close to a set value. Therefore, the temperature or the change of the measured object and the output quantity can be intuitively displayed through the linux display screen, and a friendly man-machine interaction interface is provided, so that the application of PID control is simpler and more foolproof to operate.
For ease of understanding, referring to fig. 3, fig. 3 is a schematic view of a temperature control scenario in the first embodiment of the PID control method of the present invention. As shown in FIG. 3, the algorithm of PID is put on a linux screen based on a linux operating system to run, and the linux operating system independently opens a thread to execute the operation, so that the independence and the instantaneity are ensured. Meanwhile, the user is based on a friendly man-machine interaction interface, so that the application of the PID is simpler and more foolproof to operate. And the field acquisition equipment, such as a linux screen fed back by the PLC lower computer in a communication mode, transmits the result to the lower computer in the communication mode after PID operation of the touch screen, and then the lower computer executes output. The configuration of the touch screen is provided with a software configuration design picture and configuration of the system. The protocol of the touch screen protocol integrates the protocol of the mainstream PLC, and only the protocol needs to be selected when the project is created. The PID picture is default to be configured as a standard version, and the user can personalize the rich picture.
Specifically, the address is configured, the AD (temperature signal), the DA (DA) or the PWM (execution amount), the data interaction is performed according to the communication protocol, and the touch screen can automatically read and write the corresponding address. The touch screen firstly reads real-time field feedback quantity according to the communication thread period, and then the PID thread executes calculation of execution quantity once every PID period. The communication thread writes the execution amount to the configured corresponding address. The lower computer (PLC) outputs a corresponding DA or PWM according to the execution amount to control an actual object so that the system temperature approaches a set value. In this way, the user can visually see the change of temperature over time through the linux screen. Meanwhile, the PLC combination generally needs to be provided with a touch screen, so that the construction of a PID system can be completed without adding any module, and the PID algorithm is highly integrated, so that the PID algorithm is separated from specific hardware, and the application occasion is wider.
Further, the step S20 in this embodiment includes: PID operation is carried out on the field feedback data through a preset temperature control formula, and a temperature control execution amount corresponding to the field feedback data is obtained; the preset temperature control formula in this embodiment is: temperature control execution amount=proportional coefficient error value+ (integral coefficient error value) -differential coefficient (current temperature value-previous temperature value);
the proportional coefficient, the integral coefficient and the differential coefficient are custom coefficients of the PLC lower computer, the error value is a specification error of the PLC lower computer, the current temperature value is a temperature value corresponding to field feedback data acquired by the PLC lower computer, and the previous temperature value is a temperature value corresponding to the field feedback data acquired last time by the PLC lower computer.
In practical implementation, for easy understanding, referring to fig. 4, fig. 4 is a schematic flow chart of PID operation in the first embodiment of the PID control method of the present invention. As shown in fig. 4, after AD sampling, PID operation may be performed by using a Linux touch screen, and the following calculation formula is adopted: output = proportional coefficient + (integral coefficient + & lt) error) -differential coefficient + & lt (current temperature-last temperature value) to calculate the execution quantity. And then carrying out configuration display, temperature curve and man-machine interaction parameter modification. Wherein the proportional coefficient, the integral coefficient and the differential coefficient are scaled according to different temperature sections to prevent overshoot. Therefore, the execution quantity of the temperature is rapidly determined through a preset temperature control formula, and the temperature control efficiency is improved.
In the embodiment, the PID control equipment acquires real-time temperature measured values as field feedback data through a temperature sensor connected with a PLC lower computer. Such field feedback data may be used to determine whether the current temperature meets a preset value and adjust the control output as needed. And then PID operation can be performed according to a desired temperature set value input by a user based on a linux display screen and a temperature feedback value in actual field feedback data through a preset temperature control formula, so that the temperature control execution amount corresponding to the field feedback data is obtained. And then, according to the temperature control execution amount, adjusting the working state of the connecting equipment of the PLC lower computer so as to enable the system temperature to be close to a set value. Therefore, the temperature or the change of the measured object and the output quantity can be intuitively displayed through the linux display screen, and a friendly man-machine interaction interface is provided, so that the application of PID control is simpler and more foolproof to operate. Because the embodiment can carry out PID operation on the data through the preset temperature control formula on the linux display screen when the field feedback data of the PLC lower computer is acquired, the temperature control of the PLC lower computer is rapidly completed, the situation that the traditional PID control parameters are numerous and the parameter table is generally required to be consulted when debugging personnel modify the parameters is avoided, the PID control can be separated from specific hardware through friendly man-machine interaction of the linux display screen, the method is simpler, and the efficiency of the PID control is improved.
Referring to fig. 5, fig. 5 is a flowchart of a second embodiment of the PID control method of the present invention.
Based on the first embodiment, in this embodiment, after step S30, the method further includes:
step S41: and acquiring a register address of a register of the PLC lower computer.
Step S42: writing communication signals into the register according to the register address and a preset frequency
The register address is an address of an internal memory unit for storing data. The register address is an identifier for identifying and accessing a specific register, and the representation method of the register address is also different, such as an address representation method, a word address representation method, etc., based on different programming languages and mapping manners of different PLC manufacturers and models, which is not limited in this embodiment.
It is understood that the preset frequency is a frequency of writing the communication signal into the register, for example, 1S, 3S, 10S, etc., which is preset in the PID control device.
Step S43: and the PLC lower computer judges the writing state of the register according to a preset time interval, judges the communication signal fault when the writing state is unchanged, and cuts off the output control of the linux display screen.
The preset time interval is a time interval preset in the PLC lower computer for determining the writing state of the register, for example, 3S, 10S, etc.
In a specific implementation, the PID control device can write a register of the PLC lower computer according to the protocol, for example, 1S accumulates once, and the lower computer judges the register, if 3S does not receive the heartbeat of the touch screen, the output needs to be closed, so as to ensure the safety. If the register is not changed in 3s, the communication is failed, and the PLC should immediately cut off the output of the execution quantity and perform corresponding reset actions. Thereby improving the communication safety between the PLC lower computer and the PID control equipment.
Further, before step S10, the method further includes: configuring a register mapping relation table, wherein the register mapping relation table comprises a mapping relation between a register address of a PLC lower computer and a register address of the linux display screen; the basic step S30 includes: and sending the temperature control execution amount to a register of the PLC lower computer through the register mapping relation table so that the PLC lower computer performs temperature control based on the temperature control execution amount.
The register mapping relation table is a table or document for describing and recording the corresponding relation between the register address in the linux display screen and the register of the PLC lower computer.
In a specific implementation, the PID control device may first configure a register address of the target temperature (an address of the linux display screen), then configure a register address of the real-time temperature (an address of the PLC lower computer), and then map an address corresponding to the lower computer to the address configured by the linux display screen. For ease of understanding, for example, D300 (PLC register) may be mapped to LW300 (screen register) through the above configuration, and then data of D300 may be updated to LW300 in real time through the configured PLC protocol, and the PLC transmits a temperature value to D300. The LW300 thus has real-time temperature, that is, the linux display screen can obtain the field temperature collected by the PLC through the mapping relationship. Similarly, the control quantity calculated by the Linux display screen PID can be mapped into a register of the PLC, and then the execution quantity (control signals such as DA, PWM and the like) is output by the hardware of the PLC. Therefore, the corresponding data can be accurately uploaded to the corresponding register through the register mapping relation table.
Further, before step S10 in this embodiment, the method further includes: acquiring a preset self-setting temperature which is two thirds of the normal temperature to the highest temperature; PID temperature control setting is carried out based on the preset self-setting temperature, a temperature setting curve is obtained, and the temperature setting curve represents the relation between the preset self-setting temperature and the current temperature along with the time; and when the PID temperature control setting is finished, executing the step of collecting the field feedback data of the PLC lower computer according to the temperature setting curve.
The preset self-tuning temperature is preset in the PID control device, and the characteristics of the object and the data of the response to be dynamically adjusted are controlled by a self-tuning algorithm or a self-tuning function. The temperature control can be more accurately and rapidly performed by presetting the self-tuning temperature.
The self-tuning temperature is significant in avoiding the tedious and time-consuming manual adjustment of the PID parameters. Traditionally, adjusting the parameters of the controller requires experience and trial and error, and optimal control is achieved by observing the dynamic response of the system and adjusting the proportional, integral and derivative parameters step by step. And through PID temperature control self-tuning, the PID control equipment can automatically calculate the optimal parameters according to the reaction performance of the actual control process, and manual intervention of a user is not needed.
In a specific implementation, the PID control device can obtain a preset self-tuning temperature, then perform PID temperature control tuning based on the preset self-tuning temperature to obtain a temperature tuning curve, and through the PID temperature control self-tuning, the optimal parameter can be automatically calculated according to the reaction performance of the actual control process without manual intervention of a user. By presetting the self-tuning temperature, the temperature control can be more accurately and rapidly performed at the end of PID temperature control tuning.
Further, in this embodiment, the performing PID temperature control setting based on the preset self-setting temperature, after obtaining the temperature setting curve, further includes: updating the preset self-setting temperature to obtain a target updated temperature; performing heating performance test according to the target updated temperature and the temperature setting curve to obtain a test result; judging whether the test result accords with a preset expected value or not; and when the test result does not accord with the preset expected value, updating the PID parameter, and executing the step of PID temperature control setting based on the preset self-setting temperature according to the PID parameter until the test result accords with the preset expected value, and ending PID temperature control setting.
In a specific implementation, a target temperature (taking the temperature of 2/3 of the normal temperature to the highest temperature to perform self-tuning) can be set first, and after a period of time, the linux display screen also has a percentage progress bar to display the self-tuning progress in real time. And automatically switching into PID temperature control after finishing self-tuning. After the self-tuning is finished, the target temperature can be changed to perform heating performance test, when the test result does not accord with the preset expected value, PID parameters are updated, the step of performing PID temperature control tuning based on the preset self-tuning temperature is performed according to the PID parameters until the test result accords with the preset expected value, and the updating PID parameters are clicked to perform parameter preservation. Therefore, the accuracy of PID temperature control self-tuning can be improved through updating the PID parameters.
Further, after step S30, the method further includes: acquiring a temperature control state of the temperature control process of the PLC lower computer; judging whether the temperature control state is a preset abnormal state or not; and when the temperature control state is a preset abnormal state, closing the PLC lower computer, and carrying out abnormal early warning based on the temperature control state.
The preset abnormal state is data set in advance in the PID control device to determine whether the temperature control state is abnormal, for example, temperature control abnormality during the tuning period or the temperature control period.
In a specific implementation, the PID control equipment can acquire the temperature control state of the temperature control process of the PLC lower computer; judging whether the temperature control state is a preset abnormal state or not; if abnormality occurs in the setting period or the temperature control period, the PLC lower computer is closed, and abnormality early warning is carried out based on the temperature control state. The user is then notified to check to ensure safety during PID temperature control.
The PID control device of the embodiment can write a register of the lower computer of the PLC according to the protocol, for example, 1S is accumulated once, the lower computer judges the register, and if 3S does not receive the heartbeat of the touch screen, the output needs to be closed, so that the safety is ensured. If the register is not changed in 3s, the communication is failed, and the PLC should immediately cut off the output of the execution quantity and perform corresponding reset actions. Thereby improving the communication safety between the PLC lower computer and the PID control equipment. Further, a target temperature (taking the temperature of 2/3 of the highest temperature to perform self-tuning) can be set first, and after a period of time, the linux display screen also has a percentage progress bar to display the self-tuning progress in real time. And automatically switching into PID temperature control after finishing self-tuning. After the self-tuning is finished, the target temperature can be changed to perform heating performance test, when the test result does not accord with the preset expected value, PID parameters are updated, the step of performing PID temperature control tuning based on the preset self-tuning temperature is performed according to the PID parameters until the test result accords with the preset expected value, and the updating PID parameters are clicked to perform parameter preservation. Therefore, the accuracy of PID temperature control self-tuning can be improved through updating the PID parameters. Furthermore, the PID control equipment can also acquire the temperature control state of the temperature control process of the PLC lower computer; judging whether the temperature control state is a preset abnormal state or not; if abnormality occurs in the setting period or the temperature control period, the PLC lower computer is closed, and abnormality early warning is carried out based on the temperature control state. The user is then notified to check to ensure safety during PID temperature control.
In addition, the embodiment of the invention also provides a storage medium, wherein a PID control program is stored on the storage medium, and the PID control program realizes the steps of the PID control method when being executed by a processor.
Referring to fig. 6, fig. 6 is a block diagram showing the structure of a first embodiment of the PID control device of the present invention.
As shown in fig. 6, a PID control device according to an embodiment of the present invention includes:
the data acquisition module 601 is used for acquiring field feedback data of the PLC lower computer;
the PID operation module 602 is configured to perform PID operation on the field feedback data, so as to obtain a temperature control execution amount corresponding to the field feedback data;
and the temperature control module 603 is configured to perform temperature control on the PLC lower computer based on the temperature control execution amount.
In the embodiment, the PID control equipment acquires real-time temperature measured values as field feedback data through a temperature sensor connected with a PLC lower computer. Such field feedback data may be used to determine whether the current temperature meets a preset value and adjust the control output as needed. And then PID operation can be performed according to a desired temperature set value input by a user based on a linux display screen and a temperature feedback value in actual field feedback data through a preset temperature control formula, so that the temperature control execution amount corresponding to the field feedback data is obtained. And then, according to the temperature control execution amount, adjusting the working state of the connecting equipment of the PLC lower computer so as to enable the system temperature to be close to a set value. Therefore, the temperature or the change of the measured object and the output quantity can be intuitively displayed through the linux display screen, and a friendly man-machine interaction interface is provided, so that the application of PID control is simpler and more foolproof to operate. Because the embodiment can carry out PID operation on the data through the preset temperature control formula on the linux display screen when the field feedback data of the PLC lower computer is acquired, the temperature control of the PLC lower computer is rapidly completed, the situation that the traditional PID control parameters are numerous and the parameter table is generally required to be consulted when debugging personnel modify the parameters is avoided, the PID control can be separated from specific hardware through friendly man-machine interaction of the linux display screen, the method is simpler, and the efficiency of the PID control is improved.
Based on the above-described first embodiment of the PID control device of the present invention, a second embodiment of the PID control device of the present invention is proposed.
In this embodiment, the PID control device further includes a register module 604, configured to obtain a register address of a register of the PLC lower computer; writing a communication signal into the register according to the register address and a preset frequency; and the PLC lower computer judges the writing state of the register according to a preset time interval, judges the communication signal fault when the writing state is unchanged, and cuts off the output control of the linux display screen.
Further, the register module 604 is further configured to configure a register mapping table, where the register mapping table includes a mapping relationship between a register address of the PLC lower computer and a register address of the linux display screen; the temperature control module 603 is further configured to send the temperature control execution amount to a register of the PLC lower computer through the register mapping table, so that the PLC lower computer performs temperature control based on the temperature control execution amount.
Further, the PID control device further comprises a temperature setting module 605, configured to obtain a preset self-setting temperature, where the preset self-setting temperature is two-thirds between a normal temperature and a highest temperature; PID temperature control setting is carried out based on the preset self-setting temperature, a temperature setting curve is obtained, and the temperature setting curve represents the relation between the preset self-setting temperature and the current temperature along with the time; and when the PID temperature control setting is finished, executing the step of collecting the field feedback data of the PLC lower computer according to the temperature setting curve.
Further, the temperature setting module 605 is further configured to update the preset self-setting temperature to obtain a target updated temperature; performing heating performance test according to the target updated temperature and the temperature setting curve to obtain a test result; judging whether the test result accords with a preset expected value or not; and when the test result does not accord with the preset expected value, updating the PID parameter, and executing the step of PID temperature control setting based on the preset self-setting temperature according to the PID parameter until the test result accords with the preset expected value, and ending PID temperature control setting.
Further, the PID control device further includes an anomaly early warning module 605, configured to obtain a temperature control state of the PLC lower computer temperature control process; judging whether the temperature control state is a preset abnormal state or not; and when the temperature control state is a preset abnormal state, closing the PLC lower computer, and carrying out abnormal early warning based on the temperature control state.
Further, the PID operation module 602 is further configured to perform PID operation on the field feedback data through a preset temperature control formula, so as to obtain a temperature control execution amount corresponding to the field feedback data; the preset temperature control formula is as follows: temperature control execution amount=proportional coefficient error value+ (integral coefficient error value) -differential coefficient (current temperature value-previous temperature value); the proportional coefficient, the integral coefficient and the differential coefficient are custom coefficients of the PLC lower computer, the error value is a specification error of the PLC lower computer, the current temperature value is a temperature value corresponding to field feedback data acquired by the PLC lower computer, and the previous temperature value is a temperature value corresponding to the field feedback data acquired last time by the PLC lower computer.
Other embodiments or specific implementations of the PID control device of the present invention can refer to the above method embodiments, and are not described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. read-only memory/random-access memory, magnetic disk, optical disk), comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. The PID control method is characterized by being applied to a linux display screen, and comprises the following steps:
collecting field feedback data of a PLC lower computer;
PID operation is carried out on the field feedback data, and a temperature control execution amount corresponding to the field feedback data is obtained;
and controlling the temperature of the PLC lower computer based on the temperature control execution amount.
2. The PID control method according to claim 1, further comprising, after the temperature control of the PLC lower computer based on the temperature control execution amount:
acquiring a register address of a register of the PLC lower computer;
writing a communication signal into the register according to the register address and a preset frequency;
and the PLC lower computer judges the writing state of the register according to a preset time interval, judges the communication signal fault when the writing state is unchanged, and cuts off the output control of the linux display screen.
3. The PID control method as claimed in claim 1, further comprising, prior to the step of collecting the field feedback data of the PLC lower computer:
configuring a register mapping relation table, wherein the register mapping relation table comprises a mapping relation between a register address of a PLC lower computer and a register address of the linux display screen;
the temperature control of the PLC lower computer based on the temperature control execution amount comprises the following steps:
and sending the temperature control execution amount to a register of the PLC lower computer through the register mapping relation table so that the PLC lower computer performs temperature control based on the temperature control execution amount.
4. The PID control method as claimed in claim 1, further comprising, prior to the step of collecting the field feedback data of the PLC lower computer:
acquiring a preset self-setting temperature which is two thirds of the normal temperature to the highest temperature;
PID temperature control setting is carried out based on the preset self-setting temperature, a temperature setting curve is obtained, and the temperature setting curve represents the relation between the preset self-setting temperature and the current temperature along with the time;
and when the PID temperature control setting is finished, executing the step of collecting the field feedback data of the PLC lower computer according to the temperature setting curve.
5. The PID control method according to claim 4, wherein the PID temperature control tuning based on the preset self-tuning temperature, after obtaining a temperature tuning curve, further comprises:
updating the preset self-setting temperature to obtain a target updated temperature;
performing heating performance test according to the target updated temperature and the temperature setting curve to obtain a test result;
judging whether the test result accords with a preset expected value or not;
and when the test result does not accord with the preset expected value, updating the PID parameter, and executing the step of PID temperature control setting based on the preset self-setting temperature according to the PID parameter until the test result accords with the preset expected value, and ending PID temperature control setting.
6. The PID control method according to claim 1, further comprising, after the temperature control of the PLC lower computer based on the temperature control execution amount:
acquiring a temperature control state of the temperature control process of the PLC lower computer;
judging whether the temperature control state is a preset abnormal state or not;
and when the temperature control state is a preset abnormal state, closing the PLC lower computer, and carrying out abnormal early warning based on the temperature control state.
7. The PID control method according to any one of claims 1 to 6, wherein the performing PID operation on the field feedback data to obtain a temperature control execution amount corresponding to the field feedback data includes:
PID operation is carried out on the field feedback data through a preset temperature control formula, and a temperature control execution amount corresponding to the field feedback data is obtained;
the preset temperature control formula is as follows: temperature control execution amount=proportional coefficient error value+ (integral coefficient error value) -differential coefficient (current temperature value-previous temperature value);
the proportional coefficient, the integral coefficient and the differential coefficient are custom coefficients of the PLC lower computer, the error value is a specification error of the PLC lower computer, the current temperature value is a temperature value corresponding to field feedback data acquired by the PLC lower computer, and the previous temperature value is a temperature value corresponding to the field feedback data acquired last time by the PLC lower computer.
8. A PID control device, characterized in that the device comprises:
the data acquisition module is used for acquiring field feedback data of the PLC lower computer;
the PID operation module is used for performing PID operation on the field feedback data to obtain temperature control execution quantity corresponding to the field feedback data;
and the temperature control module is used for controlling the temperature of the PLC lower computer based on the temperature control execution amount.
9. A PID control apparatus, characterized in that the apparatus comprises: memory, a processor and a PID control program stored on the memory and executable on the processor, the PID control program being configured to implement the steps of the PID control method as claimed in any of claims 1 to 7.
10. A storage medium having stored thereon a PID control program which, when executed by a processor, implements the steps of the PID control method according to any of claims 1 to 7.
CN202311545197.2A 2023-11-17 2023-11-17 PID control method, device, equipment and storage medium Pending CN117687293A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311545197.2A CN117687293A (en) 2023-11-17 2023-11-17 PID control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311545197.2A CN117687293A (en) 2023-11-17 2023-11-17 PID control method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117687293A true CN117687293A (en) 2024-03-12

Family

ID=90138062

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311545197.2A Pending CN117687293A (en) 2023-11-17 2023-11-17 PID control method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117687293A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101726034A (en) * 2009-12-15 2010-06-09 青岛福润德自动化技术有限公司 Electromagnetic temperature-control heat supply system
CN103616845A (en) * 2013-11-27 2014-03-05 深圳市亿维自动化技术有限公司 PID controller, parameter self-tuning extension module and implementation method thereof
CN110456839A (en) * 2019-08-27 2019-11-15 昌龙兴科技(深圳)有限公司 A kind of intelligent temperature control system based on PID
CN114816267A (en) * 2022-05-31 2022-07-29 苏州浪潮智能科技有限公司 Monitoring method and system for storage equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101726034A (en) * 2009-12-15 2010-06-09 青岛福润德自动化技术有限公司 Electromagnetic temperature-control heat supply system
CN103616845A (en) * 2013-11-27 2014-03-05 深圳市亿维自动化技术有限公司 PID controller, parameter self-tuning extension module and implementation method thereof
CN110456839A (en) * 2019-08-27 2019-11-15 昌龙兴科技(深圳)有限公司 A kind of intelligent temperature control system based on PID
CN114816267A (en) * 2022-05-31 2022-07-29 苏州浪潮智能科技有限公司 Monitoring method and system for storage equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
朱海锋, 杨智, 张名宙: "仪用PID参数自整定控制器设计与应用", 自动化仪表, no. 07, 20 July 2005 (2005-07-20) *
李建海: "数字 PID 控制器在温度控制系统中的应用", 电子测量技术, vol. 32, no. 4, 15 April 2009 (2009-04-15), pages 100 - 103 *

Similar Documents

Publication Publication Date Title
JP6904639B2 (en) Background collection of diagnostic data from field instrumentation
CA2662877C (en) System and method for functionalization in line with demand, for control and regulatory devices
EP2889707B1 (en) Control device and communication control method
CN103842919A (en) Integrated linear/non-linear hybrid process controller
US20210116899A1 (en) Parameterization of a component in an automation system
JP5895906B2 (en) Process control device and system, and soundness determination method thereof
US8676359B2 (en) Field device management apparatus and computer program
EP3042254A1 (en) Systems and methods for virtualizing a programmable logic controller
JP5024624B2 (en) Field device management apparatus, field device management system, field device management method, computer program, recording medium
KR101038694B1 (en) Digital indicating controller
US20170225335A1 (en) Processing robot system in which processing device is connected to robot to perform processing
EP2813909B1 (en) On-demand device templates for integrating devices in a processing facility
US6760630B2 (en) Method and implementation of process control
US12008072B2 (en) Control system and control method
CN117687293A (en) PID control method, device, equipment and storage medium
CN109425076A (en) Adjusting method, device and the storage medium of air regulator
US9052934B2 (en) Remote command interpreter
EP3416004A1 (en) Device management apparatus, device management method, device management program, and non-transitory computer readable storage medium
CN113238995A (en) Calibration data updating method, storage medium and electronic equipment
JP6176341B2 (en) Process control device and system, and soundness determination method thereof
JP6067431B2 (en) Information management server, plant test method
WO2016087149A1 (en) Method for overwriting a non-volatile memory of a field device
JP2003131709A (en) Control display system, control program and recording medium storing the program
US11311639B2 (en) Method and apparatus for controlling sterilization chambers
Bernhard et al. Smart Transducers in Distributed and Model-Driven Control Applications: Empowering Seamless Internet of Things Integration

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination