Dead zone control method, computer equipment and storage medium based on control system

By writing and reading communication data in the PID control system and adjusting the control system according to the absolute value of the measured value deviation, the problem of frequent oscillation of the PID control system is solved, and the system's steady-state and fast response effects are achieved.

CN117784587BActive Publication Date: 2024-11-12BEIJING BAILINGTIANDI ENVIRONMENTAL PROTECTION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311800990.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-26
Publication Date
2024-11-12
Estimated Expiration
2043-12-26

AI Technical Summary

Technical Problem

The PID control system is prone to frequent oscillations when the measured value changes, and cannot effectively maintain the system steady state.

Method used

By writing and reading communication data in the target control system, communication writing and receiving information are generated, and after confirming that the data transmission is successful, proportional integral differential measurement value is collected. If the absolute deviation value is in the dead zone and exceeds the set time, the Adjust; If the absolute deviation value is not in the dead zone, activate adjustment until it re-enters the dead zone.

Benefits of technology

It realizes the system steady state when the measured value is stable, avoids frequent oscillations, and quickly pulls back to the dead zone when the measured value changes, ensuring that the target value is reached, and at the same time improves the communication confirmation efficiency and system automation operation capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117784587B_ABST
    Figure CN117784587B_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure disclose a dead zone control method, a computer device and a storage medium based on a control system. A specific implementation of the method includes: in response to determining that the communication data is successfully sent to the target control system, collecting the current proportional integral differential measurement value of the above target control system, and determining the absolute value of the deviation between the above proportional integral differential measurement value and the target measurement value; in response to determining that the above deviation absolute value is within the dead zone and exceeds the set time, pausing the proportional integral differential adjustment of the above target control system; in response to determining that the above deviation absolute value is not within the dead zone, activating the output value of the above target control system for adjustment until the above target control system re-enters the dead zone. This implementation method pulls the measured value back into the dead zone in a short time, thereby achieving both the measured value reaching the target value and avoiding frequent oscillations of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computers, and in particular to a dead zone control method based on a control system, a computer device, and a storage medium. Background Art

[0002] PID control, also known as proportional integral differential control, is the most classic control algorithm for control systems. It can quickly and stably achieve the target adjustment of the controlled quantity. Its application scope covers almost all occasions that require steady-state control. It is widely used in the automation control of various equipment and production lines. It is a great invention of mankind. However, there is also a problem with the PID system. The measured value is a changing value. When the measured value keeps changing, there will be a deviation between the measured value and the target value. The PID system will continue to adjust, resulting in frequent and repeated oscillations of the system. Summary of the invention

[0003] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.

[0004] Some embodiments of the present disclosure propose a dead zone control method based on a control system, a computer device, and a computer-readable storage medium to solve the technical problems mentioned in the above background technology section.

[0005] In a first aspect, some embodiments of the present disclosure provide a dead zone control method based on a control system, the method comprising: writing communication data to a communication gateway provided by a target control system to send it to the target control system, wherein the communication address of the communication data comprises the address of the sending end and the address of the target control system; in response to determining that the communication data is successfully written, generating communication write information corresponding to the communication data; in response to reading communication feedback data from the communication gateway, generating communication reception information according to the communication feedback data; determining whether the communication data is successfully sent to the target control system through the communication write information and the communication reception information; in response to determining that the communication data is successfully sent to the target control system, collecting the current proportional integral differential measurement value of the target control system, and determining the absolute value of the deviation between the proportional integral differential measurement value and the target measurement value; in response to determining that the absolute value of the deviation is within the dead zone and exceeds a set time, suspending the proportional integral differential adjustment of the target control system; in response to determining that the absolute value of the deviation is not within the dead zone, activating the output value of the target control system for adjustment until the target control system re-enters the dead zone.

[0006] In a second aspect, the present disclosure further provides a computer device, comprising a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the method described in any implementation of the first aspect is implemented.

[0007] In a third aspect, the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, wherein when the computer program is executed by a processor, the method described in any implementation manner of the first aspect is implemented.

[0008] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the dead zone control method based on the control system of some embodiments of the present disclosure, first, write communication data to the communication gateway provided by the target control system to send it to the above-mentioned target control system. Among them, the communication address of the above-mentioned communication data includes the address of the sending end and the address of the target control system. Secondly, in response to determining that the above-mentioned communication data is successfully written, generate communication write information corresponding to the above-mentioned communication data. Then, in response to reading the communication feedback data from the above-mentioned communication gateway, generate communication reception information according to the above-mentioned communication feedback data; through the above-mentioned communication write information and the above-mentioned communication reception information, determine whether the above-mentioned communication data is successfully sent to the above-mentioned target control system. Thus, the existing communication method is improved. When sending information to the control system, the sending end can copy a copy of the same information to itself. The communication information is obtained by processing the communication write content, and the reception information is obtained by processing the communication reception content. Then, the write information and the reception information can be compared in an asynchronous manner. Successful comparison indicates successful communication. The efficiency and timeliness of confirmation are improved, and the system automation operation capability and efficiency are also improved. Afterwards, in response to determining that the above communication data is successfully sent to the above target control system, the current proportional integral differential measurement value of the above target control system is collected, and the absolute value of the deviation between the above proportional integral differential measurement value and the target measurement value is determined; in response to determining that the above deviation absolute value is within the dead zone and exceeds the set time, the proportional integral differential adjustment of the above target control system is suspended. Finally, in response to determining that the above deviation absolute value is not within the dead zone, the output value of the above target control system is activated for adjustment until the above target control system re-enters the dead zone. Therefore, when the system is performing PID adjustment, if the measured value is stable, the system remains in a steady state and the PID adjustment does not take effect. If the measured value changes with the working conditions and exceeds the dead zone range, the PID adjustment takes effect and pulls the measured value back into the dead zone in a short time, thereby achieving the measured value reaching the target value and avoiding frequent oscillations of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.

[0010] Figure 1 is a flow chart of some embodiments of a dead zone control method based on a control system according to the present disclosure;

[0011] Figure 2 It is a schematic block diagram of the structure of a computer device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0012] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0013] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.

[0014] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0015] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0016] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0017] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0018] Figure 1 1 is a flow chart of some embodiments of the dead zone control method based on the control system according to the present disclosure. 100 of some embodiments of the dead zone control method based on the control system according to the present disclosure is shown. The dead zone control method based on the control system comprises the following steps:

[0019] Step 101, writing communication data to a communication gateway provided by a target control system, so as to send the communication data to the target control system.

[0020] In some embodiments, the execution subject (e.g., the sending end) of the dead zone control method based on the control system can write communication data to the communication gateway provided by the target control system to send it to the above-mentioned target control system. Among them, the communication address of the above-mentioned communication data includes the address of the sending end and the address of the target control system. The sending end can be a computing device, that is, the above-mentioned execution subject. The communication gateway is usually a professional application software or platform for sending and receiving communication data provided by the target control system. The communication gateway can be installed on the execution subject, or it can also be installed on other devices connected to the execution subject. As an example, the execution subject can communicate with the communication gateway through the intranet. And the target control system can communicate with the communication gateway through a dedicated communication line. The target control system can refer to a PID control system. For example, the target control system can refer to a PLC controller. For example, when the execution subject needs to send a telegram to the target control system, the execution subject can write communication data to the communication gateway provided by the target control system through the communication service. The communication service on the execution subject and the communication gateway can be connected using a network protocol. For example, the communication service can configure the FTP read and write permissions connected to the communication gateway, so that the communication data can be written to the communication directory specified by the communication gateway. The communication gateway also needs to enable the FTP service function to allow external services to read and write the specified communication write and receive directories. The address of the sender can refer to the IP address. The address of the target control system can refer to the IP address of the control system.

[0021] Step 102: In response to determining that the communication data is written successfully, generate communication writing information corresponding to the communication data.

[0022] In some embodiments, the execution subject may generate communication write information corresponding to the communication data in response to determining that the communication data is written successfully. Because the execution subject is connected to the communication gateway via an intranet, it is possible to know whether the communication data is written successfully into the communication gateway. For example, the communication data may be converted by a digest algorithm to obtain the communication write information. The digest algorithm may be an MD5 digest algorithm. That is, the communication data may be converted into digest data by a digest algorithm to obtain the communication write information.

[0023] Step 103: In response to reading the communication feedback data from the communication gateway, generate communication reception information according to the communication feedback data.

[0024] In some embodiments, the execution subject may generate communication reception information in response to the communication feedback data read from the communication gateway. The receiving service in the execution subject may also periodically read the communication feedback content from the receiving directory of the classmate gateway to obtain the communication feedback data. It is understandable that the communication content in the communication data is usually the communication feedback content in the communication feedback data of the target control system. For example, the communication feedback data is transformed and processed by a digest algorithm to obtain the communication reception information. The digest algorithm may be an MD5 digest algorithm.

[0025] Step 104, determining whether the communication data is successfully sent to the target control system through the communication write information and the communication receive information.

[0026] In some embodiments, the execution subject can determine whether the communication data is successfully sent to the target control system through the communication write information and the communication receive information. The communication write information can be compared with the communication receive information. For example, the Jaccard similarity coefficient can be used to determine whether the communication write information matches the communication receive information. If the coefficient is greater than or equal to a preset threshold, it can be said that the two pieces of information match, indicating that the received data is sent successfully.

[0027] In an actual application scenario, the execution subject can determine whether the communication data is successfully sent to the target control system through the following steps:

[0028] First, in response to determining to execute the task of confirming the message status, a time point in the local database is obtained. The initial value of the time point can be the writing time of the earliest communication write information sent in the local database. The initial value is usually the first time point after the communication write information is stored for the first time, or after the data is reset. When determining to execute the task of confirming the message status, if the set time is reached, the time point in the local database can be obtained.

[0029] Second, select alternative communication write information and alternative communication receive information from the local database through the acquired time point. The above-mentioned alternative communication write information is: the communication write information whose write time is greater than or equal to the above-mentioned time point and whose status is to be confirmed, and the above-mentioned alternative communication receive information is: the communication receive information whose receive time is greater than or equal to the above-mentioned time point. There is usually a certain time sequence between the communication data and the receive data. And the receive time of the receive data is usually later than the write time of the communication data.

[0030] Third, the candidate communication writing information is matched with the candidate communication receiving information to obtain a matching result.

[0031] Fourth, according to the matching result, the state of the alternative communication writing information is switched. First, in response to determining that the matching result indicates a successful match, the state of the alternative communication writing information is switched to a confirmed successful state. Then, in response to determining that the matching result indicates a failed match and the task execution time reaches a set time, the state of the alternative communication writing information is switched to a confirmed failed state.

[0032] For example, if it is determined that the match fails and the task execution time does not reach the set time, no processing is required. If it is determined that the match fails and the task execution time reaches the set time, the status of the alternative communication writing information can be adjusted to confirmation failure. The set time is usually the maximum receiving time, which represents the maximum time that the telegram data can be received, and can be in minutes.

[0033] Furthermore, the communication writing information and the communication receiving information are stored in a local database, and the state of the communication writing information is set to a pending confirmation state.

[0034] In some embodiments, the execution entity may store the communication writing information and the communication receiving information in a local database, and set the status of the communication writing information to a pending confirmation status.

[0035] Furthermore, the time point of the local database is determined by the sending time of the information written by the above communication.

[0036] In some embodiments, the execution subject can determine the time point of the local database by the time when the communication write information is sent. The initial value of the time point is the time when the communication write information is sent earliest in the local database. The time point can be used for information query, especially the communication write information to be confirmed. The initial value of the time point can be the time when the communication write information is sent earliest in the local database. The initial value is usually the first time point when the communication write information is stored for the first time, or after the data is reset (such as empty).

[0037] Furthermore, based on the adjusted state of the candidate communication writing information, the time point of the local database is updated.

[0038] In some embodiments, the above-mentioned execution entity can update the time point of the local database based on the status of the adjusted alternative communication write information. For example, the write time of the alternative communication write information with the status of successful confirmation and the latest write time is updated to the time point of the local database. For another example, the write time of the alternative communication write information with the status of failed confirmation and the earliest write time is updated to the time point of the local database. If all alternative communication write information are confirmed successfully, the write time of the latest alternative communication write information can be updated to the time point. If there is information that fails to match in the alternative communication write information, the write time of the earliest alternative communication write information that fails to match can be updated to the time point. It can be understood that the above-mentioned time point, set duration and other parameters can be set by yourself, such as being configured in nacos (a service registration center, configuration center).

[0039] Step 105, in response to determining that the communication data is successfully sent to the target control system, collecting the current proportional-integral-differential measurement value of the target control system, and determining the absolute value of the deviation between the proportional-integral-differential measurement value and the target measurement value.

[0040] In some embodiments, the execution subject may, in response to determining that the communication data is successfully sent to the target control system, collect the current proportional-integral-differential measurement value of the target control system, and determine the absolute value of the deviation between the proportional-integral-differential measurement value and the target measurement value. The proportional-integral-differential measurement value may refer to the PID measurement value of the target control system. The target measurement value may refer to a pre-set characterizing PID value.

[0041] Step 106 , in response to determining that the absolute value of the deviation is within the dead zone and exceeds a set time, suspending proportional-integral-derivative adjustment of the target control system.

[0042] In some embodiments, the execution subject may suspend the proportional integral derivative adjustment of the target control system in response to determining that the absolute value of the deviation is within the dead zone and exceeds the set time. That is, if the absolute value of the deviation is within the dead zone and exceeds the set time, it is considered valid within the dead zone, and the output value of the PID is fixed and no action is taken. The dead zone may refer to the input signal range in the transfer function of the target control system where the corresponding output is zero.

[0043] Step 107 , in response to determining that the absolute value of the deviation is not within the dead zone, activating the output value of the target control system for adjustment until the target control system re-enters the dead zone.

[0044] In some embodiments, the execution subject may, in response to determining that the absolute value of the deviation is not within the dead zone, activate the output value of the target control system for adjustment until the target control system re-enters the dead zone. If the absolute value of the deviation is outside the dead zone and exceeds a set time, it is considered that the dead zone is valid, and the output value of the PID is activated for adjustment until the system re-enters the dead zone.

[0045] Therefore, when the system is performing PID adjustment, if the measured value is stable, the system remains in a steady state and PID adjustment does not take effect. If the measured value changes with the operating conditions and exceeds the dead zone, PID adjustment takes effect and pulls the measured value back into the dead zone in a short time, thereby achieving the target value and avoiding frequent system oscillations.

[0046] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: through the dead zone control method based on the control system of some embodiments of the present disclosure, the existing communication method is improved. When sending information to the control system, the sending end can copy a copy of the same information to itself. The communication information is obtained by processing the communication written content, and the received communication content is processed to obtain the received information. Then, the written information and the received information can be compared in an asynchronous manner. A successful comparison indicates that the communication is successful. The efficiency and timeliness of confirmation are improved, and the system's automated operation capability and efficiency are also improved. In addition, when the system is performing PID adjustment, if the measured value is stable, the system remains in a steady state and the PID adjustment does not take effect. If the measured value changes with the working conditions and exceeds the dead zone range, the PID adjustment takes effect and pulls the measured value back into the dead zone in a short time, thereby achieving the measured value reaching the target value and avoiding frequent oscillations of the system.

[0047] Figure 2 A schematic block diagram of the structure of a computer device provided in an embodiment of the present disclosure. The computer device may be a terminal.

[0048] like Figure 2 As shown, the computer device includes a processor, a memory, and a network interface connected via a system bus, wherein the memory may include a non-volatile storage medium and an internal memory.

[0049] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any dead zone control method based on the control system.

[0050] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.

[0051] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute any dead zone control method based on the control system.

[0052] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will understand that Figure 2 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present disclosure, and does not constitute a limitation on the computer device to which the scheme of the present disclosure is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0053] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0054] In one embodiment, the processor is used to run a computer program stored in a memory to implement the following steps: writing communication data to a communication gateway provided by a target control system to send it to the target control system, wherein the communication address of the communication data includes the address of the sending end and the address of the target control system; in response to determining that the communication data is successfully written, generating communication write information corresponding to the communication data; in response to reading communication feedback data from the communication gateway, generating communication reception information according to the communication feedback data; determining whether the communication data is successfully sent to the target control system through the communication write information and the communication reception information; in response to determining that the communication data is successfully sent to the target control system, collecting the current proportional-integral-differential measurement value of the target control system, and determining the absolute value of the deviation between the proportional-integral-differential measurement value and the target measurement value; in response to determining that the absolute value of the deviation is within the dead zone and exceeds the set time, suspending the proportional-integral-differential adjustment of the target control system; in response to determining that the absolute value of the deviation is not within the dead zone, activating the output value of the target control system for adjustment until the target control system re-enters the dead zone.

[0055] An embodiment of the present disclosure also provides a computer-readable storage medium, on which a computer program is stored. The computer program includes program instructions. The method implemented when the program instructions are executed can refer to the various embodiments of the dead zone control method based on the control system of the present disclosure.

[0056] The computer-readable storage medium may be an internal storage unit of the computer device in the aforementioned embodiment, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (SmartMediaCard, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc., provided on the computer device.

[0057] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system 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 system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0058] The serial numbers of the embodiments of the present disclosure are only for description and do not represent the advantages and disadvantages of the embodiments. The above are only specific implementation methods of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present disclosure, and these modifications or replacements should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be based on the protection scope of the claims.

Claims

1. A dead zone control method based on a control system, It is characterized in that The method comprises: Writing communication data to a communication gateway provided by a target control system to send to the target control system, wherein the communication address of the communication data includes an address of a sending end and an address of the target control system; In response to determining that the communication data is written successfully, generating communication writing information corresponding to the communication data; In response to reading communication feedback data from the communication gateway, generating communication reception information according to the communication feedback data; Determining whether the communication data is successfully sent to the target control system through the communication writing information and the communication receiving information; In response to determining that the communication data is successfully sent to the target control system, collecting a current proportional-integral-differential measurement value of the target control system, and determining an absolute value of a deviation between the proportional-integral-differential measurement value and a target measurement value; In response to determining that the absolute value of the deviation is within the dead band and exceeds a set time, suspending proportional-integral-derivative adjustment of the target control system; In response to determining that the absolute value of the deviation is not within the dead band, activating the output value of the target control system to adjust until the target control system re-enters the dead band; storing the communication writing information and the communication receiving information in a local database, and setting the state of the communication writing information to a pending confirmation state; Determine the time point of the local database by the time when the communication write information is sent, wherein the initial value of the time point is the time when the communication write information is sent earliest in the local database; Wherein, determining whether the communication data is successfully sent to the target control system through the communication writing information and the communication receiving information includes: In response to determining to execute the message status confirmation task, obtaining a time point in a local database; Selecting candidate communication writing information and candidate communication receiving information from the local database through the acquired time point, wherein the candidate communication writing information is: communication writing information whose writing time is greater than or equal to the time point and whose status is to be confirmed, and the candidate communication receiving information is: communication receiving information whose receiving time is greater than or equal to the time point; Matching the candidate communication written information with the candidate communication received information to obtain a matching result; According to the matching result, switching the state of the alternative communication writing information; Wherein, switching the state of the candidate communication writing information according to the matching result includes: In response to determining that the matching result indicates a successful match, switching the state of the candidate communication writing information to a confirmed success state; In response to determining that the matching result indicates a matching failure and the task execution time reaches a set time, switching the state of the alternative communication writing information to a confirmation failure state; Based on the adjusted state of the alternative communication writing information, updating the time point of the local database; The updating of the time point of the local database based on the adjusted state of the candidate communication writing information includes: Update the writing time of the candidate communication writing information with the status of successful confirmation and the latest writing time as the time point of the local database; or The write time of the candidate communication write information with the status of failed confirmation and the earliest write time is updated as the time point of the local database.

2. The method according to claim 1, It is characterized in that The generating of communication writing information corresponding to the communication data includes: The communication data is transformed and processed by a digest algorithm to obtain communication writing information.

3. The method according to claim 1, It is characterized in that The generating communication reception information according to the communication feedback data comprises: The communication feedback data is transformed and processed by a summary algorithm to obtain communication reception information.

4. A computer device, in, The computer device comprises a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of the method according to any one of claims 1 to 3 are implemented.

5. A computer-readable storage medium, in, The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.