Method, device and electronic equipment for collecting workpiece processing data
The server obtains the milling force data and workpiece profile diagram of the CNC machine tool in real time, judges the abnormal data and calculates the contour change rate, solving the problem of low data acquisition efficiency in the abnormal links during the CNC machine tool processing, and achieving efficient and accurate data acquisition.
Patent Information
- Application Number
- CN202310096045.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-04
- Publication Date
- 2025-08-08
- Estimated Expiration
- 2043-02-04
AI Technical Summary
In the prior art, the data acquisition efficiency of workpiece processing in abnormal links during the CNC machine tool processing is low, and it is necessary to improve the accuracy and efficiency of data acquisition.
The server obtains the milling force data of the CNC machine tool and the outline diagram of the workpiece in real time, judges whether the milling force data is abnormal, calculates the contour change rate, and outputs abnormal data to complete the collection of workpiece processing data.
It improves the efficiency and accuracy of workpiece processing data acquisition in abnormal links during CNC machine processing, reduces the dependence of manual judgment, and realizes automated and efficient data acquisition.
Smart Images

Figure CN116061005B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of intelligent manufacturing, and specifically to a method, device and electronic equipment for collecting workpiece processing data. Background Art
[0002] The majority of manufacturing companies' data comes from the production and manufacturing process in the machining workshop. This data includes information system operations, CNC machine tool operation data, and product manufacturing parameters. This data is the foundation of intelligent manufacturing. Fully mining and utilizing this data, combined with manufacturing industry knowledge, is crucial for optimizing the manufacturing process.
[0003] Data generated during CNC machine tool operation is typically collected using external sensors. For example, CNC machine tool status signals collected by vibration and temperature sensors are connected to an acquisition card. After being converted into relevant data, the data is then transmitted to a database via a local area network for storage. An acquisition card is an electronic device that digitizes analog signals such as photoelectric, video, and audio signals and then imports them into a computer.
[0004] After a CNC machine tool processes a workpiece, if the resulting part doesn't meet design requirements, personnel must use their experience to determine the possible cause and then manually check the database for abnormal processing data. This data collection process is inefficient for abnormal processing steps, so a method is needed to improve the efficiency of collecting processing data for abnormal processing steps. Summary of the Invention
[0005] The present application provides a method, device and electronic equipment for collecting workpiece processing data, which have the effect of improving the efficiency of collecting workpiece processing data in abnormal links during the processing process.
[0006] In a first aspect of the present application, a method for collecting workpiece processing data is provided, the method being applied to a server and comprising:
[0007] Real-time acquisition of cutting tool milling force data; and,
[0008] Acquire the contour line of the workpiece in real time and generate the contour map of the workpiece;
[0009] Determining whether the milling force data is abnormal data, if at a first moment, the milling force data is abnormal data, retrieving all first contour graphs of the workpiece within a first time period, wherein the first time period is determined with the first moment as an intermediate node;
[0010] Calculating the contour change rate of the workpiece contour in the first contour map;
[0011] If the contour change rate is greater than a preset first threshold, the first contour map is output.
[0012] By adopting the above technical solution, during the milling process of the CNC machine tool on the workpiece, the server obtains the milling force data of the CNC machine tool and the contour map of the workpiece in real time. If the server preliminarily determines that the milling force data at the first moment is abnormal data, it indicates that there may be an abnormality in the processing process in the first time period. The server retrieves the first contour map of the workpiece in the first time period and calculates the contour change rate to reflect the speed of the change of the workpiece shape before and after the first moment. If the server determines that the contour change rate is greater than the first threshold, it indicates that the speed of the change of the workpiece shape before and after the first moment is significantly different, and there is an abnormality in the processing process. The server outputs all the first contour maps to complete the collection of the processing data of the workpiece in the first time period. The server determines whether there is an abnormality in the processing process through two calculations, which is conducive to improving the accuracy of the judgment. At the same time, if the server determines that there is an abnormality, it automatically outputs the processing data of the workpiece in the abnormal link, thereby improving the efficiency of collecting the processing data of the workpiece in the abnormal link during the processing process.
[0013] Optionally, the step of acquiring the contour line of the workpiece in real time and generating the contour map of the workpiece specifically includes: acquiring a processed image of the workpiece during processing in real time, performing noise reduction processing on the processed image, and obtaining a processed image;
[0014] Performing image recognition on the processed image to extract the contour line corresponding to the workpiece and the pixel blocks within the contour line;
[0015] The contour map is generated according to the contour line and the pixel blocks within the contour line.
[0016] By adopting the above technical solution, the server obtains the processed image of the workpiece in real time, and generates a contour map after corresponding processing of the processed image. The contour map only includes the workpiece contour line and the pixel blocks within the contour line, which is conducive to reducing the memory occupied by the entire image.
[0017] Optionally, the determining whether the milling force data contains abnormal data specifically includes: retrieving pre-stored standard processing data of the milling force of the tool;
[0018] Performing a real-time difference operation on the value of the standard processing data and the value of the milling force data to generate a first difference;
[0019] The first difference is compared with a preset second threshold value. If the first difference is greater than the second threshold value, it is determined that the milling force data corresponding to the first difference is abnormal data.
[0020] By adopting the above technical solution, the server calculates the first difference between the milling force data and the standard processing data. If the first difference is greater than the second threshold, it indicates that there is a large difference between the processing process and the standard processing process, and it can be preliminarily judged that the processing state of the workpiece is abnormal.
[0021] Optionally, after determining that the milling force data is abnormal data, the method further comprises: if the milling force data at the first moment is greater than a preset second threshold, calculating the difference between the milling force data at multiple moments after the first moment and the standard machining data;
[0022] If the differences at multiple moments are all greater than the second threshold, an abnormal milling force signal is output.
[0023] Through the above technical solution, after determining that the milling force data at the first moment is abnormal data, the server calculates the difference between the milling force data at multiple moments after the first moment and the standard processing data, and further assists in determining whether there are abnormal conditions in the processing process, which is conducive to reducing the impact of accidental errors, improving the accuracy of judgment, and thereby improving the accuracy of collecting processing data in abnormal links.
[0024] Optionally, after outputting the abnormal milling force signal, the method further comprises: calculating a first change rate corresponding to pixels of the contour image before the first moment using a preset formula;
[0025] Calculating a second change rate corresponding to the pixels of the contour image after the first moment using the preset formula;
[0026] An absolute value of a difference between the first change rate and the second change rate is obtained, and the absolute value of the difference is the profile change rate.
[0027] By employing this technical solution, the server calculates the first and second change rates, i.e., the rate of change of the workpiece's contour before and after the first moment. The server then compares the difference in the workpiece's contour change rate before and after the first moment to determine the contour change rate. This allows the server to subsequently determine whether the workpiece contour change rate is normal, and thus whether there are any abnormalities in the machining process.
[0028] Optionally, if the contour change rate is greater than a preset first threshold, after outputting the first contour image, the method further comprises: acquiring images of the tool at multiple angles within a first time period;
[0029] Pre-process multiple images of the tool to calculate the real-time position of the tool;
[0030] The tool trajectory data of the machining tool is generated and output based on the real-time position.
[0031] By adopting the above technical solution, when the server determines that there is a processing abnormality, it outputs the tool trajectory data after outputting the first contour map of the workpiece, thereby collecting more comprehensive workpiece processing data.
[0032] Optionally, if the profile change rate is greater than a preset first threshold, after outputting the first profile graph, the method further comprises: performing time marking and milling force data marking on the profile graph;
[0033] Converting the contour image into a change video according to the time mark, wherein the change video includes the contour image, the time mark and the milling force data mark;
[0034] The changed video is output.
[0035] By adopting the above technical solution, the machining process of the workpiece is output in the form of video, which can visualize the shape change data of the workpiece. At the same time, the change video includes milling force data and corresponding time stamps, making the collected workpiece machining data more comprehensive.
[0036] In a second aspect of the present application, a device for collecting workpiece processing data is provided. The device is a server, comprising an acquisition module, a processing module, and an output module, wherein:
[0037] The acquisition module is used to acquire the milling force data of the tool in real time; and
[0038] Acquire the contour line of the workpiece in real time and generate the contour map of the workpiece;
[0039] The processing module is configured to determine whether the milling force data is abnormal data, and if the milling force data is abnormal data at a first moment, retrieve all first contour graphs of the workpiece within a first time period, wherein the first time period is determined with the first moment as an intermediate node;
[0040] Calculating the contour change rate of the workpiece contour in the first contour map;
[0041] An output module is configured to output the first contour image if the contour change rate is greater than a preset first threshold.
[0042] Optionally, the device further includes a storage module;
[0043] The storage module is used to store the milling force data and the contour map.
[0044] In the third aspect of the present application, an electronic device is provided, including a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are both used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes any one of the methods described above.
[0045] In summary, this application has at least the following beneficial technical effects:
[0046] 1. While a CNC machine tool is milling a workpiece, the server acquires the machine's milling force data and the workpiece's contour map in real time. If the server initially determines that the milling force data at the first moment is abnormal, this indicates that the machining process during the first time period may have been abnormal.
[0047] 2. The server retrieves the first contour image of the workpiece within the first time period and calculates the contour change rate to reflect the speed of the workpiece's shape change before and after the first moment. The server determines that if the contour change rate is greater than the first threshold, it indicates that the speed of the workpiece's shape change before and after the first moment is significantly different, and there is an abnormality in the processing process. The server outputs all first contour images to complete the collection of processing data for the workpiece within the first time period. The server performs two calculations to determine whether there is an abnormality in the processing process, which is conducive to improving the accuracy of the judgment. At the same time, if the server determines that there is an abnormality, it automatically outputs the processing data of the workpiece in the abnormal link, thereby improving the efficiency of collecting processing data of the workpiece in the abnormal link during the processing process. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 It is a flow chart of a method for collecting workpiece processing data disclosed in an embodiment of the present application.
[0049] Figure 2 It is a structural schematic diagram of a workpiece processing data acquisition device disclosed in an embodiment of the present application.
[0050] Figure 3 This is a schematic diagram of the structure of the electronic device disclosed in the embodiment of this application
[0051] Explanation of the accompanying drawings: 1. Acquisition module; 2. Processing module; 3. Output module; 4. Storage module; 5. Processor; 6. Communication bus; 7. User interface; 8. Network interface; 9. Memory. DETAILED DESCRIPTION
[0052] In the description of the embodiments of this application, words such as "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "for example" in the embodiments of this application should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "for example" is intended to present the relevant concepts in a concrete manner.
[0053] In the description of the embodiments of the present application, unless otherwise specified, the term "multiple" means two or more. For example, multiple systems refers to two or more systems, and multiple screen terminals refers to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
[0054] This embodiment discloses a method for collecting workpiece processing data, which is applied to a server. Figure 1 , including the following steps:
[0055] S110, obtaining the milling force data of the tool in real time.
[0056] S120, acquiring the contour line of the workpiece in real time and generating a contour map of the workpiece.
[0057] S130, determining whether the milling force data is abnormal data. If the milling force data is abnormal data at the first moment, retrieve all first contour graphs of the workpiece within the first time period, and the first time period is determined with the first moment as the intermediate node.
[0058] S140, calculating the contour change rate of the workpiece contour in the first contour graph.
[0059] S150: If the contour change rate is greater than a preset first threshold, output a first contour map.
[0060] Specifically, during the milling process of a workpiece on a CNC machine tool, the server can obtain the milling force data of the CNC machine tool in real time using a dynamometer, or by measuring the spindle current signal of the CNC machine tool's spindle motor and calculating the milling force data based on the signal strength. A camera is positioned around the workpiece to capture the machining process. The camera captures the workpiece's machining image in real time and transmits it to the server. The server identifies and extracts the workpiece's contour lines and generates a contour map based on the contour lines. The contour map only includes the contour lines corresponding to the workpiece and the pixel blocks within the contour lines. The server first calculates a first difference between the milling force data and pre-stored standard machining data, then determines whether the first difference is greater than a preset threshold. The server then preliminarily determines whether the milling force data is abnormal. If the milling force data is abnormal at the first moment, the server retrieves a first contour map of the workpiece during a first time period and calculates the contour change rate, which reflects the speed of the workpiece's external shape change before and after the first moment. The length of the first time period can be determined based on the machining conditions and is not specifically limited in this embodiment. For example, if the first moment is 10:00 AM, the first time period can be from 9:30 AM to 10:20 AM. If the contour change rate exceeds a first threshold, the server determines that the speed of the workpiece's contour change before and after the first moment is significantly different, indicating an abnormality in the machining process. The server then outputs all first contour images to complete the collection of machining data for the workpiece during the first time period. The server performs two calculations to determine whether an abnormality exists in the machining process, which helps improve the accuracy of the judgment. The server also automatically determines whether an abnormality exists and outputs the machining data for the workpiece during the abnormal phase, improving the efficiency of data collection for workpieces during abnormal phases of the machining process.
[0061] In a possible implementation, a spindle current signal of a spindle motor is acquired in real time, the spindle current signal is filtered to obtain a milling load signal, and the milling force data is calculated based on the milling load signal.
[0062] Specifically, according to existing research, changes in tool load torque will cause changes in the amplitude of the spindle current signal. Therefore, the spindle current signal can be detected through a current measurement circuit, and the tool milling force data can be calculated. The current measurement circuit includes at least: a Hall current sensor, an I / O board, and an acquisition card. First, the Hall current sensor is connected to the CNC machine tool cabinet, and the Hall current sensor is then connected to the acquisition card via the I / O board. Once the acquisition card is connected to the computer, the spindle current signal of the spindle motor can be collected. By obtaining the amplitude change data of the spindle current, the effective current value (RMS) is calculated, that is, the root mean square of the sum of the three-phase squares of the alternating current is calculated. The current RMS value is then analyzed to obtain the current RMS signal. The current RMS signal is filtered using a bandpass filter to extract a signal containing only the fundamental frequency of the tooth frequency, namely the milling load signal. Finally, the milling force value is calculated based on the amplitude of the milling load signal. The specific calculation process is a common technical means in the relevant field and will not be further described here.
[0063] In one possible embodiment, acquiring a workpiece contour in real time and generating a workpiece contour map specifically includes: acquiring a processed image of the workpiece in real time during processing; performing noise reduction processing on the processed image to obtain a processed image; performing image recognition on the processed image to extract the contour line corresponding to the workpiece and the pixel blocks within the contour line; and generating a contour map based on the contour line and the pixel blocks within the contour line.
[0064] Specifically, a camera is set up in a fixed position and captures grayscale images of the workpiece surface at a fixed angle throughout the machining process, thus capturing the processed image. The camera is connected to a server and transmits the processed image to the server. The server then denoises the processed image to produce a processed image. After processing, an edge detection algorithm is used to identify the workpiece's outline in the processed image, extracting the corresponding contour line and the pixel blocks within the contour line. Finally, a contour map of the workpiece is generated based on the contour line and the pixel blocks within the contour line, thus reducing the memory required for the image.
[0065] In one possible embodiment, determining whether the milling force data contains abnormal data specifically includes: retrieving pre-stored standard machining data of the milling force of the tool; performing a real-time difference calculation between a value of the standard machining data and a value of the milling force data to generate a first difference value; and comparing the first difference value with a preset second threshold value. If the first difference value is greater than the second threshold value, determining that the milling force data corresponding to the first difference value is abnormal data.
[0066] Specifically, a standard processing is performed on the workpiece to obtain a standard part that meets the design requirements. During the standard processing project, a dynamometer is used to collect data on the milling force of the tool in real time, that is, to obtain standard processing data of the milling force and store it. For example, during the workpiece processing process, the server obtains the milling force data for thirty minutes from the start of processing and retrieves the standard processing data for thirty minutes from the start of standard processing. The server then calculates the absolute value of the difference between the milling force data and the standard processing data. The absolute value of the difference is the milling force difference. At the first moment, the server determines that if the milling force difference is greater than the preset first threshold, it preliminarily determines that the processing state of the workpiece is abnormal.
[0067] In one possible embodiment, after determining that the milling force data is abnormal, the method further includes: if the milling force data at a first moment is greater than a preset second threshold, calculating the difference between the milling force data at multiple moments after the first moment and the standard machining data. If the differences at the multiple moments are all greater than the second threshold, outputting a milling force abnormality signal.
[0068] Specifically, after the server determines that the milling force data at a first moment is abnormal, starting from that first moment, at each preset interval, the server calculates the difference between the milling force data and the standard processing data and determines whether the difference is greater than a first threshold. If multiple differences are greater than the first threshold, indicating that the processing process deviates from the standard processing process, the server outputs a milling force abnormality signal. The specific value of the first threshold can be adjusted according to actual conditions and is again not limited. The preset time can be 0.5 seconds, 5 seconds, or 10 seconds, and in this embodiment, 0.5 seconds is preferred.
[0069] In one possible embodiment, after outputting the abnormal milling force signal, the method further includes: calculating a first rate of change corresponding to pixels in the contour image before a first moment using a preset formula. Calculating a second rate of change corresponding to pixels in the contour image after the first moment using a preset formula. Calculating an absolute value of the difference between the first rate of change and the second rate of change, where the absolute value of the difference is the contour change rate.
[0070] Specifically, the server pre-divides the first time period into several sub-time periods of equal length. For example, the server pre-divides the first time period into several 5-second intervals, obtains a first contour image every 5 seconds, obtains the grayscale values of all pixel blocks in the first contour image, and sorts all contour images in chronological order. The server then calculates the pixel block difference between pixel blocks at the same position in two adjacent contour images. The server sums and weighted averages all pixel block differences to obtain a pixel difference value. The server then calculates the first and second change rates according to a preset formula. The specific content of the preset formula is as follows.
[0071] Where: T is the middle time value of the sub-time period; H is the pixel difference; T is the average time value of the middle time values in the first time period; H is the average pixel difference in the first time period.
[0072] After calculating the first and second rates of change using a preset formula, the absolute value of the difference between the two is calculated. This absolute value represents the contour change rate. If the contour change rate exceeds a first threshold, the server determines that the difference in the rate of change of the workpiece's contour before and after the first moment is significant, indicating an abnormality in the machining process.
[0073] In one possible embodiment, if the profile change rate is greater than a preset first threshold, after outputting the first profile image, the method further includes: acquiring images of the tool at multiple angles within a first time period, preprocessing the multiple images of the tool, calculating a real-time position of the tool, and generating and outputting tool trajectory data of the machining tool based on the real-time position.
[0074] Specifically, a first camera is positioned directly in front of or behind the workpiece to capture a first tool image of the tool in real time. Based on the first tool image, the X and Z coordinates of the tool spindle are calculated. A second camera is positioned directly to the left or right of the workpiece to capture a second tool image of the tool in real time. Based on the second tool image, the Y and Z coordinates of the tool spindle are calculated. Based on the X and Z coordinates, the real-time position of the tool spindle is determined. The tool trajectory of the tool is then calculated and output based on all the real-time positions.
[0075] In one possible embodiment, if the profile change rate is greater than a preset first threshold, after outputting the first profile image, the method further includes: the server time-stamping the profile image, i.e., marking it according to the workpiece processing time, and performing milling force tagging on the profile image, marking the milling force data of the tool when the profile image was collected. The profile image is converted into a change video based on the time tag, and the change video includes the profile image, the time tag, and the milling force data tag, and finally the change video is output. Outputting the workpiece processing process in video form can visualize the workpiece's shape change data. At the same time, the change video includes the milling force data and the corresponding time tag, making the collected workpiece processing data more comprehensive.
[0076] This embodiment also discloses a device for collecting workpiece processing data, which is a server and includes an acquisition module 1, a processing module 2, and an output module 3, wherein:
[0077] An acquisition module 1 is used to acquire the milling force data of the tool in real time; and
[0078] Acquire the contour line of the workpiece in real time and generate the contour map of the workpiece;
[0079] Processing module 2 is configured to determine whether the milling force data is abnormal data. If the milling force data is abnormal data at the first moment, all first contour graphs of the workpiece within a first time period are retrieved, where the first time period is determined with the first moment as the intermediate node; and a contour change rate of the workpiece contour in the first contour graph is calculated.
[0080] The output module 3 is configured to output a first contour map if the contour change rate is greater than a preset first threshold.
[0081] In a possible implementation, the device further includes a storage module 4 .
[0082] The storage module 4 is used to store milling force data and contour maps.
[0083] In a possible implementation, the server is used to acquire a processing image of the workpiece during processing in real time, and perform noise reduction processing on the processing image to obtain a processed image;
[0084] Perform image recognition on the processed image to extract the contour line corresponding to the workpiece and the pixel blocks within the contour line;
[0085] Generate a contour map based on the contour line and the pixel blocks within the contour line.
[0086] In a possible implementation, the server is used to retrieve pre-stored standard processing data of the milling force of the tool;
[0087] Performing a real-time difference operation on the numerical value of the standard processing data and the numerical value of the milling force data to generate a first difference value;
[0088] The first difference is compared with a preset second threshold value. If the first difference is greater than the second threshold value, it is determined that the milling force data corresponding to the first difference is abnormal data.
[0089] In one possible implementation, the server is configured to calculate a first difference between the milling force data and the standard machining data at multiple moments after the first moment if the milling force difference at the first moment is greater than a preset second threshold;
[0090] If the first differences at multiple moments are all greater than the second threshold, an abnormal milling force signal is output.
[0091] In a possible implementation, the server is configured to calculate a first change rate corresponding to pixels of the contour image before the first moment using a preset formula;
[0092] Calculating a second rate of change corresponding to pixels of the contour image after the first moment using a preset formula;
[0093] The absolute value of the difference between the first change rate and the second change rate is calculated, and the absolute value of the difference is the contour change rate.
[0094] In one possible implementation, the server is configured to obtain images of the tool at multiple angles within a first time period; pre-process the multiple images of the tool to calculate the real-time position of the tool;
[0095] Generates and outputs tool path data for the machining tool based on the real-time position.
[0096] In a possible implementation, the server is configured to time-stamp and milling force data-stamp the contour image; convert the contour image into a change video according to the time stamp, the change video including the contour image, the time stamp, and the milling force data stamp;
[0097] Output the changed video.
[0098] This application also provides an electronic device, referring to Figure 3 The electronic device may include: at least one processor 5, at least one communication bus 6, a user interface 7, a network interface 8, and at least one memory 9.
[0099] The communication bus 6 is used to realize the connection and communication between these components.
[0100] The user interface 7 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 7 may also include a standard wired interface and a wireless interface.
[0101] The network interface 8 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0102] The processor 5 may include one or more processing cores. The processor 5 utilizes various interfaces and circuits to connect various components within the server. It executes instructions, programs, code sets, or instruction sets stored in the memory 9, as well as accesses data stored in the memory 9, to perform various server functions and process data. Optionally, the processor 5 may be implemented using at least one of the following hardware forms: a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor 5 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU primarily processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content displayed on the display; and the modem handles wireless communications. It is understood that the modem may not be integrated into the processor 5 but may be implemented as a separate chip.
[0103] The memory 9 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 9 includes a non-transitory computer-readable storage medium. The memory 9 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 9 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 9 may also optionally be at least one storage device located away from the aforementioned processor 5. As shown in the figure, the memory 9 as a computer storage medium may include an operating system, a network communication module, a user interface 7 module, and an application program for a method for collecting workpiece processing data.
[0104] exist Figure 3In the electronic device shown, the user interface 7 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 5 can be used to call an application program for a method for collecting workpiece processing data stored in the memory 9. When executed by one or more processors 5, the electronic device executes one or more methods as in the above-mentioned embodiments.
[0105] It should be noted that for the aforementioned method embodiments, for simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for this application.
[0106] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0107] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are merely schematic, such as the division of units, which is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interface, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0108] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0109] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0110] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory 9 and includes a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory 9 includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a magnetic disk, or an optical disk.
[0111] The above is only an exemplary embodiment of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, those skilled in the art will easily think of other embodiments of the present disclosure. This application is intended to cover any variation, use or adaptive change of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the art that are not recorded in the present disclosure. The description and examples are to be regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.
Claims
1. A method for collecting workpiece processing data, characterized in that: The method is applied to a server and includes: acquiring milling force data of a tool in real time; and Acquire a processed image of a workpiece during processing in real time, and perform noise reduction processing on the processed image to obtain a processed image; Performing image recognition on the processed image to extract the contour line corresponding to the workpiece and the pixel blocks within the contour line; generating the contour map according to the contour line and the pixel block; Retrieving pre-stored standard processing data of the milling force of the tool; Performing a real-time difference operation on the value of the standard processing data and the value of the milling force data to generate a first difference; Comparing the first difference with a preset second threshold value, and if the first difference is greater than the second threshold value, determining that the milling force data corresponding to the first difference is abnormal data; if, at a first moment, the milling force data is abnormal data, retrieving all first contour graphs of the workpiece within a first time period, wherein the first time period is determined with the first moment as an intermediate node; If the milling force difference at the first moment is greater than a preset second threshold, calculating a first difference between the milling force data and the standard machining data at multiple moments after the first moment; If the first difference at multiple moments is greater than the second threshold, output a milling force abnormality signal; Calculating a first change rate corresponding to pixels of the contour image before the first moment using a preset formula; Calculating a second change rate corresponding to the pixels of the contour image after the first moment using the preset formula; Calculating an absolute value of a difference between the first change rate and the second change rate, wherein the absolute value of the difference is the profile change rate; If the contour change rate is greater than a preset first threshold, the first contour map is output.
2. The method for collecting workpiece processing data according to claim 1, characterized in that: If the contour change rate is greater than a preset first threshold, after outputting the first contour map, the method further includes: Acquire images of the tool at multiple angles within a first time period; Pre-process multiple images of the tool to calculate the real-time position of the tool; The tool trajectory data of the machining tool is generated and output based on the real-time position.
3. The method for collecting workpiece processing data according to claim 1, characterized in that: If the contour change rate is greater than a preset first threshold, after outputting the first contour map, the method further includes: Performing time stamping and milling force data stamping on the contour map; Converting the contour image into a change video according to the time mark, wherein the change video includes the contour image, the time mark and the milling force data mark; The changed video is output.
4. A device for collecting workpiece processing data, characterized in that: For implementing the method for collecting workpiece processing data according to claim 1, the device is a server, comprising an acquisition module (1), a processing module (2) and an output module (3), wherein: the acquisition module (1) is used to obtain the milling force data of the tool in real time; and Acquire a processed image of a workpiece during processing in real time, and perform noise reduction processing on the processed image to obtain a processed image; Performing image recognition on the processed image to extract the contour line corresponding to the workpiece and the pixel blocks within the contour line; generating the contour map according to the contour line and the pixel block; The processing module (2) Used to call pre-stored standard processing data of the milling force of the tool; Performing a real-time difference operation on the value of the standard processing data and the value of the milling force data to generate a first difference; Comparing the first difference with a preset second threshold value, and if the first difference is greater than the second threshold value, determining that the milling force data corresponding to the first difference is abnormal data; if, at a first moment, the milling force data is abnormal data, retrieving all first contour graphs of the workpiece within a first time period, wherein the first time period is determined with the first moment as an intermediate node; If the milling force difference at the first moment is greater than a preset second threshold, calculating a first difference between the milling force data and the standard machining data at multiple moments after the first moment; If the first difference at multiple moments is greater than the second threshold, output a milling force abnormality signal; Calculating a first change rate corresponding to pixels of the contour image before the first moment using a preset formula; Calculating a second change rate corresponding to the pixels of the contour image after the first moment using the preset formula; Calculating an absolute value of a difference between the first change rate and the second change rate, wherein the absolute value of the difference is the profile change rate; An output module (3) is used to output the first contour image if the contour change rate is greater than a preset first threshold value.
5. The device for collecting workpiece processing data according to claim 4, characterized in that: The device also includes a storage module (4); The storage module (4) is used to store the milling force data and the contour map.
6. An electronic device, characterized in that: The electronic device comprises a processor (5), a memory (9), a user interface (7) and a network interface (8), wherein the memory (9) is used to store instructions, the user interface (7) and the network interface (8) are both used to communicate with other devices, and the processor (5) is used to execute the instructions stored in the memory (9) so that the electronic device executes the method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Production line monitoring system and control method thereof
CN113791588A
Cutting force measuring method and device, electronic equipment and storage medium
CN113798919A
Industrial manufacturing system based on cloud platform and control method thereof
CN114637261A