Laser equipment communication method for realizing galvanometer position control and state monitoring and laser equipment
By using specific protocols in laser equipment for two-way communication between the galvanometer and the marking control card, the problem of galvanometer position control and status monitoring in traditional technology is solved, and the equipment is automated management and fault prevention are realized.
Patent Information
- Application Number
- CN202510323481.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-05
- Publication Date
- 2025-05-27
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.
A specific protocol is used to communicate between the galvanometer and the marking control card, and the data type is identified through the type identification and axis identification in the frame data, and position control and status monitoring are realized.
It realizes precise control of the position of the galvanometer and real-time status monitoring, which can automatically shut down to prevent equipment failure.
Smart Images

Figure CN120038442A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of laser device communication, and particularly to a laser device communication method and a laser device for realizing galvanometer position control and status monitoring. Background Art
[0002] Traditional laser devices include a marking control card, a galvanometer, and a laser. As Figure 4 shown, among them, the galvanometer includes a digital-to-analog conversion chip (DA) and an actuator. The marking software transmits data to the marking control card, and the marking control card controls the galvanometer and the laser. For the control of the galvanometer: the DA receives communication data from the marking control card, which indicates the position information of the X-axis and Y-axis movement of the galvanometer, and then the DA converts the position information into a driving instruction that the actuator can execute.
[0003] The industry mainstream uses the XY2-100 protocol, with a 16-bit position signal. This protocol uses a parallel differential method for transmission, mainly including Clock, Sync, and X / Y / Z axis coordinate data. There are more than 2 data lines, and the data is all transmitted unidirectionally.
[0004] As Figure 4 shown, the galvanometer control process is open-loop, and the marking control card cannot obtain information about the galvanometer. In order to achieve two-way communication between the marking control card and the galvanometer, R & D personnel tried to increase the data output interface of the marking control card and send protocol messages to the galvanometer in a sub-interface manner. However, this approach not only increases the development cost and cannot be applied to the original galvanometer control basis of current traditional laser devices, but also increases the risk of data instability when adding interfaces, and poses challenges to the differential transmission between different data lines.
[0005] On the other hand, in order to monitor the working status of the galvanometer while controlling the position of the galvanometer, developers tried to use wireless communication between the marking control card and the sensor at the galvanometer end to enable the marking control card to obtain information at the galvanometer end; however, this requires upgrading the existing traditional hardware conditions of the marking control card and the galvanometer, and it is difficult to be widely applied to existing laser devices, posing new challenges.
[0006] The disclosure of the above background art 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 will it necessarily give technical guidance; without clear evidence indicating that the above content was publicly available before the filing date of the present application, the above background art should not be used to evaluate the novelty and inventiveness 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 the marking control card of a laser device and the galvanometer, which can not only achieve the position control of the galvanometer but also the status monitoring of the galvanometer.
[0008] To achieve the above object, the technical solution adopted by the present invention is as follows:
[0009] A communication method for a laser device to implement galvanometer position control and status monitoring, comprising the following steps:
[0010] The data output end of the marking control card of the laser device sends data in units of frames conforming to a preset protocol format to the data communication module of the galvanometer. The protocol sets that the frame data includes a first type identifier, a second type identifier, an X-axis identifier, and a Y-axis identifier;
[0011] The data communication module of the galvanometer identifies several bit type identifier characters and axis identifier characters in each frame of data received. If the first type identifier and the X-axis identifier are identified, the position information is determined according to other data in the frame of data and sent to the digital-to-analog conversion chip of the galvanometer; the digital-to-analog conversion chip converts the position information into a driving instruction for the X-axis and sends it to the X-axis driving motor of the galvanometer;
[0012] If the first type identifier and the Y-axis identifier are identified, the position information is determined according to other data in the frame of data and sent to the digital-to-analog conversion chip of the galvanometer; the digital-to-analog conversion chip converts the position information into a driving instruction for the Y-axis and sends it to the Y-axis driving motor of the galvanometer;
[0013] If the second type identifier and the X-axis identifier are identified, the corresponding control command is determined according to other data in the frame of data. In response to the control command, the data communication module of the galvanometer sends the information at the X-axis end specified by the control command to the data input end of the marking control card;
[0014] If the second type identifier and the Y-axis identifier are identified, the corresponding control command is determined according to other data in the frame of data. In response to the control command, the data communication module of the galvanometer sends the information at the Y-axis end specified by the control command to the data input end of the marking control card;
[0015] 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 foregoing technical solutions or a combination of multiple technical solutions, the data output end of the marking control card combines two frames into one frame and sends the frame data with the type identifier character being the first type identifier in an alternating manner of the X-axis and the Y-axis.
[0017] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, the data communication module caches the previous frame of data sent in an alternating manner along the X-axis and Y-axis, and synchronously updates the positions of the X-axis and Y-axis of the galvanometer after the reception of the subsequent frame of data is completed.
[0018] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, the data communication module of the galvanometer responds to the control command in the following manner:
[0019] Determine the information type of the galvanometer end specified by the control command according to the frame data corresponding to the second type identifier. 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 supply voltage, DA card temperature, firmware version number of the galvanometer system, data transmission integrity verification result, serial number of the entire galvanometer, aperture of the light passing hole, laser wavelength, and material number.
[0020] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, the data communication module of the galvanometer identifies the type identifier character in each frame of data in the following manner:
[0021] Identify the frame header data in each frame of data according to the rules preset by the protocol;
[0022] Determine the type identifier character according to the positional relationship between the frame header data and the type identifier character preset by the protocol. Among them, all of the type identifier characters are located in the frame header data, or part of them are located in the frame header data, or they are located adjacent or non-adjacent to the frame header data.
[0023] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, identify the frame header data in each frame of data in the following manner:
[0024] The protocol adopts a bidirectional encoding method, and the last bit of a group of bidirectional encoding and the first bit of the adjacent next group of bidirectional encoding are in an inverted relationship;
[0025] 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;
[0026] Analyze the data bit by bit to locate three consecutive identical characters, and then the frame header data is located.
[0027] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, after the data communication module of the galvanometer sends the information specified by the control command to the data input end of the marking control card, it further includes:
[0028] The marking control card sends the information transmitted back from the galvanometer end to the marking software on the computer. The marking software periodically monitors the operating state of the galvanometer. If it is determined that the galvanometer is malfunctioning based on the transmitted-back information, the laser device is controlled to stop.
[0029] According to another aspect of the present invention, a laser device is provided, including a laser, a marking control card, and a galvanometer. The marking control card communicates with the galvanometer based on the communication method described above.
[0030] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, 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 configured to communicate bidirectionally with the marking control card.
[0031] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, the actuator includes an X-axis drive motor and a Y-axis drive motor.
[0032] The beneficial effects brought by the technical solution provided by the present invention are as follows: A specific protocol is used for bidirectional communication between the galvanometer and the marking control card. On the one hand, it realizes the control of the galvanometer position, and on the other hand, it can monitor the working state of the galvanometer in real time or at regular intervals. If the working state of the galvanometer is abnormal, the laser device can be automatically stopped. Description of the Drawings
[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings described below are only some embodiments recorded in the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0034] Figure 1 The basic flowchart of the communication method of the laser device provided for an exemplary embodiment of the present invention;
[0035] Figure 2 The method flowchart for identifying X / Y axis identifiers for galvanometer control communication provided for an exemplary embodiment of the present invention;
[0036] Figure 3 The architecture diagram of the laser device for implementing the communication method embodiment in the present invention;
[0037] Figure 4 The architecture diagram of a traditional laser device including a marking control card and a galvanometer;
[0038] Figure 5Flowchart of positioning identification characters provided for an exemplary embodiment of the present invention. Detailed implementation manners
[0039] In order to enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0040] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such data used in appropriate cases can be interchanged 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 "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, device, product or equipment comprising a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or equipment.
[0041] In an embodiment of the present invention, a laser device communication method for realizing galvanometer position control and status monitoring is provided, as Figure 1 shown, the communication method includes the following steps:
[0042] First step, the data output end of the marking control card of the laser device sends data in units of frames conforming to a preset protocol format to the data communication module of the galvanometer, and the protocol sets a first type identifier and a second type identifier;
[0043] In a specific embodiment, the type identifier character is a 4-bit character. For example, the protocol defines two type identifier characters: 0100 and 0110. In order to understand the communication method of the embodiment of the present invention, the following takes 0100 as belonging to the first type identifier and 0110 as belonging to the second type identifier.
[0044] In a specific embodiment, a frame of data includes frame header data, a 4-bit type identifier character, and about 20-bit body data. The type identifier character can be all located in the frame header data, or part of it located in the frame header data, or adjacent or non-adjacent to the frame header data. The specific protocol can set the positional relationship between the type identifier character and the frame header data.
[0045] Step 2: The data communication module of the galvanometer identifies several bit type identification characters in each frame of data received. If it is the first type identification, it determines the position information according to the other data in this frame of data (hereinafter referred to as the main 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.
[0046] Among them, the data communication module identifies the type identification characters in each frame of data in the following way: Identify the frame header data in each frame of data according to the rules preset by the protocol. The specific identification method can be as follows: The protocol uses a bidirectional encoding method for the main data. The last bit of a group of bidirectional encodings and the first bit of the adjacent next group of bidirectional encodings are in an inverted relationship. Then, there cannot be three consecutive identical characters in the main data; the protocol sets the frame header data to contain at least three consecutive identical characters, and the above-mentioned 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 characteristic of being able to 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.
[0047] According to the preset position relationship between the frame header data and the type identification characters by the protocol, determine the type identification characters. Among them, all the type identification characters are located in the frame header data, or part of them are located in the frame header data, or are located adjacent or non-adjacent to the frame header data. And the present invention does not limit whether the bidirectional encoding object includes the type identification characters.
[0048] The protocol uses a bidirectional encoding method. The so-called bidirectional encoding is to split 1-bit binary code into two bits for transmission. For example, the binary number 1 is encoded to get 10 or 01, and the binary number 0 is encoded to get 11 or 00. And when multiple consecutive binary numbers are bidirectionally encoded, the last bit of a group of bidirectional encodings and the first bit of the adjacent next group of bidirectional encodings are in an inverted relationship; for example: the binary number before encoding is 1100, and after its bidirectional encoding, it can get 10101100 or 01010011, depending on whether the first binary number 1 is randomly encoded as 10 or 01.
[0049] Suppose the protocol sets the header data to 4 bits, and the 5th to 8th bit data after the last header character of the header data is the type identification character. Then, for example, if a frame of data is received with the first 12-bit character being 111010110100 and no bi-directional encoding is performed, first locate "1110" as the header data. Starting from "0" and counting the 5th to 8th bit data backward, it is "0100", that is, the type identification character is located.
[0050] If the located type identification character is 0100, the galvanometer will know that this frame of data carries position information, that is, the specific position information for the galvanometer position adjustment sent by the marking control card. Then the galvanometer parses the position information from the main body data. For example, the coordinates are (x1, y1). Then, according to the usual implementation means, the digital-to-analog converter (DAC) of the galvanometer determines the drive commands for the X-axis and Y-axis based on the coordinates (x1, y1) and the working parameters of the X-axis motor and Y-axis motor of the galvanometer. Then the actuator of the galvanometer executes the drive commands, that is, the X-axis motor executes the X-axis drive command, and the Y-axis motor executes the Y-axis drive command.
[0051] Step 3: If the recognized type identification character is the second type identification, determine the corresponding control command according to the other data (i.e., the main body data) in this frame of data. The control command is defined as a request to return the information at the galvanometer end. In response to the control command, the data communication module of the galvanometer sends the information requested to be returned in the control command to the data input end of the marking control card.
[0052] For example, if a frame of data is received with the first 12-bit character being 111010110110, the located type identification character is 0110. Then the galvanometer will know that this frame of data carries a control command to request the galvanometer to return the working state parameters. At this time, the galvanometer does not update the output of the digital-to-analog converter, that is, the actuator of the galvanometer 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.
[0053] 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 determine the specific type of information that this frame of data specifically requests the galvanometer to return by parsing the main body data. For example, by parsing the main body data, it is determined that the type of information requested to be returned by the control command at the galvanometer end is the temperature type. Then 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;
[0054] If it is determined by parsing the main body data that the information type specified by the control command for requesting the return of 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;
[0055] If it is determined by parsing the main body data that the information type specified by the control command for requesting the return of 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.
[0056] The information type specified by the control command in the embodiment of the present invention for requesting the return of the galvanometer end 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 drive board temperature, the PD supply voltage, the DA card temperature, the firmware version number of the galvanometer system, the data transmission integrity verification result, the serial number of the entire galvanometer, the aperture of the light passing hole, the laser wavelength, the material number, which will not be elaborated one by one.
[0057] In an 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 Y-axis. In this case, the protocol also sets the X-axis identifier and Y-axis identifier. Specifically, the 1st to 4th bit data after the last header character of the header data can be set as the axis identifier character. For example, 0010 indicates the Y-axis identifier, and 1011 indicates the X-axis identifier. Since the relative position of the axis identifier character and the header data is determined, it is possible to determine whether it belongs to the X-axis identifier or the Y-axis identifier regardless of whether the axis identifier character is two-way encoded. The present invention does not limit whether the axis identifier character is two-way encoded.
[0058] See Figure 2 , when or after the data communication module of the galvanometer recognizes the type identifier character in each frame of data, it further includes:
[0059] Recognize the axis identifier character in this frame of data and determine whether it belongs to the X-axis identifier or the Y-axis identifier.
[0060] If the first 12-bit data of the frame start is 111010110100, see Figure 5, first locate the frame header data with 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. The digital-to-analog conversion chip converts it into a driving instruction for the X-axis and sends it to the X-axis driving motor of the galvanometer;
[0061] If the first 12-bit data of the frame start 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. Then, 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 driving instruction for the Y-axis and sends it to the Y-axis driving motor of the galvanometer.
[0062] 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 with the type identification character being the first type identification alternately according to the X-axis and Y-axis;
[0063] The data communication module caches the previous frame data sent alternately according to the X-axis and Y-axis (instead of initiating the single-axis movement of the galvanometer first), and synchronously updates the positions of the X-axis and Y-axis of the galvanometer after the reception of the subsequent frame data is completed.
[0064] If the first 12-bit data of the frame start 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 a request to return the 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. For example, by analyzing the main body data, it can be determined that what is 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, driving board temperature, PD supply voltage, DA card temperature, firmware version number of the galvanometer system, data transmission integrity verification result, serial number of the whole galvanometer, aperture of the light passing hole, laser wavelength, and material number.
[0065] If the first 12-bit data of the frame start 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 a request to return the information of the Y-axis end of the galvanometer; in response to the control command, the data communication module of the galvanometer sends the information of 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 analyzing the main data, it can be determined that what is 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, drive board temperature, PD power supply voltage, DA card temperature, galvanometer system firmware version number, data transmission integrity verification result, serial number of the entire galvanometer, aperture of the light passing hole, laser wavelength, and material number at the Y-axis end.
[0066] 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 end of the marking control card, it further includes:
[0067] The marking control card sends the information returned from the galvanometer end to the marking software on the computer, and the marking software periodically monitors the operating status of the galvanometer. If it is determined that the galvanometer is malfunctioning based on the returned information, the laser device is controlled to stop.
[0068] The embodiment of the present invention also 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 data. Among them, 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;
[0069] If the type identification character is the first type identification and the axis identification character is the X-axis identification, the main data is parsed as the position information for driving the X-axis movement of the galvanometer;
[0070] If the type identification character is the first type identification and the axis identification character is the Y-axis identification, the main data is parsed as the position information for driving the Y-axis movement of the galvanometer;
[0071] If the type identification character is the second type identification and the axis identification character is the X-axis identification, the main data is parsed as a request to return the operating information of the X-axis end of the galvanometer;
[0072] If the type identification character is the second type identification and the axis identification character is the Y-axis identification, the main data is parsed as a request to return the operating information of the Y-axis end of the galvanometer.
[0073] If the type identification character is the second type identification, there are characteristic characters defining the request return information type in the main body data, and the information types include 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, firmware version number of the galvanometer system, data transmission integrity verification result, serial number of the whole galvanometer, aperture of the light passing hole, laser wavelength, and material number.
[0074] The frame data of the galvanometer control communication protocol of the laser device provided by 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;
[0075] The protocol uses a bidirectional encoding method for the main body data, and the last bit of a group of bidirectional encodings and the first bit of the adjacent next group of bidirectional encodings are in an inverted relationship;
[0076] The communication protocol does not perform bidirectional encoding on the frame header data.
[0077] In a specific embodiment, 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 the bidirectional transmission function is added; and a parity bit is added to the end of the transmitted data: count how many high-level "1"s appear in a frame. If it is an odd number, the parity bit is 1. If it is an even number, the parity bit is 0. At the same time, the level of the frame tail can be matched, and it ends with the inverted value of the frame start to connect the next frame of data.
[0078] It should be noted that the galvanometer control communication protocol of the laser device provided by this embodiment and the laser device communication method provided by the above embodiment belong to the same inventive concept. Here, the entire content of the embodiment of the laser device communication method is incorporated into the embodiment of the galvanometer control communication protocol of this laser device by reference in its entirety, and will not be repeated.
[0079] Another embodiment of the present invention provides a laser device, as Figure 3 shown in the laser device, including a laser, a marking control card, and a galvanometer. The marking control card communicates with the galvanometer based on the communication method described above.
[0080] The galvanometer includes a data communication module, a digital-to-analog conversion chip, and an actuator for driving the movement of the lens. The data communication module is either 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 through a data line in a differential manner; data is transmitted between the Data_OUT2 interface and the Data_IN1 interface through a data line in a differential manner.
[0081] It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent in such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the element.
[0082] The above are only specific embodiments of the present application. It should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present application, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present application.
Claims
1. A laser equipment communication method for realizing galvanometer position control and state monitoring, 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, a second type identifier, an X-axis identifier, and a Y-axis identifier; The data communication module of the galvanometer identifies several bit type identification characters and axis identification characters in each frame of data from the received data. If the first type identification and the X-axis identification are identified, the position information is determined according to other data in the frame of data, and sent to the digital-to-analog conversion chip of the galvanometer; the digital-to-analog conversion chip converts the position information into an X-axis driving instruction, and sends it to the X-axis driving motor of the galvanometer; If the first type identifier and the Y-axis identifier are identified, the position information is determined according to other data in the frame data, and sent to the digital-to-analog conversion chip of the galvanometer; the digital-to-analog conversion chip converts the position information into a Y-axis drive instruction, and sends it to the Y-axis drive motor of the galvanometer; If the second type mark and the X-axis mark are identified, the corresponding control command is determined according to other data in the frame data, and in response to the control command, the data communication module of the galvanometer sends the information of the X-axis end specified by the control command to the data input terminal of the marking control card; If the second type mark and the Y-axis mark are identified, the corresponding control command is determined according to other data in the frame data, and in response to the control command, the data communication module of the galvanometer sends the information of the Y-axis end specified by the control command to the data input terminal of the marking control card; If the second type identifier is identified, the galvanometer does not update the output of the digital-to-analog conversion chip.
2. The communication method according to claim 1, 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 in an alternating manner along the X-axis and the Y-axis.
3. The communication method according to claim 2, characterized in that: The data communication module caches the previous frame data sent in an alternating manner along 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.
4. The communication method 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 information type of 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.
5. The communication method according to claim 1, characterized in that: The data communication module of the galvanometer identifies the type identification character in each frame of data in the following way: Identify the frame header data in each frame of data according to the rules pre-set by the protocol; 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.
6. The communication method according to claim 5, 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.
7. The communication method according to any one of claims 1 to 6, characterized in that: After the data communication module of the galvanometer sends the information specified by 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.
8. 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 7.
9. The laser device according to claim 8, 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 configured to communicate bidirectionally with the marking control card.
10. The laser device according to claim 9, characterized in that The actuator includes an X-axis drive motor and a Y-axis drive motor.
Citation Information
Cited By
Multi-protocol galvanometer monitoring system, protocol conversion data acquisition box and monitoring method
CN121711410A