A method and system for adjusting the transmission and reception of data by a PLC controller

By acquiring and automating the status determination of the input and output data of the PLC controller in real time, the shortcomings of traditional PLC controllers in data acquisition and control status determination are solved, achieving precise control and optimization, and improving the accuracy and stability of the system.

CN118672202BActive Publication Date: 2026-03-17HARBIN YULONG AUTOMATION
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2026-03-17

AI Technical Summary

Technical Problem

Traditional PLC controllers lack real-time performance and accuracy in input/output data acquisition, processing, and control status determination, making it difficult to achieve precise control and optimization.

Method used

By acquiring the input and output data of the PLC controller in real time, calculating the expected output value and comparing it with the actual output data, performing status determination, and adjusting the output based on the determination result, the data mapping relationship is established using the I/O mapping table to realize automated control status determination and output adjustment.

Benefits of technology

It improves the accuracy and stability of the PLC control system, enhances the system's adaptability and robustness, reduces the need for manual intervention, and lowers maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118672202B_ABST
    Figure CN118672202B_ABST
Patent Text Reader

Abstract

This invention proposes a PLC controller data transmission and reception adjustment method and system, relating to the field of data transmission and reception technology; it solves problems such as adaptive adjustment of controller output data; the transmission and reception adjustment method and system includes calculating the expected output value of the acquired PLC control data, comparing the output data of the PLC control data with the expected output range, and then determining the control state of the PLC control data; calculating the output adjustment rate of the PLC control data corresponding to the unqualified control state in the state determination result; adjusting the output data; comparing the adjusted output data with the expected output range; and then determining whether to re-adjust the output data; the transmission and reception adjustment method and system are used for PLC controller data transmission and reception adjustment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention proposes a PLC controller data transmission and control method and system, which relates to the field of data transmission and control technology. Background Technology

[0002] In the field of industrial automation, PLCs (Programmable Logic Controllers) are widely used as core control devices in various production processes. PLCs achieve efficient and stable operation of production equipment through their powerful logic processing capabilities and precise control functions. However, with the continuous improvement of production automation levels, the performance requirements for PLC controllers are becoming increasingly stringent. Especially in the areas of input / output data acquisition, processing, and control status determination, more precise and efficient technical means are needed. Traditional PLC controller input / output data acquisition methods largely rely on hardware interfaces and communication protocols. While these methods can achieve basic data transmission functions, they are insufficient in terms of real-time data acquisition, accuracy, and data processing capabilities. Furthermore, the adjustment and control of PLC control output data often relies on manual settings and adjustments, making it difficult to achieve precise control and optimization of the control data. Summary of the Invention

[0003] This invention provides a PLC controller data transmission and reception adjustment method and system to solve problems such as adaptive adjustment of controller output data:

[0004] This invention proposes a PLC controller data transmission and control method and system, the method comprising:

[0005] S1; Collect the input and output data of the PLC controller, calculate the expected output value of the collected PLC control data, compare the output data of the PLC control data with the expected output range, and then determine the control state of the PLC control data to obtain the state determination result.

[0006] S2; Calculate the output adjustment rate of the PLC control data corresponding to the unqualified control state in the state judgment result, adjust the output data, compare the adjusted output data with the expected output range, and then determine whether to readjust the output data.

[0007] Further, S1 includes:

[0008] The input and output data of the PLC controller are acquired according to the preset data acquisition sequence to form PLC control data;

[0009] The PLC control data is preprocessed to obtain preprocessed PLC control data;

[0010] Obtain the I / O mapping table of the PLC controller, and establish the mapping relationship between the input data and output data of the PLC control data through the I / O mapping table;

[0011] Based on the information of the mapping relationship, the control status of the PLC control data is determined, and the status determination result is obtained.

[0012] Further, the step of determining the control state of the PLC control data based on the mapping relationship information to obtain the state determination result includes:

[0013] The expected output value is calculated based on historical data and current data from the PLC control data, and the expected output range is determined based on the expected output value.

[0014] The output data of the PLC control data in the current data is compared with the expected output range to obtain the first comparison result;

[0015] Based on the first comparison result, the control status of the PLC control data is determined to obtain the status determination result.

[0016] Furthermore, the expected output value includes:

[0017] The formula for calculating the expected output value is as follows:

[0018] in, To output the expected value, The maximum output data is the historical data. The minimum output data for historical data. for The corresponding input data, for The corresponding input data.

[0019] Further, determining the output expectation range based on the output expectation value includes:

[0020] Set 1.5 times the calculated expected output value as the upper limit of the output;

[0021] Set 0.5 times the calculated expected output value as the lower limit of the output;

[0022] The range between the upper and lower limits of the output is the expected output range.

[0023] Further, the step of determining the control status of the PLC control data based on the first comparison result to obtain the status determination result includes:

[0024] When the output data of the PLC control data in the current data is within the expected output range, the corresponding PLC control data is determined to be in a qualified control state.

[0025] When the output data of the PLC control data in the current data is outside the expected output range, the corresponding PLC control data will be judged as an unqualified control state.

[0026] The qualified control status and the unqualified control status are the status determination results.

[0027] Further, the output regulation rate of the PLC control data corresponding to the unqualified control state in the calculated state determination result is used to adjust the output data. The adjusted output data is then compared with the expected output range to determine whether to re-adjust the output data, including:

[0028] The output data of the PLC control data corresponding to the unqualified control state of the status judgment result is obtained;

[0029] Acquire real-time input data, calculate the output adjustment rate based on the real-time input data, output data, and output expected range, and adjust the output data according to the output adjustment rate to obtain adjusted output data;

[0030] The adjusted output data is compared with the expected output range to obtain a second comparison result. Based on the second comparison result, it is determined whether to readjust the output data.

[0031] Furthermore, the output regulation rate includes:

[0032] The formula for calculating the output regulation rate is:

[0033]

[0034] in, For output regulation rate, To output data in real time, To output the upper limit of the expected range, To output the lower limit of the expected range, when When it is a positive number, let When it is 0, When it is a positive number, let It is 0.

[0035] Further, the step of comparing the adjusted output data with the expected output range to obtain a second comparison result, and determining whether to readjust the output data based on the second comparison result, includes:

[0036] When the adjusted output data is within the desired output range, the readjustment of the output data is stopped.

[0037] When the adjusted output data is outside the desired output range, the output data is readjusted.

[0038] Furthermore, the system includes:

[0039] The control output status determination module is used to collect the input and output data of the PLC controller, calculate the expected output value of the collected PLC control data, compare the output data of the PLC control data with the expected output range, and then determine the control status of the PLC control data to obtain the status determination result.

[0040] The output judgment and adjustment module is used to calculate the output adjustment rate of the PLC control data corresponding to the unqualified control state in the state judgment result, adjust the output data, compare the adjusted output data with the expected output range, and then determine whether to readjust the output data.

[0041] The beneficial effects of this invention are as follows: By comparing and adjusting the expected output value of the PLC control data with the actual output data, the system can achieve precise control of the PLC controller output, thereby improving the accuracy and stability of the entire control system. Through the status judgment and output adjustment mechanism, the system can promptly detect and correct abnormal outputs in the PLC control data, preventing these abnormal outputs from causing further damage or malfunctions to the system. By continuously adjusting and optimizing the PLC controller's output data, the system can gradually adapt to changes in the working environment, improving the system's adaptability and robustness, thereby optimizing the overall system performance. The system adopts a real-time data acquisition and status judgment mechanism, which can monitor the PLC controller's working status in real time and adjust the output when necessary, thereby enhancing the system's reliability. Through automated control status judgment and output adjustment mechanisms, the system can reduce the need for manual intervention, lowering maintenance and labor costs. Attached Figure Description

[0042] Figure 1 This is a schematic diagram of a PLC controller data transmission and reception adjustment method. Detailed Implementation

[0043] The preferred embodiments of the present invention will be described below with reference to the accompanying drawings. It should be understood that the preferred embodiments described herein are for illustration and explanation only and are not intended to limit the present invention.

[0044] In one embodiment of the present invention, a PLC controller data transmission and control method and system are proposed, the method comprising:

[0045] S1; Collect the input and output data of the PLC controller, calculate the expected output value of the collected PLC control data, compare the output data of the PLC control data with the expected output range, and then determine the control state of the PLC control data to obtain the state determination result.

[0046] S2; Calculate the output adjustment rate of the PLC control data corresponding to the unqualified control state in the state judgment result, adjust the output data, compare the adjusted output data with the expected output range, and then determine whether to readjust the output data.

[0047] The working principle of the above technical solution is as follows: The system collects the input and output data of the PLC controller in real time. This data reflects the current working status of the PLC controller and its control effect on the external environment. The system calculates the expected output value of the collected PLC control data. This expected value represents the output value that the PLC control data should achieve under ideal conditions. The actual output data of the PLC control data is compared with the expected output range. If the output data is within the expected range, it is determined to be a qualified state; if it exceeds the expected range, it is determined to be an unqualified control state. The system records and outputs these state determination results. For unqualified control states in the state determination results, the system calculates the corresponding output regulation rate of the PLC control data. Based on the calculated output regulation rate, the system adjusts the output data of the PLC controller to make it approach or reach the expected output value.

[0048] The adjusted output data is then compared again with the expected output range. If the adjusted output data is within the expected range, the adjustment is considered successful and no further action is required; if it still exceeds the expected range, the adjustment is considered unsuccessful and the output data needs to be readjusted.

[0049] The technical effects of the above solution are as follows: By comparing and adjusting the expected output value of the PLC control data with the actual output data, the system can achieve precise control of the PLC controller output, thereby improving the accuracy and stability of the entire control system. Through the status judgment and output adjustment mechanism, the system can promptly detect and correct abnormal outputs in the PLC control data, preventing these abnormal outputs from causing further damage or malfunctions to the system. By continuously adjusting and optimizing the PLC controller output data, the system can gradually adapt to changes in the working environment, improving the system's adaptability and robustness, thereby optimizing the overall system performance. The system adopts a real-time data acquisition and status judgment mechanism, which can monitor the working status of the PLC controller in real time and adjust the output when necessary, thereby enhancing the system's reliability and dependability. Through automated control status judgment and output adjustment mechanisms, the system can reduce the need for manual intervention, lowering maintenance and labor costs.

[0050] In one embodiment of the present invention, S1 includes:

[0051] The input and output data of the PLC controller are acquired according to the preset data acquisition sequence to form PLC control data;

[0052] The PLC control data is preprocessed to obtain preprocessed PLC control data;

[0053] Obtain the I / O mapping table of the PLC controller, and establish the mapping relationship between the input data and output data of the PLC control data through the I / O mapping table;

[0054] Based on the information of the mapping relationship, the control status of the PLC control data is determined, and the status determination result is obtained.

[0055] The working principle of the above technical solution is as follows: the system periodically reads input and output data from the PLC controller according to a preset data acquisition sequence. This input data comes from various sensors, switches, or operation panels, while the output data consists of control commands issued by the PLC controller to external devices or systems. The timing of data acquisition ensures the real-time nature and accuracy of the data. Since data directly obtained from the PLC controller may contain noise, outliers, or inconsistent formats, preprocessing is required. Preprocessing may include data cleaning (removing invalid or abnormal data), data conversion (converting data to a uniform format or unit), and data smoothing (reducing noise or fluctuations in the data) to ensure the accuracy and reliability of subsequent analysis and processing. The PLC controller's I / O mapping table is a crucial information source, detailing the correspondence between each input / output (I / O) port of the PLC controller and the actual device or sensor. By reading this mapping table, the system can clearly understand the specific meaning and source of each input / output data, providing necessary information for subsequent control status determination. After establishing the mapping relationship between input and output data, the system analyzes this data according to preset rules and algorithms to determine the current operating status of the PLC controller. Control status determination may involve multiple considerations, such as the rationality of input data, the correctness of output instructions, and the stability of system operation. The system will generate status determination results, such as normal, warning, and error, based on these determinations for subsequent processing or display.

[0056] The technical effects of the above solution are as follows: Through preset data acquisition timing and preprocessing steps, the system can acquire high-quality, accurate, and reliable PLC control data, providing a solid foundation for subsequent control status determination. The entire process automates data acquisition, preprocessing, and control status determination, reducing the need for manual intervention and improving the system's automation level. The system acquires and processes data according to the preset timing sequence, reflecting the PLC controller's operating status in real time and promptly identifying and addressing potential problems. Through the mapping relationship established by the I / O mapping table, the system can accurately understand the meaning of each input / output data, improving the accuracy of control status determination. Simultaneously, the preprocessing steps further reduce noise and outliers in the data, improving the reliability of the determination. The system's automated processing reduces the workload of maintenance personnel. Furthermore, through the generated status determination results, maintenance personnel can clearly understand the PLC controller's operating status, facilitating targeted maintenance and management.

[0057] In one embodiment of the present invention, the step of determining the control state of PLC control data based on the mapping relationship information and obtaining the state determination result includes:

[0058] The expected output value is calculated based on historical data and current data from the PLC control data, and the expected output range is determined based on the expected output value.

[0059] The output data of the PLC control data in the current data is compared with the expected output range to obtain the first comparison result;

[0060] Based on the first comparison result, the control status of the PLC control data is determined to obtain the status determination result.

[0061] The expected output values ​​include:

[0062] The formula for calculating the expected output value is as follows:

[0063] in, To output the expected value, The maximum output data is the historical data. The minimum output data for historical data. for The corresponding input data, for The corresponding input data.

[0064] The working principle of the above technical solution is as follows: The system first collects historical data of PLC control data, which includes information such as the PLC's inputs, outputs, and possible control parameters over a period of time. Combined with the currently collected PLC control data, the expected output value is calculated. This expected value reflects the most likely or desired output value of the PLC controller in the current state. After calculating the expected output value, the system determines a reasonable expected output range. This range is usually centered on the expected output value, taking into account a certain fluctuation range or error tolerance. Determining the expected output range needs to consider factors such as system stability, control accuracy, and changes in the external environment. The output data of the current PLC control data is compared with the previously determined expected output range. The purpose of the comparison is to determine whether the current output data is within the expected range, in order to evaluate whether the control effect of the PLC controller meets expectations. Based on the comparison results, the system performs a control status determination on the PLC control data. If the output data is within the expected range, it is determined to be in a normal or qualified state; if it exceeds the expected range, it is determined to be in an abnormal or unqualified control state. The results of the status determination can be further used for subsequent operations such as triggering alarms, logging, and adjusting control parameters.

[0065] The technical effects of the above solution are as follows: By combining historical and current data to calculate the expected output value and determine the expected output range, the system can more accurately evaluate the control effect of the PLC controller, thereby improving the control accuracy of the entire control system. The determination of the expected output range takes into account a certain fluctuation range and error tolerance, enabling the system to maintain a relatively stable output when facing minor changes in the external environment, thus enhancing system stability. When the system detects that the output data exceeds the expected range multiple times consecutively, it can predict the potential for PLC controller failure or performance degradation, thereby triggering maintenance or replacement measures in advance, achieving predictive maintenance. Based on the control status determination results, the system can further analyze the effectiveness of the control strategy and adjust or optimize it as needed to improve the performance and efficiency of the control system. Through real-time monitoring and status determination of the output data, the system can promptly detect abnormalities and take corresponding measures, thereby reducing the failure rate caused by control failure.

[0066] In one embodiment of the present invention, determining the output expectation range based on the output expectation value includes:

[0067] Set 1.5 times the calculated expected output value as the upper limit of the output;

[0068] Set 0.5 times the calculated expected output value as the lower limit of the output;

[0069] The range between the upper and lower limits of the output is the expected output range.

[0070] The working principle of the above technical solution is as follows: Based on historical and current PLC control data, the system calculates an expected output value. This expected output value represents the most likely or desired output value under the current system state. After calculating the expected output value, the system multiplies it by 1.5 to obtain a new value, namely the upper limit of the output. This upper limit defines a safe upper boundary to ensure that the PLC controller's output does not exceed this range, thereby avoiding potential equipment damage or system malfunction. Similarly, the system multiplies the expected output value by 0.5 to obtain the lower limit of the output. The lower limit defines a safe lower boundary to ensure that the PLC controller's output does not drop too low, thereby maintaining system stability and performance. The interval between the upper and lower limits is the expected output range. This range provides a reasonable fluctuation range, allowing the PLC controller's output to vary within a certain range to cope with changes in internal or external system conditions. The technical effect of the above solution is that by setting the upper and lower limits of the output, the system defines clear control boundaries for the PLC controller's output. This helps prevent the output value from exceeding the safe range, thereby protecting the safety of equipment and the system. The expected output range allows the PLC controller's output to fluctuate within a certain range, which helps the system adapt to changes in internal and external conditions, improving system stability and robustness. Setting the expected output range can serve as an important reference indicator for optimizing control strategies. The system can adjust control parameters or control logic based on the expected output range to improve control accuracy and efficiency. By monitoring output values ​​in real time and taking appropriate measures when they exceed the expected range, the system can reduce the failure rate caused by abnormal output, improving system reliability and availability. Setting the expected output range also simplifies system maintenance and management. Maintenance personnel can quickly determine the system's operating status and take appropriate maintenance measures based on the expected output range.

[0071] In one embodiment of the present invention, the step of determining the control state of the PLC control data based on the first comparison result to obtain a state determination result includes:

[0072] When the output data of the PLC control data in the current data is within the expected output range (including the upper and lower output limits), the corresponding PLC control data is determined to be in a qualified control state.

[0073] When the output data of the PLC control data in the current data is outside the expected output range (excluding the upper and lower output limits), the corresponding PLC control data will be judged as an unqualified control state.

[0074] The qualified control status and the unqualified control status are the status determination results.

[0075] The working principle of the above technical solution is as follows: If the current PLC control data output is within the expected output range (including the upper and lower output limits), that is, the value is greater than or equal to the lower output limit and less than or equal to the upper output limit, the system will determine the corresponding PLC control data as a qualified control state. If the current PLC control data output is outside the expected output range (excluding the upper and lower output limits), that is, the value is less than the lower output limit or greater than the upper output limit, the system will determine the corresponding PLC control data as an unqualified control state.

[0076] The technical effects of the above solution are as follows: By comparing the output with the expected range, the system can clearly determine whether the control status of the PLC control data is qualified or unqualified. This provides important reference information for system monitoring, fault diagnosis, and performance evaluation. Determining a qualified control status ensures that the PLC controller's output is within the expected range, thereby improving the reliability and stability of the entire system. Timely detection of unqualified control statuses can prompt the system to take necessary corrective measures, avoiding potential problems or malfunctions. Based on the statistical information of qualified and unqualified control statuses, the system can analyze the performance trends of the PLC controller, thereby optimizing maintenance strategies. For example, PLC controllers that frequently exhibit unqualified control statuses can be prioritized for maintenance or replacement. Through an automated status determination process, the system reduces the need for manual monitoring and intervention, thereby improving operational efficiency. The status determination results can support the system's management decisions.

[0077] In one embodiment of the present invention, the output regulation rate of the PLC control data corresponding to the unqualified control state in the calculated state determination result is used to adjust the output data. The adjusted output data is then compared with the expected output range to determine whether to re-adjust the output data. This includes:

[0078] The output data of the PLC control data corresponding to the unqualified control state of the status judgment result is obtained;

[0079] Acquire real-time input data, calculate the output adjustment rate based on the real-time input data, output data, and output expected range, and adjust the output data according to the output adjustment rate to obtain adjusted output data;

[0080] The adjusted output data is compared with the expected output range to obtain a second comparison result. Based on the second comparison result, it is determined whether to readjust the output data.

[0081] The formula for calculating the output regulation rate is:

[0082]

[0083] in, For output regulation rate, To output data in real time, To output the upper limit of the expected range, To output the lower limit of the expected range, when When it is a positive number, let When it is 0, When it is a positive number, let It is 0.

[0084] The working principle of the above technical solution is as follows: The system filters out the output data of the PLC control data corresponding to unqualified control states from the state judgment results. These output data indicate that the current system output state does not meet the preset expected range. The system simultaneously acquires real-time input data. Real-time input data reflects the current system state and external conditions, and is an important basis for output adjustment. Based on the real-time input data, current output data, and expected output range, the system calculates the output regulation rate. The output regulation rate is a factor used to guide output data adjustment. According to the calculated output regulation rate, the system adjusts the current output data to obtain adjusted output data (i.e., adjusted output data). The purpose of adjustment is to make the output data closer to the expected range, thereby improving the system's control effect. The adjusted output data is compared with the expected output range to obtain a second comparison result. This comparison is used to determine whether the adjustment is effective, i.e., whether the adjusted output data is within the expected range. Based on the second comparison result, the system determines whether the output data needs to be readjusted. If the adjusted output data is still outside the expected range, the system may perform readjustment, i.e., recalculate the output regulation rate and adjust it until the output data meets the expected range.

[0085] The technical effects of the above solution are as follows: By adjusting the output data in real time, the system can more accurately control the PLC output, bringing it closer to the desired range. This helps improve the system's control accuracy and performance. The system can dynamically adjust the output data based on changes in real-time input data and deviations in the current output data, thus adapting to different working environments and conditions. This enhances the system's adaptability and robustness. By adjusting the output data in a timely manner and keeping it within the desired range, the system can reduce the failure rate caused by abnormal output, improving the system's reliability and stability. Through precise output data adjustment, the system can utilize resources more effectively, reducing unnecessary energy waste and losses.

[0086] In one embodiment of the present invention, comparing the adjusted output data with the desired output range to obtain a second comparison result, and determining whether to readjust the output data based on the second comparison result, includes:

[0087] When the adjusted output data is within the desired output range (including the upper and lower limits of the output), stop readjusting the output data.

[0088] When the output data is adjusted to be outside the expected output range (excluding the upper and lower limits of the output), the output data is readjusted.

[0089] The working principle of the above technical solution is as follows: The system compares the adjusted output data with a pre-set expected output range. This range is determined by 1.5 times (upper limit) and 0.5 times (lower limit) of the expected output value. If the adjusted output data (adjusted output data) is within the expected output range (including the upper and lower limits), the adjustment is effective, and the system has successfully adjusted the output data to the expected range. If the adjusted output data is outside the expected output range (excluding the upper and lower limits), the current adjustment is inaccurate or external conditions have changed, causing the output data to still not meet expectations. If the adjusted output data is within the expected range, the system will stop re-adjusting the output data because the current output already meets the expected conditions. If the adjusted output data is outside the expected range, the system will re-adjust the output data. This typically involves recalculating the output regulation rate and further adjusting the output data based on the new regulation rate to try to bring the output data closer to the expected range. The technical effect of the above solution is that by continuously adjusting and re-adjusting the output data, the system can gradually reduce the deviation between the output data and the expected range, thereby improving control accuracy. This contributes to achieving more precise and stable control. The system can dynamically adjust the output regulation rate and re-adjust based on changes in real-time input data and deviations in current output data. This allows the system to adapt to different working environments and conditions, improving its adaptability and robustness. Through timely adjustment and re-adjustment, the system can avoid prolonged abnormal output data states, thereby reducing the failure rate caused by output anomalies. This helps improve the system's reliability and stability. Through precise output data adjustment and re-adjustment, the system can utilize resources more effectively, reducing unnecessary energy waste and losses. This helps reduce operating costs and improve economic efficiency. For applications requiring precise control, such as automated production lines and precision instruments, the system's precise output adjustment and re-adjustment can enhance user experience and product quality. Users will enjoy more stable and reliable services and products.

[0090] According to one embodiment of the present invention, the system includes:

[0091] The control output status determination module is used to collect the input and output data of the PLC controller, calculate the expected output value of the collected PLC control data, compare the output data of the PLC control data with the expected output range, and then determine the control status of the PLC control data to obtain the status determination result.

[0092] The output judgment and adjustment module is used to calculate the output adjustment rate of the PLC control data corresponding to the unqualified control state in the state judgment result, adjust the output data, compare the adjusted output data with the expected output range, and then determine whether to readjust the output data.

[0093] The working principle of the above technical solution is as follows: The system collects the input and output data of the PLC controller in real time. This data reflects the current working status of the PLC controller and its control effect on the external environment. The system calculates the expected output value of the collected PLC control data. This expected value represents the output value that the PLC control data should achieve under ideal conditions. The actual output data of the PLC control data is compared with the expected output range. If the output data is within the expected range, it is determined to be a qualified state; if it exceeds the expected range, it is determined to be an unqualified control state. The system records and outputs these state determination results. For unqualified control states in the state determination results, the system calculates the corresponding output regulation rate of the PLC control data. Based on the calculated output regulation rate, the system adjusts the output data of the PLC controller to make it approach or reach the expected output value.

[0094] The adjusted output data is then compared again with the expected output range. If the adjusted output data is within the expected range, the adjustment is considered successful and no further action is required; if it still exceeds the expected range, the adjustment is considered unsuccessful and the output data needs to be readjusted.

[0095] The technical effects of the above solution are as follows: By comparing and adjusting the expected output value of the PLC control data with the actual output data, the system can achieve precise control of the PLC controller output, thereby improving the accuracy and stability of the entire control system. Through the status judgment and output adjustment mechanism, the system can promptly detect and correct abnormal outputs in the PLC control data, preventing these abnormal outputs from causing further damage or malfunctions to the system. By continuously adjusting and optimizing the PLC controller output data, the system can gradually adapt to changes in the working environment, improving the system's adaptability and robustness, thereby optimizing the overall system performance. The system adopts a real-time data acquisition and status judgment mechanism, which can monitor the working status of the PLC controller in real time and adjust the output when necessary, thereby enhancing the system's reliability and dependability. Through automated control status judgment and output adjustment mechanisms, the system can reduce the need for manual intervention, lowering maintenance and labor costs.

[0096] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.

Claims

1. A PLC controller data transceiving adjustment method, characterized by, The method comprises: S1, collecting input and output data of the PLC controller, calculating an output expected value of the collected PLC control data, comparing the output data of the PLC control data with an output expected range, and then determining the control state of the PLC control data to obtain a state determination result; S2, calculating an output adjustment rate of the PLC control data corresponding to the unqualified state in the state determination result, adjusting the output data, comparing the adjusted output data obtained by the adjustment with the output expected range, and then determining whether to re-adjust the output data; The S1 comprises: According to the preset data collection timing, the input data and the output data of the PLC controller are obtained to form PLC control data; The PLC control data is preprocessed to obtain preprocessed PLC control data; An I / O mapping table of the PLC controller is obtained, and a mapping relationship between the input data and the output data of the PLC control data is established through the I / O mapping table; The control state of the PLC control data is determined according to the information of the mapping relationship to obtain a state determination result; The control state of the PLC control data is determined according to the information of the mapping relationship to obtain a state determination result, comprising: The output expected value is calculated according to the historical data of the PLC control data combined with the current data, and the output expected range is determined according to the output expected value; The output data of the PLC control data in the current data is compared with the output expected range to obtain a first comparison result; The control state of the PLC control data is determined according to the first comparison result to obtain a state determination result.

2. The method of claim 1, wherein the PLC controller data transceiving adjustment is performed by a PLC controller. The output expected value comprises: The calculation formula of the output expected value is: where SQ is an output expectation value, LU MAX is a maximum output data of the history data, LU MIN is a minimum output data of the history data, LC MAX is the LU MAX corresponding input data, LC MIN is the LU mIN corresponding input data.

3. The method of claim 1, wherein the PLC controller data transceiving adjustment is performed by a PLC controller. The output expected range is determined according to the output expected value, comprising: The 1.5 times value of the calculated output expected value is set as an output upper limit value; The 0.5 times value of the calculated output expected value is set as an output lower limit value; The interval value between the output upper limit value and the output lower limit value is the output expected range.

4. The method of claim 1, wherein the PLC controller data transceiving adjustment is performed by a PLC controller. The control state of the PLC control data is determined according to the first comparison result to obtain a state determination result, comprising: When the output data of the PLC control data in the current data is within the output expected range, the corresponding PLC control data is determined as a qualified control state; When the output data of the PLC control data in the current data is outside the output expected range, the corresponding PLC control data is determined as an unqualified control state; The qualified control state and the unqualified control state are the state determination result.

5. The method of claim 1, wherein the PLC controller data transceiving adjustment is performed by a PLC controller. The output adjustment rate of the PLC control data corresponding to the unqualified state in the state determination result is calculated, the output data is adjusted, the adjusted output data obtained by the adjustment is compared with the output expected range, and then it is determined whether to re-adjust the output data, comprising: The output data of the PLC control data corresponding to the unqualified state of the state determination result is obtained; The real-time input data is acquired, the output adjustment rate is calculated according to the real-time input data, the output data and the output expected range, the output data is adjusted according to the output adjustment rate, and the adjusted output data is obtained; The adjusted output data is compared with the output expected range to obtain a second comparison result, and it is judged whether to perform re-adjustment of the output data according to the second comparison result.

6. The method of claim 5, wherein the PLC controller data transceiving adjustment is performed by a PLC controller. The output adjustment rate comprises: The calculation formula of the output adjustment rate is: Wherein, STV is the output adjustment rate, SC is the real-time output data, SX is the upper limit value of the output expected range, XQ is the lower limit value of the output expected range, when (SC-SX) is positive, set (XQ-SC) as 0, when (XQ-SC) is positive, set (SC-SX) as 0.

7. The method of claim 5, wherein the PLC controller data transceiving adjustment is performed by a PLC controller. The adjusted output data is compared with the output expected range to obtain a second comparison result, and it is judged whether to perform re-adjustment of the output data according to the second comparison result, and it is judged whether to perform re-adjustment of the output data according to the second comparison result. When the adjusted output data is within the output expected range, stop re-adjusting the output data; When the adjusted output data is outside the output expected range, re-adjust the output data.

8. A PLC controller data transceiving conditioning system, comprising: The system comprises: The control output state determination module is used for collecting the input and output data of the PLC controller, calculating the output expected value of the collected PLC control data, comparing the output data of the PLC control data with the output expected range, and then determining the control state of the PLC control data to obtain a state determination result; The output determination adjustment module is used for calculating the output adjustment rate of the PLC control data corresponding to the unqualified state in the state determination result, adjusting the output data, comparing the adjusted output data with the output expected range, and then determining whether to perform re-adjustment of the output data; The control output state determination module comprises: The input data and the output data of the PLC controller are acquired according to the preset data acquisition time sequence to form PLC control data; The PLC control data is preprocessed to obtain preprocessed PLC control data; An I / O mapping table of the PLC controller is acquired, and the mapping relationship between the input data and the output data of the PLC control data is established through the I / O mapping table; The control state of the PLC control data is determined according to the information of the mapping relationship to obtain a state determination result; The control state of the PLC control data is determined according to the information of the mapping relationship to obtain a state determination result, comprising: The output expected value is calculated according to the historical data of the PLC control data combined with the current data, and the output expected range is determined according to the output expected value; The output data of the PLC control data in the current data is compared with the output expected range to obtain a first comparison result; The control state of the PLC control data is determined according to the first comparison result to obtain a state determination result.

Citation Information

Patent Citations

  • Data verification device, data verification system, and data verification method

    CN116710858A