Disclosure of Invention
The invention aims to provide a temperature compensation method and a temperature compensation system for a numerical control machine tool, which can adaptively adjust working parameters of the numerical control system, perform temperature compensation and improve production efficiency.
The invention provides a temperature compensation method of a numerical control machine tool, which comprises the following steps:
obtaining a plurality of temperature measurement values of different positions of the numerical control machine tool, and calculating a temperature average value according to the temperature measurement values;
acquiring label information of a workpiece, the type of a numerical control system and the temperature average value, and determining an error estimation value according to the label information, the type of the numerical control system and the temperature average value;
and adjusting the working parameters of the numerical control system according to the error estimation value.
Optionally, the calculating a temperature average value from the plurality of temperature measurements comprises:
calculating a raw average of the plurality of temperature measurements;
and excluding temperature measurement values having a difference value greater than a preset value from the original average value from the plurality of temperature measurement values, and calculating the temperature average value according to the remaining temperature measurement values.
Optionally, said calculating said temperature average from the remaining temperature measurements comprises:
and carrying out weighted average calculation on the rest temperature measurement values to obtain the temperature average value.
A second aspect of the present invention provides a temperature compensation system for a numerical control machine, comprising:
a numerical control machine tool;
the numerical control system is connected with the numerical control machine tool and is used for controlling the numerical control machine tool;
the temperature sensors are arranged on the numerical control machine tool and used for measuring temperature measurement values of different positions of the numerical control machine tool;
the controller is connected with the plurality of temperature sensors and is used for acquiring label information of the workpiece, the type of the numerical control system and a plurality of temperature measurement values measured by the plurality of temperature sensors, calculating a temperature average value according to the plurality of temperature measurement values and sending the label information, the type of the numerical control system and the temperature average value to the calculation equipment;
the computing equipment is used for receiving the label information, the type of the numerical control system and the temperature average value, determining an error estimation value according to the label information, the type of the numerical control system and the temperature average value, and sending the error estimation value to the numerical control system;
and the numerical control system is used for adjusting parameters according to the error estimation value.
Optionally, the controller is to: calculating a temperature average value according to the plurality of temperature measurement values, specifically:
calculating an original average value of the plurality of temperature measurement values, and excluding temperature measurement values having a difference value greater than a preset value from the original average value;
the temperature average is calculated from the remaining temperature measurements.
Optionally, the controller includes a data acquisition module and a data processing module;
the data acquisition module is used for acquiring label information of a workpiece, the type of a numerical control system and a plurality of temperature measurement values measured by the plurality of temperature sensors;
the data processing module is used for calculating an original average value of the temperature measurement values, excluding the temperature measurement values with the difference value larger than a preset value from the original average value, and calculating the temperature average value according to the rest temperature measurement values.
Optionally, the controller further includes a multiplexer, the multiplexer is connected to the data acquisition module, and the multiplexer is connected to the plurality of temperature sensors through the plurality of measurement channels in a one-to-one correspondence manner.
Optionally, the temperature compensation system further includes a radio frequency identification RFID reader, and the RFID reader is connected to the controller, and is configured to acquire tag information of the workpiece and send the tag information of the workpiece to the controller.
Optionally, the computing device comprises an intermediate server and a temperature compensation cloud platform;
the intermediate server is used for receiving the label information, the type of the numerical control system and the temperature average value sent by the controller, and sending the label information, the type of the numerical control system and the temperature average value to the temperature compensation cloud platform;
the temperature compensation cloud platform is used for receiving the tag information, the type of the numerical control system and the temperature average value, determining an error estimation value according to the tag information, the type of the numerical control system and the temperature average value, and returning the error estimation value to the intermediate server;
the intermediate server is also used for sending the error estimation value to the numerical control system.
Optionally, the intermediate server is further configured to: sending a data request to the controller to acquire the tag information, the type of the numerical control system and the temperature average value;
the controller is configured to: sending the label information, the type of the numerical control system and the temperature average value to a computing device, specifically: responding to the data request, and sending the label information, the type of the numerical control system and the temperature average value to an intermediate server according to the data request.
Compared with the prior art, the invention has the following beneficial effects: the temperature value is measured at the position and around the position with large temperature change of the machine tool, the temperature average value of the temperature measurement value is calculated, temperature compensation calculation can be performed according to the label information of the workpiece, the type of the numerical control system and the temperature average value at the moment due to different compensation amounts of each workpiece at different temperatures, the numerical control system adjusts the working parameters of the processing technology of the workpiece according to the result of the temperature compensation calculation, the form and position deviation of the processed workpiece caused by the temperature difference is corrected, and the production efficiency is improved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present invention, it should also be noted that, unless otherwise explicitly stated or limited, the terms "disposed," "mounted," "connected," and "connected" are to be construed broadly and can be, for example, directly connected, indirectly connected through intervening media, or interconnected between two elements.
Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
A first aspect of the present invention provides a temperature compensation method of a numerical control machine, referring to fig. 1, including:
s1: obtaining a plurality of temperature measurement values of different positions of the numerical control machine tool, and calculating a temperature average value according to the plurality of temperature measurement values;
s2: acquiring label information of a workpiece, the type and the temperature average value of a numerical control system, identifying the type of the workpiece through the label information on the workpiece, performing temperature compensation calculation on the workpiece according to the type of the numerical control system and the temperature average value calculated in the step S1 after acquiring the type of the workpiece because different workpiece types have different temperature compensation amounts at different temperatures, determining an error estimation value, and sending the error estimation value to the numerical control system, wherein the error estimation value is the compensation amount of the workpiece at the temperature obtained through the temperature compensation calculation;
s3: and the numerical control system receives the error estimation value, adjusts working parameters for processing the workpiece according to the error estimation value and realizes temperature compensation of the workpiece.
According to the technical scheme, the machined workpieces have deviation due to temperature difference among all parts of the numerical control machine tool, the temperature values are measured at the position where the temperature of the machine tool changes greatly and around the position, the accuracy of temperature detection can be improved, meanwhile, label information is arranged on the workpieces, the types of the workpieces can be identified by reading the label information, temperature compensation calculation is carried out on the workpieces according to the types of the workpieces and other parameters, an error estimation value of the workpieces at the temperature is determined, the error estimation value is a compensation value obtained by the temperature compensation calculation, the numerical control system adjusts working parameters for carrying out machining process on the workpieces according to the error estimation value, the form and position deviation of the machined workpieces caused by temperature difference is corrected, and the production efficiency is improved.
Optionally, the calculating of the temperature average value according to the plurality of temperature measurement values in step S1 includes:
s11: calculating a raw average of a plurality of temperature measurements;
s12: temperature measurement values having a difference from the original average value greater than a preset value are excluded from the plurality of temperature measurement values, and a temperature average value is calculated from the remaining temperature measurement values.
In the technical scheme, the measured values exceeding the average value of the measured temperature measurement values within a certain range are excluded, the uncertainty of the measured data is reduced, and the accuracy of temperature compensation is effectively ensured.
Optionally, in step S12, calculating a temperature average value according to the remaining temperature measurement values includes:
the remaining temperature measurement values are weighted and averaged according to different measurement positions to obtain a temperature average value, the weighting mode adopted is not fixed, and the weighting mode can be selected according to actual conditions, for example, a higher weight is adopted for the temperature measurement value measured at a position sensitive to temperature change, a lower weight is adopted for the temperature measurement value measured at a position not sensitive to temperature change, or a higher weight is adopted for the position measurement value having a larger influence on workpiece processing in a plurality of temperature measurement values, and the temperature average value is calculated by adopting the weighting mode to ensure that the temperature compensation effect is better.
For a plurality of measured temperature values of the numerical control machine tool, because the influence of temperature change on the workpiece processing at different positions is different, the weighted average calculation is adopted for the temperature measured values, some values with little reference significance in the temperature measured values can be reduced, and the temperature compensation effect can be improved.
A second aspect of the present invention provides a temperature compensation system for a numerical control machine, referring to fig. 2, comprising:
the numerical control machine 101 is used for processing various workpieces, and various machining operations such as cutting and cutting can be completed on the numerical control machine 101;
the numerical control system 100 is connected with the numerical control machine 101, and can control the numerical control machine 101 by setting parameters such as a processing process route of a workpiece, a moving track of a cutter, displacement and the like in the numerical control system, so as to command the numerical control machine 101 to process;
the temperature sensors 103 are arranged at different positions on the numerical control machine 101 and used for measuring the environment temperature measurement value of the numerical control machine 101 and the temperature measurement value of the part of the numerical control machine 101, wherein for the selection of the measurement positions, the temperature sensors 103 can be arranged on the part of the numerical control machine 101 sensitive to the temperature or the part having a large influence on the workpiece in the process of processing the workpiece;
the controller 102 is connected with the plurality of temperature sensors 103 and is used for acquiring label information of the workpiece, the type of the numerical control system 100 and a plurality of temperature measurement values measured by the plurality of temperature sensors 103, calculating a temperature average value according to the plurality of temperature measurement values, and sending the label information, the type of the numerical control system 100 and the temperature average value to the calculation device 104;
the calculating device 104 is used for receiving the tag information, the type of the numerical control system 100 and the temperature average value, identifying the type of the workpiece according to the tag information, performing temperature compensation calculation according to the type of the workpiece, the type of the numerical control system 100 and the temperature average value calculated by the controller 102 because the compensation quantities of different workpieces at different temperatures are stored in the calculating device 104 in advance, obtaining an error estimation value of the workpiece at the temperature, wherein the error estimation value is the compensation quantity of the workpiece at the temperature, and sending the error estimation value to the numerical control system 100;
and the numerical control system 100 adjusts the processing working parameters of the workpiece on the numerical control machine 101 according to the error estimation value.
The numerical control system 100 is a control core of the numerical control machine 101 and is used for controlling the operation of the numerical control machine 101, in the above scheme, a plurality of temperature sensors 103 arranged on the numerical control machine 101 send measured temperature values to a controller 102, the controller 102 calculates a temperature average value according to the plurality of temperature measured values, and sends the temperature average value, the type of the numerical control system 100 and label information of a processed workpiece to a computing device 104, compensation quantities of different workpieces at different temperatures are stored in the computing device 104 in advance, the type of the workpiece can be known according to the label information of the workpiece, so as to perform temperature compensation calculation, and an error estimation value of the workpiece at the temperature is determined, so that the numerical control system correspondingly adjusts the processing working parameters of the workpiece, the whole process does not need manual participation, the working parameters can be automatically adjusted, and adaptive control of temperature difference is realized, the efficiency of temperature compensation is improved.
Optionally, the controller 102 sends the temperature average value, the type of the numerical control system 100, and the label information of the processing workpiece to the computing device 104, which may be sent to the computing device 104 in a wireless manner by using a MODBUS protocol, and the computing device 104 is connected to the numerical control system 100 in an ethernet manner.
Optionally, the controller 102 is configured to: calculating a temperature average value according to the plurality of temperature measurement values, specifically:
calculating an original average value of the plurality of temperature measurement values, excluding temperature measurement values having a difference from the original average value greater than a preset value from the plurality of temperature measurement values, and calculating the temperature average value from the remaining temperature measurement values.
By excluding the measured values exceeding the average value of the measured temperature value within a certain range, the uncertainty of the measured data can be effectively reduced, and the accuracy of temperature compensation is ensured.
Optionally, the controller 102 is further configured to perform weighted average calculation on the remaining temperature measurement values, where the temperature measurement value measured at the position having the greater influence on the processing of the workpiece is selected from the plurality of temperature measurement values to be weighted with a higher weight, and the weighted average value of the temperature is more accurate.
Optionally, referring to fig. 3, the controller 102 includes a data acquisition module 1021 and a data processing module 1022;
the data acquisition module 1021 is used for acquiring label information of the workpiece, the type of the numerical control system 100 and a plurality of temperature measurement values measured by the plurality of temperature sensors 103;
the data processing module 1022 is configured to calculate a raw average of a plurality of temperature measurement values, exclude temperature measurement values having a difference greater than a preset value from the raw average from the plurality of temperature measurement values, and calculate a temperature average according to the remaining temperature measurement values.
It should be understood that the controller 102 also includes a microprocessor, a memory, a signal processing module 1022, a wireless module, etc., which will not be described in detail herein.
Optionally, referring to fig. 4, the controller 102 further includes a multiplexer 1023, the multiplexer 1023 is connected to the data acquisition module 1021, and the multiplexer 1023 is connected to the plurality of temperature sensors 103 through the plurality of measurement channels in a one-to-one correspondence manner, which can greatly meet the application requirement of function expansion and can obtain the temperature measurement values of the plurality of temperature sensors 103.
Optionally, the temperature compensation system further includes a radio frequency identification RFID reader, the RFID reader is connected to the controller 102, an RFID tag is disposed on the workpiece, and the RFID reader acquires tag information of the workpiece through the RFID tag on the workpiece and sends the tag information of the workpiece to the controller 102.
Optionally, referring to fig. 5, computing device 104 includes an intermediate server 1041 and a temperature compensated cloud platform 1042;
the middle server 1041 is configured to receive the tag information, the type of the numerical control system 100, and the temperature average value sent by the controller 102, and send the tag information, the type of the numerical control system 100, and the temperature average value to the temperature compensation cloud platform 1042;
the temperature compensation cloud platform 1042 is used for receiving the tag information, the type of the numerical control system 100 and the temperature average value, determining an error estimation value according to the tag information, the type of the numerical control system 100 and the temperature average value, and returning the error estimation value to the intermediate server 1041;
the intermediate server 1041 sends the error estimation value returned by the temperature compensation cloud platform 1042 to the numerical control system 100.
The tag information, the type of the numerical control system 100, and the temperature average value transmitted from the controller 102 are transmitted to the temperature compensation cloud platform 1042 through the intermediate server 1041, compensation amounts of each workpiece at different temperatures are stored in the temperature compensation cloud platform 1042, the temperature compensation cloud platform 1042 determines an error estimation value according to the tag information, the type of the numerical control system 100, and the temperature average value, and the error estimation value is transmitted to the numerical control system 100 through the intermediate server 1041 to adjust the processing process parameters.
The intermediate server 1041 can be connected with a plurality of numerical control systems 100 and a plurality of controllers 102 corresponding to the plurality of numerical control systems 100, data information sent by the controllers 102 is sent to the temperature compensation cloud platform 1042 through the intermediate server 1041 to be subjected to temperature compensation calculation, the intermediate server 1041 can manage and monitor each numerical control system 100, meanwhile, the temperature compensation cloud platform 1042 is constructed according to the process characteristics of workpieces, automatic temperature compensation calculation is carried out through an internal process database, the temperature compensation self-adaptive control of the enterprise-level numerical control machine 101 is realized, and the production efficiency and the enterprise management efficiency are improved.
Optionally, intermediary server 1041 is further configured to: sending a data request to the controller 102 to obtain the tag information, the type of the numerical control system 100 and the temperature average value;
the controller 102 is configured to: sending the tag information, the type of the numerical control system 100, and the temperature average value to the computing device 104, specifically: in response to the data request of the intermediate server 1041, the tag information, the type of the numerical control system 100, and the temperature average value are sent to the intermediate server 1041 according to the data request.
The intermediate server 1041 sends a data request to the controller 102 at regular time to acquire the label information of the workpiece, the type and the temperature average value of the numerical control system 100, the intermediate server 1041 is connected with the controller 102 in a wireless mode, and an information interaction protocol adopts an MODBUS communication protocol.
The above description is only an alternative embodiment of the present invention and is not intended to limit the present invention, and various modifications and variations of the present invention may occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.