Vertical numerical control machine tool program adjusting system based on digital twinning
Through digital twin technology, combined with abnormal feature collection and associated weight allocation, a detection sequence is formulated, which solves the problem of increased detection time caused by irregular detection in vertical CNC machine tools and improves repair efficiency.
Patent Information
- Application Number
- CN202511296658.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-11
- Publication Date
- 2025-10-17
AI Technical Summary
In vertical CNC machine tools, the existing technology of irregular control code detection will increase the detection time and affect the subsequent repair efficiency.
Through the vertical CNC machine tool program adjustment system based on digital twins, using the abnormal feature acquisition module, associated control code matching module, digital twin platform, associated control code positioning module, associated weight allocation module and detection sequence division module, the associated weights of each simulation code to be tested are allocated, the detection sequence is formulated, and targeted associated control code detection is carried out to avoid the influence of irrelevant codes.
It realizes the planning of the repair sequence of regular association control code, improves the detection efficiency, reduces the impact of detection of irrelevant code, and improves the efficiency of subsequent repair.
Smart Images

Figure CN120802844A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of numerical control program adjustment, in particular to a vertical numerical control machine tool program adjustment system based on digital twinning. BACKGROUND
[0002] In modern manufacturing, numerical control technology precisely controls machining processes through digital signals, becoming the core of efficient and high-precision production. The core of numerical control machine tools (such as vertical lathes) lies in their control systems, which consist of numerical control programs and execution mechanisms. Numerical control programs are written in programming languages (such as G code or ISO standard code) to guide machine tools to complete complex machining actions, such as turning, drilling, or milling. These programs convert design drawings into executable instruction sequences for machine tools, enabling automated processing. For vertical numerical control machine tools, their vertical axis structure is particularly suitable for processing heavy or large workpieces, but this also increases the complexity of the control system, requiring programming code to coordinate motion axes, spindle speeds, and tool paths to ensure precision and efficiency.
[0003] The role of programming code in numerical control machine tool control mainly reflects two levels: one is the numerical control programming level, and the other is the bottom logic control level. At the numerical control programming level, engineers use high-level languages to write programs and define machining parameters. At the bottom logic control level, programmable logic controller (PLC) code handles the electrical and logical operations of the machine tool, such as sensor input, motor drive, and safety interlocking.
[0004] During the actual control of vertical numerical control machine tools using programming code, due to the need to adapt to different types of processing, the corresponding control code will also differ, at which point manual input or code updates in advance are required. Code entry not only causes code confusion and control abnormalities, but also changes the original code location, causing errors in the original code and control abnormalities. Therefore, when a vertical numerical control machine tool control abnormality occurs, such as insufficient spindle movement distance, control code detection is required. However, there are multiple sets of control code for the same behavior, and irregular control code detection will increase detection time and affect subsequent repair efficiency.
[0005] To address the above problems, there is an urgent need for a vertical numerical control machine tool program adjustment system based on digital twinning with control code detection order planning. SUMMARY
[0006] The purpose of the present application is to provide a vertical numerical control machine tool program adjustment system based on digital twinning, which assigns the correlation weight of each item of analog code to be tested by combining the type of analog code to be tested and historical adjustment control information through the correlation weight distribution module, and formulates the corresponding detection order in combination with the detection order division module and the correlation weight of the analog code to be tested, makes a probability prediction of the multiple correlation control codes that cause abnormal characteristics, determines the next maintenance order through the triggering probability, realizes the regularity of correlation control code maintenance order planning, and carries out targeted correlation control code detection work to solve the problems raised in the above background art, that is:
[0007] Irregular control code detection will increase the detection time and affect the subsequent repair efficiency.
[0008] To achieve the above purpose, a vertical numerical control machine tool program adjustment system based on digital twinning is provided, which comprises an abnormal characteristic acquisition module, a correlation control code matching module, a digital twinning platform, a correlation control code positioning module, a correlation weight distribution module and a detection order division module.
[0009] In order to timely feedback the running state of the vertical numerical control machine tool, the abnormal characteristic acquisition module is used to respond to the abnormal adjustment of the vertical numerical control machine tool, collect the abnormal characteristics under abnormal state, and cooperate with the correlation control code matching module to match the correlation control code that causes the abnormal adjustment of the vertical numerical control machine tool in combination with the abnormal characteristics and historical adjustment control information, respond to the code of abnormal characteristics, and match the correlation control code that causes the abnormal adjustment of the vertical numerical control machine tool, including updating code, manually entered code and original code.
[0010] Further, in order to facilitate subsequent code positioning and identification, the digital twinning platform is used to collect the control code in the program adjustment of the vertical numerical control machine tool, simulate the code control state and code update change, and cooperate with the correlation control code positioning module to locate the control section of the correlation control code in combination with the code control state, and call the analog code in the control section as the analog code to be tested as the basis for subsequent response to abnormal characteristics.
[0011] When abnormal characteristics occur, in order to improve detection efficiency and avoid blind detection, the correlation weight distribution module is used to distribute the correlation weight of each item of analog code to be tested in combination with the type of analog code to be tested and historical adjustment control information.
[0012] First, the initial weight score of each correlation control code is planned = ;
[0013] And mark the parameter change point in each correlation control code , plan the initial scalar of each code type , wherein the initial scalar of the update code and the original code are respectively marked as and , the initial scalar of manually entering the code ;
[0014] Finally, the correlation weight of the current to-be-tested simulation code is calculated The detection order is formulated in combination with the correlation weight of the to-be-tested simulation code by the detection order division module.
[0015] Compared with the prior art, the beneficial effects of the present application are:
[0016] In the vertical numerical control machine tool program adjustment system based on digital twinning, the correlation weight of each to-be-tested simulation code is allocated in combination with the type of the to-be-tested simulation code and historical adjustment control information by the correlation weight allocation module, the detection order is formulated in combination with the correlation weight of the to-be-tested simulation code by the detection order division module, the multiple correlation control codes causing abnormal features are probabilistically predicted, the next maintenance order is divided by the triggering probability, the regular correlation control code maintenance order planning is realized, the correlation control code detection work is carried out in a targeted manner, the influence of irrelevant control codes on the detection process is avoided, and the subsequent maintenance efficiency is improved. BRIEF DESCRIPTION OF DRAWINGS
[0017] Figure 1 It is the overall system structure diagram of the present application.
[0018] The meanings of the various labels in the figure are:
[0019] 10, abnormal feature acquisition module;
[0020] 20, correlation control code matching module;
[0021] 30, digital twinning platform;
[0022] 40, correlation control code positioning module;
[0023] 50, correlation weight allocation module;
[0024] 60, detection order division module. DETAILED DESCRIPTION
[0025] The technical solutions in the embodiments of the present application will be described clearly and completely below in combination with the drawings in the present application. Obviously, the described embodiments are only some of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.
[0026] Please refer to Figure 1As shown, a digital-twin-based vertical numerical control machine tool program adjustment system is provided, including an abnormal feature acquisition module 10, a related control code matching module 20, a digital twin platform 30, a related control code positioning module 40, a related weight distribution module 50, and a detection order division module 60.
[0027] The abnormal feature acquisition module 10 is configured to acquire abnormal features in an abnormal state in response to an abnormal adjustment of the vertical numerical control machine tool.
[0028] The related control code matching module 20 matches the related control code causing the abnormal adjustment of the vertical numerical control machine tool in combination with the abnormal features and historical adjustment control information.
[0029] The digital twin platform 30 is configured to acquire control codes in the program adjustment of the vertical numerical control machine tool, simulate code control states, and update changes in the codes.
[0030] The related control code positioning module 40 positions the control section of the related control code in combination with the code control states, and calls the simulation codes in the control section as the to-be-tested simulation codes.
[0031] The related weight distribution module 50 distributes the related weights of the to-be-tested simulation codes in combination with the types of the to-be-tested simulation codes and the historical adjustment control information.
[0032] The detection order division module 60 formulates the corresponding detection order in combination with the related weights of the to-be-tested simulation codes.
[0033] On the basis of the above, the specific content is as follows:
[0034] First, in order to timely feedback the running state of the vertical numerical control machine tool, the abnormal feature acquisition module 10 is used to acquire abnormal features in an abnormal state in response to an abnormal adjustment of the vertical numerical control machine tool, such as geometric path deviation (error between actual trajectory and theoretical path) and speed abnormality (feed speed fluctuation exceeding the set value). During the acquisition process, the vertical numerical control machine tool control monitoring device is configured, such as a mechanical sensor, a monitoring camera, and a laser ranging probe, etc. The monitoring device is used to acquire and feedback in real time, and the historical monitoring data is combined to obtain the theoretical state in each monitoring time period, such as the position parameter of the running trajectory of the main shaft in different running states, i.e. distance. If there is a difference between the displayed position parameter and the theoretical parameter at this time, the current state is in an abnormal state, and the corresponding parameter difference is the abnormal feature. Each theoretical state is stored to establish a theoretical state database, and adaptive comparison is performed during the monitoring process to identify the abnormal features.
[0035] Since the program control of the vertical numerical control machine tool is regulated by the code, when the abnormal feature appears, it indicates that the code currently controlling the feature is abnormal, and different abnormal features may be caused by different code abnormalities. In order to reduce the subsequent code positioning work, it is necessary to cooperate with the associated control code matching module 20 to combine the abnormal features and the historical adjustment control information, that is, in the historical monitoring process, the code responding to the abnormal feature is matched to find the associated control code causing the adjustment abnormality of the vertical numerical control machine tool. The types of associated control codes in the scheme include update code, manual input code and original code.
[0036] The update code is a new code or a changed code generated after the program of the vertical numerical control machine tool is updated, for example, version update.
[0037] The manual input code is a code manually input by the vertical numerical control machine tool in different use scenarios, for example, the code adjusted due to the change of the thickness, length or shape of the workpiece to be machined.
[0038] The original code is the inherent code for controlling the corresponding action of the vertical numerical control machine tool. These inherent codes may be disordered due to code update and code input, for example, the position of the input new code is wrong and inserted into the middle position of the inherent code.
[0039] Further, in order to facilitate subsequent code positioning and identification, during the associated control code matching process, since the control of most vertical numerical control machine tools is regulated by a single or multiple specific codes, for example, spindle overheating (> 80℃), the corresponding code segment is: if (S > 5000) and (coolant_flow < 5L / min): return "insufficient cooling"; the corresponding code segment of tool change timeout is: if tool_weight > max_capacity: return "tool overweight"; the corresponding code segment of position mutation is: if homing_speed > 10000 mm / min: return "high zero return speed", according to the historical repair adjustment information, the code segment for targeted repair adjustment for the same abnormal feature in the monitoring period is obtained, and the corresponding associated frequency is calculated, wherein the associated frequency = the number of times of repair of the current code segment / the total number of times of occurrence of the abnormal feature, finally the associated frequency threshold is set, the code segment with the associated frequency exceeding the associated frequency threshold is marked as the associated control code, and the associated control code corresponding to the same abnormal feature is counted.
[0040] Further, the digital twin platform 30 is used to collect the control codes in the program adjustment of the vertical CNC machine tool, simulate the code control state and code update change, simulate the code change after each update or manual input, as the basis for subsequent identification and comparison. Since the subtle changes in the code sometimes do not affect the actual adjustment, only subsequent maintenance and code adjustment can determine whether the current code change is the key factor causing the abnormal characteristics. In most cases, after the abnormal characteristics appear, the corresponding multiple associated control codes will change after being updated or manually input (adjustments made to adapt to the workpiece type). How to identify the key associated control code causing the abnormal characteristics in a short time becomes a problem to be solved. Therefore, the present scheme uses the associated control code positioning module 40 in combination with the code control state to locate the control section of the associated control code and call the simulation code in the control section as the test simulation code. The specific steps are as follows:
[0041] First, the running steps of the current abnormal characteristics are obtained, the control codes of the current running steps are located, and each control code is sequentially marked according to the starting order. For example, during the workpiece drilling process, the first step needs to control the fixture to fix the workpiece, the second step controls the drill bit position to align the workpiece punching area, and the third step starts the vertical shaft to control the drill bit and cooperates with the servo motor to drill the workpiece. Each running step corresponds to a matched control code. For the control code of a running step, it includes a fixed code control section and a variable code control section such as parameter adjustment. For the fixed code control section, since the input characters are consistent each time, the probability of input error will be higher than that of the variable code control section. The digital twin platform 30 simulates the control code to generate the corresponding simulation code, and according to the simulation code type and the running step, each simulation code is sequentially marked. In combination with the current abnormal characteristics, the corresponding associated control code position is responded by the sequential marking, the control section of the associated control code (fixed code control section and variable code control section) is located, and the simulation code in the control section is called by the digital twin platform 30 as the test simulation code.
[0042] After completing the positioning of the associated control code, in order to improve the detection efficiency and avoid blind detection, the associated weight distribution module 50 is used to distribute the associated weights of each test simulation code in combination with the type of the test simulation code and the historical adjustment control information. The specific distribution steps are as follows:
[0043] First, the initial weight score of each associated control code is planned in combination with the associated frequency of the associated control code The specific calculation formula is as follows:
[0044] ;
[0045] wherein is the associated frequency, is the initial weight coefficient;
[0046] Subsequently, the parameter change points in each associated control code are marked , i.e. the positions where the character changes in the change code control section, and the positions are marked as parameter change points , the initial scalar of each to-be-tested simulation code is divided according to the code type (i.e. the update code, the manually-entered code and the original code) , wherein the initial scalar of the update code and the original code is a fixed value, and is marked as and respectively, and the initial scalar of the manually-entered code , wherein is the number of parameter change points , and is the unit scalar, and finally the associated weight of the current to-be-tested simulation code is calculated , and the calculation formula is as follows:
[0047] ;
[0048] wherein is the total number of update code sections existing in the current to-be-tested simulation code, is the total number of original code sections existing in the current to-be-tested simulation code, is the total number of manually-entered code sections existing in the current to-be-tested simulation code,
[0049] It is worth noting that the to-be-tested simulation code can be composed of a single control section or composed of multiple control sections of different types. For the single control section, the code type of the single control section is obtained, and the corresponding associated weight is the product of the initial scalar corresponding to the current code type and the initial weight fraction of the corresponding associated control code , for example, when the to-be-tested simulation code is a single manually-entered code, the corresponding associated weight = , and for the multiple control sections of different types, for example, when the to-be-tested simulation code is composed of update code sections and original code sections, the corresponding associated weight = .
[0050] After the association weight distribution is completed, the detection order is formulated according to the association weight of the to-be-detected simulation code in cooperation with the detection order division module 60, that is, the association weight of each to-be-detected simulation code is selected, the association weight is compared, the to-be-detected simulation code is divided according to the comparison result, and the maintenance sequence is taken as the detection order. In order to further improve the detection accuracy, the association weight of the control section of each to-be-detected simulation code is calculated, the calculation method is consistent with the to-be-detected simulation code, the detection order is divided again according to the association weight of the control section, the maintenance sequence of each control section is divided according to the detection order, and the detection range is further reduced.
[0051] The application assigns the association weight of each to-be-detected simulation code by combining the type of the to-be-detected simulation code and the historical adjustment control information through the association weight distribution module 50, formulates the corresponding detection order according to the association weight of the to-be-detected simulation code in cooperation with the detection order division module 60, makes a probability prediction on the multiple association control codes that cause abnormal characteristics, divides the next maintenance sequence through the triggering probability, realizes the regularity association control code maintenance sequence planning, carries out the association control code detection work in a targeted manner, avoids the influence of irrelevant control codes on the detection process, and improves the subsequent maintenance efficiency.
[0052] The basic principles, main features and advantages of the application are shown and described above. It should be understood by those skilled in the art that the application is not limited by the above examples, the above examples and descriptions in the specification are only preferred examples of the application, and are not used to limit the application, various changes and improvements of the application can be made without departing from the spirit and scope of the application, and these changes and improvements all fall within the scope of the claimed application. The scope of protection of the application is defined by the appended claims and their equivalents.
Claims
1. A vertical CNC machine tool program adjustment system based on digital twins, characterized by: It includes an abnormal feature acquisition module (10), an associated control code matching module (20), a digital twin platform (30), an associated control code positioning module (40), an associated weight allocation module (50), and a detection sequence division module (60); The abnormal feature acquisition module (10) is used to respond to abnormal adjustment of the vertical CNC machine tool and acquire abnormal features under the abnormal state; The associated control code matching module (20) combines the abnormal characteristics and historical adjustment control information to match the associated control code that causes the abnormal adjustment of the vertical CNC machine tool; The digital twin platform (30) is used to collect control codes in vertical CNC machine tool program adjustment, simulate code control status and code update changes; The associated control code positioning module (40) locates the control section of the associated control code in combination with the code control state, and retrieves the simulation code in the control section as the simulation code to be tested; The association weight allocation module (50) allocates association weights to various types of simulation codes to be tested in combination with the types of simulation codes to be tested and historical adjustment control information; The detection order division module (60) formulates the corresponding detection order in combination with the association weight of the simulation code to be tested.
2. The vertical CNC machine tool program adjustment system based on digital twin according to claim 1 is characterized in that: The method for collecting abnormal features under abnormal conditions in the abnormal feature collection module (10) comprises the following steps: S101, configure vertical CNC machine tool control and monitoring equipment; S102, using monitoring equipment to collect data in real time and provide status feedback; S103. Combining historical monitoring data, obtaining theoretical states in each monitoring time period; S104. Store various theoretical states to establish a theoretical state database, perform adaptive comparison during the monitoring process, and identify abnormal characteristics.
3. The vertical CNC machine tool program adjustment system based on digital twin according to claim 1 is characterized in that: The types of associated control codes in the associated control code matching module (20) include updated codes, manually entered codes, and original codes; The updated code is a new code or a changed code generated after the vertical CNC machine tool program is updated; Manual entry codes are codes that are manually entered in different usage scenarios of vertical CNC machine tools; The original code is the inherent code that controls the corresponding actions of the vertical CNC machine tool.
4. The vertical CNC machine tool program adjustment system based on digital twin according to claim 3 is characterized in that: The method for performing association control code matching in the association control code matching module (20) comprises the following steps: S201. Obtain, based on historical maintenance and adjustment information, code segments that have been repaired and adjusted for the same abnormal characteristics within a monitoring period; S202. Calculate the corresponding correlation frequency, where correlation frequency = number of repairs of the current code segment / total number of occurrences of abnormal features; S203: Establish a correlation frequency threshold, mark the code segments whose correlation frequency exceeds the correlation frequency threshold as correlation control codes, and count the correlation control codes corresponding to the same abnormal features.
5. The vertical CNC machine tool program adjustment system based on digital twin according to claim 1 is characterized in that: The method for locating the control section of the associated control code in the associated control code locating module (40) comprises the following steps: S401, obtain the running steps of the current abnormal characteristics, locate the control code for regulating the current running steps, and start them according to the starting sequence; S402, simulating the control code through the digital twin platform (30), generating corresponding simulation codes, and marking the sequence of each simulation code according to the simulation code type and operation steps; S403. Based on the current abnormality characteristics, locate the control section of the associated control code by responding to the corresponding associated control code position through the sequence mark; S404, cooperate with the digital twin platform (30) to retrieve the simulation code in the control section as the simulation code to be tested.
6. The vertical CNC machine tool program adjustment system based on digital twin according to claim 5 is characterized in that: The control section in S403 includes a fixed code control section and a variable code control section.
7. The vertical CNC machine tool program adjustment system based on digital twin according to claim 1 is characterized in that: The method for allocating the association weights of each simulated code to be tested in the association weight allocation module (50) comprises the following steps: S501. Plan the initial weight score of each associated control code based on the associated frequency of the associated control code. ; S502: Mark parameter change points in each associated control code ; S503: Divide the initial scalars of each simulated code to be tested according to the code type ; The updated code and the original code have initial scalars are fixed values, marked as as well as , manually enter the initial scalar code ,in is the parameter change point the number of is a unit scalar; S504: Calculate the correlation weight of the current simulation code to be tested .
8. The vertical CNC machine tool program adjustment system based on digital twin according to claim 7 is characterized in that: The initial weight score in S501 The calculation formula is as follows: ; in is the correlation frequency, is the initial weight coefficient.
9. The vertical CNC machine tool program adjustment system based on digital twin according to claim 7, characterized in that: The association weight in S504 The calculation formula is as follows: ; in is the total number of update code sections in the current simulation code to be tested, is the total number of original code segments in the current simulation code to be tested, The total number of manually entered code segments in the current simulation code to be tested.
10. The vertical CNC machine tool program adjustment system based on digital twin according to claim 1, characterized in that: The method for formulating the corresponding detection sequence in the detection sequence division module (60) comprises the following steps: S601, selecting the correlation weights of each simulation code to be tested and comparing the correlation weights; S602: Sequence the various simulation codes to be tested according to the comparison results as a maintenance order; S603: Calculate the associated weights of the control sections for each simulation code to be tested, perform secondary division of the detection sequence according to the associated weights of the control sections, and divide the inspection order of each control section according to the detection sequence.
Citation Information
Patent Citations
Code type identification method and device used for numerical control machine
CN101661278A
System and method for generating diagnostic program for vehicle fault based on
CN115407743A
Cited By
Digital-twin-based nc machine tool machining anomaly detection and correction method and system
CN122425559A