Machine tool power-off protection method and device, control equipment and numerical control machine tool
The implementation of a dynamic voltage-stabilized power supply with compensation and protective operations addresses the low reliability of CNC machine tool power-off protection, ensuring part safety and reducing economic losses.
Patent Information
- Application Number
- CN202411303850.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-19
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2044-09-19
AI Technical Summary
CNC machine tools face low reliability in power-off protection, leading to potential damage and scrapping of high-value parts due to voltage fluctuations or cuts, causing significant economic losses.
Implement a machine tool power-off protection method using a dynamic voltage-stabilized power supply to monitor voltage drops, providing compensation voltage and executing braking or tool lifting operations through a control device to prevent axis fall.
Enhances the reliability of power-off protection by preventing CNC machine tool axis fall during voltage drops, thereby reducing damage to processed parts and maintaining operational integrity.
Smart Images

Figure CN119188387A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of machine tool power-off protection, and in particular to a machine tool power-off protection method and device, a control device and a CNC machine tool. Background Art
[0002] CNC machine tools are widely used in the field of mechanical processing. Machine tools are usually provided with 400V or other voltage AC power by the power distribution cabinet in the factory. Due to weather reasons such as lightning, heavy rain or accidental factors such as damage to the transmission line caused by construction, the voltage may fluctuate instantly or even completely cut off. Among them, if the machine tool is in the processing process at the moment of voltage fluctuation, the machine tool will be accidentally cut off from power, which will cause the gravity axis of the machine tool to fall to a certain extent, and the tip of the tool will produce dents on the surface of the part. In severe cases, it may even cause the part to be scrapped, especially in CNC processing workshops that process high-value parts. A drop in the voltage in the factory may cause millions or even tens of millions of economic losses. Therefore, it is necessary to carry out corresponding protection against power failure of the machine tool. However, the inventors have found that in the prior art, the reliability of power failure protection of the machine tool is relatively low. Summary of the invention
[0003] In view of this, the purpose of the present application is to provide a machine tool power-off protection method and device, a control device and a CNC machine tool, so as to improve the problem of relatively low reliability of machine tool power-off protection existing in the prior art.
[0004] To achieve the above objectives, this application adopts the following technical solutions:
[0005] A machine tool power-off protection method is applied to a control device in a numerically controlled machine tool, wherein the numerically controlled machine tool further comprises a power supply module and a machine tool tool, wherein the power supply module is used to supply power to the control device based on a connected external power supply, and the control device is used to control the operation of the machine tool tool, and the power supply module is also connected to a dynamic voltage-stabilized power supply, and the dynamic voltage-stabilized power supply is connected to the control device, and the machine tool power-off protection method comprises:
[0006] The signal detection result of the dynamic voltage-stabilized power supply is monitored to obtain a corresponding target monitoring result, wherein the dynamic voltage-stabilized power supply is used to provide a corresponding compensation voltage to the power supply module when it is detected that the power supply voltage of the external power supply to the power supply module drops, and generate a corresponding first signal detection result to output to the control device, and the target monitoring result is used to reflect whether the first signal detection result is detected;
[0007] When the target detection result reflects that the first signal detection result is detected, a preconfigured 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 tool to perform a braking operation and / or a tool lifting operation.
[0008] In a preferred embodiment of the present application, in the above-mentioned machine tool power-off protection method, when the target detection result reflects that the first signal detection result is detected, the step of executing a pre-configured target machine tool power-off protection operation includes:
[0009] When the target detection result reflects that the first signal detection result is detected, determining, by the programmable logic controller included in the control device, whether a drop in the power supply voltage of the external power supply will affect the machining work of the machine tool tool;
[0010] When the programmable logic controller determines that the drop of the power supply voltage of the external power supply will affect the processing work of the machine tool tool, a target interrupt signal is sent to the numerical control system included in the control device through the programmable logic controller;
[0011] The numerical control system responds to the target interrupt signal to execute a preconfigured target machine tool power-off protection operation.
[0012] In a preferred embodiment of the present application, in the above-mentioned machine tool power-off protection method, when the target detection result reflects that the first signal detection result is detected, the step of determining, by the programmable logic controller included in the control device, whether the drop in the power supply voltage of the external power supply will affect the machining work of the machine tool tool includes:
[0013] When the target detection result reflects that the first signal detection result is detected, 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, wherein the dynamic voltage-regulated power supply is used to continuously output the first signal detection result when it is detected that the supply voltage of the external power supply to the power supply module drops, and not output the first signal detection result when the supply voltage does not drop;
[0014] Determining, by the programmable logic controller, the magnitude relationship between the target duration and a pre-configured reference duration;
[0015] When the target duration is greater than or equal to the reference duration, determining through the programmable logic controller that a drop in the power supply voltage of the external power supply will affect the machining work of the machine tool tool;
[0016] When the target duration is less than the reference duration, the programmable logic controller determines that a drop in the power supply voltage of the external power source will not affect the machining work of the machine tool tool.
[0017] In a preferred embodiment of the present application, in the above-mentioned machine tool power-off protection method, the step of executing a pre-configured target machine tool power-off protection operation in response to the target interrupt signal by the numerical control system includes:
[0018] In response to the target interrupt signal, the numerical control system executes a first machine tool power-off protection operation included in a pre-configured target machine tool power-off protection operation, wherein the first machine tool power-off protection operation is used to control the machine tool tool to perform a braking operation; or
[0019] The numerical control system responds to the target interrupt signal to execute a preconfigured target machine tool power-off protection operation including a second machine tool power-off protection operation, wherein the first machine tool power-off protection operation is used to control the machine tool tool to perform a tool lifting operation, and save the part processing program segment number and the coordinate values of each axis when the target interrupt signal is received.
[0020] In a preferred embodiment of the present application, in the above-mentioned machine tool power-off protection method, the step of executing, by the numerical control system in response to the target interrupt signal, a second machine tool power-off protection operation included in the pre-configured target machine tool power-off protection operation comprises:
[0021] In response to the target interrupt signal, the numerical control system calls the configured normal tool retraction main program to pause the currently executed part processing program and calls the configured normal tool retraction subroutine;
[0022] The normal tool retraction subroutine is called by the numerical control system to save the part processing program segment number and the coordinate values of each axis when the target interrupt signal is received, and to control the machine tool to perform a tool lifting operation.
[0023] In a preferred embodiment of the present application, in the above-mentioned machine tool power-off protection method, the step of calling the normal tool retraction subroutine by the numerical control system to save the part processing program segment number and the coordinate values of each axis when the target interrupt signal is received, and controlling the machine tool tool to perform the tool lifting operation includes:
[0024] The normal tool retraction subroutine is called by the numerical control system to save the part processing program segment number and the coordinate values of each axis when the target interrupt signal is received;
[0025] The normal tool retraction subroutine is called by the numerical control system to determine the tool type of the machine tool tool, and a corresponding tool lifting method is determined based on the tool type, and based on the tool lifting method, the machine tool tool is controlled to move a preset distance away from the currently processed part along the tool normal vector direction, so that the machine tool tool does not contact the part, wherein, when the machine tool tool is a reamer or a drill, the corresponding tool lifting method is to reverse the first speed and lift the tool based on the second speed; when the machine tool tool is a milling cutter, the corresponding tool lifting method is to maintain the third speed during machining rotation and lift the tool based on the fourth speed along the tool normal vector direction, the first speed is less than the third speed, and the second speed is less than the fourth speed.
[0026] The present application also provides a machine tool power-off protection device, which is applied to a control device in a numerically controlled machine tool. The numerically controlled machine tool also includes a power supply module and a machine tool tool. The power supply module is used to power the control device based on a connected external power supply. The control device is used to control the operation of the machine tool tool. The power supply module is also connected to a dynamic voltage-stabilized power supply, and the dynamic voltage-stabilized power supply is connected to the control device. The machine tool power-off protection device includes:
[0027] A voltage drop monitoring module, used for monitoring the signal detection result of the dynamic voltage-stabilized power supply to obtain a corresponding target monitoring result, wherein the dynamic voltage-stabilized power supply is used to provide a corresponding compensation voltage to the power supply module when detecting that the power supply voltage of the external power supply to the power supply module drops, and generate a corresponding first signal detection result to output to the control device, and the target monitoring result is used to reflect whether the first signal detection result is detected;
[0028] A power-off protection operation execution module is used to execute a pre-configured target machine tool power-off protection operation when the target detection result reflects the detection of the first signal detection result, wherein the target machine tool power-off protection operation is at least used to control the machine tool tool to perform a braking operation and / or a tool lifting operation.
[0029] In a preferred embodiment of the present application, in the above-mentioned machine tool power-off protection device, the power-off protection operation execution module is specifically used for:
[0030] When the target detection result reflects that the first signal detection result is detected, determining, by the programmable logic controller included in the control device, whether a drop in the power supply voltage of the external power supply will affect the machining work of the machine tool tool;
[0031] When the programmable logic controller determines that the drop of the power supply voltage of the external power supply will affect the processing work of the machine tool tool, a target interrupt signal is sent to the numerical control system included in the control device through the programmable logic controller;
[0032] The numerical control system responds to the target interrupt signal to execute a preconfigured target machine tool power-off protection operation.
[0033] On the basis of the above, the present application further provides a control device, which is applied to a CNC machine tool, wherein the CNC machine tool further comprises a power supply module and a machine tool tool, wherein the power supply module is used to supply power to the control device based on a connected external power supply, and the control device is used to control the operation of the machine tool tool and execute the above-mentioned machine tool power-off protection method;
[0034] In which, the power supply module is also connected to a dynamic voltage-stabilized power supply, which is connected to the control device and is used to provide a corresponding compensation voltage to the power supply module when it is detected that the supply voltage of the external power supply to the power supply module drops, and generate a corresponding first signal detection result to output to the control device.
[0035] On the basis of the above, the present application further provides a CNC machine tool, comprising a power supply module, a machine tool tool and a control device, wherein the power supply module is used to power the control device based on a connected external power supply, and the control device is used to control the operation of the machine tool tool and execute the above-mentioned machine tool power-off protection method;
[0036] In which, the power supply module is also connected to a dynamic voltage-stabilized power supply, which is connected to the control device and is used to provide a corresponding compensation voltage to the power supply module when it is detected that the supply voltage of the external power supply to the power supply module drops, and generate a corresponding first signal detection result to output to the control device.
[0037] The machine tool power-off protection method and device, control equipment and CNC machine tool provided by the present application first monitor the signal detection result of the dynamic voltage-stabilized power supply to obtain a target monitoring result, wherein the dynamic voltage-stabilized power supply is used to provide a corresponding compensation voltage to the power supply module when it detects that the power supply voltage of the power supply module from an external power supply drops, and generates a first signal detection result to output to the control equipment, and the target monitoring result is used to reflect whether the first signal detection result is detected; secondly, when the target detection result reflects that the first signal detection result is detected, 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 tool to perform a braking operation and / or a tool lifting operation. Based on the above content, when it is detected that the power supply voltage of the external power supply to the power supply module drops, not only will the corresponding first signal detection result be generated to output to the control device, so that the control device can perform the power-off protection operation of the target machine tool based on the first signal detection result, but also the corresponding compensation voltage will be provided to the power supply module, so that the problem of the gravity axis of the CNC machine tool falling due to the power supply voltage drop can be avoided. Therefore, the reliability can be improved, thereby improving the problem of relatively low reliability of the machine tool power-off protection in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings.
[0039] Figure 1 A schematic diagram of the application of a CNC machine tool provided in an embodiment of the present application.
[0040] Figure 2 A flow chart of a machine tool power-off protection method provided in an embodiment of the present application.
[0041] Figure 3 A block diagram of a machine tool power-off protection device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0043] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0044] like Figure 1 As shown, an embodiment of the present application provides a CNC machine tool. The CNC machine tool may include a power supply module, a machine tool tool, and a control device. The power supply module is used to power the control device based on a connected external power supply (such as a factory power grid), and the control device is used to control the operation of the machine tool tool (such as by controlling the corresponding motor).
[0045] In addition, the power supply module is also connected to a dynamic voltage-stabilized power supply, which is connected to the control device. Based on this, the dynamic voltage-stabilized power supply is used to provide the power supply module with a corresponding compensation voltage (which can be achieved by a corresponding inverter, and in a specific application scenario, the dynamic voltage-stabilized power supply can provide the power supply module with 8 seconds of voltage compensation to maintain the short-term normal operation of the CNC machine tool) when the power supply voltage of the external power supply to the power supply module drops, and generate a corresponding first signal detection result to output to the control device, so that the control device can control the machine tool tool accordingly. In addition, the dynamic voltage-stabilized power supply can have two working modes. One working mode is a monitoring mode, which provides power supply to the CNC machine tool when the voltage on the power supply side of the CNC machine tool drops; the other working mode is a bypass mode. When the bypass mode is selected, the external power supply will not pass through the dynamic voltage-stabilized power supply, but will be directly connected to the CNC machine tool, which can be used for maintenance when the dynamic voltage-stabilized power supply fails.
[0046] The embodiment of the present application also provides a control device applicable to the above-mentioned CNC machine tool. The CNC machine tool further includes a power supply module and a machine tool tool, the power supply module is used to supply power to the control device based on a connected external power supply, and the control device is used to control the operation of the machine tool tool and execute the machine tool power-off protection method as described below.
[0047] Combination Figure 2 The present application also provides a machine tool power failure protection method applicable to the above control device. The method steps defined in the process related to the machine tool power failure protection method can be implemented by the CNC machine tool. Figure 2 The specific process shown is explained in detail.
[0048] Step S110, monitoring the signal detection result of the dynamic voltage regulated power supply to obtain a corresponding target monitoring result.
[0049] In an embodiment of the present application, the control device can monitor the signal detection result of the dynamic voltage-stabilized power supply to obtain a corresponding target monitoring result. Wherein, the dynamic voltage-stabilized power supply is used to provide a corresponding compensation voltage to the power supply module when it is detected that the power supply voltage of the external power supply to the power supply module drops, and generate a corresponding first signal detection result to output to the control device, and the target monitoring result is used to reflect whether the first signal detection result is detected. Exemplarily, the dynamic voltage-stabilized power supply includes a DC 24V voltage drop signal, which can be connected to the digital input module of the PLC (programmable logic controller) of the control device. When the power supply voltage of the external power supply fluctuates, the DC signal will change. Wherein, the voltage drop signal is a Boolean signal, which is a high level in normal state, and when the voltage changes, the signal becomes a low level, and when the voltage returns to normal, the signal becomes a high level again.
[0050] Step S120 , when the target detection result reflects that the first signal detection result is detected, executing a pre-configured target machine tool power-off protection operation.
[0051] In an embodiment of the present application, the control device can execute a pre-configured target machine tool power-off protection operation when the target detection result reflects that the first signal detection result is detected. The target machine tool power-off protection operation is at least used to control the machine tool tool to perform a braking operation and / or a tool lifting operation.
[0052] Based on the above content, when it is detected that the power supply voltage of the external power supply to the power supply module drops, not only will the corresponding first signal detection result be generated to output to the control device, so that the control device can perform the power-off protection operation of the target machine tool based on the first signal detection result, but also the corresponding compensation voltage will be provided to the power supply module, so that the problem of the gravity axis of the CNC machine tool falling due to the power supply voltage drop can be avoided. Therefore, the reliability can be improved, thereby improving the problem of relatively low reliability of the machine tool power-off protection in the prior art.
[0053] It should be noted that for step S120, the specific method of executing 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 executing the power-off protection operation of the target machine tool, the above-mentioned step S120 may further include step S121, step S122 and step S123, and the specific content of each step is described as follows.
[0055] Step S121, when the target detection result reflects that the first signal detection result is detected, the programmable logic controller included in the control device determines whether a drop in the power supply voltage of the external power supply will affect the machining work of the machine tool.
[0056] In an embodiment of the present 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 be used to determine whether a drop in the supply voltage of the external power supply will affect the processing work of the machine tool tool.
[0057] Step S122, when the programmable logic controller determines that the drop of the power supply voltage of the external power supply will affect the processing work of the machine tool tool, a target interrupt signal is sent to the numerical control system included in the control device through the programmable logic controller.
[0058] In an embodiment of the present application, when the programmable logic controller determines that the voltage drop of the external power supply will affect the processing work of the machine tool tool, a target interrupt signal can be sent to the numerical control system (NC control system) included in the control device through the programmable logic control. Exemplarily, when the programmable logic controller determines that the voltage drop of the external power supply will not affect the processing work of the machine tool tool, a target interrupt signal can be sent to the numerical control system included in the control device without the programmable logic control.
[0059] Step S123: executing a pre-configured target machine tool power-off protection operation by the numerical control system in response to the target interrupt signal.
[0060] In an embodiment of the present application, after the numerical control system receives the target interrupt signal, the numerical control system can respond to the target interrupt signal and execute a pre-configured target machine tool power-off protection operation. For example, when the programmable logic controller determines that the voltage drop of the external power supply will not affect the processing of the machine tool, the target machine tool power-off protection operation may not be executed, such as according to the normal part processing process.
[0061] It is understandable that, in the above step S121, the specific method of determining whether the drop in the supply voltage of the external power source will affect the processing work of the machine tool tool is not limited and can be selected according to actual needs.
[0062] For example, in an alternative embodiment, in order to ensure the reliability of the judgment of whether the processing work of the machine tool tool will be affected, thereby ensuring the reliability of executing the power-off protection operation of the target machine tool, the above-mentioned step S121 can further include step S121a, step S121b, step S121c and step S121d, and the specific content of each step is described as follows.
[0063] Step S121a, when the target detection result reflects that the first signal detection result is detected, 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 an embodiment of the present application, when the target detection result reflects that the first signal detection result is detected, 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, that is, to determine the duration of the power supply voltage drop. Wherein, the dynamic voltage-stabilized power supply is used to continuously output the first signal detection result when the power supply voltage of the power supply module supplied by the external power supply is detected to drop, and not to output the first signal detection result when the power supply voltage does not drop. As described above, when the power supply voltage does not drop, a high level is output, otherwise, a low level is output.
[0065] Step S121b: determining, by the programmable logic controller, the size relationship between the target duration and a pre-configured reference duration.
[0066] In an embodiment of the present application, after obtaining the target duration, the programmable logic controller can determine the size relationship between the target duration and the pre-configured reference duration, such as whether the target duration is greater than or equal to the reference duration. Exemplarily, in a specific implementation scenario, the reference duration can be 5 milliseconds.
[0067] Step S121c, when the target duration is greater than or equal to the reference duration, the programmable logic controller determines whether a drop in the power supply voltage of the external power supply will affect the machining work of the machine tool tool.
[0068] In the embodiment of the present application, after determining the magnitude relationship, if the target duration is greater than or equal to the reference duration, the programmable logic controller can be used to determine whether the voltage drop of the external power supply will affect the processing of the machine tool. In other words, when the duration of the power supply voltage drop is long, it is considered that the processing of the machine tool may be affected, such as causing the machine tool to damage the processed parts.
[0069] Step S121d: When the target duration is less than the reference duration, the programmable logic controller determines that a drop in the power supply voltage of the external power supply will not affect the machining work of the machine tool.
[0070] In the embodiment of the present application, after determining the magnitude relationship, if the target duration 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 processing of the machine tool. In other words, when the duration of the power supply voltage drop is short (i.e., the power supply is restored instantly), it is considered that the processing of the machine tool will not be affected, such as causing the machine tool to damage the processed parts.
[0071] It can be understood that, in the above step S123, the specific manner of executing the pre-configured target machine tool power-off protection operation in response to the target interrupt signal is not limited and can be selected according to actual needs.
[0072] For example, in an alternative implementation, in order to make the reliability of the target machine tool power-off protection operation higher, the above-mentioned step S123 may include step S123a or step S123b, and the specific content of each step is described as follows.
[0073] Step S123a: executing, by the numerical control system, a first machine tool power-off protection operation included in a pre-configured target machine tool power-off protection operation in response to the target interrupt signal.
[0074] In the embodiment of the present application, in order to complete the target machine tool power-off protection operation as quickly as possible, the numerical control system can respond to the target interrupt signal to execute the first machine tool power-off protection operation included in the pre-configured target machine tool power-off protection operation. The first machine tool power-off protection operation is used to control the machine tool tool to brake, that is, to stop effectively.
[0075] Step S123b: executing, by the numerical control system, a second machine tool power-off protection operation included in the pre-configured target machine tool power-off protection operation in response to the target interrupt signal.
[0076] In the embodiment of the present application, in order to ensure that the processing of parts can have high safety and reliability, the numerical control system can respond to the target interrupt signal and execute the second machine tool power-off protection operation included in the pre-configured target machine tool power-off protection operation. The first machine tool power-off protection operation is used to control the machine tool tool to perform a tool lifting operation (i.e., away from the processed parts), and save the part processing program segment number and the coordinate values of each axis when the target interrupt signal is received, so that the corresponding part processing can be resumed after the subsequent normal power supply.
[0077] It is understandable that, in an alternative implementation, in order to ensure the reliability of executing the second machine tool power-off protection operation, the above-mentioned step S123b may further include step b1 and step b2, and the specific content of each step is described as follows.
[0078] Step b1, in response to the target interrupt signal, the numerical control system calls the configured normal tool retraction main program to pause the currently executed part processing program, and calls the configured normal tool retraction subroutine.
[0079] In the embodiment of the present application, the numerical control system responds to the target interrupt signal to call the configured normal retract main program to pause the currently executed part processing program and call the configured normal retract subroutine
[0080] Step b2, calling the normal tool retraction subroutine through the numerical control system to save the part processing program segment number and the coordinate values of each axis when the target interrupt signal is received, and controlling the machine tool tool to perform the tool lifting operation.
[0081] In an embodiment of the present application, the normal tool retraction subroutine is called by the numerical control system to save the part processing program segment number and the coordinate values of each axis when the target interrupt signal is received, and to control the machine tool tool to perform a tool lifting operation.
[0082] It is understandable that, in an alternative implementation, the above step b2 may further include the following specific implementation contents:
[0083] First, the normal retraction subroutine can be called by the numerical control system to save the part processing program segment number and the coordinate values of each axis when the target interrupt signal is received;
[0084] Secondly, the normal tool retraction subroutine can be called by the CNC system to determine the tool type of the machine tool tool, and determine the corresponding tool lifting method based on the tool type, and control the machine tool tool to move a preset distance (which can be selected according to actual needs) along the direction of the tool normal vector away from the currently processed part based on the tool lifting method, so that the machine tool tool does not contact the part, wherein, when the machine tool tool is a reamer or a drill, the corresponding tool lifting method is to reverse the tool based on the first speed (such as low-speed reversal) and lift the tool based on the second speed (such as slowly lift the tool); when the machine tool tool is a milling cutter, the corresponding tool lifting method is to maintain the third speed during machining rotation (such as maintaining the rotation speed during machining) and lift the tool based on the fourth speed along the direction of the tool normal vector (such as quickly lift the tool), the first speed is less than the third speed, and the second speed is less than the fourth speed.
[0085] For the above-mentioned machine tool power-off protection method, in an actual application scenario, it can be implemented on a five-axis CNC gantry milling machine. Specifically, first, a set of dynamic voltage-stabilized power supplies can be installed between the power supply end of the factory and the machine tool. The capacity of the dynamic voltage-stabilized power supply can support the normal operation of the machine tool for 8 seconds when the power supply is cut off in the factory. The dynamic voltage-stabilized power supply has two working modes: 1. Normal working mode, when the power supply voltage drop is detected, the machine tool is immediately provided with power supply; 2. Bypass mode, in this mode, the factory power supply bypasses the dynamic voltage-stabilized power supply to directly power the machine tool. When the dynamic voltage-stabilized power supply fails, the bypass mode can be used to repair the dynamic voltage-stabilized power supply without affecting the normal processing of the machine tool. The dynamic voltage-stabilized power supply has a voltage drop 24V DC detection signal, which is a Boolean signal. Under normal conditions, the signal is high. When the power supply voltage of the factory drops, the signal becomes low. When the voltage returns to normal, the signal returns to high. Connect the signal to the digital input module of the machine tool PLC. In this example, take the 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] L S5T#5MS
[0088] A T77
[0089] =DB10.DBX1.0
[0090] =DB2.DBX185.0
[0091] Among them, the function of this program 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 voltage regulator is continuously triggered for more than 5 milliseconds. The function of this point is that the PLC sends an interrupt signal to the machine tool NC system. DB2.DBX185.0 is the alarm point of the PLC. Its function is to display an alarm text on the machine tool operation interface when the voltage fluctuation is abnormal. If the trigger time of I47.1 is less than 5 milliseconds, it is considered that the voltage fluctuation returns to normal in a very short time and will not affect the machine tool processing, so the machine tool does not perform the normal retraction action.
[0092] Write the NC controlled normal retraction main program, and define the program name as DVR_PROTECTION:
[0093] SEINT(1)PRIO=1DVR_FXTD
[0094] Among them, the function of this program is to call and execute the normal retract subroutine immediately when NC receives the interrupt signal from PLC, where DVR_FXTD is the program name of the subroutine, and PRIO=1 indicates that the priority of the interrupt is the highest state. It is particularly important to note that the main program name of the normal retract must be placed at the front of the part processing program, so as to ensure that it is effective during the entire part processing process. Write the subroutine DVR_FXTD for normal retract. Among them, the function of this program is to first record the position of each axis in the processing program when the power is off and the machine is stopped, so as to facilitate the subsequent restoration of normal processing. Activate the five-axis linkage and normal retract instructions in the machine tool coordinate system, and determine whether the tool currently installed on the spindle is a drill or a reamer. If so, reverse the spindle at a speed of 100r / min and lift the tool 50mm in the normal direction at a feed rate of 300mm / min; if not, maintain the spindle speed in the original processing program, and lift the tool 50mm in the normal direction at a feed rate of 1000mm / min; finally stop the spindle.
[0095] Combination Figure 3 The embodiment of the present application also provides a machine tool power failure protection device applicable to the above control device. The machine tool power failure protection device may include software function 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 result of the dynamic voltage stabilizing power supply to obtain the corresponding target monitoring result, wherein the dynamic voltage stabilizing power supply is used to provide the power supply module with a corresponding compensation voltage when detecting that the power supply voltage of the external power supply to the power supply module drops, and generate a corresponding first signal detection result to output to the control device, and the target monitoring result is used to reflect whether the first signal detection result is detected. In the embodiment of the present application, the voltage drop monitoring module can be used to perform Figure 2 As shown in step S110, the relevant contents of the voltage drop monitoring module can refer to the above description of step S110.
[0097] The power-off protection operation execution module is used to execute a pre-configured target machine tool power-off protection operation when the target detection result reflects that the first signal detection result is detected, wherein the target machine tool power-off protection operation is at least used to control the machine tool tool to perform a braking operation and / or a tool lifting operation. In the embodiment of the present application, the power-off protection operation execution module can be used to execute Figure 2 As shown in step S120, the relevant contents of the power-off protection operation execution module can refer to the above description of step S120.
[0098] It can be understood that, in an alternative embodiment, the power-off protection operation execution module can be specifically used for: when the target detection result reflects that the first signal detection result is detected, judging through the programmable logic controller included in the control device whether the power supply voltage drop of the external power supply will affect the processing work of the machine tool tool; when the programmable logic controller determines that the power supply voltage drop of the external power supply will affect the processing work of the machine tool tool, sending a target interrupt signal to the numerical control system included in the control device through the programmable logic control; and executing a pre-configured target machine tool power-off protection operation in response to the target interrupt signal through the numerical control system.
[0099] In an embodiment of the present application, corresponding to the above-mentioned machine tool power-off protection method applied to the control device, a computer-readable storage medium is also provided, in which a computer program is stored, and when the computer program is run, each step of the machine tool power-off protection method is executed.
[0100] Among them, the steps executed when the aforementioned computer program is running will not be described one by one here, and reference may be made to the explanation of the machine tool power-off protection method in the previous text.
[0101] To summarize, the machine tool power-off protection method and apparatus, control equipment and CNC machine tool provided by the present application, first, monitor the signal detection result of the dynamic voltage stabilizing power supply to obtain the target monitoring result, wherein the dynamic voltage stabilizing power supply is used to provide a corresponding compensation voltage to the power supply module when it detects that the power supply voltage of the power supply module supplied by the external power supply drops, and generate a first signal detection result to output to the control equipment, and the target monitoring result is used to reflect whether the first signal detection result is detected; secondly, when the target detection result reflects that the first signal detection result is detected, the 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 tool to perform braking operation and / or tool lifting operation. Based on the above content, when it is detected that the power supply voltage of the external power supply to the power supply module drops, not only will the corresponding first signal detection result be generated to output to the control device, so that the control device can perform the power-off protection operation of the target machine tool based on the first signal detection result, but also the corresponding compensation voltage will be provided to the power supply module, so that the problem of the gravity axis of the CNC machine tool falling due to the power supply voltage drop can be avoided. Therefore, the reliability can be improved and the problem of relatively low reliability of the machine tool power-off protection in the prior art can be improved.
[0102] In several embodiments provided in the embodiments of the present application, it should be understood that the disclosed device and method can also be implemented in other ways. The device and method embodiments described above are merely schematic, for example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the device, method and computer program product according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains 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 box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0103] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0104] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, an electronic device, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk. It should be noted that, in this article, the term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such a process, method, article or device. Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.
[0105] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A power-off protection method for a machine tool, characterized in that: A control device applied to a numerically controlled machine tool, the numerically controlled machine tool further comprising a power supply module and a machine tool tool, the power supply module being used to supply power to the control device based on a connected external power supply, the control device being used to control the operation of the machine tool tool, and the power supply module being further connected to a dynamic voltage-stabilized power supply, the dynamic voltage-stabilized power supply being connected to the control device, the machine tool power-off protection method comprising: The signal detection result of the dynamic voltage-stabilized power supply is monitored to obtain a corresponding target monitoring result, wherein the dynamic voltage-stabilized power supply is used to provide a corresponding compensation voltage to the power supply module when it is detected that the power supply voltage of the external power supply to the power supply module drops, and generate a corresponding first signal detection result to output to the control device, and the target monitoring result is used to reflect whether the first signal detection result is detected; When the target detection result reflects that the first signal detection result is detected, a preconfigured 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 tool to perform a braking operation and / or a tool lifting operation.
2. The machine tool power-off protection method according to claim 1, characterized in that: The step of executing a pre-configured target machine tool power-off protection operation when the target detection result reflects that the first signal detection result is detected includes: When the target detection result reflects that the first signal detection result is detected, determining, by the programmable logic controller included in the control device, whether a drop in the power supply voltage of the external power supply will affect the machining work of the machine tool tool; When the programmable logic controller determines that the drop of the power supply voltage of the external power supply will affect the processing work of the machine tool tool, a target interrupt signal is sent to the numerical control system included in the control device through the programmable logic controller; The numerical control system responds to the target interrupt signal to execute a preconfigured target machine tool power-off protection operation.
3. The machine tool power-off protection method according to claim 2, characterized in that: The step of determining, by the programmable logic controller included in the control device, whether a drop in the power supply voltage of the external power supply will affect the machining work of the machine tool tool when the target detection result reflects that the first signal detection result is detected, comprises: When the target detection result reflects that the first signal detection result is detected, 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, wherein the dynamic voltage-regulated power supply is used to continuously output the first signal detection result when it is detected that the supply voltage of the external power supply to the power supply module drops, and not output the first signal detection result when the supply voltage does not drop; Determining, by the programmable logic controller, the magnitude relationship between the target duration and a pre-configured reference duration; When the target duration is greater than or equal to the reference duration, determining through the programmable logic controller that a drop in the power supply voltage of the external power supply will affect the machining work of the machine tool tool; When the target duration is less than the reference duration, the programmable logic controller determines that a drop in the power supply voltage of the external power source will not affect the machining work of the machine tool tool.
4. The machine tool power-off protection method according to claim 2, characterized in that: The step of executing a pre-configured target machine tool power-off protection operation in response to the target interrupt signal by the numerical control system comprises: In response to the target interrupt signal, the numerical control system executes a first machine tool power-off protection operation included in a pre-configured target machine tool power-off protection operation, wherein the first machine tool power-off protection operation is used to control the machine tool tool to perform a braking operation; or The numerical control system responds to the target interrupt signal to execute a preconfigured target machine tool power-off protection operation including a second machine tool power-off protection operation, wherein the first machine tool power-off protection operation is used to control the machine tool tool to perform a tool lifting operation, and save the part processing program segment number and the coordinate values of each axis when the target interrupt signal is received.
5. The machine tool power-off protection method according to claim 4, characterized in that: The step of executing, by the numerical control system, a second machine tool power-off protection operation included in a pre-configured target machine tool power-off protection operation in response to the target interrupt signal comprises: In response to the target interrupt signal, the numerical control system calls the configured normal tool retraction main program to pause the currently executed part processing program and calls the configured normal tool retraction subroutine; The normal tool retraction subroutine is called by the numerical control system to save the part processing program segment number and the coordinate values of each axis when the target interrupt signal is received, and to control the machine tool to perform a tool lifting operation.
6. The machine tool power-off protection method according to claim 5, characterized in that: The step of calling the normal tool retraction subroutine through the numerical control system to save the part processing program segment number and the coordinate values of each axis when the target interrupt signal is received, and controlling the machine tool tool to perform a tool lifting operation includes: The normal tool retraction subroutine is called by the numerical control system to save the part processing program segment number and the coordinate values of each axis when the target interrupt signal is received; The normal tool retraction subroutine is called by the numerical control system to determine the tool type of the machine tool tool, and a corresponding tool lifting method is determined based on the tool type, and based on the tool lifting method, the machine tool tool is controlled to move a preset distance away from the currently processed part along the tool normal vector direction, so that the machine tool tool does not contact the part, wherein, when the machine tool tool is a reamer or a drill, the corresponding tool lifting method is to reverse the first speed and lift the tool based on the second speed; when the machine tool tool is a milling cutter, the corresponding tool lifting method is to maintain the third speed during machining rotation and lift the tool based on the fourth speed along the tool normal vector direction, the first speed is less than the third speed, and the second speed is less than the fourth speed.
7. A machine tool power-off protection device, characterized in that: A control device applied to a numerically controlled machine tool, wherein the numerically controlled machine tool further comprises a power supply module and a machine tool tool, wherein the power supply module is used to supply power to the control device based on a connected external power supply, and the control device is used to control the operation of the machine tool tool, and the power supply module is also connected to a dynamic voltage-stabilized power supply, and the dynamic voltage-stabilized power supply is connected to the control device, and the machine tool power-off protection device comprises: A voltage drop monitoring module, used for monitoring the signal detection result of the dynamic voltage stabilizing power supply to obtain a corresponding target monitoring result, wherein the dynamic voltage stabilizing power supply is used to provide a corresponding compensation voltage to the power supply module when detecting that the power supply voltage of the external power supply to the power supply module drops, and generate a corresponding first signal detection result to output to the control device, and the target monitoring result is used to reflect whether the first signal detection result is detected; A power-off protection operation execution module is used to execute a pre-configured target machine tool power-off protection operation when the target detection result reflects the detection of the first signal detection result, wherein the target machine tool power-off protection operation is at least used to control the machine tool tool to perform a braking operation and / or a tool lifting operation.
8. The machine tool power-off protection device according to claim 7, characterized in that: The power-off protection operation execution module is specifically used for: When the target detection result reflects that the first signal detection result is detected, determining, by the programmable logic controller included in the control device, whether a drop in the power supply voltage of the external power supply will affect the machining work of the machine tool tool; When the programmable logic controller determines that the drop of the power supply voltage of the external power supply will affect the processing work of the machine tool tool, a target interrupt signal is sent to the numerical control system included in the control device through the programmable logic controller; The numerical control system responds to the target interrupt signal to execute a preconfigured target machine tool power-off protection operation.
9. A control device, characterized in that: Applied to a CNC machine tool, the CNC machine tool further comprises a power supply module and a machine tool tool, the power supply module is used to power the control device based on a connected external power supply, the control device is used to control the operation of the machine tool tool and execute the machine tool power-off protection method according to any one of claims 1 to 6; In which, the power supply module is also connected to a dynamic voltage-stabilized power supply, which is connected to the control device and is used to provide a corresponding compensation voltage to the power supply module when it is detected that the supply voltage of the external power supply to the power supply module drops, and generate a corresponding first signal detection result to output to the control device.
10. A numerically controlled machine tool, characterized in that: It comprises a power supply module, a machine tool cutter and a control device, wherein the power supply module is used to supply power to the control device based on a connected external power supply, and the control device is used to control the operation of the machine tool cutter and execute the machine tool power-off protection method according to any one of claims 1 to 6; In which, the power supply module is also connected to a dynamic voltage-stabilized power supply, which is connected to the control device and is used to provide a corresponding compensation voltage to the power supply module when it is detected that the supply voltage of the external power supply to the power supply module drops, and generate a corresponding first signal detection result to output to the control device.
Citation Information
Patent Citations
Power failure automatic knife retracting control method and device of numerical control machine tool
CN102608949A
Power-off protection method of spindle hydrostatic guideway
CN106903542A
Protecting method and system for achieving high-value part machining of large numerical control equipment
CN107350871A
Power-off protection method for CNC machine tool and power-off protection system applying power-off protection method
CN110209115A
Vehicle power supply system and overvoltage protection method
CN112956106A
