A continuous motion and no size limit measuring tool processing method
Through the continuous motion without dimension limitation, the measuring tool processing method is used to judge and optimize the consistency by using the measuring tool identification module and the convolutional neural network, the continuous processing of the measuring tool is realized, the problems of size limitation and operation complexity in the existing technology are solved, and the processing efficiency and quality are improved.
Patent Information
- Application Number
- CN202411698694.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2044-11-26
AI Technical Summary
The existing laser processing technology has dimension limitations when processing long-size measuring tools, and it is impossible to complete the processing at once. The stepping method leads to mechanical fatigue and accuracy deviation, and has low efficiency.
The continuous motion without dimension limitation is adopted to generate and adjust the measuring tool identification module, combine with the convolutional neural network to make consistency judgment and optimization, calculate the moving distance in real time, and realize continuous processing of the measuring tool.
It breaks through the processing size limit of measuring tools, improves processing efficiency and quality, reduces mechanical fatigue and accuracy deviation, and is suitable for simple and efficient processing of complex measuring tools.
Smart Images

Figure CN119175466B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of high-end equipment combined processing and manufacturing, and in particular to a method for processing a measuring tool with continuous motion and no size restriction. Background Art
[0002] In existing laser processing technology, the use of lasers for gauge marking often faces a variety of technical challenges, especially when dealing with long gauges. Traditional laser processing equipment usually has a fixed processing range, which is determined by the size of the field mirror, which limits the maximum length of the processed object. For gauges beyond this range, processing cannot be completed in one go, and additional technical solutions are required. For example, the use of large-format field mirrors or dynamic focusing galvanometers can expand the processing range, but these solutions are costly and technically complex. Another common solution is the step method, which is to perform laser processing in sections by moving the gauge. However, this method will lead to frequent mechanical starts and stops, increase mechanical fatigue, and easily cause precision deviations at the processing joints. In addition, the step method is less efficient because the laser equipment cannot be processed during the process of moving the gauge, resulting in a large amount of equipment potential wasted. Therefore, a new laser processing technology is needed that can effectively solve the above problems and improve processing efficiency and quality.
[0003] Chinese patent publication number: CN108620821B discloses a method for processing a radiation detection gauge, which relates to a method for processing a gauge, including: 1. Forging a blank: forging a radiation detection gauge body and a forging assembly block; 2. Rough milling on a milling machine; 3. Heat treatment of the radiation detection gauge body and the assembly block; 4. CNC milling machine processing: processing the outer dimensions of the radiation detection gauge body and the assembly block on a CNC milling machine, processing a notch for installing the assembly block on the radiation detection gauge body, processing the arc trapezoidal groove part of the radiation detection gauge body, and processing the arc trapezoidal groove part of the assembly block; 5. The fitter assembles the radiation detection gauge body and the assembly block according to the drawing size, and the two are tightened together by two bolts, and the radiation detection gauge body and the assembly block together form a complete arc trapezoidal groove. However, this solution cannot complete the processing of gauges beyond this range at one time, and cannot solve the above technical problems.
[0004] Chinese patent publication number: CN108581377B discloses a processing method for a profile model gauge, which involves a processing method for a gauge, including: profile model gauge processing, including forging blank, blank milling, quenching, milling, flat grinding, bluing, contour first wire cutting and second wire cutting, polishing and blunting; positioning angle iron processing includes forging blank, quenching, milling, grinding and bench processing; profile model gauge pin hole processing, positioning angle iron transfer processing during processing. However, this solution is still not suitable for the case where the gauge length exceeds the processing range, and cannot solve the above technical problems. Summary of the invention
[0005] To this end, the present invention provides a continuous motion measuring tool processing method with no size limit, so as to overcome the problem in the prior art that the part exceeding the range cannot be marked because the measuring tool size exceeds the processing length, and the measuring tool style is complex, resulting in the complete processing content being drawn separately, the workload is large, and it is not easy to reuse.
[0006] To achieve the above object, the present invention provides a method for machining a measuring tool with continuous motion and no size restriction, comprising:
[0007] Step S1, generating a measuring tool identification module according to user input;
[0008] Step S2, judging the consistency of the measuring tool identification module according to the actual measuring tool image, and adjusting the measuring tool identification module according to the consistency of the measuring tool identification module to obtain an adjusted measuring tool identification module;
[0009] Step S3, optimizing the user input method in step S1 according to the consistency rate of the measuring tool identification module;
[0010] Step S4, setting the content of the adjusted measuring tool identification module according to the customized content;
[0011] Step S5, obtaining the measuring tool identification length;
[0012] Step S6, setting the gauge calculation length, judging the necessity of optimization according to the processing situation, optimizing the gauge calculation length according to the necessity of optimization, dividing each processing group according to the gauge calculation length, and marking the start position and end position of each processing group;
[0013] Step S7, setting the processing calibration position of each module in each processing group according to the content of the adjusted measuring tool identification module;
[0014] Step S8, controlling the setting process of the processing calibration position of each module in each processing group according to the register state;
[0015] Step S9, calculating the moving distance of the moving device in real time according to the pulse information, and continuously processing the measuring tool according to the moving distance of the moving device and the processing calibration position of each module in each processing group.
[0016] Furthermore, in the step S1, when generating the measuring tool identification module, user input is obtained, and the measuring tool identification module is generated according to the content of the user input.
[0017] Further, in the step S2, when judging the consistency of the measuring tool identification module, an actual measuring tool picture is obtained by a camera set in the measuring tool processing and manufacturing equipment, and the actual measuring tool picture is input into the convolutional neural network model to obtain the output result of the convolutional neural network model, and the output result refers to the measuring tool identification type covered by the actual measuring tool picture, including the scale line length, scale value size, scale value unit, measuring tool logo and measuring tool product name, and the measuring tool identification module generated in the step S1 is compared with the output result, and the consistency of the measuring tool identification module is judged according to the comparison result, wherein:
[0018] If the measuring tool identification module generated in step S1 covers the output result, it is determined that the measuring tool identification module is consistent;
[0019] If the measuring tool identification module generated in step S1 does not cover the output result, it is determined that there is no consistency in the measuring tool identification module, a supplementary measuring tool identification module is generated according to the measuring tool identification type that is not covered in the output result, the measuring tool identification module is adjusted according to the supplementary measuring tool identification module to obtain an adjusted measuring tool identification module, and the adjusted measuring tool identification module is set to include the measuring tool identification module generated in step S1 and the supplementary measuring tool identification module.
[0020] Further, in the step S3, when optimizing the user input method in the step S1, the gauge identification module consistency rate P is calculated according to the uncovered gauge identification type cumulative amount N1 and the gauge identification type cumulative amount N2 of the actual gauge picture, and P=1-N1 / N2 is set. The gauge identification module consistency rate P is compared with the preset gauge identification module consistency rate P0, and the optimization of the user input method is judged according to the comparison result, wherein:
[0021] When P≥P0, it is determined that the user input method is not optimized;
[0022] When P<P0, it is determined to optimize the user input method, and the most uncovered gauge identification types within the optimization time interval are used as recommended input options to optimize the user input method in step S1, and the optimized user input method is set to display the recommended input options when the user inputs at the terminal.
[0023] Furthermore, in step S4, when setting the content of the adjusted measuring tool identification module, the customized content input by the user corresponding to each of the adjusted measuring tool identification modules is obtained from the API interface of the measuring tool processing and manufacturing equipment management terminal, and the customized content includes the starting position, interval distance, increment and unmarked position of the adjusted measuring tool identification module on the measuring tool, and the content of the adjusted measuring tool identification module is set as the customized content.
[0024] Furthermore, in the step S5, the total length of the measuring tool input by the user in the API interface of the measuring tool manufacturing equipment management terminal is obtained and used as the measuring tool identification length.
[0025] Further, in the step S6, when setting the gauge calculation length, the gauge calculation length d is set to the preset gauge calculation length d0;
[0026] The processing conditions are judged according to the processing parameters, including:
[0027] When VY≥VY0 and N≥N0, the processing is judged as missing;
[0028] When VY≥VY0 and N<N0, the processing situation is judged as omission;
[0029] When VY<VY0, and N≥N0, the processing situation is judged as omission;
[0030] When VY<VY0, and N<N0, it is determined that the processing situation does not have omissions;
[0031] VY is the moving speed, VY0 is the preset moving speed, N is the maximum value of the print content memory, and N0 is the preset print content memory;
[0032] The necessity of optimization is judged according to the processing conditions, and the calculated length of the measuring tool is optimized according to the necessity of optimization, wherein:
[0033] When the processing condition is that there is no omission, it is determined that there is no necessity for optimization, and the calculated length of the measuring tool is not optimized;
[0034] When the processing situation is that there is omission, it is determined that there is a necessity for optimization, and the gauge calculation length is optimized, and the gauge calculation length d is optimized to the maximum memory occupation length.
[0035] Furthermore, in step S7, when setting the processing calibration position of each module in each processing group, the content of the adjusted measuring tool identification module is used to set the processing calibration position of each module in the processing group in turn.
[0036] Further, in step S8, when the setting process of the processing calibration position of each module in each processing group is controlled according to the register state, the processing calibration position of each module in the first processing group and the second processing group is set in advance, the set processing calibration position of each module in the first processing group and the second processing group is transmitted to the device, and the register state is set according to the processing progress, wherein:
[0037] When the processing progress is to mark the first content of the Mth processing group, the value of register A in the register status is modified to M;
[0038] When the processing progress is to mark all the contents of the Mth processing group, the value of register B in the register status is modified to M;
[0039] When the value of register A is M in the register state, the control starts setting the processing calibration position of each module in the M+2 processing group, and obtains the set processing calibration position of each module in the M+2 processing group;
[0040] When the value of register B is M in the register state, the control transmits the set processing calibration positions of each module in the M+2th processing group to the device.
[0041] Further, in the step S9, when the moving distance of the mobile device is calculated in real time, the moving distance Dz of the mobile device is calculated according to the number of pulses P1 generated per revolution of the encoder, the diameter Db of the auxiliary wheel of the encoder, the number of pulses Nc output by the encoder and the starting offset K, and Dz=Nc×[(π×Db) / P1]+K is set;
[0042] In step S9, when the measuring tool is continuously processed, the continuous processing judgment is performed according to the moving distance Dz of the moving device and the processing calibration position BD of each module in each processing group, wherein:
[0043] When Dz≥K+BD, it is determined that the modules of the processing group corresponding to the module processing calibration position are continuously processed;
[0044] When Dz<K+BD, it is determined that the modules of the processing group corresponding to the module processing calibration position are not processed continuously.
[0045] Compared with the prior art, the beneficial effects of the present invention are that the method generates a gauge identification module according to user input in step S1 to enhance the flexibility of customization and the ability to meet user needs. The method performs consistency analysis with the actual gauge image and adjusts the gauge identification module in step S2 to ensure a high degree of consistency between the design and the actual product, thereby improving the accuracy of processing. The method optimizes the user input method based on the consistency rate in step S3 to enhance the usability of the user interface and improve the input efficiency. In step S4, the precise setting of the customized content ensures product personalization and market competitiveness. The method obtains the following information respectively in steps S5 and S6: The method accurately divides the processing groups by calculating the measuring tool identification length, systematizes the processing flow, and improves organization. The method sets the processing calibration position through step S7 to ensure precise alignment. The method controls the setting process of the processing calibration position of each module in each processing group according to the register state through step S8 to achieve control and adjustment of the processing process. The method calculates the moving distance in real time through step S9 to ensure the accuracy of the processing process and the stability of long-term operation, thereby effectively breaking through the measuring tool processing size limitation and realizing simple and efficient processing of complex measuring tools, so as to greatly improve production efficiency and product quality, thereby solving the size limitation and operation complexity problems in traditional methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 It is a schematic flow chart of the method for machining a measuring tool with continuous motion and no size restriction in this embodiment. DETAILED DESCRIPTION
[0047] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0048] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.
[0049] See also Figure 1 As shown, it is a schematic flow chart of the method for machining a measuring tool with continuous motion and no size restriction in this embodiment, and the method comprises:
[0050] Step S1, generating a measuring tool identification module according to user input;
[0051] Step S2, judging the consistency of the measuring tool identification module according to the actual measuring tool image, and adjusting the measuring tool identification module according to the consistency of the measuring tool identification module to obtain an adjusted measuring tool identification module;
[0052] Step S3, optimizing the user input method in step S1 according to the consistency rate of the measuring tool identification module;
[0053] Step S4, setting the content of the adjusted measuring tool identification module according to the customized content;
[0054] Step S5, obtaining the measuring tool identification length;
[0055] Step S6, setting the gauge calculation length, judging the necessity of optimization according to the processing situation, optimizing the gauge calculation length according to the necessity of optimization, dividing each processing group according to the gauge calculation length, and marking the start position and end position of each processing group;
[0056] Step S7, setting the processing calibration position of each module in each processing group according to the content of the adjusted measuring tool identification module;
[0057] Step S8, controlling the setting process of the processing calibration position of each module in each processing group according to the register state;
[0058] Step S9, calculating the moving distance of the moving device in real time according to the pulse information, and continuously processing the measuring tool according to the moving distance of the moving device and the processing calibration position of each module in each processing group.
[0059] Specifically, the method is applied to the field of high-end equipment combined processing and manufacturing technology, and is set in a measuring tool processing and manufacturing equipment management terminal. By intelligently managing the measuring tool processing and manufacturing equipment, it is possible to simply draw measuring tools of any length, and uninterruptedly process them while the linear moving device is in continuous motion. This solves the problem that the part exceeding the range cannot be identified due to the measuring tool size exceeding the processing length, and the measuring tool style is complex, resulting in a large workload and difficulty in reuse due to the need to draw the complete processing content separately. This breaks through the measuring tool processing size limitation, realizes simple processing of complex measuring tools, and improves the measuring tool processing and manufacturing efficiency. The method generates a measuring tool identification module according to user input through step S1 to enhance the flexibility of customization and the ability to meet user needs. The method ensures a high degree of consistency between the design and the actual product through consistency analysis with the actual measuring tool image and adjustment of the measuring tool identification module through step S2, thereby improving the accuracy of processing. The method optimizes the user input mode based on the consistency rate through step S3, enhances the usability of the user interface, and improves the input efficiency. In step S4, the precise setting of the customized content ensures the personalization and market competitiveness of the product. The method accurately divides the processing groups through steps S5 and S6 by obtaining and calculating the measuring tool identification length, systematizes the processing flow, and improves organization. The method sets the processing calibration position through step S7 to ensure precise alignment. The method controls the setting process of the processing calibration position of each module in each processing group according to the register state through step S8 to realize the control and adjustment of the processing process. The method calculates the moving distance in real time through step S9 to ensure the accuracy of the processing process and the stability of long-term operation, thereby effectively breaking through the processing size limitation of the measuring tool, realizing simple and efficient processing of complex measuring tools, so as to greatly improve production efficiency and product quality, thereby solving the size limitation and operation complexity problems in traditional methods.
[0060] Specifically, in step S1, when generating the measuring tool identification module, user input is obtained, and the measuring tool identification module is generated according to the content of the user input.
[0061] Specifically, the measuring tool identification module refers to a collection of identification contents that can be repeatedly drawn, which are classified by measuring tool identification type. The user input refers to the data input method with the measuring tool identification type as the content, which is input by the user in the measuring tool processing and manufacturing equipment management terminal. The content input by the user is consistent with the measuring tool identification type, which includes the scale line length, scale value size, scale value unit, measuring tool logo and measuring tool product name. This embodiment does not limit the content input by the user. Those skilled in the art can freely set it according to actual conditions, and only need to meet the demand for obtaining the content input by the user. For example, the content input by the user can be obtained through the API interface as the user input method. In this embodiment, when generating the measuring tool identification module, the measuring tool identification module is generated according to the content input by the user, such as:
[0062] When the content input by the user is a long line with a scale line length of 10 mm, a module A is generated, and the content of the module A is a long line with a mark of 10 mm;
[0063] When the content input by the user is a center line with a scale line length of 5 mm, a module B is generated, and the content of the module B is a center line with a mark of 5 mm;
[0064] When the content input by the user is 4 short lines with a scale line length of 1 mm, a module C is generated, and the content of the module C is 4 short lines with a scale line length of 1 mm;
[0065] When the content input by the user is a small scale value of 5 mm in height, a module D is generated, and the content of the module D is a small scale value of 5 mm in height;
[0066] When the content input by the user is a large scale value of 10 mm in height, a module E is generated, and the content of the module E is a large scale value of 10 mm in height;
[0067] When the content input by the user is a scale value in cm, a module F is generated, and the content of the module F is in cm.
[0068] Specifically, in step S2, when judging the consistency of the measuring tool identification module, an actual measuring tool picture is obtained by a camera set in the measuring tool processing and manufacturing equipment, and the actual measuring tool picture is input into the convolutional neural network model to obtain the output result of the convolutional neural network model, and the output result refers to the measuring tool identification type covered by the actual measuring tool picture, including the scale line length, scale value size, scale value unit, measuring tool logo and measuring tool product name, and the measuring tool identification module generated in step S1 is compared with the output result, and the consistency of the measuring tool identification module is judged according to the comparison result, wherein:
[0069] If the measuring tool identification module generated in step S1 covers the output result, it is determined that the measuring tool identification module is consistent;
[0070] If the measuring tool identification module generated in step S1 does not cover the output result, it is determined that there is no consistency in the measuring tool identification module, a supplementary measuring tool identification module is generated according to the measuring tool identification type that is not covered in the output result, the measuring tool identification module is adjusted according to the supplementary measuring tool identification module to obtain an adjusted measuring tool identification module, and the adjusted measuring tool identification module is set to include the measuring tool identification module generated in step S1 and the supplementary measuring tool identification module.
[0071] Specifically, this embodiment does not limit the location of the camera of the measuring tool processing and manufacturing equipment. Those skilled in the art can freely set it according to actual conditions, and only need to meet the collection requirements of the actual measuring tool picture. For example, the camera can be set on the finished product observation platform of the measuring tool processing and manufacturing equipment. The actual measuring tool picture refers to a picture taken of the finished product that has been actually processed and needs to be copied. The convolutional neural network model refers to a deep learning model that can output the measuring tool identification type covered by the actual measuring tool picture after inputting the actual measuring tool picture. This embodiment does not limit the construction method of the convolutional neural network model. Those skilled in the art can freely set it according to actual conditions, and only need to meet the recognition requirements of the actual measuring tool picture. For example, a data set of historical actual measuring tool pictures-gauge identification types covered by historical actual measuring tool pictures can be set as a model construction data set to construct the convolutional neural network model, and 70% of the model construction data set is randomly divided into a model training set, and 30% of the model construction data set is randomly divided into a model training set. The invention relates to a method for preparing a convolutional neural network model and a method for preparing a convolutional neural network model. The method comprises the steps of: dividing the convolutional neural network model into a model verification set, training the initialized convolutional neural network model according to the model training set, verifying the trained initialized convolutional neural network model according to the model verification set, and outputting the trained initialized convolutional neural network model with a verification accuracy of 98% as the convolutional neural network model. The present embodiment does not limit the structure of the initialized convolutional neural network model, and those skilled in the art can freely set it according to actual conditions, as long as the recognition requirements of the actual measuring tool picture are met. For example, the loss function of the initialized convolutional neural network model can be set to a cross entropy function. The output result covered by the measuring tool identification module generated in step S1 refers to the measuring tool identification type covered by the actual measuring tool picture is included by the measuring tool identification module generated in step S1, and the measuring tool identification module generated in step S1 has a measuring tool identification module that is consistent with the measuring tool identification type covered by the actual measuring tool picture, and the uncovered measuring tool identification type refers to the measuring tool identification type that is not consistent with the measuring tool identification module generated in step S1 among the measuring tool identification types covered by the actual measuring tool picture.
[0072] Specifically, in step S3, when optimizing the user input method in step S1, the gauge identification module consistency rate P is calculated according to the uncovered gauge identification type cumulative amount N1 and the gauge identification type cumulative amount N2 of the actual gauge picture, and P=1-N1 / N2 is set. The gauge identification module consistency rate P is compared with the preset gauge identification module consistency rate P0, and the optimization of the user input method is judged according to the comparison result, wherein:
[0073] When P≥P0, it is determined that the user input method is not optimized;
[0074] When P<P0, it is determined to optimize the user input method, and the most uncovered gauge identification types within the optimization time interval are used as recommended input options to optimize the user input method in step S1, and the optimized user input method is set to display the recommended input options when the user inputs at the terminal.
[0075] Specifically, the cumulative amount N1 of the uncovered measuring tool identification type refers to the total number of the measuring tool identification types that are not covered from the moment when the measuring tool processing and manufacturing equipment is put into use to the current moment, and the cumulative amount N2 of the measuring tool identification type of the actual measuring tool picture refers to the total number of the measuring tool identification types of the actual measuring tool picture from the moment when the measuring tool processing and manufacturing equipment is put into use to the current moment. This embodiment does not limit the acquisition method of the cumulative amount N1 of the uncovered measuring tool identification type and the cumulative amount N2 of the measuring tool identification type of the actual measuring tool picture. Those skilled in the art can freely set it according to the actual situation, and only need to meet the accurate acquisition requirements of the cumulative amount N1 of the uncovered measuring tool identification type and the cumulative amount N2 of the measuring tool identification type of the actual measuring tool picture, such as setting it to obtain the system log of the measuring tool processing and manufacturing equipment management terminal. Take the cumulative amount N1 of the uncovered gauge identification types and the cumulative amount N2 of the gauge identification types of the actual gauge image, the preset gauge identification module consistency rate P0 refers to the preset value of the gauge identification module consistency rate for judging the need to optimize the user input method, such as 80%, the optimization time interval refers to the time interval from the time point when the user input method was last optimized to the time point when the user input method is optimized this time, the most uncovered gauge identification types refers to the number of gauge identification types of the same type that are not covered within the optimization time interval, such as the gauge identification type of the scale line length that has the most uncovered gauge identification types within the optimization time interval, then the scale line length is used as the gauge identification type that is not covered the most, and the recommended input option refers to the gauge identification type that is displayed when the user inputs at the terminal to prompt the user to enter together.
[0076] Specifically, in step S4, when setting the content of the adjusted measuring tool identification module, the customized content input by the user corresponding to each of the adjusted measuring tool identification modules is obtained from the API interface of the measuring tool processing and manufacturing equipment management terminal, and the customized content includes the starting position, interval distance, increment and unmarked position of the adjusted measuring tool identification module on the measuring tool, and the content of the adjusted measuring tool identification module is set as the customized content.
[0077] Specifically, the starting position refers to the position where the measuring tool identification module starts to identify on the measuring tool after adjustment, the interval distance refers to the interval distance between each identification of the measuring tool identification module on the measuring tool after adjustment, and the increment refers to the change of the scale value. For example, the same type of scale lines at different setting positions in the entire measuring tool remain unchanged, but the content of the scale values at different setting positions will change, marked as 1, 2, 3... When the measuring tool needs to print the code, the increment refers to the change of the content, not the change of the identification position.
[0078] The non-marked position means that the adjusted measuring tool identification module does not mark a set of positions on the measuring tool. In this embodiment, for example:
[0079] The customized content input by the user for module A is the measuring tool starting position 0, the spacing distance 10, and the content of the module A is set to a 10 mm line, a measuring tool starting position 0, and a spacing distance 10;
[0080] The user inputs the customized content of module B as the measuring tool starting position 5 and the spacing distance 10, and sets the content of module B as 5 mm line, measuring tool starting position 5 and spacing distance 10;
[0081] The user inputs the customized content of module C as follows: the starting position of the gauge is 1, and the interval distance is 5. The content of module C is set to a 1 mm line, the starting position of the gauge is 1, and the interval distance is 5;
[0082] The customized content input by the user for module D is: measuring tool starting position 10, spacing distance 10, unmarked position 100, content starting 1, increment 1, and the content of module D is set to a scale value of 5 mm high, measuring tool starting position 10, spacing distance 10, unmarked position 100, content starting 1, increment 1;
[0083] The customized content input by the user for module E is: measuring tool starting position 100, interval distance 100, content starting 1, increment 1, and the content of module E is set to a scale value of 10 mm, measuring tool starting position 100, interval distance 100, content starting 1, increment 1;
[0084] The customized content input by the user for module F is the measuring tool starting position 3, and the content of the module F is set to the unit cm, measuring tool starting position 3.
[0085] Specifically, in step S5, the total length of the measuring tool input by the user in the API interface of the measuring tool processing and manufacturing equipment management terminal is obtained and used as the measuring tool identification length.
[0086] Specifically, the total length of the measuring tool refers to the total length value of the measuring tool that needs to be marked and input by the user, and the marking length of the measuring tool refers to the total length value of the measuring tool that needs to be marked.
[0087] Specifically, in step S6, when setting the measuring tool calculation length, the measuring tool calculation length d is set to the preset measuring tool calculation length d0, and in this embodiment, d0=10 cm;
[0088] The processing conditions are judged according to the processing parameters, including:
[0089] When VY≥VY0 and N≥N0, the processing is judged as missing;
[0090] When VY≥VY0 and N<N0, the processing situation is judged as omission;
[0091] When VY<VY0, and N≥N0, the processing situation is judged as omission;
[0092] When VY<VY0, and N<N0, it is determined that the processing situation does not have omissions;
[0093] VY is the moving speed, VY0 is the preset moving speed, N is the maximum value of the print content memory, and N0 is the preset print content memory;
[0094] The necessity of optimization is judged according to the processing conditions, and the calculated length of the measuring tool is optimized according to the necessity of optimization, wherein:
[0095] When the processing condition is that there is no omission, it is determined that there is no necessity for optimization, and the calculated length of the measuring tool is not optimized;
[0096] When the processing situation is that there is omission, it is determined that there is a necessity for optimization, and the gauge calculation length is optimized, and the gauge calculation length d is optimized to the maximum memory occupation length.
[0097] Specifically, the measuring tool calculation length refers to the unit length used to divide the processing group, the moving speed refers to the real-time moving speed during the measuring tool processing, the preset moving speed refers to the preset value of the moving speed indicating that the moving speed is too fast, such as it can be set to 3cm / s, the maximum value of the printed content memory refers to the printed content that occupies the largest memory during the measuring tool processing, the printed content refers to the identification content printed on the measuring tool, including filled content and non-filled content, the preset printed content memory refers to the content preset value indicating that there is a large printed content during the measuring tool processing, and the maximum memory occupancy length refers to selecting the most time-consuming content (usually a logo, because long text can be split into individual characters), printing it on a mobile device, and measuring the distance the mobile device moves from the beginning to the end of printing.
[0098] Specifically, in step S6, when dividing each processing group, the measuring tool identification length is divided according to the measuring tool calculation length to obtain each processing group.
[0099] Specifically, in this embodiment, if the calculated length of the measuring tool is 20cm and the measuring tool marking length is 98cm, the measuring tool marking length is divided into 5 processing groups, wherein the first processing group is 0cm-20cm, including 0cm but excluding 20cm, the second processing group is 20cm-40cm, including 20cm but excluding 40cm, the third processing group is 40cm-60cm, including 40cm but excluding 60cm, the fourth processing group is 60cm-80cm, including 60cm but excluding 80cm, and the fifth processing group is 80cm-98cm, including 80cm and 98cm.
[0100] Specifically, in step S6, the start position and the end position of each processing group are marked according to the gauge calculation length and the gauge identification length.
[0101] Specifically, in this embodiment, if the calculated length of the measuring tool is 20cm and the marked length of the measuring tool is 98cm, the starting position of the first processing group is marked as 0cm, and the ending position of the first processing group is 20cm, excluding this number; the starting position of the second processing group is 20cm, and the ending position of the second processing group is 40cm, excluding this number; the starting position of the third processing group is 40cm, and the ending position of the third processing group is 60cm, excluding this number; the starting position of the fourth processing group is 60cm, and the ending position of the fourth processing group is 80cm, excluding this number; the starting position of the fifth processing group is 80cm, and the ending position of the fifth processing group is 98cm, including this number.
[0102] Specifically, in step S7, when setting the processing calibration position of each module in each processing group, the content of the adjusted measuring tool identification module is used to set the processing calibration position of each module in the processing group in turn.
[0103] Specifically, the processing calibration position of each module refers to the mark position on the measuring tool for processing the content of each module. In this embodiment, when setting the processing calibration position of each module in each processing group, take the first processing group 0cm-20cm, excluding 20cm, as an example, where:
[0104] The current starting position of module A is 0, which is within the range of 0cm-20cm, so the processing calibration position of module A is set at position 0; the interval distance is 10, so the starting position of the next group is 10, which is still within the range of 0cm-20cm, so the processing calibration position of module A is set again at position 10; the starting position of the next group is 20, which is not within the range of 0cm-20cm, and the processing calibration position of module A is set to an end;
[0105] The current starting position of module B is 5, which is within the range of 0cm-20cm, so the processing calibration position of module B is set at position 5; the interval distance is 10, and the starting position of the next group is 15, which is still within the range of 0cm-20cm, so the processing calibration position of module B is set at position 15; the starting position of the next group is 25, which is not within the range of 0cm-20cm, and the processing calibration position of module B is set to an end;
[0106] The current starting position of module C is 1, which is within the range of 0cm-20cm, so the processing calibration position of module C is set at position 1; the interval distance is 5, so the starting position of the next group is 6, which is still within the range of 0cm-20cm, so the processing calibration position of module C is set again at position 6; ... Finally, the processing calibration position of module C is set at positions 1, 6, 11 and 16; the next group of starting positions of module C is 21;
[0107] The current starting position of module D is 10, which is within the range of 0cm-20cm, so the processing calibration position of module D is set at position 10, with content 1; the interval distance is 10, and the increment is 1, so the starting position of the next group is 20, with content 2. The position is not within the range of 0cm-20cm, and the processing calibration position of module D is set to an end;
[0108] The current starting position of module E is 100, which is not within the range of 0cm-20cm, so the processing calibration position of module E is set to end;
[0109] The current starting position of module F is 3, which is within the range of 0cm-20cm, so the processing calibration position of module F is set at position 3, without any interval distance, and the processing calibration position of module F is directly ended;
[0110] The processing sequence is as follows: first, module A at position 0; second, module C at position 1; third, module F at position 3; fourth, module B at position 5; fifth, module C at position 6; sixth, module A at position 10; seventh, module D at position 10; eighth, module C at position 11; ninth, module B at position 15; and tenth, module C at position 16.
[0111] Specifically, in step S8, when the setting process of the processing calibration position of each module in each processing group is controlled according to the register state, the processing calibration position of each module in the first processing group and the second processing group is set in advance, the set processing calibration position of each module in the first processing group and the second processing group is transmitted to the device, and the register state is set according to the processing progress, wherein:
[0112] When the processing progress is to mark the first content of the Mth processing group, the value of register A in the register status is modified to M;
[0113] When the processing progress is to mark all the contents of the Mth processing group, the value of register B in the register status is modified to M;
[0114] When the value of register A is M in the register state, the control starts setting the processing calibration position of each module in the M+2 processing group, and obtains the set processing calibration position of each module in the M+2 processing group;
[0115] When the value of register B is M in the register state, the control transmits the set processing calibration positions of each module in the M+2th processing group to the device.
[0116] Specifically, the register state refers to the distribution state of the values of each register that change in real time. The first content of the Mth processing group refers to the content that is calculated and ranked first in each processing group. Taking the first processing group 0cm-20cm as an example, position 0 module A is the first content of the first processing group. The entire content of the Mth processing group refers to all the setting contents of each processing group. Taking the first processing group 0cm-20cm as an example, position 0 module A, position 1 module C, position 3 module F, position 5 module B, position 6 module C, position 10 module A, position 10 module D, position 11 module C, position 15 module B, and position 16 module C are the entire contents of the first processing group. The equipment refers to a manufacturing device that processes measuring tool markings.
[0117] Specifically, in step S9, when the moving distance of the mobile device is calculated in real time, the moving distance Dz of the mobile device is calculated according to the number of pulses P1 generated per revolution of the encoder, the diameter Db of the auxiliary wheel of the encoder, the number of pulses Nc output by the encoder, and the starting offset K, and Dz=Nc×[(π×Db) / P1]+K is set;
[0118] In step S9, when the measuring tool is continuously processed, the continuous processing judgment is performed according to the moving distance Dz of the moving device and the processing calibration position BD of each module in each processing group, wherein:
[0119] When Dz≥K+BD, it is determined that the modules of the processing group corresponding to the module processing calibration position are continuously processed;
[0120] When Dz<K+BD, it is determined that the modules of the processing group corresponding to the module processing calibration position are not processed continuously.
[0121] Specifically, the number of pulses P1 generated per revolution of the encoder refers to the total number of electrical signals (pulses) generated by the internal mechanism of the encoder when the encoder main shaft rotates one circle. It is an inherent property of the encoder and is usually provided by the manufacturer of the encoder. The diameter Db of the auxiliary wheel of the encoder refers to the diameter of the auxiliary wheel (or measuring wheel, roller, etc.) connected to the encoder main shaft. It is connected to the mobile device. When the mobile device moves, the auxiliary wheel also rotates, thereby driving the encoder main shaft to rotate. The number of pulses Nc output by the encoder refers to the total number of electrical signals (pulses) output by the encoder when the mobile device moves a certain distance. It is the encoder's response to the mobile device. The quantitative representation of the moving distance of the device can be read through the interface between the encoder and the control system (such as a digital input / output port, a communication bus, etc.). The starting offset K refers to the correction amount that needs to be introduced due to a certain difference between the position of the IO sensor trigger point and the position of the printing gauge scale value 0, which is used to ensure that the mobile device can accurately move from the desired starting point when receiving the IO sensor signal. The starting offset K can be determined through experiments or calibration processes. The moving distance Dz of the mobile device refers to the distance actually moved by the mobile device after receiving the control signal. The continuous processing refers to non-stop processing by the equipment.
[0122] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.
Claims
1. A method for machining a measuring tool with continuous motion and no size restriction, characterized in that: include: Step S1, generating a measuring tool identification module according to user input; Step S2, judging the consistency of the measuring tool identification module according to the actual measuring tool image, and adjusting the measuring tool identification module according to the consistency of the measuring tool identification module to obtain an adjusted measuring tool identification module; Step S3, optimizing the user input method in step S1 according to the consistency rate of the measuring tool identification module; Step S4, setting the content of the adjusted measuring tool identification module according to the customized content; Step S5, obtaining the measuring tool identification length; Step S6, setting the gauge calculation length, judging the necessity of optimization according to the processing situation, optimizing the gauge calculation length according to the necessity of optimization, dividing each processing group according to the gauge calculation length, and marking the start position and end position of each processing group; Step S7, setting the processing calibration position of each module in each processing group according to the content of the adjusted measuring tool identification module; Step S8, controlling the setting process of the processing calibration position of each module in each processing group according to the register state; Step S9, calculating the moving distance of the moving device in real time according to the pulse information, and continuously processing the measuring tool according to the moving distance of the moving device and the processing calibration position of each module in each processing group; In the step S2, when judging the consistency of the measuring tool identification module, an actual measuring tool picture is obtained by a camera set in the measuring tool processing and manufacturing equipment, and the actual measuring tool picture is input into the convolutional neural network model to obtain the output result of the convolutional neural network model, and the output result refers to the measuring tool identification type covered by the actual measuring tool picture, including the scale line length, scale value size, scale value unit, measuring tool logo and measuring tool product name, and the measuring tool identification module generated in the step S1 is compared with the output result, and the consistency of the measuring tool identification module is judged according to the comparison result, wherein: If the measuring tool identification module generated in step S1 covers the output result, it is determined that the measuring tool identification module is consistent; If the gauge identification module generated in step S1 does not cover the output result, it is determined that there is no consistency in the gauge identification module, a supplementary gauge identification module is generated according to the gauge identification type not covered in the output result, the gauge identification module is adjusted according to the supplementary gauge identification module to obtain an adjusted gauge identification module, and the adjusted gauge identification module is set to include the gauge identification module generated in step S1 and the supplementary gauge identification module; In the step S3, when optimizing the user input method in the step S1, the gauge identification module consistency rate P is calculated according to the uncovered gauge identification type cumulative amount N1 and the gauge identification type cumulative amount N2 of the actual gauge picture, and P=1-N1 / N2 is set. The gauge identification module consistency rate P is compared with the preset gauge identification module consistency rate P0, and the optimization of the user input method is judged according to the comparison result, wherein: When P≥P0, it is determined that the user input method is not optimized; When P<P0, it is determined that the user input method is optimized, and the most uncovered gauge identification types within the optimization time interval are used as recommended input options to optimize the user input method in step S1, and the optimized user input method is set to display the recommended input options when the user inputs at the terminal; In the step S4, when setting the content of the adjusted gauge identification module, the customized content input by the user corresponding to each of the adjusted gauge identification modules is obtained from the API interface of the gauge processing and manufacturing equipment management terminal, and the customized content includes the starting position, interval distance, increment and unmarked position of the adjusted gauge identification module on the gauge, and the content of the adjusted gauge identification module is set as the customized content; In the step S5, the total length of the measuring tool input by the user in the API interface of the measuring tool manufacturing equipment management terminal is obtained and used as the measuring tool identification length; In the step S6, when setting the gauge calculation length, the gauge calculation length d is set to the preset gauge calculation length d0; The processing conditions are judged according to the processing parameters, including: When VY≥VY0 and N≥N0, the processing is judged as missing; When VY≥VY0 and N<N0, the processing situation is judged as omission; When VY<VY0, and N≥N0, the processing situation is judged as omission; When VY<VY0, and N<N0, it is determined that the processing situation does not have omissions; VY is the moving speed, VY0 is the preset moving speed, N is the maximum value of the print content memory, and N0 is the preset print content memory; The necessity of optimization is judged according to the processing conditions, and the calculated length of the measuring tool is optimized according to the necessity of optimization, wherein: When the processing condition is that there is no omission, it is determined that there is no necessity for optimization, and the calculated length of the measuring tool is not optimized; When the processing situation is that there is omission, it is determined that there is a necessity for optimization, and the gauge calculation length is optimized, and the gauge calculation length d is optimized to the maximum memory occupation length.
2. The continuous motion measuring tool processing method with no size restriction according to claim 1 is characterized in that: In the step S1, when generating the measuring tool identification module, user input is obtained, and the measuring tool identification module is generated according to the content of the user input.
3. The continuous motion measuring tool processing method with no size restriction according to claim 2 is characterized in that: In step S7, when setting the processing calibration position of each module in each processing group, the processing calibration position of each module in the processing group is set in sequence according to the content of the adjusted measuring tool identification module.
4. The continuous motion and unrestricted size measuring tool processing method according to claim 3 is characterized in that: In step S8, when the setting process of the processing calibration position of each module in each processing group is controlled according to the register state, the processing calibration position of each module in the first processing group and the second processing group is set in advance, the set processing calibration position of each module in the first processing group and the second processing group is transmitted to the device, and the register state is set according to the processing progress, wherein: When the processing progress is to mark the first content of the Mth processing group, the value of register A in the register status is modified to M; When the processing progress is to mark all the contents of the Mth processing group, the value of register B in the register status is modified to M; When the value of register A is M in the register state, the control starts setting the processing calibration position of each module in the M+2 processing group, and obtains the set processing calibration position of each module in the M+2 processing group; When the value of register B is M in the register state, the control transmits the set processing calibration positions of each module in the M+2th processing group to the device.
5. The continuous motion and unrestricted size measuring tool processing method according to claim 1, characterized in that: In the step S9, when the moving distance of the mobile device is calculated in real time, the moving distance Dz of the mobile device is calculated according to the number of pulses P1 generated per revolution of the encoder, the diameter Db of the auxiliary wheel of the encoder, the number of pulses Nc output by the encoder and the starting offset K, and Dz=Nc×[(π×Db) / P1]+K is set; In step S9, when the measuring tool is continuously processed, the continuous processing judgment is performed according to the moving distance Dz of the moving device and the processing calibration position BD of each module in each processing group, wherein: When Dz≥K+BD, it is determined that the modules of the processing group corresponding to the module processing calibration position are continuously processed; When Dz<K+BD, it is determined that the modules of the processing group corresponding to the module processing calibration position are not processed continuously.
Citation Information
Patent Citations
A method for processing profile template gauges
CN108581377B
A method for manufacturing a radiation detection measuring instrument
CN108620821B
Laser processing method, control device, control equipment and storage medium
CN116275553A
Metering length measurement control method
CN117348542A