Method for skipping multiple execution of button instruction of numerical control system
By setting up a multi-step mode and a security check mechanism in the CNC system, multiple execution skipping of button instructions is achieved, solving the problem of inconvenient operation in traditional systems and improving operation efficiency and safety.
Patent Information
- Application Number
- CN202411873660.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-18
- Publication Date
- 2025-03-25
AI Technical Summary
Traditional CNC systems lack flexibility and convenience, and cannot effectively support multiple execution skipping of button instructions, making it difficult for users to quickly skip repeated instructions during complex processing, affecting efficiency.
By setting the multi-step mode, the user skips commands according to the specified number of times by continuously clicking the button, increasing the number of skipped commands and command content; conducting security checks before executing the skipped command to ensure the safety and feasibility of the operation; setting up a skip module, skipping the current non-motion command by clicking the skip module.
It realizes high flexibility and convenience in the operation of CNC system, and users can quickly skip repeated instructions to improve operation efficiency; ensures accurate control and safety of machine tool movement process, and reduces the risk of misoperation.
Smart Images

Figure CN119689974A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of numerical control system control, in particular to a method for skipping multiple executions of a button instruction of a numerical control system. Background Art
[0002] In current CNC system applications, users often need to use button commands to operate machine tools to perform specific tasks. However, in some cases, users may want to skip the execution of certain commands to improve work efficiency or deal with special situations. Traditional CNC systems often lack flexibility and convenience and cannot meet users' needs for skipping commands.
[0003] Especially in some complex CNC machining processes, users may need to frequently execute similar instruction sequences. If the system can support the skip function of multiple executions of button instructions, users can quickly skip these repeated instructions through simple operations, thus saving a lot of time. In addition, for some non-critical instructions, such as non-motion instructions, users may also want to skip them in specific cases to avoid unnecessary waiting or errors.
[0004] However, it is not easy to implement the skip function of multiple executions of button commands. First, the system needs to be able to accurately identify the user's skip intention and handle it accordingly according to the user's operation. Secondly, the execution of the skip command needs to ensure the safety and feasibility of the operation to avoid damage to the machine tool or injury to personnel due to misoperation or system errors. Finally, the system also needs to provide flexible configuration options to meet the needs of different users for the skip function. Summary of the invention
[0005] Based on the above-mentioned shortcomings of the prior art, the purpose of the present invention is to provide a method for skipping multiple executions of a button instruction in a numerical control system to solve the above-mentioned technical problems.
[0006] To achieve the above object, the present invention provides the following technical solution: a method for executing and skipping multiple times of a button instruction in a numerical control system, comprising:
[0007] Set the multi-step mode, by continuously clicking the button, the function will be skipped according to the specified number of clicks to execute the button command, where the number of skip commands and command content will be increased according to the number of clicks;
[0008] Before executing the skip instruction, a safety check is performed to ensure the safety and feasibility of the operation;
[0009] Set a skip module and skip the current non-motion instruction by clicking the skip module.
[0010] The present invention is further configured to distinguish single-click, double-click and triple-click operations by detecting the time interval between two adjacent clicks in the multi-step mode, thereby ensuring the recognition accuracy of the skip strategy.
[0011] The present invention is further configured such that before skipping the current non-motion instruction, a confirmation box pops up to ask for confirmation whether to execute the non-motion instruction skipping to prevent misoperation, and the user can choose to confirm or cancel the non-motion instruction skipping.
[0012] The present invention is further configured to set a single-step mode, in which a motion instruction is executed each time a button is clicked, and a preliminary check is performed before executing the motion instruction to ensure that the machine tool is in a safe state; after executing the instruction, a delay time is set, during which the button is invalid to prevent continuous misoperation.
[0013] The present invention is further configured to set a single-step mode and a multi-step mode switching button for receiving the user's single-step mode and multi-step mode switching instructions. When switching between the single-step mode and the multi-step mode, the button is clicked for the first time to perform safety confirmation, and the CNC system pauses and displays confirmation information; after confirmation, the button is clicked continuously again, and the machine tool executes the instructions according to the settings.
[0014] The present invention is further configured that the safety check includes:
[0015] Check the machine tool operating status and surrounding environment to ensure there is no risk of failure;
[0016] When there is a risk of failure, prevent the operation from being skipped and prompt the user to handle it.
[0017] The present invention is further configured to include a control module and a display module, wherein the control module executes skip, single-step or multi-step instruction operations according to user instructions and security check results, and the display module is used to display the current mode, status and confirmation information in real time.
[0018] The present invention is further configured to include a log module and a configuration module, which are used to record the user's operation log, including the number of skip times, mode switching records and abnormal information, for subsequent analysis and maintenance; the configuration module allows the skip parameters, delay time and security policies to be configured to meet personalized needs in different scenarios.
[0019] The present invention provides a method for executing and skipping a button instruction of a numerical control system multiple times. The method comprises setting a multi-step mode, continuously clicking a button, and skipping a function according to a specified number of clicks to execute a button instruction, wherein the number of skip commands and the command content are increased according to the number of clicks; before executing the skip instruction, a safety check is performed to ensure the safety and feasibility of the operation; and setting a skip module. By clicking the skip module, the current non-motion instruction is skipped, and the beneficial effects produced include:
[0020] 1. Improve operational flexibility and convenience: By setting the multi-step mode, users are allowed to skip instructions according to the specified number of times by continuously clicking the button, achieving high flexibility and convenience in operating the CNC system. Users can choose to skip the current instruction, a small section of the program, or the entire program according to actual needs, which significantly improves operational efficiency and reduces the time cost of repeated operations;
[0021] 2. Achieve precise single-step control: By setting the single-step mode, the user only executes one motion instruction each time the button is clicked. The system performs a pre-check before execution to ensure that the machine tool is in a safe state; a short delay time is set after execution to prevent continuous misoperation. This function enables users to accurately control the machine tool movement process, improving the accuracy and safety of processing;
[0022] 3. Convenient mode switching and operation confirmation: Set the switch button between single-step mode and multi-step mode, and the user can switch the operation mode at any time according to the processing requirements. After the mode is switched, the system will perform a safety confirmation when the button is clicked for the first time to ensure that the user is clear about the current operation status, further improving the safety of the operation and the controllability of the system.
[0023] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0025] Figure 1 The present invention is a flowchart of a method for skipping multiple executions of a button command of a numerical control system, showing an exemplary embodiment of the present invention. DETAILED DESCRIPTION
[0026] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.
[0027] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0028] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it is obvious to those skilled in the art that the embodiments of the present invention can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present invention difficult to understand.
[0029] A method for skipping multiple executions of a button command in a numerical control system, such as Figure 1 As shown, including:
[0030] Set the multi-step mode, by continuously clicking the button, the function will be skipped according to the specified number of clicks to execute the button command, where the number of skip commands and command content will be increased according to the number of clicks;
[0031] Before executing the skip instruction, a safety check is performed to ensure the safety and feasibility of the operation;
[0032] Set a skip module and skip the current non-motion instruction by clicking the skip module.
[0033] Specifically, a multi-step mode is set, in which the user specifies the number of skips by continuously clicking the button; the system increases the number of skip commands and the command content according to the number of user clicks, and the system executes the button command according to the specified number of clicks to skip the function. This greatly improves the flexibility and convenience of CNC system operation.
[0034] The present invention is further configured to distinguish single-click, double-click and triple-click operations by detecting the time interval between two adjacent clicks in a multi-step mode, thereby ensuring the recognition accuracy of the skip strategy. Specifically, the system captures the user's button click events in real time through a hardware interrupt or polling mechanism. After detecting a click, the system starts a timer to record the timestamp of the current click. The system waits for the next click event and measures the time interval between the two clicks. According to a preset time threshold, the system determines whether the second click is within the time threshold: if it is within the threshold and there is no third click, it is determined to be a double-click. If the third click is detected within the threshold and within a short time, it is determined to be a triple-click. If it exceeds the threshold, it is determined to be a single click. By accurately measuring the time interval between adjacent clicks and combining a finite state machine to manage the click state, the present invention can effectively distinguish single-click, double-click and triple-click operations, ensure the accurate execution of the skip strategy, and avoid erroneous skip instructions caused by misjudgment.
[0035] The present invention is further configured such that before skipping the current non-motion instruction, a confirmation box pops up to ask for confirmation whether to skip the non-motion instruction, to prevent misoperation, and to select to confirm or cancel the skipping of the non-motion instruction. Specifically, by introducing a confirmation mechanism before skipping the non-motion instruction, the system effectively prevents the user from skipping unnecessary instructions due to misclicks or operational errors. This design greatly reduces the risk of processing errors, equipment damage or personal injury caused by erroneous operations, and improves the overall safety and reliability of the system.
[0036] The present invention is further configured to set a single-step mode, and execute a motion instruction by clicking a button each time. Before executing the motion instruction, a pre-check is performed to ensure that the machine tool is in a safe state; after executing the instruction, a delay time is set, and the button is invalid during the delay time to prevent continuous misoperation. Specifically, by setting the single-step mode, the user can accurately execute a motion instruction by clicking a button each time, while ensuring the safety of the machine tool and the stability of operation. In the single-step mode, the system detects each button click of the user and identifies it as a trigger signal for executing a motion instruction. Before executing the motion instruction, the system automatically performs a pre-check to confirm that the machine tool is in a safe state and has no risk of failure, ensuring the feasibility of instruction execution. After executing the motion instruction, the system sets a short delay time, during which the button is invalid to prevent misoperation caused by continuous clicking by the user. The user only executes one motion instruction each time he clicks the button, ensuring high-precision control of the machine tool movement process, which is particularly suitable for complex processing tasks that require fine operation.
[0037] The present invention is further configured to set a single-step mode and a multi-step mode switching button for receiving the user's single-step mode and multi-step mode switching instructions. When the single-step mode and the multi-step mode are switched, the button is clicked for safety confirmation for the first time, and the numerical control system pauses and displays the confirmation information; after confirmation, the button is clicked continuously again, and the machine tool executes the instruction according to the setting. Specifically, a single-step mode and a multi-step mode switching button are integrated in the system interface, and the user sends a mode switching instruction by clicking the button. When the user clicks the switch button for the first time to change the operation mode, the system automatically triggers the safety confirmation mechanism. The system pauses the current operation, pops up a confirmation message to ensure that the user's operation intention is clear, and after the user selects "Confirm" in the confirmation box, the system receives the confirmation signal, switches to the target operation mode, and resumes operation. If the user selects "Cancel", the system maintains the current operation mode and continues to operate normally. By setting the multi-step mode and the single-step mode switching button, the user can flexibly skip the current instruction, a small segment of the program or the entire program through simple continuous clicking operations according to actual needs. This significantly improves the operational flexibility and convenience of the numerical control system and reduces the time cost of repeated operations of users in complex machining processes.
[0038] The present invention is further configured that the safety check includes:
[0039] Check the machine tool operating status and surrounding environment to ensure there is no risk of failure;
[0040] When there is a risk of failure, the skip operation is prevented and the user is prompted to handle it. Specifically, through sensors installed in key parts of the machine tool, temperature, vibration, pressure and other data are collected in real time. These data reflect the operating health of the machine tool and help the system determine whether the machine tool is in normal working condition. For example, too high a temperature may indicate that the machine tool is overloaded or the cooling system is faulty, and abnormal vibration may indicate wear or looseness of mechanical parts. In addition to the state of the machine tool itself, the conditions of the surrounding environment also affect the safe operation of the machine tool. Through environmental sensors, the system monitors the temperature, humidity and cleanliness of the working area to ensure that these conditions are within a safe range. For example, high humidity may cause the risk of short circuit of electrical components, and a dirty environment may cause problems such as poor heat dissipation. Through a comprehensive safety inspection mechanism, the system can confirm the safety status of the machine tool and the environment before executing the skip instruction, avoiding equipment damage or personal injury caused by the skip instruction, and significantly improving the safety of operation.
[0041] The present invention is further configured to further include a control module and a display module, wherein the control module executes skip, single-step or multi-step instruction operations according to user instructions and safety check results, and the display module is used to display the current mode, status and confirmation information in real time. Specifically, the configuration and function of the control module: User instruction reception and analysis: The control module receives instructions sent by the user through a button through a hardware interface or a software interface, and analyzes these instructions to determine the type of operation to be performed (skip, single-step or multi-step). Safety check integration: Before executing any instruction operation, the control module calls the safety check mechanism to ensure the safety and feasibility of the current operation. Instruction execution logic: According to the parsed user instructions and safety check results, the control module decides to execute skipping the current instruction, single-step execution of a motion instruction, or multi-step execution of multiple instruction skipping. Configuration and function of the display module: Real-time information display: The display module displays the current operation mode (single-step mode or multi-step mode), system status (such as safety check results), and user confirmation information in real time through a graphical user interface (GUI). User prompts and feedback: When the user switches modes or skips instructions, the display module pops up prompt information or status indicator lights to ensure that the user is aware of the system's operating status and operation results in a timely manner. Through the flexible configuration of control modules and display modules, the system can adapt to the diverse needs of different users and different processing tasks. Whether it is high-precision processing that requires fine control or batch instructions that require fast processing, the system can provide corresponding support, improving the adaptability and intelligence level of the CNC system.
[0042] The present invention is further configured to include a log module and a configuration module for recording the user's operation log, including the number of skips, mode switching records and abnormal information, for subsequent analysis and maintenance; the configuration module allows the configuration of skip parameters, delay time and security policies to meet the personalized needs in different scenarios. Specifically, the log module and the configuration module are used to record the user's operation history and provide personalized configuration options, respectively, to ensure that the system can meet the needs of different users and different processing scenarios. The configuration and function of the log module: Operation log recording: The log module is responsible for automatically recording all user operations, including the number of skips, mode switching records and abnormal information. Data storage and management: The recorded log data is stored in a safe and reliable storage medium, and provides efficient data retrieval and management functions. Subsequent analysis and maintenance support: By analyzing the log data, the system administrator can identify the operation mode, optimize the system performance, and perform troubleshooting and maintenance; Configuration and function of the configuration module: Parameter setting: The configuration module allows the user to set the skip parameters (such as the type and number of skip instructions), delay time (such as the invalid time window after the button is clicked) and security policy (such as the security check level before the skip instruction) according to actual needs; User interface interaction: Provide a friendly user interface to facilitate users to configure parameters and adjust policies. Personalized demand satisfaction: The configuration module supports personalized configuration for different user roles and different processing scenarios, enhancing the flexibility and adaptability of the system. The log module automatically records the user operation history and system operation status, allowing technicians to easily analyze, optimize and troubleshoot the system. The detailed operation log provides rich data support, making it easy to quickly locate the source of the problem and improve the maintainability and management efficiency of the system. The configuration module allows users to flexibly set skip parameters, delay time and security policies according to different processing requirements and operating environments. The personalized configuration function enables the system to adapt to a variety of industrial processing scenarios, meet the operating habits and needs of different users, and improve the adaptability and intelligence level of the system.
[0043] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0044] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.
[0045] In this application, "at least one" means one or more, and "more than one" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0046] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0047] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0048] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0049] In the several embodiments provided in the present application, it should be understood that the disclosed system can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0050] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0051] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0052] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.
[0053] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for skipping multiple executions of a button instruction in a numerical control system, characterized in that: include: Set the multi-step mode, by continuously clicking the button, the function will be skipped according to the specified number of clicks to execute the button command, where the number of skip commands and command content will be increased according to the number of clicks; Before executing the skip instruction, a safety check is performed to ensure the safety and feasibility of the operation; Set a skip module and skip the current non-motion instruction by clicking the skip module.
2. A method for skipping multiple executions of a button instruction of a numerical control system according to claim 1, characterized in that: In multi-step mode, the single-click, double-click, and triple-click operations are distinguished by detecting the time interval between two adjacent clicks to ensure the recognition accuracy of the skip strategy.
3. A method for skipping multiple executions of a button instruction of a numerical control system according to claim 1, characterized in that: Before skipping the current non-motion instruction, a confirmation box pops up to ask you to confirm whether to execute the non-motion instruction skipping to prevent misoperation. Select to confirm or cancel the non-motion instruction skipping.
4. A method for skipping multiple executions of a button instruction of a numerical control system according to claim 1, characterized in that: A single-step mode is also set to execute a motion instruction each time a button is clicked. Before executing the motion instruction, a preliminary check is performed to ensure that the machine tool is in a safe state. After executing the instruction, a delay time is set. During the delay time, the button is invalid to prevent continuous misoperation.
5. A method for skipping multiple executions of a button instruction of a numerical control system according to claim 4, characterized in that: Set the single-step mode and multi-step mode switching button to receive the user's single-step mode and multi-step mode switching instructions. When switching between single-step mode and multi-step mode, click the button for the first time to confirm safety, the CNC system pauses and displays the confirmation information; after confirmation, click the button continuously again, and the machine tool executes the instructions according to the settings.
6. A method for skipping multiple executions of a button instruction of a numerical control system according to claim 1, characterized in that: The safety check includes: Check the machine tool operating status and surrounding environment to ensure there is no risk of failure; When there is a risk of failure, prevent the operation from being skipped and prompt the user to handle it.
7. A method for skipping multiple executions of a button instruction of a numerical control system according to claim 1, characterized in that: It also includes a control module and a display module. The control module executes skip, single-step or multi-step instruction operations according to user instructions and safety inspection results, and the display module is used to display the current mode, status and confirmation information in real time.
8. A method for skipping multiple executions of a button instruction of a numerical control system according to claim 1, characterized in that: It also includes a log module and a configuration module, which are used to record the user's operation log, including the number of skips, mode switching records and abnormal information, for subsequent analysis and maintenance; the configuration module allows the configuration of skip parameters, delay time and security policies to meet personalized needs in different scenarios.