System, method and device for realizing cutter lifting and falling control based on hierarchical state machine in numerical control system, processor and readable storage medium

By using a layered state machine to manage the knife lifting and falling process in the CNC system, the problems of state management chaos and maintenance difficulties in traditional methods are solved, and higher maintainability and stability are achieved to adapt to the needs of complex scenarios.

CN119024770AInactive Publication Date: 2024-11-26SHANGHAI WEIHONG ELECTRONICS TECH +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411128711.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2024-11-26
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The knife lifting and falling knife control method in traditional CNC systems is based on simple logical judgment or preset parameters, which leads to confusion in software status management and difficulty in maintenance and upgrading, unable to meet the needs of modern processing and manufacturing industries, and unable to realize functional abstraction and logical hierarchical management.

Method used

Using a system based on a hierarchical state machine, the module, state monitoring module, control module and execution module are built through the hierarchical state machine model, the processing process of the CNC system is decomposed into multiple hierarchical states, the status information is obtained in real time, and the knife lifting and falling is dynamically adjusted. Control the strategy and drive tool lifting and lowering motion through the servo motor to achieve closed-loop management.

Benefits of technology

It improves the maintainability and stability of the CNC system, enhances adaptability and flexibility, can handle complex knife lifting and falling operations and high-precision operations, significantly improving the practicality and innovation of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119024770A_ABST
    Figure CN119024770A_ABST
Patent Text Reader

Abstract

The invention relates to a system for realizing cutter lifting and falling control based on a hierarchical state machine in a numerical control system, and the system comprises a hierarchical state machine model building module which is used for decomposing the machining of the numerical control system and the cutter lifting and falling process in the machining process into a plurality of hierarchical states; the state monitoring module acquires state information of the numerical control system in real time; the control module is used for generating a cutter lifting and falling control strategy according to the real-time state information and a hierarchical state machine model; and the execution module drives a servo motor of the numerical control system to realize the lifting motion of the cutter. The invention further relates to a method and device for achieving cutter lifting and falling control based on the hierarchical state machine in the numerical control system, a processor and a readable storage medium of the processor. By adopting the system, the method, the device, the processor and the computer readable storage medium for realizing cutter lifting and falling control based on the hierarchical state machine in the numerical control system, the adaptability is enhanced, the maintainability is improved, complex scenes such as complex cutter lifting and falling business and high-precision operation can be processed, and the system, the method, the device and the processor have relatively high adaptability and flexibility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of numerical control technology, and in particular to the field of tool lifting and tool dropping state management in an automatic machining process, and specifically refers to a system, method, device, processor and computer-readable storage medium thereof for implementing tool lifting and tool dropping control based on a hierarchical state machine in a numerical control system. Background Art

[0002] With the rapid development of CNC technology, CNC systems are increasingly used in the field of mechanical processing. However, in the CNC machining process, tool lifting and tool dropping operations are common and important steps. Traditional tool lifting and tool dropping control methods are often based on simple logical judgments or preset parameters. The management of various software states is chaotic, maintenance and upgrades are difficult, and rapid software iteration cannot be achieved. These problems make it difficult to meet the needs of modern processing and manufacturing industries.

[0003] Function: Due to safety requirements in the CNC system, the tool head needs to be raised to a suitable safety height when pausing, and the tool head needs to be lowered to the processing surface when continuing processing.

[0004] Disadvantages: When the existing system needs to lift the knife or put it down, it uses a series of judgments to decide whether the operation is needed. It is unable to achieve functional abstraction and logical hierarchical management, and is not convenient for state maintenance. Summary of the invention

[0005] The purpose of the present invention is to overcome the shortcomings of the above-mentioned prior art and to provide a system, method, device, processor and computer-readable storage medium for realizing tool lifting and lowering control based on a hierarchical state machine in a CNC system which has good maintainability, good stability and a wide range of applications.

[0006] In order to achieve the above-mentioned purpose, the system, method, device, processor and computer-readable storage medium thereof for realizing tool lifting and dropping control based on the hierarchical state machine in the numerical control system of the present invention are as follows:

[0007] The main features of the system for realizing tool lifting and dropping control based on the hierarchical state machine in the numerical control system are as follows:

[0008] The hierarchical state machine model building module is used to build a hierarchical state machine model, which decomposes the machining of the CNC system and the tool lifting and lowering process in the machining process into multiple levels of states;

[0009] A state monitoring module, connected to the hierarchical state machine model building module, is used to obtain the state information of the numerical control system in real time;

[0010] A control module, connected to the state monitoring module, for generating a tool lifting and lowering control strategy according to real-time state information and a hierarchical state machine model;

[0011] The execution module is connected to the control module and is used to drive the servo motor of the numerical control system according to the control strategy to realize the lifting movement of the tool.

[0012] Preferably, the hierarchical state machine model building module dynamically adjusts the control strategy of tool lifting and lowering according to real-time status information during the machining process.

[0013] Preferably, when the control module needs to perform a knife lifting or knife lowering operation, it determines appropriate control parameters and action sequences according to the current state and preset control logic.

[0014] Preferably, during the execution process, the execution module feeds back the execution status to the control module in real time, so as to complete the closed-loop management of the entire state switching.

[0015] Preferably, the multiple levels of states decomposed by the hierarchical state machine model construction module include an idle state, a starting state, a running state, a paused state, a suspended state, and a stopped state.

[0016] The method for realizing tool lifting and dropping control based on a hierarchical state machine in a numerical control system by using the above system is mainly characterized in that the method comprises the following steps:

[0017] (1) Construct a hierarchical state machine model;

[0018] (2) Monitor real-time status;

[0019] (3) Generate control strategy;

[0020] (4) Execute module actions.

[0021] Preferably, the step (1) specifically comprises the following steps:

[0022] (1.1) Decompose the tool lifting and lowering process of the CNC system into multiple levels of states, so that each state has clear input conditions and output actions, as well as the conversion relationship between other states;

[0023] (1.2) Dynamically adjust the tool lifting and lowering control strategy based on the real-time status information during the machining process.

[0024] Preferably, the step (2) is specifically as follows:

[0025] The status information of the CNC system can be obtained in real time through the status monitoring module.

[0026] Preferably, the step (3) is specifically as follows:

[0027] According to the real-time status information and the hierarchical state machine model, the corresponding tool lifting and lowering control strategy is generated.

[0028] Preferably, the step (3) further comprises the following steps:

[0029] When it is necessary to perform a knife lifting or knife lowering operation, the control module determines the appropriate control parameters and action sequence according to the current state and the preset control logic.

[0030] Preferably, the step (4) is specifically as follows:

[0031] The execution module drives the servo motor of the CNC system according to the instructions issued by the control module to perform the lifting and lowering movement of the tool. At the same time, the execution module feeds back the execution status to the control module in real time.

[0032] The device for realizing tool lifting and dropping control based on a hierarchical state machine in a numerical control system has the following main features: the device comprises:

[0033] a processor configured to execute computer executable instructions;

[0034] The memory stores one or more computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the above-mentioned method for realizing tool lifting and lowering control based on the hierarchical state machine in the numerical control system are implemented.

[0035] The processor for realizing tool lifting and tool dropping control based on a hierarchical state machine in a numerical control system has the main feature that the processor is configured to execute computer executable instructions. When the computer executable instructions are executed by the processor, the various steps of the above-mentioned method for realizing tool lifting and tool dropping control based on a hierarchical state machine in a numerical control system are realized.

[0036] The computer-readable storage medium has the main feature of storing a computer program thereon, and the computer program can be executed by a processor to implement the various steps of the above-mentioned method for realizing tool lifting and lowering control based on a hierarchical state machine in a numerical control system.

[0037] The system, method, device, processor and computer-readable storage medium thereof for realizing tool lifting and tool dropping control based on a hierarchical state machine in a numerical control system of the present invention can enhance adaptability and improve the maintainability of software. The present invention can handle complex scenarios such as complex tool lifting and tool dropping services and high-precision operations, and has strong adaptability and flexibility. The present invention realizes tool lifting and tool dropping control of a numerical control system based on a hierarchical state machine, improves the maintainability and stability of the numerical control machining system, and has significant practicality and innovation. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 It is the structure and state transition relationship of the main state machine model of the system for realizing tool lifting and lowering control based on the hierarchical state machine in the numerical control system of the present invention.

[0039] Figure 2 The structure and state transition relationship of the tool lifting sub-state machine of the system for realizing tool lifting and lowering control based on the hierarchical state machine in the numerical control system of the present invention.

[0040] Figure 3 The present invention is a flow chart of a method for implementing tool lifting and lowering control based on a hierarchical state machine in a numerical control system. DETAILED DESCRIPTION

[0041] In order to more clearly describe the technical content of the present invention, further description is given below in conjunction with specific embodiments.

[0042] The system for realizing tool lifting and dropping control based on the hierarchical state machine in the numerical control system of the present invention comprises:

[0043] The hierarchical state machine model building module is used to build a hierarchical state machine model, which decomposes the machining of the CNC system and the tool lifting and lowering process in the machining process into multiple levels of states;

[0044] A state monitoring module, connected to the hierarchical state machine model building module, is used to obtain the state information of the numerical control system in real time;

[0045] A control module, connected to the state monitoring module, for generating a tool lifting and lowering control strategy according to real-time state information and a hierarchical state machine model;

[0046] The execution module is connected to the control module and is used to drive the servo motor of the numerical control system according to the control strategy to realize the lifting movement of the tool.

[0047] As a preferred embodiment of the present invention, the hierarchical state machine model building module dynamically adjusts the control strategy of tool lifting and tool lowering according to the real-time state information during the machining process.

[0048] As a preferred embodiment of the present invention, when the control module needs to perform a knife lifting or knife lowering operation, it determines appropriate control parameters and action sequences according to the current state and preset control logic.

[0049] As a preferred implementation mode of the present invention, the execution module feeds back the execution status to the control module in real time during the execution process, so as to complete the closed-loop management of the entire state switching.

[0050] As a preferred embodiment of the present invention, the multiple levels of states decomposed by the hierarchical state machine model construction module include idle state, starting state, running state, paused state, suspended state, and stopped state.

[0051] The method of the present invention using the above system to realize tool lifting and dropping control based on a hierarchical state machine in a numerical control system includes the following steps:

[0052] (1) Construct a hierarchical state machine model;

[0053] (2) Monitor real-time status;

[0054] (3) Generate control strategy;

[0055] (4) Execute module actions.

[0056] As a preferred embodiment of the present invention, the step (1) specifically comprises the following steps:

[0057] (1.1) Decompose the tool lifting and lowering process of the CNC system into multiple levels of states, so that each state has clear input conditions and output actions, as well as the conversion relationship between other states;

[0058] (1.2) Dynamically adjust the tool lifting and lowering control strategy based on the real-time status information during the machining process.

[0059] As a preferred embodiment of the present invention, the step (2) is specifically as follows:

[0060] The status information of the CNC system can be obtained in real time through the status monitoring module.

[0061] As a preferred embodiment of the present invention, the step (3) is specifically as follows:

[0062] According to the real-time status information and the hierarchical state machine model, the corresponding tool lifting and lowering control strategy is generated.

[0063] As a preferred embodiment of the present invention, the step (3) further comprises the following steps:

[0064] When it is necessary to perform a knife lifting or knife lowering operation, the control module determines the appropriate control parameters and action sequence according to the current state and the preset control logic.

[0065] As a preferred embodiment of the present invention, the step (4) is specifically as follows:

[0066] The execution module drives the servo motor of the CNC system according to the instructions issued by the control module to perform the lifting and lowering movement of the tool. At the same time, the execution module feeds back the execution status to the control module in real time.

[0067] The device for realizing tool lifting and dropping control based on a hierarchical state machine in a numerical control system of the present invention comprises:

[0068] a processor configured to execute computer executable instructions;

[0069] The memory stores one or more computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the above-mentioned method for realizing tool lifting and lowering control based on the hierarchical state machine in the numerical control system are implemented.

[0070] The processor of the present invention is used to implement tool lifting and tool dropping control based on a hierarchical state machine in a numerical control system, wherein the processor is configured to execute computer executable instructions. When the computer executable instructions are executed by the processor, the various steps of the above-mentioned method for implementing tool lifting and tool dropping control based on a hierarchical state machine in a numerical control system are implemented.

[0071] The computer-readable storage medium of the present invention stores a computer program thereon, and the computer program can be executed by a processor to implement the various steps of the above-mentioned method for realizing tool lifting and lowering control based on a hierarchical state machine in a numerical control system.

[0072] In a specific embodiment of the present invention, a method for facilitating the maintenance and management of state transitions in a numerical control system is provided to solve the problem of logical coupling of different state processing such as tool lifting and tool dropping in the numerical control system, avoid the disadvantage of state false death during numerical control machining, and provide a method for implementing tool lifting and tool dropping that is easy to maintain.

[0073] The specific implementation of the present invention is as follows:

[0074] Constructing a hierarchical state machine model: Decompose the tool lifting and tool dropping process of the CNC system into multiple levels of states, including idle state, starting state, running state, paused state, paused state, stopped state, etc. Among them, the paused state and the starting state will decide whether to enable the tool lifting / tool ​​dropping sub-state machine according to the conditions. The sub-state machine includes idle state, starting state, running state, stopped state, etc. Each state has clear input conditions and output actions, as well as the conversion relationship with other states, and dynamically adjusts the tool lifting and tool dropping control strategy according to the real-time status information during the processing process.

[0075] Real-time status monitoring: The status monitoring module can be used to obtain the status information of the CNC system in real time, including processing progress, tool position, workpiece status, etc.

[0076] Control strategy generation: Based on the real-time status information and the hierarchical state machine model, the control module generates the corresponding tool lifting and tool dropping control strategy. When the tool lifting or tool dropping operation needs to be performed, the control module determines the appropriate control parameters and action sequence based on the current state and the preset control logic.

[0077] Execution module action: The execution module drives the servo motor of the CNC system according to the instructions issued by the control module to realize the lifting and lowering movement of the tool. During the execution process, the execution module will feedback the execution status to the control module in real time to complete the closed-loop management of the entire state switching.

[0078] The implementation process of the present invention is as follows:

[0079] (1) Build a hierarchical state machine, add different states, and decide whether to bind sub-state machines to different states;

[0080] (2) Preset the control strategy, build and initialize the state transition table of the main state machine and the state transition table of the sub-state machine;

[0081] (3) Based on the received Pause event, the state transition table of the main state machine determines the next state and whether to enable the sub-state machine according to the switching condition of the corresponding event;

[0082] (4) Switch the state according to the feedback information of the execution module to complete the state loop.

[0083] like Figure 2 As shown, when the main state machine enters the pause state, it is determined whether to automatically start the knife lifting sub-state machine according to the conditions, and the knife lifting sub-state machine returns to the main state machine after the knife lifting is completed.

[0084] The present invention only needs to maintain the state transition table and the corresponding conditions and action processing through the preset state transition table, which can avoid inserting cumbersome state change judgments into the business logic. The tool lifting and lowering are realized through the layered state machine method, and the tool lifting and lowering and processing are logically separated, thus avoiding the state conflict problem in the processing process.

[0085] The state model mentioned in the technical solution of the present invention includes idle, starting, running, pausing, paused, and stopped states. The technical solution implements common processing and tool lifting and tool dropping actions through a hierarchical state machine, wherein common processing is implemented by a main state machine, tool lifting and tool dropping are implemented by a sub-state machine, and the main state machine and the sub-state machine share the same implementation, which has better maintainability and stronger stability.

[0086] The specific implementation scheme of this embodiment can refer to the relevant description in the above embodiment, which will not be repeated here.

[0087] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.

[0088] It should be noted that, in the description of the present invention, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, the meaning of "plurality" refers to at least two.

[0089] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.

[0090] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution device. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0091] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the corresponding program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0092] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0093] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.

[0094] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0095] The system, method, device, processor and computer-readable storage medium thereof for realizing tool lifting and tool dropping control based on a hierarchical state machine in a numerical control system of the present invention can enhance adaptability and improve the maintainability of software. The present invention can handle complex scenarios such as complex tool lifting and tool dropping services and high-precision operations, and has strong adaptability and flexibility. The present invention realizes tool lifting and tool dropping control of a numerical control system based on a hierarchical state machine, improves the maintainability and stability of the numerical control machining system, and has significant practicality and innovation.

[0096] In this specification, the present invention has been described with reference to specific embodiments thereof. However, it is apparent that various modifications and variations may be made without departing from the spirit and scope of the present invention. Therefore, the specification and drawings should be regarded as illustrative rather than restrictive.

Claims

1. A system for realizing tool lifting and lowering control based on hierarchical state machine in CNC system. It is characterized in that The system comprises: The hierarchical state machine model building module is used to build a hierarchical state machine model, which decomposes the machining of the CNC system and the tool lifting and lowering process in the machining process into multiple levels of states; A state monitoring module, connected to the hierarchical state machine model building module, is used to obtain the state information of the numerical control system in real time; A control module, connected to the state monitoring module, for generating a tool lifting and lowering control strategy according to real-time state information and a hierarchical state machine model; The execution module is connected to the control module and is used to drive the servo motor of the numerical control system according to the control strategy to realize the lifting movement of the tool.

2. The system for realizing tool lifting and lowering control based on the hierarchical state machine in the numerical control system according to claim 1, It is characterized in that The hierarchical state machine model building module dynamically adjusts the control strategy of tool lifting and tool lowering according to the real-time state information during the machining process.

3. The system for realizing tool lifting and lowering control based on hierarchical state machine in the numerical control system according to claim 1, It is characterized in that When the control module needs to perform a knife lifting or knife lowering operation, it determines appropriate control parameters and action sequences according to the current state and the preset control logic.

4. The system for realizing tool lifting and lowering control based on hierarchical state machine in the numerical control system according to claim 1, It is characterized in that During the execution process, the execution module feeds back the execution status to the control module in real time, so as to complete the closed-loop management of the entire state switching.

5. The system for realizing tool lifting and lowering control based on hierarchical state machine in the numerical control system according to claim 1, It is characterized in that The multiple levels of states decomposed by the hierarchical state machine model construction module include an idle state, a starting state, a running state, a paused state, a suspended state, and a stopped state.

6. A method for realizing tool lifting and lowering control based on a hierarchical state machine in a numerical control system using the system according to claim 1, It is characterized in that The method comprises the following steps: (1) Construct a hierarchical state machine model; (2) Monitor real-time status; (3) Generate control strategy; (4) Execute module actions.

7. The method for realizing tool lifting and lowering control based on hierarchical state machine in a numerical control system according to claim 6, It is characterized in that The step (1) specifically comprises the following steps: (1.1) Decompose the tool lifting and lowering process of the CNC system into multiple levels of states, so that each state has clear input conditions and output actions, as well as the conversion relationship between other states; (1.2) Dynamically adjust the tool lifting and lowering control strategy based on the real-time status information during the machining process.

8. The method for realizing tool lifting and lowering control based on hierarchical state machine in a numerical control system according to claim 6, It is characterized in that The step (2) is specifically as follows: The status information of the CNC system can be obtained in real time through the status monitoring module.

9. The method for realizing tool lifting and lowering control based on hierarchical state machine in a numerical control system according to claim 6, It is characterized in that The step (3) is specifically as follows: According to the real-time status information and the hierarchical state machine model, the corresponding tool lifting and lowering control strategy is generated.

10. The method for realizing tool lifting and lowering control based on hierarchical state machine in a numerical control system according to claim 9, It is characterized in that The step (3) further comprises the following steps: When it is necessary to perform a knife lifting or knife lowering operation, the control module determines the appropriate control parameters and action sequence according to the current state and the preset control logic.

11. The method for realizing tool lifting and lowering control based on hierarchical state machine in a numerical control system according to claim 6, It is characterized in that The step (4) is specifically as follows: The execution module drives the servo motor of the CNC system according to the instructions issued by the control module to perform the lifting and lowering movement of the tool. At the same time, the execution module feeds back the execution status to the control module in real time.

12. A device for realizing tool lifting and tool dropping control based on a hierarchical state machine in a numerical control system, It is characterized in that The device comprises: a processor configured to execute computer executable instructions; A memory stores one or more computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the method for realizing tool lifting and lowering control based on a hierarchical state machine in a numerical control system as described in any one of claims 6 to 11 are implemented.

13. A processor for realizing tool lifting and tool dropping control based on a hierarchical state machine in a numerical control system, It is characterized in that The processor is configured to execute computer-executable instructions. When the computer-executable instructions are executed by the processor, the various steps of the method for realizing tool lifting and lowering control based on a hierarchical state machine in a numerical control system as described in any one of claims 6 to 11 are implemented.

14. A computer-readable storage medium, It is characterized in that A computer program is stored thereon, and the computer program can be executed by a processor to implement the various steps of the method for realizing tool lifting and lowering control based on a hierarchical state machine in a numerical control system as described in any one of claims 6 to 11.

Citation Information

Patent Citations

  • Control system for processing

    CN101468415A

  • Computer numerical control system modeling development method based on real-time hierarchical finite state machine

    CN106909126A

  • Free-form surface tool path generation method and related equipment

    CN116339242A

  • Cutter lifting action discrimination method, cutter lifting operation unit, system and storage medium

    CN116701893A

  • Cutter lifting height control system of electric spark machine tool

    CN116713546A