A galvanometer control communication system and communication method for laser equipment and laser equipment
By adopting a specific galvanometer control communication method in the laser device, using the frame data protocol of type identification characters and axis identification characters, two-way communication between the galvanometer and the marking control card is realized, solving the problems of galvanometer control and status monitoring in traditional technology, and realizing the stable operation and automatic fault shutdown function of the laser device.
Patent Information
- Application Number
- CN202411773776.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-05
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2044-12-05
AI Technical Summary
In traditional laser equipment, two-way communication between the galvanometer and the marking control card is difficult to achieve, resulting in challenges in galvanometer position control and status monitoring, and the increase of the interface may bring the risk of data instability.
A galvanometer control communication method of a laser device is adopted. The data output end of the marking control card sends frame data in accordance with the preset protocol format to the data communication module of the galvanometer through the data output end of the marking control card. The frame data contains type identification characters and axis identification characters, which are used to distinguish position information and control commands and realize two-way communication.
It realizes two-way communication between the galvanometer and the marking control card, which can not only control the position of the galvanometer in real time, but also monitor the galvanometer status, ensure the stable operation of the laser equipment, and avoid the risk of data instability caused by the increase of the interface.
Smart Images

Figure CN119237945B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of laser equipment communication, and in particular to a galvanometer control communication system and a communication method for laser equipment, and laser equipment. Background Art
[0002] Traditional laser equipment includes marking control card, galvanometer and laser, such as Figure 4 As shown, the galvanometer includes a digital-to-analog conversion chip (DA) and an actuator. The marking software transmits data to the marking control card, which controls the galvanometer and the laser. The control of the galvanometer is as follows: DA receives communication data from the marking control card, which indicates the position information of the movement of the galvanometer on the X-axis and Y-axis, and then DA converts the position information into a drive instruction that can be executed by the actuator.
[0003] The industry mainstream uses the XY2-100 protocol with a 16-bit position signal. The protocol uses parallel differential transmission and mainly includes Clock, Sync, X / Y / Z axis coordinate data. There are more than 2 data lines and the data is transmitted in one direction.
[0004] like Figure 4 The galvanometer control process shown is an open loop, and the marking control card cannot obtain the galvanometer information. In order to achieve two-way communication between the marking control card and the galvanometer, the R&D personnel tried to add a data output interface to the marking control card and send protocol messages to the galvanometer through the interface. However, this approach not only increases the development cost and is not applicable to the original galvanometer control basis of current traditional laser equipment, but also adds interfaces that will inevitably bring the risk of data instability and bring challenges to the differential transmission between different data lines.
[0005] On the other hand, in order to control the position of the galvanometer and monitor its working status at the same time, developers have tried to enable the marking control card to obtain galvanometer information by wirelessly communicating with the galvanometer sensor. However, this requires upgrading the traditional hardware conditions of the existing marking control card and galvanometer, which is difficult to be widely used on existing laser equipment, posing new challenges.
[0006] The disclosure of the above background technology content is only used to assist in understanding the concept and technical solution of the present application. It does not necessarily belong to the prior art of the present application, nor does it necessarily provide technical guidance. In the absence of clear evidence that the above content has been disclosed before the filing date of the present application, the above background technology should not be used to evaluate the novelty and creativity of the present application. Summary of the invention
[0007] The purpose of the present invention is to provide an improved two-way communication solution between a marking control card of a laser device and a galvanometer, which can not only realize the position control of the galvanometer, but also realize the monitoring of the state of the galvanometer.
[0008] To achieve the above object, the technical solution adopted by the present invention is as follows:
[0009] A galvanometer control communication method for a laser device comprises the following steps:
[0010] The data output terminal of the marking control card of the laser device sends data in frames in a preset protocol format to the data communication module of the galvanometer, wherein the protocol sets the frame data to include a first type identifier and a second type identifier;
[0011] The data communication module of the galvanometer identifies several bits of type identification characters in each frame of data from the received data, and if it is a first type identification, determines the position information according to other data in the frame of data, and sends it to the digital-to-analog conversion chip of the galvanometer; the digital-to-analog conversion chip converts the position information into a driving instruction, and sends it to the actuator of the galvanometer;
[0012] If the type identification character is recognized as a second type identification, the corresponding control command is determined based on other data in the frame data, and the control command is defined as a request for information to be transmitted back to the galvanometer end; in response to the control command, the data communication module of the galvanometer sends the information requested to be transmitted back in the control command to the data input end of the marking control card.
[0013] Further, based on any one of the above-mentioned technical solutions or a combination of multiple technical solutions, the data communication module responds to the control command in the following manner:
[0014] According to the frame data corresponding to the second type identifier, the type of information requested to be returned to the galvanometer end specified by the control command is determined, and the information type includes one or more of motor temperature, motor angle, power supply voltage, galvanometer status word, actual angular position of the galvanometer scanner, set angular position of the galvanometer scanner, actual angular position error of the galvanometer scanner, driver board temperature, PD power supply voltage, DA card temperature, galvanometer system firmware version number, data transmission integrity verification result, serial number of the galvanometer unit, aperture of the light hole, laser wavelength, and material number.
[0015] Further, based on any one of the technical solutions or a combination of multiple technical solutions mentioned above, if the second type identifier is identified, the galvanometer does not update the output of the digital-to-analog conversion chip.
[0016] Further, based on any one of the above-mentioned technical solutions or a combination of multiple technical solutions, the data communication module of the galvanometer identifies the type identification character in each frame of data in the following manner:
[0017] Identify the frame header data in each frame of data according to the rules pre-set by the protocol;
[0018] The type identification character is determined according to the positional relationship between the frame header data and the type identification character preset by the protocol, wherein the type identification character is entirely located in the frame header data, or partially located in the frame header data, or adjacently or non-adjacently located after the frame header data.
[0019] Further, based on any one of the above-mentioned technical solutions or a combination of multiple technical solutions, the frame header data in each frame of data is identified by the following method:
[0020] The protocol adopts a bidirectional encoding method, and the last bit of a set of bidirectional encoding is inversely proportional to the first bit of the next adjacent set of bidirectional encoding;
[0021] The protocol sets the frame header data to include at least three consecutive identical characters, and the protocol does not perform bidirectional encoding on the frame header data;
[0022] Analyze the data bit by bit, locate three consecutive identical characters, and then locate the frame header data.
[0023] Further, based on any one of the above-mentioned technical solutions or a combination of multiple technical solutions, the protocol further sets the frame data to include an X-axis mark and a Y-axis mark;
[0024] When or after the data communication module of the galvanometer identifies the type identification character of each frame of data, it also includes:
[0025] Identify the axis identification characters in the frame data and determine whether they belong to the X-axis identification or the Y-axis identification.
[0026] Further, based on any one of the technical solutions or a combination of multiple technical solutions described above, if it is recognized that the axis identification character belongs to the X-axis identification, and the type identification character is the first type identification, the position information determined by the data communication module is the driving position information of the galvanometer in the X-axis direction, and the digital-to-analog conversion chip converts it into an X-axis driving instruction and sends it to the X-axis driving motor of the galvanometer;
[0027] If it is recognized that the axis identification character belongs to the Y-axis identification and the type identification character is the first type identification, the position information determined by the data communication module is the driving position information of the galvanometer in the Y-axis direction, and the digital-to-analog conversion chip converts it into a Y-axis driving instruction and sends it to the Y-axis driving motor of the galvanometer.
[0028] Further, based on any one of the above-mentioned technical solutions or a combination of multiple technical solutions, the data output end of the marking control card adopts a method of combining two frames into one frame, and the frame data with the type identification character as the first type identification is sent alternately along the X-axis and the Y-axis;
[0029] The data communication module caches the previous frame data sent alternately by the X-axis and the Y-axis, and synchronously updates the X-axis and Y-axis positions of the galvanometer after the next frame data is received.
[0030] Further, based on any one of the technical solutions or a combination of multiple technical solutions described above, if it is recognized that the axis identification character belongs to the X-axis identification, and the type identification character is the second type identification, then the control command is defined as requesting the return of information of the X-axis end of the galvanometer; in response to the control command, the data communication module of the galvanometer sends the information of the X-axis end requested to be returned in the control command to the data input end of the marking control card;
[0031] If it is recognized that the axis identification character belongs to the Y-axis identification and the type identification character is the second type identification, the control command is defined as requesting the return of information from the Y-axis end of the galvanometer; in response to the control command, the data communication module of the galvanometer sends the information on the Y-axis end requested to be returned in the control command to the data input end of the marking control card.
[0032] Further, based on any one of the above-mentioned technical solutions or a combination of multiple technical solutions, after the data communication module of the galvanometer sends the information requested to be returned in the control command to the data input terminal of the marking control card, it also includes:
[0033] The marking control card sends the information sent back by the galvanometer end to the marking software on the computer, and the marking software periodically monitors the running status of the galvanometer. If it is determined that the galvanometer operation fails according to the sent back information, the laser device is controlled to shut down.
[0034] According to another aspect of the present invention, a galvanometer control communication protocol for a laser device is provided, which defines that the frame data sent by the marking control card of the laser device to the galvanometer includes a type identification character, an axis identification character, and main body data, wherein the type identification character is divided into a first type identification and a second type identification, and the axis identification character is divided into an X-axis identification and a Y-axis identification;
[0035] If the type identification character is the first type identification character and the axis identification character is the X-axis identification character, the main body data is parsed as position information for driving the galvanometer to move along the X-axis;
[0036] If the type identification character is the first type identification character and the axis identification character is the Y-axis identification character, the main body data is parsed as position information for driving the galvanometer to move along the Y-axis;
[0037] If the type identification character is the second type identification character and the axis identification character is the X-axis identification character, the main body data is parsed as requesting the galvanometer to return the operation information of the X-axis end;
[0038] If the type identification character is the second type identification character and the axis identification character is the Y-axis identification character, the main body data is parsed as requesting the galvanometer to return the operation information of the Y-axis end.
[0039] Further, based on any one of the technical solutions or a combination of multiple technical solutions described above, if the type identification character is a second type identification, the main data contains characteristic characters that define the type of information requested to be returned, and the information type includes one or more of motor temperature, motor angle, power supply voltage, galvanometer status word, actual angular position of the galvanometer scanner, set angular position of the galvanometer scanner, actual angular position error of the galvanometer scanner, driver board temperature, PD power supply voltage, DA card temperature, galvanometer system firmware version number, data transmission integrity verification result, serial number of the galvanometer unit, aperture of the light hole, laser wavelength, and material number.
[0040] Further, based on any one of the above-mentioned technical solutions or a combination of multiple technical solutions, the frame data also includes frame header data, and the protocol sets the frame header data of the frame data to include at least three consecutive identical characters;
[0041] The protocol adopts a bidirectional encoding method for the main data, and the last bit of a set of bidirectional encoding is inversely related to the first bit of the next adjacent set of bidirectional encoding;
[0042] The communication protocol does not bidirectionally encode the frame header data.
[0043] According to another aspect of the present invention, there is provided a laser device, including a laser, a marking control card, and a galvanometer, wherein the marking control card communicates with the galvanometer based on the communication method described above.
[0044] Furthermore, based on any one of the technical solutions or a combination of multiple technical solutions mentioned above, the galvanometer includes a data communication module, a digital-to-analog conversion chip and an actuator for driving the movement of the lens, and the data communication module may be a programmable logic device, which is configured to communicate bidirectionally with the marking control card.
[0045] The beneficial effects brought about by the technical solution provided by the present invention are as follows: a specific protocol is used for two-way communication between the galvanometer and the marking control card, which can realize the control of the galvanometer position on the one hand, and monitor the working status of the galvanometer in real time or at a fixed time on the other hand. If the working status of the galvanometer is abnormal, the laser equipment can be automatically shut down. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0047] Figure 1 A basic flow chart of a galvanometer control communication method for a laser device provided for an exemplary embodiment of the present invention;
[0048] Figure 2 A flow chart of a method for identifying X / Y axis identification and performing galvanometer control communication provided by an exemplary embodiment of the present invention;
[0049] Figure 3 A schematic diagram of a laser device for implementing an embodiment of the communication method of the present invention;
[0050] Figure 4 This is the architecture diagram of a traditional laser device that includes a marking control card and a galvanometer;
[0051] Figure 5 A flowchart of locating identification characters is provided for an exemplary embodiment of the present invention. DETAILED DESCRIPTION
[0052] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0053] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0054] In one embodiment of the present invention, a galvanometer control communication method for a laser device is provided, such as Figure 1 As shown, the communication method comprises the following steps:
[0055] In the first step, the data output terminal of the marking control card of the laser device sends data in frames in a preset protocol format to the data communication module of the galvanometer, wherein the protocol sets a first type identifier and a second type identifier;
[0056] In a specific embodiment, the type identification character is a 4-bit character. For example, the protocol defines two type identification characters: 0100 and 0110. In order to understand the communication method of the embodiment of the present invention, 0100 is used as the first type identification and 0110 is used as the second type identification.
[0057] In a specific embodiment, a frame of data includes frame header data, a 4-bit type identification character and about 20 bits of main data. The type identification character can be located entirely in the frame header data, or partially in the frame header data, or adjacently or non-adjacently after the frame header data. The specific protocol can set the positional relationship between the type identification character and the frame header data.
[0058] In the second step, the data communication module of the galvanometer identifies several bit type identification characters in each frame of data from the received data. If it is a first type identification, the position information is determined according to other data in the frame data (hereinafter referred to as the main data), and it is sent to the digital-to-analog conversion chip of the galvanometer; the digital-to-analog conversion chip converts the position information into a drive instruction and sends it to the actuator of the galvanometer.
[0059] Among them, the data communication module identifies the type identification character in each frame of data in the following way: identifying the frame header data in each frame of data according to the rules pre-set by the protocol, and the specific identification method can be as follows: the protocol adopts a bidirectional encoding method for the main data, and the last bit of a group of bidirectional encoding is inverted with the first bit of the next adjacent group of bidirectional encoding, so it is impossible for three consecutive identical characters to appear in the main data; the protocol sets the frame header data to contain at least three consecutive identical characters, and the above bidirectional encoding object does not include the frame header data. The frame header data set by the protocol in this embodiment has at least three consecutive identical characters. Based on this, the frame header data has the characteristics that can be clearly distinguished from the data after bidirectional encoding. Therefore, the galvanometer only needs to analyze the received data bit by bit. When three consecutive identical characters are located, the frame header data is located, such as 1110 or 0001.
[0060] The type identification character is determined according to the positional relationship between the frame header data and the type identification character preset by the protocol, wherein the type identification character is entirely located in the frame header data, or partially located in the frame header data, or adjacently or non-adjacently located after the frame header data. The present invention does not limit whether the object of bidirectional encoding includes the type identification character.
[0061] The protocol adopts a bidirectional encoding method. The so-called bidirectional encoding is to split a 1-bit binary code into two bits for transmission. For example, the binary number 1 is encoded to obtain 10 or 01, and the binary number 0 is encoded to obtain 11 or 00. In addition, when multiple consecutive binary numbers are bidirectionally encoded, the last bit of a group of bidirectional codes is inverted with the first bit of the next group of bidirectional codes. For example: the binary number before encoding is 1100, and after bidirectional encoding, it can obtain 10101100 or 01010011, which depends on whether the first binary number 1 is randomly encoded as 10 or 01.
[0062] Assume that the protocol sets the frame header data to 4 bits, and the 5th to 8th bits after the last frame header character of the frame header data are type identification characters. Then, for example, if a frame of data is received and the first 12 bits are 111010110100, and no bidirectional encoding is performed, first locate "1110" as the frame header data, and count from "0" to the 5th to 8th bits as "0100", which means the type identification character is located.
[0063] If the type identification character is 0100, the galvanometer knows that this frame of data carries position information, that is, the marking control card sends the specific position information that needs to be adjusted by the galvanometer position. Then the galvanometer parses the position information from the main data, such as the coordinates (x1, y1). According to the usual implementation method, the galvanometer's digital-to-analog converter chip (DAC) determines the X-axis and Y-axis drive instructions based on the coordinates (x1, y1) and the working parameters of the galvanometer's X-axis motor and Y-axis motor, and then the galvanometer's actuator executes the drive instructions, that is, the X-axis motor executes the X-axis drive instruction, and the Y-axis motor executes the Y-axis drive instruction.
[0064] Step 3: If the type identification character is recognized as the second type identification, the corresponding control command is determined according to other data (i.e., main data) in the frame data, and the control command is defined as a request for information to be transmitted back to the galvanometer end; in response to the control command, the data communication module of the galvanometer sends the information requested to be transmitted back in the control command to the data input end of the marking control card.
[0065] For example, if a frame of data is received and the first 12 bits are 111010110110, and the type identification character is 0110, the galvanometer knows that this frame of data carries a control command requesting the galvanometer to return the working status parameters, then the galvanometer does not update the output of the digital analog conversion chip, that is, the galvanometer actuator will not change the position of the galvanometer. In this case, the galvanometer will obtain the corresponding information and send it back to the marking control card.
[0066] A typical situation is that the protocol has a limit on the number of bits of a frame of data, and a frame of data cannot contain all types of information. In this case, the galvanometer will parse the main data to determine the specific type of information that the frame of data specifically requests the galvanometer to return. For example, if the main data is parsed to determine that the type of information requested to be returned to the galvanometer end by the control command is a temperature type, the sampled value of the motor temperature of the galvanometer is sent to the marking control card through the output end of the data communication module of the galvanometer;
[0067] If the main body data is analyzed to determine that the information type specified by the control command to be transmitted back to the galvanometer end is angle information, the sampled value of the motor angle of the galvanometer is sent to the marking control card through the output end of the data communication module of the galvanometer;
[0068] If the main body data is analyzed to determine that the information type specified by the control command to be transmitted back to the galvanometer end is voltage information, the sampled value of the power supply voltage of the galvanometer is sent to the marking control card through the output end of the data communication module of the galvanometer.
[0069] The type of information requested to be returned to the galvanometer end as specified by the control command in the embodiment of the present invention is not limited to the above-mentioned motor temperature, motor angle, and power supply voltage. For example, it may also include the galvanometer status word, the actual angular position of the galvanometer scanner, the set angular position of the galvanometer scanner, the actual angular position error of the galvanometer scanner, the driver board temperature, the PD power supply voltage, the DA card temperature, the galvanometer system firmware version number, the data transmission integrity verification result, the serial number of the galvanometer unit, the aperture of the light hole, the laser wavelength, and the material number, which will not be listed one by one.
[0070] In one embodiment of the present invention, the frame data bit length defined by the protocol is not sufficient to cover the corresponding information of the X-axis and the Y-axis. In this case, the protocol also sets the X-axis identifier and the Y-axis identifier. Specifically, the 1st to 4th bit data after the last frame header character of the frame header data can be set as the axis identifier character, such as 0010 for the Y-axis identifier, and 1011 for the X-axis identifier. Since the relative position of the axis identifier character and the frame header data is determined, it can be determined whether the axis identifier character is bidirectionally encoded or not, and the present invention does not limit whether the axis identifier character is bidirectionally encoded.
[0071] See also Figure 2 , when or after the data communication module of the galvanometer recognizes the type identification character in each frame of data, it also includes:
[0072] Identify the axis identification characters in the frame data and determine whether they belong to the X-axis identification or the Y-axis identification.
[0073] If the frame starts with 12 bits of data 111010110100, see Figure 5 , first locate the frame header data of three consecutive identical characters, i.e., 1110, then locate the 1st to 4th bit data after the frame header data, i.e., 1011, as the axis identification character, and locate the 5th to 8th bit data after the frame header data, i.e., 0100, as the type identification character. Accordingly, it can be determined that the axis identification character belongs to the X-axis identification, and the type identification character is the first type identification. Then, the position information determined by the data communication module is the driving position information of the galvanometer in the X-axis direction, and the digital-to-analog conversion chip converts it into the driving instruction of the X-axis and sends it to the X-axis driving motor of the galvanometer;
[0074] If the 12-bit data at the beginning of the frame is 111000100100, it can be determined that the axis identification character belongs to the Y-axis identification, and the type identification character is the first type identification. The position information determined by the data communication module is the driving position information of the galvanometer in the Y-axis direction. The digital-to-analog conversion chip converts it into a Y-axis driving instruction and sends it to the Y-axis driving motor of the galvanometer.
[0075] Specifically, when the type identification character is the first type identification, the data output end of the marking control card combines two frames into one frame, and sends the frame data whose type identification character is the first type identification alternately along the X-axis and the Y-axis;
[0076] The data communication module will cache the previous frame data sent alternately by the X-axis and the Y-axis (instead of initiating the single-axis movement of the galvanometer first), and synchronously update the X-axis and Y-axis positions of the galvanometer after the next frame data is received.
[0077] If the 12-bit data at the beginning of the frame is 000110110110, it can be determined that the axis identification character belongs to the X-axis identification, and the type identification character is the second type identification, then the control command is defined as requesting the return of information on the X-axis end of the galvanometer; in response to the control command, the data communication module of the galvanometer sends the information on the X-axis end requested to be returned in the control command to the data input end of the marking control card. For example, by parsing the main data, it can be determined that the request to return is one or more of the motor temperature, motor angle, power supply voltage, galvanometer status word, actual angular position of the galvanometer scanner, set angular position of the galvanometer scanner, actual angular position error of the galvanometer scanner, driver board temperature, PD power supply voltage, DA card temperature, galvanometer system firmware version number, data transmission integrity verification result, serial number of the galvanometer, aperture of the light hole, laser wavelength, and material number of the X-axis end.
[0078] If the 12-bit data at the beginning of the frame is 000100100110, it can be determined that the axis identification character belongs to the Y-axis identification, and the type identification character is the second type identification, then the control command is defined as requesting the return of information on the Y-axis end of the galvanometer; in response to the control command, the data communication module of the galvanometer sends the information on the Y-axis end requested to be returned in the control command to the data input end of the marking control card. For example, by parsing the main data, it can be determined that the information requested to be returned is one or more of the motor temperature, motor angle, power supply voltage, galvanometer status word, actual angular position of the galvanometer scanner, set angular position of the galvanometer scanner, actual angular position error of the galvanometer scanner, driver board temperature, PD power supply voltage, DA card temperature, galvanometer system firmware version number, data transmission integrity verification result, serial number of the galvanometer, aperture of the light hole, laser wavelength, and material number of the Y-axis end.
[0079] In one embodiment, after the data communication module of the galvanometer sends the information requested to be returned in the control command to the data input terminal of the marking control card, the method further includes:
[0080] The marking control card sends the information sent back by the galvanometer end to the marking software on the computer, and the marking software periodically monitors the running status of the galvanometer. If it is determined that the galvanometer operation fails according to the sent back information, the laser device is controlled to shut down.
[0081] The embodiment of the present invention further provides a galvanometer control communication protocol for a laser device, which defines that the frame data sent by the marking control card of the laser device to the galvanometer includes a type identification character, an axis identification character, and main body data, wherein the type identification character is divided into a first type identification and a second type identification, and the axis identification character is divided into an X-axis identification and a Y-axis identification;
[0082] If the type identification character is the first type identification character and the axis identification character is the X-axis identification character, the main body data is parsed as position information for driving the galvanometer to move along the X-axis;
[0083] If the type identification character is the first type identification character and the axis identification character is the Y-axis identification character, the main body data is parsed as position information for driving the galvanometer to move along the Y-axis;
[0084] If the type identification character is the second type identification character and the axis identification character is the X-axis identification character, the main body data is parsed as requesting the galvanometer to return the operation information of the X-axis end;
[0085] If the type identification character is the second type identification character and the axis identification character is the Y-axis identification character, the main body data is parsed as requesting the galvanometer to return the operation information of the Y-axis end.
[0086] If the type identification character is the second type identification, the main data contains characteristic characters that define the type of information requested to be returned, and the information type includes motor temperature, motor angle, power supply voltage, galvanometer status word, actual angular position of the galvanometer scanner, set angular position of the galvanometer scanner, actual angular position error of the galvanometer scanner, driver board temperature, PD power supply voltage, DA card temperature, galvanometer system firmware version number, data transmission integrity verification result, serial number of the galvanometer unit, aperture of the light hole, laser wavelength, and material number.
[0087] The galvanometer control communication protocol of the laser device provided in the embodiment of the present invention further includes frame header data, and the protocol sets the frame header data of the frame data to include at least three consecutive identical characters;
[0088] The protocol adopts a bidirectional encoding method for the main data, and the last bit of a set of bidirectional encoding is inversely related to the first bit of the next adjacent set of bidirectional encoding;
[0089] The communication protocol does not bidirectionally encode the frame header data.
[0090] In a specific embodiment, an improved upgraded version of the SL2-100 protocol is adopted. Compared with the XY2-100 protocol, the communication protocol of this embodiment reduces the transmission line, the data can be increased from 16 bits to 27 bits, and a two-way transmission function is added; and a check bit is added to the end of the transmitted data: the number of high-level "1"s in a frame is counted, if it is an odd number, the check bit is 1, if it is an even number, the check bit is 0, and the level at the end of the frame can be matched at the same time, ending with the inverted value of the frame start, and connecting to the next frame of data.
[0091] It should be noted that the galvanometer control communication protocol of the laser device provided in this embodiment and the galvanometer control communication method of the laser device provided in the above embodiment belong to the same inventive concept. The entire content of the galvanometer control communication method embodiment of the laser device is incorporated into the galvanometer control communication protocol embodiment of the laser device by quoting the full text, and will not be repeated here.
[0092] Another embodiment of the present invention provides a laser device, such as Figure 3 The laser device shown includes a laser, a marking control card, and a galvanometer. The marking control card communicates with the galvanometer based on the communication method described above.
[0093] The galvanometer includes a data communication module, a digital-to-analog conversion chip, and an actuator for driving the lens to move. The data communication module may be a programmable logic device (PLD), such as an FPGA, which is configured to communicate bidirectionally with the marking control card. The marking control card is provided with a Data_OUT1 interface and a Data_IN1 interface, and the data communication module of the galvanometer is provided with a Data_OUT2 interface and a Data_IN2 interface. Data is transmitted between the Data_OUT1 interface and the Data_IN2 interface via a data line in a differential manner; data is transmitted between the Data_OUT2 interface and the Data_IN1 interface via a data line in a differential manner.
[0094] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0095] The above is only a specific implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A galvanometer control communication method for laser equipment, characterized in that: The following steps are involved: The data output terminal of the marking control card of the laser device sends data in frames in a preset protocol format to the data communication module of the galvanometer, wherein the protocol sets the frame data to include a first type identifier and a second type identifier; The data communication module of the galvanometer identifies several bits of type identification characters in each frame of data from the received data, and if it is a first type identification, determines the position information according to other data in the frame of data, and sends it to the digital-to-analog conversion chip of the galvanometer; the digital-to-analog conversion chip converts the position information into a driving instruction, and sends it to the actuator of the galvanometer; If the type identification character is identified as the second type identification character, a corresponding control command is determined according to other data in the frame data, and the control command is defined as a request for information to be transmitted back to the galvanometer end; in response to the control command, the data communication module of the galvanometer sends the information requested to be transmitted back in the control command to the data input end of the marking control card; Among them, the data communication module of the galvanometer identifies the type identification character in each frame of data in the following manner: identifying the frame header data in each frame of data according to the rules preset by the protocol; determining the type identification character according to the positional relationship between the frame header data and the type identification character preset by the protocol, wherein the type identification character is entirely located in the frame header data, or partially located in the frame header data, or adjacently or non-adjacently located after the frame header data.
2. The galvanometer control communication method for laser equipment according to claim 1, characterized in that: The data communication module responds to the control command in the following manner: According to the frame data corresponding to the second type identifier, the type of information requested to be returned to the galvanometer end specified by the control command is determined, and the information type includes one or more of motor temperature, motor angle, power supply voltage, galvanometer status information, actual angular position of the galvanometer scanner, set angular position of the galvanometer scanner, actual angular position error of the galvanometer scanner, driver board temperature, PD power supply voltage, DA card temperature, galvanometer system firmware version number, data transmission integrity verification result, serial number of the galvanometer unit, aperture of the light hole, laser wavelength, and material number.
3. The galvanometer control communication method for laser equipment according to claim 1, characterized in that: If the second type identifier is identified, the galvanometer does not update the output of the digital-to-analog conversion chip.
4. The galvanometer control communication method for laser equipment according to claim 1, characterized in that: The frame header data in each frame of data is identified by the following method: The protocol adopts a bidirectional encoding method, and the last bit of a set of bidirectional encoding is inversely proportional to the first bit of the next adjacent set of bidirectional encoding; The protocol sets the frame header data to include at least three consecutive identical characters, and the protocol does not perform bidirectional encoding on the frame header data; Analyze the data bit by bit, locate three consecutive identical characters, and then locate the frame header data.
5. The galvanometer control communication method for laser equipment according to claim 1, characterized in that: The protocol also sets the frame data to include an X-axis identifier and a Y-axis identifier; When or after the data communication module of the galvanometer identifies the type identification character of each frame of data, the method further includes: identifying the axis identification character in the frame of data and determining whether it belongs to the X-axis identification or the Y-axis identification.
6. The galvanometer control communication method for laser equipment according to claim 5, characterized in that: If it is recognized that the axis identification character belongs to the X-axis identification, and the type identification character is the first type identification, the position information determined by the data communication module is the driving position information of the galvanometer in the X-axis direction, and the digital-to-analog conversion chip converts it into an X-axis driving instruction and sends it to the X-axis driving motor of the galvanometer; If it is recognized that the axis identification character belongs to the Y-axis identification and the type identification character is the first type identification, the position information determined by the data communication module is the driving position information of the galvanometer in the Y-axis direction, and the digital-to-analog conversion chip converts it into a Y-axis driving instruction and sends it to the Y-axis driving motor of the galvanometer.
7. The galvanometer control communication method for laser equipment according to claim 6, characterized in that: The data output end of the marking control card combines two frames into one frame, and sends the frame data whose type identification character is the first type identification alternately along the X axis and the Y axis; The data communication module caches the previous frame data sent alternately by the X-axis and the Y-axis, and synchronously updates the X-axis and Y-axis positions of the galvanometer after the next frame data is received.
8. The galvanometer control communication method for laser equipment according to claim 5, characterized in that: If it is recognized that the axis identification character belongs to the X-axis identification, and the type identification character is the second type identification, the control command is defined as requesting the return of information of the X-axis end of the galvanometer; in response to the control command, the data communication module of the galvanometer sends the information of the X-axis end requested to be returned in the control command to the data input terminal of the marking control card; If it is recognized that the axis identification character belongs to the Y-axis identification and the type identification character is the second type identification, the control command is defined as requesting the return of information from the Y-axis end of the galvanometer; in response to the control command, the data communication module of the galvanometer sends the information on the Y-axis end requested to be returned in the control command to the data input end of the marking control card.
9. The galvanometer control communication method for laser equipment according to any one of claims 1 to 8, characterized in that: After the data communication module of the galvanometer sends the information requested to be returned in the control command to the data input terminal of the marking control card, the method further includes: The marking control card sends the information sent back by the galvanometer end to the marking software on the computer, and the marking software periodically monitors the running status of the galvanometer. If it is determined that the galvanometer operation fails according to the sent back information, the laser device is controlled to shut down.
10. A galvanometer control communication system for laser equipment, characterized in that: The communication protocol used defines that the frame data sent by the marking control card of the laser device to the galvanometer includes a type identification character, an axis identification character, and main body data, wherein the type identification character is divided into a first type identification and a second type identification, and the axis identification character is divided into an X-axis identification and a Y-axis identification; If the type identification character is the first type identification character and the axis identification character is the X-axis identification character, the main body data is parsed as position information for driving the galvanometer to move along the X-axis; If the type identification character is the first type identification character and the axis identification character is the Y-axis identification character, the main body data is parsed as position information for driving the galvanometer to move along the Y-axis; If the type identification character is the second type identification character and the axis identification character is the X-axis identification character, the main body data is parsed as requesting the galvanometer to return the operation information of the X-axis end; If the type identification character is the second type identification character and the axis identification character is the Y-axis identification character, the main body data is parsed as requesting the galvanometer to return the operation information of the Y-axis end.
11. The galvanometer control communication system for laser equipment according to claim 10, characterized in that: If the type identification character is a second type identification, the main data contains characteristic characters that define the type of information requested to be returned, and the information type includes one or more of motor temperature, motor angle, power supply voltage, galvanometer status information, actual angular position of the galvanometer scanner, set angular position of the galvanometer scanner, actual angular position error of the galvanometer scanner, driver board temperature, PD power supply voltage, DA card temperature, galvanometer system firmware version number, data transmission integrity verification result, serial number of the galvanometer unit, aperture of the light hole, laser wavelength, and material number.
12. The galvanometer control communication system for laser equipment according to claim 10, characterized in that: The frame data also includes frame header data, and the protocol sets the frame header data of the frame data to include at least three consecutive identical characters; The protocol adopts a bidirectional encoding method for the main data, and the last bit of a set of bidirectional encoding is inversely related to the first bit of the next adjacent set of bidirectional encoding; The communication protocol does not bidirectionally encode the frame header data.
13. A laser device, comprising a laser, a marking control card, and a galvanometer, characterized in that: The marking control card communicates with the galvanometer based on the communication method described in any one of claims 1 to 9.
14. The laser device according to claim 13, characterized in that The galvanometer includes a data communication module, a digital-to-analog conversion chip, and an actuator for driving the lens to move. The data communication module is a programmable logic device configured to communicate bidirectionally with the marking control card.
Citation Information
Patent Citations
Laser galvanometer communication protocol adaptive conversion method, system and device
CN117834748A
Cited By
Multi-protocol galvanometer monitoring system, protocol conversion data acquisition box and monitoring method
CN121711410A
Multi-protocol galvanometer monitoring system, protocol conversion data acquisition box and monitoring method
CN121711410B
A data acquisition box suitable for different protocol conversion and galvanometer monitoring system
CN122765016A