PLC operation high and low frequency signal multi-channel acquisition method, system and device
Through the calibration and targeted adjustment of multi-channel analog-to-digital converters, the problem of insufficient high and low frequency signal collection quality in traditional technology is solved, more accurate and reliable signal collection is achieved, and it can adapt to the needs of complex environments.
Patent Information
- Application Number
- CN202411004443.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-10-01
AI Technical Summary
Traditional multi-channel analog-to-digital converters are difficult to ensure the collection quality of high and low-frequency signals in complex environments, and lack targeted adjustment mechanisms, resulting in data inaccuracy and reliability issues.
By calibrating the multi-channel analog-to-digital converter, dividing high- and low-frequency acquisition channels based on historical information, calculating signal quality values, determining and adjusting abnormal peaks, achieving targeted adjustments and improving signal acquisition quality.
It improves the accuracy and reliability of high and low frequency signal collection, reduces noise and interference, adapts to the needs of different application scenarios, and enhances data processing efficiency and system stability.
Smart Images

Figure CN118740156A_ABST
Abstract
Description
Technical Field
[0001] The invention proposes a method, system and equipment for multi-channel acquisition of high and low frequency signals during PLC operation, and relates to the technical field of multi-channel acquisition of high and low frequency signals. Background Art
[0002] In modern electronic technology, the performance of analog-to-digital converter (ADC) as a key device connecting analog signals and digital signals has an important impact on the accuracy and stability of the overall system. Especially in multi-channel data acquisition systems, accurate acquisition and preprocessing of high and low frequency signals are crucial to ensure the normal operation of the system and the quality of data processing. Traditional multi-channel analog-to-digital converters usually lack accurate calibration and adaptive adjustment mechanisms for high and low frequency acquisition channels during data acquisition, which makes it difficult to ensure the acquisition quality of high and low frequency signals in complex environments, especially when the signal spectrum is widely distributed. In addition, when there are abnormal peaks in the collected data, traditional processing methods often lack pertinence and cannot effectively identify and solve the problem, thus affecting the accuracy and reliability of the data. Summary of the invention
[0003] The present invention provides a method, system and device for multi-channel acquisition of high and low frequency signals in PLC operation, which is used to solve the problem that traditional multi-channel analog-to-digital converters usually lack accurate calibration and adaptive adjustment mechanism for high and low frequency acquisition channels during data acquisition, resulting in difficulty in ensuring the acquisition quality of high and low frequency signals in complex environments, especially when the signal spectrum is widely distributed. In addition, when there are abnormal peaks in the collected data, traditional processing methods often lack pertinence and cannot effectively identify and solve the problem, thereby affecting the accuracy and reliability of the data. The present invention proposes a method, system and device for multi-channel acquisition of high and low frequency signals during PLC operation, the method comprising: S1. Calibrate high and low frequency acquisition channels of a multi-channel analog-to-digital converter according to historical information, collect and preprocess high and low frequency signals through the high and low frequency acquisition channels, and obtain high and low frequency acquisition data; S2. Calculate the acquisition quality value of the low-frequency signal, determine the quality of the low-frequency signal, determine whether there is an abnormal peak in the low-frequency sampling data according to the obtained low-frequency determination result, perform targeted adjustment according to the determination result, and obtain low-frequency adjustment information; S3. Calculate the acquisition quality value of the high-frequency signal, determine the quality of the high-frequency signal, determine whether there is an abnormal peak in the high-frequency sampling data based on the obtained high-frequency determination result, make targeted adjustments based on the determination result, and obtain high-frequency adjustment information.
[0004] Furthermore, the high and low frequency acquisition channels of the multi-channel analog-to-digital converter are calibrated according to the historical information, and the high and low frequency acquisition channels are used to acquire and preprocess the high and low frequency signals to obtain the high and low frequency acquisition data, including: The signal processing channels of the multi-channel analog-to-digital converter are classified according to the types of high-frequency signals and low-frequency signals to obtain high-frequency acquisition channels and low-frequency acquisition channels; The high-frequency signal is collected through the high-frequency collection channel to obtain high-frequency collection information; The low-frequency signal is collected through the low-frequency collection channel to obtain low-frequency collection information; The high-frequency acquisition information and the low-frequency acquisition information are preprocessed respectively to obtain high-frequency acquisition data and low-frequency acquisition data.
[0005] Furthermore, the signal processing channels of the multi-channel analog-to-digital converter are classified according to the types of high-frequency signals and low-frequency signals to obtain high-frequency acquisition channels and low-frequency acquisition channels, including: Obtain the maximum bandwidth requirement information of the historical high-frequency signal, the maximum bandwidth requirement information of the historical low-frequency signal, and multi-channel bandwidth information; Obtaining the bandwidth that satisfies the maximum value of the bandwidth requirement information of the historical high-frequency signal from the multi-channel bandwidth information, and the channel whose bandwidth has the smallest difference with the bandwidth is marked as the high-frequency acquisition channel; The bandwidth that satisfies the maximum value of the bandwidth requirement information of the historical low-frequency signal is obtained from the multi-channel bandwidth information, and the channel whose bandwidth has the smallest difference with the bandwidth is marked as the low-frequency acquisition channel.
[0006] Further, the calculating of the acquisition quality value of the low-frequency signal, determining the quality of the low-frequency signal, determining whether there is an abnormal peak in the low-frequency sampling data according to the obtained low-frequency determination result, and making targeted adjustments according to the determination result to obtain low-frequency adjustment information include: Acquire characteristic information of low-frequency sampling data, and calculate an acquisition quality value of the low-frequency signal according to the characteristic information; Comparing the acquisition quality value of the low-frequency signal with a preset low-frequency threshold to obtain a low-frequency comparison result; Determine the quality of the low-frequency signal according to the low-frequency comparison result to obtain a low-frequency determination result; The low-frequency signal sampling parameters are adjusted according to the low-frequency determination result to obtain low-frequency adjustment information.
[0007] Further, adjusting the low-frequency signal sampling parameter according to the low-frequency determination result to obtain low-frequency adjustment information includes: When the low-frequency determination result is unqualified, obtain whether there is an abnormal peak in the signal spectrum or fluctuation in the low-frequency sampling data; When there are abnormal peaks in the signal spectrum or fluctuation in the low-frequency sampling data, the high-frequency signal and the low-frequency signal are physically isolated, and the sampling quality value of the low-frequency signal is recalculated and compared until the low-frequency judgment result is qualified; When there is no abnormal peak in the signal spectrum or fluctuation in the low-frequency sampling data, after the low-frequency signal sampling parameters are initialized, the sampling quality value of the low-frequency signal is recalculated and compared until the low-frequency judgment result is qualified.
[0008] Further, the high-frequency signal acquisition quality value is calculated, the high-frequency signal quality is determined, and whether there is an abnormal peak in the high-frequency sampling data is determined according to the obtained high-frequency determination result, and targeted adjustments are made according to the determination result to obtain high-frequency adjustment information, including: Acquire characteristic information of high-frequency sampling data, and calculate an acquisition quality value of the high-frequency signal according to the characteristic information; Comparing the acquisition quality value of the high-frequency signal with a preset high-frequency threshold to obtain a high-frequency comparison result; Determine the quality of the high-frequency signal according to the high-frequency comparison result to obtain a high-frequency determination result; The high-frequency signal sampling parameters are adjusted according to the high-frequency determination result to obtain high-frequency adjustment information.
[0009] Further, the adjusting the high-frequency signal sampling parameters according to the high-frequency determination result to obtain high-frequency adjustment information includes: When the high-frequency determination result is unqualified, obtaining whether there is an abnormal peak in the signal spectrum or fluctuation in the high-frequency sampling data; When there are abnormal peaks in the signal spectrum or fluctuations in the high-frequency sampling data, the high-frequency signal and the low-frequency signal are physically isolated, and the sampling quality value of the high-frequency signal is recalculated and compared until the high-frequency judgment result is qualified; When there is no abnormal peak in the signal spectrum or fluctuation in the high-frequency sampling data, after the high-frequency signal sampling parameters are initialized, the sampling quality value of the high-frequency signal is recalculated and compared until the high-frequency judgment result is qualified.
[0010] Furthermore, the sampling quality value includes: The calculation formula of the sampling quality value of the low-frequency signal is:
[0011] in, is the sampling quality value of the low-frequency signal, is the average power of the low frequency signal, is the average power of the noise signal, is the low frequency signal bandwidth, is the low-frequency acquisition channel bandwidth, is the maximum data of the low-frequency sampling signal, is the minimum data of low-frequency sampling signal, Preset sampling frequency for low frequency signals, is the actual sampling frequency of the low-frequency signal, , and is the weight coefficient; The calculation formula of the sampling quality value of the high-frequency signal is:
[0012] in, is the sampling quality value of the high-frequency signal, is the average power of the high frequency signal, is the average power of the noise signal, is the high frequency signal bandwidth, is the high-frequency acquisition channel bandwidth, is the maximum data of high-frequency sampling signal, is the minimum data of high-frequency sampling signal, Preset sampling frequency for high frequency signals, is the actual sampling frequency of the high-frequency signal, , and is the weight coefficient.
[0013] Furthermore, the system comprises: The channel acquisition module is used to calibrate the high and low frequency acquisition channels of the multi-channel analog-to-digital converter according to historical information, collect and pre-process the high and low frequency signals through the high and low frequency acquisition channels, and obtain high and low frequency acquisition data; The low-frequency acquisition and adjustment module is used to calculate the acquisition quality value of the low-frequency signal, determine the quality of the low-frequency signal, determine whether there is an abnormal peak in the low-frequency sampling data according to the obtained low-frequency determination result, and make targeted adjustments according to the determination result to obtain low-frequency adjustment information; The high-frequency acquisition and adjustment module is used to calculate the acquisition quality value of the high-frequency signal, determine the quality of the high-frequency signal, determine whether there is an abnormal peak in the high-frequency sampling data based on the obtained high-frequency determination result, perform targeted adjustments based on the determination result, and obtain high-frequency adjustment information.
[0014] The device comprises a PLC controller and a multi-channel analog-to-digital converter, wherein the PLC controller is connected to the multi-channel analog-to-digital converter in a two-way communication manner.
[0015] Beneficial effects of the present invention: Through the calibration and targeted adjustment of the multi-channel ADC, the system can more accurately collect high and low frequency signals and reduce errors and distortions. Preprocessing and targeted adjustment can eliminate or reduce noise, interference and other unnecessary components in the signal and improve signal quality. The system can be flexibly adjusted according to the characteristics and quality requirements of different signals to meet the needs of different application scenarios. At the same time, through real-time monitoring and adjustment, the system can timely discover and solve problems to ensure the accuracy and reliability of collected data. Optimizing signal quality in the acquisition and preprocessing stages can reduce the workload of subsequent data processing and analysis and improve data processing efficiency. The multi-channel ADC can collect multiple analog signals at the same time, which improves the efficiency and accuracy of data acquisition. The two-way communication connection between the PLC controller and the ADC ensures the real-time transmission and processing of data, so that the system can respond quickly to external changes. The PLC controller can configure the parameters of the ADC through programming to meet the needs of different signal sources. The system can be flexibly configured according to the actual application scenario to meet different data acquisition and control requirements. The PLC controller has high reliability and stability and can operate stably for a long time in a harsh industrial environment. Multi-channel ADC uses digital signal processing technology to reduce noise and interference in analog signal transmission and improve data reliability. PLC controllers usually have standard communication interfaces and programming interfaces, which are easy to integrate with other devices and systems. By adding more ADC channels or connecting other devices, the system can easily expand its functions and application scope. PLC controllers can automatically adjust control parameters or execute control commands based on the collected data to achieve automated control. This reduces the need for manual intervention and improves production efficiency and product quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A schematic diagram of a multi-channel acquisition method for high and low frequency signals of PLC operation; Figure 2 This is a schematic diagram of a multi-channel acquisition system for high and low frequency signals running on a PLC. DETAILED DESCRIPTION
[0017] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0018] In one embodiment of the present invention, a method, system and device for multi-channel acquisition of high and low frequency signals during PLC operation are provided. The method comprises: S1. Calibrate high and low frequency acquisition channels of a multi-channel analog-to-digital converter according to historical information, collect and preprocess high and low frequency signals through the high and low frequency acquisition channels, and obtain high and low frequency acquisition data; S2. Calculate the acquisition quality value of the low-frequency signal, determine the quality of the low-frequency signal, determine whether there is an abnormal peak in the low-frequency sampling data according to the obtained low-frequency determination result, perform targeted adjustment according to the determination result, and obtain low-frequency adjustment information; S3. Calculate the acquisition quality value of the high-frequency signal, determine the quality of the high-frequency signal, determine whether there is an abnormal peak in the high-frequency sampling data based on the obtained high-frequency determination result, make targeted adjustments based on the determination result, and obtain high-frequency adjustment information.
[0019] The working principle of the above technical solution is: calibrate the multi-channel ADC according to historical information to determine the exclusive purpose and parameters of each channel. The calibration process includes calibrating the channel purpose and adjusting the ADC's gain, offset, bandwidth and other parameters to optimize its response to signals of different frequencies. Through the calibrated high and low frequency acquisition channels, the system simultaneously acquires high and low frequency signals. The acquired signals may contain noise, interference or other unnecessary components, so preprocessing is required, such as filtering, amplification, digitization, etc. The high and low frequency acquisition data obtained after preprocessing will be used for subsequent quality evaluation and analysis. Calculate the acquisition quality value of the low frequency signal, and judge the quality of the low frequency signal based on the quality value to determine whether there are abnormal peaks or quality problems.
[0020] If there is an abnormality, the system will make targeted adjustments based on the judgment results. Similar to low-frequency signals, the system will also calculate the acquisition quality value of high-frequency signals and make judgments. If there is an abnormality in the high-frequency signal, the system will also make targeted adjustments, but the adjustment parameters and methods are different from those of low-frequency signals.
[0021] The technical effect of the above technical solution is: through the calibration and targeted adjustment of the multi-channel ADC, the system can more accurately collect high and low frequency signals and reduce errors and distortions. Preprocessing and targeted adjustment can eliminate or reduce noise, interference and other unnecessary components in the signal and improve signal quality. The system can be flexibly adjusted according to the characteristics and quality requirements of different signals to meet the needs of different application scenarios. At the same time, through real-time monitoring and adjustment, the system can promptly discover and solve problems to ensure the accuracy and reliability of the collected data. Optimizing signal quality in the acquisition and preprocessing stages can reduce the workload of subsequent data processing and analysis and improve data processing efficiency.
[0022] In one embodiment of the present invention, the method of calibrating high and low frequency acquisition channels of a multi-channel analog-to-digital converter according to historical information, acquiring and preprocessing high and low frequency signals through the high and low frequency acquisition channels, and obtaining high and low frequency acquisition data includes: The signal processing channels of the multi-channel analog-to-digital converter are classified according to the types of high-frequency signals and low-frequency signals to obtain high-frequency acquisition channels and low-frequency acquisition channels; The high-frequency signal is collected through the high-frequency collection channel to obtain high-frequency collection information; The low-frequency signal is collected through the low-frequency collection channel to obtain low-frequency collection information; The high-frequency acquisition information and the low-frequency acquisition information are preprocessed respectively to obtain high-frequency acquisition data and low-frequency acquisition data.
[0023] The working principle of the above technical solution is: according to the characteristics of the signal frequency, the signal processing channels of the multi-channel analog-to-digital converter (ADC) are classified. This is usually achieved by configuring the channel parameters and filter settings of the ADC to ensure that each channel can collect high-frequency or low-frequency signals in a targeted manner. Such classification divides the channels of the ADC into high-frequency acquisition channels and low-frequency acquisition channels. High-frequency acquisition channels are specially configured to capture high-frequency signals. These channels usually have higher sampling rates and bandwidths to ensure that changes in high-frequency signals can be accurately captured. High-frequency signals are digitally converted through high-frequency acquisition channels to form high-frequency acquisition information. In contrast to high-frequency signals, low-frequency signals are collected through low-frequency acquisition channels. These channels may be configured to have lower sampling rates and bandwidths to optimize the acquisition effect of low-frequency signals. After the low-frequency signal is digitally converted, low-frequency acquisition information is formed. High-frequency acquisition information and low-frequency acquisition information usually need to be preprocessed before further processing. Preprocessing may include steps such as filtering, amplification, and noise suppression, aiming to remove unnecessary noise and interference and improve the quality of the signal. After preprocessing, the high-frequency acquisition information and the low-frequency acquisition information are converted into high-frequency acquisition data and low-frequency acquisition data, respectively.
[0024] The technical effect of the above technical solution is: by performing special channel configuration and acquisition according to the different characteristics of high-frequency and low-frequency signals, the signal acquisition quality can be significantly improved. The high-frequency channel can accurately capture the changes of high-frequency signals, while the low-frequency channel can optimize the acquisition effect of low-frequency signals. The classified high-frequency and low-frequency signals can be processed separately in a targeted manner during the preprocessing process. This helps to remove noise and interference in their respective frequency bands and improve the signal-to-noise ratio and reliability of the data. Since the high-frequency and low-frequency signals are processed separately, the system can use resources more effectively. The high-frequency channel and the low-frequency channel can work in parallel to improve the efficiency of data acquisition and processing. The system can flexibly configure the parameters of the high-frequency and low-frequency channels according to different application requirements. This flexibility enables the system to adapt to different signal acquisition requirements and improves the versatility and scalability of the system. By optimizing the configuration and processing flow of the high-frequency and low-frequency channels, the overall cost of the system can be reduced. For example, by reducing unnecessary sampling rates and bandwidths, the power consumption and cost of ADCs can be reduced.
[0025] In one embodiment of the present invention, the signal processing channels of the multi-channel analog-to-digital converter are classified according to the types of high-frequency signals and low-frequency signals to obtain high-frequency acquisition channels and low-frequency acquisition channels, including: Obtain the maximum bandwidth requirement information of the historical high-frequency signal, the maximum bandwidth requirement information of the historical low-frequency signal, and multi-channel bandwidth information; Obtaining the bandwidth that satisfies the maximum value of the bandwidth requirement information of the historical high-frequency signal from the multi-channel bandwidth information, and the channel whose bandwidth has the smallest difference with the bandwidth is marked as the high-frequency acquisition channel; The bandwidth that satisfies the maximum value of the bandwidth requirement information of the historical low-frequency signal is obtained from the multi-channel bandwidth information, and the channel whose bandwidth has the smallest difference with the bandwidth is marked as the low-frequency acquisition channel.
[0026] The working principle of the above technical solution is as follows: the system collects bandwidth requirement information of historical high-frequency signals and low-frequency signals. This information usually comes from past signal acquisition records or parameters set by users, reflecting the bandwidth requirements of signals in specific application scenarios. From the collected historical bandwidth requirement information, the system determines the maximum bandwidth requirement information of high-frequency signals and low-frequency signals. These maximum values represent the upper limit of the signal bandwidth requirements in the historical records and are an important basis for configuring the acquisition channel bandwidth. The system matches the channel that meets the maximum value of the historical bandwidth requirement information based on the multi-channel bandwidth information, that is, the bandwidth range available for each channel. This process involves finding a channel that can cover (or approach) the maximum bandwidth requirement and considering the difference between the channel bandwidth and the maximum bandwidth requirement. In the matching process, the system first looks for a channel that meets the maximum value of the historical high-frequency signal bandwidth requirement information, and selects the channel with the smallest difference between the bandwidth and the maximum bandwidth requirement as the high-frequency acquisition channel. Then, according to the same logic, the channel that meets the maximum value of the historical low-frequency signal bandwidth requirement information is selected as the low-frequency acquisition channel.
[0027] The technical effect of the above technical solution is: by matching the historical bandwidth demand information with the channel bandwidth information, the system can ensure that each channel is optimally configured with resources. The configuration of the high-frequency acquisition channel and the low-frequency acquisition channel are based on the actual bandwidth demand, thereby avoiding waste or shortage of resources. Since both the high-frequency acquisition channel and the low-frequency acquisition channel are configured with sufficient bandwidth, the system can more accurately capture the changes of high-frequency and low-frequency signals, thereby improving the quality of signal acquisition. This is particularly important for application scenarios that require precise signal analysis. By dynamically configuring the acquisition channel according to the historical bandwidth demand information, the system can adapt to the signal acquisition requirements in different application scenarios. This flexibility enables the system to process multiple types of signals, rather than just optimizing for specific types of signals. Since the system can configure channels according to actual bandwidth requirements, unnecessary hardware upgrades or expansions can be avoided. This helps to reduce the overall cost of the system, especially in application scenarios where bandwidth requirements change frequently or diversely. Through the automated bandwidth matching and channel calibration process, system configuration becomes simpler and more intuitive. Instead of manually adjusting the bandwidth settings of each channel, users can quickly configure based on historical data and system recommendations. This reduces the difficulty and complexity of system configuration and improves the ease of use of the system.
[0028] In one embodiment of the present invention, the step of calculating the acquisition quality value of the low-frequency signal, determining the quality of the low-frequency signal, determining whether there is an abnormal peak in the low-frequency sampling data according to the obtained low-frequency determination result, and performing targeted adjustment according to the determination result to obtain the low-frequency adjustment information includes: Acquire characteristic information of low-frequency sampling data, and calculate an acquisition quality value of the low-frequency signal according to the characteristic information; Comparing the acquisition quality value of the low-frequency signal with a preset low-frequency threshold to obtain a low-frequency comparison result; Determine the quality of the low-frequency signal according to the low-frequency comparison result to obtain a low-frequency determination result; The low-frequency signal sampling parameters are adjusted according to the low-frequency determination result to obtain low-frequency adjustment information.
[0029] The working principle of the above technical solution is: obtaining characteristic information of low-frequency sampling data, and calculating the acquisition quality value of the low-frequency signal based on the characteristic information; the characteristic information includes information such as sampling frequency, signal-to-noise ratio, sampling accuracy and dynamic range.
[0030] Comparing the acquisition quality value of the low-frequency signal with a preset low-frequency threshold to obtain a low-frequency comparison result; Determine the quality of the low-frequency signal according to the low-frequency comparison result to obtain a low-frequency determination result; When the acquisition quality value of the low-frequency signal exceeds the preset low-frequency threshold, the low-frequency signal quality is determined to be in a qualified state; When the acquisition quality value of the low-frequency signal does not exceed the preset low-frequency threshold, the low-frequency signal quality is determined to be unqualified; The low-frequency signal sampling parameters are adjusted according to the low-frequency determination result to obtain low-frequency adjustment information.
[0031] The technical effect of the above technical solution is: by collecting characteristic information of low-frequency sampling data (such as sampling frequency, signal-to-noise ratio, sampling accuracy and dynamic range, etc.), the system can accurately evaluate the acquisition quality of low-frequency signals. These characteristic information comprehensively reflects all aspects of the signal acquisition process, thereby ensuring the accuracy and reliability of the evaluation results. By comparing the acquisition quality value of the low-frequency signal with the preset low-frequency threshold, the system can promptly discover potential problems in the acquisition process. When the acquisition quality value is lower than the threshold, the system can determine that the low-frequency signal quality is unqualified, thereby triggering the corresponding fault handling mechanism. According to the low-frequency determination result, the system can automatically adjust the sampling parameters of the low-frequency signal. This intelligent parameter adjustment mechanism can optimize the sampling process according to actual conditions and improve the efficiency and accuracy of signal acquisition. By continuously adjusting the sampling parameters, the system can gradually approach the optimal sampling state, thereby improving the acquisition quality of the low-frequency signal. By continuously monitoring and adjusting the acquisition quality of the low-frequency signal, the system can maintain a stable operating state. Even in a complex and changing working environment, the system can respond to various challenges through self-adjustment to ensure the accuracy and reliability of signal acquisition. Through intelligent parameter adjustment and fault detection mechanisms, the system can reduce the need for human intervention and reduce maintenance costs. At the same time, because the system can detect and solve problems in a timely manner, it can avoid risks such as equipment damage or data loss caused by long-term operation. For application scenarios that rely on low-frequency signals for control and monitoring (such as industrial automation, environmental monitoring, etc.), improving the acquisition quality of low-frequency signals can enhance the user experience. Accurate signal data can provide users with more reliable decision support and improve production efficiency and safety.
[0032] In one embodiment of the present invention, the step of adjusting the low-frequency signal sampling parameter according to the low-frequency determination result to obtain the low-frequency adjustment information includes: When the low-frequency determination result is unqualified, obtain whether there is an abnormal peak in the signal spectrum or fluctuation in the low-frequency sampling data; When there are abnormal peaks in the signal spectrum or fluctuation in the low-frequency sampling data, the high-frequency signal and the low-frequency signal are physically isolated, and the sampling quality value of the low-frequency signal is recalculated and compared until the low-frequency judgment result is qualified; When there is no abnormal peak in the signal spectrum or fluctuation in the low-frequency sampling data, after the low-frequency signal sampling parameters are initialized, the sampling quality value of the low-frequency signal is recalculated and compared until the low-frequency judgment result is qualified.
[0033] The working principle of the above technical solution is: when the low-frequency determination result is an unqualified state, obtain whether there is an abnormal peak in the signal spectrum or fluctuation in the low-frequency sampling data (that is, the actual peak is greater than or less than the preset peak range); When there are abnormal peaks in the signal spectrum or fluctuations in the low-frequency sampling data, the high-frequency signal and the low-frequency signal are physically isolated (for example, the high-frequency acquisition channel and the low-frequency acquisition channel are physically isolated, or an independent ADC module or a digital isolator is used), and then the sampling quality value of the low-frequency signal is recalculated and compared until the low-frequency judgment result is qualified; When there is no abnormal peak in the signal spectrum or fluctuation in the low-frequency sampling data, after the low-frequency signal sampling parameters are initialized, the sampling quality value of the low-frequency signal is recalculated and compared until the low-frequency judgment result is qualified.
[0034] The technical effect of the above technical solution is: by analyzing the signal spectrum or fluctuation in the low-frequency sampling data, the system can accurately detect whether there is an abnormal peak. This abnormal peak may be caused by the interference problem between high frequency and low frequency, which has a direct impact on the signal quality. When an abnormal peak is detected, the interference of the high frequency signal on the low frequency signal can be significantly reduced by physically isolating the high frequency signal and the low frequency signal (such as using an independent ADC module or digital isolator). This physical isolation measure can significantly improve the acquisition quality of the low frequency signal and ensure the accuracy and reliability of the data. After taking physical isolation measures or reinitializing the sampling parameters, the system will recalculate and compare the sampling quality value of the low frequency signal. This iterative process can ensure that the acquisition quality of the low frequency signal is continuously improved until it reaches a qualified state. This feedback mechanism helps the system to self-optimize and improve overall performance. By timely discovering and processing abnormal peaks in low frequency signals, the system can reduce the failure rate caused by signal quality problems. This helps to improve the stability and reliability of the system and reduce downtime and maintenance costs caused by signal problems. This process is not only applicable to low frequency signals, but can also be extended to other types of signals. By taking different processing measures according to different types of signals, the system can enhance its adaptability to complex environments and improve overall performance. For application scenarios that rely on low-frequency signals for control and monitoring, improving the acquisition quality of low-frequency signals can provide more accurate and reliable data support. This helps users make more informed decisions, improve production efficiency and safety, and thus enhance user experience.
[0035] In one embodiment of the present invention, the high-frequency signal acquisition quality value is calculated, the high-frequency signal quality is determined, whether there is an abnormal peak in the high-frequency sampling data is determined according to the obtained high-frequency determination result, and targeted adjustments are made according to the determination result to obtain high-frequency adjustment information, including: Acquire characteristic information of high-frequency sampling data, and calculate an acquisition quality value of the high-frequency signal according to the characteristic information; Comparing the acquisition quality value of the high-frequency signal with a preset high-frequency threshold to obtain a high-frequency comparison result; Determine the quality of the high-frequency signal according to the high-frequency comparison result to obtain a high-frequency determination result; The high-frequency signal sampling parameters are adjusted according to the high-frequency determination result to obtain high-frequency adjustment information.
[0036] The working principle of the above technical solution is: obtain the characteristic information of high-frequency sampling data, and calculate the acquisition quality value of the high-frequency signal based on the characteristic information; the characteristic information includes information such as sampling frequency, signal-to-noise ratio, sampling accuracy and dynamic range.
[0037] Comparing the acquisition quality value of the high-frequency signal with a preset high-frequency threshold to obtain a high-frequency comparison result; Determine the quality of the high-frequency signal according to the high-frequency comparison result to obtain a high-frequency determination result; When the acquisition quality value of the high-frequency signal exceeds the preset high-frequency threshold, the high-frequency signal quality is determined to be in a qualified state; When the acquisition quality value of the high-frequency signal does not exceed the preset high-frequency threshold, the high-frequency signal quality is determined to be unqualified; The high-frequency signal sampling parameters are adjusted according to the high-frequency determination result to obtain high-frequency adjustment information.
[0038] The technical effect of the above technical solution is: through real-time calculation and comparison of the high-frequency signal acquisition quality, the system can timely discover problems in the acquisition process and ensure the quality and reliability of the high-frequency signal data. According to the high-frequency determination result, the system can automatically adjust the sampling parameters of the high-frequency signal to achieve intelligent optimization of the acquisition process. This automated adjustment method can reduce the need for manual intervention and improve the automation level of the system. By optimizing the sampling parameters of the high-frequency signal, the system can improve the acquisition efficiency of the high-frequency signal and reduce unnecessary waste of resources. At the same time, the optimized acquisition parameters can ensure the accuracy and reliability of the high-frequency signal data and improve the overall performance of the system. Through continuous monitoring and adjustment of the high-frequency signal acquisition quality, the system can maintain a stable operating state. Even in a complex and changing working environment, the system can respond to various challenges through self-adjustment to ensure the stability and reliability of the high-frequency signal data. Since the system can automatically monitor and adjust the acquisition quality of the high-frequency signal, the frequency of manual inspection and maintenance can be reduced, and the maintenance cost can be reduced. At the same time, since the system can detect and solve problems in a timely manner, the risks of equipment damage or data loss caused by long-term operation can be avoided.
[0039] In one embodiment of the present invention, the step of adjusting the high-frequency signal sampling parameter according to the high-frequency determination result to obtain the high-frequency adjustment information includes: When the high-frequency determination result is unqualified, obtaining whether there is an abnormal peak in the signal spectrum or fluctuation in the high-frequency sampling data; When there are abnormal peaks in the signal spectrum or fluctuations in the high-frequency sampling data, the high-frequency signal and the low-frequency signal are physically isolated, and the sampling quality value of the high-frequency signal is recalculated and compared until the high-frequency judgment result is qualified; When there is no abnormal peak in the signal spectrum or fluctuation in the high-frequency sampling data, after the high-frequency signal sampling parameters are initialized, the sampling quality value of the high-frequency signal is recalculated and compared until the high-frequency judgment result is qualified.
[0040] The working principle of the above technical solution is: when the high-frequency judgment result is an unqualified state, obtain whether there is an abnormal peak in the signal spectrum or fluctuation in the high-frequency sampling data (that is, the actual peak is greater than or less than the preset peak range); when there is an abnormal peak in the signal spectrum or fluctuation in the high-frequency sampling data, the high-frequency signal and the low-frequency signal are physically isolated (for example, the high-frequency acquisition channel and the low-frequency acquisition channel are physically isolated, and other measures are also taken, such as using an independent ADC module or connecting and turning on a digital isolator), and then the sampling quality value of the high-frequency signal is recalculated and compared until the high-frequency judgment result is a qualified state; when there is no abnormal peak in the signal spectrum or fluctuation in the high-frequency sampling data, after the high-frequency signal sampling parameters are initialized, the sampling quality value of the high-frequency signal is recalculated and compared until the high-frequency judgment result is a qualified state.
[0041] The technical effect of the above technical solution is: when the high-frequency determination result is unqualified, the system first checks whether there are abnormal peaks in the signal spectrum or fluctuation in the high-frequency sampling data. This precise problem diagnosis method can quickly locate the root cause of the degradation of the high-frequency signal quality and provide an accurate direction for subsequent solutions. If an abnormal peak is detected in the signal spectrum or fluctuation in the high-frequency sampling data, the system reduces the interference between the high-frequency signal and the low-frequency signal by physically isolating the high-frequency signal and the low-frequency signal. This physical isolation measure can significantly reduce the impact of noise and other interference sources on the high-frequency signal, thereby significantly improving the acquisition quality of the high-frequency signal. After taking physical isolation measures or reinitializing the sampling parameters, the system recalculates and compares the sampling quality value of the high-frequency signal. This iterative process can ensure that the acquisition quality of the high-frequency signal is continuously improved until it reaches a qualified state. Through continuous recalculation and comparison, the system can ensure that the acquisition quality of the high-frequency signal meets the preset standards. By timely discovering and processing abnormal peaks in high-frequency signals and taking corresponding isolation or initialization measures, the system can significantly improve its own reliability and stability. This helps to reduce system failures and downtime caused by signal quality problems. Since the system can automatically detect and process abnormal peaks in high-frequency signals and take corresponding isolation or initialization measures, the frequency of manual inspections and repairs can be reduced. This not only reduces maintenance costs, but also improves the automation level and operating efficiency of the system. For application scenarios that rely on high-frequency signals for control and monitoring, improving the acquisition quality of high-frequency signals can provide more accurate and reliable data support. This helps users make more informed decisions and improve production efficiency and safety.
[0042] In one embodiment of the present invention, the sampling quality value includes: The calculation formula of the sampling quality value of the low-frequency signal is:
[0043] in, is the sampling quality value of the low-frequency signal, is the average power of the low frequency signal, is the average power of the noise signal, is the low frequency signal bandwidth, is the low-frequency acquisition channel bandwidth, is the maximum data of the low-frequency sampling signal, is the minimum data of low-frequency sampling signal, Preset sampling frequency for low frequency signals, is the actual sampling frequency of the low-frequency signal, , and is the weight coefficient, the sum of which is greater than 0 and less than or equal to 1; The calculation formula of the sampling quality value of the high-frequency signal is:
[0044] in, is the sampling quality value of the high-frequency signal, is the average power of the high frequency signal, is the average power of the noise signal, is the high frequency signal bandwidth, is the high-frequency acquisition channel bandwidth, is the maximum data of high-frequency sampling signal, is the minimum data of high-frequency sampling signal, Preset sampling frequency for high frequency signals, is the actual sampling frequency of the high-frequency signal, , and is the weight coefficient, the sum of which is greater than 0 and less than or equal to 1.
[0045] The working principle of the above technical solution is as follows: by comparing the average power of the signal with the average power of the noise, the signal-to-noise ratio of the signal can be evaluated, which is an important indicator of signal quality. The matching degree between the signal bandwidth and the acquisition channel bandwidth reflects the adaptability of the channel to the signal. When the signal bandwidth exceeds the channel bandwidth, signal distortion may occur. By considering the maximum and minimum data of the sampled signal, the dynamic range and distribution of the sampled data can be evaluated, which helps to detect potential signal anomalies or distortions. The comparison between the preset sampling frequency and the actual sampling frequency can evaluate the accuracy and stability of the sampling process. When the actual sampling frequency is lower than the preset value, signal loss or aliasing may occur. The weight coefficient is a weight coefficient used to balance the importance of different parameters in the sampling quality assessment. These coefficients can be adjusted according to specific application requirements.
[0046] The technical effect of the above technical solution is: by combining these parameters in one formula, the sampling quality of low-frequency and high-frequency signals can be quantitatively evaluated, providing an objective basis for the optimization of signal processing and acquisition systems. The formula takes into account multiple factors that affect the sampling quality, including signal power, noise, bandwidth, sampling data range and sampling frequency, etc., which can more comprehensively reflect the performance of the sampling process. By adjusting the weight coefficient, the importance of different parameters in the sampling quality evaluation can be balanced according to specific application requirements, and the flexibility and accuracy of the evaluation can be improved. Based on the evaluation results of the sampling quality, the signal processing and acquisition system can be optimized and improved to improve the performance and reliability of the system. These formulas provide a method for quantitatively evaluating the sampling quality of low-frequency and high-frequency signals. By comprehensively considering multiple parameters and weight coefficients, it can more accurately reflect the performance of the sampling process and provide guidance for the optimization and improvement of the system.
[0047] In one embodiment of the present invention, the system comprises: The channel acquisition module is used to calibrate the high and low frequency acquisition channels of the multi-channel analog-to-digital converter according to historical information, collect and pre-process the high and low frequency signals through the high and low frequency acquisition channels, and obtain high and low frequency acquisition data; The low-frequency acquisition and adjustment module is used to calculate the acquisition quality value of the low-frequency signal, determine the quality of the low-frequency signal, determine whether there is an abnormal peak in the low-frequency sampling data according to the obtained low-frequency determination result, and make targeted adjustments according to the determination result to obtain low-frequency adjustment information; The high-frequency acquisition and adjustment module is used to calculate the acquisition quality value of the high-frequency signal, determine the quality of the high-frequency signal, determine whether there is an abnormal peak in the high-frequency sampling data based on the obtained high-frequency determination result, perform targeted adjustments based on the determination result, and obtain high-frequency adjustment information.
[0048] The device comprises a PLC controller and a multi-channel analog-to-digital converter, wherein the PLC controller is connected to the multi-channel analog-to-digital converter in a two-way communication manner.
[0049] The working principle of the above technical solution is: calibrate the multi-channel ADC according to historical information to determine the exclusive purpose and parameters of each channel. The calibration process includes calibrating the channel purpose and adjusting the ADC's gain, offset, bandwidth and other parameters to optimize its response to signals of different frequencies. Through the calibrated high and low frequency acquisition channels, the system simultaneously acquires high and low frequency signals. The acquired signals may contain noise, interference or other unnecessary components, so preprocessing is required, such as filtering, amplification, digitization, etc. The high and low frequency acquisition data obtained after preprocessing will be used for subsequent quality evaluation and analysis. Calculate the acquisition quality value of the low frequency signal, and judge the quality of the low frequency signal based on the quality value to determine whether there are abnormal peaks or quality problems.
[0050] If there is an abnormality, the system will make targeted adjustments based on the judgment results. Similar to low-frequency signals, the system will also calculate the acquisition quality value of high-frequency signals and make judgments. If there is an abnormality in the high-frequency signal, the system will also make targeted adjustments, but the adjustment parameters and methods are different from those of low-frequency signals. The PLC controller and the multi-channel ADC are connected through appropriate interfaces (such as serial communication interface, digital bus, etc.) to ensure that data can be reliably transmitted between the two. The multi-channel ADC is responsible for converting analog signals from different analog signal sources into digital signals. Each channel can be independently configured to match the amplitude and frequency characteristics of different signals. The PLC controller sends control commands to the ADC to start or stop data acquisition and set ADC parameters (such as sampling rate, resolution, etc.). The ADC sends the collected digital signals to the PLC controller through the communication interface.
[0051] The technical effect of the above technical solution is: through the calibration and targeted adjustment of the multi-channel ADC, the system can more accurately collect high and low frequency signals and reduce errors and distortions. Preprocessing and targeted adjustment can eliminate or reduce noise, interference and other unnecessary components in the signal and improve signal quality. The system can be flexibly adjusted according to the characteristics and quality requirements of different signals to meet the needs of different application scenarios. At the same time, through real-time monitoring and adjustment, the system can timely discover and solve problems to ensure the accuracy and reliability of the collected data. Optimizing signal quality in the acquisition and preprocessing stages can reduce the workload of subsequent data processing and analysis and improve data processing efficiency. The multi-channel ADC can collect multiple analog signals at the same time, which improves the efficiency and accuracy of data acquisition. The two-way communication connection between the PLC controller and the ADC ensures the real-time transmission and processing of data, so that the system can respond quickly to external changes. The PLC controller can configure the parameters of the ADC through programming to meet the needs of different signal sources. The system can be flexibly configured according to the actual application scenario to meet different data acquisition and control requirements. The PLC controller has high reliability and stability and can operate stably for a long time in harsh industrial environments. Multi-channel ADC uses digital signal processing technology to reduce noise and interference in analog signal transmission and improve data reliability. PLC controllers usually have standard communication interfaces and programming interfaces, which are easy to integrate with other devices and systems. By adding more ADC channels or connecting other devices, the system can easily expand its functions and application scope. PLC controllers can automatically adjust control parameters or execute control commands based on the collected data to achieve automated control. This reduces the need for manual intervention and improves production efficiency and product quality.
[0052] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A multi-channel acquisition method for high and low frequency signals of PLC operation, characterized in that: The method comprises: Calibrate high and low frequency acquisition channels of the multi-channel analog-to-digital converter according to historical information, collect and preprocess high and low frequency signals through the high and low frequency acquisition channels, and obtain high and low frequency acquisition data; Calculate the acquisition quality value of the low-frequency signal, determine the quality of the low-frequency signal, determine whether there is an abnormal peak in the low-frequency sampling data based on the obtained low-frequency determination result, make targeted adjustments based on the determination result, and obtain low-frequency adjustment information; Calculate the acquisition quality value of the high-frequency signal, determine the quality of the high-frequency signal, determine whether there is an abnormal peak in the high-frequency sampling data based on the obtained high-frequency determination result, make targeted adjustments based on the determination result, and obtain high-frequency adjustment information.
2. According to the multi-channel acquisition method of high and low frequency signals of PLC operation as described in claim 1, it is characterized in that: The method of calibrating the high and low frequency acquisition channels of the multi-channel analog-to-digital converter according to the historical information, acquiring and preprocessing the high and low frequency signals through the high and low frequency acquisition channels, and obtaining the high and low frequency acquisition data includes: The signal processing channels of the multi-channel analog-to-digital converter are classified according to the types of high-frequency signals and low-frequency signals to obtain high-frequency acquisition channels and low-frequency acquisition channels; The high-frequency signal is collected through the high-frequency collection channel to obtain high-frequency collection information; The low-frequency signal is collected through the low-frequency collection channel to obtain low-frequency collection information; The high-frequency acquisition information and the low-frequency acquisition information are preprocessed respectively to obtain high-frequency acquisition data and low-frequency acquisition data.
3. According to claim 2, a multi-channel acquisition method for high and low frequency signals of PLC operation is characterized in that: The signal processing channels of the multi-channel analog-to-digital converter are classified according to the types of high-frequency signals and low-frequency signals to obtain high-frequency acquisition channels and low-frequency acquisition channels, including: Obtain the maximum bandwidth requirement information of the historical high-frequency signal, the maximum bandwidth requirement information of the historical low-frequency signal, and multi-channel bandwidth information; Obtaining the bandwidth that satisfies the maximum value of the bandwidth requirement information of the historical high-frequency signal from the multi-channel bandwidth information, and the channel whose bandwidth has the smallest difference with the bandwidth is marked as the high-frequency acquisition channel; The bandwidth that satisfies the maximum value of the bandwidth requirement information of the historical low-frequency signal is obtained from the multi-channel bandwidth information, and the channel whose bandwidth has the smallest difference with the bandwidth is marked as the low-frequency acquisition channel.
4. According to claim 1, a multi-channel acquisition method for high and low frequency signals of PLC operation is characterized in that: The calculating of the acquisition quality value of the low-frequency signal, determining the quality of the low-frequency signal, determining whether there is an abnormal peak in the low-frequency sampling data according to the obtained low-frequency determination result, and performing targeted adjustment according to the determination result to obtain low-frequency adjustment information includes: Acquire characteristic information of low-frequency sampling data, and calculate an acquisition quality value of the low-frequency signal according to the characteristic information; Comparing the acquisition quality value of the low-frequency signal with a preset low-frequency threshold to obtain a low-frequency comparison result; Determine the quality of the low-frequency signal according to the low-frequency comparison result to obtain a low-frequency determination result; The low-frequency signal sampling parameters are adjusted according to the low-frequency determination result to obtain low-frequency adjustment information.
5. According to claim 4, a multi-channel acquisition method for high and low frequency signals of PLC operation is characterized in that: The step of adjusting the low-frequency signal sampling parameter according to the low-frequency determination result to obtain low-frequency adjustment information includes: When the low-frequency determination result is unqualified, obtain whether there is an abnormal peak in the signal spectrum or fluctuation in the low-frequency sampling data; When there are abnormal peaks in the signal spectrum or fluctuation in the low-frequency sampling data, the high-frequency signal and the low-frequency signal are physically isolated, and the sampling quality value of the low-frequency signal is recalculated and compared until the low-frequency judgment result is qualified; When there is no abnormal peak in the signal spectrum or fluctuation in the low-frequency sampling data, after the low-frequency signal sampling parameters are initialized, the sampling quality value of the low-frequency signal is recalculated and compared until the low-frequency judgment result is qualified.
6. According to claim 1, a multi-channel acquisition method for high and low frequency signals of PLC operation is characterized in that: The method of calculating the acquisition quality value of the high-frequency signal, determining the quality of the high-frequency signal, determining whether there is an abnormal peak in the high-frequency sampling data according to the obtained high-frequency determination result, and making targeted adjustments according to the determination result to obtain high-frequency adjustment information includes: Acquire characteristic information of high-frequency sampling data, and calculate the acquisition quality value of the high-frequency signal according to the characteristic information; compare the acquisition quality value of the high-frequency signal with a preset high-frequency threshold to obtain a high-frequency comparison result; Determine the quality of the high-frequency signal according to the high-frequency comparison result to obtain a high-frequency determination result; The high-frequency signal sampling parameters are adjusted according to the high-frequency determination result to obtain high-frequency adjustment information.
7. According to claim 6, a multi-channel acquisition method for high and low frequency signals of PLC operation, characterized in that: The step of adjusting the high-frequency signal sampling parameters according to the high-frequency determination result to obtain high-frequency adjustment information includes: When the high-frequency determination result is unqualified, obtaining whether there is an abnormal peak in the signal spectrum or fluctuation in the high-frequency sampling data; When there are abnormal peaks in the signal spectrum or fluctuations in the high-frequency sampling data, the high-frequency signal and the low-frequency signal are physically isolated, and the sampling quality value of the high-frequency signal is recalculated and compared until the high-frequency judgment result is qualified; When there is no abnormal peak in the signal spectrum or fluctuation in the high-frequency sampling data, after the high-frequency signal sampling parameters are initialized, the sampling quality value of the high-frequency signal is recalculated and compared until the high-frequency judgment result is qualified.
8. According to claim 1, a multi-channel acquisition method for high and low frequency signals of PLC operation is characterized in that: The sampling quality values include: The calculation formula of the sampling quality value of the low-frequency signal is: in, is the sampling quality value of the low-frequency signal, is the average power of the low frequency signal, is the average power of the noise signal, is the low frequency signal bandwidth, is the low-frequency acquisition channel bandwidth, is the maximum data of the low-frequency sampling signal, is the minimum data of low-frequency sampling signal, Preset sampling frequency for low frequency signals, is the actual sampling frequency of the low-frequency signal, , and is the weight coefficient; The calculation formula of the sampling quality value of the high-frequency signal is: in, is the sampling quality value of the high-frequency signal, is the average power of the high frequency signal, is the average power of the noise signal, is the high frequency signal bandwidth, is the high-frequency acquisition channel bandwidth, is the maximum data of the high-frequency sampling signal, is the minimum data of high-frequency sampling signal, Preset sampling frequency for high frequency signals, is the actual sampling frequency of the high-frequency signal, , and is the weight coefficient.
9. A multi-channel acquisition system for high and low frequency signals of PLC operation, characterized in that: The system comprises: The channel acquisition module is used to calibrate the high and low frequency acquisition channels of the multi-channel analog-to-digital converter according to historical information, collect and pre-process the high and low frequency signals through the high and low frequency acquisition channels, and obtain high and low frequency acquisition data; The low-frequency acquisition and adjustment module is used to calculate the acquisition quality value of the low-frequency signal, determine the quality of the low-frequency signal, determine whether there is an abnormal peak in the low-frequency sampling data according to the obtained low-frequency determination result, and make targeted adjustments according to the determination result to obtain low-frequency adjustment information; The high-frequency acquisition and adjustment module is used to calculate the acquisition quality value of the high-frequency signal, determine the quality of the high-frequency signal, determine whether there is an abnormal peak in the high-frequency sampling data based on the obtained high-frequency determination result, perform targeted adjustments based on the determination result, and obtain high-frequency adjustment information.
10. A multi-channel acquisition device for high and low frequency signals of PLC operation, characterized in that: The device comprises a PLC controller and a multi-channel analog-to-digital converter, wherein the PLC controller is connected to the multi-channel analog-to-digital converter in a two-way communication manner.
