Search

CN-117020438-B - Laser tab cutting control method and device, control terminal and storage medium

CN117020438BCN 117020438 BCN117020438 BCN 117020438BCN-117020438-B

Abstract

The invention relates to the field of laser marking and discloses a laser tab cutting control method, a device, a control terminal and a storage medium, wherein the method comprises the steps of segmenting tab cutting data to obtain a longitudinal data segment and a transverse data segment; the method comprises the steps of determining the type of a data segment cut at the current moment, if the data segment is a longitudinal data segment, sending coordinate data of the longitudinal data segment to a first processor, if the data segment is a transverse data segment, sending the coordinate data of the transverse data segment to a second processor, after the first processor receives the longitudinal data segment, calculating offset coordinates of the longitudinal segment according to the transmission speed of a conveyor belt, and sending the offset coordinates to the second processor, wherein the second processor controls the vibrating mirror to move according to the offset coordinates, and the second processor calculates the marking distance of the vibrating mirror according to the transmission speed of the conveyor belt after the second processor receives the transverse data segment, and controls the vibrating mirror to move according to the marking distance. The calculation of tab cutting is divided, so that the calculation pressure is reduced, and the reaction speed is accelerated.

Inventors

  • BIN XIANGWEI
  • TANG MING
  • LIU MING
  • WANG XIAOMING
  • HUANG CHUXIN

Assignees

  • 深圳市杰普特光电股份有限公司

Dates

Publication Date
20260512
Application Date
20230810

Claims (9)

  1. 1. The laser tab cutting control method is characterized by being applied to a laser marker, wherein the laser marker comprises a first processor and a second processor, and the method comprises the following steps: segmenting the tab cutting data to obtain a longitudinal data segment and a transverse data segment; Determining the type of a data segment cut at the current moment, if the data segment is a longitudinal data segment, sending the coordinate data of the longitudinal data segment to a first processor, and if the data segment is a transverse data segment, sending the coordinate data of the transverse data segment to a second processor; After the first processor receives the longitudinal data segment, calculating offset coordinates of the longitudinal data segment according to the transmission speed of the transmission belt, and sending the offset coordinates to the second processor, wherein the second processor controls the vibrating mirror to move according to the offset coordinates; the second processor calculates the marking distance of the vibrating mirror according to the transmission speed of the transmission belt after receiving the transverse data segment, and controls the vibrating mirror to move according to the marking distance; the calculating the offset coordinates of the longitudinal data segment according to the conveying speed of the conveyor belt includes: Determining the using area of a vibrating mirror, the rotating speed of an encoder of the conveyor belt, the conveying direction of the conveyor belt and the encoding pulse interval of the encoder; And calculating the moving distance of the vibrating mirror in one coding pulse according to the using area and the coding pulse interval, and obtaining the offset of each coordinate data according to the moving distance and the coordinate data of the longitudinal data segment.
  2. 2. The method for controlling cutting of the laser tab according to claim 1, wherein the first processor is an upper computer, and the second processor is an FPGA control card.
  3. 3. The laser tab cutting control method of claim 1, wherein the calculating the marking distance of the galvanometer according to the conveying speed of the conveyor belt comprises: determining the conveying speed, the conveying direction and the length of the transverse data segment cut currently of the conveying belt in real time; and determining the marking distance of the vibrating mirror according to the preset cutting time of the transverse data segment and the transmission speed, and determining the moving direction of the vibrating mirror according to the transmission direction.
  4. 4. The laser tab cutting control method of claim 3, wherein the marking distance is calculated as: L=L1 + Vt; Wherein L is the length of the transverse data segment, L1 is the marking distance of the vibrating mirror, V is the conveying speed, and t is the cutting time.
  5. 5. The method for controlling cutting of a laser tab according to claim 1, wherein the step of segmenting tab cutting data to obtain a longitudinal data segment and a transverse data segment comprises the steps of: dividing a longitudinal line segment of the tab cutting data into longitudinal data segments, and dividing a transverse line segment of the tab cutting data into transverse data segments; and numbering each data segment according to the cutting sequence of the tabs.
  6. 6. The method for controlling cutting of a laser tab according to claim 5, wherein determining the type of the data segment to be cut at the current time comprises: and determining the number of the data segment cut at the current moment, and determining the type of the current cut data segment according to the number of the data segment.
  7. 7. Laser utmost point ear cutting controlling means, its characterized in that is applied to laser marking ware, laser marking ware includes first treater and second treater, the device includes: the segmentation module is used for segmenting the tab cutting data to obtain a longitudinal data segment and a transverse data segment; the identification module is used for determining the type of the data segment cut at the current moment, if the data segment is a longitudinal data segment, the coordinate data of the longitudinal data segment is sent to the first processor, and if the data segment is a transverse data segment, the coordinate data of the transverse data segment is sent to the second processor; The first processing module is used for calculating the offset coordinates of the longitudinal data segment according to the transmission speed of the conveyor belt after the longitudinal data segment is received by the first processor, and sending the offset coordinates to the second processor, and the second processor controls the vibrating mirror to move according to the offset coordinates; The second processing module is used for calculating the marking distance of the vibrating mirror according to the transmission speed of the transmission belt after the second processor receives the transverse data segment, and controlling the vibrating mirror to move according to the marking distance; the calculating the offset coordinates of the longitudinal data segment according to the conveying speed of the conveyor belt includes: Determining the using area of a vibrating mirror, the rotating speed of an encoder of the conveyor belt, the conveying direction of the conveyor belt and the encoding pulse interval of the encoder; And calculating the moving distance of the vibrating mirror in one coding pulse according to the using area and the coding pulse interval, and obtaining the offset of each coordinate data according to the moving distance and the coordinate data of the longitudinal data segment.
  8. 8. A control terminal comprising a processor and a memory, the memory storing a computer program which, when run on the processor, performs the laser tab cutting control method of any one of claims 1 to 6.
  9. 9. A readable storage medium, characterized in that it stores a computer program which, when run on a processor, performs the laser tab cutting control method of any one of claims 1 to 6.

Description

Laser tab cutting control method and device, control terminal and storage medium Technical Field The present invention relates to the field of laser marking, and in particular, to a laser tab cutting control method, a device, a control terminal, and a storage medium. Background In a high-speed flying laser tab cutting control system, there are two general modes, namely, the speed of a conveyor belt is acquired by an encoder to an upper computer for data algorithm processing and then is sent to a vibrating mirror and a laser, but the speed of the current conveyor belt is fed back in real time when the pulse value of the encoder is updated very quickly, and the transmission speed of the upper computer and a bottom plate card cannot respond to the change of the speed, so that processed data has hysteresis, and the tab cut by the laser is not closed and exceeds under high speed. And secondly, the data of the encoder is given to a special algorithm chip of the control card for processing, which is limited by the processing speed of the algorithm chip. The disadvantage of using a specialized algorithm chip is that a high-speed algorithm processor, such as a DSP (DIGITAL SIGNAL Processing) chip, is required, and thus the hardware cost will be greatly increased, and the development difficulty will be greatly increased. The disadvantage of using a host computer to process data is that encoder variations, delays in data processing execution, high stability requirements for the transfer tape, and unresponsiveness to fluctuations are present. Disclosure of Invention In a first aspect, the present application provides a laser tab cutting control method, applied to a laser marker, where the laser marker includes a first processor and a second processor, the method includes: segmenting the tab cutting data to obtain a longitudinal data segment and a transverse data segment; Determining the type of a data segment cut at the current moment, if the data segment is a longitudinal data segment, sending the coordinate data of the longitudinal data segment to a first processor, and if the data segment is a transverse data segment, sending the coordinate data of the transverse data segment to a second processor; After the first processor receives the longitudinal data segment, calculating offset coordinates of the longitudinal data segment according to the transmission speed of the transmission belt, and sending the offset coordinates to the second processor, wherein the second processor controls the vibrating mirror to move according to the offset coordinates; And the second processor calculates the marking distance of the vibrating mirror according to the transmission speed of the transmission belt after receiving the transverse data segment, and controls the vibrating mirror to move according to the marking distance. Further, the first processor is an upper computer, and the second processor is an FPGA control card. Further, the calculating the offset coordinates of the longitudinal data segment according to the conveying speed of the conveyor belt includes: Determining the using area of a vibrating mirror, the rotating speed of an encoder of the conveyor belt, the conveying direction of the conveyor belt and the encoding pulse interval of the encoder; And calculating the moving distance of the vibrating mirror in one coding pulse according to the using area and the coding pulse interval, and obtaining the offset of each coordinate data according to the moving distance, the coordinate data of the longitudinal data segment and the moving distance. Further, the calculating the marking distance of the galvanometer according to the conveying speed of the conveying belt includes: determining the conveying speed, the conveying direction and the length of the transverse data segment cut currently of the conveying belt in real time; and determining the marking distance of the vibrating mirror according to the preset cutting time of the transverse data segment and the transmission speed, and determining the moving direction of the vibrating mirror according to the transmission direction. Further, the marking distance calculation expression is: L=L1+Vt; wherein L is the length of the transverse data segment, L1 is the marking distance of the vibrating mirror, V is the conveying speed, and t is the cutting time. Further, the segmenting the tab cutting data to obtain a longitudinal data segment and a transverse data segment includes: dividing a longitudinal line segment of the tab cutting data into longitudinal data segments, and dividing a transverse line segment of the tab cutting data into transverse data segments; and numbering each data segment according to the cutting sequence of the tabs. Further, the determining the type of the data segment cut at the current time includes: and determining the number of the data segment cut at the current moment, and determining the type of the current cut data segment according to the number of t