Machine tool control method, device and machine tool
Through the cooperation of the machine tool body control module and the timing control monitoring module, the sub-module is started in sequence and the status is collected according to the startup priority, which solves the interference problem of the instant power-on of the CNC machine tool and improves the safety and stability of the machine tool.
Patent Information
- Application Number
- CN202211337808.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-28
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2042-10-28
AI Technical Summary
CNC machine tools are susceptible to interference sources at the moment of power-on, resulting in erroneous operation, which poses safety hazards and has high radiation immunity requirements.
The machine tool body control module and time-sequence control monitoring module are used to start the submodule in sequence according to the startup priority, and its status is collected during the startup process of each submodule to ensure normal startup and then proceed to the next step. The timing control monitoring module of independent power supply is used to reduce interference impact.
It effectively avoids misoperation during the moment of power-on operation of the machine tool, improves the safety and stability of the machine tool operation, and reduces the impact of interference on the machine tool.
Smart Images

Figure CN115562184B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent control of numerical control machine tools, and particularly to a machine tool control method, device and machine tool. Background Art
[0002] The operating environment of a numerical control machine tool is relatively complex. There are not only the operations of many high-power and large equipment, but also many surrounding interference sources. Especially at the moment when the machine tool is powered on, the interference sources may cause the machine tool to malfunction and pose a safety hazard.
[0003] Therefore, in order to avoid misoperation of the machine tool, higher requirements are imposed on the radiation emission and radiation immunity of the machine tool equipment. Summary of the Invention
[0004] In view of the above, it is necessary to provide a machine tool control method, device and machine tool, which can reduce the interference of interference sources on the machine tool and improve the safety of machine tool operation.
[0005] A machine tool control method is applied to a machine tool. The machine tool includes a machine tool body control module and a timing control and monitoring module. The machine tool control method includes:
[0006] The machine tool body control module and the timing control and monitoring module are started;
[0007] The timing control and monitoring module obtains at least one sub-module included in the machine tool body control module, and obtains the startup priority of each sub-module in the at least one sub-module;
[0008] The machine tool body control module normally starts each sub-module in sequence according to the startup priority, and collects the startup state of each sub-module through the timing control and monitoring module during the startup process of each sub-module; wherein, when each sub-module is normally started, the startup state of the corresponding sub-module collected by the timing control and monitoring module is the normal startup state.
[0009] According to a preferred embodiment of the present invention, the machine tool body control module normally starts each sub-module in sequence according to the startup priority, and collects the startup state of each sub-module through the timing control and monitoring module during the startup process of each sub-module, including:
[0010] The sub-module with the i-th startup priority in the machine tool body control module is started; wherein, the initial value of i is 1, and the value range of i is [1, N], and N is the total number of sub-modules in the machine tool body control module;
[0011] The timing control and monitoring module collects the startup state of the sub-module with the i-th startup priority;
[0012] If the timing control monitoring module determines that the startup status of the sub-module with the i-th startup priority is an abnormal startup status, it returns to execute the step of the timing control monitoring module to collect the startup status of the sub-module with the i-th startup priority.
[0013] If the timing control monitoring module determines that the startup status of the sub-module with the i-th startup priority is a normal startup status, it increments i by 1 to update the value of i.
[0014] If it is determined that i does not exceed N, it returns to execute the step of starting the sub-module with the i-th startup priority in the machine tool body control module.
[0015] If it is determined that i exceeds N, it saves the startup statuses corresponding to the sub-modules with the 1st to Nth startup priorities in the machine tool body control module.
[0016] According to a preferred embodiment of the present invention, when the timing control monitoring module determines that the startup status of the sub-module with the i-th startup priority is a normal startup status, it includes:
[0017] The timing control monitoring module collects the i-th to-be-detected status indicators of the sub-module with the i-th startup priority; wherein, the i-th to-be-detected status indicators include the power value and the input / output level value of the sub-module with the i-th startup priority.
[0018] If it is determined that the power value of the sub-module with the i-th startup priority belongs to the configured power value range, and the input / output level value of the sub-module with the i-th startup priority belongs to the configured level value range, it is determined that the startup status of the sub-module with the i-th startup priority is a normal startup status.
[0019] According to a preferred embodiment of the present invention, when the timing control monitoring module determines that the startup status of the sub-module with the i-th startup priority is an abnormal startup status, it includes:
[0020] The timing control monitoring module collects the i-th to-be-detected status indicators of the sub-module with the i-th startup priority; wherein, the i-th to-be-detected status indicators include the power value and the input / output level value of the sub-module with the i-th startup priority.
[0021] If it is determined that the power value of the sub-module with the i-th startup priority does not belong to the configured power value range, and / or the input / output level value of the sub-module with the i-th startup priority does not belong to the configured level value range, it is determined that the startup status of the sub-module with the i-th startup priority is an abnormal startup status.
[0022] According to a preferred embodiment of the present invention, before the machine tool body control module and the timing control monitoring module are started, the method further includes:
[0023] If the power supply of the machine tool is started, a start instruction is sent to the machine tool body control module and the timing control and monitoring module.
[0024] According to a preferred embodiment of the present invention, the machine tool body control module includes a main switch control sub-module, a first control sub-module, a second control sub-module, a machine tool main controller sub-module, and a pulse signal control sub-module;
[0025] Among them, the first control sub-module includes equipment that is separately arranged from the machine tool;
[0026] Among them, the second control sub-module includes a power module inside the machine tool.
[0027] According to a preferred embodiment of the present invention, the start priority of the main switch control sub-module is higher than that of the first control sub-module; the start priority of the first control sub-module is higher than that of the second control sub-module; the start priority of the second control sub-module is higher than that of the machine tool main controller sub-module; the start priority of the machine tool main controller sub-module is higher than that of the pulse signal control sub-module.
[0028] According to a preferred embodiment of the present invention, an independent power supply is provided in the timing control and monitoring module, and the timing control and monitoring module is separately arranged from the machine tool body control module.
[0029] A machine tool control device runs on a machine tool. The machine tool includes a machine tool body control module and a timing control and monitoring module. The machine tool control device includes:
[0030] The machine tool body control module and the timing control and monitoring module are started;
[0031] The timing control and monitoring module is used to obtain at least one sub-module included in the machine tool body control module, and obtain the start priority of each sub-module in the at least one sub-module;
[0032] The machine tool body control module is used to normally start each sub-module in sequence according to the start priority;
[0033] The timing control and monitoring module is further used to collect the start status of each sub-module during the start process of each sub-module; among them, when each sub-module is normally started, the start status of the corresponding sub-module collected by the timing control and monitoring module is the normal start status.
[0034] A machine tool, the machine tool includes:
[0035] A memory that stores at least one instruction; and
[0036] A processor that executes the instructions stored in the memory to implement the machine tool control method.
[0037] As can be seen from the above technical solution, the present invention can start each sub-module in sequence according to the start priority by the machine tool body control module of the machine tool, and collect the start status of each sub-module during the start process of each sub-module through the timing control monitoring module, so as to ensure that the corresponding sub-module is started after the start status of the sub-module is monitored as the normal start status, thereby avoiding potential safety hazards caused by misoperation of the machine tool due to interference sources at the moment of power-on of the machine tool, reducing interference, and improving the safety of the machine tool operation. Brief Description of the Drawings
[0038] Figure 1 is a flowchart of a preferred embodiment of the machine tool control method of the present invention.
[0039] Figure 2 is a functional module diagram of a preferred embodiment of the machine tool control device of the present invention.
[0040] Figure 3 is a schematic structural diagram of a machine tool of a preferred embodiment for implementing the machine tool control method of the present invention. Detailed Embodiment
[0041] In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be described in detail below with reference to the drawings and specific embodiments.
[0042] As Figure 1 shown, it is a flowchart of a preferred embodiment of the machine tool control method of the present invention. According to different requirements, the order of steps in this flowchart can be changed, and some steps can be omitted.
[0043] The machine tool control method is applied to one or more machine tools. The machine tool is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions. Its hardware includes but is not limited to microprocessors, application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.
[0044] The network where the machine tool is located includes but is not limited to the Internet, wide area network, metropolitan area network, local area network, virtual private network (VPN), etc.
[0045] The machine tool control method is applied to a machine tool. The machine tool includes a machine tool body control module and a timing control monitoring module. The machine tool control method includes:
[0046] S10, the machine tool body control module and the timing control monitoring module are started.
[0047] In this embodiment, the machine tool may be a CNC machine tool, and the operation of the machine tool involves a variety of high-power devices and corresponding equipment devices. Therefore, there is more radiation interference around the machine tool, and the requirements for the radiation immunity of the machine tool are also higher.
[0048] In this embodiment, the machine tool body control module is used to control the startup sequence and startup process of each submodule in the machine tool body.
[0049] In this embodiment, the timing control monitoring module is used to collect the startup status of each sub-module according to the startup timing of each sub-module.
[0050] In this embodiment, before the machine tool body control module and the timing control monitoring module are started, the method further includes:
[0051] If the power of the machine tool is started, a start instruction is sent to the machine tool body control module and the timing control monitoring module.
[0052] Specifically, the power supply of the machine tool may be a configured independent power supply.
[0053] S11, the timing control monitoring module obtains at least one submodule included in the machine tool body control module, and obtains the startup priority of each submodule in the at least one submodule.
[0054] Specifically, the machine tool body control module may include, but is not limited to: a main switch control submodule, a first control submodule, a second control submodule, a machine tool main controller submodule, and a pulse signal control submodule;
[0055] Among them, the main switch control submodule includes electrical components such as transformers, reactors, circuit breakers, contactors, arc extinguishers, etc. This module mainly transforms, filters, and controls the power input from the power grid, and outputs the stable and reliable power required by the controller or control device. For example: a transformer is a static electrical appliance that converts an AC voltage of a certain value into an AC voltage of the same frequency but different values; a reactor is also called an inductor, which can prevent current changes; a circuit breaker can effectively protect the electrical equipment connected in series behind it; a contactor is used to frequently connect or disconnect the main circuit, and is composed of electromagnetic mechanisms, contact systems, arc extinguishing devices and other components; an arc extinguisher can extinguish the arc, prevent the arc from breaking the circuit, prevent equipment damage, improve the switching capacity, and protect personnel safety.
[0056] Among them, the first control sub-module includes devices separately arranged from the machine tool. For example, the first control sub-module may include equipment accessories such as an oil injector, a chip conveyor, and a tool magazine. This module mainly ensures that the machine tool can operate normally to process workpieces. Among them, the oil injector is mainly used to supply lubricating oil to the processing machine tool; the chip conveyor is mainly used to collect various metal and non-metal waste chips generated by the machine and transfer the waste chips to the collection vehicle; the tool magazine is a device that provides the tool storage and tool change requirements needed in the automated processing process, and it transfers the required cutting tools from the tool magazine to the spindle clamping mechanism.
[0057] Among them, the second control sub-module includes the power module inside the machine tool. For example, on a three-axis numerical control system, the second control sub-module mainly includes an X-axis driver, a Y-axis driver, a Z-axis driver, a spindle driver, as well as an X-axis motor, a Y-axis motor, a Z-axis motor, and a spindle motor. This module has the function of adjusting the workpiece coordinates and processing the workpiece during the processing.
[0058] Among them, the main controller sub-module of the machine tool mainly includes a central control unit and a human-machine interaction system. The main controller sub-module of the machine tool is the core controller of the machine tool, which issues machine tool operation and processing instructions. And, multiple communication lines are used for EtherCAT (Ethernet Control Automation Technology) field bus communication between the central control unit and the human-machine interaction system.
[0059] Among them, the pulse signal control sub-module mainly includes an EtherCAT to pulse board and an I / O (Input / Output) control module. This module mainly collects and controls various I / O signals of the machine tool and communicates with the driver, such as safety doors, manipulators, alarm signals, etc.
[0060] In this embodiment, the start priority of the main switch control sub-module is higher than that of the first control sub-module; the start priority of the first control sub-module is higher than that of the second control sub-module; the start priority of the second control sub-module is higher than that of the main controller sub-module of the machine tool; the start priority of the main controller sub-module of the machine tool is higher than that of the pulse signal control sub-module.
[0061] S12, the machine tool body control module normally starts each sub-module in sequence according to the start priority, and collects the start status of each sub-module during the start process of each sub-module through the timing control and monitoring module; among them, when each sub-module starts normally, the start status of the corresponding sub-module collected by the timing control and monitoring module is the normal start status.
[0062] In this embodiment, the start status of each sub-module may include a normal start status and an abnormal start status.
[0063] In this embodiment, the machine tool body control module normally starts each sub-module in sequence according to the startup priority, and the timing control and monitoring module collects the startup status of each sub-module during the startup process of each sub-module, including:
[0064] The sub-module with the i-th startup priority in the machine tool body control module starts; where the initial value of i is 1, and the value range of i is [1, N], and N is the total number of sub-modules in the machine tool body control module;
[0065] The timing control and monitoring module collects the startup status of the sub-module with the i-th startup priority;
[0066] If the timing control and monitoring module determines that the startup status of the sub-module with the i-th startup priority is an abnormal startup status, it returns to execute the step of the timing control and monitoring module collecting the startup status of the sub-module with the i-th startup priority;
[0067] If the timing control and monitoring module determines that the startup status of the sub-module with the i-th startup priority is a normal startup status, it increments i by 1 to update the value of i;
[0068] If it is determined that i does not exceed N, return to execute the step of starting the sub-module with the i-th startup priority in the machine tool body control module;
[0069] If it is determined that i exceeds N, save the startup statuses corresponding to the sub-modules with the 1st startup priority to the N-th startup priority in the machine tool body control module.
[0070] Specifically, in the above embodiment, only when the timing control and monitoring module determines that the startup status of the current sub-module is a normal startup status, will the next sub-module be started. In this way, since the previously started sub-module has been normally started, it will not affect the startup process of the next sub-module, making the startup of the next sub-module not affected by the radiation at the moment of power-on. Since the possibility of interference is reduced (for example: the pulse control sub-module is relatively stable in the initial startup state and will not generate some false pulses due to the high-frequency interference generated by the startup of surrounding large equipment, avoiding problems such as inaccurate initial positioning accuracy of the machine tool), the entire machine tool will not have safety hazards due to misoperations caused by interference sources, and at the same time, ensure that each sub-module operates normally. Finally, the machine tool can work normally and stably, improving the overall stability of the machine tool.
[0071] Moreover, in the above embodiments, when the timing control monitoring module determines that the startup status of the current sub-module is an abnormal startup status, it returns to continue collecting the startup status of the current sub-module, and performs such cyclic operations. By controlling the startup timing of each module of the machine tool and its accessories, the impact of interference sources on the machine tool control system is reduced from the source, and potential safety hazards caused by misoperations due to non-human factors during operation are reduced.
[0072] In this embodiment, if the timing control monitoring module determines that the startup status of the sub-module with the i-th startup priority is a normal startup status, it includes:
[0073] The timing control monitoring module collects the i-th to-be-detected status indicators of the sub-module with the i-th startup priority; wherein, the i-th to-be-detected status indicators include the power value and the input / output level value of the sub-module with the i-th startup priority;
[0074] If it is determined that the power value of the sub-module with the i-th startup priority belongs to the configured power value range, and the input / output level value of the sub-module with the i-th startup priority belongs to the configured level value range, then it is determined that the startup status of the sub-module with the i-th startup priority is a normal startup status.
[0075] In this embodiment, if the timing control monitoring module determines that the startup status of the sub-module with the i-th startup priority is an abnormal startup status, it includes:
[0076] The timing control monitoring module collects the i-th to-be-detected status indicators of the sub-module with the i-th startup priority; wherein, the i-th to-be-detected status indicators include the power value and the input / output level value of the sub-module with the i-th startup priority;
[0077] If it is determined that the power value of the sub-module with the i-th startup priority does not belong to the configured power value range, and / or the input / output level value of the sub-module with the i-th startup priority does not belong to the configured level value range, then it is determined that the startup status of the sub-module with the i-th startup priority is an abnormal startup status.
[0078] Wherein, the configured power value range and the configured level value range can be configured according to the actual operating environment, and the present invention does not limit them.
[0079] In this embodiment, after determining that the startup status of the sub-module with the i-th startup priority is an abnormal startup status, an abnormal prompt message can be generated according to specific abnormal indicators, and the abnormal prompt message is sent to a specified terminal device to prompt relevant staff to perform abnormal troubleshooting in a timely manner to ensure the normal operation of the machine tool.
[0080] After excluding anomalies, the corresponding sub-module can be started continuously. In this way, when the timing control and monitoring module determines that the startup state of the corresponding sub-module is the normal startup state, the next sub-module can be started according to the startup priority; otherwise, the timing control and monitoring module continues to collect the startup state of the corresponding sub-module.
[0081] In this embodiment, the timing control and monitoring module adopts an independent power supply and is separated from the machine tool body control module.
[0082] By setting an independent power supply for the timing control and monitoring module, it is possible to avoid the influence of the power supply fluctuation of the machine tool body control module on the timing control and monitoring module.
[0083] It can be seen from the above technical solutions that the present invention can start each sub-module in sequence according to the startup priority through the machine tool body control module of the machine tool, and collect the startup state of each sub-module during the startup process of each sub-module through the timing control and monitoring module, so as to ensure that the corresponding sub-module is started after the startup state of the sub-module is monitored as the normal startup state, thereby avoiding potential safety hazards caused by misoperation of the machine tool due to interference sources at the moment of power-on of the machine tool, reducing interference, and improving the safety of the machine tool operation.
[0084] As Figure 2 shown, it is a functional module diagram of a preferred embodiment of the machine tool control device of the present invention. The machine tool control device 11 includes a machine tool body control module 110 and a timing control and monitoring module 111. The module / unit referred to in the present invention means a series of computer program segments that can be executed by a processor and can complete fixed functions, and are stored in a memory. In this embodiment, the functions of each module / unit will be described in detail in subsequent embodiments.
[0085] The machine tool control device 11 runs on the machine tool and includes:
[0086] The machine tool body control module 110 and the timing control and monitoring module 111 are started.
[0087] In this embodiment, the machine tool can be a numerical control machine tool. The operation of the machine tool involves a variety of high-power devices and corresponding equipment devices. Therefore, there are also more radiation interferences around the machine tool, and the requirements for the radiation immunity of the machine tool are also higher.
[0088] In this embodiment, the machine tool body control module 110 is used to control the startup sequence and startup process of each sub-module in the machine tool body.
[0089] In this embodiment, the timing control and monitoring module 111 is used to collect the startup state of each sub-module according to the startup timing of each sub-module.
[0090] In this embodiment, before the machine tool body control module 110 and the timing control and monitoring module 111 are started, if the power supply of the machine tool is started, a start instruction is sent to the machine tool body control module 110 and the timing control and monitoring module 111.
[0091] Specifically, the power supply of the machine tool can be a configured independent power supply.
[0092] The timing control and monitoring module 111 is configured to obtain at least one sub-module included in the machine tool body control module 110, and obtain the start priority of each sub-module in the at least one sub-module.
[0093] Specifically, the machine tool body control module 110 may include, but is not limited to: a main switch control sub-module, a first control sub-module, a second control sub-module, a machine tool main controller sub-module, and a pulse signal control sub-module;
[0094] Among them, the main switch control sub-module includes electrical components such as a transformer, a reactor, a circuit breaker, a contactor, and an arc extinguisher. This module mainly transforms, filters, and controls the power supply input from the power grid, and outputs a stable and reliable power supply required by the controller or control device. For example: A transformer is a static electrical appliance that transforms an AC voltage of a certain value into an AC voltage with the same frequency but different value; A reactor, also called an inductor, can play a role in preventing current changes; A circuit breaker can effectively protect the electrical equipment connected in series behind it; A contactor is used to frequently connect or disconnect the main circuit and is composed of components such as an electromagnetic mechanism, a contact system, and an arc extinguishing device; An arc extinguisher can extinguish the arc, prevent the arc from causing an open circuit, prevent equipment damage, improve the switching ability of the switch, and protect the safety of personnel.
[0095] Among them, the first control sub-module includes equipment separately arranged from the machine tool. For example: The first control sub-module may include equipment accessories such as an oil injector, a chip conveyor, and a tool magazine. This module mainly ensures that the machine tool can operate normally to process workpieces. Among them, the oil injector is mainly used to supply lubricating oil to the processing machine tool; The chip conveyor is mainly used to collect various metal and non-metal waste chips generated by the machine and transport the waste chips to the collection vehicle; The tool magazine is a device that provides the tool storage and tool change requirements during the automated processing process, and it transfers the required cutting tools from the tool magazine to the spindle clamping mechanism.
[0096] Among them, the second control sub-module includes the power module inside the machine tool. For example: The second control sub-module mainly includes an X-axis driver, a Y-axis driver, a Z-axis driver, a spindle driver, as well as an X-axis motor, a Y-axis motor, a Z-axis motor, and a spindle motor in a three-axis numerical control system. This module has the function of adjusting the workpiece coordinates and processing the workpiece during the processing process.
[0097] Among them, the main controller sub-module of the machine tool mainly includes a central control unit and a human-machine interaction system. The main controller sub-module of the machine tool is the core controller of the machine tool, which issues machine tool operation and processing instructions. Moreover, multiple communication lines are used for EtherCAT (Ethernet Control Automation Technology) fieldbus communication between the central control unit and the human-machine interaction system.
[0098] Among them, the pulse signal control sub-module mainly includes an EtherCAT to pulse board and an I / O (Input / Output) control module. This module mainly collects and controls various I / O signals of the machine tool and communicates with the driver, such as safety doors, manipulators, alarm signals, etc.
[0099] In this embodiment, the startup priority of the main switch control sub-module is higher than that of the first control sub-module; the startup priority of the first control sub-module is higher than that of the second control sub-module; the startup priority of the second control sub-module is higher than that of the main controller sub-module of the machine tool; the startup priority of the main controller sub-module of the machine tool is higher than that of the pulse signal control sub-module.
[0100] The machine tool body control module 110 is used to normally start each sub-module in sequence according to the startup priority.
[0101] The timing control and monitoring module 111 is further used to collect the startup status of each sub-module during the startup process of each sub-module; among them, when each sub-module starts normally, the startup status of the corresponding sub-module collected by the timing control and monitoring module is the normal startup status.
[0102] In this embodiment, the startup status of each sub-module may include a normal startup status and an abnormal startup status.
[0103] In this embodiment, the machine tool body control module 110 normally starts each sub-module in sequence according to the startup priority, and collects the startup status of each sub-module through the timing control and monitoring module 111 during the startup process of each sub-module, including:
[0104] The sub-module with the i-th startup priority in the machine tool body control module 110 starts; where the initial value of i is 1, and the value range of i is [1, N], and N is the total number of sub-modules in the machine tool body control module 110;
[0105] The timing control and monitoring module 111 collects the startup status of the sub-module with the i-th startup priority.
[0106] If the timing control monitoring module 111 determines that the startup status of the sub-module with the i-th startup priority is an abnormal startup status, it returns to execute the step of the timing control monitoring module 111 to collect the startup status of the sub-module with the i-th startup priority;
[0107] If the timing control monitoring module 111 determines that the startup status of the sub-module with the i-th startup priority is a normal startup status, it increments i by 1 to update the value of i;
[0108] If it is determined that i does not exceed N, return to execute the step of starting the sub-module with the i-th startup priority in the machine tool body control module 110;
[0109] If it is determined that i exceeds N, save the startup statuses corresponding to the sub-modules from the sub-module with the 1st startup priority to the sub-module with the Nth startup priority in the machine tool body control module 110.
[0110] Specifically, in the above embodiment, only when the timing control monitoring module 111 determines that the startup status of the current sub-module is a normal startup status, will the next sub-module be started. In this way, since the previously started sub-module has been successfully started, it will not affect the startup process of the next sub-module, enabling the startup of the next sub-module to be free from the interference of the radiation at the moment of power-on. As the possibility of interference is reduced (for example: the pulse control sub-module is relatively stable in the initial startup state and will not generate some false pulses due to the high-frequency interference generated by the startup of surrounding large equipment, avoiding problems such as inaccurate initial positioning accuracy of the machine tool), the entire machine tool will not have safety hazards caused by misoperations due to interference sources. At the same time, ensuring the normal operation of each sub-module, ultimately the machine tool can operate normally and stably, improving the overall stability of the machine tool.
[0111] Moreover, in the above embodiment, when the timing control monitoring module 111 determines that the startup status of the current sub-module is an abnormal startup status, it returns to continue collecting the startup status of the current sub-module, and operates in such a loop. By controlling the startup timing of each module of the machine tool and its accessories, the impact of interference sources on the machine tool control system is reduced from the source, and the safety hazards caused by misoperations due to non-human factors during operation are reduced.
[0112] In this embodiment, when the timing control monitoring module 111 determines that the startup status of the sub-module with the i-th startup priority is a normal startup status, it includes:
[0113] The timing control monitoring module 111 collects the i-th to-be-detected status index of the sub-module with the i-th startup priority; wherein, the i-th to-be-detected status index includes the power value and the input / output level value of the sub-module with the i-th startup priority;
[0114] If it is determined that the power value of the sub-module with the i-th start priority belongs to the configured power value range, and the input / output level value of the sub-module with the i-th start priority belongs to the configured level value range, then the start state of the sub-module with the i-th start priority is determined to be the normal start state.
[0115] In this embodiment, if the timing control monitoring module 111 determines that the start state of the sub-module with the i-th start priority is an abnormal start state, it includes:
[0116] The timing control monitoring module 111 collects the i-th state index to be detected of the sub-module with the i-th start priority; wherein, the i-th state index to be detected includes the power value and the input / output level value of the sub-module with the i-th start priority;
[0117] If it is determined that the power value of the sub-module with the i-th start priority does not belong to the configured power value range, and / or the input / output level value of the sub-module with the i-th start priority does not belong to the configured level value range, then the start state of the sub-module with the i-th start priority is determined to be an abnormal start state.
[0118] Wherein, the configured power value range and the configured level value range can be configured according to the actual operating environment, and the present invention does not limit.
[0119] In this embodiment, after determining that the start state of the sub-module with the i-th start priority is an abnormal start state, an abnormal prompt message can be generated according to the specific abnormal index, and the abnormal prompt message is sent to the specified terminal device to prompt the relevant staff to perform abnormal troubleshooting in time to ensure the normal operation of the machine tool.
[0120] After the abnormality is excluded, the corresponding sub-module can be started continuously. In this way, when the timing control monitoring module 111 determines that the start state of the corresponding sub-module is the normal start state, the next sub-module can be started according to the start priority, otherwise the timing control monitoring module 111 continues to collect the start state of the corresponding sub-module.
[0121] In this embodiment, the timing control monitoring module 111 adopts an independent power supply and is separated from the machine tool body control module 110.
[0122] By setting an independent power supply for the timing control monitoring module 111, it is possible to avoid the influence of the power fluctuation of the machine tool body control module 110 on the timing control monitoring module 111.
[0123] As can be seen from the above technical solutions, the present invention can start each sub-module in sequence according to the startup priority by the machine tool body control module of the machine tool, and collect the startup status of each sub-module during the startup process of each sub-module through the timing control and monitoring module, so as to ensure that the corresponding sub-module is started only when the startup status of the sub-module is detected as the normal startup status, thereby avoiding potential safety hazards caused by misoperation of the machine tool due to interference sources at the moment of machine tool power-on, reducing interference, and improving the operating safety of the machine tool.
[0124] As Figure 3 shown, it is a schematic structural diagram of a machine tool according to a preferred embodiment of the method for implementing machine tool control of the present invention.
[0125] The machine tool 1 may include a memory 12, a processor 13, and a bus, and may also include a computer program stored in the memory 12 and executable on the processor 13, such as a machine tool control program.
[0126] Those skilled in the art can understand that the schematic diagram is only an example of the machine tool 1 and does not constitute a limitation on the machine tool 1. The machine tool 1 may be a bus-type structure or a star-type structure. The machine tool 1 may also include more or fewer other hardware or software than shown in the figure, or different component arrangements. For example, the machine tool 1 may also include input / output devices, network access devices, etc.
[0127] It should be noted that the machine tool 1 is only an example. Other existing or future possible electronic products that can be adapted to the present invention should also be included within the protection scope of the present invention and are hereby incorporated by reference.
[0128] Among them, the memory 12 includes at least one type of readable storage medium. The readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (such as SD or DX memory, etc.), magnetic memory, magnetic disk, optical disc, etc. The memory 12 may be an internal storage unit of the machine tool 1 in some embodiments, such as the mobile hard disk of the machine tool 1. The memory 12 may also be an external storage device of the machine tool 1 in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a FlashCard, etc. equipped on the machine tool 1. Further, the memory 12 may include both an internal storage unit and an external storage device of the machine tool 1. The memory 12 can be used not only to store application software installed on the machine tool 1 and various types of data, such as the code of the machine tool control program, etc., but also to temporarily store data that has been output or will be output.
[0129] In some embodiments, the processor 13 may be composed of an integrated circuit. For example, it may be composed of a single packaged integrated circuit, or may be composed of multiple packaged integrated circuits with the same or different functions, including a combination of one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips, etc. The processor 13 is the control core (Control Unit) of the machine tool 1, connecting all components of the entire machine tool 1 through various interfaces and lines, and by running or executing programs or modules stored in the memory 12 (such as executing a machine tool control program, etc.), and calling data stored in the memory 12, to execute various functions of the machine tool 1 and process data.
[0130] The processor 13 executes the operating system of the machine tool 1 and various installed application programs. The processor 13 executes the application programs to implement the steps in the above-mentioned embodiments of various machine tool control methods, such as Figure 1 the steps shown.
[0131] Exemplarily, the computer program may be divided into one or more modules / units, and the one or more modules / units are stored in the memory 12 and executed by the processor 13 to complete the present invention. The one or more modules / units may be a series of computer-readable instruction segments capable of performing specific functions, and these instruction segments are used to describe the execution process of the computer program in the machine tool 1. For example, the computer program may be divided into a machine tool body control module 110 and a timing control and monitoring module 111.
[0132] The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. This bus may be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, in Figure 3 it is only represented by a single straight line, but it does not mean that there is only one bus or one type of bus. The bus is set to realize the connection and communication between the memory 12 and at least one processor 13, etc.
[0133] Although not shown, the machine tool 1 may further include a power source (such as a battery) for supplying power to various components. Preferably, the power source may be logically connected to the at least one processor 13 through a power management device, so as to implement functions such as charge management, discharge management, and power consumption management through the power management device. The power source may also include any components such as one or more DC or AC power sources, a recharge device, a power failure detection circuit, a power converter or inverter, and a power status indicator. The machine tool 1 may also include various sensors, a Bluetooth module, a Wi-Fi module, etc., which will not be elaborated here.
[0134] Further, the machine tool 1 may further include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the machine tool 1 and other machine tools.
[0135] Optionally, the machine tool 1 may further include a user interface. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)). Optionally, the user interface may also be a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch liquid crystal display, and an OLED (Organic Light-Emitting Diode) toucher, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display the information processed in the machine tool 1 and to display a visual user interface.
[0136] It should be understood that the above embodiments are only for illustration purposes and are not limited by this structure in the scope of the patent application.
[0137] Figure 3 Only the machine tool 1 with components 12-13 is shown. Those skilled in the art can understand that Figure 3 the shown structure does not constitute a limitation on the machine tool 1, and it may include fewer or more components than shown, or combine some components, or have different component arrangements.
[0138] Combined with Figure 1 , the memory 12 in the machine tool 1 stores multiple instructions to implement a machine tool control method, and the processor 13 can execute the multiple instructions to implement:
[0139] The machine tool body control module and the timing control monitoring module are started;
[0140] The timing control monitoring module obtains at least one sub-module included in the machine tool body control module, and obtains the start priority of each sub-module in the at least one sub-module;
[0141] The machine tool body control module normally starts each sub-module in sequence according to the startup priority, and collects the startup status of each sub-module during the startup process of each sub-module through the timing control and monitoring module; wherein, when each sub-module starts up normally, the startup status of the corresponding sub-module collected by the timing control and monitoring module is the normal startup status.
[0142] Specifically, the specific implementation method of the above instructions by the processor 13 can refer to Figure 1 the description of the relevant steps in the corresponding embodiments, which will not be elaborated here.
[0143] It should be noted that all the data involved in this case are legally obtained.
[0144] In several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0145] For those skilled in the art, it is obvious that the present invention is not limited to the details of the above exemplary embodiments, and can be implemented in other specific forms without departing from the spirit or basic characteristics of the present invention.
[0146] Therefore, from any point of view, the embodiments should be regarded as exemplary and non-limiting. The scope of the present invention is defined by the appended claims rather than the above description. Therefore, all changes falling within the meaning and scope of the equivalent elements of the claims are intended to be included in the present invention. Any reference signs in the claims should not be regarded as limiting the claimed rights.
[0147] In addition, obviously, the term "including" does not exclude other units or steps, and the singular does not exclude the plural. The multiple units or devices described in the present invention can also be implemented by one unit or device through software or hardware. The terms such as first and second are used to represent names and do not represent any specific order.
[0148] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present invention.
Claims
1. A machine tool control method, applied to a machine tool, characterized in that The machine tool includes a machine tool body control module and a timing control and monitoring module, and the machine tool control method includes: The machine tool body control module and the timing control and monitoring module are started; The timing control and monitoring module obtains at least one sub-module included in the machine tool body control module, and obtains the start priority of each sub-module in the at least one sub-module; The machine tool body control module normally starts each sub-module in sequence according to the start priority, and collects the start status of each sub-module during the start process of each sub-module through the timing control and monitoring module; wherein, when each sub-module is normally started, the start status of the corresponding sub-module collected by the timing control and monitoring module is the normal start status; Among them, the machine tool body control module normally starts each sub-module in sequence according to the start priority, and collects the start status of each sub-module during the start process of each sub-module through the timing control and monitoring module, including: the sub-module with the i-th start priority in the machine tool body control module is started; wherein, the initial value of i is 1, and the value range of i is [1, N], and N is the total number of sub-modules in the machine tool body control module; the timing control and monitoring module collects the start status of the sub-module with the i-th start priority; if the timing control and monitoring module determines that the start status of the sub-module with the i-th start priority is an abnormal start status, it returns to execute the step of the timing control and monitoring module collecting the start status of the sub-module with the i-th start priority; if the timing control and monitoring module determines that the start status of the sub-module with the i-th start priority is a normal start status, it increments i by 1 to update the value of i; if it is determined that i does not exceed N, it returns to execute the step of starting the sub-module with the i-th start priority in the machine tool body control module; if it is determined that i exceeds N, it saves the start status corresponding to the sub-module with the 1st start priority to the sub-module with the Nth start priority in the machine tool body control module.
2. The method according to claim 1, characterized in that, If the timing control and monitoring module determines that the start status of the sub-module with the i-th start priority is a normal start status, it includes: The timing control and monitoring module collects the i-th to-be-detected status index of the sub-module with the i-th start priority; wherein, the i-th to-be-detected status index includes the power value and the input / output level value of the sub-module with the i-th start priority; If it is determined that the power value of the sub-module with the i-th start priority belongs to the configured power value range, and the input / output level value of the sub-module with the i-th start priority belongs to the configured level value range, it is determined that the start status of the sub-module with the i-th start priority is a normal start status.
3. The method according to claim 2, wherein If the timing control and monitoring module determines that the start status of the sub-module with the i-th start priority is an abnormal start status, it includes: The timing control and monitoring module collects the i-th to-be-detected status index of the sub-module with the i-th start priority; wherein, the i-th to-be-detected status index includes the power value and the input / output level value of the sub-module with the i-th start priority; If it is determined that the power value of the sub-module with the i-th startup priority does not belong to the configured power value range, and / or the input / output level value of the sub-module with the i-th startup priority does not belong to the configured level value range, then it is determined that the startup state of the sub-module with the i-th startup priority is an abnormal startup state.
4. The method according to claim 1, wherein Before the machine tool body control module and the timing control and monitoring module are started, the method further includes: If the power supply of the machine tool is started, a startup instruction is sent to the machine tool body control module and the timing control and monitoring module.
5. The method according to claim 1, wherein The machine tool body control module includes a main switch control sub-module, a first control sub-module, a second control sub-module, a machine tool main controller sub-module, and a pulse signal control sub-module; Among them, the first control sub-module includes equipment separately arranged from the machine tool; Among them, the second control sub-module includes a power module inside the machine tool.
6. The method according to claim 5, wherein The startup priority of the main switch control sub-module is higher than that of the first control sub-module; the startup priority of the first control sub-module is higher than that of the second control sub-module; the startup priority of the second control sub-module is higher than that of the machine tool main controller sub-module; the startup priority of the machine tool main controller sub-module is higher than that of the pulse signal control sub-module.
7. The method according to claim 1, wherein An independent power supply is provided in the timing control and monitoring module, and the timing control and monitoring module is separately arranged from the machine tool body control module.
8. A machine tool control device, operating on a machine tool, wherein the machine tool is controlled by using the machine tool control method according to any one of claims 1-7, characterized in that The machine tool includes a machine tool body control module and a timing control and monitoring module, and the machine tool control device includes: starting the machine tool body control module and the timing control and monitoring module; The timing control and monitoring module is used to obtain at least one sub-module included in the machine tool body control module, and obtain the startup priority of each sub-module in the at least one sub-module; The machine tool body control module is used to normally start each sub-module in sequence according to the startup priority; The timing control and monitoring module is further used to collect the startup state of each sub-module during the startup process of each sub-module; among them, when each sub-module is normally started, the startup state of the corresponding sub-module collected by the timing control and monitoring module is a normal startup state.
9. A machine tool, characterized in that, The machine tool includes: A memory that stores at least one instruction; and A processor that executes the instructions stored in the memory to implement the machine tool control method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Intelligent detecting system and detecting method for detecting fault of device
CN103250107A
Multifunctional motion control method based on STM32F4
CN111580470A