CN107492782A - A kind of optical fiber laser beam shape control method based on RS232 - Google Patents

A kind of optical fiber laser beam shape control method based on RS232 Download PDF

Info

Publication number
CN107492782A
CN107492782A CN201710919819.1A CN201710919819A CN107492782A CN 107492782 A CN107492782 A CN 107492782A CN 201710919819 A CN201710919819 A CN 201710919819A CN 107492782 A CN107492782 A CN 107492782A
Authority
CN
China
Prior art keywords
data
data frame
slave computer
optical fiber
fiber laser
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710919819.1A
Other languages
Chinese (zh)
Inventor
邹志鸿
李俊
董云成
白成云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Quanzhou Institute of Equipment Manufacturing
Original Assignee
Quanzhou Institute of Equipment Manufacturing
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Quanzhou Institute of Equipment Manufacturing filed Critical Quanzhou Institute of Equipment Manufacturing
Priority to CN201710919819.1A priority Critical patent/CN107492782A/en
Publication of CN107492782A publication Critical patent/CN107492782A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01SDEVICES USING THE PROCESS OF LIGHT AMPLIFICATION BY STIMULATED EMISSION OF RADIATION [LASER] TO AMPLIFY OR GENERATE LIGHT; DEVICES USING STIMULATED EMISSION OF ELECTROMAGNETIC RADIATION IN WAVE RANGES OTHER THAN OPTICAL
    • H01S3/00Lasers, i.e. devices using stimulated emission of electromagnetic radiation in the infrared, visible or ultraviolet wave range
    • H01S3/10Controlling the intensity, frequency, phase, polarisation or direction of the emitted radiation, e.g. switching, gating, modulating or demodulating
    • H01S3/102Controlling the intensity, frequency, phase, polarisation or direction of the emitted radiation, e.g. switching, gating, modulating or demodulating by controlling the active medium, e.g. by controlling the processes or apparatus for excitation

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Plasma & Fusion (AREA)
  • Optics & Photonics (AREA)
  • Optical Communication System (AREA)

Abstract

The present invention relates to a kind of optical fiber laser beam shape control method based on RS232, it receives the data frame for the data containing predetermined waveform that host computer is sent by slave computer, and the default Wave data is stored in inside slave computer using array, according to the Wave data of storage, slave computer changes the level combinations of slave computer I/O interface by timer period, so as to realize the High Speed Modulation to laser output waveform.

Description

A kind of optical fiber laser beam shape control method based on RS232
Technical field
The present invention relates to laser waveform modulation and control field, a kind of optical fiber laser wave beam based on RS232 is especially related to Shape control method.
Background technology
Laser waveform modulation at present and control mainly have two methods of external modulation and internal modulation, and external modulation is on laser optical path Attenuator is added, final output laser waveform is controlled by the attenuation rate of programming Control attenuator.Because external modulation is in light path Upper introducing attenuator, can reduce energy efficiency, thus be used for the digital modulation of low-power laser.Internal modulation is swashed by controlling The driving intensity of light device, so as to realize the control to laser output waveform.
At present, existing optical fiber laser internal modulation method mainly has two kinds:Serial communication controls and Digital I/O combination control System.The former sends to laser and ordered, set the power output of laser, so as to control accordingly by self-defining communication protocol Power laser output.This method can be directly controlled using PC to laser waveform, and still, serial communication time delay is big, By this way to laser output power modulating frequency in kHz magnitudes.The latter is by controlling the logical combination control of digital I/O interface The laser output of corresponding power is made, which is to the modulating frequency of laser output power up to more than 10MHz.It is however, general Industrial computer and desktop computer all can not be directly controlled using this method to laser output waveform.
Based on problem above, thus this case produces.
The content of the invention
It is an object of the invention to provide a kind of optical fiber laser beam shape control method based on RS232, using this Method can realize High Speed Modulation of the host computers such as PC and industrial computer to optical fiber laser beam shape, reach its modulating frequency More than 10MHz.
To achieve the above object, the technical solution adopted by the present invention is:
A kind of optical fiber laser beam shape control method based on RS232, it comprises the following steps:
Step 1, using RS232 as communication interface, the data frame of the data containing predetermined waveform is sent to bottom by host computer Machine, and enter wait state;Wherein, slave computer uses chip microcontroller, data frame successively by starting character, address, function code, Data, separator, verification and and end mark composition;
Step 2, slave computer receive data frame and simultaneously parsed, and to the verification in data frame and school is carried out after being parsed Test, if there is mistake, abandon the data frame, and the acknowledgement frame of mistake is returned to host computer, host computer receives answering for mistake Answer and jump to step 1 after frame and send out data frame again;If without mistake, correct acknowledgement frame is returned to host computer, and enter next Step;When host computer waits more than setting time not by acknowledgement frame, jump to step 1 and resend data frame;
Function code and Wave data in step 3, slave computer extraction data frame, and Wave data is stored in slave computer Portion, according to function code and Wave data, slave computer changes the level combinations of its digital I/O interface by timer period Control the output waveform of optical fiber laser.
The data frame is the data encoding based on modbus, and its maximum length is 256 bytes, a high position for each byte Preceding, low level is rear;In data frame, starting character is a byte, and address is a byte, and function code is a byte, Data maximum length is 246 bytes, and separator is a byte, verification and be two bytes, end mark is two bytes.
For the host computer when sending data frame, each data byte in data frame increases 128 certainly.
The starting character be English character ":" ASCII character, function code 0-127, separator be English character ";” ASCII character, verification and the integer data for two bytes composition, end mark be ASCII character " n r " combinations.
When the slave computer returns to acknowledgement frame, the data for the data frame that the data of acknowledgement frame receive for slave computer, data The function code of frame is the function code increase by 128 for the data frame that slave computer receives.
The slave computer includes main control chip and connects the conversion chip Trs232 and isolator of main control chip, master control core Piece connects optical fiber laser by conversion chip Trs232 connection host computers, the digital I/O interface of main control chip by isolator.
The present invention receives the data frame for the data containing predetermined waveform that host computer is sent by slave computer, and should using array Default Wave data is stored in inside slave computer, and slave computer is realized defeated to optical fiber laser using digital I/O interface and timer Go out the PLC technology of beam shape.Specifically, slave computer is sharp to control using the specific numeral combination of digital I/O interface output The size of optical output power, laser output power is sexually revised using timer period, so as to control the ripple that optical fiber laser exports Harness shape, the spilling cycle by changing timer can change the modulating frequency of wave beam, make modulating frequency reach 10MHz with On.In addition, after the completion of each Wave data traversal, can accurately be covered up by the timer of main control chip, again time Wave data is gone through, so as to realize the controllable laser beam output of repetition rate.
Brief description of the drawings
Fig. 1 is the workflow sketch of the present invention;
Fig. 2 is the theory diagram of the present invention;
Fig. 3 is the structured flowchart of slave computer of the present invention;
Fig. 4 is the structure chart of the data frame of the present invention;
Fig. 5 is the host computer and slave computer communication flow diagram of the present invention;
Fig. 6 is the implementation result figure of the present invention.
Embodiment
As shown in Figures 1 to 6, present invention is disclosed a kind of optical fiber laser beam shape control method based on RS232, It receives the data frame for the data containing predetermined waveform that host computer is sent by slave computer, and uses array by the default waveform number According to being stored in inside slave computer, according to the Wave data of storage, slave computer changes slave computer IO by timer period and connect The level combinations of mouth, so as to realize the High Speed Modulation to laser output waveform.
The optical fiber laser beam shape control method specifically includes following steps:
Step 1, using RS232 as communication interface, the data frame of the data containing predetermined waveform is sent to bottom by host computer Machine, and enter wait state;Wherein, slave computer uses chip microcontroller, data frame successively by starting character, address, function code, Data, separator, verification and and end mark composition.
Above-mentioned data frame is the data encoding based on modbus, and its maximum length is 256 bytes, a high position for each byte Preceding, low level is rear.In data frame, starting character is a byte, and address is a byte, and function code is a byte, Data maximum length is 246 bytes, and separator is a byte, verification and be two bytes, end mark is two bytes.
Starting character be English character ":" ASCII character, function code 0-127, separator be English character ";" ASCII character, the setting of the separator can improve the analyzing efficiency of slave computer;Verification and the integer for two byte compositions According to improve the letter of the reliable communications between host computer and slave computer;End mark be ASCII character " n r " combination.
Data are encoded using a centesimal system, and the data area that each byte can represent is 0-99;Data more than 100 need Introduce new byte.Each data byte is needed when sending from increasing 128, with separated data and the data field of function code, Simplify resolving of the slave computer to data frame.Two byte representations can use such as 314, be x83 x8e.
Step 2, slave computer receive data frame and simultaneously parsed, and to the verification in data frame and school is carried out after being parsed Test, if there is mistake, abandon the data frame, and the acknowledgement frame of mistake is returned to host computer, host computer receives answering for mistake Answer and jump to step 1 after frame and send out data frame again;If without mistake, correct acknowledgement frame is returned to host computer, and enter next Step;When host computer waits more than setting time not by acknowledgement frame, jump to step 1 and resend data frame.
When slave computer returns to acknowledgement frame, the data of acknowledgement frame are the data for the data frame that slave computer receives, data frame Function code is the function code increase by 128 for the data frame that slave computer receives.
Function code and Wave data in step 3, slave computer extraction data frame, and Wave data is stored in slave computer Portion, according to function code and Wave data, slave computer changes the level combinations of its digital I/O interface by timer period Control the output waveform of optical fiber laser.
Slave computer includes main control chip and the conversion chip Trs232 for connecting main control chip and isolator, main control chip lead to Conversion chip Trs232 connection host computers are crossed, to ensure the communication of host computer and slave computer, the digital I/O interface of main control chip is led to Isolator connection optical fiber laser is crossed, to realize logic level transition and high-voltage isolation protective.Slave computer uses main control chip Digital I/O interface and timer realize the PLC technology to optical fiber laser beamformer output shape, wherein, utilize main control chip Digital I/O interface output specific numeral combination control the size of laser output power, utilize the timer week of main control chip Phase sexually revises laser output power, so as to control the beam shape that optical fiber laser exports, by the spilling week for changing timer Phase can change the modulating frequency of wave beam, modulating frequency is reached more than 10MHz.In addition, when each Wave data traversal is completed Afterwards, it can accurately be covered up by the timer of main control chip, travel through Wave data again, so as to realize that repetition rate is controllable Laser beam output.
It is described above, only it is the embodiment of the present invention, is not intended to limit the scope of the present invention, thus it is every Any subtle modifications, equivalent variations and modifications that technical spirit according to the present invention is made to above example, still fall within this In the range of inventive technique scheme.

Claims (6)

  1. A kind of 1. optical fiber laser beam shape control method based on RS232, it is characterised in that:Comprise the following steps:
    Step 1, using RS232 as communication interface, the data frame of the data containing predetermined waveform is sent to slave computer by host computer, and Into wait state;Wherein, slave computer uses chip microcontroller, data frame successively by starting character, address, function code, data, Separator, verification and and end mark composition;
    Step 2, slave computer receive data frame and simultaneously parsed, and to the verification in data frame and are verified after being parsed, if There is mistake, then abandon the data frame, and the acknowledgement frame of mistake is returned to host computer, after host computer receives the acknowledgement frame of mistake Jump to step 1 and send out data frame again;If without mistake, correct acknowledgement frame is returned to host computer, and enter next step;When When host computer waits more than setting time not by acknowledgement frame, jump to step 1 and resend data frame;
    Function code and Wave data in step 3, slave computer extraction data frame, and Wave data is stored in inside slave computer, According to function code and Wave data, slave computer changes the level combinations control of its digital I/O interface by timer period The output waveform of optical fiber laser.
  2. 2. a kind of optical fiber laser beam shape control method based on RS232 according to claim 1, its feature exist In:The data frame is the data encoding based on modbus, and its maximum length is 256 bytes, each byte it is high-order preceding, Low level is rear;In data frame, starting character is a byte, and address is a byte, and function code is a byte, and data are most Long length is 246 bytes, and separator is a byte, verification and be two bytes, end mark is two bytes.
  3. 3. a kind of optical fiber laser beam shape control method based on RS232 according to claim 2, its feature exist In:For the host computer when sending data frame, each data byte in data frame increases 128 certainly.
  4. 4. a kind of optical fiber laser beam shape control method based on RS232 according to claim 2, its feature exist In:The starting character be English character ":" ASCII character, function code 0-127, separator be English character ";" ASCII character, verification and the integer data for two bytes composition, end mark be ASCII character " n r " combinations.
  5. 5. a kind of optical fiber laser beam shape control method based on RS232 according to claim 1, its feature exist In:When the slave computer returns to acknowledgement frame, the data for the data frame that the data of acknowledgement frame receive for slave computer, the work(of data frame Energy code is the function code increase by 128 for the data frame that slave computer receives.
  6. 6. a kind of optical fiber laser beam shape control method based on RS232 according to claim 1, its feature exist In:The slave computer includes main control chip and the conversion chip Trs232 for connecting main control chip and isolator, main control chip lead to Conversion chip Trs232 connection host computers are crossed, the digital I/O interface of main control chip connects optical fiber laser by isolator.
CN201710919819.1A 2017-09-30 2017-09-30 A kind of optical fiber laser beam shape control method based on RS232 Pending CN107492782A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710919819.1A CN107492782A (en) 2017-09-30 2017-09-30 A kind of optical fiber laser beam shape control method based on RS232

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710919819.1A CN107492782A (en) 2017-09-30 2017-09-30 A kind of optical fiber laser beam shape control method based on RS232

Publications (1)

Publication Number Publication Date
CN107492782A true CN107492782A (en) 2017-12-19

Family

ID=60653280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710919819.1A Pending CN107492782A (en) 2017-09-30 2017-09-30 A kind of optical fiber laser beam shape control method based on RS232

Country Status (1)

Country Link
CN (1) CN107492782A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108620727A (en) * 2018-04-28 2018-10-09 深圳市创鑫激光股份有限公司 Working method, quasi-continuous laser, laser cutting and the welding system of laser

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070053391A1 (en) * 2003-06-03 2007-03-08 Ram Oron Laser pulse generator
CN102158122A (en) * 2010-12-30 2011-08-17 天津大学 Generating method of four-channel piezoelectric ceramic drive voltage and drive power supply
CN105573958A (en) * 2016-01-12 2016-05-11 西北工业大学 Reliable data interaction method based on RS-422 serial bus technique
CN106441806A (en) * 2016-08-31 2017-02-22 中国人民解放军国防科学技术大学 Semiconductor laser degradation testing and service life prediction experimental platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070053391A1 (en) * 2003-06-03 2007-03-08 Ram Oron Laser pulse generator
CN102158122A (en) * 2010-12-30 2011-08-17 天津大学 Generating method of four-channel piezoelectric ceramic drive voltage and drive power supply
CN105573958A (en) * 2016-01-12 2016-05-11 西北工业大学 Reliable data interaction method based on RS-422 serial bus technique
CN106441806A (en) * 2016-08-31 2017-02-22 中国人民解放军国防科学技术大学 Semiconductor laser degradation testing and service life prediction experimental platform

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108620727A (en) * 2018-04-28 2018-10-09 深圳市创鑫激光股份有限公司 Working method, quasi-continuous laser, laser cutting and the welding system of laser
WO2019206339A1 (en) * 2018-04-28 2019-10-31 深圳市创鑫激光股份有限公司 Laser operating method, quasi continuous wave laser, and laser cutting and welding system

Similar Documents

Publication Publication Date Title
CN106411667B (en) Intelligent home multi-cloud control method and system based on network chip
CN202907302U (en) A cascade structure of a LED lamp string
CN104579583A (en) Improved method for 8b/10b coding mode
CN107492782A (en) A kind of optical fiber laser beam shape control method based on RS232
CN100543680C (en) A kind of method of the electric energy meter chip program being carried out down loading updating
CN109388402A (en) Lightweight Josn format analytical tool based on Android platform
CN106850559A (en) A kind of expansible procotol analysis system and method
CN102970105A (en) Transmission method and system of light-emitting diode (LED) chip cascading signals
CN105376070A (en) Method and system of power chip for adaptively supplying operating voltage to Ethernet packet switching chip
CN106790618A (en) For the multi-function communication device and its data forwarding method of analogue system under water
CN105242301B (en) A kind of distant quick-fried system and method for electronic digital detonator
CN104216317A (en) Enabling signal control circuit used for improving data transmission reliability of RS485 bus
CN218631330U (en) 8080 interface SPI (serial peripheral interface) conversion test system
CN103457154A (en) Integrated optical communication laser driver with pre-emphasis
CN104537572B (en) Substation secondary device method for parameter configuration and system
CN107562676B (en) Method for communicating with generator set controller through USB (universal serial bus) based on VB
CN103368908A (en) Gateway protocol, gateway equipment and electrical equipment control system
CN103325237B (en) The generation method of infrared carrier signal and device
CN111615242B (en) Lamp, controller and lamp dimming method
CN104506087A (en) Pump storage group variable frequency starting load simulation system
CN101369867A (en) Communication control method of universal hand-hold programmer
CN103631983A (en) Method and system for simulating tactical data messages
CN111431973B (en) UART-based program online downloading system and method for practical teaching of computer system
CN107463546A (en) A kind of document structure tree method and system based on index storehouse
CN103200210B (en) Digital quantity input equipment and method based on High-Level Data Link Control

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20171219

RJ01 Rejection of invention patent application after publication