Hand-held operating device, machine tool, and machine tool control method

By introducing a touch serial port screen, a rotary encoder and an acceleration sensor into the handheld operating device and combining it with the main control module to achieve intelligent control, the problems of single function and high energy consumption of traditional handheld operating devices are solved, providing an intuitive interactive and low-energy solution.

CN120652910APending Publication Date: 2025-09-16GENERAL TECH GRP MASCH TOOL ENG RES INST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510800239.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-16
Publication Date
2025-09-16

AI Technical Summary

Technical Problem

Traditional handheld operating devices lack intelligent and expandable functional support, and the screen remains on when no one is using it, resulting in excessive energy consumption.

Method used

It uses a touch serial port screen, a rotary encoder and an acceleration sensor, and realizes intelligent control through the main control module. It automatically turns off the touch serial port screen and enters standby mode when no one is using it. It also uses a modular structure design to improve scalability.

Benefits of technology

It provides an intuitive and friendly user interface, improves operational convenience and accuracy, reduces energy consumption when unmanned, extends equipment life, and has good scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120652910A_ABST
    Figure CN120652910A_ABST
Patent Text Reader

Abstract

The invention provides a handheld operation device, a machine tool and a machine tool control method, and relates to the technical field of industrial control equipment.The device comprises a main control module and a hand wheel control module, the hand wheel control module comprises a touch serial port screen, a rotary encoder and an acceleration sensor, and the main control module is in control connection with a numerical control system to be controlled; the main control module is respectively connected with the touch serial port screen, the rotary encoder and the acceleration sensor; the touch serial port screen provides a visual and friendly user interface, information display is rich, real-time feedback is obtained, and operation convenience and accuracy are improved; the rotary encoder enables the device to respond to operation of a user with high precision, and visual and natural interaction experience is provided; the acceleration sensor detects the use state of the device, the touch serial port screen is closed when the device is not used for a long time, the device enters a standby mode, energy consumption is reduced, and screen aging is delayed; the whole device is of a modular structure and has good expandability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of industrial control equipment, and in particular to a handheld operating device, a machine tool, and a machine tool control method. Background Art

[0002] In the field of industrial control, handheld operating devices, as an important input device, are widely used in various industrial control scenarios such as CNC machine tools, robot operations, and precision instruments.

[0003] Traditional handheld operating devices have certain limitations in terms of functionality and interactive experience. They are usually limited to axis selection and magnification adjustment, such as selecting the X-axis, Y-axis or Z-axis through a knob, or adjusting the magnification to 1x, 10x or 100x through a button. They lack support for more intelligent and expandable functions. At the same time, traditional handheld operating devices are equipped with ordinary LED or LCD screens that can only display limited information, and the screens remain on at all times when no one is using them, resulting in excessive energy consumption of the handheld operating devices. Summary of the Invention

[0004] In response to the above-mentioned shortcomings of the existing technology, the present invention provides a handheld operating device, a machine tool and a machine tool control method, which solve the technical problems in the existing technology that traditional handheld operating devices lack support for intelligent and extensible functions, and the energy consumption is too high when the screen is kept on when no one is using it.

[0005] A first aspect of the present invention provides a handheld operating device, comprising a main control module and a handwheel control module, wherein the handwheel control module comprises a touch serial port screen, a rotary encoder and an acceleration sensor, and the main control module is connected to a numerical control system to be controlled;

[0006] The main control module is connected to the touch serial port screen, the rotary encoder and the acceleration sensor respectively. The touch serial port screen is used to receive control instructions input by the user and transmit them to the main control module. The rotary encoder is used to detect the operation actions performed by the user on the handheld operating device and convert them into control signals and transmit them to the main control module. The acceleration sensor is used to detect the usage status of the handheld operating device and generate a motion detection signal and transmit it to the main control module.

[0007] The main control module is used to generate a drive signal according to the control instruction and the control signal, and control the operation of the CNC system to be controlled based on the drive signal, and at the same time obtain the working status information of the CNC system to be controlled, and transmit the working status information to the touch serial port screen for display;

[0008] When the main control module determines that the handheld operating device is in a non-working state based on the motion detection signal, the main control module controls the touch serial port screen to turn off and enables the handheld operating device to enter a standby mode.

[0009] Optionally, the main control module includes a signal output circuit and a signal isolation transmission circuit; the rotary encoder is connected to the PLC control unit in the CNC system to be controlled through the signal output circuit and the signal isolation transmission circuit in turn; the rotary encoder outputs two square wave pulse signals with a phase difference in response to the operation performed by the user on the handheld operating device, and the square wave pulse signals are conditioned by the signal output circuit and isolated by the signal isolation transmission circuit in turn, and then transmitted to the PLC control unit as the control signal.

[0010] Optionally, the signal output circuit includes a first resistor, a second resistor, a third resistor, a fourth resistor, a first capacitor, a second capacitor, a first output terminal, a second output terminal and an external power supply; the A-phase output terminal of the rotary encoder is connected to the first output terminal through the third resistor, the external power supply is connected to the A-phase output terminal through the first resistor, the first end of the first capacitor is connected to the first output terminal, the second end of the first capacitor is connected to the ground terminal, and the first output terminal is connected to the signal isolation transmission circuit; the B-phase output terminal of the rotary encoder is connected to the second output terminal through the fourth resistor, the external power supply is connected to the B-phase output terminal through the second resistor, the first end of the second capacitor is connected to the second output terminal, the second end of the second capacitor is connected to the ground terminal, and the second output terminal is connected to the signal isolation transmission circuit; the C-phase output terminal of the rotary encoder is connected to the ground terminal.

[0011] Optionally, the signal isolation transmission circuit includes a first isolation transmission circuit and a second isolation transmission circuit; the first isolation transmission circuit includes a first photoelectric coupler, a fifth resistor, a sixth resistor, a first LED indicator light, an external power supply, a first working power supply and a second working power supply; the external power supply is connected to the anode of the light-emitting diode in the first photoelectric coupler through the first LED indicator light, the first output end is connected to the cathode of the light-emitting diode in the first photoelectric coupler through the fifth resistor, the first working power supply is connected to the collector of the photosensitive transistor in the first photoelectric coupler, the emitter of the photosensitive transistor in the first photoelectric coupler is connected to the input end of the PLC control unit, and the second working power supply is connected to the sixth resistor. connected to the input end of the PLC control unit; the second isolation transmission circuit includes a second photoelectric coupler, a seventh resistor, an eighth resistor, a second LED indicator light, an external power supply, a first working power supply and a second working power supply; the external power supply is connected to the anode of the light-emitting diode in the second photoelectric coupler through the second LED indicator light, the second output end is connected to the cathode of the light-emitting diode in the second photoelectric coupler through the seventh resistor, the first working power supply is connected to the collector of the photosensitive transistor in the second photoelectric coupler, the emitter of the photosensitive transistor in the second photoelectric coupler is connected to the input end of the PLC control unit, and the second working power supply is connected to the input end of the PLC control unit through the eighth resistor.

[0012] Optionally, the main control module includes a processor, and the interrupt output pin of the acceleration sensor is connected to the signal transmission pin of the processor; when the handheld operating device is in motion, the acceleration sensor sends the motion detection signal to the processor, so that the processor controls the touch serial port screen to turn on; when the handheld operating device is in a stationary state within a preset time, the processor does not detect the motion detection signal sent by the acceleration sensor within the preset time, and the processor controls the touch serial port screen to turn off and puts the handheld operating device into standby mode.

[0013] Optionally, the handwheel control module further includes a voice broadcast unit, which is connected to the main control module; the voice broadcast module obtains control instruction information corresponding to the control instruction through the main control module, and voice broadcasts the control instruction information.

[0014] Optionally, the handheld operating device is communicatively connected to a PLC control unit in the numerical control system to be controlled based on a preset communication protocol or industrial Ethernet.

[0015] A second aspect of the present invention provides a machine tool, comprising a machine tool body and any one of the above-mentioned handheld operating devices, wherein a numerical control system to be controlled is provided in the machine tool body;

[0016] The handheld operating device is control-connected to the numerical control system to be controlled.

[0017] A third aspect of the present invention provides a machine tool control method, which is applied to the above-mentioned machine tool, and includes:

[0018] The touch serial port screen obtains a control instruction input by a user, and the rotary encoder detects an operation action performed by the user on the handheld operating device and obtains a control signal corresponding to the operation action;

[0019] The main control module generates a drive signal according to the control instruction and the control signal, and transmits the drive signal to the machine tool body, so that the machine tool body operates based on the drive signal;

[0020] The main control module obtains the working status information of the machine tool body and sends the working status information to the touch serial port screen for display.

[0021] Optionally, the method also includes: the acceleration sensor detects the usage status of the handheld operating device; when the handheld operating device is in a stationary state within a preset time, the acceleration sensor sends a rising edge interrupt signal to the main control module, so that the main control module controls the touch serial port screen to turn off and puts the handheld operating device into standby mode; when the handheld operating device is in a moving state, the acceleration sensor sends a falling edge interrupt signal to the main control module, so that the main control module controls the touch serial port screen to turn on.

[0022] The handheld operating device, machine tool and machine tool control method provided by the present invention provide a more intuitive and friendly user interface by setting a touch serial port screen, and the information display is richer. The user can easily select the axis, set the magnification, etc. through the touch screen, and obtain real-time feedback at the same time, thereby improving the convenience and accuracy of operation; a rotary encoder is provided for detecting the operating actions performed by the user on the handheld operating device, so that the device responds to the user's operation with high precision, supports the user to make continuous adjustments, and provides a more intuitive and natural interactive experience; an acceleration sensor is provided for detecting the usage status of the handheld operating device. When it is not used for a long time, the main control module will automatically turn off the touch serial port screen and put the device into standby mode, effectively reducing energy consumption when no one is using it, and delaying screen aging by reducing the usage time of the touch serial port screen; the device as a whole has a modular structure and adopts the main control module as the core processing unit, which has good scalability.

[0023] Other features and advantages of the present invention will be described in the following description, and in part will become apparent from the description, or will be understood by practicing the present invention. The purposes and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings.

[0024] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0026] Figure 1 This is a schematic diagram of the overall structure of a handheld operating device in an embodiment provided in this application;

[0027] Figure 2 This is a schematic diagram of the overall structure of a handheld operating device in another embodiment provided by the present application;

[0028] Figure 3 This is a structural circuit diagram of a signal output circuit in a handheld operating device in one embodiment provided by the present application;

[0029] Figure 4 This is a structural circuit diagram of a first isolation transmission circuit in a handheld operating device according to an embodiment of the present application;

[0030] Figure 5 A structural circuit diagram of a second isolation transmission circuit in a handheld operating device according to an embodiment of the present application;

[0031] Figure 6 A schematic diagram of the connection relationship between an acceleration sensor and a processor in a handheld operating device according to an embodiment of the present application;

[0032] Figure 7 A schematic flow chart of a machine tool control method in one embodiment provided in this application;

[0033] Figure 8 This is a schematic diagram of a machine tool control method in one embodiment provided in this application.

[0034] In the picture:

[0035] SW1, rotary encoder; A, A-phase output terminal; B, B-phase output terminal; C, C-phase output terminal; A1, first output terminal; B1, second output terminal; U1, first photocoupler; U2, second photocoupler; R1, first resistor; R2, second resistor; R3, third resistor; R4, fourth resistor; R5, fifth resistor; R6, sixth resistor; R7, seventh resistor; R8, eighth resistor; C1, first capacitor; C2, second capacitor; L1, first indicator light; L2, second indicator light; DC24V, first working power supply; DC0V, second working power supply; PLC_A1, input terminal of PLC control unit; PLC_B1, input terminal of PLC control unit; GPIO, signal transmission pin; INT1, interrupt output pin; VCC, power pin; VDD, power pin. DETAILED DESCRIPTION

[0036] The present application will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that, unless there is a conflict, the embodiments and features in the embodiments of the present application can be combined with each other.

[0037] In one embodiment, Figure 1 As shown, a handheld operating device is provided, including a main control module and a handwheel control module, wherein the handwheel control module includes a touch serial port screen, a rotary encoder and an acceleration sensor, and the main control module is controlled and connected to the numerical control system to be controlled; the main control module is connected to the touch serial port screen, the rotary encoder and the acceleration sensor respectively, the touch serial port screen is used to receive control instructions input by the user and transmit them to the main control module, the rotary encoder is used to detect the operation actions performed by the user on the handheld operating device and convert them into control signals and transmit them to the main control module, and the acceleration sensor is used to detect the usage status of the handheld operating device and generate a motion detection signal and transmit it to the main control module; the main control module is used to generate a drive signal according to the control instruction and the control signal, and control the operation of the numerical control system to be controlled based on the drive signal, and at the same time obtain the working status information of the numerical control system to be controlled, and transmit the working status information to the touch serial port screen for display; when the main control module determines that the handheld operating device is in a non-working state based on the motion detection signal, the main control module controls the touch serial port screen to turn off and puts the handheld operating device into standby mode.

[0038] The handheld operating device provided in this embodiment provides a more intuitive and friendly user interface by setting a touch serial port screen, and the information display is richer. The user can easily select the axis, set the magnification, etc. through the touch screen, and obtain real-time feedback, thereby improving the convenience and accuracy of operation; a rotary encoder is provided to detect the user's operating actions performed on the handheld operating device, so that the device responds to the user's operations with high precision, supports the user to make continuous adjustments, and provides a more intuitive and natural interactive experience; an acceleration sensor is provided to detect the usage status of the handheld operating device. When it is not used for a long time, the main control module will automatically turn off the touch serial port screen and put the device into standby mode, effectively reducing energy consumption when no one is using it, and delaying screen aging by reducing the usage time of the touch serial port screen; the device as a whole has a modular structure and uses the main control module as the core processing unit, which has good scalability.

[0039] In one embodiment, Figure 2 As shown, the main control module includes a signal output circuit and a signal isolation transmission circuit; the rotary encoder is connected to the PLC control unit in the CNC system to be controlled through the signal output circuit and the signal isolation transmission circuit in turn; the rotary encoder responds to the operation actions performed by the user on the handheld operating device, and outputs two square wave pulse signals with phase difference. The square wave pulse signals are conditioned by the signal output circuit and isolated by the signal isolation transmission circuit in turn, and then transmitted to the PLC control unit as a control signal.

[0040] In this embodiment, the rotary encoder is specifically used to detect the direction, angle and speed of handwheel rotation, and outputs two square wave pulse signals with a 90° phase difference. The rotation direction and position change can be determined by the relative relationship of the two square wave pulse signals. Among them, the signal output circuit filters, shapes, amplifies or level converts the square wave pulse signal to eliminate noise interference and ensure that the signal is clear and stable. The signal isolation transmission circuit uses optocouplers, magnetic couplers or other isolation devices to electrically isolate the rotary encoder from the PLC control unit in the CNC system to be controlled to prevent high voltage, static electricity or ground loops from interfering with or damaging the PLC control unit.

[0041] Among them, the rotary encoder used in this application only requires two signal lines to transmit signals, which reduces the installation complexity, significantly simplifies the structure of the device, and saves installation time and labor costs.

[0042] Further, such as Figure 3As shown, the signal output circuit includes a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a first capacitor C1, a second capacitor C2, a first output terminal A1, a second output terminal A2 and an external power supply 5V; the A-phase output terminal A of the rotary encoder is connected to the first output terminal A1 through the third resistor R3, the external power supply 5V is connected to the A-phase output terminal A through the first resistor R1, the first end of the first capacitor C1 is connected to the first output terminal A1, the second end of the first capacitor C1 is connected to the ground terminal, and the first output terminal A1 is connected to the signal isolation transmission circuit; the B-phase output terminal B of the rotary encoder is connected to the second output terminal B1 through the fourth resistor R4, the external power supply 5V is connected to the B-phase output terminal B through the second resistor R2, the first end of the second capacitor C2 is connected to the second output terminal B1, the second end of the second capacitor C2 is connected to the ground terminal, and the second output terminal B1 is connected to the signal isolation transmission circuit; the C-phase output terminal C of the rotary encoder is connected to the ground terminal.

[0043] Furthermore, the signal isolation transmission circuit includes a first isolation transmission circuit and a second isolation transmission circuit; Figure 4 As shown, the first isolation transmission circuit includes a first photocoupler U1, a fifth resistor R5, a sixth resistor R6, a first LED indicator light L1, an external power supply 5V, a first working power supply DC24V and a second working power supply DC0V; the external power supply 5V is connected to the anode of the light-emitting diode in the first photocoupler U1 through the first LED indicator light L1, the first output terminal A1 is connected to the cathode of the light-emitting diode in the first photocoupler U1 through the fifth resistor R5, the first working power supply DC24V is connected to the collector of the photosensitive transistor in the first photocoupler U1, the emitter of the photosensitive transistor in the first photocoupler U1 is connected to the input terminal PLC_A1 of the PLC control unit, and the second working power supply DC0V is connected to the input terminal PLC_A1 of the PLC control unit through the sixth resistor R6; as shown Figure 5 As shown, the second isolation transmission circuit includes a second photoelectric coupler U2, a seventh resistor R7, an eighth resistor R8, a second LED indicator light L2, an external power supply 5V, a first working power supply DC24V and a second working power supply DC0V; the external power supply 5V is connected to the anode of the light-emitting diode in the second photoelectric coupler U2 through the second LED indicator light L2, the second output terminal B1 is connected to the cathode of the light-emitting diode in the second photoelectric coupler U2 through the seventh resistor R7, the first working power supply DC24V is connected to the collector of the photosensitive transistor in the second photoelectric coupler U2, the emitter of the photosensitive transistor in the second photoelectric coupler U2 is connected to the input terminal PLC_B1 of the PLC control unit, and the second working power supply DC0V is connected to the input terminal PLC_B1 of the PLC control unit through the eighth resistor R8.

[0044] Specifically, the rotary encoder is used to detect the direction, speed and position of rotation, and requires a 5V external power supply for power supply. The signal line is pulled up to the external power supply 5V through the first resistor R1 and the second resistor R2 respectively. When the rotary encoder rotates, it outputs A and B two-phase square wave pulse signals. The phase difference between phase A and phase B is 90°. When the rotary encoder rotates forward, phase A leads phase B. When the rotary encoder rotates reversely, phase B leads phase A. The input ends of the first photocoupler U1 and the second photocoupler U2 are respectively used to receive the A and B two-phase square wave pulse signals output by the rotary encoder, and then drive the first photocoupler U1 to drive the second photocoupler U2. An LED indicator L1 and a second LED indicator L2 light up, and the first photoelectric coupler U1 and the second photoelectric coupler U2 are turned on when they are exposed to light and output a low level, and are cut off when there is no light and output a high level. The output ends convert the optical signal into an electrical signal through the fifth resistor R5 and the seventh resistor R7 respectively and output it to the PLC control unit. The first capacitor C1 and the second capacitor C2 are used to suppress signal jitter and ensure level matching. Finally, the isolated A and B two-phase square wave pulse signals are transmitted to the PLC control unit. The PLC control unit determines the direction and speed of movement by pulse counting and phase difference.

[0045] In this embodiment, a photoelectric coupler is used to achieve complete electrical isolation between the rotary encoder and the PLC control unit, effectively avoiding common ground interference and improving system stability; a filter circuit is formed by combining resistors and capacitors to effectively suppress signal noise and enhance transmission reliability and stability; an LED indicator is configured to display the signal status in real time, facilitating on-site debugging and troubleshooting.

[0046] In one embodiment, Figure 6 As shown, the main control module includes a processor, and the interrupt output pin INT1 of the acceleration sensor is connected to the signal transmission pin GPIO of the processor; when the handheld operating device is in motion, the acceleration sensor sends a motion detection signal to the processor, so that the processor controls the touch serial port screen to turn on; when the handheld operating device is in a stationary state within a preset time, the processor does not receive the motion detection signal sent by the acceleration sensor within the preset time, the processor controls the touch serial port screen to turn off, and puts the handheld operating device into standby mode.

[0047] In another embodiment, the motion detection signal also includes a rising edge interrupt signal and a falling edge interrupt signal. When the handheld operating device is in a stationary state within a preset time, the acceleration sensor sends a rising edge interrupt signal to the processor, so that the processor controls the touch serial port screen to turn off and puts the handheld operating device into standby mode; when the handheld operating device is in motion, the acceleration sensor sends a falling edge interrupt signal to the processor, so that the processor controls the touch serial port screen to turn on.

[0048] In this embodiment, the acceleration sensor continuously sends motion detection signals to the processor, so that the processor knows that the handheld operating device is in motion, and then the processor controls the touch serial port screen to turn on and be in normal working state. Once the processor does not receive the motion detection signal sent by the acceleration sensor within a preset time period, it can be determined that the handheld operating device is in a stationary state and is not in use, and then the touch serial port screen can be controlled to turn off and put the handheld operating device into standby mode. In another embodiment, the motion detection signal is specifically divided into a rising edge interrupt signal and a falling edge interrupt signal. When the handheld operating device is in a stationary state within a preset time, the acceleration sensor sends a rising edge interrupt signal to the processor, triggering the touch serial port screen to turn off and put the device into standby mode, which can significantly reduce energy consumption, especially when the device is not used for a long time, which helps to save energy. Once the handheld operating device starts to move , the acceleration sensor will detect the motion state and send a falling edge interrupt signal to the processor, thereby immediately activating the touch serial port screen, ensuring that the device can quickly resume working status from standby mode, providing instant response, and not affecting the user's experience; the device provided in this application automatically monitors the usage status of the device and performs corresponding screen switch control according to the status change. The screen can be turned on and off without manual intervention by the user, which simplifies the user's operation and improves the naturalness and smoothness of human-computer interaction; and by connecting the interrupt output pin INT1 of the acceleration sensor with the signal transmission pin GPIO of the processor, it can quickly respond to status changes at the hardware level, reducing problems caused by software delays or errors, and compared with the method of continuously monitoring the device status, only triggering interrupt processing when the status changes can effectively reduce the processor's workload and release more resources for other critical tasks.

[0049] In one embodiment, Figure 2 As shown, the handwheel control module also includes a voice broadcast unit, which is connected to the main control module; the voice broadcast module obtains control instruction information corresponding to the control instruction through the main control module, and voice broadcasts the control instruction information.

[0050] In this embodiment, in some special usage situations, the user may be unable or inconvenient to view the information on the touch serial port screen. The voice broadcast function allows the user to obtain necessary operation feedback and status updates without interrupting the current workflow, which greatly improves the convenience and efficiency of operation. The voice broadcast function can help the user confirm the correctness of the operation and instantly convey key information, such as confirmation of instruction execution results, warning messages, etc., to ensure that the operator is aware of the device status and operation results in a timely manner, reducing errors caused by misunderstanding or ignoring screen information.

[0051] In one embodiment, the handheld operating device is communicatively connected to a PLC control unit in the numerical control system to be controlled based on a preset communication protocol or industrial Ethernet.

[0052] In this embodiment, the handheld operating device adopts the Siemens S7 communication protocol to ensure efficient data interaction with the PLC control unit, and specifically supports S7 Basic Communication or S7 Communication to realize real-time transmission of axis selection status, ratio adjustment, handwheel pulse counting and system operation status; at the hardware level, the handheld operating device can be connected to the PLC control unit via the industrial Ethernet Profinet, and data transmission is realized through an external protocol conversion module. The PLC control unit pre-configures data blocks to define handwheel control parameters and PLC feedback information. The communication process adopts non-blocking polling (cycle 100ms) to avoid affecting the scanning cycle of the PLC control unit. At the same time, it has a timeout retransmission and CRC check mechanism to ensure data reliability. In standby mode, the handheld operating device will suspend S7 communication to reduce power consumption, and automatically restore the connection after the acceleration sensor detects the operation. Based on this, the design of this application takes into account both real-time and low power consumption, and is suitable for high-precision control requirements in industrial automation scenarios.

[0053] In one embodiment, a machine tool is provided, comprising a machine tool body and the above-mentioned handheld operating device, wherein a numerical control system to be controlled is provided in the machine tool body; and the handheld operating device is control-connected to the numerical control system to be controlled.

[0054] In this embodiment, the handheld operating device can quickly respond to the user's input instructions and control the machine tool movement in real time through the PLC, thereby speeding up the operation process; through the high-precision position feedback provided by the rotary encoder, the user can fine-tune the axial movement of the machine tool and achieve high-precision processing tasks; the touch serial port screen allows the user to interact with the machine tool in a more intuitive way and provides the user with instant operation feedback; the acceleration encoder is used to automatically detect whether the handheld operating device is in use, and accordingly decide whether to turn off the screen and enter standby mode, thereby effectively saving energy and extending working time; the handheld operating device adopts a modular structure, which is easy to add new functions or sensors and has strong adaptability.

[0055] In one embodiment, Figure 7As shown, a machine tool control method is provided, which can be applied to the machine tool of any of the above embodiments. The method can be executed by a signal detection device or a computer device, etc. The method includes the following steps: a touch serial port screen acquires a control instruction input by a user, a rotary encoder detects an operation performed by the user on a handheld operating device, and acquires a control signal corresponding to the operation; a main control module generates a drive signal based on the control instruction and the control signal, and transmits the drive signal to the machine tool body, so that the machine tool body operates based on the drive signal; the main control module acquires the working status information of the machine tool body, and sends the working status information to the touch serial port screen for display.

[0056] Furthermore, the machine tool control method also includes: an acceleration sensor detects the usage status of the handheld operating device; when the handheld operating device is in a stationary state within a preset time, the acceleration sensor sends a rising edge interrupt signal to the main control module, so that the main control module controls the touch serial port screen to turn off and puts the handheld operating device into standby mode; when the handheld operating device is in a moving state, the acceleration sensor sends a falling edge interrupt signal to the main control module, so that the main control module controls the touch serial port screen to turn on.

[0057] In this embodiment, a handheld operating device that integrates a touch serial port screen, a rotary encoder, and an accelerometer achieves precise control of the machine tool and real-time status feedback through intelligent human-computer interaction design and efficient PLC control. The implemented automatic sleep and wake-up functions and intuitive operating interface not only improve operational convenience and work efficiency, but also enhance user experience and system security, while effectively reducing energy consumption. It is suitable for modern CNC machine tool environments that require high-precision and efficient control.

[0058] Based on the machine tool control method provided in this application, a specific operation process is provided, and the operation principle diagram is as follows: Figure 8 As shown, the specific operation process is:

[0059] First, turn on the power of the machine tool, start the system, and touch the serial port screen to display the main interface, which includes information such as axis selection, ratio adjustment, and current status; the main control module is initialized to detect whether each component is working properly;

[0060] Furthermore, the user selects the axis to be controlled, such as the X-axis, Y-axis, and Z-axis, by touching the serial port screen. Taking the X-axis as an example, the touch screen highlights the X-axis and announces "X-axis selected". The user then sets the magnification by touching the serial port screen, such as 1x, 10x, and 100x. The magnification determines the sensitivity of the machine tool's movement when the handheld operating device rotates. The touch screen displays the currently selected axis and magnification, as well as the current position of the machine tool, in real time.

[0061] Furthermore, the user rotates the handheld operating unit, and the mechanical movement of the device is detected by the rotary encoder. The rotary encoder converts the rotation angle and direction of the handheld operating unit into an electrical signal, which is transmitted to the machine tool through the main control module. The machine tool calculates the distance and direction the machine tool needs to move based on the received signal, and then sends a drive signal to the machine tool's drive motor. The drive motor drives the corresponding axis of the machine tool according to the drive signal, and the machine tool body moves precisely according to the command.

[0062] During the machine tool's motion, the main control module monitors the position and status of each axis in real time, and transmits the current working status information, such as position, speed, and error, to the touch serial port screen through the serial port. The touch serial port screen updates the display content in real time, and the user can intuitively understand the machine tool's motion status and operation results through the interface;

[0063] When the main control module detects that the handheld operating device has not been used for a long time based on the acceleration sensor, the main control module turns off the serial port display and enters the standby mode;

[0064] When the main control module detects that the handheld operation unit is used again according to the acceleration sensor, the main control module wakes up the serial port display screen and the device returns to normal working state;

[0065] After the user completes all operations, wait for the user to perform the next operation.

[0066] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0067] The above embodiments merely illustrate several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art may make various modifications and improvements without departing from the spirit of the present invention, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

Claims

1. A handheld operating device, characterized in that: It includes a main control module and a handwheel control module, wherein the handwheel control module includes a touch serial port screen, a rotary encoder and an acceleration sensor, and the main control module is connected to the CNC system to be controlled; The main control module is connected to the touch serial port screen, the rotary encoder and the acceleration sensor respectively. The touch serial port screen is used to receive control instructions input by the user and transmit them to the main control module. The rotary encoder is used to detect the operation actions performed by the user on the handheld operating device and convert them into control signals and transmit them to the main control module. The acceleration sensor is used to detect the usage status of the handheld operating device and generate a motion detection signal and transmit it to the main control module. The main control module is used to generate a drive signal according to the control instruction and the control signal, and control the operation of the CNC system to be controlled based on the drive signal, and at the same time obtain the working status information of the CNC system to be controlled, and transmit the working status information to the touch serial port screen for display; When the main control module determines that the handheld operating device is in a non-working state based on the motion detection signal, the main control module controls the touch serial port screen to turn off and enables the handheld operating device to enter a standby mode.

2. The handheld operating device according to claim 1, wherein: The main control module includes a signal output circuit and a signal isolation transmission circuit; The rotary encoder is connected to the PLC control unit in the CNC system to be controlled through the signal output circuit and the signal isolation transmission circuit in sequence; The rotary encoder outputs two square wave pulse signals with a phase difference in response to the operation performed by the user on the handheld operating device. The square wave pulse signals are conditioned by the signal output circuit and isolated by the signal isolation transmission circuit in turn, and then transmitted to the PLC control unit as the control signal.

3. The handheld operating device according to claim 2, characterized in that: The signal output circuit includes a first resistor, a second resistor, a third resistor, a fourth resistor, a first capacitor, a second capacitor, a first output terminal, a second output terminal and an external power supply; The A-phase output terminal of the rotary encoder is connected to the first output terminal through the third resistor, the external power supply is connected to the A-phase output terminal through the first resistor, the first end of the first capacitor is connected to the first output terminal, the second end of the first capacitor is connected to the ground terminal, and the first output terminal is connected to the signal isolation transmission circuit; The B-phase output terminal of the rotary encoder is connected to the second output terminal through the fourth resistor, the external power supply is connected to the B-phase output terminal through the second resistor, the first end of the second capacitor is connected to the second output terminal, the second end of the second capacitor is connected to the ground terminal, and the second output terminal is connected to the signal isolation transmission circuit; The C-phase output terminal of the rotary encoder is connected to the ground terminal.

4. The handheld operating device according to claim 3, characterized in that: The signal isolation transmission circuit includes a first isolation transmission circuit and a second isolation transmission circuit; The first isolation transmission circuit includes a first photocoupler, a fifth resistor, a sixth resistor, a first LED indicator, an external power supply, a first working power supply and a second working power supply; The external power supply is connected to the anode of the light-emitting diode in the first photocoupler through the first LED indicator light, the first output end is connected to the cathode of the light-emitting diode in the first photocoupler through the fifth resistor, the first working power supply is connected to the collector of the phototransistor in the first photocoupler, the emitter of the phototransistor in the first photocoupler is connected to the input end of the PLC control unit, and the second working power supply is connected to the input end of the PLC control unit through the sixth resistor; The second isolation transmission circuit includes a second photoelectric coupler, a seventh resistor, an eighth resistor, a second LED indicator light, an external power supply, a first working power supply, and a second working power supply; The external power supply is connected to the anode of the light-emitting diode in the second photoelectric coupler through the second LED indicator light, the second output end is connected to the cathode of the light-emitting diode in the second photoelectric coupler through the seventh resistor, the first working power supply is connected to the collector of the photosensitive transistor in the second photoelectric coupler, the emitter of the photosensitive transistor in the second photoelectric coupler is connected to the input end of the PLC control unit, and the second working power supply is connected to the input end of the PLC control unit through the eighth resistor.

5. The handheld operating device according to claim 1, wherein: The main control module includes a processor, and the interrupt output pin of the acceleration sensor is connected to the signal transmission pin of the processor; When the handheld operating device is in motion, the acceleration sensor sends the motion detection signal to the processor, so that the processor controls the touch serial port screen to turn on; When the handheld operating device is in a stationary state within a preset time, and the processor does not detect the motion detection signal sent by the acceleration sensor within the preset time, the processor controls the touch serial port screen to turn off and puts the handheld operating device into standby mode.

6. The handheld operating device according to claim 1, wherein: The handwheel control module also includes a voice broadcast unit, which is connected to the main control module; The voice broadcast module obtains the control instruction information corresponding to the control instruction through the main control module, and performs voice broadcasting on the control instruction information.

7. The handheld operating device according to claim 1, characterized in that: The handheld operating device is communicatively connected with the PLC control unit in the numerical control system to be controlled based on a preset communication protocol or industrial Ethernet.

8. A machine tool, characterized in that: It comprises a machine tool body and a handheld operating device according to any one of claims 1 to 7, wherein a numerical control system to be controlled is arranged in the machine tool body; The handheld operating device is control-connected to the numerical control system to be controlled.

9. A machine tool control method, characterized in that: The method is applied to the machine tool of claim 8, and the method comprises: The touch serial port screen obtains a control instruction input by a user, and the rotary encoder detects an operation action performed by the user on the handheld operating device and obtains a control signal corresponding to the operation action; The main control module generates a drive signal according to the control instruction and the control signal, and transmits the drive signal to the machine tool body, so that the machine tool body operates based on the drive signal; The main control module obtains the working status information of the machine tool body and sends the working status information to the touch serial port screen for display.

10. The method according to claim 9, characterized in that The method further comprises: The acceleration sensor detects the usage status of the handheld operating device; When the handheld operating device is in a stationary state within a preset time, the acceleration sensor sends a rising edge interrupt signal to the main control module, so that the main control module controls the touch serial port screen to turn off and puts the handheld operating device into standby mode; When the handheld operating device is in motion, the acceleration sensor sends a falling edge interrupt signal to the main control module, so that the main control module controls the touch serial port screen to turn on.