A kind of optical fiber laser PD signal processing system and method
Technical field
A kind of optical fiber laser PD signal processing technology field of the present invention, and in particular to the signal processing side optical fiber laser PD
Method.
Background technique
PD is the abbreviation of photodiode, also referred to as PD pipe.
Well known, laser cut metal plate has unrivaled advantage, in recent years, with to laser cutting machine tool
Demand increases sharply, and the dosage of optical fiber laser increasingly increases severely;Optical fiber laser internal core component pumping source and optical fiber price
Valuableness, when optical fiber light leakage occurs or fractures, if can not judge the failure of optical fiber in time, persistently controlling out light can burn
Optical fiber burns pumping source, and expensive components pumping source and optical fiber is gently then caused to damage, heavy then cause fire, thus to optical-fiber laser
The protection of device is particularly important, and guarantees timely cut light control circuit when optical fiber light leakage occurs or fractures, stop
Only go out light, protects pumping source and optical fiber to greatest extent.
The protection of optical fiber laser at present mainly utilizes PD to acquire optical signal, reaches the luminosity power of real time monitoring optical path
Purpose, and optical fiber laser PD detection method mainly uses hardware handles, enters at MCU after monostable trigger to PD signal
Reason, because signal is still low frequency pwm signal, easily false alarm after monostable trigger, is led when PD signal is low frequency pwm signal
Optical fiber laser protection mechanism is caused to work and lock, needing producer to be confirmed whether it is wrong report can just release, labor intensive wealth
Power influences to produce, in consideration of it, needing a kind of method to avoid the false alarm of PD detection signal.
This is the deficiencies in the prior art, therefore, in view of the above-mentioned drawbacks in the prior art, provides a kind of optical fiber laser PD
Signal processing method is necessary.
Summary of the invention
There is lacking for false alarm problem in PD for the above-mentioned optical fiber laser of the prior art for the detection of PWM low frequency signal
It falls into, the present invention provides a kind of optical fiber laser PD signal processing method, to solve the above technical problems.
In a first aspect, the present invention provides a kind of optical fiber laser PD signal processing system, including external circuits control module,
Fiber reel and main control module;
Fiber reel includes external control signal input terminal, inspection light output end and light echo output end;
Main control module includes that external control signal collection terminal, inspection light signal collection end, heliogram collection terminal and alarm are defeated
Outlet;
External circuits control module is all connected with external control signal input terminal and external control signal collection terminal;
Inspection light output end is connect with inspection light signal collection end, and light echo output end is connect with heliogram collection terminal;
Main control module is adopted by the signal of external circuits control module, the signal at inspection light signal collection end and heliogram
The signal at collection end judges whether light echo and inspection light are normal.The input signal of external circuits control module is input to optical fiber all the way
Disk, another way are input to main control module, are acquired by main control module, and judge whether inspection light and light echo are normal by main control module, real
The signal at light signal collection end and the signal of heliogram collection terminal are now examined in the input signal of external circuits control modules
The accurate judgement of consistency.
Further, when the signal of external circuits control module is 24V high level signal, external control signal collection terminal
For overflow pattern, main control module obtains the level state at inspection light signal collection end and heliogram collection terminal, and according to respective
Level state judges whether to examine light respectively and light echo is normal.Light echo and inspection light under normal circumstances, when external circuits control module
Signal be 24V high level signal when, main control module get inspection light signal collection end and heliogram collection terminal level
State should be 5V high level, therefore, whether can thus judging light echo and inspection light normally.
Further, when the signal of external circuits control module is pwm signal, external control signal collection terminal is input
Acquisition mode, main control module obtain external control signal collection terminal, inspection light signal collection end and heliogram acquisition end signal
Frequency and duty ratio, and according to inspection light signal collection end and heliogram collection terminal whether with external control signal acquire end signal
Unanimously judge whether to examine light and light echo is normal.Light echo and inspection light under normal circumstances, when the signal of external circuits control module is
When pwm signal, main control module get with the consistent inspection optical signal of the signal frequency of external circuits control module and heliogram,
Therefore, whether can judging light echo and inspection light normally by frequency invariance.
Further, when the signal of external circuits control module is 24V high level signal, main control module obtains inspection light letter
The level state of number collection terminal and heliogram collection terminal;
When the level state for examining light signal collection end is high level, inspection light is normal, and it is abnormal otherwise to examine light;
When the level state of heliogram collection terminal is high level, light echo is normal, and otherwise light echo is abnormal;
When the signal of external circuits control module is pwm signal, main control module obtains external control signal collection terminal, inspection
The frequency and duty ratio at light signal collection end and heliogram acquisition end signal;
When external control signal acquisition end signal is with the frequency and consistent duty ratio for examining light signal collection end signal, light is examined
Normally;When the frequency and inconsistent duty ratio of external control signal acquisition end signal and inspection light signal collection end signal, light is examined
Alarm;
When external control signal acquisition end signal is with the frequency and consistent duty ratio of light echo acquisition end signal, light echo is just
Often;When the frequency and inconsistent duty ratio of external control signal acquisition end signal and light echo acquisition end signal, light echo alarm.
When the signal of external circuits control module is 24V high level signal, external control signal collection terminal enters spilling
Mode, control module acquire the high level signal of external control signal collection terminal, and inspection light signal collection end enters pull-up input mould
Formula, heliogram collection terminal enter upper pull-mode, and when inspection light is normal, the inspection light output end of fiber reel can collect 5V high level
Signal, control module acquisition inspection light signal collection end level signal, when light echo is normal, the light echo output end of fiber reel can be acquired
To 5V high level signal, control module acquires heliogram collection terminal level signal;
When the signal of external circuits control module is pwm signal, external control signal collection terminal enters input capture mould
Formula, inspection light signal collection end enter input capture mode, and heliogram collection terminal enters input capture mode, and control module calculates
The frequency and duty ratio of externally input pwm signal calculate, the inspection of the fiber reel of acquisition if inspection light is normal through control module
The frequency and duty ratio for the pwm signal that the frequency and duty ratio of the signal of light output end can be obtained with external control signal collection terminal
Unanimously;If light echo is normal, calculated through control module, the frequency and duty ratio of the signal of the light echo output end of the fiber reel of acquisition
It can be consistent with the frequency for the pwm signal that external control signal collection terminal obtains and duty ratio.
Further, main control module uses the microcontroller of STM32F1 series.The microcontroller of STM32F1 series is base
In 32 8-digit microcontrollers of ARM Cortex-M3 kernel.
Second aspect, the present invention provide a kind of optical fiber laser PD signal processing method, include the following steps:
S1. main control module judges the operating mode of external control signal collection terminal;
S2. when external control signal collection terminal is overflow pattern, S3 is entered step;
When external control signal collection terminal is input capture mode, S4 is entered step;
S3. main control module obtains the level state at inspection light signal collection end and heliogram collection terminal, and according to inspection light letter
Number collection terminal level state judges whether to examine light normal, judges whether light echo just according to the level state of heliogram collection terminal
Often;Return step S1;
S4. main control module obtains the acquisition signal of external control signal collection terminal, and calculates external control signal acquisition
The frequency and duty ratio of end signal;
S5. it examines light signal collection end and heliogram collection terminal is acquisition mode, control module obtains inspection light signal collection
The signal of end and heliogram collection terminal, and calculate separately out inspection light signal collection end signal and heliogram acquisition end signal
Frequency and duty ratio;
S6. control module is adopted by comparing the signal of external control signal collection terminal and the signal and light echo at inspection light collection end
The frequency and duty ratio for collecting the signal at end judge to examine light and whether light echo are normal;Return step S1.External circuits control module
Input signal is input to fiber reel all the way, and another way is input to main control module, is acquired by main control module, and judged by main control module
It examines light and whether light echo is normal, the signal of the signal and heliogram collection terminal of realizing inspection light signal collection end is in external circuits
The accurate judgement of the consistency of the input signal of control module.
Further, further include following steps before step S3:
SA3. main control module setting inspection light signal collection end and heliogram collection terminal enter pull-up input pattern;
In step S2, when external control signal collection terminal is overflow pattern, SA3 is entered step.When external circuits control
When the signal of module is 24V high level signal, external control signal collection terminal enters overflow pattern, the external control of control module acquisition
The high level signal of signal acquisition terminal processed, is arranged at this time, and inspection light signal collection end enters pull-up input pattern, and heliogram is arranged
When collection terminal enters upper pull-mode, light echo and normal inspection light, the collected heliogram collection terminal level signal of control module
It can be high level with inspection light signal collection end level signal.
Further, specific step is as follows by step S1:
S11. main control module obtains the signal of external control signal collection terminal;
S12. when external control signal collection terminal collects 24V high level signal, main control module determines external control letter
Number collection terminal is overflow pattern;
S13. when external control signal collection terminal collects pwm signal, main control module determines external control signal acquisition
End is input capture mode.Main control module is different according to the collected signal of external control signal collection terminal, determines external control
Signal acquisition terminal enters different working modes.
Further, specific step is as follows by step S3:
S31. main control module obtains the level state at inspection light signal collection end and heliogram collection terminal;
S32. judge to examine whether the level state at light signal collection end is high level;
If so, inspection light is normal;If it is not, then examining light alarm;
Whether the level state for S33. judging heliogram collection terminal is high level;
If so, light echo is alarmed;If it is not, then light echo is normal;Return step S1.When the signal of external circuits control module is
When 24V high level signal, external control signal collection terminal enters overflow pattern, and control module acquires external control signal collection terminal
High level signal, inspection light signal collection end enters pull-up input pattern, and heliogram collection terminal enters upper pull-mode, when inspection light
When normal, the inspection light output end of fiber reel can collect 5V high level signal, control module acquisition inspection light signal collection end level
Signal, when light echo is normal, the light echo output end of fiber reel can collect 5V high level signal, and control module acquires heliogram
Collection terminal level signal.
Further, specific step is as follows by step S6:
S61. control module compares external control signal collection terminal and examines the frequency and duty ratio of light signal collection end signal;
When external control signal acquisition end signal is with the frequency and consistent duty ratio for examining light signal collection end signal, light is examined
Normally;
When the frequency and inconsistent duty ratio of external control signal acquisition end signal and inspection light signal collection end signal, inspection
Light alarm;
S62. control module compares the frequency and duty ratio of external control signal collection terminal and heliogram acquisition end signal;
When external control signal acquisition end signal is with the frequency and consistent duty ratio of light echo acquisition end signal, light echo is just
Often;
When the frequency and inconsistent duty ratio of external control signal acquisition end signal and light echo acquisition end signal, light echo report
It is alert;
Return step S1.When the signal of external circuits control module is pwm signal, external control signal collection terminal enters
Input capture mode, inspection light signal collection end enter input capture mode, and heliogram collection terminal enters input capture mode, control
Molding block calculates the frequency and duty ratio of externally input pwm signal, if inspection light is normal, calculates through control module, acquisition
The frequency for the pwm signal that the frequency and duty ratio of the signal of the inspection light output end of fiber reel can be obtained with external control signal collection terminal
Rate is consistent with duty ratio;If light echo is normal, calculated through control module, the frequency of the signal of the light echo output end of the fiber reel of acquisition
Rate and duty ratio can be consistent with the frequency for the pwm signal that external control signal collection terminal obtains and duty ratio.
The beneficial effects of the present invention are,
The present invention is input to fiber reel by the input signal of external circuits control module all the way, and another way is input to master control
Module is acquired by main control module, and judges whether inspection light and light echo are normal by main control module, realizes the letter at inspection light signal collection end
Number and heliogram collection terminal signal in external circuits control module input signal consistency accurate judgement, avoid
To the false judgment of heliogram and inspection optical signal, the light detection performance of the optical fiber laser of fiber reel, Neng Gouzhun are improved
Really errorless protection inside of optical fibre pumping source and optical fiber reduce the maintenance cost replied after PD false alarm optical fiber laser alarm
With avoiding the production yields being delayed after false alarm, improve production efficiency.In addition, design principle of the present invention is reliable, structure letter
It is single, there is very extensive application prospect.
It can be seen that compared with prior art, the present invention implementing with substantive distinguishing features outstanding and significant progress
Beneficial effect be also obvious.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art
Speech, without creative efforts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is system structure diagram of the invention;
Fig. 2 is method flow schematic diagram one of the invention;
Fig. 3 is method flow schematic diagram two of the invention;
In figure, 1- external circuits control module;4- warning output end;5- fiber reel;5.1- external control signal input terminal;
5.2- examines light output end;5.3- light echo output end;6- main control module;PA1- examines light signal collection end;PA6- external control signal
Collection terminal;PE9- heliogram collection terminal.
Specific embodiment
Technical solution in order to enable those skilled in the art to better understand the present invention, below in conjunction with of the invention real
The attached drawing in example is applied, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described implementation
Example is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, this field is common
Technical staff's every other embodiment obtained without making creative work, all should belong to protection of the present invention
Range.
Embodiment 1:
As shown in Figure 1, the present invention provides a kind of optical fiber laser PD signal processing system, including external circuits control module
1, fiber reel 5 and main control module 6;Main control module 6 uses the microcontroller of STM32F1 series;
Fiber reel 6 includes external control signal input terminal 6.1, inspection light output end 6.2 and light echo output end 6.3;
Main control module 6 includes external control signal collection terminal PA6, inspection light signal collection end PA1, heliogram collection terminal
PE9 and warning output end 4;
External circuits control module 1 connects with external control signal input terminal 6.1 and external control signal collection terminal PA6
It connects;
Inspection light output end 6.2 is connect with inspection light signal collection end PA1, light echo output end 6.3 and heliogram collection terminal PE9
Connection;
Main control module 6 passes through the signal of external circuits control module 1, the signal and light echo of inspection light signal collection end PA1
The signal of signal acquisition terminal PE9 judges whether light echo and inspection light are normal;
When the signal of external circuits control module 1 is 24V high level signal, external control signal collection terminal PA6 is excessive
Mode out, main control module 6 obtain the level state of inspection light signal collection end PA1 and heliogram collection terminal PE9, and according to respective
Level state judge whether respectively examine light and light echo it is normal;
When the signal of external circuits control module 1 is pwm signal, external control signal collection terminal PA6 is input capture
Mode, main control module 6 obtain external control signal collection terminal PA6, inspection light signal collection end PA1 and heliogram collection terminal PE9
The frequency and duty ratio of signal, and believe according to whether inspection light signal collection end PA1 and heliogram collection terminal PE9 controls with outside
Number collection terminal PA6 signal unanimously judges whether to examine light and light echo is normal;
When the signal of external circuits control module 1 is 24V high level signal, main control module 6 obtains inspection light signal collection
Hold the level state of PA1 and heliogram collection terminal PE9;
When the level state for examining light signal collection end PA1 is high level, inspection light is normal, and it is abnormal otherwise to examine light;
When the level state of heliogram collection terminal PE9 is high level, light echo is normal, and otherwise light echo is abnormal;
When the signal of external circuits control module 1 is pwm signal, main control module 6 obtains external control signal collection terminal
PA6, the frequency and duty ratio for examining light signal collection end PA1 and heliogram collection terminal PE9 signal;
When external control signal collection terminal PA6 signal is consistent with the frequency of inspection light signal collection end PA1 signal and duty ratio
When, inspection light is normal;When the frequency and duty ratio of external control signal collection terminal PA6 signal and inspection light signal collection end PA1 signal
When inconsistent, inspection light alarm;
When external control signal collection terminal PA6 signal is with the frequency and consistent duty ratio of light echo collection terminal PE9 signal, return
Light is normal;When external control signal collection terminal PA6 signal is with the frequency of light echo collection terminal PE9 signal and consistent duty ratio portion,
Light echo alarm.
Embodiment 2:
As illustrated in fig. 1 and 2, the present invention provides a kind of optical fiber laser PD signal processing method, includes the following steps:
S1. main control module judges the operating mode of external control signal collection terminal;Specific step is as follows:
S11. main control module obtains the signal of external control signal collection terminal;
S12. when external control signal collection terminal collects 24V high level signal, main control module determines external control letter
Number collection terminal is overflow pattern;
S13. when external control signal collection terminal collects pwm signal, main control module determines external control signal acquisition
End is input capture mode;
S2. when external control signal collection terminal is overflow pattern, SA3 is entered step;
When external control signal collection terminal is input capture mode, S4 is entered step;
SA3. main control module setting inspection light signal collection end and heliogram collection terminal enter pull-up input pattern;
S3. main control module obtains the level state at inspection light signal collection end and heliogram collection terminal, and according to inspection light letter
Number collection terminal level state judges whether to examine light normal, judges whether light echo just according to the level state of heliogram collection terminal
Often;Specific step is as follows:
S31. main control module obtains the level state at inspection light signal collection end and heliogram collection terminal;
S32. judge to examine whether the level state at light signal collection end is high level;
If so, inspection light is normal;If it is not, then examining light alarm;
Whether the level state for S33. judging heliogram collection terminal is high level;
If so, light echo is alarmed;If it is not, then light echo is normal;Return step S1;
S4. main control module obtains the acquisition signal of external control signal collection terminal, and calculates external control signal acquisition
The frequency and duty ratio of end signal;
S5. it examines light signal collection end and heliogram collection terminal is acquisition mode, control module obtains inspection light signal collection
The signal of end and heliogram collection terminal, and calculate separately out inspection light signal collection end signal and heliogram acquisition end signal
Frequency and duty ratio;
S6. control module is adopted by comparing the signal of external control signal collection terminal and the signal and light echo at inspection light collection end
The frequency and duty ratio for collecting the signal at end judge to examine light and whether light echo are normal;Specific step is as follows:
S61. control module compares external control signal collection terminal and examines the frequency and duty ratio of light signal collection end signal;
S62. when external control signal acquisition end signal is with the frequency and consistent duty ratio for examining light signal collection end signal,
It is normal to examine light;
When the frequency and inconsistent duty ratio of external control signal acquisition end signal and inspection light signal collection end signal, inspection
Light alarm;
S63. when external control signal acquisition end signal is with the frequency and consistent duty ratio of light echo acquisition end signal, light echo
Normally;
When the frequency and inconsistent duty ratio of external control signal acquisition end signal and light echo acquisition end signal, light echo report
It is alert;
Return step S1.
Main control module is different according to the collected signal of external control signal collection terminal, determines external control signal collection terminal
Into different working modes.The input signal of external circuits control module is input to fiber reel all the way, and another way is input to master control
Module is acquired by main control module, and judges whether inspection light and light echo are normal by main control module, realizes the letter at inspection light signal collection end
Number and heliogram collection terminal signal in external circuits control module input signal consistency accurate judgement.
When the signal of external circuits control module is 24V high level signal, external control signal collection terminal enters spilling
Mode, control module acquire the high level signal of external control signal collection terminal, are arranged at this time, and inspection light signal collection end enters upper
Input pattern is drawn, when setting heliogram collection terminal enters upper pull-mode, light echo and normal inspection light, control module is collected
Heliogram collection terminal level signal and inspection light signal collection end level signal can be high level.
When the signal of external circuits control module is 24V high level signal, external control signal collection terminal enters spilling
Mode, control module acquire the high level signal of external control signal collection terminal, and inspection light signal collection end enters pull-up input mould
Formula, heliogram collection terminal enter upper pull-mode, and when inspection light is normal, the inspection light output end of fiber reel can collect 5V high level
Signal, control module acquisition inspection light signal collection end level signal, when light echo is normal, the light echo output end of fiber reel can be acquired
To 5V high level signal, control module acquires heliogram collection terminal level signal.
When the signal of external circuits control module is pwm signal, external control signal collection terminal enters input capture mould
Formula, inspection light signal collection end enter input capture mode, and heliogram collection terminal enters input capture mode, and control module calculates
The frequency and duty ratio of externally input pwm signal calculate, the inspection of the fiber reel of acquisition if inspection light is normal through control module
The frequency and duty ratio for the pwm signal that the frequency and duty ratio of the signal of light output end can be obtained with external control signal collection terminal
Unanimously;If light echo is normal, calculated through control module, the frequency and duty ratio of the signal of the light echo output end of the fiber reel of acquisition
It can be consistent with the frequency for the pwm signal that external control signal collection terminal obtains and duty ratio.
Although by reference to attached drawing and combining the mode of preferred embodiment to the present invention have been described in detail, the present invention
It is not limited to this.Without departing from the spirit and substance of the premise in the present invention, those of ordinary skill in the art can be to the present invention
Embodiment carry out various equivalent modifications or substitutions, and these modifications or substitutions all should in covering scope of the invention/appoint
What those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, answer
It is included within the scope of the present invention.Therefore, protection scope of the present invention is answered described is with scope of protection of the claims
It is quasi-.