System and method for processing PD (proportion integration) signal of optical fiber laser
Technical Field
The invention belongs to the technical field of PD signal processing of fiber lasers, and particularly relates to a PD signal processing method of a fiber laser.
Background
PD, short for photodiode, is also referred to as PD tube.
It is known that laser cutting of metal sheets has incomparable advantages, and in recent years, with the rapid increase of the demand for laser cutting machine tools, the usage of fiber lasers is increasing dramatically; the pump source and the optical fiber of the core component in the optical fiber laser are expensive, when the optical fiber leaks or breaks, if the fault of the optical fiber cannot be judged in time, the optical fiber can be burnt out if light is continuously emitted, the pump source is burnt out, the pump source and the optical fiber of the expensive component are damaged if the light is light, and a fire disaster is caused if the light is heavy, so that the protection of the optical fiber laser is very important, and the light emitting control circuit can be timely cut off to stop emitting light when the optical fiber leaks or breaks, so that the pump source and the optical fiber are protected to the maximum extent.
At present, the protection of an optical fiber laser mainly utilizes PD to collect optical signals to achieve the purpose of monitoring the luminosity intensity of an optical path in real time, a PD detection method of the optical fiber laser mainly adopts hardware processing, the PD signals enter MCU processing after monostable triggering, when the PD signals are low-frequency PWM signals, the signals are still low-frequency PWM signals after monostable triggering, false alarm is easy to occur, the protection mechanism of the optical fiber laser is enabled and locked, a manufacturer is required to confirm whether the signals are false alarm or not to be relieved, manpower and financial resources are consumed, and production is influenced, and therefore, a method is needed to avoid false alarm of the PD detection signals.
This is a disadvantage of the prior art, and therefore, it is very necessary to provide a method for processing PD signals of a fiber laser in order to overcome the above-mentioned disadvantages of the prior art.
Disclosure of Invention
Aiming at the defect that the PD of the optical fiber laser in the prior art has the false alarm problem in the detection of the PWM low-frequency signal, the invention provides a PD signal processing method of the optical fiber laser, so as to solve the technical problem.
In a first aspect, the invention provides a fiber laser PD signal processing system, which includes an external optical path control module, an optical fiber tray, and a main control module;
the optical fiber disc comprises an external control signal input end, a light detection output end and a light return output end;
the main control module comprises an external control signal acquisition end, an optical detection signal acquisition end, a return optical signal acquisition end and an alarm output end;
the external light path control module is connected with the external control signal input end and the external control signal acquisition end;
the light detection output end is connected with the light detection signal acquisition end, and the light return output end is connected with the light return signal acquisition end;
the main control module judges whether the return light and the light detection are normal or not through the signal of the external light path control module, the signal of the light detection signal acquisition end and the signal of the return light signal acquisition end. The input signal of the external light path control module is input into the optical fiber disc on one path, and the other path is input into the main control module and is collected by the main control module, and the main control module judges whether the light detection and the light return are normal or not, so that the accurate judgment of the consistency of the signal of the light detection signal collection end and the signal of the light return signal collection end in the input signal of the external light path control module is realized.
Further, when the signal of the external optical path control module is a 24V high level signal, the external control signal acquisition end is in an overflow mode, and the main control module acquires the level states of the light detection signal acquisition end and the light return signal acquisition end, and respectively judges whether the light detection and the light return are both normal according to the respective level states. Under the normal condition of light return and light detection, when the signal of the external optical path control module is a 24V high level signal, the level states of the light detection signal acquisition end and the light return signal acquisition end acquired by the main control module should be 5V high level, so that whether the light return and light detection is normal or not can be judged.
Further, when the signal of the external light path control module is a PWM signal, the external control signal collection terminal is in an input capture mode, and the main control module obtains the frequency and duty ratio of the signals of the external control signal collection terminal, the light detection signal collection terminal, and the light return signal collection terminal, and determines whether the light detection and the light return are both normal according to whether the light detection signal collection terminal and the light return signal collection terminal are consistent with the signal of the external control signal collection terminal. Under the normal condition of light return and light detection, when the signal of the external light path control module is a PWM signal, the main control module acquires a light detection signal and a light return signal which have the same frequency with the signal of the external light path control module, so that whether the light return and light detection is normal or not can be judged according to the frequency consistency.
Further, when the signal of the external light path control module is a 24V high level signal, the main control module obtains the level states of the light detection signal acquisition end and the light return signal acquisition end;
when the level state of the light detection signal acquisition end is high level, the light detection is normal, otherwise, the light detection is abnormal;
when the level state of the return light signal acquisition end is a high level, the return light is normal, otherwise, the return light is abnormal;
when the signal of the external light path control module is a PWM signal, the main control module acquires the frequency and the duty ratio of the signals of the external control signal acquisition end, the light detection signal acquisition end and the light return signal acquisition end;
when the frequency and the duty ratio of the external control signal acquisition end signal and the light detection signal acquisition end signal are consistent, the light detection is normal; when the frequency and the duty ratio of the external control signal acquisition end signal and the light detection signal acquisition end signal are not consistent, light detection alarm is carried out;
when the frequency and the duty ratio of the external control signal acquisition end signal and the return light acquisition end signal are consistent, the return light is normal; and when the frequency and the duty ratio of the external control signal acquisition end signal and the return light acquisition end signal are not consistent, the return light alarms.
When the signal of the external light path control module is a 24V high level signal, the external control signal acquisition end enters an overflow mode, the control module acquires the high level signal of the external control signal acquisition end, the light detection signal acquisition end enters a pull-up input mode, the light return signal acquisition end enters a pull-up mode, when the light detection is normal, the light detection output end of the optical fiber disc can acquire a 5V high level signal, the control module acquires the level signal of the light detection signal acquisition end, when the light return is normal, the light return output end of the optical fiber disc can acquire a 5V high level signal, and the control module acquires the level signal of the light return signal acquisition end;
when the signal of the external light path control module is a PWM signal, the external control signal acquisition end enters an input acquisition mode, the light detection signal acquisition end enters the input acquisition mode, the light return signal acquisition end enters the input acquisition mode, the control module calculates the frequency and duty ratio of the externally input PWM signal, and if the light detection is normal, the frequency and duty ratio of the signal of the light detection output end of the optical fiber disc obtained through calculation of the control module are consistent with the frequency and duty ratio of the PWM signal obtained by the external control signal acquisition end; if the return light is normal, the frequency and the duty ratio of the obtained signal of the return light output end of the optical fiber disc are consistent with the frequency and the duty ratio of the PWM signal obtained by the external control signal acquisition end through calculation of the control module.
Further, the main control module adopts a microcontroller of STM32F1 series. The STM32F1 family of microcontrollers are 32-bit microcontrollers based on the ARM Cortex-M3 core.
In a second aspect, the present invention provides a method for processing a PD signal of a fiber laser, including the following steps:
s1, a main control module judges the working mode of an external control signal acquisition end;
s2, when the external control signal acquisition end is in an overflow mode, entering the step S3;
when the external control signal acquisition terminal is in the input capture mode, the method goes to step S4;
s3, the main control module acquires the level states of the light detection signal acquisition end and the light return signal acquisition end, judges whether the light detection is normal or not according to the level state of the light detection signal acquisition end, and judges whether the light return is normal or not according to the level state of the light return signal acquisition end; returning to step S1;
s4, the main control module acquires an acquisition signal of an external control signal acquisition end and calculates the frequency and the duty ratio of the signal of the external control signal acquisition end;
s5, the light detection signal acquisition end and the light return signal acquisition end are in a capture mode, the control module acquires signals of the light detection signal acquisition end and the light return signal acquisition end, and the frequency and the duty ratio of the signals of the light detection signal acquisition end and the light return signal acquisition end are respectively calculated;
s6, the control module judges whether the light detection and the return light are normal or not by comparing the frequency and the duty ratio of the signal of the external control signal acquisition end, the signal of the light detection acquisition end and the signal of the return light acquisition end; return is made to step S1. The input signal of the external light path control module is input into the optical fiber disc on one path, and the other path is input into the main control module and is collected by the main control module, and the main control module judges whether the light detection and the light return are normal or not, so that the accurate judgment of the consistency of the signal of the light detection signal collection end and the signal of the light return signal collection end in the input signal of the external light path control module is realized.
Further, step S3 is preceded by the following steps:
SA3, the main control module sets the light detection signal acquisition end and the light return signal acquisition end to enter a pull-up input mode;
in step S2, when the external control signal acquisition terminal is in the overflow mode, the process proceeds to step SA3. When the signal of outside light path control module is 24V high level signal, outside control signal acquisition end gets into and overflows the mode, and control module gathers the high level signal of outside control signal acquisition end, sets up this moment, examines light signal acquisition end and gets into and pull up the input mode, sets up back light signal acquisition end and gets into and pull up the mode, and when light is returned and examined to be all normal, the back light signal acquisition end level signal that control module gathered and examine light signal acquisition end level signal all can be the high level.
Further, the step S1 specifically includes the following steps:
s11, a main control module acquires a signal of an external control signal acquisition end;
s12, when the external control signal acquisition end acquires a 24V high-level signal, the main control module judges that the external control signal acquisition end is in an overflow mode;
and S13, when the external control signal acquisition end acquires the PWM signal, the main control module judges that the external control signal acquisition end is in an input capture mode. The main control module judges that the external control signal acquisition end enters different working modes according to different signals acquired by the external control signal acquisition end.
Further, the step S3 specifically includes the following steps:
s31, the main control module acquires the level states of the light detection signal acquisition end and the light return signal acquisition end;
s32, judging whether the level state of the light detection signal acquisition end is a high level;
if yes, the light detection is normal; if not, the light detection alarm is carried out;
s33, judging whether the level state of the return light signal acquisition end is a high level;
if yes, a light return alarm is given; if not, the return light is normal; return is made to step S1. When the signal of outside light path control module is 24V high level signal, outside control signal acquisition end gets into the overflow mode, control module gathers the high level signal of outside control signal acquisition end, it gets into the pull-up input mode to examine light signal acquisition end, it gets into the pull-up mode to return light signal acquisition end, when examining light normal, the light output that examines of optical fiber dish can gather 5V high level signal, control module gathers and examines light signal acquisition end level signal, when returning light normal, the light output of optical fiber dish can gather 5V high level signal, control module gathers return light signal acquisition end level signal.
Further, the step S6 specifically includes the following steps:
s61, the control module compares the frequency and the duty ratio of signals of an external control signal acquisition end and a light detection signal acquisition end;
when the frequency and the duty ratio of the external control signal acquisition end signal and the light detection signal acquisition end signal are consistent, the light detection is normal;
when the frequency and the duty ratio of the external control signal acquisition end signal and the light detection signal acquisition end signal are not consistent, light detection alarm is carried out;
s62, the control module compares the frequency and the duty ratio of signals of an external control signal acquisition end and a return light signal acquisition end;
when the frequency and the duty ratio of the external control signal acquisition end signal and the return light acquisition end signal are consistent, the return light is normal;
when the frequency and the duty ratio of the external control signal acquisition end signal and the return light acquisition end signal are not consistent, a return light alarm is given;
return is made to step S1. When the signal of the external light path control module is a PWM signal, the external control signal acquisition end enters an input acquisition mode, the light detection signal acquisition end enters the input acquisition mode, the light return signal acquisition end enters the input acquisition mode, the control module calculates the frequency and duty ratio of the externally input PWM signal, and if the light detection is normal, the frequency and duty ratio of the signal of the light detection output end of the optical fiber disc obtained through calculation of the control module are consistent with the frequency and duty ratio of the PWM signal obtained by the external control signal acquisition end; if the return light is normal, the frequency and the duty ratio of the obtained signal of the return light output end of the optical fiber disc are consistent with the frequency and the duty ratio of the PWM signal obtained by the external control signal acquisition end through calculation of the control module.
The beneficial effect of the invention is that,
according to the invention, one path of input signals of the external light path control module is input into the optical fiber disc, the other path of input signals is input into the main control module, the input signals are collected by the main control module, and the main control module judges whether the light detection and the light return are normal, so that the accurate judgment of the consistency of the signals of the light detection signal collection end and the signals of the light return signal collection end on the input signals of the external light path control module is realized, the wrong judgment of the light return signal and the light detection signal is avoided, the light detection performance of the optical fiber laser of the optical fiber disc is improved, the internal pump source and the optical fiber of the optical fiber can be accurately protected, the maintenance cost of the alarm reply of the optical fiber laser after the PD false alarm is reduced, the delayed production yield after the false alarm is avoided, and the production efficiency is improved. In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of the system architecture of the present invention;
FIG. 2 is a first schematic flow chart of the method of the present invention;
FIG. 3 is a second schematic flow chart of the method of the present invention;
in the figure, 1 — external optical path control module; 4-alarm output end; 5-an optical fiber disc; 5.1-external control signal input; 5.2-light detection output end; 5.3-return light output end; 6-a main control module; PA 1-light detection signal acquisition end; PA 6-external control signal acquisition end; PE 9-return light signal collection end.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1:
as shown in fig. 1, the present invention provides a PD signal processing system of a fiber laser, which includes an external optical path control module 1, a fiber tray 5 and a main control module 6; the main control module 6 adopts an STM32F1 series microcontroller;
the optical fiber disc 6 comprises an external control signal input end 6.1, a light detection output end 6.2 and a return light output end 6.3;
the main control module 6 comprises an external control signal acquisition end PA6, a light detection signal acquisition end PA1, a return light signal acquisition end PE9 and an alarm output end 4;
the external light path control module 1 is connected with an external control signal input end 6.1 and an external control signal acquisition end PA 6;
the light detection output end 6.2 is connected with a light detection signal acquisition end PA1, and the return light output end 6.3 is connected with a return light signal acquisition end PE 9;
the main control module 6 judges whether the return light and the light detection are normal or not through the signal of the external light path control module 1, the signal of the light detection signal acquisition end PA1 and the signal of the return light signal acquisition end PE 9;
when the signal of the external optical path control module 1 is a 24V high-level signal, the external control signal acquisition end PA6 is in an overflow mode, the main control module 6 acquires the level states of the light detection signal acquisition end PA1 and the return light signal acquisition end PE9, and respectively determines whether the light detection and the return light are normal according to the respective level states;
when the signal of the external optical path control module 1 is a PWM signal, the external control signal acquisition terminal PA6 is in an input capture mode, the main control module 6 obtains the frequency and duty ratio of the signals of the external control signal acquisition terminal PA6, the light detection signal acquisition terminal PA1 and the return light signal acquisition terminal PE9, and determines whether the light detection and the return light are normal according to whether the signals of the light detection signal acquisition terminal PA1 and the return light signal acquisition terminal PE9 are consistent with the signals of the external control signal acquisition terminal PA 6;
when the signal of the external optical path control module 1 is a 24V high level signal, the main control module 6 obtains the level states of the light detection signal acquisition end PA1 and the light return signal acquisition end PE 9;
when the level state of the light detection signal acquisition end PA1 is high level, the light detection is normal, otherwise, the light detection is abnormal;
when the level state of the return light signal acquisition end PE9 is a high level, the return light is normal, otherwise, the return light is abnormal;
when the signal of the external light path control module 1 is a PWM signal, the main control module 6 obtains the frequency and duty ratio of the signals of the external control signal acquisition terminal PA6, the light detection signal acquisition terminal PA1 and the return light signal acquisition terminal PE 9;
when the frequency and the duty ratio of the external control signal acquisition end PA6 signal and the light detection signal acquisition end PA1 signal are consistent, the light detection is normal; when the frequency and the duty ratio of the external control signal acquisition end PA6 signal and the light detection signal acquisition end PA1 signal are not consistent, light detection alarm is carried out;
when the frequency and the duty ratio of the external control signal acquisition end PA6 signal and the return light acquisition end PE9 signal are consistent, the return light is normal; when the frequency and the duty ratio of the external control signal acquisition end PA6 signal and the return light acquisition end PE9 signal are consistent, the return light alarms.
Example 2:
as shown in fig. 1 and 2, the present invention provides a PD signal processing method for a fiber laser, including the following steps:
s1, a main control module judges the working mode of an external control signal acquisition end; the method comprises the following specific steps:
s11, a main control module acquires a signal of an external control signal acquisition end;
s12, when the external control signal acquisition end acquires a 24V high-level signal, the main control module judges that the external control signal acquisition end is in an overflow mode;
s13, when the external control signal acquisition end acquires the PWM signal, the main control module judges that the external control signal acquisition end is in an input capture mode;
s2, when the external control signal acquisition end is in an overflow mode, entering a step SA 3;
when the external control signal acquisition terminal is in the input capture mode, the method goes to step S4;
SA3, the main control module sets the light detection signal acquisition end and the light return signal acquisition end to enter a pull-up input mode;
s3, the main control module acquires the level states of the light detection signal acquisition end and the light return signal acquisition end, judges whether the light detection is normal or not according to the level state of the light detection signal acquisition end, and judges whether the light return is normal or not according to the level state of the light return signal acquisition end; the method comprises the following specific steps:
s31, the main control module acquires the level states of the light detection signal acquisition end and the light return signal acquisition end;
s32, judging whether the level state of the light detection signal acquisition end is a high level;
if yes, the light detection is normal; if not, the light detection alarm is carried out;
s33, judging whether the level state of the return light signal acquisition end is a high level;
if yes, a light return alarm is given; if not, the return light is normal; returning to step S1;
s4, the main control module acquires an acquisition signal of an external control signal acquisition end and calculates the frequency and the duty ratio of the signal of the external control signal acquisition end;
s5, the light detection signal acquisition end and the light return signal acquisition end are in a capture mode, the control module acquires signals of the light detection signal acquisition end and the light return signal acquisition end, and the frequency and the duty ratio of the signals of the light detection signal acquisition end and the light return signal acquisition end are respectively calculated;
s6, the control module judges whether the light detection and the return light are normal or not by comparing the frequency and the duty ratio of the signal of the external control signal acquisition end, the signal of the light detection acquisition end and the signal of the return light acquisition end; the method comprises the following specific steps:
s61, the control module compares the frequency and the duty ratio of signals of an external control signal acquisition end and a light detection signal acquisition end;
s62, when the frequency and the duty ratio of the signal of the external control signal acquisition end and the signal of the light detection signal acquisition end are consistent, the light detection is normal;
when the frequency and the duty ratio of the external control signal acquisition end signal and the light detection signal acquisition end signal are not consistent, light detection alarm is carried out;
s63, when the frequency and the duty ratio of the external control signal acquisition end signal and the return light acquisition end signal are consistent, the return light is normal;
when the frequency and the duty ratio of the external control signal acquisition end signal and the return light acquisition end signal are not consistent, a return light alarm is given;
return is made to step S1.
The main control module judges that the external control signal acquisition end enters different working modes according to different signals acquired by the external control signal acquisition end. The input signal of the external light path control module is input into the optical fiber disc on one path, and the other path is input into the main control module and is collected by the main control module, and the main control module judges whether the light detection and the light return are normal or not, so that the accurate judgment of the consistency of the signal of the light detection signal collection end and the signal of the light return signal collection end in the input signal of the external light path control module is realized.
When the signal of outside light path control module is 24V high level signal, outside control signal acquisition end gets into and overflows the mode, and control module gathers the high level signal of outside control signal acquisition end, sets up this moment, examines light signal acquisition end and gets into and pull up the input mode, sets up back light signal acquisition end and gets into and pull up the mode, and when light is returned and examined to be all normal, the back light signal acquisition end level signal that control module gathered and examine light signal acquisition end level signal all can be the high level.
When the signal of outside light path control module is 24V high level signal, outside control signal acquisition end gets into the overflow mode, control module gathers the high level signal of outside control signal acquisition end, it gets into the pull-up input mode to examine light signal acquisition end, it gets into the pull-up mode to return light signal acquisition end, when examining light normal, the light output that examines of optical fiber dish can gather 5V high level signal, control module gathers and examines light signal acquisition end level signal, when returning light normal, the light output of optical fiber dish can gather 5V high level signal, control module gathers return light signal acquisition end level signal.
When the signal of the external light path control module is a PWM signal, the external control signal acquisition end enters an input acquisition mode, the light detection signal acquisition end enters the input acquisition mode, the light return signal acquisition end enters the input acquisition mode, the control module calculates the frequency and duty ratio of the externally input PWM signal, and if the light detection is normal, the frequency and duty ratio of the signal of the light detection output end of the optical fiber disc obtained through calculation of the control module are consistent with the frequency and duty ratio of the PWM signal obtained by the external control signal acquisition end; if the return light is normal, the frequency and the duty ratio of the obtained signal of the return light output end of the optical fiber disc are consistent with the frequency and the duty ratio of the PWM signal obtained by the external control signal acquisition end through calculation of the control module.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.