US20160152040A1 - Method for Controlling Laser Marking Machine and Laser Marking Machine - Google Patents
Method for Controlling Laser Marking Machine and Laser Marking Machine Download PDFInfo
- Publication number
- US20160152040A1 US20160152040A1 US14/621,397 US201514621397A US2016152040A1 US 20160152040 A1 US20160152040 A1 US 20160152040A1 US 201514621397 A US201514621397 A US 201514621397A US 2016152040 A1 US2016152040 A1 US 2016152040A1
- Authority
- US
- United States
- Prior art keywords
- galvanometer
- laser
- control
- marking
- unit
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000010330 laser marking Methods 0.000 claims abstract description 50
- 239000000284 extract Substances 0.000 claims abstract description 13
- 108010001267 Protein Subunits Proteins 0.000 claims description 3
- 230000008569 process Effects 0.000 description 9
- 230000003213 activating effect Effects 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 7
- 230000004913 activation Effects 0.000 description 5
- 238000006073 displacement reaction Methods 0.000 description 5
- 238000004364 calculation method Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000003139 buffering effect Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000003698 laser cutting Methods 0.000 description 1
- 238000007648 laser printing Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B23—MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
- B23K—SOLDERING OR UNSOLDERING; WELDING; CLADDING OR PLATING BY SOLDERING OR WELDING; CUTTING BY APPLYING HEAT LOCALLY, e.g. FLAME CUTTING; WORKING BY LASER BEAM
- B23K26/00—Working by laser beam, e.g. welding, cutting or boring
- B23K26/70—Auxiliary operations or equipment
- B23K26/702—Auxiliary equipment
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B41—PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
- B41J—TYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
- B41J2/00—Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
- B41J2/435—Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by selective application of radiation to a printing material or impression-transfer material
- B41J2/47—Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by selective application of radiation to a printing material or impression-transfer material using the combination of scanning and modulation of light
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B23—MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
- B23K—SOLDERING OR UNSOLDERING; WELDING; CLADDING OR PLATING BY SOLDERING OR WELDING; CUTTING BY APPLYING HEAT LOCALLY, e.g. FLAME CUTTING; WORKING BY LASER BEAM
- B23K26/00—Working by laser beam, e.g. welding, cutting or boring
- B23K26/08—Devices involving relative movement between laser beam and workpiece
- B23K26/082—Scanning systems, i.e. devices involving movement of the laser beam relative to the laser head
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B23—MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
- B23K—SOLDERING OR UNSOLDERING; WELDING; CLADDING OR PLATING BY SOLDERING OR WELDING; CUTTING BY APPLYING HEAT LOCALLY, e.g. FLAME CUTTING; WORKING BY LASER BEAM
- B23K26/00—Working by laser beam, e.g. welding, cutting or boring
- B23K26/352—Working by laser beam, e.g. welding, cutting or boring for surface treatment
- B23K26/355—Texturing
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B23—MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
- B23K—SOLDERING OR UNSOLDERING; WELDING; CLADDING OR PLATING BY SOLDERING OR WELDING; CUTTING BY APPLYING HEAT LOCALLY, e.g. FLAME CUTTING; WORKING BY LASER BEAM
- B23K26/00—Working by laser beam, e.g. welding, cutting or boring
- B23K26/36—Removing material
- B23K26/362—Laser etching
- B23K26/364—Laser etching for making a groove or trench, e.g. for scribing a break initiation groove
Definitions
- the present invention relates to the field of laser printing technologies, and in particular, to a method for controlling a laser marking machine and a laser marking machine.
- a laser marking machine refers to a machine which is used to stamp a permanent mark on a surface of various material by laser beam.
- a laser marking machine 10 in the prior art includes a marking board 101 , a laser device 102 and a galvanometer 103 .
- the marking board 101 communicates with a computer 11 through a USB interface, and the marking board 101 communicates with the laser device 102 through 25-pin TTL level.
- the operating principle of the laser marking machine is as follows: the computer 11 transfers marking instructions to the marking board 101 through the USB interface; the marking instructions are buffered by the marking board 101 ; the marking process starts after the buffering; the marking board 101 reads the buffered marking instructions one by one, so as to control the switch of the laser device and the movement of the galvanometer to perform the marking process.
- the laser marking machine in the prior art has following disadvantages.
- the marking board 101 communicates with the laser device 102 through 25-pin TTL level, the marking board is required to use db25 interface level fluctuation to control the laser device, and marking information needs to be converted to a db25 high-low level signal; the laser device detects the db25 high-low level signal and then the high-low level signal is parsed to the marking information, so as to control the switch, power and frequency of the laser; and this may induce some calculation errors and cause unstable transmission due to interference.
- the marking board and laser device are independent of each other, and controlling is performed only by the db25 high-low level signal, so that the controlling of the marking board 101 to the laser device 102 is relatively rough.
- this structure may result in a relative large volume of the laser marking machine, which may directly cause a waste of resource and an increased consumption.
- the main technical problem to be solved in the present invention is to provide a method for controlling a laser marking machine and a laser marking machine.
- the solution of the present invention is able to directly transfer laser control instruction(s) and laser control parameter(s) to a laser control module, and directly transfer galvanometer control instruction(s) and galvanometer control parameter(s) to a galvanometer control module, without encoding and decoding the laser control instruction(s), the laser control parameter(s), the galvanometer control instruction(s) and the galvanometer control parameter(s), which is very convenient.
- a laser marking machine wherein the laser marking machine includes an interface module, a processing module, a laser control module and a galvanometer control module; wherein,
- the interface module is configured to receive marking data packets and transfer the marking data packets to the processing module:
- the processing module is configured to parse the marking data packets to obtain marking instructions and control parameters, extract laser control instruction(s) and galvanometer control instruction(s) from the marking instructions, extract laser control parameter(s) and galvanometer control parameter(s) from the control parameters, transfer the laser control instruction(s) and the laser control parameter(s) to the laser control module, and transfer the galvanometer control instruction(s) and the galvanometer control parameter(s) to the galvanometer control module;
- the laser control module is configured to control the marking of a laser device according to the laser control instruction(s) and the laser control parameter(s)
- the galvanometer control module is configured to control the movement of a galvanometer according to the galvanometer control instruction(s) and the galvanometer control parameter(s).
- the processing module includes a parsing unit and a main control unit; wherein,
- the parsing unit is configured to parse the marking data packets to obtain the marking instructions and the control parameters;
- the main control unit is configured to extract the marking instructions, extract control parameters and execute processing to obtain the laser control instruction(s), the galvanometer control instruction(s), the laser control parameter(s) and the galvanometer control parameter(s), and to transfer the laser control instruction(s) and the laser control parameter(s) to the laser control module and transfer the galvanometer control instruction(s) and the galvanometer control parameter(s) to the galvanometer control module.
- the processing module further includes a storing unit and an instruction registering unit; wherein,
- the storing unit is configured to store the marking instructions
- the instruction registering unit is configured to store the control parameters.
- the instruction registering unit further includes a start registering sub-unit;
- the main control unit is configured to transfer a read instruction when it is detected that a start tag of starting marking is stored in the start registering sub-unit.
- the processing module further includes a read unit and a buffer unit; wherein,
- the read unit is configured to read the marking instructions from the storing unit according to the read instruction and store the marking instructions in the buffer unit;
- the main control unit is configured to read the marking instructions from the buffer unit.
- the buffer unit is configured to buffer at least 500 instructions, so as to keep the main control unit not in vacancy.
- the galvanometer control parameters include a movement velocity and a movement direction of the galvanometer.
- the galvanometer control instructions include a target coordinate value of the movement of the galvanometer.
- the galvanometer control module is particularly configured to,
- a medium coordinate value is calculated according to the current coordinate value, the preset time step size, the movement velocity and the movement direction, and the medium coordinate value is transferred to the galvanometer;
- the medium coordinate value is used as a current coordinate value, and it is repeated to judge whether the move time of each step is more than the preset time step size, if the move time of each step is more than the preset time step size, then the medium coordinate value be calculated and transferred to the galvanometer.
- the galvanometer control module is also configured to directly transfer the target coordinate value to the galvanometer.
- the laser control instructions includes activation of the laser and termination of the laser, and the laser control parameters includes delay time of activating the laser, delay time of terminating the laser, frequency of the laser and power of the laser.
- a method for controlling a laser marking machine includes:
- the laser control module controlling the marking of a laser device according to the laser control instruction(s) and the laser control parameter(s)
- the galvanometer control module controlling the movement of the galvanometer according to the galvanometer control instruction(s) and the galvanometer control parameter(s).
- the method further includes:
- the method further includes:
- the method further includes:
- the start tag of the starting marking is stored in the start registering sub-unit, then reading the marking instructions from the storing unit and storing the marking instructions in a buffer unit.
- the method further includes:
- the galvanometer control parameters include a movement velocity of the galvanometer
- the galvanometer control instructions include a target coordinate value of the movement of the galvanomneter.
- the step of the galvanometer control module controlling the movement of the galvanometer according to the galvanometer control instructions and the galvanometer control parameters in particular includes:
- the method further includes:
- the galvanometer control module directly transferring the target coordinate value to the galvanometer.
- the laser control instructions includes activation of the laser and termination of the laser, and the laser control parameters includes delay time of activating the laser, delay time of terminating the laser, frequency of the laser and power of the laser.
- the solution of the present invention may parse the received marking data packets to obtain the marking instructions and the control parameters, and execute according to the marking instructions and the control parameters to obtain the laser control instruction(s), the galvanometer control instruction(s), the laser control parameter(s) and the galvanometer control parameter(s); wherein, the laser control instruction(s) and the laser control parameter(s) may be directly transferred to the laser control module, and the galvanometer control instruction(s) and the galvanometer control parameter(s) may be directly transferred to the galvanometer control module; and the laser control module may directly use the received laser control instruction(s) and the laser control parameter(s), and the galvanometer control module may also directly use the received galvanometer control instruction(s) and the galvanometer control parameter(s), without encoding and decoding the laser control instruction(s), the galvanometer control instruction(s), the laser control parameter(s) and the galvanometer control parameter(s) during the transmission of the data, which is very
- FIG. 1 is a schematic structural diagram of a laser marking machine in the prior art
- FIG. 2 is a schematic diagram showing a logical structure of a laser marking machine according to a first embodiment of the present invention
- FIG. 3 is a schematic diagram of an input signal of the laser marking machine according to the first embodiment of the present invention.
- FIG. 4 is a schematic diagram of an output signal of the laser marking machine according to the first embodiment of the present invention.
- FIG. 5 is a schematic diagram showing a detailed structure of a processing module of the laser marking machine according to the first embodiment of the present invention
- FIG. 6 is a schematic diagram showing the state procedure of a state machine of a parsing unit of the laser marking machine according to the first embodiment of the present invention:
- FIG. 7 is a schematic diagram showing an executive procedure of a main control unit of the laser marking machine according to the first embodiment of the present invention.
- FIG. 8 is a flow chat showing an implementation of a method for controlling a laser marking machine according to the present invention.
- a laser marking machine 20 may include an interface module 21 , a processing module 22 , a laser control module 23 and a galvanometer control module 24 .
- the interface module 21 may receive marking data packets and transfer the marking data packets to the processing module 22 .
- the interface module 21 is a USB interface which is connected to a computer 25 , and the computer 25 may transfer the marking data packets to the laser marking machine 20 via the USB interface.
- the interface module 21 may be other standard communication interfaces such as serial port, network port and the like. Wherein, the marking data packets are packed by the computer 25 according to patterns to be marked.
- the processing module 22 may parse the marking data packets to obtain marking instructions and control parameters.
- the marking instructions are instructions used to control operations of the laser device and the galvanometer
- the control parameters are parameters used to control operations of the laser device and the galvanometer.
- the processing module 22 may extract laser control instruction(s) and galvanometer control instruction(s) from the marking instructions, extract laser control parameter(s) and galvanometer control parameter(s) from the control parameters; and then may transfer the laser control instruction(s) and the laser control parameter(s) to the laser control module 23 , and transfer the galvanometer control instruction(s) and the galvanometer control parameter(s) to the galvanometer control module 24 .
- the laser control module 23 may control the marking of a laser device according to the laser control instruction(s) and the laser control parameter(s), and the galvanometer control module 24 may control the movement of a galvanometer according to the galvanometer control instruction(s) and the galvanometer control parameter(s).
- the laser control instructions may include activation of the laser and termination of the laser, and the laser control parameters may include delay time of activating the laser, delay time of terminating the laser, frequency of the laser and power of the laser.
- the galvanometer control instructions may include a coordinate value of the movement of the galvanometer, and the galvanometer control parameters may include a velocity of the movement of the galvanometer.
- the laser device may realize the movement of a light spot on X-Y coordinate by controlling the movement of the galvanometer, so as to realize the movement on marked plane at arbitrary positions.
- the galvanometer control instructions may include a target coordinate value of the movement of the galvanometer, which is a terminal (a coordinate value of position) of the movement of the galvanometer and refers to a terminal of the movement of the galvanometer requested by a current instruction.
- the processing module 22 may transfer a coordinate value VAL of next position to the galvanometer control module 24 . After arriving at the VAL position, the galvanometer returns an end pulse to the processing module 22 .
- the galvanometer has its own control protocol and may not arrive at the position of the target coordinate value at one time.
- the control protocol of the galvanometer is XY2-100 protocol, including a preset time step size, for example, 10 ⁇ s for one step, which means a position value is sent to the galvanometer every 10 ⁇ s, an input signal shown in FIG. 3 , and an output signal shown in FIG. 4 . That is to say, the position information from the processing module 22 may be transferred to the galvanometer in a form that could be recognized by the galvanometer.
- the galvanometer control module 24 is configured to obtain a current coordinate value where the galvanometer is currently positioned, calculate a movement distance of the galvanometer according to the current coordinate value and a target coordinate value, and calculate a move time of each step according to the movement distance and the movement velocity.
- a medium coordinate value could be calculated according to the current coordinate value, the preset time step size, the movement velocity and the movement direction, and the medium coordinate value is transferred to the galvanometer, such that the galvanometer is moved to the position of the medium coordinate value.
- a difference obtained by subtracting the preset time step size from the move time of each step is used as a new move time of each step, and the medium coordinate value is used as the current coordinate value.
- the galvanometer control module is also configured to directly transfer the target coordinate value to the galvanometer.
- the move time of each step of the galvanometer is 10 ⁇ s, and the galvanometer moves at a preset movement velocity. Accordingly, a displacement for each step is a step.
- a fine interpolation processing is required at last step. For example, if the remainder displacement of the galvanometer is more than 1 step but less than 1.5 steps, the remainder displacement will be completed in one step; if the remainder displacement is more than 1.5 steps but less than 2 steps, it will be completed in two steps. As such, the fine interpolation processing is necessarily made in the case of not exact division. The principle of the fine interpolation processing may not change the movement velocity of the galvanometer and not result in a great change in displacement at last step.
- the processing module 22 may include a parsing unit 221 , an instruction registering unit 222 , a storing unit 223 and a main control unit 226 .
- the parsing unit 221 may parse the marking data packets to obtain the marking instructions and the control parameters, and store the marking instructions and the control parameters in the storing unit 223 and the instruction registering unit 222 respectively. Further, once the parsing unit 221 receives a set of information, it may return a set of information to the computer 25 .
- the responsive exchange manner may guarantee the accuracy of data during transmission.
- the entire procedure of parsing may be completed using a state machine. As shown in FIG. 6 , the states of the state machine include initial state->detecting packet head->judging packet type->storing marking instructions in storing unit and storing control parameter in instruction registering unit->returning responsive packet to computer->completion state. It should be explained that. FIG.
- the reading process includes: judging whether to read image information or control information firstly, then transferring a read instruction to the storing unit and the instruction registering unit, and the data after being read back being transferred to the computer 25 in the form of responsive packets.
- the parsing unit 221 has two functions, which are parsing and transferring of the data packets.
- the main control unit 226 may extract the marking instructions from the storing unit 223 , extract control parameters from the instruction registering unit 222 , and then execute processing to obtain the laser control instruction(s), the galvanometer control instruction(s), the laser control parameter(s) and the galvanometer control parameter(s), and transfer the laser control instruction(s) and the laser control parameter(s) to the laser control module 23 and transfer the galvanometer control instruction(s) and the galvanometer control parameter(s) to the galvanometer control module 24 .
- the main control unit 226 may primarily be configured to control the states of the laser marking machine according to the control parameter(s) in the instruction registering unit 222 (for example, start, pause, times of marking and the like), and to transfer the delay parameter(s), the velocity parameter(s) and the like in the instruction registering unit 222 to the laser control module 23 and the galvanometer control module 24 .
- the instruction registering unit 222 may further include a start registering sub-unit (not shown in figure).
- the computer 25 may write a start tag of starting marking in the start registering sub-unit; when it is requested to terminate marking, the computer 25 may write a termination tag of terminating marking in the start registering sub-unit.
- the main control unit 226 may detect the start registering sub-unit itinerantly. When the start tag is detected, the main control unit 226 may read the marking instructions and the control parameters to execute; when the termination tag is detected, the main control unit 226 may terminated the execution.
- the start tag may be designated by high level as “1”
- the termination tag may be designated by low level as “0”.
- the marking instructions may also be buffered in a buffer unit.
- the main control unit 226 may extract the marking instructions from the buffer unit.
- the processing module 22 may further include a read unit 224 and a buffer unit 225 .
- the main control unit 226 may transfer a read instruction to the read unit 224 , and the read unit 224 may read the marking instructions from the storing unit 223 according to the read instruction and store the marking instructions in the buffer unit 225 .
- the main control unit 226 may read the marking instructions from the buffer unit 225 .
- the writer of the buffer unit 225 is the read unit 224
- the reader of the content of the buffer unit 225 is the main control unit 226 .
- the write-in speed is much higher that the read-out speed. Since the marking instructions are buffered by the buffer unit 225 , the read-out speed and the write-in speed of the main control unit 226 can be increased.
- the size of the buffer unit 225 is configurable. In the embodiment of the present invention, the buffer unit 225 may be configured to buffer 500 instructions, so as to keep the main control unit 226 always not in vacancy. After the data in the storing unit 223 are all read out, one instruction execution of the main control unit 226 is followed by one instruction reduction from the buffer unit 225 , until the buffer unit 225 is all read out.
- the read unit 224 may transfer an “empty” signal to the main control unit 226 , and the main control unit 226 may determine that all the instructions are completely executed (the marking is completed).
- the execution processes of the main control unit 226 are shown in FIG. 7 .
- the data may be directly transmitted through data transmission without being encoded, which is convenient and prompt.
- the parsing unit 221 and the read unit 224 in the FPGA are realized in the form of hardware, so that they may operate much more efficiently than those in the form of software.
- the computer 25 packages an image to be marked and transfers it to the interface module 21 , the interface module 21 transfers all information from the computer 25 to the parsing unit 221 ; after receiving the information, the parsing unit 221 filters the information; if the information is a marking instructions, then it may be written in the storing unit 223 to buffer; and if the information is control parameters (such as, the power of marking, the speed of marking, and the like), the control parameters may be written in the instruction registering unit 222 according to the protocol. After all information is completely written in, the first step of transferring information is finished.
- the parsing unit 221 filters the information; if the information is a marking instructions, then it may be written in the storing unit 223 to buffer; and if the information is control parameters (such as, the power of marking, the speed of marking, and the like), the control parameters may be written in the instruction registering unit 222 according to the protocol.
- the computer 25 writes a start command of starting marking into the instruction registering unit 222 ; once the main control unit 226 detects the start command, it may request the read unit to read the marking instructions from the storing unit 223 and buffer the marking instructions in the instruction registering unit 225 which is able to buffer 500 instructions so as to keep the main control unit 226 not in vacancy; the main control unit 226 reads the marking instructions from the instruction registering unit 225 and parses the marking instructions; and according to the parsed information, the main control unit 226 transfers the switch and delay time information for controlling the laser to the laser control module 23 and transfers a next coordinate point of the galvanometer to the galvanometer control module 24 .
- the laser control module 23 may control the switch of the laser device according to the received information, and the galvanometer control module 24 may determine a movement position of the galvanometer for each step according to the received parameters until the target coordinate point is reached.
- the buffer space between the main control unit 226 and the instruction registering unit 225 is empty.
- the marking is finished, and the second step is terminated.
- the instruction registering unit 222 may be a register, and a plurality of registers may be provided.
- the present invention has at least following advantages. Firstly, the laser marking machine in the prior art is divided into a marking board and a laser device, both of which are combined to control the switch of laser; the marking board converts the control signal to a db25 high-low level signal; the laser device detects the db25 high-low level signal and parse the detected signal to obtain a signal for control the laser; and the whole process is a process of encode-transit-decode, and the calculation of encoding and decoding may possibly induce errors.
- the laser marking machine in the present invention transfers the laser control parameters completely through the instruction registering unit and the storing unit, whereby omitting the process of encode-transit-decode and omitting the db25 interface. Therefore, the first advantage is properly improved.
- the laser marking machine in the present invention integrates the marking board and the laser device; and the laser marking machine in the present invention has a high integration from inside control logic to outside structural arrangement, whereby saving space and lowering consumption.
- the marking logic may control the laser more flexibly and easily. Since the control of the laser is not based on the simple db25 but depends on the instruction registering unit and the storing unit, the control is more appropriate and exact.
- the parsing module may parse the received marking data packets to obtain the marking instructions and the control parameters; the main control unit may execute according to the marking instructions and the control parameters to obtain the laser control instruction(s), the galvanometer control instruction(s), the laser control parameter(s) and the galvanometer control parameter(s); wherein, the main control unit may directly transfer the laser control instruction(s) and the laser control parameter(s) to the laser control module and transfer the galvanometer control instruction(s) and the galvanometer control parameter(s) to the galvanometer control module; and the laser control module may directly use the received laser control instruction(s) and laser control parameter(s) upon the receipt, and similarly, the galvanometer control module may also directly use the received galvanometer control instruction(s) and galvanometer control parameter(s) upon the receipt, without encoding and decoding the laser control instruction(s), the galvanometer control instruction(s), the laser control parameter(s) and the galvanometer control parameter(s) during the transmission of the data, which is very
- the present invention also provides a laser output device, which includes the interface module, the processing module, the laser control module and the galvanometer control module of the above embodiments, wherein, the interface module is further configured to convert USB protocol and level signals between the computer and a FPGA; and the processing module, the laser control module and the galvanometer control module are all programs of the FPGA.
- the present invention also provides an implementation of a method for controlling a laser marking machine. Please refer to FIG. 8 .
- Step S 401 receiving marking data packets.
- the marking data packets may be transferred by a computer.
- the computer may package a pattern to be marked to the marking data packets, and transfer the marking data packets to the laser marking machine.
- Step S 402 parsing the marking data packet to obtain marking instructions and control parameters.
- a laser device used for laser marking may be arranged on a galvanometer, and marking positions of the laser device may be moved by the galvanometer.
- the marking instructions usually include three actions, which include activating the laser device, terminating the laser device and moving the marking positions of the laser device.
- the control parameters may be used to indicate laser power for the laser marking, laser frequency for the laser marking, delay time of activating the laser, delay time of terminating the laser and target coordinate of the movement of the galvanometer, and the like.
- the laser control instructions may include activation of the laser and termination of the laser
- the laser control parameters may include delay time of activating the laser, delay time of terminating the laser, frequency of the laser and power of the laser.
- the galvanometer control instructions may include a coordinate value of the movement of the galvanometer, and the galvanometer control parameters may include velocity of the movement of the galvanometer.
- a start registering sub-unit may be provided.
- the start registering sub-unit may be configured to store a start tag of starting marking and a termination tag of terminating marking.
- the computer may write the start tag in the start registering sub-unit; when it is requested to terminate marking, the computer may write the termination tag in the start registering sub-unit.
- the main control unit may detect the start registering sub-unit. When the start tag is detected, the marking instructions and the control parameters may be read to execute.
- Step S 405 executing according to the marking instructions and the control parameters, to obtain laser control instruction(s) and galvanometer control instruction(s) from the marking instructions, and to obtain laser control parameter(s) and galvanometer control parameter(s) from the control parameters.
- the laser control instructions may include activation of the laser and termination of the laser; the laser control parameters may include delay time of activating the laser, delay time of terminating the laser, power of the laser and frequency of the laser; the galvanometer control instructions may include the movement of the galvanometer; and the galvanometer control parameters may include the coordinate of the movement.
- Step S 406 directly transferring the laser control instruction(s) and the laser control parameter(s) to the laser control module, such that the laser control module controls the marking of the laser device according to the laser control instruction(s) and the laser control parameter(s); and directly transferring the galvanometer control instruction(s) and the galvanometer control parameter(s) to the galvanometer control module, such that the galvanometer control module controls the movement of the galvanometer according to the galvanometer control instruction(s) and the galvanometer control parameter(s).
- the laser control instruction(s) and the laser control parameter(s) are directly transferred to the laser control module, without transferring the laser control instruction(s) and the laser control parameter(s) after encoding.
- the galvanometer control instruction(s) and the galvanometer control parameter(s) are directly transferred to the galvanometer control module, without transferring the galvanometer control instruction(s) and the galvanometer control parameter(s) after encoding. Since it is not necessary to transfer the galvanometer control instruction(s), the galvanometer control parameter(s), the laser control instruction(s) and the laser control parameter(s) after encoding, the solution of the present invention may not induce calculation errors and may not result in unstable transmission.
- Step S 401 and the Step S 405 there may be included steps of:
- Step S 403 storing the marking instructions in a storing unit and storing the control parameters in an instruction registering unit.
- the instruction registering unit may be a register, and a plurality of registers may be provided such that the control parameters could be stored in different registers according the protocol.
- Step S 404 extracting the marking instructions from the storing unit, and extracting the control parameters from the instruction registering unit.
- the read unit 224 may read instructions from the storing unit 223 .
- One marking instruction extraction from the storing unit is followed by one marking instruction reduction from the storing unit. After the marking instructions in the buffer unit 225 are all extracted, it means the completion of marking.
- the received marking data packets are parsed to obtain the marking instructions and the control parameters, and execute according to the marking instructions and the control parameters to obtain the laser control instruction(s), the galvanometer control instruction(s), the laser control parameter(s) and the galvanometer control parameter(s); wherein, the laser control instruction(s) and the laser control parameter(s) may be directly transferred to the laser control module, and the galvanometer control instruction(s) and the galvanometer control parameter(s) may be directly transferred to the galvanometer control module; and the laser control module may directly use the received laser control instruction(s) and the laser control parameter(s), and the galvanometer control module may also directly use the received galvanometer control instruction(s) and the galvanometer control parameter(s), without encoding and decoding the laser control instruction(s), the galvanometer control instruction(s), the laser control parameter(s) and the galvanometer control parameter(s) during the transmission of the data, which is very convenient.
- Embodiment of each component of the present invention can be implemented by hardware, or realized by software modules running on one or more processors, or realized by the combination thereof.
- a person skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practical use to realize some or all the functions of some or all the members of laser marking machine according to the embodiments of the present invention.
- the present invention may be further realized as some or all the equipment or device programs for executing the methods described herein (for example, computer programs and computer program products).
- This program for realizing the present invention may be stored in computer readable medium, or have one or more signal forms. These signals may be downloaded from the Internet website, or be provided by carrying signals, or be provided in any other manners.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Optics & Photonics (AREA)
- Plasma & Fusion (AREA)
- Mechanical Engineering (AREA)
- Laser Beam Processing (AREA)
Abstract
Description
- The present invention relates to the field of laser printing technologies, and in particular, to a method for controlling a laser marking machine and a laser marking machine.
- A laser marking machine refers to a machine which is used to stamp a permanent mark on a surface of various material by laser beam. As shown in
FIG. 1 , alaser marking machine 10 in the prior art includes a marking board 101, alaser device 102 and agalvanometer 103. - The marking board 101 communicates with a
computer 11 through a USB interface, and the marking board 101 communicates with thelaser device 102 through 25-pin TTL level. The operating principle of the laser marking machine is as follows: thecomputer 11 transfers marking instructions to the marking board 101 through the USB interface; the marking instructions are buffered by the marking board 101; the marking process starts after the buffering; the marking board 101 reads the buffered marking instructions one by one, so as to control the switch of the laser device and the movement of the galvanometer to perform the marking process. The laser marking machine in the prior art has following disadvantages. Firstly, since the marking board 101 communicates with thelaser device 102 through 25-pin TTL level, the marking board is required to use db25 interface level fluctuation to control the laser device, and marking information needs to be converted to a db25 high-low level signal; the laser device detects the db25 high-low level signal and then the high-low level signal is parsed to the marking information, so as to control the switch, power and frequency of the laser; and this may induce some calculation errors and cause unstable transmission due to interference. Secondly, the marking board and laser device are independent of each other, and controlling is performed only by the db25 high-low level signal, so that the controlling of the marking board 101 to thelaser device 102 is relatively rough. Thirdly, this structure may result in a relative large volume of the laser marking machine, which may directly cause a waste of resource and an increased consumption. - The main technical problem to be solved in the present invention is to provide a method for controlling a laser marking machine and a laser marking machine. The solution of the present invention is able to directly transfer laser control instruction(s) and laser control parameter(s) to a laser control module, and directly transfer galvanometer control instruction(s) and galvanometer control parameter(s) to a galvanometer control module, without encoding and decoding the laser control instruction(s), the laser control parameter(s), the galvanometer control instruction(s) and the galvanometer control parameter(s), which is very convenient.
- To solve the above technical problem, a solution of the present invention is as follows:
- A laser marking machine, wherein the laser marking machine includes an interface module, a processing module, a laser control module and a galvanometer control module; wherein,
- the interface module is configured to receive marking data packets and transfer the marking data packets to the processing module:
- the processing module is configured to parse the marking data packets to obtain marking instructions and control parameters, extract laser control instruction(s) and galvanometer control instruction(s) from the marking instructions, extract laser control parameter(s) and galvanometer control parameter(s) from the control parameters, transfer the laser control instruction(s) and the laser control parameter(s) to the laser control module, and transfer the galvanometer control instruction(s) and the galvanometer control parameter(s) to the galvanometer control module; and
- the laser control module is configured to control the marking of a laser device according to the laser control instruction(s) and the laser control parameter(s), and the galvanometer control module is configured to control the movement of a galvanometer according to the galvanometer control instruction(s) and the galvanometer control parameter(s).
- Optionally, the processing module includes a parsing unit and a main control unit; wherein,
- the parsing unit is configured to parse the marking data packets to obtain the marking instructions and the control parameters; and
- the main control unit is configured to extract the marking instructions, extract control parameters and execute processing to obtain the laser control instruction(s), the galvanometer control instruction(s), the laser control parameter(s) and the galvanometer control parameter(s), and to transfer the laser control instruction(s) and the laser control parameter(s) to the laser control module and transfer the galvanometer control instruction(s) and the galvanometer control parameter(s) to the galvanometer control module.
- Optionally, the processing module further includes a storing unit and an instruction registering unit; wherein,
- the storing unit is configured to store the marking instructions; and
- the instruction registering unit is configured to store the control parameters.
- Optionally, the instruction registering unit further includes a start registering sub-unit; and
- the main control unit is configured to transfer a read instruction when it is detected that a start tag of starting marking is stored in the start registering sub-unit.
- Optionally, the processing module further includes a read unit and a buffer unit; wherein,
- the read unit is configured to read the marking instructions from the storing unit according to the read instruction and store the marking instructions in the buffer unit; and
- the main control unit is configured to read the marking instructions from the buffer unit.
- Optionally, the buffer unit is configured to buffer at least 500 instructions, so as to keep the main control unit not in vacancy.
- Optionally, the galvanometer control parameters include a movement velocity and a movement direction of the galvanometer; and
- the galvanometer control instructions include a target coordinate value of the movement of the galvanometer.
- Optionally, the galvanometer control module is particularly configured to,
- obtain a current coordinate value where the galvanometer is currently positioned, calculate a movement distance of the galvanometer according to the current coordinate value and a target coordinate value, and calculate a move time of each step according to the movement distance and the movement velocity.
- Optionally, it is judged whether the move time of each step is more than a preset time step size;
- if the move time of each step is more than the preset time step size, then a medium coordinate value is calculated according to the current coordinate value, the preset time step size, the movement velocity and the movement direction, and the medium coordinate value is transferred to the galvanometer; and
- a difference obtained by subtracting the preset time step size from the move distance is used as a new move time of each step, the medium coordinate value is used as a current coordinate value, and it is repeated to judge whether the move time of each step is more than the preset time step size, if the move time of each step is more than the preset time step size, then the medium coordinate value be calculated and transferred to the galvanometer.
- Optionally, it is judged whether the move time of each step is less than or equal to the preset time step size; and
- if the move time of each step is less than or equal to the preset time step size, the galvanometer control module is also configured to directly transfer the target coordinate value to the galvanometer.
- Optionally, the laser control instructions includes activation of the laser and termination of the laser, and the laser control parameters includes delay time of activating the laser, delay time of terminating the laser, frequency of the laser and power of the laser.
- Another solution of the present invention is as follows:
- A method for controlling a laser marking machine, wherein the method includes:
- receiving marking data packets;
- parsing the marking data packet to obtain marking instructions and control parameters;
- executing according to the marking instructions and the control parameters, to obtain laser control instruction(s) and galvanometer control instruction(s) from the marking instructions, and to obtain laser control parameter(s) and galvanometer control parameter(s) from the control parameters;
- transferring the laser control instruction(s) and the laser control parameter(s) to the laser control module, and transferring the galvanometer control instruction(s) and the galvanometer control parameter(s) to the galvanometer control module; and
- the laser control module controlling the marking of a laser device according to the laser control instruction(s) and the laser control parameter(s), and the galvanometer control module controlling the movement of the galvanometer according to the galvanometer control instruction(s) and the galvanometer control parameter(s).
- Optionally, after the step of parsing the marking data packet to obtain marking instructions and control parameters, the method further includes:
- storing the marking instructions and the control parameters in a storing unit and an instruction registering unit respectively.
- Optionally, the method further includes:
- storing a start tag of starting marking in a start registering sub-unit of the instruction registering unit.
- Optionally, the method further includes:
- detecting whether the start tag of the starting marking is stored in the start registering sub-unit; and
- if the start tag of the starting marking is stored in the start registering sub-unit, then reading the marking instructions from the storing unit and storing the marking instructions in a buffer unit.
- Optionally, the method further includes:
- reading the marking instructions from the buffer unit, and proceeding to the step of executing according to the marking instructions and the control parameters.
- Optionally, the galvanometer control parameters include a movement velocity of the galvanometer, and the galvanometer control instructions include a target coordinate value of the movement of the galvanomneter.
- Optionally, the step of the galvanometer control module controlling the movement of the galvanometer according to the galvanometer control instructions and the galvanometer control parameters in particular includes:
- obtaining a current coordinate value where the galvanometer is currently positioned, calculating a movement distance of the galvanometer according to the current coordinate value and a target coordinate value, and calculate a move time of each step according to the movement distance and the movement velocity.
- Optionally, judging whether the move time of each step is more than a preset time step size;
- if the move time of each step is more than the preset time step size, then calculating a medium coordinate value according to the current coordinate value, the preset time step size and the movement direction, and transferring the medium coordinate to the galvanometer; and
- using a difference obtained by subtracting the preset time step size from the move time of each step as a new move time of each step, using the medium coordinate value as a current coordinate value, and repeating to judge whether the move time of each step is more than the preset time step size, if the move time of each step is more than the preset time step size, then calculating the medium coordinate value and transferring the medium coordinate value to the galvanometer.
- Optionally, the method further includes:
- judging whether the move time of each step is less than or equal to the preset time step size; and
- if the move time of each step is less than or equal to the preset time step size, the galvanometer control module directly transferring the target coordinate value to the galvanometer.
- Optionally, the laser control instructions includes activation of the laser and termination of the laser, and the laser control parameters includes delay time of activating the laser, delay time of terminating the laser, frequency of the laser and power of the laser.
- The advantageous effects of the present invention are as follows: distinguishing from the prior art, the solution of the present invention may parse the received marking data packets to obtain the marking instructions and the control parameters, and execute according to the marking instructions and the control parameters to obtain the laser control instruction(s), the galvanometer control instruction(s), the laser control parameter(s) and the galvanometer control parameter(s); wherein, the laser control instruction(s) and the laser control parameter(s) may be directly transferred to the laser control module, and the galvanometer control instruction(s) and the galvanometer control parameter(s) may be directly transferred to the galvanometer control module; and the laser control module may directly use the received laser control instruction(s) and the laser control parameter(s), and the galvanometer control module may also directly use the received galvanometer control instruction(s) and the galvanometer control parameter(s), without encoding and decoding the laser control instruction(s), the galvanometer control instruction(s), the laser control parameter(s) and the galvanometer control parameter(s) during the transmission of the data, which is very convenient.
- The drawing figures depict preferred embodiments by way of example, not by way of limitation. In the figures, like reference numerals refer to the same or similar elements.
-
FIG. 1 is a schematic structural diagram of a laser marking machine in the prior art; -
FIG. 2 is a schematic diagram showing a logical structure of a laser marking machine according to a first embodiment of the present invention; -
FIG. 3 is a schematic diagram of an input signal of the laser marking machine according to the first embodiment of the present invention; -
FIG. 4 is a schematic diagram of an output signal of the laser marking machine according to the first embodiment of the present invention; -
FIG. 5 is a schematic diagram showing a detailed structure of a processing module of the laser marking machine according to the first embodiment of the present invention; -
FIG. 6 is a schematic diagram showing the state procedure of a state machine of a parsing unit of the laser marking machine according to the first embodiment of the present invention: -
FIG. 7 is a schematic diagram showing an executive procedure of a main control unit of the laser marking machine according to the first embodiment of the present invention; and -
FIG. 8 is a flow chat showing an implementation of a method for controlling a laser marking machine according to the present invention. - It will be understood that, although the teens first, second. etc. can be used herein to describe various elements, these elements should not be limited by these terms. These terms are used to distinguish one element from another, but not to imply a required sequence of elements. For example, a first element can be termed a second element, and similarly, a second element can be termed a first element, without departing from the scope of the present invention. As used herein, the term “and/or” includes any and all combinations of one or more of the associated listed items.
- The present invention will be described in detail in connection with the drawings and the embodiments hereinafter.
- With reference to
FIG. 2 , alaser marking machine 20 may include aninterface module 21, aprocessing module 22, alaser control module 23 and a galvanometer control module 24. - The
interface module 21 may receive marking data packets and transfer the marking data packets to theprocessing module 22. In the embodiment of the present invention, theinterface module 21 is a USB interface which is connected to acomputer 25, and thecomputer 25 may transfer the marking data packets to thelaser marking machine 20 via the USB interface. Of course, in an alternative embodiment, theinterface module 21 may be other standard communication interfaces such as serial port, network port and the like. Wherein, the marking data packets are packed by thecomputer 25 according to patterns to be marked. - The
processing module 22 may parse the marking data packets to obtain marking instructions and control parameters. The marking instructions are instructions used to control operations of the laser device and the galvanometer, and the control parameters are parameters used to control operations of the laser device and the galvanometer. Theprocessing module 22 may extract laser control instruction(s) and galvanometer control instruction(s) from the marking instructions, extract laser control parameter(s) and galvanometer control parameter(s) from the control parameters; and then may transfer the laser control instruction(s) and the laser control parameter(s) to thelaser control module 23, and transfer the galvanometer control instruction(s) and the galvanometer control parameter(s) to the galvanometer control module 24. Thelaser control module 23 may control the marking of a laser device according to the laser control instruction(s) and the laser control parameter(s), and the galvanometer control module 24 may control the movement of a galvanometer according to the galvanometer control instruction(s) and the galvanometer control parameter(s). The laser control instructions may include activation of the laser and termination of the laser, and the laser control parameters may include delay time of activating the laser, delay time of terminating the laser, frequency of the laser and power of the laser. The galvanometer control instructions may include a coordinate value of the movement of the galvanometer, and the galvanometer control parameters may include a velocity of the movement of the galvanometer. - The laser device may realize the movement of a light spot on X-Y coordinate by controlling the movement of the galvanometer, so as to realize the movement on marked plane at arbitrary positions. The galvanometer control instructions may include a target coordinate value of the movement of the galvanometer, which is a terminal (a coordinate value of position) of the movement of the galvanometer and refers to a terminal of the movement of the galvanometer requested by a current instruction. In high level, the
processing module 22 may transfer a coordinate value VAL of next position to the galvanometer control module 24. After arriving at the VAL position, the galvanometer returns an end pulse to theprocessing module 22. Usually, the galvanometer has its own control protocol and may not arrive at the position of the target coordinate value at one time. The control protocol of the galvanometer is XY2-100 protocol, including a preset time step size, for example, 10 μs for one step, which means a position value is sent to the galvanometer every 10 μs, an input signal shown inFIG. 3 , and an output signal shown inFIG. 4 . That is to say, the position information from theprocessing module 22 may be transferred to the galvanometer in a form that could be recognized by the galvanometer. In particular, the galvanometer control module 24 is configured to obtain a current coordinate value where the galvanometer is currently positioned, calculate a movement distance of the galvanometer according to the current coordinate value and a target coordinate value, and calculate a move time of each step according to the movement distance and the movement velocity. It is judged whether the move time of each step is more than a preset time step size; if the move time of each step is more than the preset time step size, then a medium coordinate value could be calculated according to the current coordinate value, the preset time step size, the movement velocity and the movement direction, and the medium coordinate value is transferred to the galvanometer, such that the galvanometer is moved to the position of the medium coordinate value. A difference obtained by subtracting the preset time step size from the move time of each step is used as a new move time of each step, and the medium coordinate value is used as the current coordinate value. It is repeated to the step of judging whether the move time of each step is more than the preset time step size, if the move time of each step is more than the preset time step size, then the medium coordinate value being calculated and transferred to the galvanometer. When it is determined that the move time of each step is less than or equal to the preset time step size, the galvanometer control module is also configured to directly transfer the target coordinate value to the galvanometer. - In order to better understand the control manner of the galvanometer control module 24, the description will be given by way of taking the preset time step size of 10 μs as an example hereinafter. The move time of each step of the galvanometer is 10 μs, and the galvanometer moves at a preset movement velocity. Accordingly, a displacement for each step is a step. In the case that the VAL value is not exactly divisible by the step, a fine interpolation processing is required at last step. For example, if the remainder displacement of the galvanometer is more than 1 step but less than 1.5 steps, the remainder displacement will be completed in one step; if the remainder displacement is more than 1.5 steps but less than 2 steps, it will be completed in two steps. As such, the fine interpolation processing is necessarily made in the case of not exact division. The principle of the fine interpolation processing may not change the movement velocity of the galvanometer and not result in a great change in displacement at last step.
- Further, with reference to
FIG. 5 , theprocessing module 22 may include a parsing unit 221, aninstruction registering unit 222, astoring unit 223 and a main control unit 226. - The parsing unit 221 may parse the marking data packets to obtain the marking instructions and the control parameters, and store the marking instructions and the control parameters in the
storing unit 223 and theinstruction registering unit 222 respectively. Further, once the parsing unit 221 receives a set of information, it may return a set of information to thecomputer 25. The responsive exchange manner may guarantee the accuracy of data during transmission. The entire procedure of parsing may be completed using a state machine. As shown inFIG. 6 , the states of the state machine include initial state->detecting packet head->judging packet type->storing marking instructions in storing unit and storing control parameter in instruction registering unit->returning responsive packet to computer->completion state. It should be explained that.FIG. 6 only shows a state change of writing data to the laser marking machine by thecomputer 25, and a reversed reading process which is similar to the writing process is provided. The reading process includes: judging whether to read image information or control information firstly, then transferring a read instruction to the storing unit and the instruction registering unit, and the data after being read back being transferred to thecomputer 25 in the form of responsive packets. As it could be seen from the above, the parsing unit 221 has two functions, which are parsing and transferring of the data packets. - The main control unit 226 may extract the marking instructions from the storing
unit 223, extract control parameters from theinstruction registering unit 222, and then execute processing to obtain the laser control instruction(s), the galvanometer control instruction(s), the laser control parameter(s) and the galvanometer control parameter(s), and transfer the laser control instruction(s) and the laser control parameter(s) to thelaser control module 23 and transfer the galvanometer control instruction(s) and the galvanometer control parameter(s) to the galvanometer control module 24. In particular, the main control unit 226 may primarily be configured to control the states of the laser marking machine according to the control parameter(s) in the instruction registering unit 222 (for example, start, pause, times of marking and the like), and to transfer the delay parameter(s), the velocity parameter(s) and the like in theinstruction registering unit 222 to thelaser control module 23 and the galvanometer control module 24. - In order to facilitate controlling the main control unit 226 to start and terminate marking, the
instruction registering unit 222 may further include a start registering sub-unit (not shown in figure). When it is requested to start marking, thecomputer 25 may write a start tag of starting marking in the start registering sub-unit; when it is requested to terminate marking, thecomputer 25 may write a termination tag of terminating marking in the start registering sub-unit. The main control unit 226 may detect the start registering sub-unit itinerantly. When the start tag is detected, the main control unit 226 may read the marking instructions and the control parameters to execute; when the termination tag is detected, the main control unit 226 may terminated the execution. Herein, the start tag may be designated by high level as “1”, and the termination tag may be designated by low level as “0”. - In order to increase the speed at which the main control unit 226 reads the marking instructions, the marking instructions may also be buffered in a buffer unit. The main control unit 226 may extract the marking instructions from the buffer unit. Thus, the
processing module 22 may further include aread unit 224 and abuffer unit 225. When it is detected that the start tag is stored in the start registering sub-unit, the main control unit 226 may transfer a read instruction to theread unit 224, and theread unit 224 may read the marking instructions from the storingunit 223 according to the read instruction and store the marking instructions in thebuffer unit 225. The main control unit 226 may read the marking instructions from thebuffer unit 225. The writer of thebuffer unit 225 is the readunit 224, and the reader of the content of thebuffer unit 225 is the main control unit 226. The write-in speed is much higher that the read-out speed. Since the marking instructions are buffered by thebuffer unit 225, the read-out speed and the write-in speed of the main control unit 226 can be increased. Herein, the size of thebuffer unit 225 is configurable. In the embodiment of the present invention, thebuffer unit 225 may be configured to buffer 500 instructions, so as to keep the main control unit 226 always not in vacancy. After the data in thestoring unit 223 are all read out, one instruction execution of the main control unit 226 is followed by one instruction reduction from thebuffer unit 225, until thebuffer unit 225 is all read out. At this time, theread unit 224 may transfer an “empty” signal to the main control unit 226, and the main control unit 226 may determine that all the instructions are completely executed (the marking is completed). The execution processes of the main control unit 226 are shown inFIG. 7 . - The data may be directly transmitted through data transmission without being encoded, which is convenient and prompt. In addition, the parsing unit 221 and the
read unit 224 in the FPGA are realized in the form of hardware, so that they may operate much more efficiently than those in the form of software. - In order to better understand the present invention, the implementation principle of the present invention will be described in detail below.
- At first step of transferring information, the
computer 25 packages an image to be marked and transfers it to theinterface module 21, theinterface module 21 transfers all information from thecomputer 25 to the parsing unit 221; after receiving the information, the parsing unit 221 filters the information; if the information is a marking instructions, then it may be written in thestoring unit 223 to buffer; and if the information is control parameters (such as, the power of marking, the speed of marking, and the like), the control parameters may be written in theinstruction registering unit 222 according to the protocol. After all information is completely written in, the first step of transferring information is finished. At second step of starting marking, thecomputer 25 writes a start command of starting marking into theinstruction registering unit 222; once the main control unit 226 detects the start command, it may request the read unit to read the marking instructions from the storingunit 223 and buffer the marking instructions in theinstruction registering unit 225 which is able to buffer 500 instructions so as to keep the main control unit 226 not in vacancy; the main control unit 226 reads the marking instructions from theinstruction registering unit 225 and parses the marking instructions; and according to the parsed information, the main control unit 226 transfers the switch and delay time information for controlling the laser to thelaser control module 23 and transfers a next coordinate point of the galvanometer to the galvanometer control module 24. Thelaser control module 23 may control the switch of the laser device according to the received information, and the galvanometer control module 24 may determine a movement position of the galvanometer for each step according to the received parameters until the target coordinate point is reached. After all the instructions in thestoring unit 223 are completely executed, the buffer space between the main control unit 226 and theinstruction registering unit 225 is empty. Thus, the marking is finished, and the second step is terminated. In the embodiment of the present invention, theinstruction registering unit 222 may be a register, and a plurality of registers may be provided. - In comparison with the laser marking machine in the prior art, the present invention has at least following advantages. Firstly, the laser marking machine in the prior art is divided into a marking board and a laser device, both of which are combined to control the switch of laser; the marking board converts the control signal to a db25 high-low level signal; the laser device detects the db25 high-low level signal and parse the detected signal to obtain a signal for control the laser; and the whole process is a process of encode-transit-decode, and the calculation of encoding and decoding may possibly induce errors. In contrast, the laser marking machine in the present invention transfers the laser control parameters completely through the instruction registering unit and the storing unit, whereby omitting the process of encode-transit-decode and omitting the db25 interface. Therefore, the first advantage is properly improved. Secondly, the laser marking machine in the present invention integrates the marking board and the laser device; and the laser marking machine in the present invention has a high integration from inside control logic to outside structural arrangement, whereby saving space and lowering consumption. Thirdly, based on the above first and second points, the marking logic may control the laser more flexibly and easily. Since the control of the laser is not based on the simple db25 but depends on the instruction registering unit and the storing unit, the control is more appropriate and exact.
- In the embodiment of the present invention, the parsing module may parse the received marking data packets to obtain the marking instructions and the control parameters; the main control unit may execute according to the marking instructions and the control parameters to obtain the laser control instruction(s), the galvanometer control instruction(s), the laser control parameter(s) and the galvanometer control parameter(s); wherein, the main control unit may directly transfer the laser control instruction(s) and the laser control parameter(s) to the laser control module and transfer the galvanometer control instruction(s) and the galvanometer control parameter(s) to the galvanometer control module; and the laser control module may directly use the received laser control instruction(s) and laser control parameter(s) upon the receipt, and similarly, the galvanometer control module may also directly use the received galvanometer control instruction(s) and galvanometer control parameter(s) upon the receipt, without encoding and decoding the laser control instruction(s), the galvanometer control instruction(s), the laser control parameter(s) and the galvanometer control parameter(s) during the transmission of the data, which is very convenient.
- In addition, the present invention also provides a laser output device, which includes the interface module, the processing module, the laser control module and the galvanometer control module of the above embodiments, wherein, the interface module is further configured to convert USB protocol and level signals between the computer and a FPGA; and the processing module, the laser control module and the galvanometer control module are all programs of the FPGA.
- The present invention also provides an implementation of a method for controlling a laser marking machine. Please refer to
FIG. 8 . - Step S401, receiving marking data packets.
- The marking data packets may be transferred by a computer. The computer may package a pattern to be marked to the marking data packets, and transfer the marking data packets to the laser marking machine.
- Step S402, parsing the marking data packet to obtain marking instructions and control parameters.
- A laser device used for laser marking may be arranged on a galvanometer, and marking positions of the laser device may be moved by the galvanometer. The marking instructions usually include three actions, which include activating the laser device, terminating the laser device and moving the marking positions of the laser device. The control parameters may be used to indicate laser power for the laser marking, laser frequency for the laser marking, delay time of activating the laser, delay time of terminating the laser and target coordinate of the movement of the galvanometer, and the like. In particular, the laser control instructions may include activation of the laser and termination of the laser, and the laser control parameters may include delay time of activating the laser, delay time of terminating the laser, frequency of the laser and power of the laser. The galvanometer control instructions may include a coordinate value of the movement of the galvanometer, and the galvanometer control parameters may include velocity of the movement of the galvanometer.
- Further, a start registering sub-unit may be provided. The start registering sub-unit may be configured to store a start tag of starting marking and a termination tag of terminating marking. When it is requested to start marking, the computer may write the start tag in the start registering sub-unit; when it is requested to terminate marking, the computer may write the termination tag in the start registering sub-unit. The main control unit may detect the start registering sub-unit. When the start tag is detected, the marking instructions and the control parameters may be read to execute.
- Step S405, executing according to the marking instructions and the control parameters, to obtain laser control instruction(s) and galvanometer control instruction(s) from the marking instructions, and to obtain laser control parameter(s) and galvanometer control parameter(s) from the control parameters.
- The laser control instructions may include activation of the laser and termination of the laser; the laser control parameters may include delay time of activating the laser, delay time of terminating the laser, power of the laser and frequency of the laser; the galvanometer control instructions may include the movement of the galvanometer; and the galvanometer control parameters may include the coordinate of the movement.
- Step S406, directly transferring the laser control instruction(s) and the laser control parameter(s) to the laser control module, such that the laser control module controls the marking of the laser device according to the laser control instruction(s) and the laser control parameter(s); and directly transferring the galvanometer control instruction(s) and the galvanometer control parameter(s) to the galvanometer control module, such that the galvanometer control module controls the movement of the galvanometer according to the galvanometer control instruction(s) and the galvanometer control parameter(s).
- The laser control instruction(s) and the laser control parameter(s) are directly transferred to the laser control module, without transferring the laser control instruction(s) and the laser control parameter(s) after encoding. Similarly, the galvanometer control instruction(s) and the galvanometer control parameter(s) are directly transferred to the galvanometer control module, without transferring the galvanometer control instruction(s) and the galvanometer control parameter(s) after encoding. Since it is not necessary to transfer the galvanometer control instruction(s), the galvanometer control parameter(s), the laser control instruction(s) and the laser control parameter(s) after encoding, the solution of the present invention may not induce calculation errors and may not result in unstable transmission.
- Further, after parsing the marking data packets to obtain the marking instructions and the control parameters, t the marking instructions and the control parameters may be further buffered, and starting marking after the marking data packets are completely transferred (that is, after the marking instructions and the control parameters are completely buffered). Of course, in an alternative embodiment, it is possible to start marking while buffering the marking instructions and the control parameters. Between the Step S401 and the Step S405, there may be included steps of:
- Step S403, storing the marking instructions in a storing unit and storing the control parameters in an instruction registering unit.
- The instruction registering unit may be a register, and a plurality of registers may be provided such that the control parameters could be stored in different registers according the protocol.
- Step S404, extracting the marking instructions from the storing unit, and extracting the control parameters from the instruction registering unit.
- After starting marking, the instruction registering unit, the
read unit 224 may read instructions from the storingunit 223. One marking instruction extraction from the storing unit is followed by one marking instruction reduction from the storing unit. After the marking instructions in thebuffer unit 225 are all extracted, it means the completion of marking. - In the embodiment of the present invention, the received marking data packets are parsed to obtain the marking instructions and the control parameters, and execute according to the marking instructions and the control parameters to obtain the laser control instruction(s), the galvanometer control instruction(s), the laser control parameter(s) and the galvanometer control parameter(s); wherein, the laser control instruction(s) and the laser control parameter(s) may be directly transferred to the laser control module, and the galvanometer control instruction(s) and the galvanometer control parameter(s) may be directly transferred to the galvanometer control module; and the laser control module may directly use the received laser control instruction(s) and the laser control parameter(s), and the galvanometer control module may also directly use the received galvanometer control instruction(s) and the galvanometer control parameter(s), without encoding and decoding the laser control instruction(s), the galvanometer control instruction(s), the laser control parameter(s) and the galvanometer control parameter(s) during the transmission of the data, which is very convenient.
- Embodiment of each component of the present invention can be implemented by hardware, or realized by software modules running on one or more processors, or realized by the combination thereof. A person skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practical use to realize some or all the functions of some or all the members of laser marking machine according to the embodiments of the present invention. The present invention may be further realized as some or all the equipment or device programs for executing the methods described herein (for example, computer programs and computer program products). This program for realizing the present invention may be stored in computer readable medium, or have one or more signal forms. These signals may be downloaded from the Internet website, or be provided by carrying signals, or be provided in any other manners.
- Further, those skilled in the art should understand that the solutions of the present invention can also be used in other laser output device, such as a laser cutting machine, not limited to the laser marking machine. Moreover, unless otherwise definitely stated, each of features disclosed in the description (including claims, abstract and accompanying figures) may be replaced with alternative feature providing same, equivalent or similar purpose.
- Described above is merely the embodiments of the present invention, which does not intend to limit the scope of the present invention thereto. Any equivalent structures or equivalent flows made by the contents in the specification and the accompanying drawings of the present invention, or direct or indirect applications in other relevant technical field, are all included in the protection scope of the present invention in the same way.
Claims (20)
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410712091.1 | 2014-11-28 | ||
CN201410712091.1A CN104385787B (en) | 2014-11-28 | 2014-11-28 | A kind of control method of laser marking machine and laser marking machine |
CN201410712091 | 2014-11-28 |
Publications (2)
Publication Number | Publication Date |
---|---|
US20160152040A1 true US20160152040A1 (en) | 2016-06-02 |
US9358808B1 US9358808B1 (en) | 2016-06-07 |
Family
ID=52472231
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US14/621,397 Active US9358808B1 (en) | 2014-11-28 | 2015-02-13 | Method for controlling laser marking machine and laser marking machine |
Country Status (6)
Country | Link |
---|---|
US (1) | US9358808B1 (en) |
EP (1) | EP3025818B8 (en) |
CN (1) | CN104385787B (en) |
ES (1) | ES2667724T3 (en) |
PL (1) | PL3025818T3 (en) |
WO (1) | WO2016082353A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018042313A3 (en) * | 2016-08-31 | 2018-04-12 | Esab Ab | Method, welding system and article with a computer programm for implementing universal commands in a welding or cutting system |
CN115319300A (en) * | 2022-10-14 | 2022-11-11 | 前海晶方云(深圳)测试设备有限公司 | Substrate marking device |
Families Citing this family (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104985939B (en) * | 2015-06-25 | 2016-05-25 | 深圳市创鑫激光股份有限公司 | A kind of laser marking machine control method and laser marking machine |
CN104999814B (en) * | 2015-07-28 | 2017-08-01 | 深圳泰德激光科技有限公司 | Laser marking control method and galvanometer type laser marking system |
CN105058989B (en) * | 2015-09-01 | 2016-11-23 | 武汉嘉铭激光有限公司 | A kind of production line of bar nameplate Mk system and control method thereof |
CN105855719B (en) * | 2016-03-30 | 2018-01-26 | 深圳市创鑫激光股份有限公司 | A kind of laser marking machine marking method and device |
CN107030388A (en) * | 2017-04-18 | 2017-08-11 | 潍坊科技学院 | A kind of control system and its method of robotic laser mark VIN |
CN107264091B (en) * | 2017-06-22 | 2019-02-15 | 深圳市创鑫激光股份有限公司 | A kind of laser marking control method, laser marking machine and storage medium |
CN107672335B (en) * | 2017-09-28 | 2023-07-21 | 长沙八思量信息技术有限公司 | Laser marking method, laser marking machine and storage medium |
CN107671426B (en) * | 2017-10-23 | 2023-11-03 | 深圳市杰普特光电股份有限公司 | Laser marking device and marking method thereof |
CN107984092A (en) * | 2017-12-29 | 2018-05-04 | 江苏金海创科技有限公司 | A kind of laser marking network system and its method |
CN108338202A (en) * | 2018-03-30 | 2018-07-31 | 智锐达仪器科技南通有限公司 | A kind of livestock ketone body epidermis laser burn engraving device |
CN108683478B (en) * | 2018-05-08 | 2020-09-15 | 深圳市创鑫激光股份有限公司 | Communication method between laser and external equipment and laser system |
CN109396117B (en) * | 2018-09-18 | 2022-03-08 | 镇江长悦光电科技有限公司 | Control method of laser cleaning equipment, cleaning equipment and storage medium |
CN109175716B (en) * | 2018-10-12 | 2021-04-13 | 常州英诺激光科技有限公司 | Laser marking control method and device, computer equipment and storage medium |
CN111186215B (en) * | 2018-11-15 | 2021-01-29 | 苏州苏大维格科技集团股份有限公司 | Laser printing system and printing method thereof |
CN109849528B (en) * | 2019-01-21 | 2020-09-22 | 长沙八思量信息技术有限公司 | Laser marking method, laser marking device and computer readable storage medium |
CN111822868B (en) * | 2019-04-19 | 2022-06-17 | 大族激光科技产业集团股份有限公司 | Laser flight marking machine, marking system and marking method |
CN110174864B (en) * | 2019-05-28 | 2022-03-22 | 苏州创鑫激光科技有限公司 | Laser marking control method, computer readable storage medium and laser marking machine |
CN112091434B (en) * | 2019-06-18 | 2023-03-28 | 广州翔声智能科技有限公司 | Laser marking method and laser marking system |
CN111716016B (en) * | 2020-06-12 | 2022-03-08 | 大族激光科技产业集团股份有限公司 | Laser head control method, laser processing method and laser head control system |
CN113102901A (en) * | 2021-04-14 | 2021-07-13 | 武汉锐科光纤激光技术股份有限公司 | Material processing method, material processing apparatus, storage medium, and electronic device |
CN114985910B (en) * | 2022-05-26 | 2024-02-06 | 深圳泰德激光技术股份有限公司 | Laser cutting equipment, control method and control system thereof |
CN115085896B (en) * | 2022-07-21 | 2022-12-09 | 北京金橙子科技股份有限公司 | Method, system and storage medium for separating galvanometer control signal data from synchronous trigger |
CN115870629B (en) * | 2023-02-21 | 2023-05-16 | 飞天诚信科技股份有限公司 | Single-line font laser engraving method, device, equipment and medium |
CN117583761B (en) * | 2024-01-19 | 2024-03-19 | 深圳市智鼎自动化技术有限公司 | Multichannel laser galvanometer motion control system |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE19727957A1 (en) * | 1996-07-02 | 1998-01-08 | Miyachi Technos Kk | Scanning laser marker |
US7509450B2 (en) | 2003-10-10 | 2009-03-24 | Nokia Corporation | Microcontrol architecture for a system on a chip (SoC) |
JP5013699B2 (en) | 2005-10-21 | 2012-08-29 | 株式会社キーエンス | Three-dimensional machining data setting device, three-dimensional machining data setting method, three-dimensional machining data setting program, computer-readable recording medium, recorded device, and laser machining device |
CN101017424A (en) * | 2006-11-24 | 2007-08-15 | 华中科技大学 | Marking controller based on USB interface |
CN101104239B (en) * | 2007-07-30 | 2010-10-20 | 武昌船舶重工有限责任公司 | Numerically controlled cutting control device and numerically controlled cutting control method |
US20110045835A1 (en) | 2009-08-21 | 2011-02-24 | Joey Chou | Self-configuration of femtocell access points (fap) |
CN102205469A (en) * | 2010-03-31 | 2011-10-05 | 深圳市先阳软件技术有限公司 | Control method and system for laser cutting of battery pole piece |
CN102381060A (en) * | 2010-08-30 | 2012-03-21 | 深圳市大族激光科技股份有限公司 | Laser marking control card and laser marking machine |
EP2710514A4 (en) | 2011-05-18 | 2015-04-01 | Nextgenid Inc | Multi-biometric enrollment kiosk including biometric enrollment and verification, face recognition and fingerprint matching systems |
CN103072383B (en) * | 2011-10-26 | 2015-08-05 | 大族激光科技产业集团股份有限公司 | A kind of Mirror Laser-mark machine and mark control card thereof |
-
2014
- 2014-11-28 CN CN201410712091.1A patent/CN104385787B/en active Active
-
2015
- 2015-02-12 WO PCT/CN2015/072850 patent/WO2016082353A1/en active Application Filing
- 2015-02-13 US US14/621,397 patent/US9358808B1/en active Active
- 2015-02-16 PL PL15155178T patent/PL3025818T3/en unknown
- 2015-02-16 ES ES15155178.5T patent/ES2667724T3/en active Active
- 2015-02-16 EP EP15155178.5A patent/EP3025818B8/en active Active
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018042313A3 (en) * | 2016-08-31 | 2018-04-12 | Esab Ab | Method, welding system and article with a computer programm for implementing universal commands in a welding or cutting system |
US10520929B2 (en) | 2016-08-31 | 2019-12-31 | Esab Ab | Techniques for implementing universal commands in a welding or cutting system |
CN115319300A (en) * | 2022-10-14 | 2022-11-11 | 前海晶方云(深圳)测试设备有限公司 | Substrate marking device |
Also Published As
Publication number | Publication date |
---|---|
US9358808B1 (en) | 2016-06-07 |
WO2016082353A1 (en) | 2016-06-02 |
ES2667724T3 (en) | 2018-05-14 |
EP3025818B1 (en) | 2018-04-04 |
EP3025818A1 (en) | 2016-06-01 |
PL3025818T3 (en) | 2018-07-31 |
CN104385787B (en) | 2015-08-12 |
CN104385787A (en) | 2015-03-04 |
EP3025818B8 (en) | 2018-05-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9358808B1 (en) | Method for controlling laser marking machine and laser marking machine | |
CN106775434B (en) | A kind of implementation method, terminal, server and the system of NVMe networking storage | |
CN105119907A (en) | FPGA-based BiSS-C communication protocol method | |
KR20180112058A (en) | Data processing method and apparatus | |
CN104985939B (en) | A kind of laser marking machine control method and laser marking machine | |
EP3444080B1 (en) | Actuator control system, actuator control method, information-processing program, and recording medium | |
CN110362274A (en) | A kind of NVMe controller, networked storage devices and system | |
US10402354B2 (en) | Method, apparatus, communication equipment and storage media for determining link delay | |
TWI681652B (en) | Interface circuit, signal transmission system and signal transmission method thereof | |
CN206740935U (en) | A kind of transient response testing device of CAN servomotor | |
US20130103862A1 (en) | Sd/sdio host controller | |
WO2016127953A1 (en) | Debugging method specifically for fpga of high-end fault-tolerant computer based on software-hardware architecture, and device thereof | |
CN104615573A (en) | Communication method and device | |
CN109918325B (en) | Interface conversion bridge based on Avalon bus, interface conversion method and system | |
TWI425366B (en) | Method and apparatus for executing data access according to protocol handling | |
CN109857485B (en) | Programmable gpio device and time sequence implementation method based on programmable gpio device | |
US10379518B2 (en) | Numerical control device and control system | |
CN103186753B (en) | A kind of detection method of initial rate of PSAM card and device | |
CN104809038B (en) | FIFO exception handling method and device | |
KR20130114245A (en) | Communication device | |
CN103455353A (en) | Method and device for requesting webpage data | |
CN214225910U (en) | Interface board and print analysis equipment | |
CN105204665A (en) | Wireless mouse data processing method and intelligent terminal | |
CN109390026A (en) | data storage device and reading method | |
CN202372977U (en) | Universal serial bus (USB) main equipment interface structure based on field programmable gate array (FPGA) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: MAXPHOTONICS CO., LTD., CHINA Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:SONG, JUN;HE, GAOFENG;JIANG, FENG;REEL/FRAME:034994/0844 Effective date: 20150202 |
|
STCF | Information on status: patent grant |
Free format text: PATENTED CASE |
|
MAFP | Maintenance fee payment |
Free format text: PAYMENT OF MAINTENANCE FEE, 4TH YR, SMALL ENTITY (ORIGINAL EVENT CODE: M2551); ENTITY STATUS OF PATENT OWNER: SMALL ENTITY Year of fee payment: 4 |
|
MAFP | Maintenance fee payment |
Free format text: PAYMENT OF MAINTENANCE FEE, 8TH YR, SMALL ENTITY (ORIGINAL EVENT CODE: M2552); ENTITY STATUS OF PATENT OWNER: SMALL ENTITY Year of fee payment: 8 |