Accurate obtaining processing method of switching value rising edge signal of control system
A switch signal and control system technology, applied in the direction of pulse processing, electrical components, pulse technology, etc., can solve problems such as error events, the impact of the rising edge of the switch, and calculation results errors, so as to avoid the occurrence of error event information, The effect of smooth and accurate information transmission and the elimination of interference signals
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] 1. An accurate acquisition and processing method of the rising edge signal of the switching value of the control system, such as figure 1 As shown, the switching signal is collected by the acquisition card, and the switching signal is judged multiple times to obtain the moment when the rising edge of the effective signal occurs, and the influence of the interference signal is eliminated. The method comprises the steps of:
[0028] (1) Collect the switching signal and judge the level of the signal. If it is high level, it is not the beginning of the rising edge. Go back and continue to execute step 1. If it is low level, execute step 2.
[0029] (2) Collect the switching signal and judge the level of the signal. If it is low level, it means that there is no pulse signal. Go back and continue to perform step 2. If it is high level, perform step 3.
[0030] (3) It is composed of N sub-steps, and the N sub-steps are successively connected. For each sub-step, the switch sig...
Embodiment 2
[0033] The cutting machine sends a one-meter synchronous signal every time it counts one meter, and the switching signal is high level. The schematic diagram of the input signal waveform of the control system is as follows: figure 2 As shown, the high level appears periodically, the high level lasts for 1 second, and the low level occurs when there is no signal.
[0034] The industrial control computer obtains the signal through the acquisition card, and the sampling interval is 50ms. Since the pulse width of the interference signal on the line is very short, as long as the selection of the N value can make the judgment time longer than the pulse width of the interference signal and less than the width of the effective signal. For example, if the value of N is selected as 4, that is, the sampling and judgment are performed four times in step 3, and the entire judgment process is longer than 200 ms.
[0035] The sampling judgment process is as image 3 As shown, execute ste...
Embodiment 3
[0038] For the situation that the interval between the interference signal and the effective signal is very short, the problem can be effectively solved by adjusting the signal sampling interval. For example, when the interference signal just appears in front of the effective signal, it may appear as Figure 5In the situation shown, execute step 1 at point A4, it is low level, execute step 2 at point B4, it is high level, execute step 3 at points C4, D4, E4, F4, it is high level, confirm at point B4 Collected valid signals, return to step 1. However, there is an interference signal at point B4. Because the distance between the interference signal and the effective signal is too close, the rising edge C4 of the effective signal is judged to be on the interference signal B4 that appeared before him. As long as the sampling interval is short enough, the distance between B4 and C4 can be shortened. According to the 50ms signal sampling interval selected in Embodiment 2 of the pre...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


