Machine tool control method and device, computer program product, device and storage medium
By monitoring the communication packet loss information between the machine tool control device and the drive device, and performing different control operations based on the number of packet loss and the communication status, the reliability and efficiency of the machine tool when communicating packet loss is solved, and higher operating reliability and production efficiency are achieved.
Patent Information
- Application Number
- CN202411884272.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2044-12-19
AI Technical Summary
When a machine tool loses communication packets, the control solution is difficult to improve the operating reliability and production efficiency of the machine tool.
By obtaining the communication packet loss information between the machine tool control device and the machine tool drive device, a packet loss redundancy threshold is set. When the number of packet loss does not reach the threshold, the machine tool is controlled to operate at a constant speed; when the communication returns to normal, it returns to normal speed and acceleration operation; when the number of packet loss reaches the threshold, the machine tool is stopped.
Improve the operating reliability of the machine tool, avoid unnecessary downtime, and improve production efficiency.
Smart Images

Figure CN119335955B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of machine tool control, and in particular to a machine tool control method and apparatus, a computer program product, a device, and a storage medium. Background Art
[0002] A digitally controlled machine tool, or CNC machine tool for short, is an automated machine tool equipped with a program control system. The machine tool control device can output control instructions, thereby controlling the machine tool drive device to drive the machine tool's tool to operate at a preset motion trajectory and speed, thereby automatically processing the workpiece.
[0003] When a machine tool processes a workpiece, communication packet loss may occur between the machine tool control device and the machine tool drive device. Therefore, how to improve the control scheme of the machine tool when communication packet loss occurs to improve the operation reliability and production efficiency of the machine tool has become an urgent problem to be solved. Summary of the invention
[0004] The problem solved by the embodiments of the present invention is to provide a machine tool control method and apparatus, a computer program product, a device and a storage medium, which can improve the operation reliability and production efficiency of the machine tool.
[0005] To solve the above problems, an embodiment of the present invention provides a machine tool control method, comprising:
[0006] During the operation of the machine tool, the communication packet loss information between the machine tool control device and the machine tool drive device is obtained;
[0007] When the number of communication packet losses between the machine tool control device and the machine tool drive device does not reach a preset packet loss redundancy threshold, controlling the machine tool to run at a corresponding constant speed;
[0008] When the number of communication packet losses between the machine tool control device and the machine tool drive device does not reach the packet loss redundancy threshold and the communication between the machine tool control device and the machine tool drive device is restored to a normal state, controlling the machine tool to run at a corresponding speed and acceleration;
[0009] When the number of communication packet losses between the machine tool control device and the machine tool drive device reaches the packet loss redundancy threshold, the machine tool is controlled to stop running.
[0010] Optionally, when the first communication packet loss occurs between the machine tool control device and the machine tool drive device, the machine tool control method further comprises: acquiring the running speed of the machine tool as a reference running speed;
[0011] The controlling the machine tool to run at the corresponding constant speed includes: controlling the machine tool to run at the reference running speed.
[0012] Optionally, when the number of communication packet losses between the machine tool control device and the machine tool drive device does not reach the packet loss redundancy threshold and the communication between the machine tool control device and the machine tool drive device is restored to a normal state, controlling the machine tool to run at a corresponding speed and acceleration includes:
[0013] When the number of communication packet losses between the machine tool control device and the machine tool drive device does not reach the packet loss redundancy threshold and the communication between the machine tool control device and the machine tool drive device is restored to a normal state, obtaining a current operating speed and a current operating acceleration of the machine tool;
[0014] If the current running acceleration of the machine tool is less than or equal to the preset limit acceleration, controlling the machine tool to continue running at the current running speed and the current running acceleration;
[0015] If the current operating acceleration of the machine tool is greater than the limit acceleration, the machine tool is controlled to operate at a preset maximum acceleration and a corresponding operating speed.
[0016] Optionally, when the number of communication packet losses between the machine tool control device and the machine tool drive device reaches the packet loss redundancy threshold, the machine tool control method further includes: outputting a first alarm prompt signal.
[0017] Optionally, the machine tool control method further includes: acquiring the running acceleration and following error of the machine tool according to a preset time period; if the running acceleration and following error of the machine tool are respectively greater than or equal to corresponding thresholds, controlling the machine tool to stop running.
[0018] Optionally, when the running acceleration and following error of the machine tool are respectively greater than or equal to corresponding thresholds, the machine tool control method further includes: outputting a second alarm prompt signal.
[0019] Accordingly, an embodiment of the present invention further provides a machine tool control device, comprising:
[0020] A packet loss information acquisition unit, used to acquire communication packet loss information between a machine tool control device and a machine tool drive device during the operation of the machine tool;
[0021] A machine tool control unit, used for controlling the machine tool to run at a corresponding constant speed when the number of communication packet losses between the machine tool control device and the machine tool drive device does not reach a preset packet loss redundancy threshold; controlling the machine tool to run at a corresponding speed and acceleration when the number of communication packet losses between the machine tool control device and the machine tool drive device does not reach the packet loss redundancy threshold and the communication between the machine tool control device and the machine tool drive device is restored to a normal state; and controlling the machine tool to stop running when the number of communication packet losses between the machine tool control device and the machine tool drive device reaches the packet loss redundancy threshold.
[0022] Correspondingly, an embodiment of the present invention further provides a computer program product, including a computer program / instruction, wherein the computer program / instruction is used to implement any of the above-mentioned machine tool control methods when executed by a processor.
[0023] Correspondingly, an embodiment of the present invention also provides a device, comprising at least one memory and at least one processor, wherein the memory stores one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the machine tool control method as described in any one of the above items.
[0024] Correspondingly, an embodiment of the present invention further provides a storage medium, wherein the storage medium stores one or more computer instructions, and the one or more computer instructions are used to implement any of the above-mentioned machine tool control methods.
[0025] Compared with the prior art, the technical solution of the embodiment of the present invention has the following advantages:
[0026] A machine tool control method provided by an embodiment of the present invention includes: during the operation of the machine tool, obtaining communication packet loss information between a machine tool control device and a machine tool drive device; when the number of communication packet losses between the machine tool control device and the machine tool drive device does not reach the packet loss redundancy threshold, controlling the machine tool to run at a corresponding constant speed; when the number of communication packet losses between the machine tool control device and the machine tool drive device does not reach the packet loss redundancy threshold and the communication between the machine tool control device and the machine tool drive device returns to a normal state, controlling the machine tool to run at a corresponding speed and acceleration; when the number of communication packet losses between the machine tool control device and the machine tool drive device reaches the packet loss redundancy threshold, controlling the machine tool to stop running.
[0027] In the machine tool control method provided in an embodiment of the present invention, different control operations are performed on the machine tool according to the number of communication packet losses between the machine tool control device and the machine tool drive device, and the communication status between the machine tool control device and the machine tool drive device. Compared with a solution in which the machine tool is controlled to stop running once communication packet loss between the machine tool control device and the machine tool drive device is detected, the reliability of the machine tool operation can be improved, and unnecessary shutdown of the machine tool can be avoided, which correspondingly helps to improve the production efficiency of the machine tool. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 It is a flow chart of an embodiment of a machine tool control method provided by the technical solution of the present invention;
[0029] Figure 2 It is a structural schematic diagram of an embodiment of a machine tool control device provided by the technical solution of the present invention;
[0030] Figure 3 It is a schematic diagram of an optional hardware structure of the device provided by the technical solution of the present invention. DETAILED DESCRIPTION
[0031] As can be seen from the background technology, how to improve the control scheme of a machine tool when communication packet loss occurs to improve the operation reliability and production efficiency of the machine tool has become a problem to be solved urgently.
[0032] In order to solve the technical problem, an embodiment of the present invention provides a machine tool control method, including: during the operation of the machine tool, obtaining communication packet loss information between the machine tool control device and the machine tool drive device; when the number of communication packet losses between the machine tool control device and the machine tool drive device does not reach the packet loss redundancy threshold, controlling the machine tool to run at a corresponding constant speed; when the number of communication packet losses between the machine tool control device and the machine tool drive device does not reach the packet loss redundancy threshold and the communication between the machine tool control device and the machine tool drive device returns to a normal state, controlling the machine tool to run at a corresponding speed and acceleration; when the number of communication packet losses between the machine tool control device and the machine tool drive device reaches the packet loss redundancy threshold, controlling the machine tool to stop running.
[0033] In the machine tool control method provided in an embodiment of the present invention, different control operations are performed on the machine tool according to the number of communication packet losses between the machine tool control device and the machine tool drive device, and the communication status between the machine tool control device and the machine tool drive device. Compared with a solution in which the machine tool is controlled to stop running once communication packet loss between the machine tool control device and the machine tool drive device is detected, the reliability of the machine tool operation can be improved, and unnecessary shutdown of the machine tool can be avoided, which correspondingly helps to improve the production efficiency of the machine tool.
[0034] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0035] Figure 1 The flowchart of an embodiment of a machine tool control method provided by the technical solution of the present invention is shown. Figure 1 , a machine tool control method may specifically include the following steps:
[0036] Step S110: during the operation of the machine tool, obtaining communication packet loss information between the machine tool control device and the machine tool drive device;
[0037] Step S120: determining whether the number of communication packet losses between the machine tool control device and the machine tool drive device reaches a preset packet loss redundancy threshold;
[0038] Step S130: determining whether the communication between the machine tool control device and the machine tool drive device has been restored to a normal state;
[0039] Step S140: When the number of communication packet losses between the machine tool control device and the machine tool drive device does not reach the packet loss redundancy threshold and the machine tool control device and the machine tool drive device are still in a communication abnormality state, controlling the machine tool to run at a corresponding constant speed;
[0040] Step S150: When the number of communication packet losses between the machine tool control device and the machine tool drive device does not reach the packet loss redundancy threshold and the communication between the machine tool control device and the machine tool drive device is restored to a normal state, controlling the machine tool to run at a corresponding speed and acceleration;
[0041] Step S160: When the number of communication packet losses between the machine tool control device and the machine tool drive device reaches the packet loss redundancy threshold, the machine tool is controlled to stop running.
[0042] Please continue to refer to Figure 1 , execute step S110, and obtain communication packet loss information between the machine tool control device and the machine tool drive device during the operation of the machine tool.
[0043] During the operation of the machine tool, communication packet loss information between the machine tool control device and the machine tool drive device is obtained to provide a basis for subsequent judgment on whether the number of communication packet losses between the machine tool control device and the machine tool drive device reaches a preset packet loss redundancy threshold.
[0044] In an exemplary embodiment, obtaining the communication packet loss information between the machine tool control device and the machine tool drive device refers to obtaining information on the number of communication packet losses between the machine tool control device and the machine tool drive device. The machine tool control device is used to generate corresponding machine tool control instructions according to a predetermined control strategy, and the machine tool drive device is used to drive the machine tool to operate according to the received machine tool control instructions.
[0045] In an exemplary embodiment, the machine tool control device and the machine tool drive device are connected to each other through a communication bus, and when a communication packet loss event occurs between the machine tool control device and the machine tool drive device, the pin of the communication bus will be placed in a corresponding communication error state. Accordingly, during the operation of the machine tool, by monitoring the pin status of the communication bus between the machine tool control device and the machine tool drive device (such as ecat.bus_status), the number of communication packet losses between the machine tool control device and the machine tool drive device is obtained.
[0046] In an exemplary embodiment, during the operation of the machine tool, a preset communication packet loss counter is used to count the number of communication packet losses between the machine tool control device and the machine tool drive device.
[0047] Specifically, from the start of the machine tool operation, the pin status of the communication bus between the machine tool control device and the machine tool drive device is obtained in real time or according to a preset period; when it is determined that a communication error occurs between the machine tool control device and the machine tool drive device according to the obtained pin status of the communication bus between the machine tool control device and the machine tool drive device, the corresponding communication packet loss counter is increased by a preset value. For example, the preset value is 1.
[0048] It should be noted that the pin status of the communication bus between the machine tool control device and the machine tool drive device is a communication error, which will correspondingly cause communication packet loss between the machine tool control device and the machine tool drive device. Therefore, according to the acquired status of the communication bus between the machine tool control device and the machine tool drive device, each time a communication error occurs, the corresponding communication packet loss counter is increased by a preset value.
[0049] In an exemplary embodiment, the communication errors between the machine tool control device and the machine tool drive device include master station link abnormality, slave station loss, not all slave stations are in the operational (OP) state, slave station working counter (WKC) error, network packet loss, digital-to-analog converter (DAC) board field programmable gate array (FPGA) abnormality and unknown error, etc. Among them, the pin status of the communication bus between the machine tool control device and the machine tool drive device is identified by the corresponding instruction code, please refer to Table 1 for details.
[0050] Table 1
[0051]
[0052] It can be seen from Table 1 that when the machine tool control device and the machine tool drive device are in a normal communication state, the instruction code corresponding to the pin state of the communication bus between the machine tool control device and the machine tool drive device is 0X0000. Accordingly, when it is detected that the instruction code corresponding to the pin state of the communication bus between the machine tool control device and the machine tool drive device is other than 0X0000, it can be determined that a communication error occurs between the machine tool control device and the machine tool drive device.
[0053] Please continue to refer to Figure 1 , execute step S120 to determine whether the number of communication packet losses between the machine tool control device and the machine tool drive device reaches a preset packet loss redundancy threshold.
[0054] When the number of communication packet losses between the machine tool control device and the machine tool drive device does not reach a preset packet loss redundancy threshold, step S130 can be executed; when the number of communication packet losses between the machine tool control device and the machine tool drive device reaches the packet loss redundancy threshold, step S160 can be executed.
[0055] In an exemplary embodiment, based on the pin status of the communication bus between the machine tool control device and the machine tool drive device, each time a communication error occurs between the machine tool control device and the machine tool drive device, the corresponding communication packet loss counter is increased by a preset value, and then the current count value of the communication packet loss counter is compared with the packet loss redundancy threshold to determine whether the number of communication packet losses between the machine tool control device and the machine tool drive device reaches the packet loss redundancy threshold.
[0056] The packet loss redundancy threshold can be set according to actual needs. Specifically, those skilled in the art can set the packet loss redundancy threshold to a corresponding value for different CNC machine tool systems based on test results or prior experience.
[0057] It is understandable that the packet loss redundancy threshold should not be too large or too small. If the packet loss redundancy threshold is too small, the influence of random noise interference on machine tool control cannot be eliminated, and the corresponding reliability of machine tool operation and the improvement of production efficiency are of no benefit or little benefit; if the packet loss redundancy threshold is too large, it may lead to the inability to timely identify the irrecoverable communication anomaly between the machine tool control device and the machine tool drive device, which may endanger the safety of machine tool operation. For this reason, in an exemplary embodiment, the packet loss redundancy threshold is 2 to 10.
[0058] Please continue to refer to Figure 1 , execute step S130 to determine whether the communication between the machine tool control device and the machine tool drive device has returned to a normal state.
[0059] When the communication between the machine tool control device and the machine tool drive device is restored to a normal state, step S150 may be executed; when the communication between the machine tool control device and the machine tool drive device is still in an abnormal state, step S140 may be executed.
[0060] In an exemplary embodiment, during the operation of the machine tool, by monitoring the pin status of the communication bus between the machine tool control device and the machine tool drive device, it is determined whether the communication between the machine tool control device and the machine tool drive device has been restored to a normal state.
[0061] Specifically, according to the instruction code corresponding to the pin state of the communication bus between the machine tool control device and the machine tool drive device, it is obtained whether the communication between the machine tool control device and the machine tool drive device has been restored to a normal state.
[0062] Please continue to refer to Figure 1 , execute step S140, when the communication between the machine tool control device and the machine tool drive device is still in an abnormal state, control the machine tool to run at a corresponding constant speed.
[0063] When the number of communication packet losses between the machine tool control device and the machine tool drive device does not reach the packet loss redundancy threshold and the machine tool control device and the machine tool drive device are still in a communication abnormality state, it can be determined that the communication packet loss between the machine tool control device and the machine tool drive device is caused by random noise and is a recoverable communication abnormality.
[0064] Accordingly, when the number of communication packet losses between the machine tool control device and the machine tool drive device does not reach the packet loss redundancy threshold and the machine tool control device and the machine tool drive device are still in an abnormal communication state, the machine tool is controlled to run at a corresponding constant speed, so that the operation of the machine tool can counteract the influence of random noise, which helps to improve the operation reliability of the machine tool and can also avoid unnecessary shutdown of the machine tool due to random noise, which is beneficial to improve the production efficiency of the machine tool.
[0065] In an exemplary embodiment, when the first communication packet loss occurs between the machine tool control device and the machine tool drive device, the machine tool control method further includes: obtaining the running speed of the machine tool as a reference running speed. Accordingly, the step of controlling the machine tool to run at a corresponding constant speed includes: controlling the machine tool to run at the reference running speed.
[0066] When the first communication packet loss occurs between the machine tool control device and the machine tool drive device, the operating speed of the machine tool has not been affected by the communication packet loss, and it can be considered that the operating speed of the machine tool is in a normal state at this time.
[0067] Accordingly, when the number of communication packet losses between the machine tool control device and the machine tool drive device does not reach the packet loss redundancy threshold, controlling the machine tool to run at the reference operating speed can avoid exceeding the operating speed and operating acceleration of the machine tool, thereby avoiding machine tool shutdown and safety alarm triggering due to large following errors of the machine tool, which is beneficial to improving the safety and reliability of machine tool operation.
[0068] In an exemplary embodiment, the step of controlling the machine tool to run at a corresponding constant speed includes: controlling a machine tool axis to run at a corresponding constant speed. The machine tool axis is a mechanical axis in the machine tool, such as a spindle, a feed axis, etc., used to drive a processing device (such as a tool, etc.) to move when processing a workpiece.
[0069] Please continue to refer to Figure 1 , execute step S150, when the number of communication packet losses between the machine tool control device and the machine tool drive device does not reach the packet loss redundancy threshold and the communication between the machine tool control device and the machine tool drive device returns to a normal state, control the machine tool to run at a corresponding speed and acceleration.
[0070] When the number of communication packet losses between the machine tool control device and the machine tool drive device does not reach the packet loss redundancy threshold, it can be determined that the communication packet loss between the machine tool control device and the machine tool drive device is caused by random noise and is a recoverable communication anomaly. Therefore, the communication between the machine tool control device and the machine tool drive device can be restored from an abnormal state to a normal state.
[0071] Correspondingly, when the number of communication packet losses between the machine tool control device and the machine tool drive device does not reach the packet loss redundancy threshold and the communication between the machine tool control device and the machine tool drive device is restored to a normal state, the machine tool is controlled to run at a corresponding speed and acceleration, including: when the number of communication packet losses between the machine tool control device and the machine tool drive device does not reach the packet loss redundancy threshold and the communication between the machine tool control device and the machine tool drive device is restored to a normal state, the current running speed and current running acceleration of the machine tool are obtained; if the current running acceleration of the machine tool is less than or equal to a preset limit acceleration, the machine tool is controlled to continue running at the current running speed and current running acceleration; if the current running acceleration of the machine tool is greater than the limit acceleration, the machine tool is controlled to run at a preset maximum acceleration and corresponding running speed.
[0072] In an exemplary embodiment, the step of acquiring the current running speed and the current running acceleration of the machine tool includes: acquiring the current running speed and the current running acceleration of the axis of the machine tool.
[0073] As an example, the steps of obtaining the running speed and running acceleration of a machine tool axis include: obtaining the difference between the current position and the initial position of the machine tool axis and the information of the running time of the machine tool axis; based on the difference between the current position and the initial position of the machine tool axis and the information of the running time of the machine tool axis, obtaining the current running speed and the current running acceleration of the machine tool axis.
[0074] In an exemplary embodiment, the machine tool axis performs uniform acceleration motion with an initial speed of zero during operation. Accordingly, based on the difference between the current position and the initial position of the machine tool axis and the information of the operation time of the machine tool axis, the step of obtaining the information of the current operation speed and the current operation acceleration of the machine tool axis includes: dividing the difference between the current position and the initial position of the machine tool axis by the operation time of the machine tool axis to obtain the current operation speed of the machine tool axis; dividing the current operation speed of the machine tool axis by the operation time of the machine tool axis to obtain the current operation acceleration of the machine tool axis.
[0075] In other embodiments, the machine tool axis can also perform other types of motions in addition to the uniform acceleration motion with an initial speed of zero during operation, such as first performing uniform acceleration motion and then performing uniform deceleration motion, etc. Accordingly, the information of the running speed and running acceleration of the machine tool axis can be obtained in a corresponding manner according to the different types of motions performed by the machine tool axis during operation, and no limitation is made here.
[0076] In an exemplary embodiment, when the communication between the machine tool control device and the machine tool drive device returns to a normal state, the machine tool control method further includes: clearing the number of communication packet losses between the machine tool control device and the machine tool drive device to zero.
[0077] When the communication between the machine tool control device and the machine tool drive device returns to normal, the number of communication packet losses between the machine tool control device and the machine tool drive device is cleared to zero to avoid the continued accumulation of the number of communication packet losses between the machine tool control device and the machine tool drive device, which may lead to the shutdown of the machine tool and the triggering of a safety alarm.
[0078] Determine whether the first acceleration reaches a preset limit acceleration, that is, when the communication packet loss between the machine tool control device and the machine tool drive device does not reach the packet loss redundancy threshold and the communication between the machine tool control device and the machine tool drive device returns to normal, compare the running acceleration of the machine tool axis with the preset limit acceleration to determine the numerical relationship between the two.
[0079] In an exemplary embodiment, the step of determining whether the current operating acceleration of the machine tool reaches a preset limit acceleration includes: determining whether the current operating acceleration of the machine tool axis reaches a preset limit acceleration.
[0080] The limit acceleration refers to the upper limit value of the acceleration that the machine tool axis can theoretically reach during the machining process. The limit acceleration can be set by those skilled in the art according to actual needs. As an example, the limit acceleration is 0 to 100 wm / s².
[0081] When the communication between the machine tool control device and the machine tool drive device is restored to a normal state, when the current operating acceleration of the machine tool is less than or equal to the preset limit acceleration, it indicates that the current operating acceleration of the machine tool is in a normal state, thereby indicating that the machine tool is in a normal operating state.
[0082] Accordingly, controlling the machine tool to continue running at the operating speed and acceleration when the communication between the machine tool control device and the machine tool drive device is restored to a normal state will not cause a sudden change or over-limit in the machine tool's operating acceleration, and can ensure the smoothness of the machine tool's operating acceleration and the safety of the machine tool's operation.
[0083] If the current running acceleration of the machine tool is greater than the limit acceleration, the machine tool is controlled to run at a preset maximum acceleration and a corresponding running speed. The maximum acceleration is the upper limit of the running acceleration of the machine tool axis allowed during the actual running process. As an example, the maximum acceleration is 0 to 100 wm / s².
[0084] In an exemplary embodiment, the maximum acceleration is less than the limit acceleration. In other embodiments, the maximum acceleration can also be equal to the limit acceleration.
[0085] In an exemplary embodiment, the step of obtaining the operating speed corresponding to the maximum acceleration of the machine tool axis includes: obtaining information on the operating speed corresponding to the maximum acceleration based on information on the maximum acceleration of the machine tool axis and the operating time of the machine tool.
[0086] As an example, based on the information of the maximum acceleration and the operating time of the machine tool, the step of obtaining the information of the operating speed corresponding to the maximum acceleration includes: calculating the product of the maximum acceleration and the operating time of the machine tool as the operating speed corresponding to the maximum acceleration.
[0087] If the current operating acceleration of the machine tool is greater than the limit acceleration, the machine tool is controlled to operate at a preset maximum acceleration and a corresponding operating speed. When the communication between the machine tool control device and the machine tool drive device is restored to a normal state, a smooth transition of the machine tool operating speed and acceleration can be achieved, and overload of the machine tool drive device caused by excessive machine tool operating acceleration can be avoided, which is correspondingly beneficial to improving the safety of the machine tool operation.
[0088] Please continue to refer to Figure 1 , execute step S160, when the number of communication packet losses between the machine tool control device and the machine tool drive device reaches the packet loss redundancy threshold, control the machine tool to stop running.
[0089] The number of communication packet losses between the machine tool control device and the machine tool drive device reaches the packet loss redundancy threshold, which correspondingly indicates that an unrecoverable communication abnormality has occurred between the machine tool control device and the machine tool drive device.
[0090] Accordingly, when the number of communication packet losses between the machine tool control device and the machine tool drive device reaches the packet loss redundancy threshold, the machine tool is controlled to stop running, which can avoid the machine tool running in an uncontrolled state, thereby helping to improve the safety of the machine tool operation.
[0091] In an exemplary embodiment, when the number of communication packet losses between the machine tool control device and the machine tool drive device reaches the packet loss redundancy threshold, the machine tool control method further includes: outputting a first alarm prompt signal.
[0092] When the number of communication packet losses between the machine tool control device and the machine tool drive device reaches the packet loss redundancy threshold, a first alarm prompt signal is output, so that relevant personnel can promptly obtain information about irrecoverable communication anomalies between the machine tool control device and the machine tool drive device, so that corresponding measures can be taken to eliminate the abnormal communication state between the machine tool control device and the machine tool drive device.
[0093] The form of the first alarm prompt signal can be set according to actual needs. As an example, the first alarm prompt signal is an alarm sound. It is understandable that, in addition to the alarm sound, the first alarm prompt signal can also be an alarm image displayed on the interactive interface or an alarm prompt signal directly transmitted to the user terminal, etc., as long as it can serve as an alarm signal, the present invention is not limited here.
[0094] In an exemplary embodiment, the machine tool control method further includes: acquiring the operating acceleration and following error of the machine tool according to a preset time period; if the operating acceleration and following error of the machine tool are respectively greater than or equal to corresponding thresholds, controlling the machine tool to stop running.
[0095] The time period can be set by those skilled in the art according to actual needs. As an example, the time period is the interpolation period of the machine tool. In other embodiments, the time period can also be other types of periods.
[0096] Regarding the operating acceleration of the machine tool in each time period, please refer to the corresponding contents in the above-mentioned parts and will not go into details here.
[0097] In an exemplary embodiment, the step of acquiring the running acceleration and following error of the machine tool according to a preset time period includes: acquiring the running acceleration and following error of the machine tool according to a preset time period. Correspondingly, if the running acceleration and following error of the machine tool are respectively greater than or equal to corresponding thresholds, the step of controlling the machine tool to stop running includes: if the running acceleration and following error of the machine tool axis are respectively greater than or equal to corresponding thresholds, controlling the machine tool axis to stop running.
[0098] Regarding the running acceleration of the machine tool axis in each time period, please refer to the corresponding contents in the above-mentioned parts and will not go into details here.
[0099] The following error of the machine tool axis is the difference between the current position and the initial position of the machine tool axis. The following error of the machine tool axis will affect the machining accuracy and quality of the workpiece. By monitoring the following error of the machine tool axis, it is helpful to ensure the machining accuracy and quality of the workpiece.
[0100] In an exemplary embodiment, the machine tool control method further includes: when the operating acceleration and following error of the machine tool are respectively greater than or equal to corresponding thresholds, outputting a second alarm prompt signal.
[0101] In an exemplary embodiment, when the running acceleration and following error of the machine tool are respectively greater than or equal to the corresponding thresholds, the step of outputting a second alarm prompt signal includes: if the running acceleration and following error of the machine tool axis are respectively greater than or equal to the corresponding thresholds, outputting a second alarm prompt signal.
[0102] If the running acceleration and following error of the machine tool axis are respectively greater than or equal to the corresponding threshold values, a second alarm prompt signal is output, so that relevant personnel can promptly know that the running acceleration and following error of the machine tool axis are greater than or equal to the corresponding threshold values, so that timely measures can be taken to ensure the operating safety of the machine tool.
[0103] Regarding the content of the second alarm prompt signal, please refer to the aforementioned part regarding the content of the first alarm prompt signal and will not be repeated here.
[0104] Correspondingly, an embodiment of the present invention further provides a machine tool control device.
[0105] Figure 2 The structure diagram of an embodiment of a machine tool control device provided by the technical solution of the present invention is shown. Figure 2 A machine tool control device 20 may include: a packet loss information acquisition unit 201, used to acquire communication packet loss information between the machine tool control device and the machine tool drive device during the operation of the machine tool; a machine tool control unit 202, used to control the machine tool to run at a corresponding constant speed when the number of communication packet losses between the machine tool control device and the machine tool drive device does not reach a preset packet loss redundancy threshold; control the machine tool to run at a corresponding speed and acceleration when the number of communication packet losses between the machine tool control device and the machine tool drive device does not reach the packet loss redundancy threshold and the communication between the machine tool control device and the machine tool drive device returns to a normal state; control the machine tool to stop running when the number of communication packet losses between the machine tool control device and the machine tool drive device reaches the packet loss redundancy threshold.
[0106] In an exemplary embodiment, the machine tool control device 20 further includes: a reference running speed acquisition unit 203, which is used to acquire the running speed of the machine tool as the reference running speed when the first communication packet loss occurs between the machine tool control device and the machine tool drive device. Accordingly, the machine tool control unit 202 is used to control the machine tool to run at the reference running speed.
[0107] In an exemplary embodiment, the machine tool control unit 202 is also used to obtain information on the current operating speed and current operating acceleration of the machine tool when the number of communication packet losses between the machine tool control device and the machine tool drive device does not reach the packet loss redundancy threshold and the communication between the machine tool control device and the machine tool drive device is restored to a normal state; if the current operating acceleration of the machine tool is less than or equal to a preset limit acceleration, control the machine tool to continue running at the current operating speed and current operating acceleration; if the current operating acceleration of the machine tool is greater than the limit acceleration, control the machine tool to run at a preset maximum acceleration and corresponding operating speed.
[0108] In an exemplary embodiment, the machine tool control device 20 further includes: a first alarm prompt unit 204, which is used to output a first alarm prompt signal when the number of communication packet losses between the machine tool control device and the machine tool drive device reaches the packet loss redundancy threshold.
[0109] In an exemplary embodiment, the machine tool control unit 202 is also used to obtain the running acceleration and following error of the machine tool according to a preset time period; if the running acceleration and following error of the machine tool are respectively greater than or equal to the corresponding thresholds, the machine tool is controlled to stop running.
[0110] In an exemplary embodiment, the machine tool control device 20 further includes: a second alarm prompting unit 205, which is used to output a second alarm prompting signal when the running acceleration and the following error of the machine tool are respectively greater than or equal to corresponding thresholds.
[0111] The machine tool control device in the embodiment of the present invention can be used to execute the aforementioned machine tool control method, or other functional modules can be used to execute the machine tool control method provided by the embodiment of the present invention. For the machine tool control method provided by the embodiment of the present invention, please refer to the detailed description of the aforementioned part, which will not be repeated here.
[0112] Correspondingly, an embodiment of the present invention further provides a device, which can implement the machine tool control method provided by the embodiment of the present invention by loading the above-mentioned machine tool control method in the form of a program.
[0113] refer to Figure 3 , shows an optional hardware structure diagram of a device provided by an embodiment of the present invention. The device in the embodiment of the present invention includes: at least one processor 01, at least one communication interface 02, at least one memory 03 and at least one communication bus 04.
[0114] In an exemplary embodiment, the number of the processor 01 , the communication interface 02 , the memory 03 and the communication bus 04 is at least one, and the processor 01 , the communication interface 02 and the memory 03 communicate with each other via the communication bus 04 .
[0115] The communication interface 02 may be an interface of a communication module for network communication, such as an interface of a GSM module.
[0116] The processor 01 may be a central processing unit CPU, or an application specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the machine tool control method of this embodiment.
[0117] The memory 03 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory. The memory 03 stores one or more computer instructions, and the one or more computer instructions are executed by the processor 01 to implement the machine tool control method provided in the above embodiment.
[0118] It should be noted that the above-mentioned electronic device may also include other devices (not shown) that may not be necessary for understanding the contents disclosed in the embodiments of the present invention. Since these other devices may not be necessary for understanding the contents disclosed in the embodiments of the present invention, the embodiments of the present invention will not introduce them one by one.
[0119] Accordingly, an embodiment of the present invention further provides a computer program product, including a computer program / instruction, which is used to implement the machine tool control method described in the embodiment of the present invention when the computer program / instruction is executed by a processor. The machine tool control method described in the embodiment of the present invention is described in the above section and will not be described again here.
[0120] The embodiment of the present invention further provides a storage medium, wherein the storage medium stores one or more computer instructions, and the one or more computer instructions are used to implement the machine tool control method provided in the above embodiment. The machine tool control method described in the embodiment of the present invention is described in the above part and will not be described again here.
[0121] The above-mentioned embodiments of the present invention are combinations of elements and features of the present invention. Unless otherwise mentioned, elements or features may be considered as optional. Each element or feature may be put into practice without being combined with other elements or features. In addition, embodiments of the present invention may be constructed by combining some elements and / or features. The order of operations described in the embodiments of the present invention may be rearranged. Some configurations of any one embodiment may be included in another embodiment, and may be replaced by the corresponding configuration of another embodiment. It is obvious to those skilled in the art that claims that do not have a clear reference relationship to each other in the attached claims may be combined into embodiments of the present invention, or may be included as new claims in the amendment after submitting this application.
[0122] The embodiments of the present invention may be implemented by various means such as hardware, firmware, software or a combination thereof. In a hardware configuration, the method according to the exemplary embodiment of the present invention may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), processors, controllers, microcontrollers, microprocessors, etc.
[0123] In a firmware or software configuration, the embodiments of the present invention may be implemented in the form of modules, procedures, functions, etc. The software code may be stored in a memory unit and executed by a processor. The memory unit is located inside or outside the processor and may send data to and receive data from the processor via various known means.
[0124] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0125] Although the present invention is disclosed as above, the present invention is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the scope defined by the claims.
Claims
1. A machine tool control method, characterized in that: include: During the operation of the machine tool, the communication packet loss information between the machine tool control device and the machine tool drive device is obtained; When the number of communication packet loss between the machine tool control device and the machine tool drive device does not reach a preset packet loss redundancy threshold and the machine tool control device and the machine tool drive device are still in a communication abnormality state, controlling the machine tool to run at a corresponding constant speed; When the number of communication packet losses between the machine tool control device and the machine tool drive device does not reach the packet loss redundancy threshold and the communication between the machine tool control device and the machine tool drive device is restored to a normal state, controlling the machine tool to run at a corresponding speed and acceleration; When the number of communication packet losses between the machine tool control device and the machine tool drive device reaches the packet loss redundancy threshold, the machine tool is controlled to stop running.
2. The machine tool control method according to claim 1, characterized in that: When the first communication packet loss occurs between the machine tool control device and the machine tool drive device, the method further includes: obtaining the running speed of the machine tool as a reference running speed; The controlling the machine tool to run at the corresponding constant speed includes: controlling the machine tool to run at the reference running speed.
3. The machine tool control method according to claim 1, characterized in that: When the number of communication packet losses between the machine tool control device and the machine tool drive device does not reach the packet loss redundancy threshold and the communication between the machine tool control device and the machine tool drive device is restored to a normal state, controlling the machine tool to run at a corresponding speed and acceleration, including: When the number of communication packet losses between the machine tool control device and the machine tool drive device does not reach the packet loss redundancy threshold and the communication between the machine tool control device and the machine tool drive device is restored to a normal state, obtaining a current operating speed and a current operating acceleration of the machine tool; If the current running acceleration of the machine tool is less than or equal to the preset limit acceleration, controlling the machine tool to continue running at the current running speed and the current running acceleration; If the current operating acceleration of the machine tool is greater than the limit acceleration, the machine tool is controlled to operate at a preset maximum acceleration and a corresponding operating speed.
4. The machine tool control method according to claim 1, characterized in that: When the number of communication packet losses between the machine tool control device and the machine tool drive device reaches the packet loss redundancy threshold, the method further includes: outputting a first alarm prompt signal.
5. The machine tool control method according to claim 1, characterized in that: Also includes: The running acceleration and following error of the machine tool are obtained according to a preset time period; if the running acceleration and following error of the machine tool are respectively greater than or equal to corresponding thresholds, the machine tool is controlled to stop running.
6. The machine tool control method according to claim 5, characterized in that: If the running acceleration and the following error of the machine tool are respectively greater than or equal to the corresponding threshold values, the method further includes: outputting a second alarm prompt signal.
7. A machine tool control device, characterized in that: include: A packet loss information acquisition unit, used to acquire communication packet loss information between a machine tool control device and a machine tool drive device during the operation of the machine tool; A machine tool control unit, used for controlling the machine tool to run at a corresponding constant speed when the number of communication packet losses between the machine tool control device and the machine tool drive device does not reach a preset packet loss redundancy threshold; controlling the machine tool to run at a corresponding speed and acceleration when the number of communication packet losses between the machine tool control device and the machine tool drive device does not reach the packet loss redundancy threshold and the communication between the machine tool control device and the machine tool drive device is restored to a normal state; and controlling the machine tool to stop running when the number of communication packet losses between the machine tool control device and the machine tool drive device reaches the packet loss redundancy threshold.
8. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, they are used to implement the machine tool control method according to any one of claims 1 to 6.
9. A device, characterized in that: The machine tool control method comprises at least one memory and at least one processor, wherein the memory stores one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the machine tool control method according to any one of claims 1 to 6.
10. A storage medium, characterized in that: The storage medium stores one or more computer instructions, and the one or more computer instructions are used to implement the machine tool control method according to any one of claims 1-6.
Citation Information
Patent Citations
Communication control method, apparatus and device of wind generating set, and medium
CN108881413A
Motion controller and its control method
JP2006221558A