CN112859738A - Data acquisition method, medium, electronic equipment and machine tool - Google Patents

Data acquisition method, medium, electronic equipment and machine tool Download PDF

Info

Publication number
CN112859738A
CN112859738A CN202011634050.7A CN202011634050A CN112859738A CN 112859738 A CN112859738 A CN 112859738A CN 202011634050 A CN202011634050 A CN 202011634050A CN 112859738 A CN112859738 A CN 112859738A
Authority
CN
China
Prior art keywords
data acquisition
tool
machine tool
program
numerical control
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.)
Pending
Application number
CN202011634050.7A
Other languages
Chinese (zh)
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.)
Shenji Shanghai Intelligent System R&d Design Co ltd
Original Assignee
Shenji Shanghai Intelligent System R&d Design Co ltd
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 Shenji Shanghai Intelligent System R&d Design Co ltd filed Critical Shenji Shanghai Intelligent System R&d Design Co ltd
Priority to CN202011634050.7A priority Critical patent/CN112859738A/en
Publication of CN112859738A publication Critical patent/CN112859738A/en
Pending legal-status Critical Current

Links

Images

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/401Numerical 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 measuring, e.g. calibration and initialisation, measuring workpiece for machining purposes
    • 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/34Director, elements to supervisory
    • G05B2219/34242For measurement only

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)

Abstract

The invention provides a data acquisition method, a medium, electronic equipment and a machine tool. The data acquisition method comprises the following steps: monitoring the running state of the machine tool; when the machine tool is in a normal operation state, periodically sending an interrupt request to the numerical control system, so that the numerical control system interrupts an operation program of the machine tool according to the interrupt request and sends an interrupt response signal to the programmable logic controller; after receiving the interrupt response signal, executing an interrupt logic. Compared with the traditional scheme, the data acquisition method has higher accuracy and reliability.

Description

Data acquisition method, medium, electronic equipment and machine tool
Technical Field
The invention belongs to the field of numerical control machine tools, relates to a data acquisition method, and particularly relates to a data acquisition method, a medium, electronic equipment and a machine tool.
Background
At present, a main shaft is used as a core component of a numerical control machine tool, and the machining precision and efficiency of the machine tool are influenced to a great extent. Along with the rotation of the spindle, the heat productivity and the temperature of the spindle and the transmission parts of the motor are continuously changed due to mutual friction, the heat exchange rate between the machine tool and the external environment is also continuously changed, and the factors can cause the spindle thermal elongation of the machine tool to be continuously changed.
For some parts with relatively high dimensional accuracy in the depth direction (negative Z-axis direction), the elongation of the spindle in the depth direction seriously affects the machining accuracy. A large number of researches show that in precision machining, manufacturing errors caused by thermal deformation of a machine tool account for 40% -70% of total errors, are one of the most main factors influencing the machining precision of the machine tool, and have attracted attention and research of a large number of scholars at home and abroad.
In a plurality of modes of reducing the thermal elongation of the machine tool, the method of compensating the thermal error through the model does not need to change the structures of a machine and a main shaft, has relatively low cost and simpler realization, and can achieve higher precision after compensating the error under the condition of sufficient model precision. In the thermal error compensation technology, the current core problem and technical difficulty is to establish a mathematical model with high prediction precision and strong robustness. In order to obtain a thermal error compensation mathematical model with high prediction precision, the corresponding relation between related factors such as accurate temperature and rotating speed and thermal errors must be obtained, and the difficulty in obtaining the data is how to accurately acquire the thermal elongation of the spindle under actual processing or a working condition similar to the actual processing.
In the prior art, a method for measuring the thermal elongation of a spindle of a numerical control machine tool comprises the following steps: a non-contact displacement sensor is arranged on a main shaft end cover at the lower end of a main shaft box, and the thermal elongation is measured by the displacement sensor in the rotating process of the main shaft. However, in practical applications, the inventor found that the spindle is heated and then extends in the depth direction as a whole, and the non-contact sensor mounted on the spindle head can only measure the thermal extension of the mover relative to the spindle head, but cannot obtain the total extension of the spindle in the depth direction, so that the conventional spindle thermal extension measurement method is not highly accurate, and it is also difficult to obtain a high prediction accuracy from a model created from the measurement data.
Disclosure of Invention
In view of the above-mentioned shortcomings of the prior art, the present invention provides a data acquisition method, a medium, an electronic device and a machine tool, which are used for solving the problem of low measurement accuracy of spindle thermal elongation in the prior art.
In order to achieve the above and other related objects, a first aspect of the present invention provides a data acquisition method applied to a programmable logic controller of a machine tool, the machine tool further including a numerical control system, a data acquisition module, and a tool for measuring a position of a tool nose point, the data acquisition method including: monitoring the running state of the machine tool; when the machine tool is in a normal operation state, periodically sending an interrupt request to the numerical control system, so that the numerical control system interrupts an operation program of the machine tool according to the interrupt request and sends an interrupt response signal to the programmable logic controller; executing an interrupt logic after receiving the interrupt response signal; the interrupt logic includes: sending a data acquisition request to the data acquisition module so that the data acquisition module calls a data acquisition program after receiving the data acquisition request, and sending a starting signal to the numerical control system after the data acquisition program is called to start the data acquisition program; the data acquisition program is used for controlling the tool for measuring the position of the tool nose point to acquire the position of the tool nose point, acquiring the heat elongation of the spindle of the machine tool according to the position of the tool nose point, and sending an acquisition completion signal to the programmable logic controller after the data acquisition program is executed; and after receiving the acquisition completion signal, sending a return signal to the numerical control system, so that the numerical control system continues to execute the operation program of the machine tool after receiving the return signal.
In an embodiment of the first aspect, the interrupt request includes a reset signal and a virtual interrupt signal; and after receiving the interrupt request, the numerical control system completes resetting according to the reset signal and interrupts the running program of the machine tool according to the virtual interrupt signal.
In an embodiment of the first aspect, the data acquisition method further includes: when the running program of the machine tool is requested to be interrupted, if the machine tool is in a state that the machine tool cannot be interrupted, the current interruption request is terminated; and/or exiting the interrupt logic if the machine tool is in an abnormal state during execution of the interrupt logic.
In an embodiment of the first aspect, the method for obtaining the thermal elongation of the spindle of the machine tool according to the position of the tool tip point in any cycle includes: and acquiring the thermal elongation of the main shaft in the period according to the position of the tool nose point acquired in the period and the position of the tool nose point in a cold state.
In an embodiment of the first aspect, the machine tool further comprises a data acquisition tool; the data acquisition program is also used for controlling the data acquisition tool to acquire the data related to the thermal elongation of the spindle of the machine tool.
The invention provides another data acquisition method, which is applied to a numerical control system of a machine tool, wherein the machine tool further comprises a programmable logic controller, a data acquisition module and a tool for measuring the position of a tool nose point, and the data acquisition method comprises the following steps: acquiring an interrupt request sent by the programmable logic controller; interrupting the running program of the machine tool according to an interrupt request sent by the programmable logic controller, and sending an interrupt response signal to the programmable logic controller so that the programmable logic controller executes an interrupt logic after receiving the interrupt response signal; after receiving a starting signal sent by the programmable logic controller, starting a data acquisition program; the data acquisition program is used for controlling the tool for measuring the position of the tool nose point to acquire the position of the tool nose point, acquiring the heat elongation of the spindle of the machine tool according to the position of the tool nose point, and sending an acquisition completion signal to the programmable logic controller after the data acquisition program is executed; after receiving a return signal sent by the programmable logic controller, continuing to execute the running program of the machine tool; the interrupt logic includes: sending a data acquisition request to the data acquisition module so that the data acquisition module calls the data acquisition program after receiving the data acquisition request, and sending a starting signal to the numerical control system after the data acquisition program is called; and after receiving the acquisition completion signal, sending the return signal to the numerical control system.
The third aspect of the present invention provides another data acquisition method, which is applied to a data acquisition module of a machine tool, wherein the machine tool further includes a programmable logic controller, a numerical control system, and a tool for measuring a position of a tool nose point, and the data acquisition method includes: setting a starting measurement position of the tool tip position measuring tool; when the programmable logic controller executes interrupt logic, acquiring a data acquisition request sent by the programmable logic controller and calling a data acquisition program; the data acquisition program is used for controlling the tool for measuring the position of the tool nose point to acquire the position of the tool nose point, acquiring the heat elongation of the spindle of the machine tool according to the position of the tool nose point, and sending an acquisition completion signal to the programmable logic controller after the data acquisition program is executed; the interrupt logic includes: sending the data acquisition request to the data acquisition module, and sending a starting signal to the numerical control system after the data acquisition program is called to start the data acquisition program; and after receiving the acquisition completion signal, sending a return signal to the numerical control system, so that the numerical control system continues to execute the operation program of the machine tool after receiving the return signal.
A fourth aspect of the invention provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the data acquisition method of any of the first, second and/or third aspects of the invention.
A fifth aspect of the present invention provides an electronic apparatus, comprising: a memory having a computer program stored thereon; a processor, communicatively connected to the memory, configured to implement the data acquisition method according to any one of the first, second and/or third aspects of the present invention when executing the computer program.
A sixth aspect of the present invention provides a machine tool comprising: a programmable logic controller for implementing the data acquisition method of any one of the first aspect of the invention; the numerical control system is in communication connection with the programmable logic controller and is used for realizing the data acquisition method of the second aspect of the invention; the data acquisition module is in communication connection with the programmable logic controller and the numerical control system and is used for realizing the data acquisition method in the third aspect of the invention; and the tool for measuring the position of the tool nose point is in communication connection with the programmable logic controller and the numerical control system and is used for acquiring the position of the tool nose point.
As described above, the data acquisition method, medium, electronic device, and machine tool according to the present invention have the following advantages:
in the data acquisition method, when the data acquisition module executes the data acquisition program, the data acquisition module can control the tool tip position measuring tool to acquire the position of the tool tip point, and acquire the spindle thermal elongation of the machine tool according to the position of the tool tip point. Therefore, the spindle thermal elongation is obtained according to the position of the tool tip point, and the spindle thermal elongation comprises the thermal elongation of the mover relative to the spindle box, the spindle box thermal elongation, the tool thermal elongation, the Z-direction lead screw thermal elongation of the machine tool and the like, so that the spindle has higher accuracy and reliability.
Drawings
FIG. 1A is a flow chart illustrating a data collection method according to an embodiment of the present invention.
FIG. 1B is a flowchart illustrating a step S13 of the data collection method according to an embodiment of the invention.
FIG. 2 is a flow chart of a data acquisition method according to another embodiment of the present invention.
FIG. 3 is a flow chart of a data acquisition method according to another embodiment of the present invention.
FIG. 4 is a graph of spindle thermal elongation obtained by the data acquisition method of the present invention in one embodiment.
FIG. 5 is a schematic diagram of a machine tool according to an embodiment of the present invention.
Fig. 6 is a schematic diagram of a machine tool according to an embodiment of the present invention executing a data acquisition method.
Description of the element reference numerals
5 machine tool
51 programmable logic controller
52 numerical control system
53 data acquisition module
54 tool tip point position measuring tool
S11-S13
S131 to S132 steps
S21-S24
S31-S32
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, and the drawings only show the components related to the present invention rather than being drawn according to the number, shape and size of the components in actual implementation, and the type, number and proportion of the components in actual implementation may be changed arbitrarily, and the layout of the components may be more complicated. Moreover, in this document, relational terms such as "first," "second," and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
In the prior art, a method for measuring the thermal elongation of a spindle of a numerical control machine tool comprises the following steps: a non-contact displacement sensor is arranged on a main shaft end cover at the lower end of a main shaft box, and the thermal elongation is measured by the displacement sensor in the rotating process of the main shaft. However, the entire spindle is elongated in the depth direction after the spindle is heated, and the non-contact displacement sensor mounted on the spindle head can only measure the thermal elongation of the mover with respect to the spindle head, and cannot obtain the total elongation of the spindle in the depth direction.
Another method for measuring the thermal elongation of a spindle of a numerically-controlled machine tool in the prior art is as follows: the detection rod is arranged on a main shaft of the machine tool, the non-contact displacement sensor is fixedly arranged on the workbench, the detection rod is controlled to rotate at different speeds, and the position change of the bottom end and the side surface of the detection rod is measured by the non-contact displacement sensor. However, this measurement method cannot move X, Y, Z axes and is constrained by the actual machining environment (e.g., coolant, tool change, etc. motion) and cannot obtain the thermal elongation in the actual machining. Moreover, the measurement method has great limitation on the measurement procedure, the spindle can only idle for a long time at a fixed position in the measurement process, and the thermal elongation of the Z-direction screw rod and other transmission pairs in the machining process cannot be predicted. Correspondingly, instruments and equipment for acquiring the thermal elongation of the numerical control machining center are limited by the inconvenience of using the rotation of the main shaft and the movement of each shaft.
In addition, the displacement sensors adopted in the two measurement methods are often high in price and inconvenient to install, and are difficult to apply to actual production in a large scale. Therefore, the existing method has no instrument which is simple to use, convenient and reliable and can ensure the measurement precision.
In order to solve the above problems, the present invention provides a data acquisition method. In the data acquisition method, the data acquisition program can control the tool for measuring the position of the tool nose point to acquire the position of the tool nose point when being executed, and acquire the thermal elongation of the spindle of the machine tool according to the position of the tool nose point. Therefore, the spindle thermal elongation is obtained according to the position of the tool tip point, the spindle thermal elongation comprises the thermal elongation of the mover relative to the spindle box, the spindle box thermal elongation, the tool thermal elongation, the Z-direction lead screw thermal elongation of the machine tool and the like, and the data acquisition method can acquire the thermal elongation in actual processing or under the condition similar to the actual processing, so that the accuracy and the reliability are higher. In addition, the data acquisition method can periodically acquire the thermal elongation in X, Y and Z directions of the numerical control machine tool in the running process of the machine tool, greatly simplifies the inconvenience of manual acquisition of the traditional instrument, has no special requirement on whether the feed shaft of the machine tool moves, and simultaneously solves the defect that the traditional measurement method can only rotate the main shaft at the same point.
In an embodiment of the present invention, the data collection method is applied to a Programmable Logic Controller (PLC) of a machine tool. Besides the programmable logic controller, the machine tool also comprises a numerical control system (CNC), a data acquisition module and a tool tip position measuring tool; the data acquisition module is, for example, a data acquisition APP developed based on CNC; the tool tip position measuring tool includes but is not limited to a tool setting gauge, a measuring head and the like. Specifically, referring to fig. 1A, in an embodiment of the present invention, the data acquisition method includes:
and S11, monitoring the running state of the machine tool.
And S12, when the machine tool is in a normal operation state, periodically sending an interrupt request to the numerical control system, so that the numerical control system interrupts the operation program of the machine tool according to the interrupt request and sends an interrupt response signal to the programmable logic controller. The operation program of the machine tool can be a working program operated when the machine tool works normally, and can also be a modeling program operated in the modeling process of the machine tool.
And S13, executing an interrupt logic after receiving the interrupt response signal sent by the numerical control system.
Specifically, referring to fig. 1B, the interrupt logic in the present embodiment includes:
s131, sending a data acquisition request to the data acquisition module so that the data acquisition module calls a data acquisition program after receiving the data acquisition request; after the data acquisition program is called, sending a starting signal to the numerical control system to start the data acquisition program; the data acquisition program is used for controlling the tool for measuring the position of the tool nose point to acquire the position of the tool nose point, acquiring the heat elongation of the spindle of the machine tool according to the position of the tool nose point, and sending an acquisition completion signal to the programmable logic controller after the data acquisition program is executed. Wherein the acquisition completion signal is sent by the data acquisition module.
Optionally, in any cycle, the implementation method for acquiring the spindle thermal elongation of the machine tool according to the position of the tool tip point includes: and acquiring the thermal elongation of the main shaft in the period according to the position of the tool nose point acquired in the period and the position of the tool nose point in a cold state. For example, the spindle thermal elongation in the cycle can be obtained by subtracting the position of the nose point in the cold state from the position of the nose point obtained in the cycle.
Preferably, the present embodiment uses a tool setting gauge or a measuring head to obtain the position of the tool tip point. At this time, the accuracy of the acquisition level of the spindle thermal elongation in the embodiment can reach 0.02mm, so that the data acquisition method described in the embodiment has higher acquisition accuracy. In addition, when the tool setting gauge or the measuring head is adopted, the data acquisition method is not easily influenced by the internal processing environment of the machine tool, and the practical use advantage is obvious.
And S132, after receiving the acquisition completion signal, sending a return signal to the numerical control system, so that the numerical control system continues to execute the operation program of the machine tool after receiving the return signal. After receiving the return signal, the numerical control system firstly returns the position of the running program before interruption, and then continues to execute the running program from the position. Thereafter, the programmable logic controller returns to step S11 to continue the data acquisition method.
In this embodiment, the interrupt logic is executed only after the interrupt response signal is received, thereby ensuring that a data acquisition request is sent to the data acquisition module and the data acquisition program is called only after the machine tool is in a safe state in the signal interaction process.
According to the above description, the data acquisition program can control the tool for measuring the position of the tool nose point to acquire the position of the tool nose point when executed, and acquire the spindle thermal elongation of the machine tool according to the position of the tool nose point. Therefore, in this embodiment, the collection point of the spindle thermal elongation is a tool nose point of the spindle tool, and the point is an absolute position of the processing point, which can ensure that the collected object is located at the final end of the whole elongation link, so the spindle thermal elongation obtained in this embodiment includes the thermal elongation of the mover relative to the spindle box, the thermal elongation of the tool, the thermal elongation of the Z-direction screw of the machine tool, and the like. Moreover, the data acquisition method can periodically acquire the thermal elongation in X, Y, Z three directions of the numerical control machine tool in the running program process of the machine tool, greatly simplifies the inconvenience of manual acquisition of the traditional instrument, has no special requirement on whether the feed shaft of the machine tool moves, and simultaneously solves the defect that the traditional measurement method can only rotate the main shaft at the same point.
In addition, for the numerical control machine tool with the tool setting gauge or the measuring head, the data acquisition method can be realized only by upgrading the programmable logic controller and the installation package, and the improvement on the machine tool is small and easy to realize. In addition, the traditional measurement mode needs to install a high-precision displacement sensor and also needs a special auxiliary installation instrument, while the embodiment only needs to use a tool for measuring the position of the tool nose point such as a tool setting gauge, and the hardware cost is relatively low.
In an embodiment of the present invention, the interrupt request includes a reset signal and a dummy interrupt signal; and after receiving the interrupt request, the numerical control system completes self reset according to the reset signal and interrupts the running program of the machine tool according to the virtual interrupt signal.
In an embodiment of the present invention, the data acquisition method further includes: when the operation program of the machine tool is requested to be interrupted, if the machine tool is in an uninterruptible state, for example, the machine tool carries out machine tool changing or other uninterruptible actions, the current interruption request is terminated until the machine tool jumps out of the uninterruptible state, and then the operation program of the machine tool is requested to be interrupted again in the next period.
In an embodiment of the present invention, the data acquisition method further includes: and in the process of executing the interrupt logic, the programmable logic controller continuously monitors the running state of the machine tool, and if the machine tool is found to be in an abnormal state, the programmable logic controller automatically exits the interrupt logic so as to ensure the safety of the machine tool in the abnormal state and further ensure that the machine tool interrupts the running program only in a normal state. The abnormal state is, for example, a state in which the machine tool is reset or suddenly stopped and the like jumps out of the running program.
In an embodiment of the invention, the machine tool further includes a data acquisition tool; the data acquisition program is also used for controlling the data acquisition tool to acquire the data related to the thermal elongation of the spindle of the machine tool. Wherein, the data related to the thermal elongation of the spindle refers to direct or indirect factors causing the thermal elongation of the spindle of the machine tool in X, Y, Z directions, such as: the rotational speed, power, key point temperature, etc. of the machine tool.
The embodiment can acquire the thermal elongation of the spindle and the data related to the thermal elongation of the spindle, and the two data can be directly used for establishing a high-precision thermal elongation model. Due to the fact that the acquisition precision is high, the prediction precision which can be achieved by a model established based on the two data is greatly improved.
The invention also provides another data acquisition method which is applied to a numerical control system of the machine tool. Besides the numerical control system, the machine tool also comprises a programmable logic controller, a data acquisition module and a tool for measuring the position of the tool nose point. Referring to fig. 2, in an embodiment of the present invention, the data acquisition method includes:
and S21, acquiring the interrupt request sent by the programmable logic controller. The programmable logic controller can continuously monitor the running state of the machine tool, and when the machine tool is monitored to be in a normal running state, the programmable logic controller can periodically send an interrupt request to the numerical control system.
And S22, interrupting the running program of the machine tool according to the interruption request sent by the programmable logic controller, and sending an interruption response signal to the programmable logic controller after the running program is interrupted, so that the programmable logic controller executes an interruption logic after receiving the interruption response signal. Wherein the interrupt logic comprises: sending a data acquisition request to the data acquisition module so that the data acquisition module calls the data acquisition program after receiving the data acquisition request; after the data acquisition program is called, a starting signal is sent to the numerical control system; and after receiving the acquisition completion signal, sending a return signal to the numerical control system.
S23, after receiving a starting signal sent by the programmable logic controller, starting a data acquisition program; the data acquisition program is used for controlling the tool for measuring the position of the tool nose point to acquire the position of the tool nose point, acquiring the heat elongation of the spindle of the machine tool according to the position of the tool nose point, and sending an acquisition completion signal to the programmable logic controller after the data acquisition program is executed.
And S24, after receiving the return signal sent by the programmable logic controller, continuing to execute the operation program of the machine tool. Specifically, after receiving the return signal, the numerical control system firstly returns to the position of the running program before interruption, and then continues to execute the running program from the position.
The invention also provides a third data acquisition method, which is applied to a data acquisition module of the machine tool, wherein the data acquisition module can be a data acquisition APP developed based on a numerical control system. Besides the data acquisition module, the machine tool also comprises a programmable logic controller, a numerical control system and a tool for measuring the position of the tool nose point. Specifically, referring to fig. 3, in an embodiment of the present invention, the data acquisition method includes:
and S31, setting the start measuring position of the tool for measuring the position of the knife point.
S32, when the programmable logic controller executes interrupt logic, acquiring a data acquisition request sent by the programmable logic controller and calling a data acquisition program; the data acquisition program is used for controlling the tool for measuring the position of the tool nose point to acquire the position of the tool nose point, acquiring the heat elongation of the spindle of the machine tool according to the position of the tool nose point, and sending an acquisition completion signal to the programmable logic controller after the data acquisition program is executed. And after receiving the acquisition completion signal, the programmable logic controller sends a return signal to the numerical control system, so that the numerical control system continues to execute the operation program of the machine tool after receiving the return signal.
Wherein the interrupt logic comprises: sending the data acquisition request to the data acquisition module, and sending a starting signal to the numerical control system after the data acquisition program is called to start the data acquisition program; and after receiving the acquisition completion signal, sending a return signal to the numerical control system, so that the numerical control system continues to execute the operation program of the machine tool after receiving the return signal.
In an embodiment of the present invention, the data acquisition module further includes a UI interface. A user can set the starting measurement position of the tool for measuring the position of the tool nose point through the UI interactive interface, can also set parameters such as a measurement mode, a sampling period, measurement times and the like through the UI interactive interface, and can also select the tool number and the tool complement number of the tool to be measured through the UI interactive interface.
In addition, the user can generate the data acquisition program by clicking a corresponding button of the UI interactive interface, and at the moment, the data acquisition module automatically generates the data acquisition program and stores the data acquisition program in the system. The user can confirm that the position of the data acquisition program is accurate and the measurement process is safe by independently clicking the execution program, and obtain the initial value of the current spindle tool length, thereby completing the debugging step of the data acquisition program.
And when the spindle thermal elongation measurement system is applied specifically, a user sends an automatic measurement mode starting instruction through the UI so as to start an automatic measurement mode of the spindle thermal elongation. After the automatic measuring mode is started, the programmable logic controller can synchronously read the start of the automatic measuring mode and starts to automatically monitor the running state of the machine tool, and when the machine tool is in a normal running state, the programmable logic controller periodically enters interrupt logic.
When the operation program of the machine tool is a modeling program, the data acquisition method can automatically and periodically interrupt the modeling program and acquire the spindle thermal elongation and the data related to the spindle thermal elongation by executing the data acquisition program. The method comprises the steps that after the operation of the modeling program is finished, the whole-process thermal elongation data of the thermal elongation of the machine tool from the rising stage to the balancing stage and then to the initial position can be collected, the collection period of the data is constant in the process, and the collection precision can be accurate to within 0.02 mm. Fig. 4 shows a spindle thermal elongation curve obtained in the present embodiment, wherein the horizontal axis represents time and the vertical axis represents spindle thermal elongation. As can be seen from the figure, the spindle thermal elongation curve acquired by the embodiment has smooth change, obvious trend, small fluctuation and high precision.
Preferably, the data collected by said data collection program can be stored in the memory of the machine tool, for example, in the format "date + program name. txt" to be stored under the fixed path of the numerical control system.
Based on the above description of the data acquisition method, the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the data acquisition method of the present invention.
Based on the description of the data acquisition method, the invention also provides electronic equipment. The electronic device includes: a memory having a computer program stored thereon; and the processor is in communication connection with the memory and is used for realizing the data acquisition method when the computer program is executed. The electronic equipment comprises a programmable logic controller, a numerical control system and/or a data acquisition module.
Based on the description of the data acquisition method, the invention also provides a machine tool. Referring to fig. 5, in an embodiment of the present invention, the machine tool 5 includes a programmable logic controller 51, a numerical control system 52, a data acquisition module 53, and a tool 54 for measuring a position of a tool nose point. The programmable logic controller 51 is configured to implement the data acquisition method shown in steps S11 to S13. The numerical control system 52 is in communication connection with the programmable logic controller 51, and is configured to implement the data acquisition method shown in steps S21-S24. The data acquisition module 53 is in communication connection with the programmable logic controller 51 and the numerical control system 52, and is configured to implement the data acquisition methods shown in steps S31 to S32. The tool tip point position measuring tool is in communication connection with the programmable logic controller 51 and the numerical control system 52 and is used for acquiring the position of the tool tip point.
Referring to fig. 6, based on the machine tool 5 of the present embodiment, the data acquisition method includes:
and S61, the programmable logic controller monitors the running state of the machine tool and periodically sends an interrupt request to the numerical control system.
And S62, after receiving the interrupt request, the numerical control system interrupts the running program of the machine tool and sends an interrupt response signal to the programmable logic controller after the running program is interrupted.
And S63, after receiving the interrupt response signal, the programmable logic controller sends a data acquisition request to the data acquisition module.
And S64, the data acquisition module calls a data acquisition program after receiving the data acquisition request.
And S65, sending a starting signal to the numerical control system by the programmable logic controller after monitoring that the data acquisition program is called.
And S66, after receiving the starting signal, the numerical control system starts the data acquisition program to acquire the thermal elongation of the machine tool spindle and/or the data related to the thermal elongation of the spindle.
And S67, after the execution of the data acquisition program is completed, the data acquisition module sends an acquisition completion signal to the programmable logic controller.
And S68, after receiving the acquisition completion signal, the programmable logic controller sends a return signal to the numerical control system.
And S69, after receiving the return signal, the numerical control system continues to execute the operation program of the machine tool.
And repeating the steps S61-S69 until enough data are acquired or the operation program of the machine tool is completely executed.
The protection scope of the data acquisition method of the present invention is not limited to the execution sequence of the steps listed in this embodiment, and all the solutions implemented by adding, subtracting, and replacing steps in the prior art according to the principles of the present invention are included in the protection scope of the present invention.
In the data acquisition method, the data acquisition program can control the tool for measuring the position of the tool nose point to acquire the position of the tool nose point in the execution process, and acquire the thermal elongation of the spindle of the machine tool according to the position of the tool nose point. Therefore, in this embodiment, the collection point of the spindle thermal elongation is the tool nose point of the spindle tool, and this point is the absolute position of the processing point, and it can be ensured that the collected object is located at the final end of the whole elongation link, so the spindle thermal elongation obtained in this embodiment includes the thermal elongation of the mover relative to the spindle box, the thermal elongation of the tool, the thermal elongation of the Z-direction screw of the machine tool, and the like, and thus has higher accuracy and reliability.
In conclusion, the present invention effectively overcomes various disadvantages of the prior art and has high industrial utilization value.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.

Claims (10)

1. A data acquisition method is characterized by being applied to a programmable logic controller of a machine tool, wherein the machine tool further comprises a numerical control system, a data acquisition module and a tool for measuring the position of a tool nose point, and the data acquisition method comprises the following steps:
monitoring the running state of the machine tool;
when the machine tool is in a normal operation state, periodically sending an interrupt request to the numerical control system, so that the numerical control system interrupts an operation program of the machine tool according to the interrupt request and sends an interrupt response signal to the programmable logic controller;
executing an interrupt logic after receiving the interrupt response signal;
the interrupt logic includes:
sending a data acquisition request to the data acquisition module so that the data acquisition module calls a data acquisition program after receiving the data acquisition request, and sending a starting signal to the numerical control system after the data acquisition program is called to start the data acquisition program; the data acquisition program is used for controlling the tool for measuring the position of the tool nose point to acquire the position of the tool nose point, acquiring the heat elongation of the spindle of the machine tool according to the position of the tool nose point, and sending an acquisition completion signal to the programmable logic controller after the data acquisition program is executed;
and after receiving the acquisition completion signal, sending a return signal to the numerical control system, so that the numerical control system continues to execute the operation program of the machine tool after receiving the return signal.
2. The data acquisition method according to claim 1, characterized in that: the interrupt request includes a reset signal and a virtual interrupt signal; and after receiving the interrupt request, the numerical control system completes resetting according to the reset signal and interrupts the running program of the machine tool according to the virtual interrupt signal.
3. The data acquisition method of claim 1, further comprising:
when the running program of the machine tool is requested to be interrupted, if the machine tool is in a state that the machine tool cannot be interrupted, the current interruption request is terminated; and/or
And in the process of executing the interrupt logic, if the machine tool is in an abnormal state, exiting the interrupt logic.
4. The data acquisition method according to claim 1, wherein the method for acquiring the thermal elongation of the spindle of the machine tool according to the position of the tool tip point in any cycle comprises the following steps: and acquiring the thermal elongation of the main shaft in the period according to the position of the tool nose point acquired in the period and the position of the tool nose point in a cold state.
5. The data acquisition method according to claim 1, characterized in that: the machine tool further comprises a data acquisition tool; the data acquisition program is also used for controlling the data acquisition tool to acquire the data related to the thermal elongation of the spindle of the machine tool.
6. The data acquisition method is characterized by being applied to a numerical control system of a machine tool, wherein the machine tool further comprises a programmable logic controller, a data acquisition module and a tool for measuring the position of a tool nose point, and the data acquisition method comprises the following steps:
acquiring an interrupt request sent by the programmable logic controller;
interrupting the running program of the machine tool according to the interruption request, and sending an interruption response signal to the programmable logic controller so that the programmable logic controller executes an interruption logic after receiving the interruption response signal;
after receiving a starting signal sent by the programmable logic controller, starting a data acquisition program; the data acquisition program is used for controlling the tool for measuring the position of the tool nose point to acquire the position of the tool nose point, acquiring the heat elongation of the spindle of the machine tool according to the position of the tool nose point, and sending an acquisition completion signal to the programmable logic controller after the data acquisition program is executed;
after receiving a return signal sent by the programmable logic controller, continuing to execute the running program of the machine tool;
the interrupt logic includes:
sending a data acquisition request to the data acquisition module so that the data acquisition module calls the data acquisition program after receiving the data acquisition request, and sending a starting signal to the numerical control system after the data acquisition program is called;
and after receiving the acquisition completion signal, sending the return signal to the numerical control system.
7. A data acquisition method is characterized by being applied to a data acquisition module of a machine tool, wherein the machine tool further comprises a programmable logic controller, a numerical control system and a tool tip position measuring tool, and the data acquisition method comprises the following steps:
setting a starting measurement position of the tool tip position measuring tool;
when the programmable logic controller executes interrupt logic, acquiring a data acquisition request sent by the programmable logic controller and calling a data acquisition program; the data acquisition program is used for controlling the tool for measuring the position of the tool nose point to acquire the position of the tool nose point, acquiring the heat elongation of the spindle of the machine tool according to the position of the tool nose point, and sending an acquisition completion signal to the programmable logic controller after the data acquisition program is executed;
the interrupt logic includes:
sending the data acquisition request to the data acquisition module, and sending a starting signal to the numerical control system after the data acquisition program is called to start the data acquisition program;
and after receiving the acquisition completion signal, sending a return signal to the numerical control system, so that the numerical control system continues to execute the operation program of the machine tool after receiving the return signal.
8. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program, when executed by a processor, implements the data acquisition method of any one of claims 1-7.
9. An electronic device, characterized in that the electronic device comprises:
a memory having a computer program stored thereon;
a processor, communicatively coupled to the memory, for implementing the data acquisition method of any of claims 1-7 when executing the computer program.
10. A machine tool, characterized in that it comprises:
a programmable logic controller for implementing the data acquisition method of any one of claims 1-5;
the numerical control system is in communication connection with the programmable logic controller and is used for realizing the data acquisition method in claim 6;
the data acquisition module is in communication connection with the programmable logic controller and the numerical control system and is used for realizing the data acquisition method of claim 7;
and the tool for measuring the position of the tool nose point is in communication connection with the programmable logic controller and the numerical control system and is used for acquiring the position of the tool nose point.
CN202011634050.7A 2020-12-31 2020-12-31 Data acquisition method, medium, electronic equipment and machine tool Pending CN112859738A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011634050.7A CN112859738A (en) 2020-12-31 2020-12-31 Data acquisition method, medium, electronic equipment and machine tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011634050.7A CN112859738A (en) 2020-12-31 2020-12-31 Data acquisition method, medium, electronic equipment and machine tool

Publications (1)

Publication Number Publication Date
CN112859738A true CN112859738A (en) 2021-05-28

Family

ID=76000092

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011634050.7A Pending CN112859738A (en) 2020-12-31 2020-12-31 Data acquisition method, medium, electronic equipment and machine tool

Country Status (1)

Country Link
CN (1) CN112859738A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115256047A (en) * 2022-09-01 2022-11-01 珠海格力智能装备技术研究院有限公司 Method and device for detecting thermal elongation of spindle of numerical control machine tool and numerical control machine tool

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1402233A (en) * 1972-05-08 1975-08-06 Ibm Adaptive machine tool control system
CN103077137A (en) * 2011-10-25 2013-05-01 北京大豪科技股份有限公司 Interrupt control method and interrupt control unit
CN108188835A (en) * 2017-12-08 2018-06-22 西安交通大学 Main shaft of numerical control machine tool thermal stretching test device and test method based on machine vision
CN108372428A (en) * 2016-12-21 2018-08-07 中国航空制造技术研究院 The method and means for correcting of five-axis machine tool structural failure automatic measurement compensation
CN108415369A (en) * 2018-05-28 2018-08-17 河北工业大学 A kind of main shaft of numerical control machine tool Thermal Error intelligent perception system and cognitive method
CN109753021A (en) * 2019-03-21 2019-05-14 湖北汽车工业学院 A kind of numerically-controlled machine tool electrical parameter acquisition system and method
CN111324527A (en) * 2019-12-09 2020-06-23 许华敏 Device and method for testing interrupt program through data acquisition mode
CN111443659A (en) * 2020-06-02 2020-07-24 湖北理工学院 Remote monitoring control system for numerical control machine tool

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1402233A (en) * 1972-05-08 1975-08-06 Ibm Adaptive machine tool control system
CN103077137A (en) * 2011-10-25 2013-05-01 北京大豪科技股份有限公司 Interrupt control method and interrupt control unit
CN108372428A (en) * 2016-12-21 2018-08-07 中国航空制造技术研究院 The method and means for correcting of five-axis machine tool structural failure automatic measurement compensation
CN108188835A (en) * 2017-12-08 2018-06-22 西安交通大学 Main shaft of numerical control machine tool thermal stretching test device and test method based on machine vision
CN108415369A (en) * 2018-05-28 2018-08-17 河北工业大学 A kind of main shaft of numerical control machine tool Thermal Error intelligent perception system and cognitive method
CN109753021A (en) * 2019-03-21 2019-05-14 湖北汽车工业学院 A kind of numerically-controlled machine tool electrical parameter acquisition system and method
CN111324527A (en) * 2019-12-09 2020-06-23 许华敏 Device and method for testing interrupt program through data acquisition mode
CN111443659A (en) * 2020-06-02 2020-07-24 湖北理工学院 Remote monitoring control system for numerical control machine tool

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115256047A (en) * 2022-09-01 2022-11-01 珠海格力智能装备技术研究院有限公司 Method and device for detecting thermal elongation of spindle of numerical control machine tool and numerical control machine tool
CN115256047B (en) * 2022-09-01 2024-02-27 珠海格力智能装备技术研究院有限公司 Method and device for detecting thermal elongation of main shaft of numerical control machine tool and numerical control machine tool

Similar Documents

Publication Publication Date Title
CN107421442B (en) Robot positioning error online compensation method assisted by external measurement
CN103308338B (en) Machine tool loading device and machine tool loading test method based on three-freedom-degree parallel mechanism
CN106444628B (en) A kind of main shaft of numerical control machine tool thermal stretching real-time error compensation method
CN105759718B (en) Numerical control machining tool heat error online compensation method and system
CN105269404B (en) Numerically-controlled machine tool point of a knife dynamic characteristic accuracy detecting device and its method
CN103345199A (en) Numerically-controlled machine tool error compensation system and method based on human-computer interface secondary development
CN113297761B (en) Thermal deformation test compensation method for numerical control machine tool
CN106909125A (en) A kind of monitoring system and method for motor processability index
CN112859738A (en) Data acquisition method, medium, electronic equipment and machine tool
EP3318939B1 (en) Control system, control method and program for control system
CN103831669A (en) Circular degree error online measurement system and measurement method
CN105334802A (en) Method for adjusting coaxiality between main axis and C axis
CN107918354B (en) Tool setting method in right-angle head machine of numerical control machine tool
CN108687285A (en) Manufacturing industry forging machine tool group internet remote condition monitoring device and monitoring method
CN110977612B (en) CNC (computer numerical control) machining online measurement error correction method and system
WO2017101700A1 (en) Computer aided manufacturing method, device and system in direct communication with numerical control system
CN217096927U (en) Numerical control machine tool knife repairing detection system
CN110842644B (en) Method for monitoring contact stiffness degradation rate of machine tool moving part based on numerical control load information
Jouy et al. Theoretical modelisation and experimental identification of the geometrical parameters of coordinate-machines by measuring a multi-directed bar
JPH09131642A (en) Numerical control machine tool precision inspection device and thermal displacement inspection method of numerical control machine tool and precision inspection method
JP6933603B2 (en) Machine tool measurement capability evaluation method and program
Naumann et al. Optimization of characteristic diagram based thermal error compensation via load case dependent model updates
CN111399444A (en) Intelligent control system for machining process
CN215766970U (en) Robot single-point repeated positioning precision measurement system
CN100376863C (en) Image measuring system and method for section difference of heat radiator

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210528