A method and system for acquiring low-frequency signals during PLC operation
By calibrating the sampling rate and time ratio during the low-frequency signal acquisition process of the PLC controller, the problem of inaccurate sampling rate and time in the low-frequency signal acquisition of traditional PLC controllers is solved, thereby achieving the accuracy of data acquisition and the stability and reliability of the system.
Patent Information
- Application Number
- CN202411066703.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2044-08-06
AI Technical Summary
Traditional PLC controllers suffer from problems such as inappropriate sampling rate or inaccurate sampling time in low-frequency signal acquisition, which leads to data acquisition deviations and affects system performance and reliability.
By collecting low-frequency signals during the operation of the PLC controller, calibrating the ratio of sampling rate to sampling time, calculating the comprehensive sampling ratio, and continuously monitoring and readjusting abnormal sampling information, the accuracy and completeness of data collection are ensured.
It improves the accuracy and efficiency of data acquisition, enhances the stability and reliability of the system, and ensures that the PLC controller operates normally in complex environments.
Smart Images

Figure CN118963238B_ABST
Abstract
Description
Technical Field
[0001] This invention proposes a method and system for acquiring low-frequency signals during PLC operation, which relates to the field of low-frequency signal acquisition technology. Background Technology
[0002] In industrial automation and control systems, programmable logic controllers (PLCs) serve as the core control unit, responsible for monitoring and controlling various equipment and processes. In these processes, the acquisition and processing of low-frequency signals are crucial for ensuring the normal operation and optimization of the system. However, traditional PLC controllers face challenges in low-frequency signal acquisition, such as inappropriate sampling rates or inaccurate sampling times. These issues can lead to data acquisition deviations, thereby affecting system performance and reliability. Summary of the Invention
[0003] This invention provides a method and system for acquiring low-frequency signals during PLC operation, which solves the problems of inappropriate sampling rate or inaccurate sampling time in traditional PLC controllers for low-frequency signal acquisition, leading to data acquisition deviations and thus affecting system performance and reliability.
[0004] This invention proposes a method and system for acquiring low-frequency signals during PLC operation, the method comprising:
[0005] Low-frequency signals are collected during the operation of the PLC controller. The sampling rate and sampling time of the collected information are proportionally calibrated, the comprehensive sampling ratio is calculated, the comprehensive sampling ratio is labeled, and comprehensive sampling information is obtained.
[0006] The low-frequency signal sampling adjustment value is calculated based on the comprehensive sampling information, and the sampling information of the low-frequency signal is adjusted to obtain the adjustment information;
[0007] Continuous and cumulative monitoring of abnormal sampling information in the comprehensive sampling information is conducted, and the need to readjust the sampling information is determined based on the obtained monitoring data.
[0008] Furthermore, the acquisition of low-frequency signals during the operation of the PLC controller includes:
[0009] The low-frequency signals during the operation of the PLC controller are collected to obtain the collected information;
[0010] The collected information is preprocessed to obtain a preprocessed low-frequency signal;
[0011] Obtain the actual sampling rate and actual sampling time of the low-frequency signal and store them as low-frequency signal sampling information.
[0012] Furthermore, the process of proportionally calibrating the sampling rate and sampling time of the collected information, calculating the comprehensive sampling ratio, labeling the comprehensive sampling ratio, and obtaining comprehensive sampling information includes:
[0013] The sampling rate ratio of low-frequency signals is calibrated by comparing the actual sampling rate with the preset sampling rate.
[0014] The sampling time ratio of low-frequency signals is calibrated by comparing the average sampling time during the operation of the PLC controller with the preset average sampling time.
[0015] By combining sampling rate ratio calibration with sampling time ratio calibration, a comprehensive sampling calibration of low-frequency signals is performed to obtain comprehensive sampling information.
[0016] Furthermore, the comprehensive sampling calibration of the low-frequency signal by combining sampling rate ratio calibration with sampling time ratio calibration to obtain comprehensive sampling information includes:
[0017] Calculate the sum of the sampling rate ratio and the sampling time ratio to obtain the overall sampling ratio;
[0018] When the overall sampling ratio reaches the preset overall threshold, the sampling information of low-frequency signals is marked as abnormal sampling information;
[0019] When the overall sampling ratio does not reach the preset overall threshold, the sampling information of low-frequency signals is marked as normal sampling information;
[0020] The abnormal sampling information and the normal sampling information constitute the comprehensive sampling information.
[0021] Further, the step of calculating the low-frequency signal sampling adjustment value based on the comprehensive sampling information, adjusting the sampling information of the low-frequency signal, and obtaining adjustment information includes:
[0022] When the sampling information of a low-frequency signal is marked as abnormal sampling information, the average wavelength of the low-frequency signal of the abnormal sampling information is obtained.
[0023] Calculate the low-frequency signal sampling adjustment value based on the average wavelength and the sampling information;
[0024] The sampling information of the low-frequency signal is adjusted according to the low-frequency signal sampling adjustment value to obtain adjustment information.
[0025] Furthermore, the low-frequency signal sampling adjustment value includes:
[0026] The formula for calculating the low-frequency adjustment value is as follows:
[0027]
[0028] Where DT is the low-frequency adjustment value, Y tC is the preset adjustment value. vp Y represents the actual average sampling rate. vp C is the preset average sampling rate. sp Y represents the actual average sampling time. sp This is the preset average sampling time.
[0029] Further, the step of adjusting the sampling information of the low-frequency signal according to the low-frequency signal sampling adjustment value to obtain adjustment information includes:
[0030] The low-frequency signal sampling adjustment value is compared with a preset adjustment threshold. When the low-frequency signal sampling adjustment value is higher than the preset adjustment threshold, the adjustment is lowered according to the low-frequency signal sampling adjustment value.
[0031] When the low-frequency signal sampling adjustment value is lower than the preset adjustment threshold, the adjustment is increased according to the low-frequency signal sampling adjustment value to obtain adjustment information.
[0032] Furthermore, the continuous cumulative monitoring of abnormal sampling information in the comprehensive sampling information, and the determination of whether to readjust the sampling information based on the obtained monitoring data, includes:
[0033] The cumulative change value of abnormal sampling information is obtained, and the cumulative change value is compared with a preset cumulative threshold. When the cumulative change value is greater than the preset cumulative threshold, the low-frequency signal sampling adjustment value is recalculated and then readjusted.
[0034] When the cumulative change value is less than or equal to the preset cumulative threshold, the abnormal sampling information is continuously monitored to obtain monitoring data.
[0035] The cumulative change value includes:
[0036] The formula for calculating the cumulative change value is as follows:
[0037]
[0038] Where LJ is the cumulative change value, ZCB is the comprehensive sampling ratio, YCB is the preset comprehensive threshold, and Δ(ZCB-YCB) is the increase in (ZCB-YCB). This represents the decrease in (ZCB-YCB).
[0039] Furthermore, the system includes:
[0040] The data acquisition and processing module is used to acquire low-frequency signals during the operation of the PLC controller, calibrate the sampling rate and sampling time of the acquired information, calculate the comprehensive sampling ratio, label the comprehensive sampling ratio, and obtain comprehensive sampling information.
[0041] The calculation and adjustment module is used to calculate the low-frequency signal sampling adjustment value based on the comprehensive sampling information, adjust the sampling information of the low-frequency signal, and obtain the adjustment information.
[0042] The cumulative monitoring module is used to continuously monitor abnormal sampling information in the comprehensive sampling information and determine whether to readjust the sampling information based on the obtained monitoring data.
[0043] The beneficial effects of this invention are as follows: By calibrating the sampling rate and sampling time appropriately, the accuracy and completeness of data acquisition can be ensured, while improving the efficiency of data acquisition. The calculation and labeling of the comprehensive sampling ratio quantifies the deviation of low-frequency signal sampling from the preset value. Through continuous cumulative monitoring and readjustment of abnormal sampling information, abnormal data can be detected and processed in a timely manner, reducing its impact on the entire dataset. A reasonable sampling adjustment and anomaly handling mechanism can enhance the stability and reliability of the system, ensuring the PLC controller can operate normally in complex environments. Attached Figure Description
[0044] Figure 1 This is a schematic diagram of a low-frequency signal acquisition method for PLC operation. Detailed Implementation
[0045] 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.
[0046] In one embodiment of the present invention, a method and system for acquiring low-frequency signals during PLC operation are provided, the method comprising:
[0047] S1. Collect low-frequency signals during the operation of the PLC controller, calibrate the sampling rate and sampling time of the collected information, calculate the comprehensive sampling ratio, mark the comprehensive sampling ratio, and obtain comprehensive sampling information;
[0048] S2. Calculate the low-frequency signal sampling adjustment value based on the comprehensive sampling information, adjust the sampling information of the low-frequency signal, and obtain the adjustment information;
[0049] S3. Continuously monitor abnormal sampling information of the comprehensive sampling information, and determine whether to readjust the sampling information based on the obtained monitoring data.
[0050] The working principle of the above technical solution is as follows: During the operation of the PLC controller, a specific data acquisition module or sensor is used to acquire low-frequency signals in real time. The acquisition process needs to ensure the accuracy and integrity of the signals. The sampling rate and sampling time are set according to actual needs and application scenarios. The sampling rate determines the number of data points acquired per second, while the sampling time determines the duration of each data acquisition. The ratio of the sampling rate to the sampling time can be calibrated to obtain two types of deviations between the actual sampling parameters and the preset sampling parameters. The comprehensive sampling ratio is a combined reflection of the sampling rate and sampling time; this ratio can intuitively reflect the degree of signal acquisition deviation. The calculated comprehensive sampling ratio is marked, and the sampling adjustment value for the low-frequency signal is calculated. Based on the calculated low-frequency signal sampling adjustment value, the original sampling information is adjusted. Adjustment methods may include changing the sampling rate and sampling time. The comprehensive sampling information is continuously monitored, with a focus on abnormal sampling data. A determination is made as to whether to readjust the sampling information: Based on the monitored abnormal sampling information, it is determined whether the sampling parameters need to be readjusted. If there is a large amount of abnormal data or its impact is significant, it may be necessary to recalculate the sampling adjustment value and make adjustments.
[0051] The technical effects of the above solution are as follows: By calibrating the sampling rate and sampling time appropriately, the accuracy and completeness of data acquisition can be ensured, while improving the efficiency of data acquisition. The calculation and labeling of the comprehensive sampling ratio quantifies the deviation of low-frequency signal sampling from the preset value. Through continuous cumulative monitoring and readjustment of abnormal sampling information, abnormal data can be detected and processed in a timely manner, reducing its impact on the entire dataset. Reasonable sampling adjustment and anomaly handling mechanisms can enhance the stability and reliability of the system, ensuring the PLC controller can operate normally in complex environments.
[0052] In one embodiment of the present invention, the acquisition of low-frequency signals during the operation of the PLC controller includes:
[0053] The low-frequency signals during the operation of the PLC controller are collected to obtain the collected information;
[0054] The collected information is preprocessed to obtain a preprocessed low-frequency signal;
[0055] Obtain the actual sampling rate and actual sampling time of the low-frequency signal and store them as low-frequency signal sampling information.
[0056] The working principle of the above technical solution is as follows: During operation, the PLC controller generates or receives low-frequency signals. A specific data acquisition module or sensor is used to acquire these low-frequency signals in real time. The acquired low-frequency signal data is converted into digital signals. Preprocessing of the acquired low-frequency signals aims to remove noise, smooth the signal, or perform other forms of signal processing to improve the accuracy and reliability of the signal. Preprocessing may include steps such as filtering, amplification, and digitization conversion. Simultaneously with the acquisition of the low-frequency signals, the actual sampling rate and actual sampling time are obtained and recorded. The sampling rate refers to the number of signal samples acquired per unit time, and the sampling time is the duration of the acquired signal samples. This sampling information is crucial for subsequent data analysis and processing, and therefore needs to be accurately recorded and stored.
[0057] The technical effects of the above solution are as follows: By acquiring and preprocessing low-frequency signals, noise and other interference factors can be removed, improving the accuracy and reliability of the data. The preprocessing process smooths the signal waveform, making it closer to reality. Accurately recording the actual sampling rate and sampling time of the low-frequency signal provides important parameters for data processing. This sampling information can be used in subsequent data synchronization, interpolation calculations, and other processing steps to ensure the accuracy and consistency of data processing. Through the acquisition and preprocessing of low-frequency signals, abnormal situations can be detected and handled promptly, preventing system failures due to data errors. Accurate sampling information also provides important basis for system fault diagnosis and performance evaluation. The optimized data acquisition and processing flow can improve the overall performance of the system, making it more stable, reliable, and efficient. The stored low-frequency signal sampling information can be used for subsequent data analysis, model training, and other applications. This information is of great value for a deeper understanding of the system's operating status and for optimizing control strategies.
[0058] In one embodiment of the present invention, the step of proportionally calibrating the sampling rate and sampling time of the collected information, calculating the comprehensive sampling ratio, labeling the comprehensive sampling ratio, and obtaining comprehensive sampling information includes:
[0059] The sampling rate ratio of low-frequency signals is calibrated by comparing the actual sampling rate with the preset sampling rate.
[0060] The sampling time ratio of low-frequency signals is calibrated by comparing the average sampling time during the operation of the PLC controller with the preset average sampling time.
[0061] By combining sampling rate ratio calibration with sampling time ratio calibration, a comprehensive sampling calibration of low-frequency signals is performed to obtain comprehensive sampling information.
[0062] The working principle of the above technical solution is as follows: During the operation of the PLC controller, a preset sampling rate is first determined. This preset sampling rate is pre-set according to system requirements and application scenarios. The actual sampling rate of the low-frequency signal is acquired in real time through a data acquisition module or sensor. The ratio between the actual sampling rate and the preset sampling rate is calculated, i.e., the sampling rate ratio calibration value. This ratio reflects the degree of deviation of the actual sampling rate from the preset sampling rate. Similarly, during the operation of the PLC controller, a preset average sampling time is set. The average sampling time during actual operation is acquired by monitoring the operating status of the PLC controller. The ratio between the actual average sampling time and the preset average sampling time is calculated, i.e., the sampling time ratio calibration value. This ratio reflects the degree of deviation of the actual sampling time from the preset sampling time. Comprehensive sampling calibration combines the sampling rate ratio calibration value and the sampling time ratio calibration value to perform comprehensive sampling calibration of the low-frequency signal. Comprehensive sampling calibration comprehensively considers the influence of both sampling rate and sampling time on low-frequency signal acquisition. Comprehensive sampling information is obtained, which includes the actual sampling rate, preset sampling rate, actual average sampling time, preset average sampling time, and the corresponding ratio calibration values.
[0063] The technical effects of the above solution are as follows: By calibrating the sampling rate and sampling time ratios, the sampling parameters of low-frequency signals can be dynamically adjusted according to actual needs, making data acquisition more flexible and adaptable. Comprehensive sampling calibration considers both sampling rate and sampling time. This helps optimize the data processing flow, improve data processing efficiency, and reduce errors and interference caused by mismatched sampling parameters. Comprehensive sampling calibration of low-frequency signals ensures that the acquired data matches the actual operating conditions, avoiding system failures or performance degradation due to inaccurate sampling parameters. This helps improve system stability and reliability, ensuring the normal operation of the PLC controller in complex environments. Comprehensive sampling information can be used for subsequent fault diagnosis and performance optimization. By analyzing comprehensive sampling information, potential problems in the system can be identified in a timely manner, providing an important basis for fault diagnosis. Simultaneously, based on comprehensive sampling information, the system's control strategy can be optimized, improving system operating efficiency and performance. Comprehensive sampling information is stored and displayed in a standardized form, facilitating subsequent data analysis and application. This provides an important foundation for data-driven decision support, model training, and other applications, helping to improve the system's intelligence level and application value.
[0064] In one embodiment of the present invention, the step of performing comprehensive sampling calibration on the low-frequency signal by combining sampling rate ratio calibration with sampling time ratio calibration to obtain comprehensive sampling information includes:
[0065] Calculate the sum of the sampling rate ratio and the sampling time ratio to obtain the overall sampling ratio;
[0066] When the overall sampling ratio reaches the preset overall threshold, the sampling information of low-frequency signals is marked as abnormal sampling information;
[0067] When the overall sampling ratio does not reach the preset overall threshold, the sampling information of low-frequency signals is marked as normal sampling information;
[0068] The abnormal sampling information and the normal sampling information constitute the comprehensive sampling information.
[0069] The working principle of the above technical solution is as follows: The sampling rate ratio is calculated based on the actual sampling rate and the preset sampling rate during PLC controller operation. This is done by dividing the actual sampling rate by the preset sampling rate. The sampling time ratio is calculated based on the actual average sampling time and the preset average sampling time. This is also done by dividing the actual average sampling time by the preset average sampling time. The sampling rate ratio and the sampling time ratio are added together to obtain the comprehensive sampling ratio. This ratio reflects the overall deviation between the actual sampling situation and the preset sampling standard. A preset comprehensive threshold is set, which is predetermined according to system requirements and application scenarios, to determine whether the sampling information is abnormal. The calculated comprehensive sampling ratio is compared with the preset comprehensive threshold. If the comprehensive sampling ratio reaches or exceeds the preset comprehensive threshold, it indicates that the actual sampling situation deviates significantly from the preset standard. In this case, the low-frequency signal sampling information is marked as abnormal sampling information. If the comprehensive sampling ratio does not reach the preset comprehensive threshold, it indicates that the actual sampling situation is not significantly different from the preset standard and is within the normal range. In this case, the low-frequency signal sampling information is marked as normal sampling information. The resulting abnormal sampling information and normal sampling information constitute the comprehensive sampling information. This information records the actual situation during the low-frequency signal sampling process and provides a status label for the sampling information (abnormal or normal).
[0070] The technical effects of the above solution are as follows: By calculating the comprehensive sampling ratio, the impact of both sampling rate and sampling time on sampling quality can be considered, improving the accuracy and comprehensiveness of monitoring. By comparing the comprehensive sampling ratio with a preset comprehensive threshold, low-frequency signal sampling information can be quickly classified as abnormal or normal. Comprehensive sampling information can provide important basis for fault diagnosis. When sampling information is marked as abnormal, the cause of the abnormality can be further analyzed, and corresponding measures can be taken to solve the problem. Based on the comprehensive sampling information, the system's control strategy can be optimized, improving the system's operating efficiency and performance. By marking sampling information as abnormal or normal, the complexity of subsequent data processing can be reduced. For normal sampling information, conventional data analysis can be performed; while for abnormal sampling information, further anomaly processing and analysis are required. By monitoring and marking sampling information in real time, potential problems in the system can be discovered in a timely manner, and corresponding measures can be taken to solve them, thereby enhancing the system's reliability and stability.
[0071] In one embodiment of the present invention, the step of calculating a low-frequency signal sampling adjustment value based on comprehensive sampling information, adjusting the sampling information of the low-frequency signal, and obtaining adjustment information includes:
[0072] When the sampling information of a low-frequency signal is marked as abnormal sampling information, the average wavelength of the low-frequency signal of the abnormal sampling information is obtained.
[0073] Calculate the low-frequency signal sampling adjustment value based on the average wavelength and the sampling information;
[0074] The sampling information of the low-frequency signal is adjusted according to the low-frequency signal sampling adjustment value to obtain adjustment information.
[0075] The low-frequency signal sampling adjustment value includes:
[0076] The formula for calculating the low-frequency adjustment value is as follows:
[0077]
[0078] Where DT is the low-frequency adjustment value, Y t C is the preset adjustment value. vp Y represents the actual average sampling rate. vp C is the preset average sampling rate. sp Y represents the actual average sampling time. sp This is the preset average sampling time.
[0079] The working principle of the above technical solution is as follows: When the sampling information of a low-frequency signal is marked as abnormal sampling information, the system first analyzes the low-frequency signals corresponding to these abnormal sampling information. By analyzing the waveforms of these low-frequency signals, the system can calculate the average wavelength of these signals. The average wavelength is the average distance between two adjacent peaks or troughs in the signal, reflecting the basic periodic characteristics of the signal. With the average wavelength, the system can calculate the sampling adjustment value of the low-frequency signal based on this average wavelength and the current sampling information (including sampling rate and sampling time). Based on the calculated low-frequency signal sampling adjustment value, the system adjusts the sampling information of the low-frequency signal. The adjustment methods may include changing the sampling rate, adjusting the sampling time interval, etc., adjusting whichever is abnormal, to ensure that the sampled signal can more accurately reflect the characteristics of the original signal. The adjusted sampling information is the adjustment information.
[0080] The technical effects of the above solution are as follows: By calculating the low-frequency signal sampling adjustment value based on the average wavelength of the abnormal sampling information and adjusting the sampling information accordingly, the sampling effect can be optimized, making the sampled signal more accurately reflect the characteristics of the original signal. Optimization of the sampling information can improve the accuracy of subsequent data processing and analysis, thereby obtaining higher quality data results. This method can dynamically adjust the sampling parameters according to the actual characteristics of the signal, making the system more adaptable and flexible. Optimization of the sampling information can provide more valuable data support for fault diagnosis and performance optimization, helping the system to discover and solve problems in a timely manner. By optimizing the sampling effect and data quality, the overall performance of the system and the user experience can be improved.
[0081] In one embodiment of the present invention, adjusting the sampling information of the low-frequency signal according to the low-frequency signal sampling adjustment value to obtain adjustment information includes:
[0082] The low-frequency signal sampling adjustment value is compared with a preset adjustment threshold. When the low-frequency signal sampling adjustment value is higher than the preset adjustment threshold, the adjustment is lowered according to the low-frequency signal sampling adjustment value.
[0083] When the low-frequency signal sampling adjustment value is lower than the preset adjustment threshold, the adjustment is increased according to the low-frequency signal sampling adjustment value to obtain adjustment information.
[0084] The working principle of the above technical solution is as follows: The system first checks whether the low-frequency signal sampling adjustment value is higher or lower than a preset adjustment threshold. This preset adjustment threshold is set according to system requirements, signal characteristics, and actual application scenarios.
[0085] If the low-frequency signal sampling adjustment value is higher than the preset adjustment threshold, it indicates that the current sampling parameter setting is too high, which may lead to redundant sampling data or wasted resources. In this case, the system will adjust the low-frequency signal sampling parameters downward according to the low-frequency signal sampling adjustment value, such as reducing the sampling rate or increasing the sampling time interval. If the low-frequency signal sampling adjustment value is lower than the preset adjustment threshold, it indicates that the current sampling parameter setting is too low, which may result in insufficient sampling data or an inability to accurately reflect the signal characteristics. In this case, the system will adjust the low-frequency signal sampling parameters upward according to the low-frequency signal sampling adjustment value, such as increasing the sampling rate or shortening the sampling time interval. After the above adjustments, the system will obtain new sampling parameter settings, i.e., adjustment information. This adjustment information will be used to update the low-frequency signal sampling parameters to ensure the quality and accuracy of the sampling data.
[0086] The technical effects of the above solution are as follows: By comparing the low-frequency signal sampling adjustment value with a preset adjustment threshold and dynamically adjusting the low-frequency signal sampling parameters based on the comparison result, the sampling parameter settings can be ensured to be more reasonable and optimized. This helps improve the quality and accuracy of the sampled data and reduce data redundancy or insufficiency. Reasonable sampling parameter settings can reduce unnecessary computational and processing burdens and improve system operating efficiency. By dynamically adjusting the low-frequency signal sampling parameters, the system can adaptively adjust the sampling frequency and sampling time interval according to actual needs, thereby achieving more efficient data acquisition and processing. Reasonable sampling parameter settings help reduce system anomalies or errors caused by improper sampling. By dynamically adjusting the low-frequency signal sampling parameters, the system can promptly detect and correct problems in the sampling process, thereby enhancing system stability and reliability. The sampling parameter adjustment information can provide valuable references for fault diagnosis and performance optimization. By analyzing the adjustment information, the system can identify potential faults or performance bottlenecks and take corresponding measures for repair or optimization.
[0087] In one embodiment of the present invention, the step of continuously accumulating and monitoring abnormal sampling information of the comprehensive sampling information, and determining whether to readjust the sampling information based on the obtained monitoring data, includes:
[0088] The cumulative change value of abnormal sampling information is obtained, and the cumulative change value is compared with a preset cumulative threshold. When the cumulative change value is greater than the preset cumulative threshold, the low-frequency signal sampling adjustment value is recalculated and then readjusted.
[0089] When the cumulative change value is less than or equal to the preset cumulative threshold, the abnormal sampling information is continuously monitored to obtain monitoring data.
[0090] The cumulative change value includes:
[0091] The formula for calculating the cumulative change value is as follows:
[0092]
[0093] Where LJ is the cumulative change value, ZCB is the comprehensive sampling ratio, YCB is the preset comprehensive threshold, and Δ(ZCB-YCB) is the increase in (ZCB-YCB). This represents the decrease in (ZCB-YCB).
[0094] The working principle of the above technical solution is as follows: The system continuously monitors the sampling information of low-frequency signals. When abnormal sampling information is detected, it calculates the cumulative change value of these abnormal sampling information. The cumulative change value is usually calculated by comparing the cumulative sum of the differences (such as amplitude, frequency, phase, etc.) between consecutive abnormal sampling points. This value reflects the trend or fluctuation degree of the abnormal sampling information over a period of time. Once the cumulative change value is calculated, the system compares it with a preset cumulative threshold. The preset cumulative threshold is a threshold set according to system requirements, signal characteristics, and application scenarios, used to determine whether the cumulative change of abnormal sampling information has reached a level that requires readjustment of the low-frequency signal sampling parameters. If the cumulative change value is greater than the preset cumulative threshold, it indicates that the cumulative change of abnormal sampling information has reached a level that requires attention. At this time, the system will recalculate the sampling adjustment value of the low-frequency signal based on the current abnormal sampling information and signal characteristics, and readjust the sampling parameters of the low-frequency signal accordingly. This process may involve adjusting the sampling rate, modifying the sampling time interval, etc. If the cumulative change value is less than or equal to the preset cumulative threshold, it indicates that the cumulative change of abnormal sampling information is still within an acceptable range. At this time, the system will continue to continuously monitor the abnormal sampling information and acquire relevant monitoring data. This data can be used for subsequent fault diagnosis, performance optimization, and other analytical work.
[0095] The technical effects of the above solution are as follows: By continuously monitoring the cumulative changes in abnormal sampling information and dynamically adjusting the low-frequency signal sampling parameters based on comparisons with preset thresholds, the system exhibits high dynamic adaptability. This helps ensure the quality and accuracy of sampled data and adapts to changes in signal characteristics under different application scenarios. By promptly detecting and processing abnormal sampling information, the system can reduce system anomalies or errors caused by improper sampling, thereby improving system stability and reliability. Reasonable sampling parameter settings can reduce unnecessary computational and processing burdens and improve data processing efficiency. By dynamically adjusting the sampling parameters of low-frequency signals, the system can adaptively adjust the sampling frequency and sampling time interval according to actual needs, thereby achieving more efficient data acquisition and processing. By continuously monitoring abnormal sampling information and obtaining relevant monitoring data, the system can provide valuable references for fault diagnosis and performance optimization. This data can help the system discover potential faults or performance bottlenecks and take corresponding measures for repair or optimization.
[0096] According to one embodiment of the present invention, the system includes:
[0097] The data acquisition and processing module is used to acquire low-frequency signals during the operation of the PLC controller, calibrate the sampling rate and sampling time of the acquired information, calculate the comprehensive sampling ratio, label the comprehensive sampling ratio, and obtain comprehensive sampling information.
[0098] The calculation and adjustment module is used to calculate the low-frequency signal sampling adjustment value based on the comprehensive sampling information, adjust the sampling information of the low-frequency signal, and obtain the adjustment information.
[0099] The cumulative monitoring module is used to continuously monitor abnormal sampling information in the comprehensive sampling information and determine whether to readjust the sampling information based on the obtained monitoring data.
[0100] The working principle of the above technical solution is as follows: During the operation of the PLC controller, the data acquisition and processing module uses a specific data acquisition module or sensor to acquire low-frequency signals in real time. The acquisition process needs to ensure the accuracy and integrity of the signals. The sampling rate and sampling time are set according to actual needs and application scenarios. The sampling rate determines the number of data points acquired per second, while the sampling time determines the duration of each data acquisition. The ratio of the sampling rate to the sampling time can be calibrated to obtain two types of deviations between the actual sampling parameters and the preset sampling parameters. The comprehensive sampling ratio is a combined reflection of the sampling rate and sampling time, and this ratio can intuitively reflect the degree of signal acquisition deviation. The calculation and adjustment module marks the calculated comprehensive sampling ratio, calculates the sampling adjustment value for the low-frequency signal, and adjusts the original sampling information based on the calculated low-frequency signal sampling adjustment value. Adjustment methods may include changing the sampling rate and sampling time. The cumulative monitoring module continuously monitors the comprehensive sampling information, focusing on abnormal sampling data. It determines whether to readjust the sampling information: based on the monitored abnormal sampling information, it determines whether the sampling parameters need to be readjusted. If there is a large amount of abnormal data or its impact is significant, it may be necessary to recalculate the sampling adjustment value and make adjustments.
[0101] The technical effects of the above solution are as follows: The data acquisition and processing module and the calculation and adjustment module, through reasonable sampling rate and sampling time calibration, can ensure the accuracy and completeness of data acquisition while improving data acquisition efficiency. The calculation and labeling of the comprehensive sampling ratio quantifies the deviation of low-frequency signal sampling from the preset value. The cumulative monitoring module, through continuous cumulative monitoring and readjustment of abnormal sampling information, can promptly detect and process abnormal data, reducing its impact on the entire dataset. Reasonable sampling adjustment and anomaly handling mechanisms can enhance the stability and reliability of the system, ensuring the PLC controller can operate normally in complex environments.
[0102] 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 method for acquiring low-frequency signals during PLC operation, characterized in that, The method includes: Low-frequency signals are collected during the operation of the PLC controller. The sampling rate and sampling time of the collected information are proportionally calibrated, the comprehensive sampling ratio is calculated, the comprehensive sampling ratio is labeled, and comprehensive sampling information is obtained. The acquisition of low-frequency signals during the operation of the PLC controller includes: The low-frequency signals during the operation of the PLC controller are collected to obtain the collected information; The collected information is preprocessed to obtain a preprocessed low-frequency signal; Obtain the actual sampling rate and actual sampling time of the low-frequency signal and store them as low-frequency signal sampling information; The process of proportionally calibrating the sampling rate and sampling time of the collected information, calculating the comprehensive sampling ratio, labeling the comprehensive sampling ratio, and obtaining comprehensive sampling information includes: The sampling rate ratio of low-frequency signals is calibrated by comparing the actual sampling rate with the preset sampling rate. The sampling time ratio of low-frequency signals is calibrated by comparing the average sampling time during the operation of the PLC controller with the preset average sampling time. By combining sampling rate ratio calibration with sampling time ratio calibration, a comprehensive sampling information is obtained by performing comprehensive sampling calibration on low-frequency signals. The step of performing comprehensive sampling calibration on low-frequency signals by combining sampling rate ratio calibration with sampling time ratio calibration to obtain comprehensive sampling information includes: Calculate the sum of the sampling rate ratio and the sampling time ratio to obtain the overall sampling ratio; When the overall sampling ratio reaches the preset overall threshold, the sampling information of low-frequency signals is marked as abnormal sampling information; When the overall sampling ratio does not reach the preset overall threshold, the sampling information of low-frequency signals is marked as normal sampling information; The abnormal sampling information and the normal sampling information constitute the comprehensive sampling information; The low-frequency signal sampling adjustment value is calculated based on the comprehensive sampling information, and the sampling information of the low-frequency signal is adjusted to obtain the adjustment information; Continuous and cumulative monitoring of abnormal sampling information in the comprehensive sampling information is conducted, and the need to readjust the sampling information is determined based on the obtained monitoring data.
2. The method for acquiring low-frequency signals during PLC operation according to claim 1, characterized in that, The step of calculating the low-frequency signal sampling adjustment value based on the comprehensive sampling information, adjusting the sampling information of the low-frequency signal, and obtaining adjustment information includes: When the sampling information of a low-frequency signal is marked as abnormal sampling information, the average wavelength of the low-frequency signal of the abnormal sampling information is obtained. Calculate the low-frequency signal sampling adjustment value based on the average wavelength and the sampling information; The sampling information of the low-frequency signal is adjusted according to the low-frequency signal sampling adjustment value to obtain adjustment information.
3. The method for acquiring low-frequency signals during PLC operation according to claim 2, characterized in that, The low-frequency signal sampling adjustment value includes: The formula for calculating the low-frequency signal sampling adjustment value is as follows: Where DT is the low-frequency signal sampling adjustment value, Y t C is the preset adjustment value. vp Y represents the actual average sampling rate. vp C is the preset average sampling rate. sp Y represents the actual average sampling time. sp This is the preset average sampling time.
4. The method for acquiring low-frequency signals during PLC operation according to claim 2, characterized in that, The step of adjusting the sampling information of the low-frequency signal according to the low-frequency signal sampling adjustment value to obtain adjustment information includes: The low-frequency signal sampling adjustment value is compared with a preset adjustment threshold. When the low-frequency signal sampling adjustment value is higher than the preset adjustment threshold, the adjustment is lowered according to the low-frequency signal sampling adjustment value. When the low-frequency signal sampling adjustment value is lower than the preset adjustment threshold, the adjustment is increased according to the low-frequency signal sampling adjustment value to obtain adjustment information.
5. The method for acquiring low-frequency signals during PLC operation according to claim 1, characterized in that, The continuous cumulative monitoring of abnormal sampling information in the comprehensive sampling information, and the determination of whether to readjust the sampling information based on the obtained monitoring data, includes: The cumulative change value of abnormal sampling information is obtained, and the cumulative change value is compared with a preset cumulative threshold. When the cumulative change value is greater than the preset cumulative threshold, the low-frequency signal sampling adjustment value is recalculated and then readjusted. When the cumulative change value is less than or equal to the preset cumulative threshold, the abnormal sampling information is continuously monitored to obtain monitoring data.
6. The method for acquiring low-frequency signals during PLC operation according to claim 5, characterized in that, The cumulative change value includes: The formula for calculating the cumulative change value is as follows: Where LJ is the cumulative change value, ZCB is the comprehensive sampling ratio, YCB is the preset comprehensive threshold, and Δ(ZCB-YCB) is the increase in (ZCB-YCB). This represents the decrease in (ZCB-YCB).
7. A low-frequency signal acquisition system for PLC operation, characterized in that, The system includes: The data acquisition and processing module is used to acquire low-frequency signals during the operation of the PLC controller, calibrate the sampling rate and sampling time of the acquired information, calculate the comprehensive sampling ratio, label the comprehensive sampling ratio, and obtain comprehensive sampling information. The acquisition of low-frequency signals during the operation of the PLC controller includes: The low-frequency signals during the operation of the PLC controller are collected to obtain the collected information; The collected information is preprocessed to obtain a preprocessed low-frequency signal; Obtain the actual sampling rate and actual sampling time of the low-frequency signal and store them as low-frequency signal sampling information; The process of proportionally calibrating the sampling rate and sampling time of the collected information, calculating the comprehensive sampling ratio, labeling the comprehensive sampling ratio, and obtaining comprehensive sampling information includes: The sampling rate ratio of low-frequency signals is calibrated by comparing the actual sampling rate with the preset sampling rate. The sampling time ratio of low-frequency signals is calibrated by comparing the average sampling time during the operation of the PLC controller with the preset average sampling time. By combining sampling rate ratio calibration with sampling time ratio calibration, a comprehensive sampling information is obtained by performing comprehensive sampling calibration on low-frequency signals. The step of performing comprehensive sampling calibration on low-frequency signals by combining sampling rate ratio calibration with sampling time ratio calibration to obtain comprehensive sampling information includes: Calculate the sum of the sampling rate ratio and the sampling time ratio to obtain the overall sampling ratio; When the overall sampling ratio reaches the preset overall threshold, the sampling information of low-frequency signals is marked as abnormal sampling information; When the overall sampling ratio does not reach the preset overall threshold, the sampling information of low-frequency signals is marked as normal sampling information; The abnormal sampling information and the normal sampling information constitute the comprehensive sampling information; The calculation and adjustment module is used to calculate the low-frequency signal sampling adjustment value based on the comprehensive sampling information, adjust the sampling information of the low-frequency signal, and obtain the adjustment information. The cumulative monitoring module is used to continuously monitor abnormal sampling information in the comprehensive sampling information and determine whether to readjust the sampling information based on the obtained monitoring data.
Citation Information
Patent Citations
Digital measurement input for an electric automation device, electric automation device comprising a digital measurement input, and method for processing digital input measurement values
US20160329975A1