A method, device, medium and equipment for monitoring machining status of a numerical control production line

By obtaining and converting the target program status in the CNC machine tool system, and executing the corresponding program to obtain the execution results, the problem of low monitoring level in CNC processing is solved, and real-time monitoring and unified management of the processing status of the CNC production line are achieved.

CN118226800BActive Publication Date: 2024-09-10CHENGDU AIRCRAFT INDUSTRY GROUP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410660091.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2024-09-10
Estimated Expiration
2044-05-27

AI Technical Summary

Technical Problem

In existing CNC machining technology, due to the small amount of historical machining data of machine tools, the level of monitoring is reduced, and real-time monitoring and problem handling cannot be effectively realized.

Method used

By obtaining the current status data in the CNC system of the CNC machine tool, combined with the program status, it is converted into the target program status, including parameter calibration status, threshold matching status, threshold learning status and real-time monitoring status, and the corresponding target program is executed to obtain the execution results, and Send the results to the upper computer on the production line to monitor the processing status of the CNC production line.

Benefits of technology

It effectively solves the problem of a small amount of historical data for a single machine tool, improves the monitoring level, realizes the sharing of historical data of different machine tools on the same production line, and realizes real-time monitoring and unified management of the processing status of the CNC production line.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118226800B
    Figure CN118226800B
Patent Text Reader

Abstract

The embodiments of the present application disclose a method, device, medium and equipment for monitoring the processing status of a numerical control production line, and relate to the technical field of numerical control processing. The present application utilizes a numerical control system to obtain data reflecting the current status of a machine tool, and then obtains a target program state to be converted in combination with a program state and executes the target program accordingly. If there is no matching data in the historical processing data, the calibration of the fitting data is implemented by executing a program corresponding to a parameter calibration state, and the monitoring threshold is obtained by transforming the calibrated fitting data under the execution of a program corresponding to a real-time monitoring state, thereby realizing the sharing of historical data of different machine tools on the same production line, effectively solving the problem of a small amount of historical processing data, and thereby improving the monitoring level. Finally, the execution result is sent to a host computer of the production line for unified management, and real-time monitoring of the processing status of the numerical control production line can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of numerical control machining, and in particular to a method, device, medium and equipment for monitoring machining status of a numerical control production line. Background Art

[0002] CNC machining refers to a process method for machining parts on CNC machine tools. The process procedures of CNC machine tool machining and traditional machine tool machining are generally consistent. The difference is that CNC machining uses digital information to control the displacement of parts and tools. It is an effective way to solve problems such as a wide variety of parts, small batches, complex shapes, and high precision, and to achieve efficient and automated machining. Real-time monitoring of CNC machining can effectively grasp the machining status, discover problems in time and deal with them, but the current real-time monitoring of CNC machining is based on the historical data of the machine tool itself. The amount of historical processing data of some machine tools is small, which will lead to a decrease in the monitoring level. Summary of the invention

[0003] The main purpose of this application is to provide a method, device, medium and equipment for monitoring the processing status of a CNC production line, aiming to solve the problem in the prior art of reduced monitoring level caused by insufficient historical processing data of machine tools.

[0004] To achieve the above objectives, the technical solutions adopted in the embodiments of the present application are as follows:

[0005] In a first aspect, an embodiment of the present application provides a method for monitoring a machining state of a CNC production line, comprising the following steps:

[0006] According to the internal status data of the CNC system of the machine tool, the current state of the machine tool is obtained;

[0007] According to the program state and the current machine tool state, the target program state to be converted is obtained; wherein the target program state includes a parameter calibration state, a threshold matching state, a threshold learning state and a real-time monitoring state, the parameter calibration state is used to calibrate the fitting data, and the real-time monitoring state is used to obtain the monitoring threshold according to the real-time data and the fitting data;

[0008] Execute the corresponding target program according to the target program state and obtain the execution result;

[0009] The execution results are sent to the production line host computer to monitor the processing status of the CNC production line.

[0010] In a possible implementation of the first aspect, obtaining a target program state to be converted according to a program state and a current machine tool state includes:

[0011] Initialize program state;

[0012] Obtaining a parameter calibration state to be converted according to a first variable value of a parameter calibration subroutine executed by the numerical control system;

[0013] In the parameter calibration state, the threshold matching state to be converted is obtained according to the second variable value of the parameter calibration subroutine executed by the numerical control system;

[0014] In the parameter calibration state, according to the program running interruption state, return to the step of initializing the program state;

[0015] In the threshold matching state, the real-time monitoring state or threshold learning state to be converted is obtained according to the presence or absence of monitoring threshold data of the same machining program name in the database;

[0016] In the real-time monitoring state or the threshold learning state, the step of returning to the initialization program state according to the change of the machining program name.

[0017] In a possible implementation manner of the first aspect, executing a corresponding target program according to a target program state to obtain an execution result includes:

[0018] According to the parameter calibration status, the spindle speed data and spindle power data in the internal status data of the CNC system are obtained in real time;

[0019] The spindle power data is segmented according to the spindle speed data, and the mutation data after the start and before the end are removed to obtain segmented power data;

[0020] In each speed range, the least square fitting is performed on the average value and the maximum value of the segmented power data respectively to obtain a calibrated first average power parameter of the spindle and a calibrated second average power parameter of the spindle.

[0021] In a possible implementation manner of the first aspect, executing a corresponding target program according to a target program state to obtain an execution result includes:

[0022] The historical monitoring parameter data is read according to the threshold matching state to obtain the existence of monitoring threshold data with the same name as the current machining program in the historical monitoring parameter data.

[0023] In a possible implementation manner of the first aspect, executing a corresponding target program according to a target program state to obtain an execution result includes:

[0024] According to the threshold learning state, the machining program name, spindle speed data, spindle power data and feed speed data in the internal state data of the CNC system are obtained in real time;

[0025] According to the spindle speed data and the calibrated first average power parameter of the spindle, an average power value under idling condition is obtained;

[0026] The maximum machining power is obtained according to the maximum spindle speed data and the average power value under idling conditions;

[0027] According to the spindle speed data and the calibrated second average power parameter of the spindle, the maximum power value under idling condition is obtained;

[0028] The feed distance is obtained based on the spindle power data and the maximum power value under idling conditions.

[0029] In a possible implementation manner of the first aspect, executing a corresponding target program according to a target program state to obtain an execution result includes:

[0030] According to the real-time monitoring status, the machining program name, spindle speed data, spindle power data and feed speed data in the internal status data of the CNC system are obtained in real time;

[0031] Obtaining a power threshold according to the spindle speed data, a calibrated first average power parameter of the spindle, and a calibrated second average power parameter of the spindle;

[0032] It is determined whether the spindle power data exceeds the power threshold, and the maximum idling feed distance is obtained according to the determination result and the feed speed data.

[0033] In a possible implementation of the first aspect, the execution result is sent to a production line host computer to monitor the processing status of the CNC production line, including:

[0034] Send the execution results to the production line host computer;

[0035] The host computer of the production line stores and visualizes the execution results to monitor the processing status of the CNC production line.

[0036] In a second aspect, an embodiment of the present application provides a CNC production line processing state monitoring device, comprising:

[0037] The acquisition module is used to obtain the current machine tool status according to the internal status data of the CNC system;

[0038] A conversion module, the conversion module is used to obtain a target program state to be converted according to a program state and a current machine tool state; wherein the target program state includes a parameter calibration state, a threshold matching state, a threshold learning state and a real-time monitoring state, the parameter calibration state is used to calibrate fitting data, and the real-time monitoring state is used to obtain a monitoring threshold according to real-time data and fitting data;

[0039] An execution module, which is used to execute a corresponding target program according to the target program state and obtain an execution result;

[0040] Monitoring module: The monitoring module is used to send the execution results to the production line host computer to monitor the processing status of the CNC production line.

[0041] In a third aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program. When the computer program is loaded and executed by a processor, a method for monitoring the machining status of a CNC production line as provided in any one of the first aspects above is implemented.

[0042] In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, wherein:

[0043] The memory is used to store computer programs;

[0044] The processor is used to load and execute a computer program so that the electronic device executes a method for monitoring the machining status of a CNC production line as provided in any one of the first aspects above.

[0045] Compared with the prior art, the beneficial effects of this application are:

[0046] The embodiments of the present application propose a method, device, medium and equipment for monitoring the processing status of a CNC production line. The method includes: obtaining the current machine tool state according to the internal state data of the CNC system of the machine tool; obtaining the target program state to be converted according to the program state and the current machine tool state; wherein the target program state includes a parameter calibration state, a threshold matching state, a threshold learning state and a real-time monitoring state, the parameter calibration state is used to calibrate the fitting data, and the real-time monitoring state is used to obtain the monitoring threshold according to the real-time data and the fitting data; executing the corresponding target program according to the target program state to obtain the execution result; and sending the execution result to the production line host computer to realize the monitoring of the processing status of the CNC production line. The present application utilizes a numerical control system deployed on a machine tool to obtain data reflecting the current state of the machine tool, and then obtains the target program state to be converted in combination with the program state, and executes the target program accordingly. If there is matching data in the historical processing data, real-time monitoring can be performed accordingly. If not, the calibration of the fitting data can be achieved by executing a program corresponding to the parameter calibration state, and the monitoring threshold is obtained by transforming the calibrated fitting data under the execution of the program corresponding to the real-time monitoring state. This can realize the sharing of historical data of different machine tools on the same production line, effectively solve the problem of small amount of historical processing data of a single machine tool, and thus realize the improvement of the monitoring level. The execution results reflecting the real-time state are obtained by executing the target program under different states, and finally the execution results are sent to the production line host computer for unified management, so as to realize real-time monitoring of the processing state of the CNC production line. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 A schematic diagram of the structure of an electronic device of a hardware operating environment involved in an embodiment of the present application;

[0048] Figure 2 This is a schematic diagram of the hardware equipment in a multi-machine tool flexible production line according to an embodiment of the present application;

[0049] Figure 3 A schematic diagram of a process flow of a CNC production line processing status monitoring method provided in an embodiment of the present application;

[0050] Figure 4 A schematic diagram of the modules of the processing status monitoring software in the CNC production line processing status monitoring method provided in the embodiment of the present application;

[0051] Figure 5 A schematic diagram of the operation flow of the processing status monitoring software in the CNC production line processing status monitoring method provided in the embodiment of the present application;

[0052] Figure 6 A schematic diagram of real-time monitoring state machine conversion in a CNC production line processing state monitoring method provided in an embodiment of the present application;

[0053] Figure 7 A schematic diagram of a module of monitoring parameter storage and visual editing software in a CNC production line machining state monitoring method provided in an embodiment of the present application;

[0054] Figure 8 A schematic diagram of a module of a CNC production line processing status monitoring device provided in an embodiment of the present application;

[0055] Markings in the figure: 101 - processor, 102 - communication bus, 103 - network interface, 104 - user interface, 105 - memory. DETAILED DESCRIPTION

[0056] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0057] The main solution of the embodiment of the present application is: according to the internal state data of the CNC system of the machine tool, the current machine tool state is obtained; according to the program state and the current machine tool state, the target program state to be converted is obtained; wherein the target program state includes a parameter calibration state, a threshold matching state, a threshold learning state and a real-time monitoring state, the parameter calibration state is used to calibrate the fitting data, and the real-time monitoring state is used to obtain the monitoring threshold according to the real-time data and the fitting data; according to the target program state, the corresponding target program is executed to obtain the execution result; the execution result is sent to the production line host computer to realize the monitoring of the CNC production line processing state.

[0058] CNC machining refers to a process method for machining parts on CNC machine tools. The process procedures of CNC machine tool machining and traditional machine tool machining are generally consistent. The difference is that CNC machining uses digital information to control the displacement of parts and tools. It is an effective way to solve problems such as a wide variety of parts, small batches, complex shapes, and high precision, and to achieve efficient and automated machining. Real-time monitoring of CNC machining can effectively grasp the machining status, discover problems in a timely manner and deal with them. At present, CNC machining has developed from a single machine tool processing mode to a flexible production line processing mode composed of multiple machine tools of the same type. The existing machining status monitoring technology is oriented to a single machine and monitors the machining status in real time based on the historical data of the machine tool itself. There are some problems caused by the small amount of historical processing data, such as poor availability of the monitoring model and unreasonable threshold range of monitoring alarm settings, which will lead to a reduction in the monitoring level.

[0059] To this end, the present application provides a solution, which utilizes a CNC system deployed on a machine tool to obtain data reflecting the current state of the machine tool, and then obtains the target program state to be converted in combination with the program state, and executes the target program accordingly. If there is matching data in the historical processing data, real-time monitoring can be performed accordingly. If not, the calibration of the fitting data can be achieved by executing a program corresponding to the parameter calibration state, and the monitoring threshold is obtained by transforming the calibrated fitting data under the execution of the program corresponding to the real-time monitoring state. The sharing of historical data of different machine tools on the same production line can be achieved, which effectively solves the problem of small amount of historical processing data of a single machine tool, thereby improving the monitoring level. The execution results reflecting the real-time state are obtained by executing the target program under different states, and finally the execution results are sent to the production line host computer for unified management, so as to realize real-time monitoring of the processing state of the CNC production line.

[0060] See attached Figure 1 , attached Figure 1This is a schematic diagram of the structure of an electronic device of the hardware operating environment involved in the embodiment of the present application. The electronic device may include: a processor 101, such as a central processing unit (CPU), a communication bus 102, a user interface 104, a network interface 103, and a memory 105. Among them, the communication bus 102 is used to realize the connection and communication between these components. The user interface 104 may include a display (Display), an input unit such as a keyboard (Keyboard), and the user interface 104 may also include a standard wired interface and a wireless interface. The network interface 103 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 105 may optionally be a storage device independent of the aforementioned processor 101. The memory 105 may be a high-speed random access memory (RAM) memory, or it may be a stable non-volatile memory (NVM), such as at least one disk storage. The processor 101 may be a general-purpose processor, including a central processing unit, a network processor, etc., or it may be a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component.

[0061] Those skilled in the art will appreciate that Figure 1 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0062] As attached Figure 1 As shown, the memory 105 as a storage medium may include an operating system, a network communication module, a user interface module, and a CNC production line processing status monitoring device.

[0063] In the attached Figure 1 In the electronic device shown, the network interface 103 is mainly used for data communication with the network server; the user interface 104 is mainly used for data interaction with the user; the processor 101 and the memory 105 in the present application can be set in the electronic device, and the electronic device calls the CNC production line processing status monitoring device stored in the memory 105 through the processor 101, and executes the CNC production line processing status monitoring method provided in the embodiment of the present application.

[0064] This application is applied to other hardware equipment in multi-machine production lines, such as the attached Figure 2As shown in the figure, it consists of a CNC machine plus flexible production line including multiple machine tools of the same type, a CNC system, a machine tool host computer and a production line host computer. Each machine tool in the CNC machine plus flexible production line includes a machine tool body, a CNC system and a machine tool host computer. The CNC system is used to collect real-time data of the machine tool body and connect to the machine tool host computer. The machine tool host computer deploys processing status monitoring software to realize communication with the CNC system and monitoring and early warning functions. The CNC machine plus flexible production line has a production line host computer. The production line host computer and the host computer of each machine tool are connected to a production line switch to build an interconnected local area network. The production line host computer deploys monitoring parameter storage and visual editing software to realize unified management of monitoring parameters.

[0065] See attached Figure 3 Based on the hardware device of the aforementioned embodiment, the embodiment of the present application provides a method for monitoring the machining status of a CNC production line, comprising the following steps:

[0066] S10: Obtain the current state of the machine tool according to the internal state data of the numerical control system of the machine tool.

[0067] In the specific implementation process, the internal state data of the CNC system can be obtained through the data acquisition module deployed in the processing state monitoring software of the machine tool host computer, and the current state of the machine tool can be fed back through this data. The data acquisition module obtains the internal data of the CNC system through the network communication established between the machine tool host computer and the CNC system: spindle speed S, spindle power P, feed speed F, current machining program name, current machining program running status, and global variables indicating the status of the execution parameter calibration subroutine.

[0068] S20: Obtain the target program state to be converted according to the program state and the current machine tool state; wherein the target program state includes a parameter calibration state, a threshold matching state, a threshold learning state and a real-time monitoring state, the parameter calibration state is used to calibrate the fitting data, and the real-time monitoring state is used to obtain the monitoring threshold according to the real-time data and the fitting data.

[0069] In the specific implementation process, the module diagram of the processing status monitoring software is shown in the attached figure. Figure 4 As shown, it can also include a real-time monitoring state machine module, a processing state parameter calibration module (corresponding to the parameter calibration state), a monitoring threshold matching module (corresponding to the threshold matching state), a monitoring threshold learning module (corresponding to the threshold learning state), a processing state monitoring module (corresponding to the real-time monitoring state) and a monitoring parameter reading and writing module.

[0070] The operation process of the processing status monitoring software is shown in the attached Figure 5As shown, after the monitoring program starts, the data acquisition module collects the internal status data of the CNC system in real time, and then executes the real-time monitoring state machine module to determine the target program state to be converted according to the current machine tool state and program state, and executes different program modules according to the different target program states. In the process of executing each state module program, the monitoring parameter reading and writing module is called as needed, and the data acquisition module program continues to be executed after each state module program is executed.

[0071] Specifically: According to the program status and the current machine tool status, the target program status to be converted is obtained, including:

[0072] Initialize program state;

[0073] Obtaining a parameter calibration state to be converted according to a first variable value of a parameter calibration subroutine executed by the numerical control system;

[0074] In the parameter calibration state, the threshold matching state to be converted is obtained according to the second variable value of the parameter calibration subroutine executed by the numerical control system;

[0075] In the parameter calibration state, according to the program running interruption state, return to the step of initializing the program state;

[0076] In the threshold matching state, the real-time monitoring state or threshold learning state to be converted is obtained according to the presence or absence of monitoring threshold data of the same machining program name in the database;

[0077] In the real-time monitoring state or the threshold learning state, the step of returning to the initialization program state according to the change of the machining program name.

[0078] In the specific implementation process, the real-time monitoring state machine module includes initialization state, parameter calibration state, threshold matching state, threshold learning state, and real-time monitoring state. The state conversion is shown in the attached figure. Figure 6As shown, the program state is initialized to the initialization state at the beginning. In this state, it is determined whether the collected CNC system executes the parameter calibration subroutine variable value greater than 0. If greater than 0, it is assigned to 0. When it is determined that the collected CNC system executes the parameter calibration subroutine variable value is 1, that is, the first variable value, the parameter calibration state is entered; in the parameter calibration state, when it is determined that the collected CNC system executes the parameter calibration subroutine variable value is 2, that is, the second variable value, the threshold matching state is entered, and when it is determined that the collected CNC system processing program is interrupted, the initialization state is entered; in the threshold matching state, the monitoring parameter database is searched, and the monitoring threshold data with the same processing program name is found, the real-time monitoring state is entered, and if the monitoring threshold data with the same processing program name is not found, the threshold learning state is performed; in the real-time monitoring state, if the real-time processing program name inside the collected CNC system changes, the initialization state is entered; in the threshold learning state, if the real-time processing program name inside the collected CNC system changes, the initialization state is entered.

[0079] First, define a global variable inside the CNC system to represent the state of the parameter calibration subroutine. First, assign the state value of the parameter calibration subroutine to 1. Secondly, according to the machine tool spindle type and the speed value divided by the rated maximum speed of the spindle, control the machine tool spindle to rotate from small to large speed values, and keep the same time at each speed, the time ≥ 5 seconds. Finally, assign the state value of the parameter calibration subroutine to 2. The variable value of 0 indicates that it is in the initialization state, the variable value of 1 indicates that the parameter calibration subroutine is started, and the variable value of 2 indicates that the parameter calibration subroutine is finished. Then, according to the machine tool spindle type and the rated maximum speed Smax of the spindle, the speed that needs to be idling is divided. If the machine tool spindle is an electric spindle, then take 5 speed values ​​of equal range in the speed range of 0-Smax. If the machine tool spindle is a mechanical spindle, first determine the number of transmission gears of the mechanical spindle and the speed range corresponding to different gears, and take 5 speed values ​​of equal range in the speed range of each gear.

[0080] S30: Execute the corresponding target program according to the target program state to obtain an execution result.

[0081] In the specific implementation process, the processing state parameter calibration module program is executed in the parameter calibration state, the monitoring threshold matching module program is executed in the threshold matching state, the monitoring threshold learning module program is executed in the threshold learning state, and the processing state monitoring module program is executed in the real-time monitoring state, and the corresponding execution results are monitoring data reflecting the real-time state. Specifically, the steps of the target program executed in the four different target program states in the above steps are as follows:

[0082] First, execute the corresponding target program according to the target program state to obtain the execution result, including:

[0083] According to the parameter calibration status, the spindle speed data and spindle power data in the internal status data of the CNC system are obtained in real time;

[0084] The spindle power data is segmented according to the spindle speed data, and the mutation data after the start and before the end are removed to obtain segmented power data;

[0085] In each speed range, the least square fitting is performed on the average value and the maximum value of the segmented power data respectively to obtain a calibrated first average power parameter of the spindle and a calibrated second average power parameter of the spindle.

[0086] In the specific implementation process, the spindle speed and spindle power values ​​in the internal data of the numerical control system are obtained and recorded in real time, the recorded power data are segmented according to the spindle speed value, and the power data that changes suddenly during the acceleration and deceleration process of the machine tool spindle within a few seconds after the start and before the end are removed, usually 1 second is taken, and the average value and maximum value of the processed segmented power data are calculated. According to the number of speed ranges and the corresponding speed values ​​divided according to the machine tool spindle type and the rated maximum speed of the spindle, a one-dimensional linear function is used in each speed range to perform least squares fitting on the average value of the segmented power value data at different speed values ​​to obtain calibrated spindle average power parameters ke, be, that is, the calibrated first average power parameters of the spindle. In each speed range, a one-dimensional linear function is used to perform least squares fitting on the maximum value of the segmented power value data at different speed values ​​to obtain calibrated spindle average power parameters km, bm, that is, the calibrated second average power parameters of the spindle.

[0087] Secondly, execute the corresponding target program according to the target program state to obtain the execution result, including:

[0088] The historical monitoring parameter data is read according to the threshold matching state to obtain the existence of monitoring threshold data with the same name as the current machining program in the historical monitoring parameter data.

[0089] During the specific implementation process, the monitoring threshold matching module executes the corresponding target program, obtains the current machining program name inside the CNC system in real time, reads the historical monitoring parameter data stored in the host computer installed on the production line, and searches the historical data for monitoring threshold data with the same name as the current machining program.

[0090] Then, the corresponding target program is executed according to the target program state to obtain the execution result, including:

[0091] According to the threshold learning state, the machining program name, spindle speed data, spindle power data and feed speed data in the internal state data of the CNC system are obtained in real time;

[0092] According to the spindle speed data and the calibrated first average power parameter of the spindle, an average power value under idling condition is obtained;

[0093] The maximum machining power is obtained according to the maximum spindle speed data and the average power value under idling conditions;

[0094] According to the spindle speed data and the calibrated second average power parameter of the spindle, the maximum power value under idling condition is obtained;

[0095] The feed distance is obtained based on the spindle power data and the maximum power value under idling conditions.

[0096] In the specific implementation process, the current machining program name, spindle speed, spindle power, and feed speed inside the CNC system are obtained and cached in real time, and the maximum spindle power and the maximum machining power are recorded under constant speed conditions. The range of actual speed variation under a given machine tool spindle constant speed is set, and the real-time spindle speed data is compared with the previous cached data. If the data difference is less than the variation range value, it means that the machine tool spindle is running at a constant speed, and the timing starts. If the data difference is greater than the variation range value, it means that the machine tool spindle speed has changed, and the timing is reset to 0. Only after the timing exceeds 1 second, the maximum spindle power under different spindle speeds is updated and recorded in real time. According to the current real-time spindle speed and the power data average value function fitted by the parameter calibration module, the average power value of the idling condition fitted under the current spindle speed is calculated, and the maximum machining power is obtained by subtracting the fitted idling average power value from the real-time recorded maximum spindle power.

[0097] Determine whether the spindle is idling at different speeds and record the maximum idling feed distance. According to the current real-time spindle speed and the power data maximum value function fitted by the parameter calibration module, calculate the maximum power value of the idling condition fitted at the current spindle speed, and judge in real time whether the current power is less than the fitted maximum power value. If it is less, it is judged to be idling. In the idling condition, the internal data acquisition cycle of the CNC system is multiplied by the real-time feed speed as the feed distance for accumulation, and the maximum accumulated feed distance is recorded in real time. If it is greater, the accumulated feed distance is cleared.

[0098] Finally, the corresponding target program is executed according to the target program status to obtain the execution results, including:

[0099] According to the real-time monitoring status, the machining program name, spindle speed data, spindle power data and feed speed data in the internal status data of the CNC system are obtained in real time;

[0100] Obtaining a power threshold according to the spindle speed data, a calibrated first average power parameter of the spindle, and a calibrated second average power parameter of the spindle;

[0101] It is determined whether the spindle power data exceeds the power threshold, and the maximum idling feed distance is obtained according to the determination result and the feed speed data.

[0102] In the specific implementation process, the current machining program name, spindle speed, spindle power, and feed speed in the CNC system are obtained and cached in real time. The monitoring parameter read-write module is called to read the monitoring threshold parameters of all the same machining program names, and the maximum spindle power monitoring threshold at different speeds is calculated. According to the current real-time spindle speed and the power data average function fitted by the parameter calibration module, the average power value of the idling condition fitted at the current spindle speed is calculated. The maximum machining power value in all monitoring threshold parameters is divided by ke in the corresponding monitoring threshold parameter, and the maximum value in the calculation result is multiplied by ke in the current machining parameter calibration module to calculate the transformed maximum machining power value, and the average power value plus the transformed maximum machining power value is used as the power monitoring threshold at different speeds.

[0103] Calculate the power threshold for judging idling at different speeds. According to the current real-time spindle speed and the power data maximum value function fitted by the parameter calibration module, calculate the maximum power value of the idling condition fitted at the current spindle speed. Take (calculated maximum power monitoring threshold - fitted idling maximum power value) / 3 + fitted idling maximum power value as the power threshold for judging idling.

[0104] Under constant speed conditions, determine in real time whether the current machine tool spindle power value exceeds the threshold. Set the range of actual speed variation under constant speed of a given machine tool spindle, and compare the real-time acquired spindle speed data with the previous cached data. If the data difference is less than the range value, it means that the machine tool spindle is running at a constant speed, and start timing. If the data difference is greater than the range value, it means that the machine tool spindle speed has changed, and the timing returns to 0. Only after the timing exceeds 1 second, the spindle power value is judged in real time and the maximum power value at different speeds is recorded. Set the maximum number of consecutive times exceeding the threshold value n, and n is adjusted according to the false alarm situation during actual use. If the current spindle power value exceeds the calculated power threshold for n consecutive times, the alarm machine tool will be triggered to suspend processing and prompt the operator to manually confirm whether it is normal. If the processing is normal, the maximum spindle power value when the alarm is triggered will be recorded. If the processing is abnormal, the maximum spindle power value when the alarm is triggered will not be recorded.

[0105] Real-time judgment on whether the current machine tool spindle idling feed distance exceeds the threshold. Real-time judgment on whether the current machine tool spindle power is less than the calculated idling power threshold. If it is less, it is judged to be idling. In the idling case, the internal data acquisition cycle of the CNC system is multiplied by the real-time feed speed as the accumulated feed distance. If it is greater, the accumulated feed distance is cleared. Real-time judgment on whether the current feed distance is greater than the maximum idling feed distance among all monitoring threshold parameters, then the alarm is triggered, the machine tool suspends processing and prompts the operator to manually confirm whether it is normal. If the processing is normal, the maximum idling distance when the alarm is triggered is recorded. If the processing is abnormal, the maximum idling distance when the alarm is triggered is not recorded.

[0106] S40: Send the execution result to the production line host computer to monitor the processing status of the CNC production line.

[0107] In the specific implementation process, during the execution of the above steps, the monitoring parameter reading and writing module can be called to write the ke, be, km, bm parameters fitted in the parameter calibration module, the machining program name, the maximum machining power at different spindle speeds, the maximum idling feed distance at different speeds, and the equipment name, as well as the machining start and end time information into the parameter storage database of the production line host computer for unified management and real-time monitoring.

[0108] In one embodiment, the execution result is sent to the production line host computer to monitor the processing status of the CNC production line, including:

[0109] Send the execution results to the production line host computer;

[0110] The host computer of the production line stores and visualizes the execution results to monitor the processing status of the CNC production line.

[0111] In the specific implementation process, in order to realize the storage and visualization of monitoring data, the following Figure 7 The monitoring parameter storage and visual editing software shown is implemented, and the monitoring parameter storage and visual editing software includes a monitoring parameter storage module, a monitoring parameter visual display module, and a monitoring parameter visual editing module. The monitoring parameter storage module can choose to use local files, local database software, or remote database software to store the monitoring parameters persistently. The monitoring parameter visual display module can read the monitoring parameter data for intuitive visual display. The monitoring parameter visual editing module can read the monitoring parameter data and edit it on the visual interface and write it into the monitoring parameter file for persistent storage.

[0112] In this embodiment, the CNC system deployed on the machine tool is used to obtain data reflecting the current state of the machine tool, and then the target program state to be converted is obtained in combination with the program state, and the target program is executed accordingly. If there is matching data in the historical processing data, real-time monitoring can be performed accordingly. If not, the calibration of the fitting data can be achieved by executing the program corresponding to the parameter calibration state, and the monitoring threshold is obtained by transforming the calibrated fitting data under the program corresponding to the real-time monitoring state. The sharing of historical data of different machine tools on the same production line can be achieved, which effectively solves the problem of small amount of historical processing data of a single machine tool, thereby improving the monitoring level. The execution results reflecting the real-time state are obtained by executing the target program under different states, and finally the execution results are sent to the production line host computer for unified management, so as to realize real-time monitoring of the processing state of the CNC production line.

[0113] See attached Figure 8 Based on the same inventive concept as in the above-mentioned embodiment, the embodiment of the present application further provides a CNC production line processing state monitoring device, comprising:

[0114] The acquisition module is used to obtain the current machine tool status according to the internal status data of the CNC system;

[0115] A conversion module, the conversion module is used to obtain a target program state to be converted according to a program state and a current machine tool state; wherein the target program state includes a parameter calibration state, a threshold matching state, a threshold learning state and a real-time monitoring state, the parameter calibration state is used to calibrate fitting data, and the real-time monitoring state is used to obtain a monitoring threshold according to real-time data and fitting data;

[0116] An execution module, which is used to execute a corresponding target program according to the target program state and obtain an execution result;

[0117] Monitoring module: The monitoring module is used to send the execution results to the production line host computer to monitor the processing status of the CNC production line.

[0118] Those skilled in the art should understand that the division of the various modules in the embodiment is merely a division of logical functions, and in actual application, all or part of them can be integrated into one or more actual carriers, and these modules can be implemented entirely in the form of software called through a processing unit, or entirely in the form of hardware, or in the form of a combination of software and hardware. It should be noted that each module in the CNC production line processing status monitoring device in this embodiment corresponds one-to-one to each step in the CNC production line processing status monitoring method in the aforementioned embodiment. Therefore, the specific implementation of this embodiment can refer to the implementation of the aforementioned CNC production line processing status monitoring method, which will not be repeated here.

[0119] Based on the same inventive concept as in the aforementioned embodiments, an embodiment of the present application further provides a computer-readable storage medium storing a computer program. When the computer program is loaded and executed by a processor, a CNC production line processing status monitoring method as provided in the embodiment of the present application is implemented.

[0120] Based on the same inventive concept as in the above-mentioned embodiment, an embodiment of the present application further provides an electronic device, including a processor and a memory, wherein:

[0121] The memory is used to store computer programs;

[0122] The processor is used to load and execute a computer program so that the electronic device executes the CNC production line processing status monitoring method provided in the embodiment of the present application.

[0123] In some embodiments, the computer readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or various devices including one or any combination of the above memories. The computer may be various computing devices including intelligent terminals and servers.

[0124] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0125] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file storing other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0126] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.

[0127] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0128] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0129] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a multimedia terminal device (which can be a mobile phone, a computer, a television receiver, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0130] In summary, the present application provides a method, device, medium and equipment for monitoring the processing status of a CNC production line. The method includes: obtaining the current machine tool state according to the internal state data of the CNC system of the machine tool; obtaining the target program state to be converted according to the program state and the current machine tool state; wherein the target program state includes a parameter calibration state, a threshold matching state, a threshold learning state and a real-time monitoring state, the parameter calibration state is used to calibrate the fitting data, and the real-time monitoring state is used to obtain the monitoring threshold according to the real-time data and the fitting data; executing the corresponding target program according to the target program state to obtain the execution result; sending the execution result to the production line host computer to realize the monitoring of the processing status of the CNC production line. The present application utilizes a numerical control system deployed on a machine tool to obtain data reflecting the current state of the machine tool, and then obtains the target program state to be converted in combination with the program state, and executes the target program accordingly. If there is matching data in the historical processing data, real-time monitoring can be performed accordingly. If not, the calibration of the fitting data can be achieved by executing a program corresponding to the parameter calibration state, and the monitoring threshold is obtained by transforming the calibrated fitting data under the execution of the program corresponding to the real-time monitoring state. This can realize the sharing of historical data of different machine tools on the same production line, effectively solve the problem of small amount of historical processing data of a single machine tool, and thus realize the improvement of the monitoring level. The execution results reflecting the real-time state are obtained by executing the target program under different states, and finally the execution results are sent to the production line host computer for unified management, so as to realize real-time monitoring of the processing state of the CNC production line.

[0131] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. A method for monitoring the processing status of a CNC production line, characterized in that: The following steps are involved: According to the internal status data of the CNC system of the machine tool, the current state of the machine tool is obtained; According to the program state and the current machine tool state, a target program state to be converted is obtained; wherein the target program state includes a parameter calibration state, a threshold matching state, a threshold learning state and a real-time monitoring state, the parameter calibration state is used to calibrate the fitting data, and the real-time monitoring state is used to obtain a monitoring threshold according to the real-time data and the fitting data; the target program state to be converted according to the program state and the current machine tool state is obtained, including: Initialize program state; Obtaining a parameter calibration state to be converted according to a first variable value of a parameter calibration subroutine executed by the numerical control system; In the parameter calibration state, according to the second variable value of the parameter calibration subroutine executed by the numerical control system, a threshold matching state to be converted is obtained; In the parameter calibration state, according to the program running interruption state, returning to the initialization program state; In the threshold matching state, the real-time monitoring state or threshold learning state to be converted is obtained according to the presence or absence of monitoring threshold data of the same machining program name in the database; In the real-time monitoring state or the threshold learning state, according to the change of the machining program name, the step of returning to the initialization program state; Among them, a global variable inside the CNC system is defined to represent the state of the parameter calibration subroutine. First, the state value of the parameter calibration subroutine is assigned to 1. Secondly, according to the spindle type of the machine tool and the speed value divided by the rated maximum speed of the spindle, the machine tool spindle is controlled to rotate from small to large speed values ​​and maintain the same time at each speed, which is ≥5 seconds. Finally, the state value of the parameter calibration subroutine is assigned to 2. The variable value of 0 indicates that it is in the initialization state, the variable value of 1 indicates that the parameter calibration subroutine is started, and the variable value of 2 indicates that the parameter calibration subroutine is finished. Execute the corresponding target program according to the target program state to obtain the execution result; wherein, the target program state to be converted is obtained in combination with the program state, and the target program is executed accordingly. If there is matching data in the historical processing data, real-time monitoring can be performed accordingly. If not, calibration of fitting data can be achieved by executing a program corresponding to the parameter calibration state, and the monitoring threshold is transformed from the calibrated fitting data under the execution of the program corresponding to the real-time monitoring state, so that the historical data of different machine tools on the same production line can be shared; The execution result is sent to the production line host computer to monitor the processing status of the CNC production line.

2. The method for monitoring the processing status of a CNC production line according to claim 1, characterized in that: The step of executing the corresponding target program according to the target program state to obtain an execution result includes: According to the parameter calibration state, the spindle speed data and the spindle power data in the internal state data of the numerical control system are acquired in real time; The spindle power data is segmented according to the spindle speed data, and the mutation data after the start and before the end are removed to obtain segmented power data; In each speed range, least square fitting is performed on the average value and the maximum value of the segmented power data to obtain a calibrated first average power parameter of the spindle and a calibrated second average power parameter of the spindle.

3. The method for monitoring the processing status of a CNC production line according to claim 2, characterized in that: The step of executing the corresponding target program according to the target program state to obtain an execution result includes: The historical monitoring parameter data is read according to the threshold matching state to obtain the existence of the monitoring threshold data with the same name as the current machining program in the historical monitoring parameter data.

4. The method for monitoring the processing status of a CNC production line according to claim 3, characterized in that: The step of executing the corresponding target program according to the target program state to obtain an execution result includes: According to the threshold learning state, the machining program name, the spindle speed data, the spindle power data and the feed speed data in the internal state data of the numerical control system are acquired in real time; According to the spindle speed data and the calibrated first average power parameter of the spindle, an average power value under idling condition is obtained; Obtaining a maximum machining power value according to the maximum value of the spindle speed data and the average power value in the idling state; According to the spindle speed data and the calibrated second average power parameter of the spindle, a maximum power value under idling condition is obtained; The feed distance is obtained according to the spindle power data and the maximum power value in the idling state.

5. The method for monitoring the processing status of a CNC production line according to claim 4, characterized in that: The step of executing the corresponding target program according to the target program state to obtain an execution result includes: According to the real-time monitoring status, the machining program name, the spindle speed data, the spindle power data and the feed speed data in the internal status data of the numerical control system are acquired in real time; Obtaining a power threshold according to the spindle speed data, the calibrated first average power parameter of the spindle, and the calibrated second average power parameter of the spindle; It is determined whether the spindle power data exceeds the power threshold, and a maximum idling feed distance is obtained according to the determination result and the feed speed data.

6. The method for monitoring the processing status of a CNC production line according to claim 1, characterized in that: The step of sending the execution result to the upper computer of the production line to monitor the processing status of the CNC production line includes: Sending the execution result to the production line host computer; The production line host computer performs data storage and visual display of the execution results to realize the monitoring of the processing status of the CNC production line.

7. A CNC production line processing status monitoring device, characterized in that: include: An acquisition module, the acquisition module is used to obtain the current machine tool state according to the internal state data of the numerical control system; A conversion module, the conversion module is used to obtain a target program state to be converted according to a program state and the current machine tool state; wherein the target program state includes a parameter calibration state, a threshold matching state, a threshold learning state and a real-time monitoring state, the parameter calibration state is used to calibrate fitting data, and the real-time monitoring state is used to obtain a monitoring threshold according to real-time data and the fitting data; the obtaining of the target program state to be converted according to the program state and the current machine tool state includes: Initialize program state; Obtaining a parameter calibration state to be converted according to a first variable value of a parameter calibration subroutine executed by the numerical control system; In the parameter calibration state, according to the second variable value of the parameter calibration subroutine executed by the numerical control system, a threshold matching state to be converted is obtained; In the parameter calibration state, according to the program running interruption state, returning to the initialization program state; In the threshold matching state, the real-time monitoring state or threshold learning state to be converted is obtained according to the presence or absence of monitoring threshold data of the same machining program name in the database; In the real-time monitoring state or the threshold learning state, according to the change of the machining program name, the step of returning to the initialization program state; Among them, a global variable inside the CNC system is defined to represent the state of the parameter calibration subroutine. First, the state value of the parameter calibration subroutine is assigned to 1. Secondly, according to the spindle type of the machine tool and the speed value divided by the rated maximum speed of the spindle, the machine tool spindle is controlled to rotate from small to large speed values ​​and maintain the same time at each speed, which is ≥5 seconds. Finally, the state value of the parameter calibration subroutine is assigned to 2. The variable value of 0 indicates that it is in the initialization state, the variable value of 1 indicates that the parameter calibration subroutine is started, and the variable value of 2 indicates that the parameter calibration subroutine is finished. An execution module, the execution module is used to execute the corresponding target program according to the target program state to obtain an execution result; wherein, the target program state to be converted is obtained in combination with the program state, and the target program is executed accordingly. If there is matching data in the historical processing data, real-time monitoring can be performed accordingly. If not, calibration of fitting data can be achieved by executing a program corresponding to the parameter calibration state, and the monitoring threshold is obtained by transforming the calibrated fitting data under the execution of the program corresponding to the real-time monitoring state, so that the historical data of different machine tools on the same production line can be shared; The monitoring module is used to send the execution result to the production line host computer to realize the monitoring of the processing status of the CNC production line.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is loaded and executed by the processor, the method for monitoring the machining status of a CNC production line according to any one of claims 1 to 6 is implemented.

9. An electronic device, characterized in that: comprising a processor and a memory, wherein: The memory is used to store computer programs; The processor is used to load and execute the computer program so that the electronic device executes the CNC production line processing status monitoring method according to any one of claims 1 to 6.