Machine tool external feeding speed self-adaptive control method based on FOCAS protocol

By adding shield switches and fuzzy control models to the CNC system, and using the FOCAS protocol to adjust the feed speed of the Fanuc CNC system online, the problem that the existing technology cannot realize adaptive control of the feed speed on the Fanuc system is solved. Improve processing efficiency and improve intelligence level.

CN118915627APending Publication Date: 2024-11-08DALIAN UNIV OF TECH
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202410972540.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

The prior art has failed to realize online adaptive control of the feed speed of CNC machine tools based on the FOCAS protocol on machine tools equipped with the Fanuc CNC system, which limits the application scope of the adaptive control method.

Method used

By adding non-system occupancy registers as shielding switches in the PLC ladder diagram of the CNC system, connecting the adaptive control computer and the CNC system, using the LabVIEW platform to establish a fuzzy control model, and modifying the feed speed online based on the FOCAS protocol to realize the feed rate self-directed Adapt to adjustment.

Benefits of technology

The feed rate optimization value is written to the Fanak CNC system, which improves the processing efficiency of parts and improves the intelligence level of CNC machine tools. In the specific example, the feed speed adaptive control method improves the processing efficiency of 18.8%.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118915627A_ABST
    Figure CN118915627A_ABST
Patent Text Reader

Abstract

The invention belongs to the field of intelligent numerical control machining and numerical control system communication, and discloses a machine tool external feeding speed self-adaptive control method based on an FOCAS protocol, and the method comprises the steps: firstly creating a shielding switch enabling the feeding multiplying power of a machine tool numerical control panel; connecting the self-adaptive control computer with the numerical control system through a network cable, and setting the IP addresses of the self-adaptive control computer and the numerical control system in the same network segment; inputting the acquired power data of the main shaft of the numerical control machine tool into a self-adaptive control model in a self-adaptive control computer, wherein the output of the model is a feed rate optimization value; and finally, based on the FOCAS protocol, the feed rate optimization value is written into the numerical control system, and online modification of the feed speed is achieved. According to the method, the feeding speed of the numerical control machine tool is adjusted online according to the power load change of the machine tool spindle in the numerical control machining process, the data transmission problem of the numerical control machine tool provided with a Fanuc numerical control system is solved, the part machining efficiency is improved, and the application range is widened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of intelligent numerical control machining and numerical control system communication, and relates to an external feed speed adaptive control method of a machine tool based on the FOCAS protocol. Background Art

[0002] Adaptive feed speed control for CNC machine tools is to adjust the feed speed in real time according to the processing load of the machine tool. It is an intelligent manufacturing technology that improves the intelligence level of CNC machine tools and improves the efficiency of parts processing. For open CNC systems, adaptive control algorithms are easy to embed in the main program of the CNC system to modify the feed speed. However, for most CNC system users, they are facing semi-closed commercial CNC systems, among which FANUC CNC systems account for the largest share of the CNC system market in my country. This type of CNC system is difficult to develop in embedded systems. External feed speed adaptive control is an effective means to solve the adaptive control of semi-closed commercial CNC systems.

[0003] FANUC's CNC system provides a data interaction interface based on the FOCAS protocol, which facilitates the read and write communication between the external computer and the CNC system kernel. In the invention patent "CNC machine tool data acquisition and management system based on FOCAS and its method" (application number: CN201610112962.5), a CNC machine tool data acquisition method based on FOCAS is disclosed, and the collected data is used for machine tool maintenance and management; in the invention patent "A method for adaptive interval planning of five-axis machining feed speed" (application number: CN201911327146.6), the region-by-region forward planning of the overall feed speed of the long spline curve path is realized, which can fully utilize the machine tool performance under the premise of satisfying the feed axis drive capacity constraints; in the invention patent "Feed speed online optimization method based on fuzzy control" (application number: CN201910954 545.9) discloses an online optimization method for feed speed based on fuzzy control to solve the problem of online optimization of process parameters in the process of multi-axis CNC milling of complex surfaces, but the invention does not involve how to modify the feed speed of the FANUC CNC system online based on the FOCAS protocol; in the paper "Online Monitoring System for CNC Machine Tools Based on FOCAS Protocol and Instruction Domain" (Journal of Hubei Automotive Industry College, 2019, 33(04): 46-49.), the load, feed rate, speed, running program segment and other information of the CNC machine tool spindle and servo axis are monitored based on the FOCAS protocol, and a dynamic energy consumption data monitoring system for machine tool processing is designed, but the paper does not mention how to write information into the CNC system. In the field of CNC machine tool feed speed adaptive control, there is currently no feed speed adaptive control method based on the FOCAS protocol to directly modify the CNC system feed speed online to achieve communication between an external adaptive control computer and the CNC system. In view of the above problems, the present invention proposes an external feed speed adaptive control method for machine tools based on the FOCAS protocol. The feed speed of the CNC machine tool can be adjusted online according to the change of the power load of the machine tool spindle during the CNC machining process, thereby improving the machining efficiency of parts. The proposed method is suitable for CNC machine tools equipped with FANUC CNC systems, which widely improves the application scope of the adaptive control method. Summary of the invention

[0004] In order to solve the problem that the adaptive machining method of CNC machine tools cannot be applied on machine tools equipped with FANUC numerical control systems, the present invention proposes an external feed speed adaptive control method for machine tools based on the FOCAS protocol.

[0005] In order to achieve the above object, the technical solution of the present invention is:

[0006] The steps of the machine tool external feed speed adaptive control method based on the FOCAS protocol are as follows:

[0007] S1: Create a feed rate enable shielding switch for the machine tool CNC panel: Add a non-system occupied register in the ladder diagram of the programmable logic controller (PLC) of the CNC system as a switch to shield the CNC panel rate knob enable;

[0008] S1.1: Find the address of the storage ratio signal in the PLC ladder diagram of the CNC system;

[0009] S1.2: Add a bit of a non-system occupied register at a corresponding position of the CNC system PLC ladder diagram as a switch for shielding the CNC panel magnification knob enable, and the corresponding position of the CNC system PLC ladder diagram is before the address storing the magnification signal in step S1.1;

[0010] S2: Connecting the adaptive control computer and the numerical control system: Connecting the adaptive control computer and the numerical control system based on computer local area network communication technology;

[0011] S2.1: Use a network cable to connect the adaptive control computer and the CNC system;

[0012] S2.2: Set the IP addresses of the adaptive control computer and the numerical control system to the same network segment;

[0013] S3: Establishing a feed rate adaptive control model: establishing a feed rate adaptive control model on an adaptive control computer using the LabVIEW platform, wherein the feed rate adaptive control model solves the feed rate optimization value through a fuzzy control algorithm;

[0014] S3.1: A dual-input single-output fuzzy logic controller is selected as a solution model of the feed rate adaptive control model, which is used to solve the feed rate optimization value. The input of the fuzzy logic controller is the spindle power deviation and the spindle power deviation change rate;

[0015] S3.2: Use negative large, negative medium, negative small, zero, positive small, positive medium and positive large language variables to describe the spindle power deviation, spindle power deviation change rate and feed rate optimization value, set the fuzzy domain of the spindle power deviation, spindle power deviation change rate and feed rate optimization value to [-p, p], and use the triangular function as the membership function of the spindle power deviation, spindle power deviation change rate and feed rate optimization value;

[0016] S3.3: Formulate a fuzzy control rule table, use the minimum-maximum-center-of-gravity method to calculate the fuzzy membership output, use the area center-of-gravity method to perform defuzzification calculation, and obtain the feed rate optimization value;

[0017] Furthermore, in step S3.2, p in the fuzzy domain [-p, p] of the spindle power deviation, the spindle power deviation change rate and the feed rate optimization value is a positive integer not greater than 7.

[0018] S4: Collecting spindle power data: Collecting spindle power data during machining and transferring it to the feed rate adaptive control model;

[0019] S4.1: Install a power sensor at an appropriate position of the CNC machine tool spindle controller, and use the power sensor to collect spindle power data during the machining process;

[0020] S4.2: Send the spindle power data to the feed rate adaptive control model of the adaptive control computer through the USB interface;

[0021] S5: Online modification of feed speed based on FOCAS protocol: The feed rate optimization value obtained in step S3.3 is written into the CNC system PLC through the FOCAS protocol, and the CNC system PLC calculates the optimized feed speed for the next interpolation according to the feed rate optimization value and the programmed feed speed, thereby realizing online modification of the feed speed;

[0022] S5.1: Set the switch for enabling the CNC panel magnification knob in step S1.2 to the "off state" through the communication function pmc_wrpmcrng in the FOCAS protocol. At this time, the CNC panel magnification knob signal cannot be transmitted to the address for storing the magnification signal in step S1.1;

[0023] S5.2: Write the feed rate optimization value described in step S3.3 to the address of the storage rate signal described in step S1.1 through the communication function pmc_wrpmcrng in the FOCAS protocol, so as to realize the function of rewriting the current machine tool feed rate;

[0024] S5.3: The CNC system PLC multiplies the feed rate optimization value and the programmed feed speed to obtain the optimized feed speed for the next interpolation step, thereby realizing adaptive feed speed control of the CNC machine tool.

[0025] Beneficial effects of the present invention:

[0026] (1) The FOCAS protocol-based external feed speed adaptive control method for machine tools of the present invention realizes the function of writing the feed rate optimization value to the FANUC numerical control system through the FOCAS protocol, so that the adaptive processing method can be applied to machine tools equipped with the FANUC numerical control system.

[0027] (2) The FOCAS protocol-based machine tool external feed speed adaptive control method of the present invention can adaptively adjust the feed rate during the CNC machine tool processing process through a fuzzy control algorithm, thereby improving the processing efficiency of parts and enhancing the intelligence level of CNC machine tools. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1It is the overall flow chart of the method of the present invention;

[0029] Figure 2 A schematic diagram of a feed rate enable shielding switch of a machine tool numerical control panel is created for the embodiment;

[0030] Figure 3 A program diagram for writing a storage ratio signal address for an optimized feed ratio value of an embodiment;

[0031] Figure 4 It is a feed speed curve diagram of feed speed adaptive control processing and constant feed speed processing in the embodiment. DETAILED DESCRIPTION

[0032] The specific implementation of the present invention is further described below in conjunction with the accompanying drawings and technical solutions.

[0033] The CNC machine tool used in this embodiment is a three-axis vertical machining center equipped with a FANUC 0i-MF PLUS CNC system. The control method of other CNC machine tools equipped with FANUC CNC systems can refer to this embodiment.

[0034] Example 1

[0035] The overall process of the machine tool external feed speed adaptive control method based on the FOCAS protocol is as follows: Figure 1 As shown, this is achieved through the following steps:

[0036] S1: Create a machine tool CNC panel feed rate enable shielding switch, specifically, add a non-system occupied register in the CNC system PLC ladder diagram as a switch to shield the CNC panel feed rate knob enable;

[0037] The S1 is specifically divided into two steps:

[0038] S1.1: Find the address of the storage ratio signal in the PLC ladder diagram of the FANUC 0i-MF PLUS CNC system. In this embodiment, the address is G0012;

[0039] S1.2: A bit R7000.1 of the non-system occupied register R7000 is added to the corresponding position of the FANUC 0i-MF PLUS CNC system PLC ladder diagram as a switch for shielding the CNC panel magnification knob enable. The corresponding position of the FANUC 0i-MF PLUS CNC system PLC ladder diagram is before the address G0012 storing the magnification signal in step S1.1, such as Figure 2 As shown;

[0040] S2: connecting the adaptive control computer with the FANUC 0i-MF PLUS numerical control system, specifically, communicating and connecting the adaptive control computer with the FANUC 0i-MF PLUS numerical control system based on computer local area network communication technology;

[0041] The S2 is specifically divided into two steps:

[0042] S2.1: Use a network cable to connect the adaptive control computer and the FANUC 0i-MF PLUS CNC system;

[0043] S2.2: The IP addresses of the adaptive control computer and the FANUC 0i-MF PLUS CNC system are set in the same network segment. In this embodiment, the IP address of the adaptive control computer is set to 192.168.1.10, and the IP address of the FANUC 0i-MF PLUS CNC system is set to 192.168.1.1;

[0044] S3: Establishing a feed rate adaptive control model, specifically, establishing a feed rate adaptive control model on an adaptive control computer using a LabVIEW platform, wherein the feed rate adaptive control model solves the feed rate optimization value through a fuzzy control algorithm;

[0045] The S3 is specifically divided into three steps:

[0046] S3.1: A dual-input single-output fuzzy logic controller is selected as a solution model of the feed rate adaptive control model, which is used to solve the feed rate optimization value. The input of the fuzzy logic controller is the spindle power deviation and the spindle power deviation change rate;

[0047] S3.2: Use negative large, negative medium, negative small, zero, positive small, positive medium and positive large language variables to describe the spindle power deviation, spindle power deviation change rate and feed rate optimization value, set the fuzzy domain of the spindle power deviation, spindle power deviation change rate and feed rate optimization value to [-6, 6], and use triangular function as the membership function of the spindle power deviation, spindle power deviation change rate and feed rate optimization value;

[0048] S3.3: Formulate a fuzzy control rule table, as shown in Table 1, use the minimum-maximum-center-of-gravity method to calculate the fuzzy membership output, use the area center-of-gravity method to perform defuzzification calculation, and obtain the feed rate optimization value;

[0049] Table 1 Rules table of fuzzy control module

[0050]

[0051] S4: collecting spindle power data, specifically, collecting spindle power data during machining and transferring it to the feed rate adaptive control model;

[0052] The S4 is specifically divided into two steps:

[0053] S4.1: Install a power sensor at an appropriate position of the CNC machine tool spindle controller, and use the power sensor to collect spindle power data during the machining process;

[0054] S4.2: sending the spindle power data to the feed rate adaptive control model of the adaptive control computer through the USB interface;

[0055] S5: modify the feed speed online based on the FOCAS protocol, specifically, write the feed rate optimization value obtained in step S3.3 into the FANUC 0i-MF PLUS CNC system PLC through the FOCAS protocol, and the FANUC 0i-MF PLUS CNC system PLC calculates the optimized feed speed for the next interpolation according to the feed rate optimization value and the programmed feed speed, thereby realizing online modification of the feed speed;

[0056] The S5 is specifically divided into three steps:

[0057] S5.1: Set the value of the switch R7000.1 for enabling the CNC panel magnification knob in step S1.2 from "0" to "1" through the communication function pmc_wrpmcrng in the FOCAS protocol. At this time, the CNC panel magnification knob signal cannot be transmitted to the address G0012 for storing the magnification signal in step S1.1;

[0058] S5.2: Write the feed rate optimization value described in step S3.3 to the address G0012 of the storage rate signal described in step S1.1 through the communication function pmc_wrpmcrng in the FOCAS protocol to realize the function of rewriting the current machine tool feed rate. The program for writing the feed rate optimization value to address G0012 using the LabVIEW platform is as follows: Figure 3 As shown;

[0059] S5.3: The FANUC 0i-MF PLUS CNC system PLC multiplies the feed rate optimization value and the programmed feed speed to obtain the optimized feed speed for the next interpolation step, thereby realizing the feed speed adaptive control of the CNC machine tool. The feed speed curves of feed speed adaptive control processing and constant feed speed processing in this embodiment are shown in FIG. Figure 4 shown.

[0060] The technical effect of this embodiment is: solving the optimal feed ratio of the part processing process based on the fuzzy control algorithm, and modifying the feed speed of the CNC machine tool equipped with the FANUC CNC system online through the FOCAS protocol, so that the part processing efficiency is improved by 18.8% and the production time cost is saved.

[0061] It should be noted that the above specific embodiments of the present invention are only used to exemplify the principles and processes of the present invention and do not constitute a limitation of the present invention. Therefore, any modifications and equivalent substitutions made without departing from the spirit and scope of the present invention should be included in the protection scope of the present invention.

Claims

1. The machine tool external feed speed adaptive control method based on FOCAS protocol is characterized by: Here are the steps: S1: Create a machine tool CNC panel feed rate enable shielding switch: Add a non-system occupied register in the ladder diagram of the programmable logic controller PLC of the CNC system as a switch to shield the CNC panel feed rate knob enable; S2: Connecting the adaptive control computer and the numerical control system: Connecting the adaptive control computer and the numerical control system based on computer local area network communication technology; S3: Establishing a feed rate adaptive control model: establishing a feed rate adaptive control model on an adaptive control computer using the LabVIEW platform, wherein the feed rate adaptive control model solves the feed rate optimization value through a fuzzy control algorithm; S4: Collecting spindle power data: Collecting spindle power data during machining and transferring it to the feed rate adaptive control model; S5: Online modification of feed speed based on FOCAS protocol: The feed rate optimization value obtained in step S3 is written into the CNC system PLC through the FOCAS protocol. The CNC system PLC calculates the optimized feed speed for the next interpolation based on the feed rate optimization value and the programmed feed speed, thereby realizing online modification of the feed speed.

2. The method for adaptively controlling the external feed speed of a machine tool based on the FOCAS protocol according to claim 1 is characterized in that: The specific steps of step S1 are as follows: S1.1: Find the address of the storage ratio signal in the PLC ladder diagram of the CNC system; S1.2: Add a bit of a non-system occupied register at a corresponding position of the CNC system PLC ladder diagram as a switch for shielding the CNC panel multiplier knob enable, and the corresponding position of the CNC system PLC ladder diagram refers to before the address storing the multiplier signal in step S1.

1.

3. The method for adaptively controlling the external feed speed of a machine tool based on the FOCAS protocol according to claim 1 is characterized in that: The specific steps of step S2 are as follows: S2.1: Use a network cable to connect the adaptive control computer and the CNC system; S2.2: Set the IP addresses of the adaptive control computer and the CNC system to the same network segment.

4. The method for adaptively controlling the external feed speed of a machine tool based on the FOCAS protocol according to claim 1 is characterized in that: The specific steps of step S3 are as follows: S3.1: A dual-input single-output fuzzy logic controller is selected as a solution model of the feed rate adaptive control model, which is used to solve the feed rate optimization value. The input of the fuzzy logic controller is the spindle power deviation and the spindle power deviation change rate; S3.2: Use negative large, negative medium, negative small, zero, positive small, positive medium and positive large language variables to describe the spindle power deviation, spindle power deviation change rate and feed rate optimization value, set the fuzzy domain of the spindle power deviation, spindle power deviation change rate and feed rate optimization value to [-p, p], and use the triangular function as the membership function of the spindle power deviation, spindle power deviation change rate and feed rate optimization value; S3.3: Formulate a fuzzy control rule table, use the minimum-maximum-centroid method to calculate the fuzzy membership output, use the area centroid method to perform defuzzification calculations, and obtain the feed rate optimization value.

5. The method for adaptively controlling the external feed speed of a machine tool based on the FOCAS protocol according to claim 4 is characterized in that: In step S3.2, p in the fuzzy domain [-p, p] of the spindle power deviation, the spindle power deviation change rate and the feed rate optimization value is a positive integer not greater than 7.

6. The method for adaptively controlling the external feed speed of a machine tool based on the FOCAS protocol according to claim 1, characterized in that: The specific steps of step S4 are as follows: S4.1: Install a power sensor at an appropriate position of the CNC machine tool spindle controller, and use the power sensor to collect spindle power data during the machining process; S4.2: Send the spindle power data to the feed rate adaptive control model of the adaptive control computer through the USB interface.

7. The method for adaptively controlling the external feed speed of a machine tool based on the FOCAS protocol according to claim 1 is characterized in that: The specific steps of step S5 are as follows: S5.1: Set the switch for enabling the CNC panel magnification knob in step S1.2 to the "off state" through the communication function pmc_wrpmcrng in the FOCAS protocol. At this time, the CNC panel magnification knob signal cannot be transmitted to the address for storing the magnification signal in step S1.1; S5.2: Write the feed rate optimization value described in step S3.3 to the address of the storage rate signal described in step S1.1 through the communication function pmc_wrpmcrng in the FOCAS protocol, so as to realize the function of rewriting the current machine tool feed rate; S5.3: The CNC system PLC multiplies the feed rate optimization value and the programmed feed speed to obtain the optimized feed speed for the next interpolation step, thereby realizing adaptive feed speed control of the CNC machine tool.

Citation Information

Patent Citations

  • Numerical control machine tool data collecting and managing system based on FOCAS and method thereof

    CN105652794A

  • Fuzzy control-based feeding speed online optimization method

    CN110568761A

  • Interval adaptive planning method for five-axis machining feed speed

    CN110989504A

  • Numerical control milling intelligent optimazed control system based on embedded platform

    CN101025624A

  • External hanging type optimization method and device for numerical control system

    CN101201612A