Automatic Identification System and Method for CNC Machine Tools with Unique Product Codes within Production Units

By integrating the generation, distribution, and identification process of unique product codes into the production unit control system and the PLC program of CNC machine tools, the problem of identification errors among multiple CNC machine tools is solved, achieving automated, unique, and efficient product coding identification.

CN116679613BActive Publication Date: 2025-12-02SHANGHAI SPACE PRECISION MACHINERY RES INST
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310708616.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-14
Publication Date
2025-12-02
Estimated Expiration
2043-06-14

AI Technical Summary

Technical Problem

When multiple CNC machine tools are processing simultaneously, there are problems such as missing labels, incorrect labels, and duplicate labels. Existing technologies make it difficult to achieve unified management and consistent labeling of product codes.

Method used

The process of generating, distributing, locking, and identifying unique product codes is integrated into the production unit control system and the CNC machine tool PLC program. By generating unique codes, engraving tools are called for identification, and code verification and management are performed to ensure the automation and consistency of the identification process.

Benefits of technology

It solves the problems of missing, incorrect, and duplicate markings among multiple CNC machine tools, achieves the uniqueness of product codes and a high degree of automation in the marking process, eliminates the need for additional equipment, and reduces the incidence of marking errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116679613B_ABST
    Figure CN116679613B_ABST
Patent Text Reader

Abstract

This invention provides an automatic identification system and method for CNC machine tools with unique product codes within a production unit, comprising: a CNC machine tool triggering an automatic identification application; the production unit control system automatically generating a unique product code according to the product type, distributing and locking the code; the CNC machine tool calling a preset program according to the coding rules and using engraving tools to engrave characters on the product according to the toolpath; the CNC machine tool providing feedback on the product identification result; and the production unit control system determining whether the identification was successful and updating the subsequently distributable product codes until all required product codes are completed. This invention solves the problems of missed, incorrect, and duplicate identification that easily occur when multiple CNC machine tools are simultaneously identifying products, and is extremely low in cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of industrial automation, and more specifically, to an automatic identification system and method for CNC machine tools with unique product codes within a production unit. Background Technology

[0002] A product's unique code serves as an identification code to trace its production and processing process. With the increasing application of automated production units in CNC machining, products processed within a single production unit generally require product coding. Currently, production units mostly use laser marking machines for product marking, but these machines are only used by a single production unit. However, as the number of production units gradually increases and their flexibility improves, the same product may be processed simultaneously in different production units, making it difficult for the marking machine to handle both simultaneously.

[0003] CNC engraving is another method for marking on product surfaces. For example, patent document CN203666223U discloses a CNC engraving machine, which includes a frame and a worktable mounted on the frame. A linkage device is provided between the worktable and the frame to enable the worktable to move along the X and Y axes on the frame. A tool transmission control box is mounted on the frame, and a lifting device is provided between the tool transmission control box and the frame. A motor is mounted inside the tool transmission control box, and a transmission rod connected to the rotation of the motor spindle is mounted inside the tool transmission control box. The outer end of the transmission rod extends out of the tool transmission control box, and an engraving head is mounted at the extended end of the transmission rod. A buffer structure is provided between the engraving head and the transmission rod.

[0004] However, when a single product is processed on a single CNC machine tool, product coding and identification can be done by using a fixed machining program code and a counting method. This method has the problem of data asynchrony between multiple CNC machine tools, which can lead to problems such as missing labels, incorrect labels, and duplicate labels. Summary of the Invention

[0005] To address the shortcomings of existing technologies, the purpose of this invention is to provide an automatic identification system and method for CNC machine tools that provides unique product codes within a production unit.

[0006] According to the present invention, an automatic identification system for CNC machine tools with unique product codes within a production unit includes: a production unit control system and a CNC machine tool;

[0007] The production unit control system automatically generates a unique product code based on the identification application of the CNC machine tool, according to the product type and product coding rules, and distributes it to the CNC machine tool that applied for the product code, and locks the unique product code; the generation, distribution, locking and release of the product code are uniformly managed by the unit control system.

[0008] The CNC machine tool calls a preset program according to the coding rules of the product's unique code, and calls the engraving tool to engrave the corresponding characters on the product according to the tool path, and then feeds back the product marking result;

[0009] After the product's unique identification code is successfully used, the production unit control system updates the codes of subsequent products that can be distributed.

[0010] Preferably, after receiving the unique product code distributed by the production unit control system through the CNC machine tool PLC, the CNC machine tool first converts the code and writes it into the user macro variable used in the CNC program, then re-encodes the macro variable into the product code variable to be identified, and feeds it back to the production unit control system. The production unit control system verifies the consistency between the distributed and fed-back product codes; if they are consistent, the unique product code takes effect. In this process, the toolpath information such as letters, symbols, and numbers used in the code are preset according to program segments, and the main program executes the jump segments according to the user macro variables.

[0011] Preferably, the production unit control system establishes a product code locking mechanism, sets a record variable for locking codes for each CNC machine tool, and when updating the subsequently distributable product codes, prioritizes distributing released product codes; otherwise, generates new product codes according to counting rules and distributes them to the applying CNC machine tool, and locks the product code; when the product identification result fed back by the CNC machine tool is failure, the product code is released and continues to be used; when the product identification result fed back by the CNC machine tool is success, the locked product code is cleared.

[0012] Preferably, after the product processing is completed, the CNC machine tool automatically calls the engraving and marking subroutine; through the execution of the CNC program, the M code is called, and according to the data input / output addresses and variable meanings agreed upon by the Canopen bus protocol between the CNC system and the production unit control system, the CNC machine tool PLC2 outputs AutoCode_Act. When the variable `ive` is set to `On`, the automatic identification application process of the production unit control system 5 is activated. The production unit control system reads the product type variable `ProductType_Req` from the CNC machine tool's variable area when it applies for automatic identification, and writes this variable `ProductType_Req` into the pre-read variable `ProductType_FB` of the product code generation function block. At the same time, the pre-read variable `ProductType_FB` is fed back to the CNC machine tool PLC. The CNC machine tool PLC compares the sent and fed-back product type variables. If they match, it sends a confirmation signal `Check_ProductType_OK` to the production unit control system. When the production unit control system receives the confirmation signal, the automatic identification application takes effect, and the production unit control system enters the product code distribution process S3. The CNC machine tool PLC executes the next M code and waits for the product code distribution process. If the CNC machine tool PLC sends a confirmation failure signal `Check_ProductType_NG`, the CNC machine tool issues an alarm, and the production unit control system exits the process and ends.

[0013] Preferably, the production unit control system uses a bus to trigger the corresponding machine tool's distribution code activation signal, and simultaneously sends the variables of sequence number, identification number, year number, and batch number to the CNC machine tool PLC. When the distribution code signal is activated, the CNC machine tool PLC receives the variables used for the product's unique code, and converts the variables of sequence number, identification number, year number, and batch number into user macro variables used by the CNC program. Then, it re-encodes the macro variables into the product code variable to be identified and feeds it back to the production unit control system. When converting PLC variables to macro variables, each bit of the product code corresponds to one macro variable, and ASCII code is used for encoding and parsing.

[0014] Preferably, the letters, symbols, and numbers used in the encoding are preset according to program segments in the CNC program. The main program jumps to segments according to the user macro variables and calls the engraving tool to engrave the characters on the product according to the tool path. The CNC machine tool continues to execute the CNC machining program, jumps to the preset letter, symbol, and number program segments by pre-reading the user macro variable values, and calls the engraving tool to engrave the characters on the product according to the tool path.

[0015] Preferably, the production unit control system sets up variable areas for product codes according to different products and different CNC machine tools, and sets up locked code automatic recording variable groups and released code automatic recording variable groups for each product. When product codes are generated and distributed, the variable groups exist in sequence. When the identification is completed, the value of the locked variable group is processed according to the identification result. When the CNC machine tool PLC identification result feedback process is activated, the production unit control system receives the identification end feedback signal CodeCompleted_Req, and then verifies the consistency between the locked product code variable and the product code variable that has been identified and reported by the CNC machine tool PLC. If the verification fails, the production unit control system ends the verification process and sends a machine tool product code verification failure signal Check_CodeCompleted_Error, and the CNC machine tool immediately alarms. If the verification passes, the production unit control system then judges the identification result variable.

[0016] Preferably, if the machine tool feedback flag fails, the product code from the machine tool feedback is released, and the value of the locked variable group is set in the released variable group for subsequent use; if the machine tool feedback flag succeeds, the variable value in the locked product code variable group is cleared to zero, and the process ends normally.

[0017] According to the present invention, an automatic identification method for CNC machine tools is provided, which employs an automatic identification system for CNC machine tools with a unique product code within the production unit.

[0018] Preferably, it includes:

[0019] Step S1: Set the start and end numbers of the product code on the production unit operation interface of the production unit control system.

[0020] Step S2: Instruct the CNC machine tool to trigger the automatic identification application;

[0021] Step S3: Instruct the production unit control system to automatically generate a unique product code according to the product type;

[0022] Step S4: Instruct the production unit control system to distribute a unique product code to the CNC machine tool applying for the identification and lock the code;

[0023] Step S5: Instruct the CNC machine tool to call the preset program according to the coding rules, and call the engraving tool to engrave the markings on the product according to the tool path;

[0024] Step S6: Instruct the CNC machine tool to return the product identification result;

[0025] Step S7: Instruct the production unit control system to determine whether the identification was successful and update the product codes that can be distributed subsequently.

[0026] Compared with the prior art, the present invention has the following beneficial effects:

[0027] 1. This invention solves the problem of missed marking, incorrect marking, and duplicate marking that are prone to occur when multiple CNC machine tools are simultaneously marked in a production unit, without the need for additional equipment.

[0028] 2. This invention integrates the product coding range setting, automatic product coding, coding distribution and verification, and machine tool engraving into the unit control system and machine tool PLC program. The automatic product coding function is extremely convenient to use, the coding process is highly automated, the coding content is not prone to errors, and the product code is unique.

[0029] 3. This invention eliminates the need for additional marking equipment and solves the problems of missed marking, incorrect marking, and duplicate marking that are prone to occur when multiple CNC machine tools are marking simultaneously. Attached Figure Description

[0030] Other features, objects, and advantages of the present invention will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings:

[0031] Figure 1 This is a schematic diagram of the production unit composition according to an embodiment of the present invention.

[0032] Figure 2 This is a schematic diagram of the automatic identification process for unique product codes on CNC machine tools within a production unit, according to an embodiment of the present invention.

[0033] The diagram shows:

[0034] 1. CNC machine tool; 2. CNC machine tool PLC; 3. Engraving knife; 4. Product; 5. Production unit control system; 6. Production unit operation interface. Detailed Implementation

[0035] The present invention will now be described in detail with reference to specific embodiments. These embodiments will help those skilled in the art to further understand the present invention, but do not limit the invention in any way. It should be noted that those skilled in the art can make several changes and improvements without departing from the concept of the present invention. These all fall within the protection scope of the present invention.

[0036] The purpose of this invention is to provide an automatic identification method for CNC machine tools with unique product codes within a production unit. This method solves the problems of missed, incorrect, and duplicate identification that easily occur when identifying multiple CNC machine tools simultaneously within a production unit. It requires no additional equipment and is extremely low-cost. The core idea of ​​this invention is to integrate the product code range setting, automatic product coding, code distribution and verification, and machine tool engraving into the production unit control system 5 and the CNC machine tool PLC2 program. The automatic product coding function is extremely convenient to use, the identification process is highly automated, and the identification content is less prone to errors.

[0037] Figure 1 A production unit composition diagram of an embodiment of the CNC machine tool with a unique product code within the production unit provided by the present invention is shown below. Figure 1 As shown, it includes a CNC machine tool 1, a machine tool PLC 2, an engraving knife 3, a product 4, a unit control system 5, and a unit operation interface 6.

[0038] Figure 2 This is a schematic diagram of the operation steps of an automated production line for cabin processing according to an embodiment of the present invention. The present invention also provides an automatic identification method for CNC machine tools with unique product codes within a production unit, such as… Figure 2 As shown, it includes the following steps:

[0039] Step S1: Set the start and end numbers of the product code on the production unit operation interface 6 of the production unit control system 5.

[0040] Step S2: CNC machine tool 1 triggers automatic identification application;

[0041] Step S3: The production unit control system 5 automatically generates a unique product code according to the product type;

[0042] Step S4: Distribute a unique product code to the CNC machine tool 1 that applied for the identification and lock the code;

[0043] Step S5: The CNC machine tool 1 calls the preset program according to the coding rules and calls the engraving tool to engrave the markings on the product according to the tool path;

[0044] Step S6: CNC machine tool 1 provides feedback on product identification results;

[0045] Step S7: The production unit control system 5 determines whether the identification is successful, updates the subsequent distributable product codes, and returns to step S2 to wait until all the required product codes are completed.

[0046] The present invention will now be described in more detail through preferred examples.

[0047] Step S1 includes: selecting the product type on the production unit operation interface 6, and setting the distinction number, batch number, start sequence number, and end sequence number in the product code. The product coding rule is YY-AA-BB-CCC, where YY is the distinction number, AA is the year number, BB is the batch number, and CCC is the sequence number. AA is automatically set by the system, while YY, BB, and CCC are set by the operator. The sequence number also requires setting the start and end values ​​separately.

[0048] Step S2 includes: The CNC machine tool PLC2 interacts with the production unit control system 5 via a bus protocol. The CNC machine tool PLC2 triggers an automatic identification application signal and simultaneously transmits the product type variable to the production unit control system 5. When the production unit control system 5 receives the automatic identification application signal, it receives the product type variable and feeds back the confirmed product type variable to the CNC machine tool PLC2. The CNC machine tool PLC2 compares the sent and fed-back product type variables. If they match, it sends a confirmation signal to the production unit control system 5. When the production unit control system 5 receives the confirmation signal, the automatic identification application takes effect; otherwise, the automatic identification application fails. Step S2, where the automatic identification application process triggered by the CNC machine tool ends, is completed.

[0049] More specifically, after the product processing is completed, the CNC machine tool 1 automatically calls the engraving and marking subroutine; through the execution of the CNC program, the M code is called, and in the PLC program segment responding to the On_M_Code state, according to the data input and output addresses and variable meanings agreed upon by the Canopen bus protocol between the CNC system and the production unit control system 5, the CNC machine tool PLC2 sets the AutoCode_Active variable to On, thereby activating the automatic marking application process of the production unit control system 5.

[0050] The production unit control system 5 reads the product type variable ProductType_Req from the CNC machine tool 1 when it requests automatic identification according to the machine tool variable area, and writes this variable into the pre-read variable of the product code generation function block. Simultaneously, it feeds back the pre-read variable ProductType_FB to the CNC machine tool PLC2. The CNC machine tool PLC2 compares the sent and fed-back product type variables. If they match, it sends a confirmation signal Check_ProductType_OK to the production unit control system 5. Upon receiving the confirmation signal, the automatic identification application takes effect, and the production unit control system 5 enters the product code distribution process S3. The machine tool PLC executes the next M code and waits for the product code distribution process. If the CNC machine tool PLC2 sends a confirmation failure signal Check_ProductType_NG, the CNC machine tool 1 issues an alarm, and the production unit control system 5 exits the process and terminates.

[0051] Step S3 includes: The production unit control system 5 reads the product coding rules according to the product type, generates the next sequence number by accumulating the current sequence number value, and stores the distinction number, batch number, year number, and sequence number into the unused variable storage area according to the product. More specifically, the production unit control system 5 reads the product coding rules according to the product type ProductType_FB, first determines whether there is a released product code for the product, and if so, prioritizes setting it as the product identification code used by the current machine tool according to the first-in-first-out principle. Otherwise, it generates the next sequence number by accumulating the current sequence number value, and stores the distinction number, batch number, year number, and sequence number into the unused variable storage area according to the product.

[0052] Step S4 includes: The production unit control system 5 uses the bus to trigger the corresponding machine tool's distribution code activation signal, and simultaneously sends variables such as sequence number, identification number, year number, and batch number to the CNC machine tool PLC2; When the distribution code signal is activated, the CNC machine tool PLC2 receives the variables used for the product's unique code, and converts the sequence number, identification number, year number, and batch number into user macro variables used by the CNC program, and then re-encodes the macro variables into the product code variable to be identified, and feeds it back to the production unit control system 5; The production unit control system 5 verifies whether the distributed and fed-back product code variables are consistent. If they are consistent, it locks the product code and sends a confirmation signal to the CNC machine tool PLC2; If the CNC machine tool PLC2 receives the confirmation signal, it starts step S5; otherwise, the CNC machine tool 1 alarms, the production unit control system 5 does not lock the product's unique code, and the process ends.

[0053] More specifically, the production unit control system 5 sends variables such as sequence number, identification number, year number, and batch number to the CNC machine tool PLC2 according to the input / output variables agreed upon in the bus protocol. Simultaneously, it activates the product code distribution process of the CNC machine tool PLC2 by setting the distribution code activation signal GenAutoCode_Req to On. When the distribution code signal is activated, the CNC machine tool PLC2 reads the variables used for the product's unique code and converts the sequence number, identification number, year number, and batch number into user macro variables used by the CNC program. It then re-encodes these macro variables into the product code variable to be identified and feeds it back to the production unit control system 5. The production unit control system 5 verifies whether the distributed and fed-back product code variables are consistent. If they match, it locks the product code and sends a confirmation signal to the CNC machine tool PLC2. Upon receiving the confirmation signal, the CNC machine tool PLC2 normally terminates the process and proceeds to the next step, S5. Otherwise, the machine tool alarms, the production unit control system 5 does not lock the product's unique code, and the process ends. When converting PLC variables to macro variables, each digit of the product code corresponds to a macro variable, and is encoded and parsed using ASCII code. For example, the product code has 9 digits, represented by #1501 to #1509. If the first digit is the letter A, then #1501 is set to 65, and so on.

[0054] Step S5 includes: Pre-setting the letters, symbols, and numbers used in the encoding according to program segments in the CNC program; the main program jumps to segments based on user macro variables and calls the engraving tool to engrave the markings on the product according to the toolpath. Specifically, the CNC machine tool 1 continues to execute the CNC machining program, jumping to the preset letter, symbol, and number program segments by pre-reading user macro variable values, and calling the engraving tool to engrave the markings on the product according to the toolpath.

[0055] Step S6 includes: The CNC machine tool PLC2 feeds back the identification result and the product code variable used for identification via the bus. Before the machine tool identification subroutine ends, the identification result feedback process is entered by executing M code. The CNC machine tool PLC2 sends the product type, identification result, and product code variable used for identification to the production unit control system 5.

[0056] Step S7 includes: The production unit control system 5 establishes a product code locking mechanism, sets a locking code for each product, automatically records variables, and stores variable groups in sequence. By querying the locked product code variable groups, the system verifies the product code variable fed back by the CNC machine tool 1. If the verification fails, the production unit control system 5 terminates the process and the machine tool alarms. If the verification passes, the result variable is marked. If the CNC machine tool 1 fails to report the error, the product code fed back by the CNC machine tool 1 is released and used again; if the CNC machine tool 1 reports the error successfully, the process terminates normally.

[0057] Step S7 also includes: when updating subsequent distributable product codes, prioritizing the distribution of released product codes; otherwise, generating new product codes according to counting rules and distributing them to the applying CNC machine tool 1, locking and recording the product code until all required product codes are completed.

[0058] The production unit control system 5 sets up variable areas for product codes on four CNC machine tools, based on different products. For each product, it sets up an automatic variable group for locking and releasing codes. Since there are four machine tools, the variable group size can be set to four. During product code generation and distribution, the variable groups exist sequentially. Upon completion of the identification process, the values ​​of the locked variable groups are processed based on the identification result. When the identification result feedback process of the CNC machine tool PLC2 is activated, the production unit control system 5 receives the identification completion feedback signal CodeCompleted_Req and verifies the consistency between the locked product code variables and the product code variables reported by the CNC machine tool PLC2 indicating completed identification.

[0059] If the verification fails, the verification process of production unit control system 5 ends, and a machine tool product code verification failure signal Check_CodeCompleted_Error is sent, causing the machine tool to immediately alarm. If the verification passes, production unit control system 5 then checks the identification result variable. If the machine tool reports identification failure, the product code reported by the machine tool is released, and the value of the locked variable group is set in the released variable group for subsequent use; if the machine tool reports identification success, the value of that variable in the locked product code variable group is cleared to zero, and the process ends normally.

[0060] After a single product identification process is completed, return to step S2 and wait until all required product codes are completed.

[0061] like Figure 1 As shown, in a preferred embodiment of the present invention, the production unit includes four vertical milling and turning machining centers and their PLCs, a production unit control system and its operating interface, engraving tools installed in the CNC machine tools, and products processed by the production unit.

[0062] Specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the specific embodiments described above, and those skilled in the art can make various changes or modifications within the scope of the claims, which do not affect the essence of the present invention. Unless otherwise specified, the embodiments and features described in this application can be arbitrarily combined with each other.

Claims

1. An automatic identification system for CNC machine tools with unique product codes within a production unit, characterized in that, include: Production unit control systems and CNC machine tools; The production unit control system automatically generates a unique product code based on the identification application of the CNC machine tool, according to the product type and product coding rules, and distributes it to the CNC machine tool that applied for the product code, and locks the unique product code; the generation, distribution, locking and release of the product code are uniformly managed by the unit control system. The CNC machine tool calls a preset program according to the coding rules of the product's unique code, and calls the engraving tool to engrave the corresponding characters on the product according to the tool path, and then feeds back the product marking result; After the product's unique identification code is successfully used, the production unit control system updates the codes of subsequent distributable products. After receiving the unique product code distributed by the production unit control system through the CNC machine tool PLC, the CNC machine tool first converts the code and writes it into the user macro variable used in the CNC program. Then, it re-encodes the macro variable into the product code variable to be identified and feeds it back to the production unit control system. The production unit control system verifies the consistency between the distributed and fed-back product codes. If they are consistent, the unique product code takes effect. In this process, the toolpath information such as letters, symbols, and numbers used in the code are preset according to program segments. The main program jumps and executes segments according to the user macro variables.

2. The automatic identification system for CNC machine tools with unique product codes within a production unit according to claim 1, characterized in that, The production unit control system establishes a product code locking mechanism, setting a record variable for the locked code for each CNC machine tool. When updating the subsequently distributable product codes, the released product codes are distributed first; otherwise, a new product code is generated according to the counting rules and distributed to the applying CNC machine tool, and the product code is locked. If the product identification result returned by the CNC machine tool is a failure, the product code is released and can continue to be used; if the product identification result returned by the CNC machine tool is a success, the locked product code is cleared.

3. The automatic identification system for CNC machine tools with unique product codes within a production unit according to claim 1, characterized in that, After product processing is completed, the CNC machine tool automatically calls the engraving and marking subroutine. Through the execution of the CNC program, the M-code is called, and according to the data input / output addresses and variable meanings agreed upon by the Canopen bus protocol between the CNC system and the production unit control system, the CNC machine tool PLC2 sets the AutoCode_Active variable to On, activating the automatic marking application process of the production unit control system 5. The production unit control system reads the product type variable ProductType_Req from the machine tool variable area when the CNC machine tool applies for automatic marking, and writes this variable ProductType_Req into the pre-read variable ProductType_FB of the product code generation function block. When the product type variable ProductType_FB is sent back to the CNC machine tool PLC, the CNC machine tool PLC compares the sent and returned product type variable. If they match, the PLC sends a confirmation signal Check_ProductType_OK to the production unit control system. Upon receiving the confirmation signal, the production unit control system automatically marks the application as effective and enters the product coding distribution process S3. The CNC machine tool PLC executes the next M code and waits for the product coding distribution process. If the CNC machine tool PLC sends a confirmation signal Check_ProductType_NG, the CNC machine tool issues an alarm, and the production unit control system exits the process and terminates.

4. The automatic identification system for CNC machine tools with unique product codes within a production unit according to claim 3, characterized in that, The production unit control system uses a bus to trigger the corresponding machine tool's distribution code activation signal, and at the same time sends the variables of sequence number, identification number, year number, and batch number to the CNC machine tool PLC; When the PLC of a CNC machine tool is activated by distributing an encoding signal, it receives the variables used for the unique product code and converts the variables of sequence number, identification number, year number, and batch number into user macro variables used by the CNC program. Then, it re-encodes the macro variables into the product code variables to be identified and feeds them back to the production unit control system. When converting PLC variables to macro variables, each bit of the product code corresponds to a macro variable and is encoded and parsed using ASCII code.

5. The automatic identification system for CNC machine tools with unique product codes within a production unit according to claim 4, characterized in that, In the CNC program, the letters, symbols, and numbers used in the coding are preset according to program segments. The main program jumps to segments according to the user's macro variables and calls the engraving tool to engrave the characters on the product according to the tool path. Meanwhile, the CNC machine tool continues to execute the CNC machining program, jumps to the preset letter, symbol, and number program segments by pre-reading the user's macro variable values, and calls the engraving tool to engrave the characters on the product according to the tool path.

6. The automatic identification system for CNC machine tools with unique product codes within a production unit according to claim 5, characterized in that, The production unit control system sets up variable areas for product codes according to different products and different CNC machine tools, and sets up locked code automatic recording variable groups and released code automatic recording variable groups for each product. When product codes are generated and distributed, the variable groups exist in sequence. When the identification is completed, the value of the locked variable group is processed according to the identification result. When the identification result feedback process of the CNC machine tool PLC is activated, the production unit control system receives the identification end feedback signal CodeCompleted_Req, and then verifies the consistency between the locked product code variable and the product code variable that has been identified and reported by the CNC machine tool PLC. If the verification fails, the production unit control system ends the verification process and sends a product code verification failure signal Check_CodeCompleted_Error to the machine tool, and the CNC machine tool immediately alarms. If the verification passes, the production unit control system then judges the identification result variable.

7. The automatic identification system for CNC machine tools with unique product codes within a production unit according to claim 6, characterized in that, If the machine tool feedback flag fails, the product code from the machine tool feedback is released, and the value of the locked variable group is set in the released variable group for later use; if the machine tool feedback flag succeeds, the group variable value in the locked product code variable group for that product is cleared to zero, and the process ends normally.

8. An automatic marking method for CNC machine tools, characterized in that, An automatic identification system for CNC machine tools that employs a unique product code within the production unit as described in any one of claims 1 to 7.

9. The automatic marking method for CNC machine tools according to claim 8, characterized in that, include: Step S1: Set the start and end numbers of the product code on the production unit operation interface of the production unit control system. Step S2: Instruct the CNC machine tool to trigger the automatic identification application; Step S3: Instruct the production unit control system to automatically generate a unique product code according to the product type; Step S4: Instruct the production unit control system to distribute a unique product code to the CNC machine tool applying for the identification and lock the code; Step S5: Instruct the CNC machine tool to call the preset program according to the coding rules, and call the engraving tool to engrave the markings on the product according to the tool path; Step S6: Instruct the CNC machine tool to return the product identification result; Step S7: Instruct the production unit control system to determine whether the identification was successful and update the product codes that can be distributed subsequently.

Citation Information

Patent Citations

  • Digital control character cutter

    CN203666223U

  • Equipment identification method, device and system and cloud server

    CN113343641A