Electric cylinder control method, system and storage medium
By employing a three-tiered architecture and virtual simulation technology, the high cost of electric cylinder control systems has been resolved, enabling efficient and stable electric cylinder control and data acquisition, reducing system construction costs and improving operational efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- XCMG HYDRAULICS CO LTD
- Filing Date
- 2026-04-28
- Publication Date
- 2026-07-10
Smart Images

Figure CN122363012A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electric control technology, specifically to an electric cylinder control method, system, and storage medium. Background Technology
[0002] In the field of modern industrial automation and precision motion control, a three-tiered architecture of "host computer-controller-driver" has become the industry standard solution for the control and process data acquisition needs of electric cylinders. This architecture, through clear hierarchical division of labor, achieves a complete closed loop from command issuance and logic processing to power execution. Traditional industrial sites rely on dedicated hardware touchscreens (HMIs), which are costly, have long development and debugging cycles, and weak data acquisition capabilities. Meanwhile, in terms of task management strategies, real-time operating systems (RTOSs) ensure high efficiency but are expensive. Building an efficient, stable, and low-cost control system is imperative. The high cost and low operational efficiency resulting from the use of dedicated hardware touchscreens and real-time operating systems in existing methods are shortcomings that those skilled in the art need to address. Summary of the Invention
[0003] The purpose of this application is to provide an electric cylinder control method, system, and storage medium to solve the aforementioned defects caused by the prior art.
[0004] To achieve the above objectives, this application employs the following technical solution: Firstly, this application discloses an electric cylinder control method, which includes... A three-tiered architecture consisting of host computer, controller, and driver is established to sequentially complete the closed loop from instruction issuance and logic processing to power execution. The CPU runtime of the host computer is divided into several fixed time slices and the time slice configuration is completed. The controller generates a reference clock and completes the reference clock configuration by using a timer. Based on a three-level hierarchical architecture, time slice polling scheduling is completed according to the reference clock and the time slice matching to realize the driver's control of the electric cylinder.
[0005] A further aspect of this application includes a sampling process of the controller for the operating status of the driver, and the host computer analyzes the sampled data to provide data support for the driver to control the electric cylinder. The sampling process includes the controller reading and collecting operational data of displacement, speed and current of the drive component in real time at a set sampling period; The collected operational data is uploaded to the host computer in real time via bus or serial communication.
[0006] In a further embodiment of this application, the host computer also includes a tool for completing job feedback through virtual simulation technology; the job feedback includes developing a graphical interface on the host computer using a general programming language to completely simulate the operation logic and visual effects of a physical touchscreen, thereby realizing job feedback.
[0007] A further solution in this application establishes a three-tiered architecture of host computer-controller-driver, which completes a closed loop from instruction issuance and logic processing to power execution, including: The host computer sets up dual-mode control logic, which completes a closed loop from automatic or manual command issuance and logic processing to power execution.
[0008] In a further embodiment, the dual-mode control logic includes an automatic mode and a manual mode, which completes a closed loop from automatic or manual command issuance, logic processing to power execution. The automatic mode includes a host computer automatically executing a cyclic motion program based on preset time slice logic; the controller automatically manages the driver according to the set displacement and speed parameters, and implements the start, acceleration, constant speed, deceleration and stopping process of the electric cylinder; The manual mode includes interactive commands through the interface of the host computer, which allows the operator to take over control and control the driver to achieve jogging and / or start-stop control of the electric cylinder.
[0009] A further solution in this application, based on a three-level hierarchical architecture, completes time-slice polling scheduling according to the reference clock and the time slice matching to realize the driver's control of the electric cylinder, including: The controller uses a hardware timer to generate a stable reference clock, which is set to correspond with the time slice. The host computer sends instructions to the controller, which controls the driver to enable the electric cylinder to process different tasks in sequence.
[0010] Secondly, this application discloses an electric cylinder control system, which includes: The building module is configured to establish a three-level hierarchical architecture of host computer-controller-driver, which completes the closed loop from instruction issuance and logic processing to power execution. The first configuration module is configured to divide the CPU running time of the host computer into several fixed time slices to complete the time slice configuration. The second configuration module is configured to cause the controller to generate a reference clock via a timer; thus completing the reference clock configuration. The determination module is configured to control the electric cylinder by the driver based on a three-level hierarchical architecture and matching the time slices according to the reference clock and the time slices.
[0011] Thirdly, this application discloses a computer-readable storage medium, characterized in that the computer-readable storage medium stores one or more programs, the one or more programs including instructions that, when executed by a computing device, cause the computing device to perform the above-described method.
[0012] The beneficial effects of this application are as follows: This application employs a three-tiered hierarchical architecture with clearly defined division of labor and time-slice polling scheduling. This reduces costs by not relying on an expensive real-time operating system. Because the reference clock and the time slice are matched, it effectively ensures stable switching of the state machine for starting, running, and stopping the cyclically controlled electric cylinder, as well as the real-time performance of multi-task concurrent processing, thereby improving work efficiency.
[0013] Furthermore, it fully utilizes the computing power and display resources of the host computer (laptop), eliminating the need to purchase dedicated industrial touchscreen hardware and significantly reducing system construction costs. At the same time, the software interface allows for far greater flexibility in modification and upgrades compared to hardware configuration, greatly shortening the development and debugging cycle. Attached Figure Description
[0014] Figure 1 This is a logical schematic diagram of the electric cylinder control method in the embodiments of this application. Detailed Implementation
[0015] The technical solution of the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present invention and the specific features in the embodiments are detailed descriptions of the technical solution of the present invention, rather than limitations thereof. In the absence of conflict, the embodiments of the present invention and the technical features in the embodiments can be combined with each other.
[0016] The term "and / or" simply describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. Additionally, the character " / " generally indicates that the preceding and following related objects have an "or" relationship. Example 1
[0017] like Figure 1 As shown, this application discloses an embodiment of an electric cylinder control method, which includes establishing a three-level hierarchical architecture of host computer-controller-driver, and completing a closed loop from instruction issuance, logic processing to power execution sequentially through the three-level hierarchical architecture; Divide the CPU's runtime into several fixed time slices and configure the time slices. The controller generates a reference clock and completes the reference clock configuration by using a timer. Based on a three-level hierarchical architecture, time slice polling scheduling is completed according to the reference clock and the time slice matching to realize the driver's control of the electric cylinder.
[0018] In some embodiments, the electric cylinder control method is specifically designed as follows; Establish a "host computer-controller-driver" architecture to realize electric cylinder control and process data acquisition; A time base is established using a timer, and the driver is controlled via time-slice polling to achieve cyclic start-up, operation, and stop. A manual mode is also available for manual control of start-up, operation, and stop. The controller collects displacement, velocity, and current data at set time intervals and uploads them to the host computer.
[0019] The host computer only requires a laptop computer. After programming, human-computer interaction can be achieved through touch screen simulation, realizing electric cylinder control and data acquisition. There is no need to purchase a physical touch screen, which greatly reduces costs.
[0020] This embodiment establishes a three-level hierarchical architecture; To address the control and process data acquisition requirements of electric cylinders, a three-tiered architecture of "host computer-controller-driver" is adopted. Through clear hierarchical division of labor, a complete closed loop from command issuance and logic processing to power execution is achieved.
[0021] The host computer, acting as the system's "brain" and interaction center, is responsible for providing the human-computer interface, setting global parameters, issuing motion commands, and storing and analyzing massive amounts of process data. In this embodiment, using a laptop computer in conjunction with software simulation technology to replace the traditional dedicated touchscreen is a key innovation that reduces hardware costs and improves system flexibility.
[0022] As the "nerve center" of the system, the controller is responsible for receiving instructions from the host computer, performing complex logical operations, and generating precise control signals to drive the underlying devices.
[0023] The actuator, acting as the "muscle" of the system, receives weak electrical signals from the controller and converts them into strong electrical outputs to drive the electric cylinder. The electric cylinder then converts the rotational motion of the motor into high-precision linear motion.
[0024] Real-time scheduling and time-based technology To ensure the smoothness of the electric cylinder's movement and the synchronization of data acquisition, a time base and time slice polling mechanism based on a timer is introduced.
[0025] The controller uses a high-precision hardware timer to generate a stable reference clock (time base). This is the "heartbeat" for all periodic tasks of the system, ensuring the determinism of the control cycle and eliminating jitter caused by software delays.
[0026] Time-slice polling scheduling is an efficient real-time task management strategy. The system divides the CPU's runtime into fixed time slices and processes different tasks sequentially in a loop. This mechanism effectively ensures stable state machine switching for the electric cylinder's cyclic start-up, operation, and stop, as well as the real-time performance of concurrent multi-task processing, without relying on an expensive real-time operating system (RTOS).
[0027] Dual-mode control strategy To balance the high efficiency of automated operation with the flexibility of equipment debugging, the system is designed with dual-mode control logic for both automatic and manual operation.
[0028] In automatic mode, the system automatically executes a cyclic motion program based on preset time-slice logic. The controller automatically manages the starting, acceleration, constant speed, deceleration, and stopping processes of the electric cylinder according to the set displacement and speed parameters. In manual mode, the operator can take over control through interactive commands on the host computer interface, enabling inching and start / stop control of the electric cylinder. This mode is crucial for origin return, fault diagnosis, and single-run operations.
[0029] Process data acquisition and communication Before controlling the electric cylinder, the controller performs high-frequency sampling of its operating status. The controller reads key physical quantities such as displacement, velocity, and current in real time at a set sampling period (time interval). The collected data is uploaded to the host computer in real time via bus (such as Modbus, EtherCAT) or serial communication. The host computer software is responsible for data parsing, visualization curve plotting, and historical data storage, providing data support for subsequent fault diagnosis and process optimization.
[0030] Virtual simulation and human-computer interaction technology To address the issue of high costs associated with relying on dedicated hardware touchscreens in traditional industrial settings, this solution employs PC-based virtual simulation technology.
[0031] Developing graphical interfaces on laptops using general-purpose programming languages (such as C#, Python, or configuration software) completely simulates the operation logic and visual effects of physical touchscreens. This fully utilizes the computing power and display resources of laptops, eliminating the need to purchase dedicated industrial touchscreen hardware and significantly reducing system construction costs. Furthermore, software interface modifications and upgrades are far more flexible than hardware configurations, greatly shortening the development and debugging cycle. Example 2
[0032] This application discloses an electric cylinder control system, which includes: The building module is configured to establish a three-level hierarchical architecture of host computer-controller-driver, which completes the closed loop from instruction issuance and logic processing to power execution. The first configuration module is configured to divide the CPU running time of the host computer into several fixed time slices to complete the time slice configuration. The second configuration module is configured to cause the controller to generate a reference clock via a timer; thus completing the reference clock configuration. The module is configured to control the electric cylinder based on a three-level hierarchical architecture, using a reference clock and time slice matching scheduling. Example 3
[0033] This application discloses a computer-readable storage medium, characterized in that the computer-readable storage medium stores one or more programs, the one or more programs including instructions, which, when executed by a computing device, cause the computing device to perform the methods described in the above embodiments.
[0034] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0035] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0036] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0037] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0038] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims. All of these forms are within the protection scope of the present invention.
Claims
1. A method for controlling an electric cylinder, characterized in that, include A three-tiered architecture consisting of host computer, controller, and driver is established to sequentially complete the closed loop from instruction issuance and logic processing to power execution. The CPU's runtime of the host computer is divided into several fixed time slices and the time slice configuration is completed. The controller generates a reference clock and completes the reference clock configuration by using a timer. Based on a three-level hierarchical architecture, time slice polling scheduling is completed according to the reference clock and the time slice matching to realize the driver's control of the electric cylinder.
2. The electric cylinder control method according to claim 1, characterized in that, It also includes the process of the controller sampling the operating status of the driver, and the host computer analyzes the sampled data to provide data support for the driver to control the electric cylinder; The sampling process includes the controller reading and collecting operational data of displacement, speed and current of the drive component in real time at a set sampling period; The collected operational data is uploaded to the host computer in real time via bus or serial communication.
3. The electric cylinder control method according to claim 1, characterized in that, The host computer also includes a tool for providing task feedback through virtual simulation technology. The task feedback includes developing a graphical interface on the host computer using a general programming language to fully simulate the operation logic and visual effects of a physical touchscreen, thereby providing task feedback.
4. The electric cylinder control method according to claim 1, characterized in that, A three-tiered architecture is established, consisting of a host computer, a controller, and a driver. This architecture completes a closed loop from instruction issuance and logic processing to power execution, including: The host computer sets up dual-mode control logic, which completes a closed loop from automatic or manual command issuance and logic processing to power execution.
5. The electric cylinder control method according to claim 4, characterized in that, The dual-mode control logic includes an automatic mode and a manual mode, which completes a closed loop from automatic or manual command issuance, logic processing to power execution. The automatic mode includes a host computer automatically executing a cyclic motion program based on preset time slice logic; the controller automatically manages the driver according to the set displacement and speed parameters, and implements the start, acceleration, constant speed, deceleration and stopping process of the electric cylinder; The manual mode includes interactive commands through the interface of the host computer, which allows the operator to take over control and control the driver to achieve jogging and / or start-stop control of the electric cylinder.
6. The electric cylinder control method according to claim 1, characterized in that, Based on a three-level hierarchical architecture, time-slice polling scheduling is performed according to the reference clock and the time slice matching to realize the driver's control of the electric cylinder, including: The controller uses a hardware timer to generate a stable reference clock, which is set to correspond with the time slice. The host computer sends instructions to the controller, which controls the driver to enable the electric cylinder to process different tasks in sequence.
7. An electric cylinder control system, characterized in that, include: The building module is configured to establish a three-level hierarchical architecture of host computer-controller-driver, which completes the closed loop from instruction issuance and logic processing to power execution. The first configuration module is configured to divide the CPU running time of the host computer into several fixed time slices to complete the time slice configuration. The second configuration module is configured to cause the controller to generate a reference clock via a timer; thus completing the reference clock configuration. The determination module is configured to control the electric cylinder by the driver based on a three-level hierarchical architecture and matching the time slices according to the reference clock and the time slice scheduling.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more programs, the one or more programs including instructions that, when executed by a computing device, cause the computing device to perform the method of any one of claims 1 to 6.