A CNC spinning equipment control method, equipment and medium based on the Internet of Things
By integrating Internet of Things technology into CNC spinning equipment, collecting and analyzing temperature, humidity, vibration and image data, combined with three-coordinate measurement and neural network algorithms, the problem of equipment accuracy and reliability is solved, and efficient production of spinning parts is achieved. and quality control.
Patent Information
- Application Number
- CN202410962869.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-18
AI Technical Summary
How to accurately process products by modifying CNC spinning equipment, taking into account the influence of environmental factors and human factors, it is difficult to achieve high precision and reliability with existing technology.
The CNC spinning equipment control method based on the Internet of Things is used to collect data by arranging temperature sensors, humidity sensors, vibration sensors and camera modules, and use three-coordinate measuring devices and neural network algorithms to determine whether the spinning parts meet production requirements and provide Provide feedback and suggestions to adjust equipment to ensure product accuracy.
It achieves accurate and efficient three-dimensional measurement of spun parts and comprehensive analysis of the production process, improves production efficiency and product quality, reduces manual intervention, and reduces production and maintenance costs.
Smart Images

Figure CN118493939B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of CNC spinning equipment, and in particular to a CNC spinning equipment control method, equipment and medium based on the Internet of Things. Background Art
[0002] The spinning machine is a metal plastic forming machine. An AC servo system is installed on the bed. The rotating wheel frame in the system is equipped with two mutually perpendicular slides, one vertical and one horizontal. The horizontal and vertical feeding adopts a precision ball screw pair, which is connected to the synchronous belt drive pair and the precision ball screw pair by the servo motor in sequence; a precision ball linear guide is provided under the slide; a "copying" mechanism for the core mold outline is provided on the horizontal slide of the rotating wheel frame; the numerical control system device that controls the servo system and the programmable controller that controls the hydraulic transmission system are respectively connected to the industrial PC.
[0003] The new spinning machine, namely CNC spinning equipment, realizes automatic processing and control, and is a multifunctional and general-purpose equipment. It has high precision and reliability, and has CAD drawing programming function, core mold copy function and recording and returning function. The error of products produced by CNC spinning machines usually needs to be controlled at the micron level, and environmental factors such as temperature, humidity, vibration, and human factors may affect the accuracy of the product.
[0004] Therefore, how to accurately process products by correcting CNC spinning equipment has become a technical problem that needs to be solved urgently. Summary of the invention
[0005] The embodiments of the present invention provide a method, device and medium for controlling CNC spinning equipment based on the Internet of Things, which are used to solve the following technical problems: accurately processing products by correcting CNC spinning equipment.
[0006] In the first aspect, an embodiment of the present invention provides a control method for CNC spinning equipment based on the Internet of Things, characterized in that the method includes: arranging relevant temperature sensors, humidity sensors, vibration sensors and camera modules for the CNC spinning equipment based on different models of the CNC spinning equipment to collect temperature data, humidity data, vibration data and image data of each device in the CNC spinning equipment; based on a preset three-coordinate measuring device and preset theoretical data, measuring relevant coordinates of the spun parts produced by the extracted CNC spinning equipment to determine the three-dimensional data of the spun parts; comparing the theoretical data of the spun parts based on the three-dimensional data to determine whether the spun parts meet the preset The invention relates to a method for adjusting the CNC spinning equipment according to the production requirements of the production process; when the spun parts do not meet the production requirements, the equipment status of the CNC spinning equipment is judged based on the temperature data, humidity data, vibration data and image data to give a first feedback suggestion; wherein the first feedback suggestion is a feedback suggestion related to the main body of the CNC spinning equipment; when the first feedback suggestion cannot be given, the three-dimensional data is fitted to the theoretical data to give a second feedback suggestion; wherein the second feedback suggestion is a feedback suggestion related to the programming of the CNC spinning equipment; based on the first feedback suggestion and the second feedback suggestion, the CNC spinning equipment is adjusted at least once to enable the CNC spinning equipment to produce spun parts that meet the production requirements.
[0007] In one implementation of the present invention, based on a preset three-coordinate measuring device and preset theoretical data, relevant coordinates of the spun parts produced by the extracted CNC spinning equipment are measured to determine the three-dimensional data of the spun parts, specifically including: determining the placement of the spun parts on the three-coordinate measuring device based on the theoretical data, and fixing the spun parts on the three-coordinate measuring device based on the placement, and establishing a three-dimensional coordinate system; selecting an appropriate detection system based on the shape of the spun parts, and determining the coordinate values of the spun parts at each measuring point based on the detection system; correcting the origin of the three-dimensional coordinate system based on the coordinate values and referring to the theoretical data, thereby determining the three-dimensional data of the spun parts.
[0008] By adopting the above technical solution, accurate and efficient three-dimensional measurement of the spun parts can be achieved, and the three-dimensional data of the spun parts can be obtained.
[0009] In one implementation of the present invention, theoretical data of a spun part is compared based on three-dimensional data to determine whether the spun part meets preset production requirements, specifically including: the production requirements include a first production requirement and a second production requirement; wherein the data of the first production requirement is less than the data of the second production requirement; the coordinate values of the three-dimensional data are compared with the coordinate values of the theoretical data to determine a production error set; when the errors in the production error set are all less than the first production requirement, the spun part meets the production requirements; when the errors in the production error set are greater than or equal to the first production requirement and less than or equal to the second production requirement, a plurality of spun parts are continuously detected, and whether the spun parts meet the production requirements is determined based on the change conditions of the plurality of spun parts; when the errors in the production error set are greater than the second production requirement, the spun part does not meet the production requirements.
[0010] By adopting the above technical solution, through the judgment process, it is possible to accurately judge whether the spun parts meet the preset production requirements. This judgment method takes into account both the production accuracy requirements and the continuity and stability of production, thereby improving the accuracy and reliability of the judgment.
[0011] In one implementation of the present invention, when a spun part does not meet production requirements, a first feedback suggestion is given based on temperature data, humidity data, vibration data and image data, specifically including: based on time relationship and position relationship, associating temperature data, humidity data, vibration data and three-dimensional data to generate a three-dimensional matrix; wherein any different temperature data, humidity data and vibration data correspond to unique three-dimensional data; retrieving temperature data, humidity data, vibration data and image data of the spun parts that do not meet production requirements during the processing process; processing image data based on a preset neural network algorithm to determine whether there is mechanical damage to the CNC spinning equipment, and generating a first sub-feedback suggestion according to the type of mechanical damage; querying the three-dimensional matrix based on the temperature data, humidity data and vibration data of the spun part to determine the historical data corresponding to the spun part; comparing the three-dimensional data based on the historical data, and generating a second sub-feedback suggestion based on whether the historical data is the same as the three-dimensional data; giving a first feedback suggestion based on the first sub-feedback suggestion and the second sub-feedback.
[0012] By adopting the above technical solutions, we can make full use of real-time information such as temperature data, humidity data, vibration data and image data to conduct comprehensive and in-depth analysis and diagnosis of the production process of spun parts. By generating the first feedback suggestions, the system can provide targeted guidance to operators, helping them to quickly locate problems and take effective measures to adjust and optimize, thereby improving production efficiency and product quality.
[0013] In one implementation of the present invention, the three-dimensional data is compared based on historical data, and a second sub-feedback suggestion is generated based on whether the historical data and the three-dimensional data are the same, specifically including: when the historical data and the three-dimensional data are the same, the final solution of the historical data is retrieved to generate the second sub-feedback suggestion; when the historical data and the three-dimensional data are different, the temperature sensor, humidity sensor, and vibration sensor are checked to generate the second sub-feedback suggestion. In one implementation of the present invention, when the first feedback suggestion cannot be given, the three-dimensional data is fitted to the theoretical data to give the second feedback suggestion, specifically including: when the first feedback suggestion cannot be given, the processing program of the CNC spinning equipment for the spun parts is retrieved; the ideal model corresponding to the spun parts is simulated based on the processing program; whether the CNC spinning equipment needs to be repaired is determined based on the preset processing degree priority; if no repair is required, the processing program is corrected based on the ideal model, theoretical data, and formal model to generate the second feedback suggestion; wherein the second feedback suggestion is the corrected processing program.
[0014] By adopting the above technical solutions, when real-time data cannot directly provide solutions, the system can simulate and analyze based on theoretical data and processing procedures to find possible problems and give corresponding correction suggestions. This helps to optimize the processing procedures and improve the production quality and efficiency of spun parts.
[0015] In one implementation of the present invention, if the priority is that no maintenance is required, the processing program is corrected based on the ideal model, theoretical data and formal model to generate a second feedback suggestion, specifically including: comparing the ideal model and theoretical data to determine the deviation; correcting the processing program through the deviation, adjusting the data of the processing program related to the x-axis, y-axis and z-axis to generate a corrected processing program; integrating the corrected processing program as the second feedback suggestion.
[0016] In one implementation of the present invention, the CNC spinning equipment is adjusted at least once based on the first feedback suggestion and the second feedback suggestion so that the CNC spinning equipment can produce spun parts that meet the production requirements, specifically including: adjusting the CNC spinning equipment according to the first feedback suggestion and the second feedback suggestion to generate an updated CNC spinning equipment; producing spun parts based on the updated CNC spinning equipment, and sending the spun parts to a three-coordinate measuring device to measure whether the spun parts meet the production requirements; when the spun parts do not meet the production requirements, repeatedly generating the first feedback suggestion and the second feedback suggestion, and correcting the CNC spinning equipment based on the first feedback suggestion and the second feedback suggestion; when the number of corrections reaches a preset correction threshold, stopping correcting the CNC spinning equipment and notifying the corresponding repair platform; when the spun parts meet the production requirements, producing spun parts based on the CNC spinning equipment, and the three-coordinate measuring device increases the sampling frequency.
[0017] By adopting the above technical solution, errors caused by feedback suggestion errors can be reduced through loop optimization, which can improve equipment performance and intelligence level, and reduce production costs and resource waste.
[0018] In the second aspect, an embodiment of the present invention further provides a CNC spinning equipment control device based on the Internet of Things, characterized in that it includes a memory and a processor, a computer program is stored in the memory, and when the processor executes the program, it implements any of the above CNC spinning equipment control methods based on the Internet of Things.
[0019] In the third aspect, an embodiment of the present invention further provides a computer-readable storage medium for controlling CNC spinning equipment based on the Internet of Things, characterized in that a computer program is stored thereon, and when the program is executed by a processor, any of the above methods for controlling CNC spinning equipment based on the Internet of Things is implemented.
[0020] The embodiments of the present invention provide a method, device and medium for controlling a CNC spinning device based on the Internet of Things. Compared with the prior art, the embodiments of the present invention have the following beneficial technical effects:
[0021] Improve production efficiency and product quality: By collecting temperature, humidity, vibration and image data of CNC spinning equipment and measuring the three-dimensional data of spun parts with a three-coordinate measuring device, problems in the production process can be discovered in a timely manner, and the equipment can be adjusted through feedback suggestions, thereby improving production efficiency and product quality.
[0022] Intelligent monitoring and problem diagnosis: Based on real-time collected data, the system can automatically determine the status of CNC spinning equipment and provide feedback suggestions related to the equipment body or programming. This intelligent monitoring and problem diagnosis capability reduces the need for manual intervention and improves the efficiency and accuracy of problem solving.
[0023] Precise adjustment and optimization: Based on the first and second feedback suggestions, the system can adjust the CNC spinning equipment at least once. Through precise adjustment, it can solve problems in the production process in a targeted manner, optimize the operating status of the equipment, and to a certain extent ensure that the produced spun parts meet the preset production requirements.
[0024] Adapt to different types of equipment: The system can arrange sensors and modules in a personalized way according to different types of CNC spinning equipment to ensure the accuracy and effectiveness of data collection. This flexibility enables the system to adapt to the needs of different types of equipment and improves the applicability and versatility of the system.
[0025] Improve the transparency and traceability of the production process: Through real-time data collection and feedback suggestions, the system can record various information in the production process, improving the transparency and traceability of the production process.
[0026] Reduce production and maintenance costs: Through timely monitoring and adjustment, the system can reduce scrap and downtime in the production process, thereby reducing production costs. At the same time, because the system can promptly detect equipment failures or performance degradation and give corresponding feedback suggestions, it can also reduce maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0028] Figure 1 A flow chart of a method for controlling a CNC spinning equipment based on the Internet of Things provided by an embodiment of the present invention;
[0029] Figure 2 A schematic diagram of the internal structure of a CNC spinning equipment control device based on the Internet of Things provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the specific embodiments of the present invention and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0031] CNC spinning machine is a kind of CNC spinning equipment. As a highly automated processing equipment, CNC spinning machine has undergone rigorous testing and calibration during the design and manufacturing process, and can guarantee accuracy and reliability to a certain extent. However, for all mechanical equipment, especially complex mechanical equipment, there are still some uncontrollable factors that lead to errors or failures.
[0032] For example: For unattended CNC spinning equipment, errors in processing products may occur due to mechanical failure, electrical failure, environmental factors, and programming errors.
[0033] Mechanical failure: The machine tool's transmission system, fixtures, cutting tools and other components may malfunction due to wear, looseness or damage, resulting in reduced machining accuracy, interruption of the machining process or product defects.
[0034] Electrical failure: The electrical system of CNC spinning equipment includes servo motors, drivers, sensors and other components. If these components fail, such as motor loss of step, driver overheating or sensor failure, they may affect the normal operation of the machine tool.
[0035] Environmental factors: Environmental factors such as temperature, humidity, and vibration may also affect the accuracy and stability of machine tools. For example, high temperature may cause thermal deformation of the machine tool, thereby affecting the processing accuracy.
[0036] Programming errors: CNC spinning equipment works through pre-programmed instructions. If errors occur during programming, such as incorrect coordinate settings, incorrect processing sequence, or improper parameter settings, it will cause product defects.
[0037] For CNC spinning equipment with human supervision, errors in processing products by the CNC spinning equipment may also occur due to human factors.
[0038] Human factors: The operator's skill level, work attitude and operating procedures may also have an impact on the operation of the machine tool.
[0039] The embodiments of the present invention provide a method, device and medium for controlling CNC spinning equipment based on the Internet of Things, which are used to solve the following technical problems: accurately processing products by correcting CNC spinning equipment.
[0040] The technical solution proposed in the embodiment of the present invention is described in detail below with reference to the accompanying drawings.
[0041] Figure 1 A control flow chart of a CNC spinning equipment based on the Internet of Things is provided in an embodiment of the present invention. Figure 1 As shown, an embodiment of the present invention provides a CNC spinning equipment control method based on the Internet of Things, which specifically includes the following steps:
[0042] Step 1: Based on different models of CNC spinning equipment, arrange relevant temperature sensors, humidity sensors, vibration sensors and camera modules on the CNC spinning equipment to collect temperature data, humidity data, vibration data and image data of each device in the CNC spinning equipment.
[0043] First, identify the model of CNC spinning equipment. Different models may have different equipment layouts, working conditions, and performance requirements, so customized sensor layout is required for different models.
[0044] According to the equipment model and work requirements, select the appropriate temperature sensor, humidity sensor, vibration sensor and camera module. The above sensors and modules need to have high precision, high reliability and stability to ensure that the collected data is accurate and reliable.
[0045] In specific cases, sensors and camera modules are arranged at various key parts of CNC spinning equipment. For example, temperature sensors and vibration sensors are installed on key components such as motors, bearings, and tools to monitor their operating temperature and vibration; humidity sensors are installed inside or around the equipment to monitor the ambient humidity; and camera modules are installed in the equipment operation area to record the equipment's operation process and status.
[0046] Step 2: Based on a preset three-coordinate measuring device and preset theoretical data, relevant coordinates of the spun parts produced by the extracted CNC spinning equipment are measured to determine the three-dimensional data of the spun parts.
[0047] First, the placement of the spun parts on the three-coordinate measuring device is determined based on theoretical data, and the spun parts are fixed on the three-coordinate measuring device based on the placement method, and a three-dimensional coordinate system is established. According to the theoretical data of the spun parts (such as design drawings, CAD models, etc.), the placement method of the spun parts on the three-coordinate measuring device is determined. The placement method should ensure that all key dimensions and feature points of the spun parts can be accurately measured. According to the determined placement method, the spun parts are fixed on the workbench of the three-coordinate measuring device. The fixing method should ensure that the spun parts do not move relative to the three-coordinate measuring device and do not hinder the movement of the measuring probe. After the spun parts are fixed, a three-dimensional coordinate system is established on the three-coordinate measuring device according to the shape of the spun parts and the measurement requirements. The establishment of the coordinate system should follow certain standards, such as aligning the coordinate axis with the main dimension direction of the spun parts. It can be understood that its origin is a fixed setting, which can be understood as the initial origin.
[0048] Furthermore, an appropriate detection system is selected based on the shape of the spun part, and the coordinate value of any feature point of the spun part is determined based on the detection system. According to the shape and material of the spun part, a suitable detection system (such as a contact probe, a non-contact laser measuring head, etc.) is selected. Ensure that the selected detection system can accurately measure each feature point of the spun part. Use the selected detection system to measure each feature point of the spun part one by one in a three-dimensional coordinate system. Record the coordinate value of each feature point to ensure the accuracy and integrity of the data to a certain extent.
[0049] Further, based on the coordinate values and with reference to the theoretical data, the origin of the three-dimensional coordinate system is corrected to determine the three-dimensional data of the spun part. According to the measured characteristic point coordinate values and the theoretical data of the spun part, the origin of the three-dimensional coordinate system is corrected so that the three-dimensional data of the spun part are similar in value.
[0050] In the specific example, there are four coordinates (2, 2, 4) (8, 2, 4) (2, 8, 4) (8, 8, 4) in the three-dimensional coordinate system at the initial origin.
[0051] After the initial origin is corrected, the origin (0, 0, 0) is corrected to (5, 5, 0), that is, (5, 5, 0) in the original three-dimensional coordinate system is used as the new coordinate origin, then the above four coordinates are corrected to (-3, -3, 4) (3, 3, 4) (-3, 3, 4) (3, -3, 4).
[0052] After determining the origin of the coordinate system, the three-dimensional data of the spun part is calculated based on the measured coordinate values of the characteristic points. These data include the size, shape, position and other key information of the spun part. The measured three-dimensional data is compared and analyzed with the theoretical data of the spun part to evaluate the processing accuracy and quality of the spun part. According to the comparison results, the processing parameters of the CNC spinning equipment can be adjusted and optimized to improve the processing quality of the spun part.
[0053] In a specific example, assume that the spun part is a cylindrical part, and its bottom diameter and height are the main measurement dimensions. When placing it, choose to place the bottom surface flat on the workbench of the three-coordinate measuring device so that the axis of the cylinder is parallel to the Z axis of the measuring device. Use a special fixture to fix the spun part on the workbench, ensure that the bottom surface is flat and does not move, and the axis of the cylinder is accurately aligned with the Z axis. Take the center of the bottom surface of the spun part as the origin O, the bottom diameter direction as the X axis, the direction perpendicular to the bottom surface as the Z axis, and the direction through the origin and perpendicular to the X axis as the Y axis to establish a rectangular coordinate system.
[0054] Because the spun parts are made of metal, a contact probe can be used as the detection system. This probe can accurately contact the surface of the spun parts and measure the coordinate values of each feature point. Using the contact probe, first measure the coordinates of the center of the bottom circle (that is, the coordinates of the origin O), and then measure the coordinates of several equidistant points on the edge of the bottom to determine the diameter of the bottom. Next, measure several points on the axis of the cylinder (such as the center points of the top and bottom surfaces) to determine the height of the cylinder.
[0055] In the above example, since the center of the bottom circle has been selected as the origin of the coordinate system, and a special fixture is used to ensure that it is aligned with the reference point of the measuring device, no additional operation is required to determine the origin. Based on the measured coordinate values of the characteristic points, the bottom diameter and height of the spun part can be calculated. For example, if the coordinates of two equidistant points on the edge of the bottom surface are (X1, Y1, 0) and (X2, Y2, 0), the bottom diameter D = √[(X2-X1)² + (Y2-Y1)²]. Similarly, if the coordinates of the center point of the top surface are (0, 0, Z), the height of the cylinder H = Z.
[0056] Step 3: Compare the theoretical data of the spun parts based on the three-dimensional data to determine whether the spun parts meet the preset production requirements.
[0057] First, the production requirements include the first production requirement and the second production requirement. Among them, the data of the first production requirement is smaller than the data of the second production requirement. Production requirements include multiple aspects, such as dimensional accuracy, shape accuracy, surface quality, etc. In this example, the production requirement is dimensional accuracy, which is divided into the first production requirement and the second production requirement. The data of the first production requirement is a stricter error range (manually set, usually the error required by the manufacturer), while the data of the second production requirement is a relatively loose error range (manually set, usually the maximum error required by production).
[0058] Furthermore, the coordinate values of the three-dimensional data and the coordinate values of the theoretical data are compared to determine the production error set. The three-dimensional data of the spun part (including the coordinate values of each key feature point) is compared with the theoretical data. By calculating the difference between the actual measured value and the theoretical value, a production error set can be obtained. This error set contains the error data of the spun part in all aspects.
[0059] Further, when all errors in the production error set are less than the first production requirement, the spun part meets the production requirement. If all errors in the production error set are less than the data of the first production requirement, it can be considered that the spun part meets the production requirement and has good quality.
[0060] Furthermore, when the error in the production error set is greater than or equal to the first production requirement and less than or equal to the second production requirement, multiple spun parts are continuously detected, and whether the spun parts meet the production requirements is judged based on the change status of the multiple spun parts. If there are data in the production error set where some errors are greater than or equal to the first production requirement but less than or equal to the second production requirement, further judgment is required. In this case, you can choose to continuously detect multiple spun parts and observe the changing trend of these spun parts in terms of production errors. If the production errors of multiple spun parts all show a trend of gradually decreasing and gradually approach or reach the first production requirement, then it can be considered that the spun parts meet the production requirements, and it may be that there is a need for fine-tuning of the equipment in the initial stage. However, if the production errors of multiple spun parts still remain between the first production requirement and the second production requirement, or show an increasing trend, then it is necessary to consider adjusting or optimizing the CNC spinning equipment.
[0061] Furthermore, when the error in the production error set is greater than the second production requirement, the spun part does not meet the production requirement. If there is data in the production error set with an error greater than the second production requirement, it can be directly judged that the spun part does not meet the production requirement. At this time, it is necessary to stop production immediately and check and adjust the CNC spinning equipment to eliminate the cause of the excessive error.
[0062] Step 4: When the spun parts do not meet the production requirements, the state of the CNC spinning equipment is judged based on the temperature data, humidity data, vibration data and image data to give a first feedback suggestion. The first feedback suggestion is a feedback suggestion related to the main body of the CNC spinning equipment.
[0063] First, based on the time relationship and the position relationship, the temperature data, the humidity data, the vibration data and the three-dimensional data are associated to generate a three-dimensional matrix, wherein any different temperature data, humidity data and vibration data correspond to unique three-dimensional data.
[0064] Further, the temperature data, humidity data, vibration data and image data of the spun parts that do not meet the production requirements during the processing are retrieved. The temperature data, humidity data, vibration data and image data recorded in the historical data during the processing of the spun parts that do not meet the production requirements are retrieved.
[0065] Further, the image data is processed based on a preset neural network algorithm to determine whether the CNC spinning equipment has mechanical damage, and a first sub-feedback suggestion is generated according to the type of mechanical damage. The image data is processed and analyzed using a preset neural network algorithm to determine whether the CNC spinning equipment has mechanical damage. According to the type and degree of mechanical damage, a first sub-feedback suggestion related to the equipment body is generated, such as replacing damaged parts, adjusting equipment parameters, etc.
[0066] In the specific case, a convolutional neural network was used to collect a large amount of image data of CNC spinning equipment, including images of the machine tool when it is operating normally and images when there are various mechanical damages. Then, the image data was preprocessed, including image enhancement, noise removal, size normalization and other steps, to facilitate the subsequent learning and analysis of the neural network.
[0067] Use the preprocessed image data to train the CNN model. During the training process, the image data is divided into a training set, a validation set, and a test set. The training set is used to train the model so that it can learn the features in the image; the validation set is used to adjust the model's hyperparameters to avoid overfitting; and the test set is used to evaluate the performance of the model.
[0068] Once the model training is complete, the neural network algorithm is applied to actual CNC spinning equipment image data. By inputting an image of a machine tool, the model will output a prediction result, namely whether the machine tool has mechanical damage and the type and degree of damage.
[0069] Based on the prediction results of the model, a first sub-feedback suggestion related to the main body of the equipment is generated. For example, if the model identifies that the cutter head of the machine tool is damaged, and the CNC spinning equipment is already equipped with a spare cutter head, then the first sub-feedback suggestion can be: "It is recommended to replace the cutter head with a spare cutter head." This suggestion can help the operator quickly locate the problem and take corresponding solutions.
[0070] Furthermore, the three-dimensional matrix is queried based on the temperature data, humidity data and vibration data of the spun part to determine the historical data corresponding to the spun part. Based on the temperature data, humidity data and vibration data of the spun part, the corresponding historical data is queried in the three-dimensional matrix. The queried historical data is compared with the three-dimensional data of the current spun part to determine whether the historical data is the same as the three-dimensional data.
[0071] Furthermore, the three-dimensional data is compared based on the historical data, and a second sub-feedback suggestion is generated based on whether the historical data is the same as the three-dimensional data. When the historical data is the same as the three-dimensional data, the final solution of the historical data is retrieved to generate the second sub-feedback suggestion. When the historical data is different from the three-dimensional data, the temperature sensor, humidity sensor, and vibration sensor are checked to generate the second sub-feedback suggestion. If the historical data is the same as the three-dimensional data, it means that a similar problem may have been encountered before. At this time, the final solution of the historical data can be retrieved as the second sub-feedback suggestion. If the historical data is different from the three-dimensional data, it is necessary to further check whether the temperature sensor, humidity sensor, vibration sensor, etc. are working properly, and generate corresponding second sub-feedback suggestions, such as calibrating the sensor, replacing the faulty sensor, etc.
[0072] Further, a first feedback suggestion is given based on the first sub-feedback suggestion and the second sub-feedback suggestion. Combining the first sub-feedback suggestion and the second sub-feedback suggestion, a first feedback suggestion related to the CNC spinning equipment body is given. This suggestion includes a diagnosis of the equipment status, possible causes of the problem, and a recommended solution.
[0073] Step 5: When the first feedback suggestion cannot be given, the three-dimensional data is fitted to the theoretical data to give a second feedback suggestion, wherein the second feedback suggestion is feedback suggestion related to the programming of the CNC spinning equipment.
[0074] First, when the first feedback suggestion cannot be given, the processing program of the CNC spinning equipment for the spun parts is retrieved. When the first feedback suggestion related to the CNC spinning equipment body cannot be given based on the previous data analysis, it means that there is a non-hardware error, and there is a software error. At this time, it is necessary to optimize the programming by comparing the three-dimensional data with the theoretical data, and give the second feedback suggestion related to the programming. That is, the original processing program of the CNC spinning equipment for the spun parts is retrieved.
[0075] Furthermore, the ideal model corresponding to the spun part is simulated based on the processing program. Based on the retrieved processing program, the simulation software or related tools of the CNC spinning equipment are used to simulate the ideal model after the spun part is processed.
[0076] Furthermore, the preset processing priority is used to determine whether the CNC spinning equipment needs to be repaired. The processing priority is manually set by the staff, and the processing priority refers to data such as the cost of materials and the urgency of the task. For example, if the material cost is high, manual intervention is required to avoid material waste caused by attempts to a certain extent.
[0077] Furthermore, if no maintenance is required, the processing program is corrected based on the ideal model, theoretical data and formal model to generate a second feedback suggestion; wherein the second feedback suggestion is the corrected processing program.
[0078] Compare the ideal model with the theoretical data to determine the deviation. Correct the machining program based on the deviation and adjust the machining program. Generate the corrected machining program based on the data of the x-axis, y-axis and z-axis. Integrate the corrected machining program as the second feedback suggestion.
[0079] In a specific example, the diameter of the spun part in the ideal model is 0.2mm smaller than the theoretical data. In order to correct this problem, the initial coordinates of the tool before cutting the diameter can be corrected in the machining program. Specifically, in the machining program, the feature point corresponding to the diameter is fixed to 4 on the x-axis and 0 on the y-axis. Its diameter is only related to the position of the x-axis, so the initial coordinates of the tool (3, 0, 4), programming code: N0140 G00 X3 Z4; are corrected to (4, 0, 4), programming code: N0140 G00 X4 Z4. It can be understood that each unit change in the above coordinate system represents a change of 0.1mm. By correcting the initial coordinates of the tool, the diameter of the machined spun part is closer to the ideal value. This corrected machining program is used as the second feedback suggestion.
[0080] Step 6: Based on the first feedback suggestion and the second feedback suggestion, adjust the CNC spinning equipment at least once, so that the CNC spinning equipment can produce spun parts that meet the production requirements.
[0081] First, adjust the CNC spinning equipment according to the first feedback suggestion and the second feedback suggestion to generate an updated CNC spinning equipment. Adjust the CNC spinning equipment according to the first feedback suggestion (related to the equipment body) and the second feedback suggestion (related to programming). This includes replacing or repairing equipment parts, calibrating sensors, adjusting equipment parameters or optimizing processing procedures, etc. After adjustment, an updated CNC spinning equipment is obtained.
[0082] Furthermore, the spun parts are produced based on the updated CNC spinning equipment, and the spun parts are sent to the three-coordinate measuring device to measure whether the spun parts meet the production requirements. The spun parts are produced using the updated CNC spinning equipment, and the produced spun parts are sent to the three-coordinate measuring device for measurement to verify whether they meet the production requirements.
[0083] Furthermore, when the spun part does not meet the production requirements, the first feedback suggestion and the second feedback suggestion are repeatedly generated, and the CNC spinning equipment is corrected based on the first feedback suggestion and the second feedback suggestion. If the spun part does not meet the production requirements, steps 4 and 5 (determine whether the spun part meets the production requirements and give feedback suggestions) are repeated to generate new first feedback suggestions and second feedback suggestions. Based on the new feedback suggestions, the CNC spinning equipment is corrected and adjusted again.
[0084] Further, when the number of corrections reaches a preset correction threshold, the correction of the CNC spinning equipment is stopped and the corresponding repair platform is notified. It can be understood that the number of corrections is set, and when the number of corrections reaches a preset correction threshold (to avoid infinite loops or over-adjustments), the correction of the CNC spinning equipment is stopped, and the corresponding repair platform or professional maintenance personnel are notified to handle it.
[0085] Furthermore, when the spun parts meet the production requirements, the spun parts are produced based on the CNC spinning equipment, and the three-coordinate measuring device increases the sampling frequency. When the spun parts meet the production requirements, the current CNC spinning equipment is used to continue the production of spun parts. At the same time, in order to ensure the stability of subsequent production and the quality of spun parts, the sampling frequency of the three-coordinate measuring device is increased so as to timely discover and solve potential problems.
[0086] The above is an embodiment of the method proposed by the present invention. Based on the same inventive concept, the embodiment of the present invention also provides a CNC spinning equipment control device based on the Internet of Things, and its structure is as follows Figure 2 shown.
[0087] In the second aspect, an embodiment of the present invention further provides a CNC spinning equipment control device based on the Internet of Things, characterized in that it includes a memory and a processor, a computer program is stored in the memory, and when the processor executes the program, it implements any of the above CNC spinning equipment control methods based on the Internet of Things.
[0088] In the third aspect, an embodiment of the present invention further provides a computer-readable storage medium for controlling CNC spinning equipment based on the Internet of Things, characterized in that a computer program is stored thereon, and when the program is executed by a processor, any of the above methods for controlling CNC spinning equipment based on the Internet of Things is implemented.
[0089] Figure 2 The following is a schematic diagram of the internal structure of a CNC spinning equipment control device based on the Internet of Things provided by an embodiment of the present invention. Figure 2 As shown, the device includes a memory 202 and a processor 201. The memory 202 stores a computer program. When the processor 201 executes the program, any of the above methods for controlling CNC spinning equipment based on the Internet of Things is implemented.
[0090] Some embodiments of the present invention provide corresponding Figure 1 A computer-readable storage medium for controlling a CNC spinning device based on the Internet of Things is provided, on which a computer program is stored. When the program is executed by a processor 201, any of the above methods for controlling a CNC spinning device based on the Internet of Things is implemented.
[0091] Each embodiment of the present invention is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the IoT device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0092] The system and medium provided in the embodiments of the present invention correspond one-to-one to the method, and therefore, the system and medium also have similar beneficial technical effects to the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the system and medium will not be repeated here.
[0093] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0094] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0095] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0096] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0097] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0098] Memory may include non-permanent storage in a computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0099] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0100] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0101] The above are only embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.
Claims
1. A CNC spinning equipment control method based on the Internet of Things, characterized in that: The method comprises: Based on different models of CNC spinning equipment, the CNC spinning equipment is equipped with temperature sensors, humidity sensors, vibration sensors and camera modules to collect temperature data, humidity data, vibration data and image data of each device in the CNC spinning equipment; Based on a preset three-coordinate measuring device and preset theoretical data, measuring relevant coordinates of the spun parts produced by the CNC spinning equipment to determine the three-dimensional data of the spun parts; Comparing the theoretical data of the spun part based on the three-dimensional data to determine whether the spun part meets the preset production requirements; When the spun part does not meet the production requirements, the state of the CNC spinning equipment is judged based on the temperature data, humidity data, vibration data and image data to give a first feedback suggestion; wherein the first feedback suggestion is a feedback suggestion related to the main body of the CNC spinning equipment; When the first feedback suggestion cannot be given, the three-dimensional data is fitted to the theoretical data to give a second feedback suggestion; wherein the second feedback suggestion is feedback suggestion related to the programming of the CNC spinning equipment; Adjusting the CNC spinning equipment at least once based on the first feedback suggestion and the second feedback suggestion, so that the CNC spinning equipment produces a spun part that meets the production requirements; When the spun part does not meet the production requirements, a first feedback suggestion is given based on the temperature data, humidity data, vibration data and image data, specifically including: Based on the time relationship and the position relationship, the temperature data, the humidity data, the vibration data and the three-dimensional data are associated to generate a three-dimensional matrix; wherein any different temperature data, humidity data and vibration data correspond to unique three-dimensional data; Retrieving temperature data, humidity data, vibration data and image data of the spun parts that do not meet the production requirements during the processing; Processing the image data based on a preset neural network algorithm to determine whether the CNC spinning equipment has mechanical damage, and generating a first sub-feedback suggestion according to the type of the mechanical damage; querying the three-dimensional matrix based on the temperature data, humidity data and vibration data of the spun part to determine the historical data corresponding to the spun part; comparing the three-dimensional data based on the historical data, and generating a second sub-feedback suggestion based on whether the historical data is the same as the three-dimensional data; giving the first feedback suggestion based on the first sub-feedback suggestion and the second sub-feedback; The method further comprises: comparing the three-dimensional data with the historical data, and generating a second sub-feedback suggestion based on whether the historical data is the same as the three-dimensional data. When the historical data and the three-dimensional data are the same, retrieving the final solution of the historical data to generate a second sub-feedback suggestion; When the historical data is different from the three-dimensional data, checking the temperature sensor, the humidity sensor, and the vibration sensor to generate a second sub-feedback suggestion; When the first feedback suggestion cannot be given, fitting the three-dimensional data to the theoretical data to give a second feedback suggestion, specifically including: When the first feedback suggestion cannot be given, calling the processing program of the CNC spinning equipment for the spun part; Simulating an ideal model corresponding to the spun part based on the machining program; Determining whether the CNC spinning equipment needs maintenance based on a preset processing degree priority; If no overhaul is required, the machining program is corrected based on the ideal model, the theoretical data and the formal model to generate a second feedback suggestion; wherein the second feedback suggestion is the corrected machining program; If the priority is that no maintenance is required, the machining program is corrected based on the ideal model, theoretical data and formal model to generate a second feedback suggestion, which specifically includes: comparing the ideal model with theoretical data to determine deviations; Correcting the machining program according to the deviation, adjusting the data of the machining program related to the x-axis, y-axis and z-axis to generate a corrected machining program; The modified processing procedure is integrated as a second feedback suggestion.
2. According to the method for controlling CNC spinning equipment based on the Internet of Things in claim 1, it is characterized in that: Based on the preset three-coordinate measuring device and the preset theoretical data, the coordinates of the spun parts produced by the CNC spinning equipment are measured to determine the three-dimensional data of the spun parts, specifically including: Determine the placement of the spun part on the three-coordinate measuring device based on the theoretical data, fix the spun part on the three-coordinate measuring device based on the placement, and establish a three-dimensional coordinate system; Selecting an appropriate detection system based on the shape of the spun part, and determining the coordinate value of any characteristic point of the spun part based on the detection system; Based on the coordinate values and with reference to the theoretical data, the origin of the three-dimensional coordinate system is corrected, thereby determining the three-dimensional data of the spun part.
3. The method for controlling CNC spinning equipment based on the Internet of Things according to claim 2 is characterized in that: Comparing the theoretical data of the spun part based on the three-dimensional data to determine whether the spun part meets the preset production requirements specifically includes: The production requirements include a first production requirement and a second production requirement; wherein the data of the first production requirement is smaller than the data of the second production requirement; Comparing the coordinate values of the three-dimensional data with the coordinate values of theoretical data to determine a production error set; When the errors in the production error set are all smaller than the first production requirement, the spun part meets the production requirement; When the error in the production error set is greater than or equal to the first production requirement and less than or equal to the second production requirement, continuously detecting a plurality of the spun parts, and judging whether the spun parts meet the production requirement based on the change conditions of the plurality of the spun parts; When the error in the production error set is greater than the second production requirement, the spun part does not meet the production requirement.
4. The method for controlling CNC spinning equipment based on the Internet of Things according to claim 1 is characterized in that: The CNC spinning equipment is adjusted at least once based on the first feedback suggestion and the second feedback suggestion so that the CNC spinning equipment produces a spun part that meets the production requirements, specifically including: Adjusting the CNC spinning equipment according to the first feedback suggestion and the second feedback suggestion to generate an updated CNC spinning equipment; Producing spun parts based on the updated CNC spinning equipment, and sending the spun parts to the three-coordinate measuring device to measure whether the spun parts meet the production requirements; When the spun part does not meet the production requirement, repeatedly generating a first feedback suggestion and a second feedback suggestion, and correcting the CNC spinning equipment based on the first feedback suggestion and the second feedback suggestion; When the number of corrections reaches a preset correction threshold, the correction of the CNC spinning equipment is stopped and the corresponding repair platform is notified; When the spun parts meet the production requirements, the spun parts are produced based on the CNC spinning equipment, and the three-coordinate measuring device increases the sampling frequency.
5. A CNC spinning equipment control device based on the Internet of Things, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the program, the method according to any one of claims 1 to 4 is implemented.
6. A computer-readable storage medium for controlling CNC spinning equipment based on the Internet of Things, characterized in that: A computer program is stored thereon, and when the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
