CN105759718B - Numerical control machining tool heat error online compensation method and system - Google Patents

Numerical control machining tool heat error online compensation method and system Download PDF

Info

Publication number
CN105759718B
CN105759718B CN201610159196.8A CN201610159196A CN105759718B CN 105759718 B CN105759718 B CN 105759718B CN 201610159196 A CN201610159196 A CN 201610159196A CN 105759718 B CN105759718 B CN 105759718B
Authority
CN
China
Prior art keywords
numerical control
numerically
machine tool
controlled machine
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201610159196.8A
Other languages
Chinese (zh)
Other versions
CN105759718A (en
Inventor
黄智�
许可
王立平
王正杰
杜丽
陈令
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
University of Electronic Science and Technology of China
Original Assignee
University of Electronic Science and Technology of China
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by University of Electronic Science and Technology of China filed Critical University of Electronic Science and Technology of China
Priority to CN201610159196.8A priority Critical patent/CN105759718B/en
Publication of CN105759718A publication Critical patent/CN105759718A/en
Application granted granted Critical
Publication of CN105759718B publication Critical patent/CN105759718B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/404Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by control arrangements for compensation, e.g. for backlash, overshoot, tool offset, tool wear, temperature, machine construction errors, load, inertia
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/37Measurements
    • G05B2219/37211Measure temperature, compensate cmm program for temperature

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Numerical Control (AREA)
  • Automatic Control Of Machine Tools (AREA)

Abstract

The invention discloses a kind of numerical control machining tool heat error online compensation method and system;Numerically-controlled machine tool key measuring point temperature data is acquired, numerically-controlled machine tool theory thermal error value is calculated according to multiple linear regression Thermal Error model, offset value calculation simultaneously judges whether the compensation threshold value bound range for meeting setting.The present invention is embedded into as numerical control machining tool heat error online compensation subelement in the human-computer interaction interface of panel control unit by building multiple linear regression Thermal Error model, without external compensator, greatly improves the versatility of system;Meanwhile using Fuzzy Cluster Analysis method and multiple linear regression theoretical calculation numerically-controlled machine tool offset, and online compensation is performed using exterior coordinate mapping mode, it is simple operation, real-time.

Description

Numerical control machining tool heat error online compensation method and system
Technical field
The invention belongs to NC Machine Error compensation technique field more particularly to a kind of numerical control machining tool heat error online compensations Method and system.
Background technology
With the development of science and technology, Machine Manufacturing Technology, to developing at a high speed, in high precision with intelligentized direction, this is to machine Tool processing proposes higher requirement.With process of manufacture the degree of automation fast development and precision processing technology it is wide General application proposes higher requirement to the precision of numerically-controlled machine tool and machining center.In every error source of lathe, geometry misses Difference and thermal deformation errors generate large effect to machine finish, are the principal elements for influencing machine finish.Largely Research shows that thermal deformation errors account for the 40%~70% of lathe overall error, and with the raising of machine finish, thermal deformation Error proportion also can be improved accordingly, therefore effectively control and reduction thermal deformation of machine tool error are to improve numerically-controlled machine tool processing essence The important method of degree.
There are mainly two types of the methods for reducing thermal deformation of machine tool error, and one kind is error prevention, and another kind is error compensation.By In error prevention need design to lathe, material it is selected on be improved, cost is higher, so generally using error compensation Method reduce thermal deformation of machine tool error.
The digital control system of mainstream is Siemens and Fa Nake digital control systems currently on the market, and Fa Nake digital control systems are due to boundary The limitation of face exploitation, compensates exploitation for its PLC mostly.And CNC System from Siemens is carried for the secondary development of man-machine interface Approach is supplied.Through the retrieval discovery to the prior art, the following problem of generally existing:1) external compensator and personal computer are needed Assistance could complete the compensation of error, and hardware cost is big, and implementation process is complex.2) benefit based on man-machine interface secondary development Compensation method carries temperature compensation module using Siemens and implements compensation, but man-machine interface secondary development, which employs Siemens, to be carried The charge development kit of confession, it is larger to the dependence of Siemens, while it is that charge chooses to install module that Siemens, which carries temperature compensation module, no It is that all CNC System from Siemens all carry temperature compensation module, without versatility.
Invention content
The present invention goal of the invention be:In order to solve to exist in the prior art problem above, the present invention proposes a kind of behaviour Make numerical control machining tool heat error online compensation method and system convenient, real-time, that versatility is good.
The technical scheme is that:A kind of numerical control machining tool heat error online compensation method, includes the following steps:
A, numerically-controlled machine tool key measuring point temperature data is acquired;
B, it the crucial measuring point temperature data acquired in step A is input to multiple linear regression Thermal Error model falls into a trap and count Control lathe theory thermal error value, the construction method of the multiple linear regression Thermal Error model include it is following step by step:
The thermal error data of each kinematic axis, is adopted under B1, acquisition numerically-controlled machine tool key measuring point temperature data and corresponding temperature All temperature datas of acquisition are grouped with Fuzzy Cluster Analysis method, and the temperature of related coefficient maximum is selected in each group Temperature sensitive point data of the degrees of data as the group;
B2, according to multiple linear regression theory, with reference to the temperature sensitive point data and thermal error data acquired in step B1, Establish multiple linear regression Thermal Error model;
C, setting compensation threshold value bound range calculates numerical control machine according to the theoretical thermal error value being calculated in step B Bed offset, and judge whether numerically-controlled machine tool offset meets compensation threshold value bound range;If numerically-controlled machine tool offset is discontented with Foot compensates threshold value bound range, then return to step A;If numerically-controlled machine tool offset meets compensation threshold value bound range, profit Plc data block address is written into numerically-controlled machine tool offset with OPC communication protocols, realizes numerical control machining tool heat error online compensation.
Further, it further includes and accesses numerically-controlled machine tool system server using OPC communication protocols, read and preserve numerical control machine Bed status data.
Further, the multiple linear regression Thermal Error model established in the step B is embodied as:
Δ K=a0+a1×ΔT1+a2×ΔT2+a3×ΔT3+a4×ΔT4+...+am×ΔTm
Wherein, Thermal Errors of the Δ K for each kinematic axis, a0,a1,a2,a3,a4...amIt is the number by being acquired in step B1 The model coefficient that the thermal error data of each kinematic axis is calculated under control lathe key measuring point temperature data and corresponding temperature, Δ T1,ΔT2,ΔT3,ΔT4...ΔTmIt is the temperature variation of temperature sensitive point, m is set temperature sensitive spot number.
Further, the temperature variation of the temperature sensitive point is specially that the numerically-controlled machine tool key that online acquisition obtains is surveyed Point temperature data subtracts initial temperature.
Further, the theoretical thermal error value being calculated in the B according to step calculates the meter of numerically-controlled machine tool offset Calculating formula is specially:
Δ K '=Δ Kn-ΔKn-1
Wherein, Δ K ' be numerically-controlled machine tool offset, Δ KnAccording to polynary when reaching compensation threshold value bound range for n-th The theoretical thermal error value that linear regression Thermal Error model is calculated, Δ K0=0.
The invention also provides a kind of numerical control machining tool heat error online compensation system, including:
Data acquisition module, the data collecting card being connect including temperature sensor and with temperature sensor;The temperature passes Sensor is used to acquire numerically-controlled machine tool key measuring point temperature data, and pass through data collecting card connected to it and transmit temperature data To numerical control subsystem;
Numerical control subsystem, including sequentially connected panel control unit, PLC unit and numerical control unit;The panel control Unit is embedded with numerical control machining tool heat error online compensation subelement, for running numerical tool operation system and being acquired according to data The crucial measuring point temperature data of module acquisition calculates numerically-controlled machine tool offset;The PLC unit is used for will for panel control unit Numerically-controlled machine tool offset is written to data block address;The numerical control unit is used to that numerically-controlled machine tool offset to be written for PLC unit Its external zero offset variable, performs numerical control machining tool heat error online compensation;
The data acquisition module is by serial ports and numerical control subsystem into row data communication.
Further, the data acquisition module further includes displacement sensor, and institute's displacement sensors are used to acquire numerical control The thermal error data of each kinematic axis and numerical control subsystem is transmitted under lathe key measuring point corresponding temperature.
Further, numerically-controlled machine tool system server is further included, for storing panel control unit, PLC unit and numerical control The variable and file of unit;The numerical control subsystem carries out data with numerically-controlled machine tool system server using OPC communication protocols and leads to Letter monitors numerical control conditions of machine tool in real time by accessing the realization of numerically-controlled machine tool system server.
Further, personal computer and the USB being connect respectively with personal computer and numerical control subsystem adaptations are further included Device;The personal computer is equipped with PLC programming modules, is used to modify to the PLC unit of numerical control subsystem;It is described USB adapter is used to implement personal computer and numerical control subsystem into row data communication.
Further, the personal computer, which modifies to PLC unit, specially adds FB3 subelements and FB4 lists Member;The FB3 subelements are corresponding for the numerically-controlled machine tool offset of the data block address of PLC unit to be written to numerical control unit External zero offset variable;The FB4 subelements are used to activate the numerically-controlled machine tool of the external zero offset variable of numerical control unit to mend Value is repaid, exterior coordinate transformation is performed and completes numerical control machining tool heat error online compensation.
The beneficial effects of the invention are as follows:The present invention uses C# language by building multiple linear regression Thermal Error model Design is programmed, the human-computer interaction of panel control unit is embedded into as numerical control machining tool heat error online compensation subelement In interface, without external compensator, the versatility of system is greatly improved;Meanwhile utilize Fuzzy Cluster Analysis method and more First linear regression theory calculates numerically-controlled machine tool offset, and uses exterior coordinate mapping mode execution online compensation, simple operation, It is real-time;In addition, it also realizes and numerical control conditions of machine tool is carried out using OPC communication protocol dynamic access numerically-controlled machine tool servers Real time monitoring, and real-time display is carried out using numerical control machining tool heat error online compensation subelement, it is carried for numerically-controlled machine tool online compensation Convenient, cheap, reliable means are supplied.
Description of the drawings
Fig. 1 is the numerical control machining tool heat error online compensation method flow schematic diagram of the present invention.
Fig. 2 is the numerical control machining tool heat error online compensation system structure diagram of the present invention.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, not For limiting the present invention.
As shown in Figure 1, the numerical control machining tool heat error online compensation method flow schematic diagram for the present invention.A kind of numerically-controlled machine tool Thermal Error online compensation method, includes the following steps:
A, numerically-controlled machine tool key measuring point temperature data is acquired;
B, it the crucial measuring point temperature data acquired in step A is input to multiple linear regression Thermal Error model falls into a trap and count Control lathe theory thermal error value, the construction method of the multiple linear regression Thermal Error model include it is following step by step:
The thermal error data of each kinematic axis, is adopted under B1, acquisition numerically-controlled machine tool key measuring point temperature data and corresponding temperature All temperature datas of acquisition are grouped with Fuzzy Cluster Analysis method, and the temperature of related coefficient maximum is selected in each group Temperature sensitive point data of the degrees of data as the group;
B2, according to multiple linear regression theory, with reference to the temperature sensitive point data and thermal error data acquired in step B1, Establish multiple linear regression Thermal Error model;
C, setting compensation threshold value bound range calculates numerical control machine according to the theoretical thermal error value being calculated in step B Bed offset, and judge whether numerically-controlled machine tool offset meets compensation threshold value bound range;If numerically-controlled machine tool offset is discontented with Foot compensates threshold value bound range, then return to step A;If numerically-controlled machine tool offset meets compensation threshold value bound range, profit Plc data block address is written into numerically-controlled machine tool offset with OPC communication protocols, realizes numerical control machining tool heat error online compensation.
In step, the present invention is each using the multiple temperature sensors acquisition for being arranged on the multiple crucial measuring points of numerically-controlled machine tool A key measuring point temperature data.
In stepb, in order to be digitally controlled lathe theory thermal error value, this hair according to the temperature data acquired in step A It is bright to utilize the method for establishing multiple linear regression Thermal Error model, by the way that the crucial measuring point temperature data acquired in step A is defeated Enter into multiple linear regression Thermal Error model and calculate X respectively, the theoretical thermal error value of tri- kinematic axis of Y, Z.
In order to realize the accurate calculating to numerically-controlled machine tool theory thermal error value, the invention also provides a kind of multiple linear returns Return the construction method of Thermal Error model, specifically include it is following step by step:
The thermal error data of each kinematic axis, is adopted under B1, acquisition numerically-controlled machine tool key measuring point temperature data and corresponding temperature All temperature datas of acquisition are grouped with Fuzzy Cluster Analysis method, and the temperature of related coefficient maximum is selected in each group Temperature sensitive point data of the degrees of data as the group;
B2, according to multiple linear regression theory, with reference to the temperature sensitive point data and thermal error data acquired in step B1, Establish multiple linear regression Thermal Error model.
In step bl is determined, the present invention utilizes each crucial survey of the temperature sensor acquisition for being arranged on numerically-controlled machine tool key measuring point Point temperature data and using being arranged on the displacement sensor acquisition of numerically-controlled machine tool kinematic axis each kinematic axis at various temperatures Thermal error data;All temperature datas collected are grouped, and in each group temperature using Fuzzy Cluster Analysis method again The temperature data of related coefficient maximum is selected in degrees of data as the temperature sensitive point data of the grouping, here by all data The method for being grouped and calculating the related coefficient of data in each group is the common knowledge of those skilled in the art, and the present invention does not make It repeats.
In step B2, by the kinematic axis Thermal Error number under the temperature sensitive point data and corresponding temperature that are obtained in step B1 According to as variable, using multiple linear regression theory, multiple linear regression Thermal Error model is established.The multiple linear regression of foundation Thermal Error model robustness is stronger, and calculation amount is less, and mathematical model is embodied as:
Δ K=a0+a1×ΔT1+a2×ΔT2+a3×ΔT3+a4×ΔT4+...+am×ΔTm
Wherein, Thermal Errors of the Δ K for each kinematic axis, a0,a1,a2,a3,a4...amIt is the number by being acquired in step B1 The model coefficient that the thermal error data of each kinematic axis is calculated under control lathe key measuring point temperature data and corresponding temperature, Δ T1,ΔT2,ΔT3,ΔT4...ΔTmIt is the temperature variation of temperature sensitive point, m is set temperature sensitive spot number.For example, The quantity of set temperature sensitive spot of the present invention be 4, will all temperature datas be divided into 4 groups, and correlation is filtered out from each group Temperature sensitive point data of the temperature data of coefficient maximum as the grouping, so as to obtain 4 temperature sensitive point data.Here The temperature variation of temperature sensitive point is specially that the numerically-controlled machine tool key measuring point temperature data that online acquisition obtains subtracts initial temperature Degree.The present invention is using any kinematic axis thermal error data at a certain temperature as one group of variable, according to corresponding under different temperatures Thermal error data form multigroup variable, you can model coefficient is obtained, so as to establish multiple linear regression Thermal Error model.
In order to improve the versatility of numerical control machining tool heat error online compensation and convenience, the present invention utilizes third party software Visual studio carry out secondary development to human-computer interaction interface, and the multiple linear regression Thermal Error model of foundation is used C# Language is programmed design, and is embedded into the human-computer interaction interface of numerically-controlled machine tool, and compensation is carried to numerically-controlled machine tool so as to eliminate The dependence of module.Moreover, OPC communication protocols and serial communication protocol are also converted to C# language and multiple linear regression by the present invention Thermal Error model is programmed design together, on the one hand realizes the temperature data and thermal error data for receiving acquisition, on the other hand Realize that numerically-controlled machine tool parameter reads the write-in with offset.
In step C, the present invention needs setting compensation threshold value bound range, and compensation threshold value bound range here is It is integrated according to numerically-controlled machine tool itself machining accuracy and thermal deformation errors size determining, because thermal deformation is gradual amount, must not It to compensate in real time, while the operation burden generated when digital control system is compensated because frequently executing can be mitigated, prevent because of temperature It is disturbed the generation that larger fluctuation is caused to cause larger offset.
The present invention calculates numerically-controlled machine tool offset, calculation formula tool according to the theoretical thermal error value being calculated in step B Body is:
Δ K '=Δ Kn-ΔKn-1
Wherein, Δ K ' be numerically-controlled machine tool offset, Δ KnAccording to polynary when reaching compensation threshold value bound range for n-th The theoretical thermal error value that linear regression Thermal Error model is calculated, Δ K0=0.Missed for the first time according to multiple linear regression heat It is numerically-controlled machine tool offset that theoretical thermal error value, which is calculated, in differential mode type;Second according to multiple linear regression Thermal Error model Be calculated need after theoretical thermal error value to subtract it is last meet compensation threshold value bound range according to multiple linear regression The theoretical thermal error value that Thermal Error model is calculated, the work difference result being calculated are numerically-controlled machine tool offset;And so on.
Whether the present invention is met by the numerically-controlled machine tool offset that the judgement of setting compensation threshold value bound range is calculated Compensate threshold value bound range;If numerically-controlled machine tool offset is unsatisfactory for compensation threshold value bound range, without compensation, return Step A resurveys numerically-controlled machine tool key measuring point temperature data;If numerically-controlled machine tool offset meets compensation threshold value bound model It encloses, then will meet the data of the numerically-controlled machine tool offset write-in PLC unit of compensation threshold value bound range using OPC communication protocols Block address, then the external zero offset variable of numerical control unit is assigned to by PLC unit, realize that numerical control machining tool heat error is mended online It repays.
Plc data block address is written into offset using OPC communication protocols, realizes numerical control machining tool heat error online compensation tool Body is that the offset of numerically-controlled machine tool kinematic axis being calculated is written to PLC corresponding with kinematic axis using OPC communication protocols Offset in data block address is written to numerical control by the data block address of unit, the FB3 subelements for recalling PLC unit in real time The external zero offset variable of kinematic axis is corresponded in unit, while the FB4 subelements of PLC unit is called to activate these offsets, It performs exterior coordinate transformation and completes online compensation.
In order to enable the numerical control machining tool heat error online compensation method of the present invention is clearer, the invention also provides one kind The numerical control machining tool heat error online compensation of numerical control machining tool heat error online compensation method is applied on Siemens's 840D numerically-controlled machine tools System.As shown in Fig. 2, the numerical control machining tool heat error online compensation system structure diagram for the present invention, including:
Data acquisition module, the data collecting card being connect including temperature sensor and with temperature sensor;The temperature passes Sensor is used to acquire numerically-controlled machine tool key measuring point temperature data, and pass through data collecting card connected to it and transmit temperature data To numerical control subsystem;
Numerical control subsystem, including sequentially connected panel control unit, PLC unit and numerical control unit;The panel control Unit is embedded with numerical control machining tool heat error online compensation subelement, for running numerical tool operation system and being acquired according to data The crucial measuring point temperature data of module acquisition calculates numerically-controlled machine tool offset;The PLC unit is used for will for panel control unit Numerically-controlled machine tool offset is written to data block address;The numerical control unit is used to that numerically-controlled machine tool offset to be written for PLC unit To its external zero offset variable, numerical control machining tool heat error online compensation is performed;
The data acquisition module is by serial ports and numerical control subsystem into row data communication.
In the data acquisition module of the present invention, temperature sensor uses platinum resistance PT-100, and range is -50 DEG C -150 DEG C, Measurement error is ± 0.2 DEG C, is mounted on the crucial point position of numerically-controlled machine tool, and signal output end is connect with data collecting card, So as to the temperature data of the more accurate crucial measuring point of acquisition;Data collecting card uses 12 channels developed based on STM32 Data collecting card, effective resolution have the function of to improve filter preprocessing, support serial data transport protocol up to 12, It is connect by serial ports with the panel control unit of Siemens 840D numerically-controlled machine tools, so as to the temperature data for acquiring temperature sensor It is transmitted to panel control unit.
Data acquisition module further includes displacement sensor, and institute's displacement sensors are used to acquire numerically-controlled machine tool key measuring point pair Should at a temperature of each kinematic axis thermal error data and be transmitted to numerical control subsystem.Displacement sensor uses OD900 current vortexs position Displacement sensor, range ability 0.80mm-2.80mm, normal sensibility 5V/mm, nonlinearity 0.20%, sensitivity variations 0.10%, it is mounted on numerically-controlled machine tool and moves shaft position, realize and the thermal error data of numerical control machine tool motion axis is accurately surveyed Amount.
In the numerical control subsystem of the present invention, panel control unit has Ethernet for what Siemens's 840D numerically-controlled machine tools carried Mouth, serial ports, parallel port, USB interface, mouse interface, QWERTY keyboard and hard disk computer, operating system is English Windows XP, and digital control system operation interface software HMI Advanced are installed;The present invention carries out secondary development to human-computer interaction interface, Multiple linear regression Thermal Error model, OPC communication protocols and serial communication protocol are programmed design using C# language, as Numerical control machining tool heat error online compensation subelement is embedded into the human-computer interaction interface of panel control unit, so as to fulfill online real-time Calculate the offset of numerically-controlled machine tool;Numerical control machining tool heat error online compensation subelement is additionally provided with input window, can be to polynary The variation coefficient of linear regression Thermal Error model is configured, so as to the convenient modification to multiple linear regression Thermal Error model. Numerical control machining tool heat error online compensation subelement is controlled for convenience, the control of present invention setting panel control unit is pressed Start button of the button as numerical control machining tool heat error online compensation subelement realizes numerical control machining tool heat error online compensation subelement Seamless with panel control unit merges.
In order to be monitored in real time to numerical control conditions of machine tool, the invention also includes numerically-controlled machine tool system server, for depositing Store up the variable and file of panel control unit, PLC unit and numerical control unit;Numerical control subsystem uses OPC communication protocols and numerical control Machine tool system server is realized to the progress of numerical control conditions of machine tool in fact into row data communication by accessing numerically-controlled machine tool system server When monitor.
The USB adapter being connect the invention also includes personal computer and respectively with personal computer and PLC unit;It is described Personal computer is equipped with PLC programming modules, is used to modify to PLC unit;The USB adapter is used to implement individual Computer and PLC unit are into row data communication.Here personal computer refers to be equipped with PLC programming softwares STEP7V5.5's Laptop passes through modification of Siemens's USB adapter realization to PLC unit using STEP7 softwares.Personal computer pair PLC unit, which is modified, specially adds FB3 subelements and FB4 subelements;FB3 subelements refer to that Siemens CNC lathe provides The logical block with memory block, it acts as NC variables are write, variable can be write in NCK regions by PLC unit, will The numerically-controlled machine tool offset of the data block address of PLC unit is written to the corresponding external zero offset variable of numerical control unit;FB4 Unit is used to start a program task service in NCK regions, here for starting exterior coordinate mapping function, activates FB3 Subelement is written to the numerically-controlled machine tool offset of the external zero offset variable of numerical control unit, performs exterior coordinate transformation and completes number Control machine tool thermal error online compensation.Personal computer is modified to PLC unit and is carried out before heat error compensation starts, personal Computer is connected by the X122 interfaces of Siemens's USB adapter and numerical control unit, is realized MPI communications between the two, is passed through The communication of personal computer and PLC unit is established in the STEP7 softwares correlation setting installed on personal computer, is then utilized STEP7 software modification PLC units add FB3 subelements and FB4 subelements, modification among the main program block OB1 of PLC unit The connection of personal computer and digital control system is disconnected after the completion.
When carrying out numerical control machining tool heat error online compensation, panel control unit receives data using serial communication protocol and adopts The temperature data and thermal error data that truck and displacement sensor are transmitted by serial ports, are realized to numerically-controlled machine tool key measuring point temperature It is acquired with the data of kinematic axis Thermal Error, and utilizes the numerical control machining tool heat error online compensation subelement of embedded panel control unit Establish multiple linear regression Thermal Error model offline;Panel control unit also utilizes OPC communication protocol dynamic access numerically-controlled machine tools System server reads the numerically-controlled machine tool status data stored in numerically-controlled machine tool server, by the numerically-controlled machine tool status data of reading It is stored in numerical control machining tool heat error online compensation subelement and is updated display, realize and numerical control conditions of machine tool is supervised in real time Control;Panel control unit recycles serial communication protocol to receive the temperature data that data collecting card is transmitted by serial ports, numerical control machine Bed Thermal Error online compensation subelement according to the temperature data of acquisition calculate X, the theoretical thermal error value of tri- kinematic axis of Y, Z, and Judge whether theoretical thermal error value meets the compensation threshold value bound range of setting;If theoretical thermal error value is unsatisfactory for compensation threshold value Bound range then without compensation, resurveys temperature data and calculates thermal error value;If theoretical thermal error value meets compensation Theoretical thermal error value is then converted to offset, and offset is written PLC using OPC communication protocols by threshold value bound range The data block address of unit, then by PLC unit by numerically-controlled machine tool offset be written to numerical control unit external zero offset become Amount performs numerical control machining tool heat error online compensation.
Those of ordinary skill in the art will understand that the embodiments described herein, which is to help reader, understands this hair Bright principle, it should be understood that protection scope of the present invention is not limited to such specific embodiments and embodiments.This field Those of ordinary skill can make according to these technical inspirations disclosed by the invention various does not depart from the other each of essence of the invention The specific deformation of kind and combination, these deform and combine still within the scope of the present invention.

Claims (9)

  1. A kind of 1. numerical control machining tool heat error online compensation method, which is characterized in that include the following steps:
    A, numerically-controlled machine tool key measuring point temperature data is acquired;
    B, the crucial measuring point temperature data acquired in step A is input in multiple linear regression Thermal Error model and calculates numerical control machine The theoretical thermal error value of bed, the construction method of the multiple linear regression Thermal Error model include it is following step by step:
    The thermal error data of each kinematic axis under B1, acquisition numerically-controlled machine tool key measuring point temperature data and corresponding temperature, using mould All temperature datas of acquisition are grouped by clustering analysis method, and the temperature number of related coefficient maximum is selected in each group According to the temperature sensitive point data as the group;
    B2, according to multiple linear regression theory, with reference to the temperature sensitive point data and thermal error data acquired in step B1, establish Multiple linear regression Thermal Error model;
    C, setting compensation threshold value bound range calculates numerically-controlled machine tool according to the theoretical thermal error value being calculated in step B and mends Value is repaid, and judges whether numerically-controlled machine tool offset meets compensation threshold value bound range;If numerically-controlled machine tool offset is unsatisfactory for mending Threshold value bound range is repaid, then return to step A;If numerically-controlled machine tool offset meets compensation threshold value bound range, OPC is utilized Plc data block address is written in numerically-controlled machine tool offset by communication protocol, realizes numerical control machining tool heat error online compensation.
  2. 2. numerical control machining tool heat error online compensation method as described in claim 1, which is characterized in that further include and led to using OPC Believe protocol access numerically-controlled machine tool system server, read and preserve numerically-controlled machine tool status data.
  3. 3. numerical control machining tool heat error online compensation method as claimed in claim 2, which is characterized in that established in the step B Multiple linear regression Thermal Error model be embodied as:
    Δ K=a0+a1×ΔT1+a2×ΔT2+a3×ΔT3+a4×ΔT4+...+am×ΔTm
    Wherein, Thermal Errors of the Δ K for each kinematic axis, a0,a1,a2,a3,a4...amIt is the numerical control machine by being acquired in step B1 The model coefficient that the thermal error data of each kinematic axis is calculated under the crucial measuring point temperature data of bed and corresponding temperature, Δ T1, ΔT2,ΔT3,ΔT4...ΔTmIt is the temperature variation of temperature sensitive point, m is set temperature sensitive spot number.
  4. 4. numerical control machining tool heat error online compensation method as claimed in claim 3, which is characterized in that the temperature sensitive point Temperature variation is specially that the numerically-controlled machine tool key measuring point temperature data that online acquisition obtains subtracts initial temperature.
  5. 5. numerical control machining tool heat error online compensation method as claimed in claim 4, which is characterized in that in the B according to step The calculation formula that the theoretical thermal error value that is calculated calculates numerically-controlled machine tool offset is specially:
    Δ K '=Δ Kn-ΔKn-1
    Wherein, Δ K ' be numerically-controlled machine tool offset, Δ KnMeet compensation threshold value bound range for n-th numerically-controlled machine tool offset When the theoretical thermal error value that is calculated according to multiple linear regression Thermal Error model, Δ K0=0.
  6. 6. a kind of numerical control machining tool heat error for applying numerical control machining tool heat error online compensation method as described in claim 1 is mended online Repay system, which is characterized in that including:
    Data acquisition module, the data collecting card being connect including temperature sensor and with temperature sensor;The temperature sensor For acquiring numerically-controlled machine tool key measuring point temperature data, and pass through data collecting card connected to it and temperature data is transmitted to number Control subsystem;
    Numerical control subsystem, including sequentially connected panel control unit, PLC unit and numerical control unit;The panel control unit Numerical control machining tool heat error online compensation subelement is embedded with, for running numerical tool operation system and according to data acquisition module The crucial measuring point temperature data of acquisition calculates numerically-controlled machine tool offset;The PLC unit is used to supply panel control unit by numerical control Lathe offset is written to data block address;The numerical control unit is inclined for offset to be written its external zero for PLC unit Variable is put, performs numerical control machining tool heat error online compensation;
    The data acquisition module is by serial ports and numerical control subsystem into row data communication.
  7. 7. numerical control machining tool heat error online compensation system as claimed in claim 6, which is characterized in that further include numerically-controlled machine tool system System server, for storing the variable of panel control unit, PLC unit and numerical control unit and file;The numerical control subsystem is adopted With OPC communication protocols and numerically-controlled machine tool system server into row data communication, realized by accessing numerically-controlled machine tool system server Numerical control conditions of machine tool is monitored in real time.
  8. 8. numerical control machining tool heat error online compensation system as claimed in claim 7, which is characterized in that further include personal computer And the USB adapter being connect respectively with personal computer and numerical control subsystem;The personal computer is equipped with PLC programming moulds Block is used to modify to the PLC unit of numerical control subsystem;The USB adapter is used to implement personal computer and numerical control Subsystem is into row data communication.
  9. 9. numerical control machining tool heat error online compensation system as claimed in claim 8, which is characterized in that the personal computer pair PLC unit, which is modified, specially adds FB3 subelements and FB4 subelements;The FB3 subelements are used for the number of PLC unit The corresponding external zero offset variable of numerical control unit is written to according to the numerically-controlled machine tool offset of block address;The FB4 subelements are used In the numerically-controlled machine tool offset of the external zero offset variable of activation numerical control unit, perform exterior coordinate transformation and complete numerically-controlled machine tool Thermal Error online compensation.
CN201610159196.8A 2016-03-21 2016-03-21 Numerical control machining tool heat error online compensation method and system Expired - Fee Related CN105759718B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610159196.8A CN105759718B (en) 2016-03-21 2016-03-21 Numerical control machining tool heat error online compensation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610159196.8A CN105759718B (en) 2016-03-21 2016-03-21 Numerical control machining tool heat error online compensation method and system

Publications (2)

Publication Number Publication Date
CN105759718A CN105759718A (en) 2016-07-13
CN105759718B true CN105759718B (en) 2018-06-29

Family

ID=56345540

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610159196.8A Expired - Fee Related CN105759718B (en) 2016-03-21 2016-03-21 Numerical control machining tool heat error online compensation method and system

Country Status (1)

Country Link
CN (1) CN105759718B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106483928B (en) * 2017-01-03 2019-01-29 重庆大学 The dry chain digital control gear hobbing machine bed radial heat distortion error of cutting of one kind is in machine real-time compensation method
CN107065771B (en) * 2017-05-05 2019-02-01 大连理工大学 The thermal expansion error of semiclosed loop feed shaft models and compensation method
CN109426216B (en) * 2017-08-21 2021-05-07 沈阳高精数控智能技术股份有限公司 Rectangular plane machining depth identification method for numerical control milling machine
CN107756128B (en) * 2017-08-30 2019-10-08 华中科技大学 Thermal distortion compensation method
CN107861470A (en) * 2017-10-25 2018-03-30 沈阳机床股份有限公司 Main shaft of numerical control machine tool thermal stretching real-time error compensation method based on PMC controls
CN107918357A (en) * 2017-12-21 2018-04-17 科德数控股份有限公司 A kind of numerical control machining center Spindle thermal error dynamic compensation method and system
CN109623490A (en) * 2018-12-14 2019-04-16 重庆大学 A kind of the Thermal Error measuring system and method for lathe
CN109739182B (en) * 2019-01-31 2020-06-16 大连理工大学 Spindle thermal error compensation method insensitive to cooling system disturbance
CN109960215B (en) * 2019-04-10 2020-05-19 大连理工大学 Off-line compensation method for contour error of machining track of four-axis lathe
US11550001B2 (en) * 2020-02-12 2023-01-10 Infineon Technologies Ag Safety mechanism monitoring of autocalibrated compensation parameters
CN112129320B (en) * 2020-08-17 2022-07-22 鲁能新能源(集团)有限公司 Method and system for full-automatic calibration of MEMS-IMU sensor of unmanned aerial vehicle
CN112147951B (en) * 2020-09-28 2022-09-30 沈机(上海)智能系统研发设计有限公司 Thermal error compensation method for machining equipment, device, system, medium and terminal thereof
CN113157019A (en) * 2021-04-23 2021-07-23 湖北文理学院 Method for actively controlling temperature of servo motor of spindle of numerical control machine tool
CN113721548B (en) * 2021-09-06 2022-05-03 哈尔滨理工大学 Thermal error compensation method and system for numerical control milling head

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6167634B1 (en) * 1998-03-28 2001-01-02 Snu Precision Co., Ltd. Measurement and compensation system for thermal errors in machine tools
CN101387524A (en) * 2008-10-09 2009-03-18 北京航空航天大学 Bias temperature error testing and compensating system suitable for optical fiber gyroscope
CN103268082A (en) * 2013-05-16 2013-08-28 北京工业大学 Thermal error modeling method based on gray linear regression
CN103345199A (en) * 2013-06-19 2013-10-09 上海交通大学 Numerically-controlled machine tool error compensation system and method based on human-computer interface secondary development
CN103576604A (en) * 2012-07-25 2014-02-12 上海睿涛信息科技有限公司 Dynamic real-time compensation system for positioning errors of numerical-control machine tool

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6167634B1 (en) * 1998-03-28 2001-01-02 Snu Precision Co., Ltd. Measurement and compensation system for thermal errors in machine tools
CN101387524A (en) * 2008-10-09 2009-03-18 北京航空航天大学 Bias temperature error testing and compensating system suitable for optical fiber gyroscope
CN103576604A (en) * 2012-07-25 2014-02-12 上海睿涛信息科技有限公司 Dynamic real-time compensation system for positioning errors of numerical-control machine tool
CN103268082A (en) * 2013-05-16 2013-08-28 北京工业大学 Thermal error modeling method based on gray linear regression
CN103345199A (en) * 2013-06-19 2013-10-09 上海交通大学 Numerically-controlled machine tool error compensation system and method based on human-computer interface secondary development

Also Published As

Publication number Publication date
CN105759718A (en) 2016-07-13

Similar Documents

Publication Publication Date Title
CN105759718B (en) Numerical control machining tool heat error online compensation method and system
CN103345199B (en) Based on numerically-controllmachine machine tool error compensation system and the method for man-machine interface secondary development
CN102629121B (en) Intelligent compensation system for geometrical and heating position errors of numerical control machine
CN103792910B (en) A kind of network group control formula error dynamic compensation system of Digit Control Machine Tool
CN101943896B (en) Trajectory regeneration compensation method of numerical control machine error
CN102736557B (en) Numerical control machine tool error real-time compensation based on virtual instrument
CN103048968B (en) Network cluster-control-based numerical control machine tool error real-time compensation system and compensation method
CN103676781B (en) A kind of error dynamic compensation system based on Siemens's 840D secondary interface
CN105269404B (en) Numerically-controlled machine tool point of a knife dynamic characteristic accuracy detecting device and its method
CN105397560B (en) One kind is dry to cut chain digital control gear hobbing machine bed and workpiece method for thermal deformation error compensation
CN103941642B (en) Thermal Error Intelligent Measurement compensates system
CN101620431A (en) Digital control method and system for carrying out real-time compensation for thermal deformation errors
CN101571712A (en) Monitoring method with processing self-adapting function and on-machine quality detection
CN108241338A (en) A kind of numerically-controlled machine tool heat error compensation control device
CN204711699U (en) Digit Control Machine Tool point of a knife dynamic characteristic accuracy detecting device
CN208945752U (en) A kind of thermal compensation device of electric main shaft of digital control machine tool
CN107066726B (en) Numerical control machine tool rotating shaft perpendicularity error modeling method
Liu et al. A dynamic linearization modeling of thermally induced error based on data-driven control for CNC machine tools
CN117608241B (en) Method, system, device and medium for updating digital twin model of numerical control machine tool
Stoop et al. Cloud-based thermal error compensation with a federated learning approach
CN107024907A (en) A kind of embedded Life cycle machine tool thermal error compensation system and method
CN110045681B (en) External compensation method for numerical control machine tool position-related errors based on position prediction
CN108803485B (en) I5iport protocol-based external thermal error compensation method for numerical control machine tool
CN117170308A (en) Machine tool dynamic error compensation method and system based on instruction sequence analysis
CN114952422B (en) Real-time prediction method for machining tool state of numerical control machine tool

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180629