Multi-axis motion control system and method with memory starting mode

文档序号:1566864 发布日期:2020-01-24 浏览:9次 中文

阅读说明:本技术 一种具备记忆启动模式的多轴运动控制系统及方法 (Multi-axis motion control system and method with memory starting mode ) 是由 王英利 梁长国 朱超平 于 2019-03-18 设计创作,主要内容包括:本发明公开了一种具备记忆启动模式的多轴运动控制系统及方法,该系统包括接口模块、伺服驱动模块、运动指令解析模块、用户程序解析模块、内存、记忆存储模块、CPU、用户程序存储模块、用户程序驱动模块和上电模式模块,记忆存储模块包括:运动指令执行信息存储单元、电池、用户程序执行信息存储单元,该系统实时地将运动指令执行信息和用户程序执行信息存储到能够掉电保存的记忆存储模块中,在系统重新上电时,可以通过接口模块设置上电模式模块执行记忆启动模式,系统将记忆存储模块中的运动指令执行信息和用户程序执行信息调入内存,完全接续掉电时的运动指令执行节点和用户程序执行节点继续运行,流程一致,且安全性高,使用灵活。(The invention discloses a multi-axis motion control system with a memory starting mode and a method thereof, wherein the system comprises an interface module, a servo driving module, a motion instruction analysis module, a user program analysis module, a memory storage module, a CPU, a user program storage module, a user program driving module and a power-on mode module, wherein the memory storage module comprises: the system stores the motion instruction execution information and the user program execution information in a memory storage module capable of being stored in a power-down mode in real time, when the system is powered on again, a power-on mode module execution memory starting mode can be set through an interface module, the system calls the motion instruction execution information and the user program execution information in the memory storage module into a memory, and a motion instruction execution node and a user program execution node which are completely connected to run continuously when the power is down are operated continuously, so that the system has the advantages of consistent flow, high safety and flexible use.)

1. A multi-axis motion control system having a memory enabled mode, the system comprising:

the device comprises an interface module (1), a servo driving module (2), a motion instruction analysis module (3), a user program analysis module (4), a memory (5), a memory storage module (6), a CPU (7), a user program storage module (8), a user program driving module (9) and a power-on mode module (10);

the interface module (1) is respectively connected with the servo drive module (2), the user program drive module (9) and the power-on mode module (10);

the servo driving module (2) is connected with the motion instruction analyzing module (3); the user program driving module (9) is connected with the user program analysis module (4); the motion instruction analysis module (3), the user program analysis module (4), the memory (5), the user program storage module (8) and the power-on mode module (10) are respectively connected with the CPU (7);

the memory storage module (6) is connected with the CPU (7).

2. The system according to claim 1, wherein the memory storage module (6) further comprises:

a motion instruction execution information storage unit (601), a user program execution information storage unit (603);

the motion instruction execution information storage unit (601) and the user program execution information storage unit (603) are respectively connected with the CPU (7).

3. The system according to claim 2, wherein the memory storage module (6) further comprises a battery (602), and the battery (602) supplies power to the motion instruction execution information storage unit (601) and the user program execution information storage unit (603).

4. The system according to claim 1, wherein the interface module (1) outputs the result information of the servo driver module (2) and the result information of the user program driver module (9) while receiving the servo feedback information and the external control information.

5. The system according to claim 1, wherein the servo driving module (2) is configured to convert the analysis information of the motion command analysis module (3) into result information that can be identified by an external servo, and transmit the servo feedback information received by the interface module (1) to the motion command analysis module (3).

6. The system according to claim 1, wherein the motion command parsing module (3) is configured to parse the motion command in the memory (5) into parsed information of the servo execution control in the control period according to the servo feedback information;

and the user program analysis module (4) is used for analyzing the user program in the memory (5) into analysis information which is controlled and output in the control period according to the external control information.

7. The system according to claim 1, wherein the user program driver module (9) is configured to convert the analysis information of the user program analysis module (4) into result information that can be recognized by an external output component, and transmit the result information to the interface module (1), and transmit the external control information received by the interface module (1) to the user program analysis module (4).

8. The system according to claim 1, characterized in that the power-on mode module (10) is configured to read power-on start mode information via the interface module (1) to transmit to the CPU (7).

9. The system according to claim 1, characterized in that the memory (5) stores motion instruction real-time running information, user program real-time running information and other information of the system;

the memory storage module (6) is used for storing motion instruction execution information and user program execution information in real time.

10. A multi-axis motion control method with a memory activation mode, which is applied to the multi-axis motion control system with the memory activation mode according to any one of claims 1 to 9, wherein the method comprises:

s100: firstly, after a system is powered on, a reading starting mode is identified through an interface module (1), and then S200 is executed;

s200: judging whether the starting is carried out, if so, executing S300, otherwise, returning to execute S100;

s300: judging a power-on starting mode of a user program, if the power-on starting mode is a memory mode, executing S301, and if the power-on starting mode is a reset mode, executing S302;

s301: the CPU (7) reads the user program from the user program storage module (8), calls the user program into the memory, simultaneously reads the user program execution information of the user program execution information storage unit (603), sets the user program execution position in the memory according to the user program execution information, and then executes S400;

s302: the CPU (7) reads the user program from the user program storage module (8), calls the user program into the memory, sets the user program as an initial position, and then executes S400;

s400: judging a starting mode of powering on the motion instruction, if the starting mode is a memory mode, executing S401, and if the starting mode is a reset mode, executing S402;

s401: the CPU (7) reads the motion instruction execution information from the motion instruction execution information storage unit (601), calls the motion instruction execution information into a memory, and then executes S500;

s402: the CPU (7) clears the motion instruction execution information in the memory, extracts a new motion instruction from the user program analysis module (4) again, calls the new motion instruction into the memory, and then executes S500;

s500: the system operates normally, and the execution is started from S501;

s501: the user program analysis module (4) analyzes the user program in the memory, transmits the analysis result to the user program drive module (9), outputs the analysis result through the interface module (1), and then executes S502;

s502, the CPU (7) stores the analysis result of the user program and the user program execution information in the user program driving module in a user program execution information storage unit (603) in real time, and then executes S503;

s503: the motion instruction analysis module analyzes the motion instruction in the memory, transmits an analysis result to the servo drive module (2), outputs the analysis result through the interface module (1), and then executes S504;

s504: the CPU (7) stores the motion instruction analysis result and the motion instruction execution information in the servo driving module (2) to a motion instruction execution information storage unit (601) in real time, and then executes S501.

Technical Field

The invention relates to the field of motion control systems, in particular to a multi-axis motion control method and system with a memory starting mode.

Background

In some motion control application occasions, due to the particularity of the production process, under the condition of power failure again, particularly under the condition of unexpected power failure, a power-on reset system operates, the production process needs to be rearranged, the waste of production materials and the reduction of production efficiency are caused, if the operation state when a power-down node is continuously powered on and started can be continuously operated, the production process does not need to be rearranged, the waste of the production materials and the reduction of the production efficiency are avoided, and the traditional motion control system can only record the operation state of some systems at present and can not memorize the information executed by a motion instruction, so that the operation state when the power-down node is completely continuously operated can not be continuously operated.

At present, if the above functions are to be realized, an external control component is generally added, the current position of a servo motor is read through a servo drive unit, the execution information of a motion command cannot be recorded, and the motion command needs to be restarted, which causes very low starting control precision, especially low precision of multi-axis matching starting control, and needs to rearrange a production process for an application with high control precision requirement. In the prior art, for example, a patent with publication number CN204154570U discloses a motion control system and a control method thereof, a patent application with publication number CN101794139A discloses a composition method of a motion controller, a device and a motion controller thereof, a patent application with publication number CN101256407A discloses an integrated motion control system, a patent application with publication number CN102411353A discloses a drive-control integrated controller, a patent with publication number CN204557101U discloses a PCI motion control card, a patent with publication number CN204374700U discloses a motion controller, and a patent with publication number CN206848778U discloses a motion control card and a control system, but in the above disclosed technical solutions, the motion controller and the motion control system do not have a motion instruction memory function and a memory start mode, and cannot well meet special requirements on the current production process.

Disclosure of Invention

Aiming at the defects of the prior art, the invention discloses a multi-axis motion control system and a multi-axis motion control method with a memory starting mode, which have a motion instruction execution information memory function and a user program execution information memory function, can select the memory starting mode when being powered on and started again, and can continue to operate in a running state when a power-down node is completely connected, thereby avoiding the waste of production materials and the reduction of production efficiency caused by the rearrangement of the production industry. Specifically, the invention provides the following technical scheme:

first, the present invention provides a multi-axis motion control system having a memory activation mode, the system comprising:

the device comprises an interface module (1), a servo driving module (2), a motion instruction analysis module (3), a user program analysis module (4), a memory (5), a memory storage module (6), a CPU (7), a user program storage module (8), a user program driving module (9) and a power-on mode module (10);

the interface module (1) is respectively connected with the servo drive module (2), the user program drive module (9) and the power-on mode module (10);

the servo driving module (2) is connected with the motion instruction analyzing module (3); the user program driving module (9) is connected with the user program analysis module (4); the motion instruction analysis module (3), the user program analysis module (4), the memory (5), the user program storage module (8) and the power-on mode module (10) are respectively connected with the CPU (7);

the memory storage module (6) is connected with the CPU (7).

Preferably, the memory storage module (6) further comprises:

a motion instruction execution information storage unit (601), a user program execution information storage unit (603);

the motion instruction execution information storage unit (601) and the user program execution information storage unit (603) are respectively connected with the CPU (7).

Preferably, the memory storage module (6) further comprises a battery (602), and the battery (602) supplies power to the motion instruction execution information storage unit (601) and the user program execution information storage unit (603).

Preferably, the interface module (1) outputs the result information of the servo driving module (2) and the result information of the user program driving module (9), and receives the servo feedback information and the external control information.

Preferably, the servo driving module (2) is configured to convert analysis information of the motion instruction analysis module (3) into result information that can be identified by an external servo, and transmit servo feedback information received by the interface module (1) to the motion instruction analysis module (3).

Preferably, the motion instruction analysis module (3) is configured to analyze the motion instruction in the memory (5) into analysis information for performing servo control in a control period according to the servo feedback information;

and the user program analysis module (4) is used for analyzing the user program in the memory (5) into analysis information which is controlled and output in the control period according to the external control information.

Preferably, the user program driver module (9) is configured to convert the analysis information of the user program analysis module (4) into result information that can be recognized by an external output component, and transmit the result information to the interface module (1), and transmit the external control information received by the interface module (1) to the user program analysis module (4).

Preferably, the power-on mode module (10) is used for reading power-on starting mode information through the interface module (1) and transmitting the power-on starting mode information to the CPU (7).

Preferably, the memory (5) stores motion instruction real-time running information, user program real-time running information and other information of the system;

the memory storage module (6) is used for storing motion instruction execution information and user program execution information in real time, and power failure is guaranteed not to be lost.

Next, the present invention provides a multi-axis motion control method having a memory activation mode, which is applied to any one of the above multi-axis motion control systems having a memory activation mode, and the method includes:

s100: firstly, after a system is powered on, a reading starting mode is identified through an interface module (1), and then S200 is executed;

s200: judging whether the starting is carried out, if so, executing S300, otherwise, returning to execute S100;

s300: judging a power-on starting mode of a user program, if the power-on starting mode is a memory mode, executing S301, and if the power-on starting mode is a reset mode, executing S302;

s301: the CPU (7) reads the user program from the user program storage module (8), calls the user program into the memory, simultaneously reads the user program execution information in the user program execution information storage unit (603), sets the user program execution position in the memory according to the user program execution information, and then executes S400;

s302: the CPU (7) reads the user program from the user program storage module (8), calls the user program into the memory, sets the user program as an initial position, and then executes S400;

s400: judging a starting mode of powering on the motion instruction, if the starting mode is a memory mode, executing S401, and if the starting mode is a reset mode, executing S402;

s401: the CPU (7) reads the motion instruction execution information from the motion instruction execution information storage unit (601), calls the motion instruction execution information into a memory, and then executes S500;

s402: the CPU (7) clears the motion instruction execution information in the memory, extracts a new motion instruction from the user program analysis module (4) again, calls the new motion instruction into the memory, and then executes S500;

s500: the system operates normally, and the execution is started from S501;

s501: the user program analysis module (4) analyzes the user program in the memory, transmits the analysis result to the user program drive module (9), outputs the analysis result through the interface module (1), and then executes S502;

s502, the CPU (7) stores the analysis result of the user program and the user program execution information in the user program driving module in a user program execution information storage unit (603) in real time, and then executes S503;

s503: the motion instruction analysis module analyzes the motion instruction in the memory, transmits an analysis result to the servo drive module (2), outputs the analysis result through the interface module (1), and then executes S504;

s504: the CPU (7) stores the motion instruction analysis result and the motion instruction execution information in the servo driving module (2) to a motion instruction execution information storage unit (601) in real time, and then executes S501.

Compared with the prior art, the technical scheme of the invention at least has the following advantages:

1) the technical scheme of the invention can record and store the motion instruction execution information in real time, so that the motion control occasion of the invention does not need to carry out system reset under the condition of power-on again, can completely continue to operate the operation state node in the power-off state, especially can ensure that the multi-axis matching operation state is not changed, eliminates the influence on the production process caused by system reset when power-on is carried out again, avoids the inconvenience of production process rearrangement, and improves the production efficiency.

2) The technical scheme of the invention can record the execution information of the user program in real time, and can ensure that the operation process is completely consistent with the power failure node in the process application.

3) The technical scheme of the invention is provided with the power-on mode selection module, can respectively select the user program and the motion instruction to be started by the memory mode or the reset mode, is suitable for different application occasions, ensures the system safety, and is flexible and convenient to select through the interface module.

4) The memory storage module used in the technical scheme of the invention is a high-speed RAM storage chip, occupies less CPU resources in the process of executing, memorizing and storing the motion instruction execution information and the user program execution information, and is matched with the battery module to ensure that power-down data is not lost and the real-time performance of the system and the safety of the data are ensured.

Drawings

FIG. 1 is a system block diagram of an embodiment of the present invention;

FIG. 2 is a flow chart of a control method according to an embodiment of the present invention;

FIG. 3 is a flow chart of a normal operation procedure of an embodiment of the present invention;

FIG. 4 is a graph illustrating motion instruction execution according to an embodiment of the present invention.

DETAILED DESCRIPTION OF EMBODIMENT (S) OF INVENTION

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive effort based on the embodiments of the present invention, are within the scope of the present invention.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:面向叶片加工弹性变形控制的辅助支撑布局优化方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类