Numerically controlled machine tool thermal error time compensation method, device, equipment and medium

CN117707049BActive Publication Date: 2026-09-18GUANGDONG JIECHENG CNC MASCH TOOL CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311792541.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-22
Publication Date
2026-09-18
Estimated Expiration
2043-12-22

AI Technical Summary

Technical Problem

[0004]上述中的现有技术方案存在以下缺陷:加工热误差依然较大且热误差处理方法有较大的局限性,因此存在改善空间

Benefits of technology

1、通过实时获取机床测温点温度数据,在机床测温点温度数据达到预设的温度值时,执行机床补偿指令,在机床达到热平衡时,生成机床补偿结束消息,能够设置好机床补偿指令执行的时间,在机床温度达到需要补偿的温度阈值时,执行机床补偿操作,对设备进行补偿,并减少了外部因素的影响,使得对热误差的补偿依靠系统内部程序完成,提高了对热误差补偿的灵活性;

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117707049B_ABST
    Figure CN117707049B_ABST
Patent Text Reader

Abstract

The application relates to a thermal error time compensation method, device, equipment and medium for a numerical control machine tool, which comprises the following steps: obtaining a device starting instruction, generating a thermal machine starting instruction according to the device starting instruction, generating a function cycle instruction according to the thermal machine starting instruction, and generating a function segmentation instruction according to the function cycle instruction; generating a timer time setting instruction when a function segmentation end message is obtained, and generating a conduction transmission instruction when timing is completed; and generating a machine tool compensation instruction according to the conduction transmission instruction. The application has the effect of reducing thermal errors of the numerical control machine tool.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of numerical control technology, and in particular to a method, apparatus, equipment and medium for thermal error time compensation for CNC machine tools. Background Technology

[0002] Currently, with the rapid development of the processing and manufacturing industry, in order to improve productivity, reduce labor costs and production defects, CNC machine tool technology is gradually being popularized in manufacturing equipment, allowing workers to remotely operate the equipment.

[0003] Currently, CNC machine tools generally suffer from machining thermal errors. There are two common methods to control the thermal errors of machine tools. The first method is to reduce the thermal elongation of the axial lead screw by using a pre-stretching assembly process. In the mechanical assembly state of the CNC machine tool, the lead screw of the axis to be controlled is pre-stretched and assembled in advance. The second method is to use the CNC system manufacturer to add a set of empirical compensation values ​​in the original factory settings, which are used to compensate for the thermal errors during machine tool machining in the future.

[0004] The existing technical solutions mentioned above have the following drawbacks: the processing thermal error is still relatively large and the thermal error handling methods have significant limitations, thus there is room for improvement. Summary of the Invention

[0005] To reduce thermal errors in CNC machine tools, this application provides a method, apparatus, equipment, and medium for thermal error time compensation in CNC machine tools.

[0006] The above-mentioned objective of this application is achieved through the following technical solution: A method for thermal error time compensation in CNC machine tools, the method comprising: Obtain the device start command, and generate a hot engine start command based on the device start command; A function cycle instruction is generated based on the heat engine start instruction, and a function segmentation instruction is generated based on the function cycle instruction; When the function segment end message is received, a timer time setting instruction is generated, and when the timer is completed, a transmission activation instruction is generated; Based on the transmission command, a machine tool compensation command is generated.

[0007] By adopting the above technical solutions, in order to reduce the thermal error of machine tools, the machine tools are improved by pre-tensioning the axial lead screw or setting empirical compensation values ​​at the factory. However, the axial lead screw pre-tensioning method can be improperly implemented, which can easily lead to greater changes in thermal error and shorten the bearing life. The factory setting empirical compensation value method is only applicable to a certain workpiece. When the customer changes to another workpiece, this compensation will no longer be applicable, resulting in a large limitation in thermal error handling. Therefore, this application generates a thermal start command based on the equipment start command when it receives the equipment start command. When the thermal start command is received, a function cycle command is generated. After the equipment starts, the circuit can be self-circulated to keep the equipment continuously powered, ensuring the normal operation of the machine equipment and preventing further burnout of the power unit. When the function segment end message is received, a timer time setting command is generated, and a conduction transmission command is generated when the timer is completed. Based on the conduction transmission command, a machine tool compensation command is generated. When the equipment finishes processing, the compensation value can be obtained in time, and the compensation command can be automatically input for compensation to achieve thermal balance, improve processing accuracy, and reduce thermal error.

[0008] In a preferred embodiment, this application can be further configured such that: the generation of functional segmentation instructions based on the functional loop instructions specifically includes: Upon receiving the hot engine start-up message, the function loop instruction for controlling the continuous operation of the control circuit is generated; Upon receiving the function loop start message, the corresponding function segmentation instruction is generated based on the processing requirement information.

[0009] By adopting the above technical solution, when a hot-start message is received, the function loop instruction for controlling the continuous operation of the circuit can be generated, which can maintain the uninterrupted power supply of the equipment, ensure the normal operation of the machine, prevent further burnout of the power unit, and reduce the processing error value caused by overheating of the equipment. When a function loop start message is received, the corresponding function segmentation instruction is generated according to the processing requirement information, which can segment the function module according to the processing requirements, pre-allocate the thread occupancy of each processing requirement, and improve the working efficiency of the system.

[0010] In a preferred embodiment, this application can be further configured such that: the generation of corresponding functional segmentation instructions based on processing requirement information specifically includes: Obtain equipment processing instructions, obtain processing requirement information from the equipment processing instructions, and obtain processing step information from the processing requirement information; Based on the processing step information, the functional segmentation instruction for segmenting the functional module is generated.

[0011] By adopting the above technical solution, the processing requirement information can be obtained from the equipment processing instructions, and the processing step information can be obtained from the processing requirement information. Based on the processing step information, functional segmentation instructions are generated to segment the functional modules, thereby allocating reasonable program segments to different processing step information, which can reduce redundancy and improve the operating efficiency of the system.

[0012] In a preferred embodiment, this application can be further configured as follows: generating a timer setting instruction when a functional segmentation end message is received, and generating a transmission activation instruction when the timer is completed, specifically includes: Based on the processing requirement information, the product processing time data in the processing requirement information is set as the timer setting time, and the product processing accuracy data in the processing requirement information is set as the timer compensation value; When the timer reaches its set time, a transmission command is generated.

[0013] By adopting the above technical solution, by setting the product processing time data in the processing demand information as the timer setting time and setting the product processing accuracy data in the processing demand information as the timer compensation value, the variable data of the timer can be set, and when the timer reaches the timer setting time, a transmission command is generated to transmit the compensation value in the timer to the next stage, thus preparing for error compensation in advance.

[0014] In a preferred embodiment, this application can be further configured such that: the generation of machine tool compensation instructions based on the conduction transmission instructions specifically includes: According to the conduction transmission command, the timer compensation value is obtained and the timer compensation value is assigned to the external offset compensation data; Based on the external offset compensation data, a machine tool compensation command is generated to automatically input and compensate for the machine tool's thermal error.

[0015] By adopting the above technical solution, the timer compensation value is obtained, assigned to the external offset compensation data, and a machine tool compensation command is generated when the external offset compensation data is set. The machine tool thermal error can be automatically input and compensated at a specific time according to the compensation command, thereby reducing the thermal error of the equipment and improving the accuracy of the equipment operation.

[0016] In a preferred embodiment, this application may be further configured such that, after generating the machine tool compensation command according to the conduction transmission command, the method further includes: The machine tool temperature measurement point is acquired in real time, and when the temperature data of the machine tool temperature measurement point reaches the preset temperature value, the machine tool compensation command is executed. According to the machine tool compensation command, a machine tool compensation end message is generated when the machine tool reaches thermal equilibrium.

[0017] By adopting the above technical solution, the temperature data of the machine tool temperature measurement point is acquired in real time. When the temperature data of the machine tool temperature measurement point reaches the preset temperature value, the machine tool compensation command is executed. When the machine tool reaches thermal equilibrium, the machine tool compensation end message is generated. The execution time of the machine tool compensation command can be set. When the machine tool temperature reaches the temperature threshold that needs to be compensated, the machine tool compensation operation is executed to compensate the equipment. The influence of external factors is reduced, and the compensation for thermal error is completed by the internal program of the system, which improves the flexibility of thermal error compensation.

[0018] The second objective of this invention is achieved through the following technical solution: A thermal error time compensation device for CNC machine tools, characterized in that the thermal error time compensation device for CNC machine tools comprises: The hot start module is used to acquire the equipment start command and generate a hot start command based on the equipment start command; The loop segmentation module is used to generate functional loop instructions based on the hot engine start instructions, and to generate functional segmentation instructions based on the functional loop instructions. The data transmission module is used to generate a timer setting instruction when a function segment end message is received, and to generate a transmission start instruction when the timer is completed. The machine tool compensation module is used to generate machine tool compensation commands based on the conduction transmission command.

[0019] The above-mentioned objective three of this application is achieved through the following technical solution: A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the above-described thermal error time compensation method for CNC machine tools.

[0020] The fourth objective of this application is achieved through the following technical solution: A computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the above-described thermal error time compensation method for CNC machine tools.

[0021] In summary, this application includes at least one of the following beneficial technical effects: 1. By acquiring the temperature data of the machine tool temperature measurement point in real time, when the temperature data of the machine tool temperature measurement point reaches the preset temperature value, the machine tool compensation command is executed. When the machine tool reaches thermal equilibrium, a machine tool compensation end message is generated. The execution time of the machine tool compensation command can be set. When the machine tool temperature reaches the temperature threshold that needs to be compensated, the machine tool compensation operation is executed to compensate the equipment and reduce the influence of external factors. This makes the compensation for thermal error rely on the internal program of the system, improving the flexibility of thermal error compensation. 2. By acquiring the timer compensation value, assigning the timer compensation value to the external offset compensation data, and generating a machine tool compensation command when the external offset compensation data is set, the machine tool thermal error can be automatically input and compensated at a specific time according to the compensation command, thereby reducing the thermal error of the equipment and improving the accuracy of the equipment operation. 3. By setting the product processing time data in the processing requirement information as the timer setting time and the product processing accuracy data in the processing requirement information as the timer compensation value, the variable data of the timer can be set, and when the timer reaches the timer setting time, a transmission command is generated to transmit the compensation value in the timer to the next stage, thus preparing for error compensation in advance.

[0022] 4. By acquiring equipment processing instructions, processing requirement information can be obtained from the equipment processing instructions, and processing step information can be obtained from the processing requirement information. Based on the processing step information, functional segmentation instructions are generated to segment the functional modules, thereby allocating reasonable program segments to different processing step information, which can reduce redundancy and improve the operating efficiency of the system. Attached Figure Description

[0023] Figure 1 This is a flowchart of a thermal error time compensation method for CNC machine tools according to an embodiment of this application; Figure 2 This is a flowchart illustrating the implementation of step S20 in a thermal error time compensation method for CNC machine tools according to an embodiment of this application. Figure 3 This is a flowchart illustrating the implementation of step S22 in a thermal error time compensation method for CNC machine tools according to an embodiment of this application. Figure 4 This is a flowchart illustrating the implementation of step S30 in a thermal error time compensation method for CNC machine tools according to an embodiment of this application. Figure 5 This is a flowchart illustrating the implementation of step S40 in a thermal error time compensation method for CNC machine tools according to an embodiment of this application. Figure 6 This is a schematic block diagram of a thermal error time compensation device for CNC machine tools according to one embodiment of this application; Figure 7This is a schematic diagram of a device according to one embodiment of this application. Detailed Implementation

[0024] The present application will be further described in detail below with reference to the accompanying drawings.

[0025] In one embodiment, such as Figure 1 As shown, this application discloses a method for thermal error time compensation for CNC machine tools, which specifically includes the following steps: S10: Obtain the device start command and generate a warm-up start command based on the device start command.

[0026] In this embodiment, the device start command refers to the command that controls the device to start up. The heat engine start command refers to the command that controls the heat engine component to start up.

[0027] Specifically, when the user presses the start button, a device start command is generated to begin the operation of each part of the device, and a warm-up start command is generated to start the warm-up engine to load the internal program and wait for processing.

[0028] S20: Generate a function cycle instruction based on the hot engine start instruction, and generate a function segmentation instruction based on the function cycle instruction.

[0029] In this embodiment, the function loop instruction refers to the instruction that controls the circuit to perform a self-loop. The function segmentation instruction refers to the instruction that segments the functional module.

[0030] Specifically, after the engine is started, the circuit is first operated in a self-loop manner through a self-locking circuit to ensure the normal operation of the equipment and keep each link connected in real time. When the equipment needs to be compensated, each link of the control system continuously and automatically inputs compensation. Function segmentation instructions are generated according to the function loop instructions, and the program segment is divided into different segments for each link to use.

[0031] S30: When the function segment end message is received, a timer time setting instruction is generated, and when the timer is completed, a conduction transmission instruction is generated.

[0032] In this embodiment, the function segment end message refers to the message triggered after the function segment operation ends. The timer time setting instruction refers to the instruction to obtain and set the timer time. The transmission enable instruction refers to the instruction to transmit the information in the timer to the next stage.

[0033] Specifically, when the end message of the functional segment is received, a timer setting instruction is generated. Each segment of the circuit has a timer. After the segment ends, the timer of each segment is activated and a time value is obtained as the timer time. The timing starts when the functional module of this segment is started. When the timing time reaches the timer time, a conduction transmission instruction is generated to transmit the data in the timer to the next stage.

[0034] S40: Generate machine tool compensation instructions based on the conduction transmission instructions.

[0035] In this embodiment, the machine tool compensation command refers to the command to compensate for the thermal error of the machine tool.

[0036] Specifically, after the data in the timer is transmitted via the conduction transmission command, a machine tool compensation command is generated based on the data to compensate for the thermal error of the machine tool, thereby improving the flexibility and stability of the machine tool in handling thermal errors.

[0037] By adopting the above technical solutions, in order to reduce the thermal error of machine tools, the machine tools are improved by pre-tensioning the axial lead screw or setting empirical compensation values ​​at the factory. However, the axial lead screw pre-tensioning method can be improperly implemented, which can easily lead to greater changes in thermal error and shorten the bearing life. The factory setting empirical compensation value method is only applicable to a certain workpiece. When the customer changes to another workpiece, this compensation will no longer be applicable, resulting in a large limitation in thermal error handling. Therefore, this application generates a thermal start command based on the equipment start command when it receives the equipment start command. When the thermal start command is received, a function cycle command is generated. After the equipment starts, the circuit can be self-circulated to keep the equipment continuously powered, ensuring the normal operation of the machine equipment and preventing further burnout of the power unit. When the function segment end message is received, a timer time setting command is generated, and a conduction transmission command is generated when the timer is completed. Based on the conduction transmission command, a machine tool compensation command is generated. When the equipment finishes processing, the compensation value can be obtained in time, and the compensation command can be automatically input for compensation to achieve thermal balance, improve processing accuracy, and reduce thermal error.

[0038] In one embodiment, such as Figure 2 As shown, after step S20, the thermal error time compensation method for CNC machine tools further includes: S21: Upon receiving the hot engine start-up message, generate a function loop instruction for controlling the continuous operation of the circuit.

[0039] In this embodiment, the hot engine start-up message refers to the message triggered when the hot engine is turned on.

[0040] Specifically, upon receiving a hot start message, a function loop instruction is generated. The circuit is self-looped through a self-locking circuit to maintain uninterrupted power supply. This ensures that messages in the circuit can be transmitted smoothly at each stage. When compensation is required in the equipment processing stage, compensation can be automatically input. After compensation is completed, the circuit waits for the next compensation instruction, continuously performing automatic compensation for each stage of the equipment to ensure the normal operation of the circuit and the normal operation of the equipment.

[0041] S22: Upon receiving the function cycle start message, generate the corresponding function segmentation instructions based on the processing requirement information.

[0042] In this embodiment, the processing requirement information refers to the requirements information during workpiece processing.

[0043] Specifically, when the function loop start message is received, the processing requirement information of the workpiece is obtained, and a function segmentation instruction is generated based on the processing requirement information. The function requirement is segmented according to the processing requirement, and program space is allocated in advance for each processing requirement to reduce redundancy, improve the system's operating efficiency, and thus reduce thermal error.

[0044] In one embodiment, such as Figure 3 As shown, after step S22, the thermal error time compensation method for CNC machine tools further includes: S221: Obtain equipment processing instructions, obtain processing requirement information from the equipment processing instructions, and obtain processing step information from the processing requirement information.

[0045] In this embodiment, the equipment processing instruction refers to the instruction given by the equipment to process the workpiece. The processing step information refers to the step information for processing the workpiece.

[0046] Specifically, processing requirement information can be obtained from equipment processing instructions, and processing steps can be obtained from processing requirement information. This allows for the advance acquisition of each step of the processing requirement, facilitating the subsequent segmentation of functional modules.

[0047] S222: Generate functional segmentation instructions to segment functional modules based on processing step information.

[0048] Specifically, based on the processing step information, the system will allocate the length of the corresponding functional module for each step, which can preload in advance and reduce system redundancy, thereby improving system operating efficiency and memory usage, and reducing machine heat generation.

[0049] In one embodiment, such as Figure 4 As shown, after step S30, the thermal error time compensation method for CNC machine tools further includes: S31: Based on the processing requirement information, obtain the product processing time data from the processing requirement information and set it as the timer setting time; obtain the product processing accuracy data from the processing requirement information and set it as the timer compensation value.

[0050] In this embodiment, product processing time data refers to the time required for each step of workpiece processing. Product processing accuracy data refers to the accuracy requirements for each step of workpiece processing.

[0051] Specifically, a timer is set in the program segment of each processing step. The timer has two data: the timer setting time and the timer compensation value. The product processing time data in the processing requirement information is set as the timer setting time, and the product processing accuracy data in the processing requirement information is set as the timer compensation value.

[0052] S32: When the timer reaches the set time, a transmission command is generated.

[0053] Specifically, when workpiece processing begins, the timer starts counting down. When the timer reaches its set time, it indicates that the production operation for this step is complete, generating a transmission command to turn on the subsequent circuits and transmit the data in the timer.

[0054] In one embodiment, such as Figure 5 As shown, after step S40, the thermal error time compensation method for CNC machine tools further includes: S41: According to the conduction transmission command, obtain the timer compensation value and assign the timer compensation value to the external offset compensation data.

[0055] In this embodiment, the external offset compensation data refers to the workpiece accuracy data value used for input compensation.

[0056] Specifically, after generating the conduction transmission command, the timer compensation value in the timer is sent to the external offset compensation data, which receives this value as the standard value for compensation. The timer compensation value can be manually input and set, and is used to compensate the machine tool to achieve thermal balance, which improves the flexibility of obtaining the compensation standard.

[0057] S42: Generates machine tool compensation commands based on external offset compensation data to automatically input and compensate for machine tool thermal errors.

[0058] Specifically, when the external offset compensation data parameters are received, a machine tool compensation command is generated. The machine tool compensation command is not executed immediately, but only when the machine tool temperature reaches the set temperature value. This allows for timely acquisition and setting of compensation values, so that the equipment can obtain the corresponding compensation value when compensation is needed.

[0059] In one embodiment, after step S42, the thermal error time compensation method for CNC machine tools further includes: S43: Real-time acquisition of temperature data from machine tool temperature measurement points; execution of machine tool compensation commands when the temperature data from the machine tool temperature measurement points reaches the preset temperature value.

[0060] In this embodiment, the temperature data at the machine tool temperature measurement point refers to the real-time temperature data sensed by the temperature sensor installed at the machine tool temperature measurement point.

[0061] Specifically, temperature sensors are installed in the heat-prone areas of the machine tool to obtain the machine tool temperature in real time. When the machine tool temperature is too high and affects the operating accuracy of the equipment, a machine tool compensation command is executed. The external offset compensation data is used as the standard to automatically input compensation in order to compensate for the impact of the machine tool overheating.

[0062] S44: Based on the machine tool compensation command, generate a machine tool compensation end message when the machine tool reaches thermal equilibrium.

[0063] Specifically, when executing machine tool compensation commands, the machining accuracy of the workpiece is acquired in real time. When the requirements of the external offset compensation data are met, the compensation step ends and a machine tool compensation end message is generated.

[0064] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0065] In one embodiment, a thermal error time compensation device for CNC machine tools is provided, which corresponds one-to-one with the thermal error time compensation method for CNC machine tools described in the above embodiments. For example... Figure 6 As shown, the thermal error time compensation device for CNC machine tools includes a thermal start-up module, a cycle segmentation module, a data transmission module, and a machine tool compensation module. Detailed descriptions of each functional module are as follows: The hot start module is used to acquire the equipment start command and generate a hot start command based on the equipment start command; The loop segmentation module is used to generate functional loop instructions based on the hot engine start instructions, and to generate functional segmentation instructions based on the functional loop instructions. The data transmission module is used to generate a timer setting instruction when a function segment end message is received, and to generate a transmission start instruction when the timer is completed. The machine tool compensation module is used to generate machine tool compensation commands based on the conduction transmission command.

[0066] Optional, the cyclic segmentation module includes: The function loop submodule is used to generate function loop instructions for the continuous operation of the control circuit when a hot engine start message is received. The function segmentation submodule is used to generate corresponding function segmentation instructions based on processing requirements when a function loop start message is received.

[0067] Optional, the functional segmented sub-modules include: The processing information acquisition unit is used to acquire equipment processing instructions, obtain processing requirement information from the equipment processing instructions, and obtain processing step information from the processing requirement information; The segmentation instruction generation unit is used to generate functional segmentation instructions for segmenting functional modules based on processing step information.

[0068] Optionally, the data transmission module includes: The timer setting submodule is used to obtain the product processing time data from the processing requirement information and set it as the timer setting time, and to obtain the product processing accuracy data from the processing requirement information and set it as the timer compensation value. The transmission command generation submodule is used to generate a transmission command when the timer reaches its set time.

[0069] Optionally, the machine tool compensation module includes: The compensation assignment submodule is used to obtain the timer compensation value according to the conduction transmission command and assign the timer compensation value to the external offset compensation data; The compensation instruction generation submodule is used to generate machine tool compensation instructions that automatically input and compensate for machine tool thermal errors based on external offset compensation data.

[0070] Optionally, thermal error time compensation methods for CNC machine tools also include: The compensation execution submodule is used to acquire the temperature data of the machine tool temperature measuring point in real time, and execute the machine tool compensation command when the temperature data of the machine tool temperature measuring point reaches the preset temperature value. The compensation end submodule is used to generate a machine tool compensation end message when the machine tool reaches thermal equilibrium, based on the machine tool compensation command.

[0071] Specific limitations regarding the thermal error time compensation device for CNC machine tools can be found in the limitations of the thermal error time compensation method for CNC machine tools mentioned above, and will not be repeated here. Each module in the aforementioned thermal error time compensation device for CNC machine tools can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independently of the processor, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0072] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 7As shown, the computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The network interface is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements a thermal error time compensation method for CNC machine tools.

[0073] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to perform the following steps: Obtain the device start command, and generate a hot engine start command based on the device start command; A function cycle instruction is generated based on the heat engine start instruction, and a function segmentation instruction is generated based on the function cycle instruction; When the function segment end message is received, a timer time setting instruction is generated, and when the timer is completed, a transmission activation instruction is generated; Based on the transmission command, a machine tool compensation command is generated.

[0074] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor: Obtain the device start command, and generate a hot engine start command based on the device start command; A function cycle instruction is generated based on the heat engine start instruction, and a function segmentation instruction is generated based on the function cycle instruction; When the function segment end message is received, a timer time setting instruction is generated, and when the timer is completed, a transmission activation instruction is generated; Based on the transmission command, a machine tool compensation command is generated.

[0075] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0076] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0077] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A method for compensating for thermal errors in CNC machine tools, characterized in that, The thermal error time compensation method for CNC machine tools includes: Obtain the device start command, and generate a hot engine start command based on the device start command; The function cycle instruction is generated based on the heat engine start instruction, and the function segmentation instruction is generated based on the function cycle instruction, specifically including: Upon receiving the hot engine start-up message, the function loop instruction for controlling the continuous operation of the control circuit is generated; Upon receiving the function loop start message, corresponding function segmentation instructions are generated based on the processing requirement information, specifically including: Obtain equipment processing instructions, obtain processing requirement information from the equipment processing instructions, and obtain processing step information from the processing requirement information; Based on the processing step information, generate the functional segmentation instruction to segment the functional module; Upon receiving the function segment end message, a timer setting instruction is generated, and upon completion of the timer, a transmission activation instruction is generated, specifically including: Based on the processing requirements information, the product processing time data in the processing requirements information is set as the timer setting time, and the product processing accuracy data in the processing requirements information is set as the timer compensation value; When the timer reaches its set time, a transmission activation command is generated. Based on the transmission command, a machine tool compensation command is generated; After generating the machine tool compensation command according to the conduction transmission command, the method further includes: The machine tool temperature measurement point is acquired in real time, and when the temperature data of the machine tool temperature measurement point reaches the preset temperature value, the machine tool compensation command is executed. According to the machine tool compensation command, a machine tool compensation end message is generated when the machine tool reaches thermal equilibrium.

2. The thermal error time compensation method for CNC machine tools according to claim 1, characterized in that, The step of generating machine tool compensation instructions based on the conduction transmission instructions specifically includes: According to the conduction transmission command, the timer compensation value is obtained and the timer compensation value is assigned to the external offset compensation data; Based on the external offset compensation data, a machine tool compensation command is generated to automatically input and compensate for the machine tool's thermal error.

3. A thermal error time compensation device for CNC machine tools, characterized in that, The thermal error time compensation device for CNC machine tools includes: The hot start module is used to acquire the equipment start command and generate a hot start command based on the equipment start command; The loop segmentation module is used to generate functional loop instructions based on the hot engine start-up instructions, and to generate functional segmentation instructions based on the functional loop instructions. Specifically, it includes: Upon receiving the hot engine start-up message, the function loop instruction for controlling the continuous operation of the control circuit is generated; Upon receiving the function loop start message, corresponding function segmentation instructions are generated based on the processing requirement information, specifically including: Obtain equipment processing instructions, obtain processing requirement information from the equipment processing instructions, and obtain processing step information from the processing requirement information; Based on the processing step information, generate the functional segmentation instruction to segment the functional module; The data transmission module is used to generate a timer setting command when a function segment end message is received, and to generate a transmission activation command when the timer is completed. Specifically, it includes: Based on the processing requirements information, the product processing time data in the processing requirements information is set as the timer setting time, and the product processing accuracy data in the processing requirements information is set as the timer compensation value; When the timer reaches its set time, a transmission activation command is generated. The machine tool compensation module is used to generate machine tool compensation commands based on the conduction transmission command; After generating the machine tool compensation command according to the conduction transmission command, the method further includes: The machine tool temperature measurement point is acquired in real time, and when the temperature data of the machine tool temperature measurement point reaches the preset temperature value, the machine tool compensation command is executed. According to the machine tool compensation command, a machine tool compensation end message is generated when the machine tool reaches thermal equilibrium.

4. The thermal error time compensation device for CNC machine tools according to claim 3, characterized in that, The cyclic segmentation module includes: The function loop submodule is used to generate function loop instructions for the continuous operation of the control circuit when a hot engine start message is received. The function segmentation submodule is used to generate corresponding function segmentation instructions based on processing requirements when a function loop start message is received.

5. A computer device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the thermal error time compensation method for CNC machine tools as described in any one of claims 1 to 2.

6. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the thermal error time compensation method for CNC machine tools as described in any one of claims 1 to 2.

Citation Information

Patent Citations

  • Piecewise linear real-time integral error compensation method and integral circuit thereof

    CN107070453A

  • Numerical control machine tool thermal error software compensation technology

    CN109709894A