Machine tool power-off protection method and device, control apparatus, and numerical control machine tool
The machine tool power failure protection method, which uses dynamic voltage regulation power supply monitoring and controller judgment, solves the problem of low reliability of machine tool power failure protection, effectively protects the safety of machine tools and machined parts when voltage drops occur, and improves machining reliability.
Patent Information
- Application Number
- CN202411303850.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-19
- Publication Date
- 2025-11-11
- Estimated Expiration
- 2044-09-19
AI Technical Summary
The reliability of power failure protection for machine tools in existing technologies is relatively low, which can cause the machine tool's gravity axis to fall, potentially leading to tool damage and scrapped parts. This can result in economic losses, especially when machining high-value parts.
A dynamic regulated power supply is used to monitor voltage drops and provide compensation voltage to the power supply module when a voltage drop is detected. At the same time, a signal detection result is generated, and the programmable logic controller determines whether to perform machine tool power-off protection operations, including braking and/or tool lifting operations.
It improves the reliability of machine tool power failure protection, avoids the CNC machine tool gravity axis from falling due to power supply voltage drops, protects the safety of the machine tool and the processed parts, and reduces economic losses.
Smart Images

Figure CN119188387B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of machine tool power failure protection technology, and more specifically, to a machine tool power failure protection method and device, control equipment and CNC machine tool. Background Technology
[0002] CNC machine tools are widely used in the machining field. These machines are typically supplied with 400V AC power from the factory's electrical distribution cabinet. Due to weather conditions such as lightning strikes, heavy rain, or damage to power lines caused by construction, voltage fluctuations or even complete power outages can occur. If the machine tool is in operation during a voltage fluctuation, an unexpected power outage can cause the machine's gravity axis to drop, resulting in dents in the tool tip on the part surface. In severe cases, it can even render the part unusable. This is especially problematic in CNC machining workshops processing high-value parts, where a single voltage drop can cause millions or even tens of millions of yuan in economic losses. Therefore, appropriate protection against machine tool power outages is necessary. However, the inventors have discovered that existing power outage protection technologies for machine tools have relatively low reliability. Summary of the Invention
[0003] In view of this, the purpose of this application is to provide a machine tool power failure protection method and device, control equipment and CNC machine tool, so as to improve the problem of relatively low reliability of machine tool power failure protection in the prior art.
[0004] To achieve the above objectives, this application adopts the following technical solution:
[0005] A machine tool power failure protection method is applied to a control device in a CNC machine tool. The CNC machine tool further includes a power supply module and a machine tool cutting tool. The power supply module is used to supply power to the control device based on a connected external power source. The control device is used to control the operation of the machine tool cutting tool. The power supply module is also connected to a dynamic voltage regulator, which is connected to the control device. The machine tool power failure protection method includes:
[0006] The signal detection results of the dynamic regulated power supply are monitored to obtain the corresponding target detection results. The dynamic regulated power supply is used to provide a corresponding compensation voltage to the power supply module when the power supply voltage of the external power supply to the power supply module drops, and to generate a corresponding first signal detection result to be output to the control device. The target detection result is used to reflect whether the first signal detection result is detected.
[0007] When the target detection result reflects the detection of the first signal detection result, a pre-configured target machine tool power-off protection operation is executed, wherein the target machine tool power-off protection operation is at least used to control the machine tool cutting tool to perform a braking operation and / or a tool lifting operation.
[0008] In a preferred embodiment of this application, in the above-described machine tool power-off protection method, the step of executing a pre-configured target machine tool power-off protection operation when the target detection result reflects the detection of the first signal detection result includes:
[0009] When the target detection result reflects the detection of the first signal, the programmable logic controller included in the control device determines whether the voltage drop of the external power supply will affect the machining operation of the machine tool.
[0010] When the programmable logic controller determines that a drop in the power supply voltage of the external power source will affect the machining operation of the machine tool, it sends a target interrupt signal to the CNC system included in the control device through the programmable logic controller.
[0011] The CNC system responds to the target interrupt signal and executes a pre-configured target machine tool power failure protection operation.
[0012] In a preferred embodiment of this application, in the above-described machine tool power failure protection method, the step of determining, by the programmable logic controller included in the control device, whether a voltage drop in the external power supply will affect the machining operation of the machine tool when the target detection result reflects the detection of the first signal detection result, includes:
[0013] When the target detection result reflects the detection of the first signal detection result, the duration of the first signal detection result is monitored by the programmable logic controller included in the control device to obtain the corresponding target duration. The dynamic regulated power supply is used to continuously output the first signal detection result when the power supply voltage of the external power supply to the power supply module drops, and not to output the first signal detection result when no power supply voltage drop occurs.
[0014] The programmable logic controller determines the relationship between the target duration and the pre-configured reference duration.
[0015] When the duration of the target is greater than or equal to the duration of the reference, the programmable logic controller determines that a drop in the supply voltage of the external power supply will affect the machining operation of the machine tool.
[0016] When the duration of the target is less than the duration of the reference, the programmable logic controller determines that the voltage drop of the external power supply will not affect the machining operation of the machine tool.
[0017] In a preferred embodiment of this application, in the above-described machine tool power failure protection method, the step of executing a pre-configured target machine tool power failure protection operation by the CNC system in response to the target interruption signal includes:
[0018] In response to the target interruption signal, the CNC system executes a pre-configured target machine tool power-off protection operation, including a first machine tool power-off protection operation, wherein the first machine tool power-off protection operation is used to control the machine tool cutting tool to perform a braking operation; or
[0019] In response to the target interruption signal, the CNC system executes a pre-configured target machine tool power failure protection operation, including a second machine tool power failure protection operation. The first machine tool power failure protection operation is used to control the machine tool to perform a tool lifting operation and to save the part machining program segment number and coordinate values of each axis when the target interruption signal is received.
[0020] In a preferred embodiment of this application, in the above-described machine tool power failure protection method, the step of executing a pre-configured target machine tool power failure protection operation by the CNC system in response to the target interruption signal includes the following second machine tool power failure protection operation:
[0021] In response to the target interrupt signal, the CNC system calls the configured normal retraction main program to pause the currently executing part machining program and calls the configured normal retraction subroutine.
[0022] The CNC system calls the normal retraction subroutine to save the part machining program segment number and coordinate values of each axis when the target interrupt signal is received, and controls the machine tool to perform a tool lifting operation.
[0023] In a preferred embodiment of this application, in the above-described machine tool power failure protection method, the step of calling the normal retraction subroutine through the CNC system to save the part machining program segment number and coordinate values of each axis when the target interruption signal is received, and controlling the machine tool to perform a tool lifting operation, includes:
[0024] The CNC system calls the normal retraction subroutine to save the part machining program segment number and coordinate values of each axis when the target interrupt signal is received;
[0025] The CNC system calls the normal retraction subroutine to determine the tool type of the machine tool and, based on the tool type, determines the corresponding tool lifting method. Based on this lifting method, the machine tool is controlled to move a preset distance away from the currently machined part along the tool normal direction, so that the machine tool does not contact the part. Specifically, when the machine tool is a reamer or drill bit, the corresponding lifting method is to reverse the rotation based on a first speed and lift the tool based on a second speed; when the machine tool is a milling cutter, the corresponding lifting method is to maintain the third speed during machining rotation and lift the tool along the tool normal direction based on a fourth speed, where the first speed is less than the third speed, and the second speed is less than the fourth speed.
[0026] This application also provides a machine tool power failure protection device, applied to a control device in a CNC machine tool. The CNC machine tool further includes a power supply module and a machine tool cutting tool. The power supply module is used to supply power to the control device based on a connected external power source. The control device is used to control the operation of the machine tool cutting tool. The power supply module is also connected to a dynamic voltage regulator, which is connected to the control device. The machine tool power failure protection device includes:
[0027] A voltage drop monitoring module is used to monitor the signal detection results of the dynamic regulated power supply and obtain a corresponding target detection result. The dynamic regulated power supply is used to provide a corresponding compensation voltage to the power supply module when it detects a voltage drop in the power supply voltage of the external power supply to the power supply module, and generate a corresponding first signal detection result to output to the control device. The target detection result is used to reflect whether the first signal detection result is detected.
[0028] A power failure protection operation execution module is used to execute a pre-configured target machine tool power failure protection operation when the target detection result reflects the detection of the first signal detection result, wherein the target machine tool power failure protection operation is at least used to control the machine tool cutting tool to perform a braking operation and / or a tool lifting operation.
[0029] In a preferred embodiment of this application, in the aforementioned machine tool power failure protection device, the power failure protection operation execution module is specifically used for:
[0030] When the target detection result reflects the detection of the first signal, the programmable logic controller included in the control device determines whether the voltage drop of the external power supply will affect the machining operation of the machine tool.
[0031] When the programmable logic controller determines that a drop in the power supply voltage of the external power source will affect the machining operation of the machine tool, it sends a target interrupt signal to the CNC system included in the control device through the programmable logic controller.
[0032] The CNC system responds to the target interrupt signal and executes a pre-configured target machine tool power failure protection operation.
[0033] Based on the above, this application also provides a control device applied to a CNC machine tool. The CNC machine tool further includes a power supply module and a machine tool cutting tool. The power supply module is used to supply power to the control device based on a connected external power supply. The control device is used to control the operation of the machine tool cutting tool and execute the above-mentioned machine tool power failure protection method.
[0034] The power supply module is also connected to a dynamic voltage regulator, which is connected to the control device. When a voltage drop is detected in the power supply module from the external power source, the dynamic voltage regulator provides a corresponding compensation voltage to the power supply module and generates a corresponding first signal detection result to be output to the control device.
[0035] Based on the above, this application also provides a CNC machine tool, including a power supply module, a machine tool cutting tool, and a control device. The power supply module is used to supply power to the control device based on a connected external power source. The control device is used to control the operation of the machine tool cutting tool and execute the above-mentioned machine tool power failure protection method.
[0036] The power supply module is also connected to a dynamic voltage regulator, which is connected to the control device. When a voltage drop is detected in the power supply module from the external power source, the dynamic voltage regulator provides a corresponding compensation voltage to the power supply module and generates a corresponding first signal detection result to be output to the control device.
[0037] The machine tool power failure protection method, device, control equipment, and CNC machine tool provided in this application firstly monitor the signal detection result of the dynamic regulated power supply to obtain a target detection result. The dynamic regulated power supply is used to provide a corresponding compensation voltage to the power supply module when a voltage drop in the external power supply to the power supply module is detected, and generates a first signal detection result to be output to the control equipment. The target detection result reflects whether the first signal detection result has been detected. Secondly, when the target detection result reflects that the first signal detection result has been detected, a pre-configured target machine tool power failure protection operation is executed. The target machine tool power failure protection operation is at least used to control the machine tool cutting tool to perform a braking operation and / or a tool lifting operation. Based on the above, when a voltage drop in the power supply module from the external power source is detected, not only will a corresponding first signal detection result be generated and output to the control device, enabling the control device to perform a power-off protection operation on the target machine tool based on the first signal detection result, but a corresponding compensation voltage will also be provided to the power supply module. This will prevent the gravity axis of the CNC machine tool from sagging due to the voltage drop, thus improving reliability and addressing the relatively low reliability of existing machine tool power-off protection technologies. Attached Figure Description
[0038] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings.
[0039] Figure 1 This is a schematic diagram illustrating the application of a CNC machine tool provided in an embodiment of this application.
[0040] Figure 2 This is a flowchart illustrating the machine tool power failure protection method provided in an embodiment of this application.
[0041] Figure 3 A block diagram of a machine tool power failure protection device provided in an embodiment of this application. Detailed Implementation
[0042] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.
[0043] Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0044] like Figure 1 As shown in the figure, this application embodiment provides a CNC machine tool. The CNC machine tool may include a power supply module, machine tool cutting tools, and a control device. The power supply module is used to supply power to the control device based on a connected external power source (such as a factory power grid), and the control device is used to control the operation of the machine tool cutting tools (e.g., by controlling the corresponding motors).
[0045] Furthermore, the power supply module is also connected to a dynamic voltage regulator, which is connected to the control device. Based on this, the dynamic voltage regulator is used to provide a corresponding compensation voltage to the power supply module when a voltage drop is detected from the external power supply (this can be achieved through a corresponding inverter; in a specific application scenario, the dynamic voltage regulator can provide 8 seconds of voltage compensation to maintain the short-term normal operation of the CNC machine tool), and generate a corresponding first signal detection result to output to the control device, enabling the control device to control the machine tool tools accordingly. In addition, the dynamic voltage regulator can have two operating modes. One operating mode is a monitoring mode, which provides power to the CNC machine tool when a voltage drop is detected on the power supply side; the other operating mode is a bypass mode, in which the external power supply bypasses the dynamic voltage regulator and directly connects to the CNC machine tool, which can be used for troubleshooting when the dynamic voltage regulator fails.
[0046] This application also provides a control device applicable to the aforementioned CNC machine tool. The CNC machine tool further includes a power supply module and a machine tool cutting tool. The power supply module supplies power to the control device based on a connected external power source. The control device controls the operation of the machine tool cutting tool and executes the machine tool power-off protection method described below.
[0047] Combination Figure 2 This application also provides a machine tool power failure protection method applicable to the aforementioned control equipment. The method steps defined in the relevant process of the machine tool power failure protection method can be implemented by the CNC machine tool. The following will describe... Figure 2 The specific process shown will be explained in detail.
[0048] Step S110: Monitor the signal detection results of the dynamic regulated power supply to obtain the corresponding target detection results.
[0049] In this embodiment, the control device can monitor the signal detection results of the dynamic regulated power supply to obtain a corresponding target detection result. Specifically, the dynamic regulated power supply provides a corresponding compensation voltage to the power supply module when a voltage drop is detected from the external power supply, and generates a corresponding first signal detection result to be output to the control device. The target detection result reflects whether the first signal detection result has been detected. For example, the dynamic regulated power supply includes a 24V DC voltage drop signal, which can be connected to the digital input module of the control device's PLC (Programmable Logic Controller). This DC signal changes when the external power supply voltage fluctuates. The voltage drop signal is a Boolean signal; under normal conditions, it is high; when the voltage changes, it goes low; and when the voltage returns to normal, it goes back to high.
[0050] Step S120: When the target detection result reflects the detection of the first signal detection result, execute the pre-configured target machine tool power-off protection operation.
[0051] In this embodiment, the control device can execute a pre-configured target machine tool power-off protection operation when the target detection result reflects the detection of the first signal. The target machine tool power-off protection operation is at least used to control the machine tool cutting tool to perform a braking operation and / or a tool lifting operation.
[0052] Based on the above, when a voltage drop in the power supply module from the external power source is detected, not only will a corresponding first signal detection result be generated and output to the control device, enabling the control device to perform a power-off protection operation on the target machine tool based on the first signal detection result, but a corresponding compensation voltage will also be provided to the power supply module. This will prevent the gravity axis of the CNC machine tool from sagging due to the voltage drop, thus improving reliability and addressing the relatively low reliability of existing machine tool power-off protection technologies.
[0053] It should be noted that for step S120, the specific method of performing the pre-configured target machine tool power-off protection operation based on the target detection result is not limited and can be selected according to actual needs.
[0054] For example, in an alternative implementation, in order to ensure the reliability of the target machine tool power failure protection operation, the above step S120 may further include steps S121, S122 and S123, the specific contents of each step are as follows.
[0055] Step S121: When the target detection result reflects the detection of the first signal detection result, the programmable logic controller included in the control device determines whether the voltage drop of the external power supply will affect the machining operation of the machine tool.
[0056] In this embodiment of the application, when the target detection result reflects the detection of the first signal detection result, the programmable logic controller included in the control device can determine whether the voltage drop of the external power supply will affect the machining operation of the machine tool.
[0057] Step S122: When the programmable logic controller determines that a drop in the power supply voltage of the external power source will affect the machining operation of the machine tool, a target interrupt signal is sent to the CNC system included in the control device through the programmable logic controller.
[0058] In this embodiment, when the programmable logic controller (PLC) determines that a voltage drop in the external power supply will affect the machining operation of the machine tool, a target interrupt signal can be sent to the numerical control system (NC control system) included in the control device via the PLC. Alternatively, when the PLC determines that a voltage drop in the external power supply will not affect the machining operation of the machine tool, a target interrupt signal can be sent to the NC system included in the control device without using the PLC.
[0059] Step S123: In response to the target interruption signal, the CNC system executes a pre-configured target machine tool power failure protection operation.
[0060] In this embodiment, after the CNC system receives the target interrupt signal, it can execute a pre-configured target machine tool power-off protection operation in response to the target interrupt signal. For example, if the programmable logic controller determines that a voltage drop in the external power supply will not affect the machining operation of the machine tool, the target machine tool power-off protection operation may not be executed, and the normal part machining process can proceed as normal.
[0061] It is understandable that in step S121 above, the specific method for determining whether a drop in the power supply voltage of the external power source will affect the machining operation of the machine tool is not limited and can be selected according to actual needs.
[0062] For example, in an alternative implementation, in order to ensure the reliability of the judgment on whether it will affect the machining operation of the machine tool, and thus ensure the reliability of the target machine tool power-off protection operation, the above step S121 may further include steps S121a, S121b, S121c and S121d, the specific contents of each step are as follows.
[0063] Step S121a: When the target detection result reflects the detection of the first signal detection result, the duration of the first signal detection result is monitored by the programmable logic controller included in the control device to obtain the corresponding target duration.
[0064] In this embodiment, when the target detection result reflects the detection of the first signal detection result, the duration of the first signal detection result can be monitored by the programmable logic controller included in the control device to obtain the corresponding target duration, i.e., to determine the duration of the power supply voltage drop. The dynamic regulated power supply is used to continuously output the first signal detection result when a voltage drop in the power supply module from the external power supply is detected, and not to output the first signal detection result when no voltage drop occurs. As described above, a high level is output when no voltage drop occurs, and a low level is output when a voltage drop occurs.
[0065] Step S121b: The programmable logic controller determines the relationship between the target duration and the pre-configured reference duration.
[0066] In this embodiment, after obtaining the target duration, the programmable logic controller can determine the relationship between the target duration and a pre-configured reference duration, such as whether the target duration is greater than or equal to the reference duration. For example, in a specific implementation scenario, the reference duration can be 5 milliseconds.
[0067] In step S121c, when the target duration is greater than or equal to the reference duration, the programmable logic controller determines that a drop in the power supply voltage of the external power source will affect the machining operation of the machine tool.
[0068] In this embodiment, after determining the size relationship, if the duration of the target is greater than or equal to the reference duration, the programmable logic controller can determine that a drop in the external power supply voltage will affect the machining operation of the machine tool. In other words, if the duration of the voltage drop is long, it is considered to affect the machining operation of the machine tool, such as causing damage to the machined parts.
[0069] In step S121d, when the target duration is less than the reference duration, the programmable logic controller determines that the voltage drop of the external power supply will not affect the machining operation of the machine tool.
[0070] In this embodiment, after determining the size relationship, if the duration of the target is less than the reference duration, the programmable logic controller can determine that the voltage drop of the external power supply will not affect the machining operation of the machine tool. In other words, if the voltage drop is short (i.e., the power supply recovers instantly), it is considered that it will not affect the machining operation of the machine tool, such as causing damage to the machined parts.
[0071] It is understood that in step S123 above, the specific method of performing the pre-configured target machine tool power failure protection operation in response to the target interruption signal is not limited and can be selected according to actual needs.
[0072] For example, in an alternative implementation, in order to make the target machine tool power failure protection operation more reliable, the above step S123 may include step S123a or step S123b, the specific contents of each step are as follows.
[0073] Step S123a: In response to the target interruption signal, the CNC system executes the first machine tool power failure protection operation, which is part of the pre-configured target machine tool power failure protection operation.
[0074] In this embodiment, to expedite the target machine tool power-off protection operation, the CNC system can respond to the target interruption signal and execute a pre-configured first machine tool power-off protection operation, which includes a first machine tool power-off protection operation. This first machine tool power-off protection operation controls the machine tool cutting tool to perform a braking operation, effectively stopping it.
[0075] Step S123b: In response to the target interruption signal, the CNC system executes the second machine tool power failure protection operation, which is part of the pre-configured target machine tool power failure protection operation.
[0076] In this embodiment, to ensure high safety and reliability in part machining, the CNC system can respond to the target interruption signal by executing a pre-configured second machine tool power-off protection operation, which includes a target machine tool power-off protection operation. The first machine tool power-off protection operation controls the machine tool to lift the tool (i.e., move it away from the part being machined) and saves the part machining program segment number and coordinate values of each axis at the time the target interruption signal is received. This allows for resumption of part machining after normal power supply.
[0077] It is understood that, in an alternative implementation, in order to ensure the reliability of performing the second machine tool power-off protection operation, step S123b may further include steps b1 and b2, the specific contents of each step of which are as follows.
[0078] Step b1: In response to the target interrupt signal, the CNC system calls the configured normal retraction main program to pause the currently executing part machining program and calls the configured normal retraction subroutine.
[0079] In this embodiment of the application, the CNC system, in response to the target interrupt signal, can call the configured normal retraction main program to pause the currently executing part machining program and call the configured normal retraction subroutine.
[0080] Step b2: The CNC system calls the normal retraction subroutine to save the part machining program segment number and coordinate values of each axis when the target interrupt signal is received, and controls the machine tool to perform a tool lifting operation.
[0081] In this embodiment of the application, the CNC system calls the normal retraction subroutine to save the part machining program segment number and coordinate values of each axis when the target interrupt signal is received, and controls the machine tool to perform a tool lifting operation.
[0082] It is understood that, in an alternative implementation, step b2 above may further include the following specific implementation details:
[0083] First, the normal retraction subroutine can be called through the CNC system to save the part machining program segment number and coordinate values of each axis when the target interrupt signal is received;
[0084] Secondly, the CNC system can call the normal retraction subroutine to determine the tool type of the machine tool and determine the corresponding tool lifting method based on the tool type. Based on the tool lifting method, the machine tool can be controlled to move a preset distance (which can be selected according to actual needs) away from the currently machined part along the tool normal direction, so that the machine tool does not contact the part. Specifically, when the machine tool is a reamer or drill bit, the corresponding tool lifting method is to reverse the rotation based on a first speed (e.g., low-speed reverse) and lift the tool based on a second speed (e.g., slow lifting). When the machine tool is a milling cutter, the corresponding tool lifting method is to maintain the third speed during machining rotation (e.g., maintain the machining speed) and lift the tool along the tool normal direction based on a fourth speed (e.g., rapid lifting). The first speed is less than the third speed, and the second speed is less than the fourth speed.
[0085] In a practical application scenario, the aforementioned machine tool power failure protection method can be implemented on a five-axis CNC gantry milling machine. Specifically, firstly, a dynamic voltage regulator can be installed between the factory power supply and the machine tool. This dynamic voltage regulator has the capacity to support the machine tool's normal operation for 8 seconds during a factory power failure. The dynamic voltage regulator has two operating modes: 1. Normal operating mode: when a voltage drop is detected, it immediately provides power to the machine tool; 2. Bypass mode: in this mode, the factory power supply bypasses the dynamic voltage regulator and directly supplies power to the machine tool. When the dynamic voltage regulator fails, the bypass mode allows for maintenance of the dynamic voltage regulator without affecting normal machine operation. The dynamic voltage regulator has a 24V DC voltage drop detection signal, which is a Boolean signal. Under normal conditions, this signal is high; when the factory power supply voltage drops, the signal becomes low; and when the voltage returns to normal, the signal returns to high. Connect this signal to the digital input module of the machine tool PLC. In this example, take input point I47.0, which represents the 0th bit of the 47th input of the machine tool PLC, and write the PLC control logic:
[0086] AI 47.1
[0087] LS5T#5MS
[0088] AT77
[0089] = DB10.DBX1.0
[0090] =DB2.DBX185.0
[0091] The function of this program segment is to set the point DB10.DBX1.0 to 1 when the PLC input point I47.1 corresponding to the voltage fluctuation signal of the dynamic regulated power supply is continuously triggered for more than 5 milliseconds. This point's function is to send an interrupt signal from the PLC to the machine tool's NC system. DB2.DBX185.0 is the PLC's alarm point, which displays an alarm text on the machine tool's operating interface when abnormal voltage fluctuations occur. If the trigger time of I47.1 is less than 5 milliseconds, it is assumed that the voltage fluctuation returns to normal within a very short time and will not affect the machine tool's machining; therefore, the machine tool does not perform a normal retraction action.
[0092] Write the main program for NC-controlled normal retraction, and name the program DVR_PROTECTION:
[0093] SEINT(1)PRIO=1DVR_FXTD
[0094] This section of the program is responsible for immediately calling and executing the normal retraction subroutine when the NC receives an interrupt signal from the PLC. DVR_FXTD is the subroutine's name, and PRIO=1 indicates the highest priority of this interrupt. It's crucial that the normal retraction subroutine name be placed at the very beginning of the part machining program to ensure its effectiveness throughout the entire machining process. The normal retraction subroutine DVR_FXTD is written as follows: First, it records the positions of each axis in the machining program during a power outage, facilitating subsequent resumption of normal machining. Then, it activates the five-axis linkage and the normal retraction command in the machine coordinate system. It determines whether the tool mounted on the spindle is a drill or a reamer. If so, it reverses the spindle at 100 rpm and retracts the tool 50 mm along the normal direction at a feed rate of 300 mm / min. If not, it maintains the spindle speed from the original machining program and retracts the tool 50 mm along the normal direction at a feed rate of 1000 mm / min. Finally, it stops the spindle.
[0095] Combination Figure 3 This application also provides a machine tool power failure protection device applicable to the aforementioned control equipment. The machine tool power failure protection device may include software functional modules such as a voltage drop monitoring module and a power failure protection operation execution module.
[0096] The voltage drop monitoring module is used to monitor the signal detection results of the dynamic regulated power supply and obtain a corresponding target detection result. The dynamic regulated power supply, when detecting a voltage drop in the power supply module from the external power source, provides a corresponding compensation voltage to the power supply module and generates a corresponding first signal detection result to be output to the control device. The target detection result reflects whether the first signal detection result has been detected. In this embodiment, the voltage drop monitoring module can be used to perform... Figure 2 The relevant content regarding the voltage drop monitoring module in step S110 shown can be found in the previous description of step S110.
[0097] The power failure protection operation execution module is used to execute a pre-configured target machine tool power failure protection operation when the target detection result reflects the detection of the first signal detection result. The target machine tool power failure protection operation is at least used to control the machine tool cutting tool to perform a braking operation and / or a tool lifting operation. In this embodiment, the power failure protection operation execution module can be used to execute... Figure 2 The relevant content regarding the power failure protection operation execution module shown in step S120 can be found in the previous description of step S120.
[0098] It is understood that, in an alternative implementation, the power failure protection operation execution module may specifically be used to: when the target detection result reflects the detection of the first signal detection result, determine, through the programmable logic controller included in the control device, whether the voltage drop of the external power supply will affect the machining operation of the machine tool; when the programmable logic controller determines that the voltage drop of the external power supply will affect the machining operation of the machine tool, send a target interrupt signal to the CNC system included in the control device through the programmable logic controller; and execute a pre-configured target machine tool power failure protection operation in response to the target interrupt signal by the CNC system.
[0099] In this embodiment of the application, corresponding to the above-described machine tool power failure protection method applied to the control device, a computer-readable storage medium is also provided, which stores a computer program that executes the various steps of the machine tool power failure protection method when the computer program is run.
[0100] The steps executed by the aforementioned computer program during runtime will not be described in detail here, but can be found in the explanation of the machine tool power failure protection method above.
[0101] In summary, the machine tool power failure protection method and device, control equipment, and CNC machine tool provided in this application firstly monitor the signal detection results of the dynamic regulated power supply to obtain a target detection result. The dynamic regulated power supply is used to provide a corresponding compensation voltage to the power supply module when a voltage drop in the external power supply to the power supply module is detected, and generates a first signal detection result to be output to the control equipment. The target detection result reflects whether the first signal detection result has been detected. Secondly, when the target detection result reflects that the first signal detection result has been detected, a pre-configured target machine tool power failure protection operation is executed. This target machine tool power failure protection operation is at least used to control the machine tool cutting tool to perform braking and / or tool lifting operations. Based on the above, when a voltage drop in the power supply module from the external power source is detected, not only will a corresponding first signal detection result be generated and output to the control device, enabling the control device to perform a power-off protection operation on the target machine tool based on the first signal detection result, but a corresponding compensation voltage will also be provided to the power supply module. This will prevent the CNC machine tool's gravity axis from sagging due to the voltage drop, thus improving reliability and addressing the relatively low reliability of existing machine tool power-off protection technologies.
[0102] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus and method embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0103] In addition, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0104] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, electronic device, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks. It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. In the absence of further restrictions, an element defined by the phrase "comprising a..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0105] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for protecting a machine tool from power failure, characterized in that, A control device applied in a CNC machine tool, the CNC machine tool further comprising a power supply module and a machine tool cutting tool, the power supply module being used to supply power to the control device based on a connected external power source, the control device being used to control the operation of the machine tool cutting tool, and the power supply module also being connected to a dynamic voltage regulator, the dynamic voltage regulator being connected to the control device, the machine tool power failure protection method comprising: The signal detection results of the dynamic regulated power supply are monitored to obtain the corresponding target detection results. The dynamic regulated power supply is used to provide a corresponding compensation voltage to the power supply module when the power supply voltage of the external power supply to the power supply module drops, and to generate a corresponding first signal detection result to be output to the control device. The target detection result is used to reflect whether the first signal detection result is detected. When the target detection result reflects the detection of the first signal detection result, a pre-configured target machine tool power-off protection operation is executed, wherein the target machine tool power-off protection operation is at least used to control the machine tool cutting tool to perform a braking operation and / or a tool lifting operation; The step of executing a pre-configured target machine tool power-off protection operation when the target detection result reflects the detection of the first signal includes: When the target detection result reflects the detection of the first signal, the programmable logic controller included in the control device determines whether the voltage drop of the external power supply will affect the machining operation of the machine tool. When the programmable logic controller determines that a drop in the power supply voltage of the external power source will affect the machining operation of the machine tool, it sends a target interrupt signal to the CNC system included in the control device through the programmable logic controller. The CNC system responds to the target interrupt signal and executes a pre-configured target machine tool power failure protection operation.
2. The machine tool power failure protection method according to claim 1, characterized in that, The step of determining, when the target detection result reflects the detection of the first signal, whether a voltage drop in the external power supply will affect the machining operation of the machine tool through the programmable logic controller included in the control device, includes: When the target detection result reflects the detection of the first signal detection result, the duration of the first signal detection result is monitored by the programmable logic controller included in the control device to obtain the corresponding target duration. The dynamic regulated power supply is used to continuously output the first signal detection result when the power supply voltage of the external power supply to the power supply module drops, and not to output the first signal detection result when no power supply voltage drop occurs. The programmable logic controller determines the relationship between the target duration and the pre-configured reference duration. When the duration of the target is greater than or equal to the duration of the reference, the programmable logic controller determines that a drop in the supply voltage of the external power supply will affect the machining operation of the machine tool. When the duration of the target is less than the duration of the reference, the programmable logic controller determines that the voltage drop of the external power supply will not affect the machining operation of the machine tool.
3. The machine tool power failure protection method according to claim 1, characterized in that, The step of executing a pre-configured target machine tool power failure protection operation in response to the target interruption signal by the CNC system includes: In response to the target interruption signal, the CNC system executes a pre-configured target machine tool power-off protection operation, including a first machine tool power-off protection operation, wherein the first machine tool power-off protection operation is used to control the machine tool cutting tool to perform a braking operation; or In response to the target interruption signal, the CNC system executes a pre-configured target machine tool power failure protection operation, including a second machine tool power failure protection operation. The first machine tool power failure protection operation is used to control the machine tool to perform a tool lifting operation and to save the part machining program segment number and coordinate values of each axis when the target interruption signal is received.
4. The machine tool power failure protection method according to claim 3, characterized in that, The step of the second machine tool power failure protection operation, which involves the CNC system responding to the target interruption signal and executing a pre-configured target machine tool power failure protection operation, includes: In response to the target interrupt signal, the CNC system calls the configured normal retraction main program to pause the currently executing part machining program and calls the configured normal retraction subroutine. The CNC system calls the normal retraction subroutine to save the part machining program segment number and coordinate values of each axis when the target interrupt signal is received, and controls the machine tool to perform a tool lifting operation.
5. The machine tool power failure protection method according to claim 4, characterized in that, The step of calling the normal retraction subroutine through the CNC system to save the part machining program segment number and coordinate values of each axis when the target interrupt signal is received, and controlling the machine tool to perform a tool lifting operation, includes: The CNC system calls the normal retraction subroutine to save the part machining program segment number and coordinate values of each axis when the target interrupt signal is received; The CNC system calls the normal retraction subroutine to determine the tool type of the machine tool and, based on the tool type, determines the corresponding tool lifting method. Based on this lifting method, the machine tool is controlled to move a preset distance away from the currently machined part along the tool normal direction, so that the machine tool does not contact the part. Specifically, when the machine tool is a reamer or drill bit, the corresponding lifting method is to reverse the rotation based on a first speed and lift the tool based on a second speed; when the machine tool is a milling cutter, the corresponding lifting method is to maintain the third speed during machining rotation and lift the tool along the tool normal direction based on a fourth speed, where the first speed is less than the third speed, and the second speed is less than the fourth speed.
6. A machine tool power failure protection device, characterized in that, A control device applied in a CNC machine tool, the CNC machine tool further comprising a power supply module and a machine tool cutting tool, the power supply module being used to supply power to the control device based on a connected external power source, the control device being used to control the operation of the machine tool cutting tool, and the power supply module also being connected to a dynamic voltage regulator, the dynamic voltage regulator being connected to the control device, and the machine tool power failure protection device comprising: A voltage drop monitoring module is used to monitor the signal detection results of the dynamic regulated power supply and obtain a corresponding target detection result. The dynamic regulated power supply is used to provide a corresponding compensation voltage to the power supply module when it detects a voltage drop in the power supply voltage of the external power supply to the power supply module, and generate a corresponding first signal detection result to output to the control device. The target detection result is used to reflect whether the first signal detection result is detected. A power failure protection operation execution module is used to execute a pre-configured target machine tool power failure protection operation when the target detection result reflects the detection of the first signal detection result, wherein the target machine tool power failure protection operation is at least used to control the machine tool tool to perform a braking operation and / or a tool lifting operation; Specifically, the power failure protection operation execution module is used for: When the target detection result reflects the detection of the first signal, the programmable logic controller included in the control device determines whether the voltage drop of the external power supply will affect the machining operation of the machine tool. When the programmable logic controller determines that a drop in the power supply voltage of the external power source will affect the machining operation of the machine tool, it sends a target interrupt signal to the CNC system included in the control device through the programmable logic controller. The CNC system responds to the target interrupt signal and executes a pre-configured target machine tool power failure protection operation.
7. A control device, characterized in that, The method is applied to a CNC machine tool, which further includes a power supply module and a machine tool cutting tool. The power supply module is used to supply power to the control device based on a connected external power source. The control device is used to control the operation of the machine tool cutting tool and execute the machine tool power failure protection method according to any one of claims 1-5. The power supply module is also connected to a dynamic voltage regulator, which is connected to the control device. When a voltage drop is detected in the power supply module from the external power source, the dynamic voltage regulator provides a corresponding compensation voltage to the power supply module and generates a corresponding first signal detection result to be output to the control device.
8. A CNC machine tool, characterized in that, The device includes a power supply module, a machine tool cutting tool, and a control device. The power supply module is used to supply power to the control device based on a connected external power source. The control device is used to control the operation of the machine tool cutting tool and execute the machine tool power failure protection method according to any one of claims 1-5. The power supply module is also connected to a dynamic voltage regulator, which is connected to the control device. When a voltage drop is detected in the power supply module from the external power source, the dynamic voltage regulator provides a corresponding compensation voltage to the power supply module and generates a corresponding first signal detection result to be output to the control device.
Citation Information
Patent Citations
Power failure automatic knife retracting control method and device of numerical control machine tool
CN102608949A
Protecting method and system for achieving high-value part machining of large numerical control equipment
CN107350871A