Machine tool control system and method and storage medium

By constructing input/output interface modules for standard functions, the non-standardization problem of CNC machine tool scheduling and control programs was solved, realizing unified control of machine tools, reducing learning and handover costs, and improving work efficiency and system security.

CN121300240APending Publication Date: 2026-01-09CHENZHI (CHONGQING) LIGHTWEIGHT TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511311705.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-15
Publication Date
2026-01-09

AI Technical Summary

Technical Problem

The lack of a unified standardized design for the scheduling and control programs of CNC machine tools leads to high learning costs, difficult maintenance, program incompatibility, impact on project progress and functional expansion, and safety risks.

Method used

The system constructs input and output interface modules for standard functions. It obtains the preconditions for machine tool operation through the input interface, determines whether the preset conditions are met, and if so, receives external instructions and outputs control instructions. Otherwise, it considers the instructions invalid, thereby achieving unified control of the machine tool.

Benefits of technology

It significantly lowers the technical threshold, reduces learning and handover time costs, avoids system stability issues and security risks, and improves work efficiency and system security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121300240A_ABST
    Figure CN121300240A_ABST
Patent Text Reader

Abstract

The invention provides a machine tool control system and method and a storage medium, and belongs to the field of machine tool control, the machine tool control system comprises an input interface control module and an output interface control module, the input interface control module is used for constructing a standard function, and the standard function obtains multiple pieces of precondition information of machine tool operation through an input interface. According to the method, a complex fool-proof mechanism and potential collision logic of underlying hardware do not need to be concerned, the technical threshold is remarkably reduced, the working efficiency is improved, the time cost and the learning cost required by handover are greatly reduced, meanwhile, the problem of system stability caused by disordered program styles and unclear logic is effectively avoided, and the system reliability is improved. And safety risks such as equipment collision or operation faults caused by misreading of a program structure or mismodification of key control logic by maintenance personnel are effectively prevented, and the method has remarkable engineering application value and popularization prospect.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application mainly relates to the technical field of machine tool control, and in particular to a machine tool control system, a machine tool control method and a storage medium. BACKGROUND

[0002] Under the background of rapid development of current industrial automation, numerical control machine tools have been widely used in various manufacturing links. However, in practical application, the scheduling control program of numerical control machine tools still mainly depends on the experience and habit of engineers for development and management, and lacks unified standardized design and implementation specification. This non-standardized development mode leads to great differences in logical structure, functional modules, interface methods, etc. of the scheduling program, and there are incompatibility problems between different projects and even between devices within the same enterprise.

[0003] This situation directly brings many adverse effects. First, engineering and technical personnel who are new to related equipment face a high learning cost when understanding and starting the scheduling program, and it is difficult for them to take on debugging or improvement tasks in a short time, which may affect the progress of the entire project. Secondly, due to the lack of uniformity in program structure and coding style, maintenance personnel who take over later have difficulty in quickly locating faults or implementing function upgrades, significantly increasing maintenance difficulty and operation and maintenance cost. In addition, in the process of cross-device collaboration or line integration, the non-uniformity of the program also limits the implementation of function expansion and intelligent optimization. SUMMARY

[0004] The technical problem to be solved by the present application is to provide a machine tool control system, a machine tool control method and a storage medium.

[0005] The technical solution of the present application to solve the above technical problem is as follows: a machine tool control system, comprising an input interface control module and an output interface control module, The input interface control module is used to construct a standard function, and the standard function obtains a plurality of premise condition information of machine tool operation through an input interface; The output interface control module is used to judge whether all the premise condition information meets a preset judgment condition, if not, the received external instruction is regarded as an invalid instruction, if yes, the external instruction is received, and the standard function outputs a control instruction through an output interface, and controls the machine tool to operate according to the control instruction.

[0006] Another technical solution of the present application to solve the above technical problem is as follows: a machine tool control method, comprising the following steps: Constructing a standard function, the standard function obtains a plurality of premise condition information of machine tool operation through an input interface; The output interface control module is used for judging whether all the precondition information meets preset judging conditions, if not, the received external instruction is regarded as an invalid instruction, if yes, the external instruction is received, the standard function outputs a control instruction through the output interface, and the machine tool is controlled to run according to the control instruction.

[0007] The beneficial effects of the present application are as follows: by constructing a standard function, the standard function acquires multiple precondition information of machine tool running through an input interface, judges whether the precondition information meets preset judging conditions, if not, the received external instruction is regarded as an invalid instruction, if yes, the external instruction is received, the standard function outputs a control instruction through an output interface, and the machine tool is controlled to run according to the control instruction, without needing to pay attention to the complex foolproof mechanism of the underlying hardware and potential collision logic, the technical threshold is significantly reduced, the work efficiency is improved, the time cost and learning cost required for handover are greatly reduced, the problem of system stability caused by program style confusion and unclear logic is effectively avoided, the safety risks such as equipment collision or running failure caused by misreading of program structure or mismodification of key control logic by maintenance personnel are effectively prevented, and the present application has significant engineering application value and promotion prospect. BRIEF DESCRIPTION OF DRAWINGS

[0008] Figure 1 A module block diagram of a machine tool control system provided by an embodiment of the present application is provided. Figure 2 A flowchart of a machine tool control method provided by an embodiment of the present application is provided. DETAILED DESCRIPTION

[0009] The principles and characteristics of the present application are described below in combination with the drawings, and the examples are only used to explain the present application, and not to limit the scope of the present application.

[0010] Figure 1 A module block diagram of a machine tool control system provided by an embodiment of the present application is provided.

[0011] As shown in Figure 1 A machine tool control system includes an input interface control module and an output interface control module, The input interface control module is used for constructing a standard function, and the standard function acquires multiple precondition information of machine tool running through an input interface. The output interface control module is used for judging whether all the precondition information meets preset judging conditions, if not, the received external instruction is regarded as an invalid instruction, if yes, the external instruction is received, the standard function outputs a control instruction through the output interface, and the machine tool is controlled to run according to the control instruction.

[0012] It should be understood that the preset judgment conditions can be that the machine tool is safe and normal, the power supply is normal, and the status is normal.

[0013] Specifically, the standard function obtains information such as whether the machine tool is safe, powered on, and in normal condition through the input interface. These are prerequisites for determining whether the machine tool can be controlled normally. When all conditions are normal, the standard function can effectively receive and execute external instructions to control the operation of the machine tool; otherwise, all instructions will be invalid.

[0014] In the above embodiments, by constructing a standard function, the standard function obtains multiple preconditions for machine tool operation through an input interface, determines whether the preconditions meet preset judgment conditions, and if not, treats the received external instructions as invalid instructions; if they meet, it receives the external instructions and outputs control instructions through an output interface, controlling the machine tool operation according to the control instructions. This eliminates the need to consider the complex error-proofing mechanisms and potential collision logic of the underlying hardware, significantly lowering the technical threshold, improving work efficiency, and greatly reducing the time and learning costs required for handover. Simultaneously, it effectively avoids system stability issues caused by chaotic program style and unclear logic, and effectively prevents safety risks such as equipment collisions or operational failures caused by maintenance personnel misinterpreting the program structure or mistakenly modifying key control logic. It has significant engineering application value and promising prospects for promotion.

[0015] Optionally, as an embodiment of the present invention, the input interface includes a machine tool input interface; The machine tool input interface is used to provide feedback on the machine tool's operating status and transmit data interaction signals. The machine tool's operating status includes machining in progress, paused, stopped, and faulty. The data interaction signals include the program number currently being processed. The machine tool input interface is also used to transmit alarm codes when an alarm occurs on the machine tool.

[0016] It should be understood that the machine tool input (MCInput) mainly includes feedback on the machine tool's operating status and some data interaction signals, such as the machine tool's operating status (processing, paused, stopped, fault, etc.), feedback on the current processing program number, etc. If there is an alarm, the alarm code will also be transmitted back.

[0017] In the above embodiments, the machine tool input interface can provide feedback on the machine tool's operating status and transmit data interaction signals, which significantly lowers the technical threshold, improves work efficiency, and greatly reduces the time and learning costs required for handover.

[0018] Optionally, as an embodiment of the present invention, the input interface further includes a safety normal interface, a power-on normal interface, and a region normal interface; The security normal interface is used to detect the external security status. When the external security status is abnormal, the standard function terminates its operation. The normal power interface is used to detect the power supply status of the machine tool in real time. When the machine tool power is interrupted, the standard function terminates its operation. The normal interface of the area is used to detect the safety status of the area before the machine tool door is opened or closed, or before the machine tool peripheral equipment is operated.

[0019] It should be understood that SafetyOK (i.e., the SafetyOK interface) means that whether external safety is normal directly affects whether standard functions will terminate.

[0020] Specifically, PowerOK (i.e., Power OK interface): Real-time detection of whether the machine tool's power supply is interrupted; if the power supply is interrupted, operation will also be terminated.

[0021] It should be understood that ZoneOK (i.e., Zone OK interface) means that before the machine tool opens or closes its doors or other peripheral equipment operates, it will check whether the zone is normal to prevent personnel injury or equipment damage caused by accidental operation when people or robotic arms are operating the machine tool.

[0022] In the above embodiments, the safety normal interface, power-on normal interface, and area normal interface can prevent personnel injury and equipment damage caused by erroneous actions when people or robots operate the machine tool, which has significant engineering application value and promotion prospects.

[0023] Optionally, as an embodiment of the present invention, the input interface further includes an operation mode interface, an initialization interface, a program number sending interface, a machining start interface, a machining pause interface, a machine tool shielding interface, an energy-saving mode interface, and an empty cycle mode interface; The operation mode interface is used to obtain the overall line operation mode, which includes automatic mode, manual mode and no-load operation mode. The initialization interface is used to initialize the cached signals and data within the standard function when in manual mode and when the preset initialization conditions are met; The program number sending interface is used to send a trigger signal for sending a program number to the machine tool, wherein the program number is program identification information sent to the machine tool; The start-up processing interface is used to trigger the machine tool to start processing when the machine tool meets the preset preparation conditions; The pause processing interface is used to trigger the machine tool to pause processing when the machine tool is in operation and the preset pause conditions are met; The shielded machine tool interface is used to trigger shielding of the machine tool when the machine tool malfunctions and needs repair or when mixed-production products do not require processing by the machine tool. The energy-saving mode interface is used to trigger the machine tool to enter the energy-saving operation state when the machine tool is idle or production is stopped and there is no need to cut off the power. The empty loop mode interface is used to trigger the machine tool shielded sensors and machine tool shielding parameters when the machine tool is debugging and verifying the action logic.

[0024] It should be understood that the Operation Mode (OPMode) (i.e., the Operation Mode Interface) is used to obtain the overall line operation mode (automatic mode, manual mode, no-load operation, etc.).

[0025] Specifically, initialization (Init) (i.e., initialization interface): In manual mode, if the conditions are met, the buffered signals and data in the standard function are initialized.

[0026] It should be understood that SendPGNo (i.e., the SendProgramNo interface) is the trigger signal for sending the program number; and ProgramNo (PGNo) is the program number that needs to be sent to the CNC machine tool.

[0027] Specifically, Start machining (i.e., Start machining interface): Once the machine tool is ready, triggering Start machining will start the machine tool's operation. Pause machining (i.e., Pause machining interface): During machine tool operation, if certain conditions are met, triggering a Pause signal will pause the machine tool's machining process.

[0028] It should be understood that a shielded machine tool (MCBlock) (i.e., a shielded machine tool interface) can be triggered to shield the current machine tool from processing when a machine tool malfunctions and needs repair or when products produced in mixed batches do not need to be processed by a particular machine tool.

[0029] Specifically, the Energy Saving Mode (ECMode) (i.e., the Energy Saving Mode interface) allows the machine tool to operate continuously in energy-saving mode when it is idle or production is temporarily suspended without power interruption. The Dry Mode (i.e., the Dry Cycle Mode interface) can be triggered during the debugging and verification of motion logic. In this mode, the machine tool will automatically disable relevant sensors and some parameters, simulating product actions and interactions with the program.

[0030] In the above embodiments, the operation mode interface, initialization interface, program number sending interface, start processing interface, pause processing interface, machine tool shielding interface, energy saving mode interface, and empty cycle mode interface can significantly reduce the technical threshold, improve work efficiency, and greatly reduce the time and learning costs required for handover. At the same time, it effectively avoids system stability problems caused by chaotic program style and unclear logic, and effectively prevents safety risks such as equipment collisions or operational failures caused by maintenance personnel misreading the program structure or mistakenly modifying key control logic. It has significant engineering application value and promotion prospects.

[0031] Optionally, as an embodiment of the present invention, the input interface further includes a machine tool fixture clamping interface, a machine tool fixture releasing interface, a machine tool part placement completion interface, and a machine tool part removal completion interface; The machine tool fixture clamping interface is used to trigger the machine tool fixture to clamp the product after the product is placed into the machine tool by the robot arm. The machine tool fixture release interface is used to trigger the machine tool fixture to release the product when the robot arm needs to remove the product from inside the machine tool. The machine tool placement completion interface is triggered when the robot puts the product into the machine tool and exits the interaction area to return to the safe area, and the preset placement completion conditions are met. After the trigger, the machine tool's running status is "processing". The machine tool part removal completion interface is triggered when the robot arm removes the product from the machine tool, exits the interaction area and returns to the safe area, and the preset conditions are met. After the triggering, the machine tool operation status is stopped.

[0032] It should be understood that the request for machine tool fixture clamping (MCFixtureClampedReq) (i.e., the machine tool fixture clamping interface) is triggered by the machine tool fixture clamping after the robot arm places the product inside the machine tool.

[0033] Specifically, the request to release the machine tool clamp (MCFixtureReleasedReq) (i.e., the machine tool clamp release interface) is triggered by the machine tool clamp releasing the product when the robot arm removes the product from the machine tool.

[0034] It should be understood that the Machine Tool Placement Complete (MCWorkpiecePlaced) (i.e., the Machine Tool Placement Complete interface) is triggered when the robot places the product on the machine tool, exits the interaction area and returns to the safe area, and the processing is only effective when the conditions are met.

[0035] Specifically, the Machine Tool Part Removal Complete (MCWordpieceRemoved) (i.e., the Machine Tool Part Removal Complete Interface): After the robot arm removes the product and exits the interaction area and returns to the safe area, the part removal is triggered when the conditions are met, and the machine tool can then be in a stopped (idle) state.

[0036] In the above embodiments, the machine tool fixture clamping interface, machine tool fixture releasing interface, machine tool placement completion interface, and machine tool removal completion interface can significantly reduce the technical threshold, improve work efficiency, and greatly reduce the time and learning costs required for handover. At the same time, it effectively avoids system stability problems caused by chaotic program style and unclear logic.

[0037] Optionally, as an embodiment of the present invention, the output interface includes a machine tool output interface, a fault output interface, a fault code generation interface, a machine tool preparation interface, a machine tool operation interface, a machine tool pause interface, a machine tool stop interface, a machine tool shielding output interface, and a machine tool feedback program number interface. The machine tool output interface is used to send control commands to the machine tool and transmit data interaction signals; The fault output interface is used to output a fault signal when there is an internal error in the standard function, non-compliant input data, or an error in the machine tool. The fault code generation interface is used to generate fault codes to assist in troubleshooting the cause of the fault, and the fault codes correspond one-to-one with the fault types. The machine tool preparation interface is used to output a ready signal when the machine tool is fault-free, the standard function is fault-free, and the machine tool correctly receives the program number. The machine tool operation interface is used to output an operation status signal when the machine tool is ready and the input interface sends a start signal, and the machine tool is in the machining state. The machine tool pause interface is used to output a pause status signal when the machine tool is in running state and a pause signal is triggered. The machine tool stop interface is used to output a stop status signal when the machine tool is in a stopped state. The machine tool shielding output interface is used to output a shielding status signal when the machine tool is shielded; The machine tool feedback program number interface is used to output the feedback program number when the machine tool receives the program number sent by the standard function and the program number is correct.

[0038] It should be understood that machine tool output (MCOutput) (i.e., machine tool output interface) mainly includes sending control commands to the machine tool and some data interaction signals.

[0039] Specifically, the fault output (Alarm) (i.e., the fault output interface) outputs a fault signal when there is an internal error in the standard function, non-compliant input data, or an error in the machine tool.

[0040] It should be understood that an alarm code is a corresponding error code for each fault, which helps in troubleshooting.

[0041] Specifically, Machine Ready (MCReady) (i.e., Machine Ready Interface): When the machine tool is fault-free, the standard functions are fault-free, and the machine tool correctly receives the program number, the machine tool sends back a ready signal.

[0042] It should be understood that "Machine Tool Running" (MCRunning) means that when the machine tool is ready, the input interface sends a start signal, and when the machine tool is in machining mode, it outputs a "Machine Tool Running" signal.

[0043] Specifically, Machine Paused (MCPaused) (i.e., Machine Pause Interface): When the machine tool is running, a pause signal is triggered. After the machine tool pauses, a Machine Paused signal is output.

[0044] It should be understood that the Machine Stop (MCStop) (i.e., the Machine Stop Interface) outputs a machine stop signal when the machine is in an idle state (no program number has been received and there are no products in the machine).

[0045] It should be understood that MCBlocked (i.e., machine tool shielded output interface) outputs a machine tool shielded signal when the machine tool is shielded.

[0046] Specifically, the machine tool feedback program number (MCPGNoFeedback) (i.e., the machine tool feedback program number interface): when the machine tool receives the program number sent by the standard function and the program number is correct, it outputs the machine tool feedback program number.

[0047] In the above embodiments, the use of machine tool output interface, fault output interface, fault code generation interface, machine tool preparation interface, machine tool operation interface, machine tool pause interface, machine tool stop interface, machine tool shielding output interface, and machine tool feedback program number interface can significantly reduce the technical threshold, improve work efficiency, and greatly reduce the time and learning costs required for handover. At the same time, it effectively avoids system stability problems caused by chaotic program style and unclear logic.

[0048] Optionally, as an embodiment of the present invention, the output interface further includes a machine tool pre-machining completion interface, a machine tool machining completion interface, a machine tool fixture clamping in place interface, a machine tool fixture releasing in place interface, a machine tool requesting part placement interface, and a machine tool requesting part removal interface; The machine tool pre-processing completion interface is used to output a pre-completion signal when the machine tool processing progress reaches the first preset processing progress. The machine tool processing completion interface is used to output a completion signal when the machine tool processing progress reaches the second preset processing progress. The machine tool fixture clamping interface is used to output a clamping signal through the standard function when the machine tool receives a fixture clamping request and meets the preset clamping conditions, and the machine tool fixture completes the clamping action and feeds back a signal to the standard function. The machine tool fixture release-in-place interface is used to output a release-in-place signal through the standard function when the machine tool receives a fixture release request and meets the preset release-in-place conditions, and the machine tool fixture completes the release action and feeds back a signal to the standard function; The machine tool request placement interface is used to output a placement request signal when the machine tool is in a stopped state. The machine tool request pick-up interface is used to output a pick-up request signal when the machine tool outputs the completion signal.

[0049] It should be understood that Pre-machining Completed (MCPMCompleted) (i.e., the Pre-machining Completed interface) outputs a pre-machining complete signal when the machine tool has completed 90% of its machining. Machining Completed (MCMCompleted) (i.e., the Machining Completed interface) outputs a machining complete signal when the machine tool has completed 100% of its machining.

[0050] Specifically, the machine tool fixture clamping in place (MCFixtureClampedInPos) (i.e., the machine tool fixture clamping in place interface): When the machine tool receives a fixture clamping request, it can clamp the fixture if the conditions are met. After clamping, a feedback signal is sent to the standard function, which then outputs a fixture clamping in place signal. The machine tool fixture releasing in place (MCFixtureReleasedInPos) (i.e., the machine tool fixture releasing in place interface): When the machine tool receives a fixture releasing request, it can release the fixture if the conditions are met. After releasing, a feedback signal is sent to the standard function, which then outputs a fixture releasing in place signal.

[0051] It should be understood that the Machine Tool Request WordpieceReq (i.e., the Machine Tool Request WordpieceReq interface) is a request for placing a piece when the machine tool is in a stopped (idle) state.

[0052] Specifically, the Machine Tool Request to Remove Workpiece Req (MCRemoveWorkpieceReq) (i.e., the Machine Tool Request to Remove Workpiece interface) is a request issued by the machine tool when it has completed machining.

[0053] In the above embodiments, the machine tool pre-processing completion interface, machine tool processing completion interface, machine tool fixture clamping in place interface, machine tool fixture loosening in place interface, machine tool request placement interface, and machine tool request retrieval interface can significantly reduce the technical threshold, improve work efficiency, and greatly reduce the time and learning costs required for handover. At the same time, it effectively avoids system stability problems caused by chaotic program style and unclear logic.

[0054] Alternatively, as another embodiment of the present invention, by standardizing the underlying control logic, the scheduler provided by the present invention achieves a high degree of modularity and standardization in its functional interfaces, calling logic, and execution flow. During development, programmers can directly call preset standard function interfaces to schedule and control CNC machine tools without having to worry about the complex error-proofing mechanisms or potential collision logic of the underlying hardware, thereby significantly reducing the technical threshold for program development and improving development efficiency and code readability.

[0055] This standardized architecture not only makes the overall program structure clearer and the logic more rigorous, but also greatly facilitates secondary development and functional expansion. Since the underlying logic has been encapsulated into general modules, developers only need to call them according to fixed interfaces, without having to repeatedly write scheduling logic for different models or manufacturers of machine tools, thus effectively avoiding system stability issues caused by chaotic program style and unclear logic.

[0056] Furthermore, this standardization mechanism offers significant advantages for program handover and maintenance. When a program needs to be transferred to other developers or maintenance engineers, the new personnel can quickly understand the program structure and interface usage, greatly reducing the time and learning costs required for handover. More importantly, the standardized underlying control logic effectively prevents safety risks such as equipment collisions or operational failures caused by maintenance personnel misinterpreting the program structure or mistakenly modifying critical control logic, significantly improving the system's operational security and maintainability.

[0057] In summary, this invention, through the standardized design of the underlying scheduling logic, not only improves the development efficiency and reusability of the program, but also enhances the stability, security, and maintainability of the system, demonstrating significant engineering application value and promising prospects for widespread adoption.

[0058] Alternatively, as another embodiment of the present invention, the innovative points of the present invention are as follows: 1. Unified machine tool control standard functions • The preconditions (safety, power supply, status, etc.) and operating logic (start, pause, energy saving, empty cycle, etc.) of machine tool control are all encapsulated in a standard function.

[0059] Regardless of the type or brand of machine tool, external systems can achieve unified control simply by calling a fixed interface, avoiding the need to repeatedly develop control logic for different machine models.

[0060] 2. Comprehensive standardization of input / output interfaces The input terminals cover operating status feedback, external safety signals, operating modes, area detection, fixture action requests, and shielding control, ensuring that external commands undergo safety and logic verification before entering the machine tool.

[0061] • The output provides status confirmation, operation process feedback, fault information, processing progress (processing in progress / pre-processing completed / processing completed) and fixture status, etc., to achieve traceability and closed-loop control.

[0062] 3. Embedded security and logic protection mechanisms The function first checks whether key conditions such as SafetyOK, PowerOK, and ZoneOK are met; otherwise, it automatically blocks all external control commands to prevent misoperation and safety accidents from the source.

[0063] • Clamping / unclamping, placing / removing parts, and other actions are performed only after safety checks are completed, reducing the risk of personal injury and equipment damage.

[0064] 4. Integration of multiple operating modes and energy consumption management It supports multiple operating modes such as automatic, manual, empty cycle, and energy-saving mode to meet the needs of different scenarios such as debugging, production, and energy saving.

[0065] • The energy-saving mode keeps the machine tool running at low power consumption when production is stopped or idle, without affecting restarting, thus balancing safety and energy efficiency.

[0066] 5. Staged feedback during the processing In addition to the "processing completed" signal, a "pre-processing completed" signal is also introduced, which facilitates the advance scheduling of subsequent processes or robot actions and improves the overall line cycle efficiency.

[0067] Figure 2 This is a flowchart illustrating a machine tool control method according to an embodiment of the present invention.

[0068] Alternatively, as another embodiment of the present invention, such as Figure 2 As shown, a machine tool control method includes the following steps: S1: Construct a standard function, which obtains multiple prerequisite information for machine tool operation through an input interface; S2: Determine whether all the aforementioned precondition information meets the preset judgment conditions. If not, the received external instruction is treated as an invalid instruction. If it meets the conditions, the external instruction is received, and the standard function outputs control instructions through the output interface, and controls the machine tool operation according to the control instructions.

[0069] Optionally, another embodiment of the present invention provides a machine tool control system, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the machine tool control method described above. This system can be a computer or similar system.

[0070] Optionally, another embodiment of the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the machine tool control method as described above.

[0071] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus.

[0072] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described apparatus and unit can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0073] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.

[0074] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of the embodiments of the present invention, depending on actual needs.

[0075] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0076] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. This is understood to mean that the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0077] The above are merely specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A machine tool control system, characterized in that, include: Input interface control module and output interface control module, The input interface control module is used to construct a standard function, which obtains multiple prerequisite information for machine tool operation through the input interface; The output interface control module is used to determine whether all the precondition information meets the preset judgment conditions. If not, the received external instruction is regarded as an invalid instruction; if it meets the conditions, the external instruction is received, and the standard function outputs control instructions through the output interface, and controls the machine tool operation according to the control instructions.

2. The machine tool control system according to claim 1, characterized in that, The input interface includes a machine tool input interface; The machine tool input interface is used to provide feedback on the machine tool's operating status and transmit data interaction signals. The machine tool's operating status includes machining in progress, paused, stopped, and faulty. The data interaction signals include the program number currently being processed. The machine tool input interface is also used to transmit alarm codes when an alarm occurs on the machine tool.

3. The machine tool control system according to claim 1, characterized in that, The input interface also includes a safety normal interface, a power-on normal interface, and a region normal interface; The security normal interface is used to detect the external security status. When the external security status is abnormal, the standard function terminates its operation. The normal power interface is used to detect the power supply status of the machine tool in real time. When the machine tool power is interrupted, the standard function terminates its operation. The normal interface of the area is used to detect the safety status of the area before the machine tool door is opened or closed, or before the machine tool peripheral equipment is operated.

4. The machine tool control system according to claim 1, characterized in that, The input interface also includes an operation mode interface, an initialization interface, a program number sending interface, a machining start interface, a machining pause interface, a machine tool shielding interface, an energy-saving mode interface, and an empty cycle mode interface; The operation mode interface is used to obtain the overall line operation mode, which includes automatic mode, manual mode and no-load operation mode. The initialization interface is used to initialize the cached signals and data within the standard function when in manual mode and when the preset initialization conditions are met; The program number sending interface is used to send a trigger signal for sending a program number to the machine tool, wherein the program number is program identification information sent to the machine tool; The start-up processing interface is used to trigger the machine tool to start processing when the machine tool meets the preset preparation conditions; The pause processing interface is used to trigger the machine tool to pause processing when the machine tool is in operation and the preset pause conditions are met; The shielded machine tool interface is used to trigger shielding of the machine tool when the machine tool malfunctions and needs repair or when mixed-production products do not require processing by the machine tool. The energy-saving mode interface is used to trigger the machine tool to enter the energy-saving operation state when the machine tool is idle or production is stopped and there is no need to cut off the power. The empty loop mode interface is used to trigger the machine tool shielded sensors and machine tool shielding parameters when the machine tool is debugging and verifying the action logic.

5. The machine tool control system according to claim 2, characterized in that, The input interface also includes a machine tool fixture clamping interface, a machine tool fixture releasing interface, a machine tool part placement completion interface, and a machine tool part removal completion interface; The machine tool fixture clamping interface is used to trigger the machine tool fixture to clamp the product after the product is placed into the machine tool by the robot arm. The machine tool fixture release interface is used to trigger the machine tool fixture to release the product when the robot arm needs to remove the product from inside the machine tool. The machine tool placement completion interface is triggered when the robot puts the product into the machine tool and exits the interaction area to return to the safe area, and the preset placement completion conditions are met. After the trigger, the machine tool's running status is "processing". The machine tool part removal completion interface is triggered when the robot arm removes the product from the machine tool, exits the interaction area and returns to the safe area, and the preset conditions are met. After the triggering, the machine tool operation status is stopped.

6. The machine tool control system according to claim 1, characterized in that, The output interfaces include a machine tool output interface, a fault output interface, a fault code generation interface, a machine tool preparation interface, a machine tool operation interface, a machine tool pause interface, a machine tool stop interface, a machine tool shielding output interface, and a machine tool feedback program number interface. The machine tool output interface is used to send control commands to the machine tool and transmit data interaction signals; The fault output interface is used to output a fault signal when there is an internal error in the standard function, non-compliant input data, or an error in the machine tool. The fault code generation interface is used to generate fault codes to assist in troubleshooting the cause of the fault, and the fault codes correspond one-to-one with the fault types. The machine tool preparation interface is used to output a ready signal when the machine tool is fault-free, the standard function is fault-free, and the machine tool correctly receives the program number. The machine tool operation interface is used to output an operation status signal when the machine tool is ready and the input interface sends a start signal, and the machine tool is in the machining state. The machine tool pause interface is used to output a pause status signal when the machine tool is in running state and a pause signal is triggered. The machine tool stop interface is used to output a stop status signal when the machine tool is in a stopped state. The machine tool shielding output interface is used to output a shielding status signal when the machine tool is shielded; The machine tool feedback program number interface is used to output the feedback program number when the machine tool receives the program number sent by the standard function and the program number is correct.

7. The machine tool control system according to claim 1, characterized in that, The output interface also includes a machine tool pre-machining completion interface, a machine tool machining completion interface, a machine tool fixture clamping in place interface, a machine tool fixture releasing in place interface, a machine tool requesting part placement interface, and a machine tool requesting part removal interface; The machine tool pre-processing completion interface is used to output a pre-completion signal when the machine tool processing progress reaches the first preset processing progress. The machine tool processing completion interface is used to output a completion signal when the machine tool processing progress reaches the second preset processing progress. The machine tool fixture clamping interface is used to output a clamping signal through the standard function when the machine tool receives a fixture clamping request and meets the preset clamping conditions, and the machine tool fixture completes the clamping action and feeds back a signal to the standard function. The machine tool fixture release-in-place interface is used to output a release-in-place signal through the standard function when the machine tool receives a fixture release request and meets the preset release-in-place conditions, and the machine tool fixture completes the release action and feeds back a signal to the standard function; The machine tool request placement interface is used to output a placement request signal when the machine tool is in a stopped state. The machine tool request pick-up interface is used to output a pick-up request signal when the machine tool outputs the completion signal.

8. A machine tool control method, characterized in that, Includes the following steps: A standard function is constructed, which obtains multiple prerequisite information for machine tool operation through an input interface; Determine whether all the aforementioned precondition information meets the preset judgment conditions. If not, the received external instruction is treated as an invalid instruction. If it meets the conditions, the external instruction is received, and the standard function outputs control instructions through the output interface, and controls the machine tool operation according to the control instructions.

9. A machine tool control system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the machine tool control method as described in claim 8.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, the machine tool control method as described in claim 8 is implemented.