Automatic control method and automatic control device

文档序号:1396708 发布日期:2020-03-03 浏览:6次 中文

阅读说明:本技术 自动控制方法以及自动控制装置 (Automatic control method and automatic control device ) 是由 董其昌 于 2018-08-22 设计创作,主要内容包括:本发明提出一种自动控制方法以及自动控制装置。自动控制装置包括自动关节机构以及处理器。自动关节机构包括第一马达以及第二马达。处理器适于对第一马达以及第二马达进行出力调整。当第一马达的第一马达状态参数与第二马达的第二马达状态参数不相同时,处理器调整第一马达的第一目标位置参数以及第二马达的第二目标位置参数的至少其中之一,以使第一马达以及第二马达的至少其中之一自动且对应地调整出力程度。本发明的自动控制方法以及自动控制装置可有效地改善第一马达以及第二马达出力不平均的情况。(The invention provides an automatic control method and an automatic control device. The automatic control device comprises an automatic joint mechanism and a processor. The automatic joint mechanism includes a first motor and a second motor. The processor is adapted to perform a power adjustment on the first motor and the second motor. When the first motor state parameter of the first motor is different from the second motor state parameter of the second motor, the processor adjusts at least one of the first target position parameter of the first motor and the second target position parameter of the second motor, so that the output degree of the at least one of the first motor and the second motor is automatically and correspondingly adjusted. The automatic control method and the automatic control device can effectively improve the condition that the output of the first motor and the output of the second motor are uneven.)

1. An automatic control method for an automatic joint mechanism including a first motor and a second motor, the automatic control method being adapted to adjust output of the first motor and the second motor, the automatic control method comprising:

setting a first target position parameter of a first rotating shaft of the first motor and setting a second target position parameter of a second rotating shaft of the second motor, so that the first rotating shaft and the second rotating shaft rotate towards the first target position parameter and the second target position parameter simultaneously and respectively;

reading a first motor state parameter of the first motor and reading a second motor state parameter of the second motor;

determining whether to adjust a degree of output of at least one of the first motor and the second motor based on the first motor state parameter and the second motor state parameter; and

when the first motor state parameter is different from the second motor state parameter, at least one of the first motor and the second motor is selected to adjust at least one of the first target position parameter and the second target position parameter, so that at least one of the first motor and the second motor automatically and correspondingly adjusts the output degree.

2. The automatic control method of claim 1, wherein determining whether to adjust the degree of output of at least one of the first motor and the second motor based on the first motor state parameter and the second motor state parameter comprises:

reading the first motor to obtain a first current position parameter of the first motor, and reading the second motor to obtain a second current position parameter of the second motor; and

subtracting the first target location parameter from the first current location parameter to obtain a first location deviation parameter, and subtracting the second target location parameter from the second current location parameter to obtain a second location deviation parameter,

wherein the first motor state parameter is an absolute value of the first position deviation parameter of the first motor and the second motor state parameter is an absolute value of the second position deviation parameter of the second motor.

3. The automatic control method of claim 2, wherein determining whether to adjust the degree of output of at least one of the first motor and the second motor based on the first motor state parameter and the second motor state parameter further comprises:

and judging whether the absolute value of the first position deviation parameter is equal to the absolute value of the second position deviation parameter or not so as to determine to adjust the output degree of at least one of the first motor and the second motor.

4. The automatic control method of claim 3, wherein when the first motor state parameter is less than the second motor state parameter and at least one of the first motor and the second motor is selected to adjust at least one of the first target position parameter and the second target position parameter comprises:

taking the absolute value of the first position deviation parameter to obtain a first parameter;

taking the absolute value of the second position deviation parameter to obtain a second parameter;

subtracting the first parameter from the second parameter, and multiplying the subtracted result by half to obtain a third parameter;

judging whether the first position deviation parameter is greater than, less than or equal to 0;

if the first position deviation parameter is less than 0, subtracting the third parameter from the first target position parameter to obtain a fourth parameter, and updating the first target position parameter to the fourth parameter;

if the first position deviation parameter is greater than 0, adding the first target position parameter to the third parameter to obtain a fifth parameter, and updating the first target position parameter to the fifth parameter; and

if the first position deviation parameter is equal to 0, the first motor and the second motor are read again.

5. The automatic control method of claim 4, wherein selecting at least one of the first motor and the second motor to adjust at least one of the first target position parameter and the second target position parameter further comprises:

when the first target position parameter is updated to the fourth parameter, so that the respective output degrees of the first motor and the second motor are adjusted correspondingly, re-reading the adjusted first current position parameter of the first rotating shaft, and re-reading the adjusted second current position parameter of the second rotating shaft;

subtracting the first target position parameter after updating from the first current position parameter after adjusting to obtain a new first position deviation parameter;

taking the new first position deviation parameter as an absolute value to obtain a sixth parameter;

subtracting the adjusted second current position parameter from the second target position parameter to obtain a new second position deviation parameter;

taking the new second position deviation parameter as an absolute value to obtain a seventh parameter;

subtracting the seventh parameter from the sixth parameter and multiplying by half to obtain an eighth parameter;

judging whether the new first position deviation parameter is greater than, less than or equal to 0;

if the new first position deviation parameter is smaller than 0, subtracting the eighth parameter from the new first target position parameter to obtain a ninth parameter, and updating the first target position parameter to the ninth parameter;

if the new first position deviation parameter is greater than 0, adding the new first target position parameter to the eighth parameter to obtain a tenth parameter, and updating the first target position parameter to the tenth parameter; and

if the new first position deviation parameter is equal to 0, the first motor and the second motor are read again.

6. The automatic control method of claim 3, wherein the first motor state parameter is less than the second motor state parameter, and the step of selecting at least one of the first motor and the second motor to adjust the at least one of the first target position parameter and the second target position parameter comprises:

taking the absolute value of the first position deviation parameter to obtain a first parameter;

taking the absolute value of the second position deviation parameter to obtain a second parameter;

subtracting the second parameter from the first parameter and multiplying the subtracted result by half to obtain a third parameter;

judging whether the second position deviation parameter is greater than, less than or equal to 0;

if the second position deviation parameter is smaller than 0, adding the second target position parameter to the third parameter to obtain a fourth parameter, and updating the second target position parameter to the fourth parameter;

if the second position deviation parameter is greater than 0, subtracting the third parameter from the second target position parameter to obtain a fifth parameter, and updating the first target position parameter to the fifth parameter; and

and if the second position deviation parameter is equal to 0, reading the first motor and the second motor again.

7. The automatic control method of claim 6, wherein selecting at least one of the first motor and the second motor to adjust at least one of the first target position parameter and the second target position parameter further comprises:

when the second target position parameter is updated to the fourth parameter, so that the respective output degrees of the first motor and the second motor are adjusted correspondingly, re-reading the adjusted first current position parameter of the first rotating shaft, and re-reading the adjusted second current position parameter of the second rotating shaft;

subtracting the adjusted first current position parameter from the first target position parameter to obtain a new first position deviation parameter;

taking the new first position deviation parameter as an absolute value to obtain a sixth parameter;

subtracting the adjusted second current position parameter from the updated second target position parameter to obtain a new second position deviation parameter;

taking the new second position deviation parameter as an absolute value to obtain a seventh parameter;

subtracting the seventh parameter from the sixth parameter and multiplying by half to obtain an eighth parameter;

judging whether the new second position deviation parameter is greater than, less than or equal to 0;

if the new second position deviation parameter is smaller than 0, adding the new second target position parameter to the eighth parameter to obtain a ninth parameter, and updating the second target position parameter to the ninth parameter;

if the new second position deviation parameter is greater than 0, subtracting the eighth parameter from the new second target position parameter to obtain a tenth parameter, and updating the second target position parameter to the tenth parameter; and

if the new second position deviation parameter is equal to 0, the first motor and the second motor are read again.

8. The automatic control method of claim 1, wherein the first motor state parameter is a first motor temperature parameter of the first motor and the second motor state parameter is a second motor temperature parameter of the second motor.

9. The automatic control method of claim 8, wherein determining whether to adjust the degree of output of at least one of the first motor and the second motor based on the first motor state parameter and the second motor state parameter comprises:

and judging whether the first motor temperature parameter is equal to the second motor temperature parameter or not so as to determine to adjust the output degree of at least one of the first motor and the second motor.

10. The automatic control method of claim 9, wherein selecting at least one of the first motor and the second motor to adjust at least one of the first target position parameter and the second target position parameter when the first motor temperature parameter is less than the second motor temperature parameter comprises:

selecting the first motor to adjust the first target position parameter according to a first preset adjustment parameter so as to increase the output degree of the first motor; and

and selecting the second motor to adjust the second target position parameter according to a second preset adjustment parameter so as to reduce the output degree of the second motor.

11. The automatic control method according to claim 1, wherein the first motor and the second motor are linked and configured to apply a rotational force to a robot arm of the automatic joint mechanism together,

wherein if the output degree of one of the first motor and the second motor is changed, the output degree of the other of the first motor and the second motor is correspondingly changed.

12. An automatic control device, characterized by comprising:

an automatic joint mechanism including a first motor and a second motor; and

a processor coupled to the first motor and the second motor, wherein the processor is adapted to perform a power adjustment on the first motor and the second motor,

wherein the processor sets a first target position parameter of a first shaft of the first motor and sets a second target position parameter of a second shaft of the second motor such that the first shaft and the second shaft rotate toward the first target position parameter and the second target position parameter, respectively, simultaneously,

wherein the processor reads a first motor state parameter of the first motor and reads a second motor state parameter of the second motor,

wherein the processor determines whether to adjust a degree of output of at least one of the first motor and the second motor based on the first motor state parameter and the second motor state parameter,

when the first motor state parameter is different from the second motor state parameter, the processor selects at least one of the first motor and the second motor to adjust at least one of the first target position parameter and the second target position parameter, so that at least one of the first motor and the second motor automatically and correspondingly adjusts the output degree.

13. The automatic control device of claim 12, wherein the processor reads the first motor to obtain a first current position parameter of the first motor and reads the second motor to obtain a second current position parameter of the second motor,

wherein the processor subtracts the first target position parameter from the first current position parameter to obtain a first position deviation parameter of absolute value, and subtracts the second target position parameter from the second current position parameter to obtain a second position deviation parameter of absolute value,

wherein the first motor state parameter is the first position deviation parameter of the first motor and the second motor state parameter is the second position deviation parameter of the second motor,

wherein the processor adjusts the first target position parameter of the first motor when the processor determines that the first position deviation parameter is less than the second position deviation parameter.

14. The automatic control device of claim 12, wherein the processor reads the first motor to obtain a first current position parameter of the first motor and reads the second motor to obtain a second current position parameter of the second motor,

wherein the processor subtracts the first target position parameter from the first current position parameter to obtain a first position deviation parameter of absolute value, and subtracts the second target position parameter from the second current position parameter to obtain a second position deviation parameter of absolute value,

wherein the first motor state parameter is the first position deviation parameter of the first motor and the second motor state parameter is the second position deviation parameter of the second motor,

wherein the processor adjusts the second target position parameter of the second motor when the processor determines that the first position deviation parameter is less than the second position deviation parameter.

15. The automatic control device of claim 12, wherein the first motor state parameter is a first motor temperature parameter of the first motor and the second motor state parameter is a second motor temperature parameter of the second motor,

the processor determines whether the first motor temperature parameter is equal to the second motor temperature parameter to determine to adjust the output level of at least one of the first motor and the second motor.

16. The automatic control device of claim 15, wherein the first motor state parameter is less than the second motor state parameter,

wherein the processor adjusts the first target position parameter of the first motor according to a first preset adjustment parameter so as to increase the output level of the first motor,

the processor adjusts the second target position parameter of the second motor according to a second preset adjustment parameter, so as to reduce the output degree of the second motor.

17. The automatic control device according to claim 12, wherein said first motor and said second motor are coupled and configured to apply a rotational force to a robot arm of said automatic joint mechanism together,

wherein if the output degree of one of the first motor and the second motor is changed, the output degree of the other of the first motor and the second motor is correspondingly changed.

Technical Field

The present invention relates to a control technology, and more particularly, to an automatic control method and an automatic control apparatus.

Background

In recent years, automatic control devices such as robots, robotic arms, or other mechanical creatures have been designed and used in various fields. Therefore, the automatic control device usually needs to combine a plurality of motors to form an automatic joint mechanism, so as to move the robot arm by means of simultaneous operation of the motors provided in the automatic joint mechanism. However, since the degrees of the output of the motors may be different, when the automatic joint mechanism is fixed in a specific motion, the temperature of the motor with a higher degree of the output will gradually rise, so that the temperature of the motor is overheated and the force is leaked. In view of the above, several exemplary embodiments are provided below for how to effectively adjust the respective output levels of the motors so that the motors can achieve an average output, thereby effectively reducing the leakage of the motor due to overheating.

Disclosure of Invention

The invention provides an automatic control method and an automatic control device, which can automatically adjust the output degree of at least one of a first motor and a second motor in an automatic joint mechanism, so that the first motor and the second motor can output power evenly, and the condition that the output of the first motor and the second motor is uneven is effectively improved.

The automatic control method of the present invention is suitable for an automatic joint mechanism. The automatic joint mechanism includes a first motor and a second motor. The automatic control method is suitable for adjusting the output of the first motor and the second motor. The automatic control method comprises the following steps: setting a first target position parameter of a first rotating shaft of a first motor and setting a second target position parameter of a second rotating shaft of a second motor, so that the first rotating shaft and the second rotating shaft rotate towards the first target position parameter and the second target position parameter simultaneously and respectively; reading a first motor state parameter of the first motor and reading a second motor state parameter of the second motor; determining whether to adjust the output degree of at least one of the first motor and the second motor based on the first motor state parameter and the second motor state parameter; and when the first motor state parameter is different from the second motor state parameter, selecting at least one of the first motor and the second motor to adjust at least one of the first target position parameter and the second target position parameter, so that the output degree of at least one of the first motor and the second motor is automatically and correspondingly adjusted.

The automatic control device of the invention comprises an automatic joint mechanism and a processor. The automatic joint mechanism includes a first motor and a second motor. The processor is coupled to the first motor and the second motor. The processor is adapted to perform a power adjustment on the first motor and the second motor. The processor sets a first target position parameter of a first rotating shaft of the first motor and sets a second target position parameter of a second rotating shaft of the second motor, so that the first rotating shaft and the second rotating shaft rotate towards the first target position parameter and the second target position parameter simultaneously and respectively. The processor reads a first motor state parameter of the first motor and reads a second motor state parameter of the second motor. The processor determines whether to adjust the output degree of at least one of the first motor and the second motor based on the first motor state parameter and the second motor state parameter. When the first motor state parameter is different from the second motor state parameter, the processor selects at least one of the first motor and the second motor to adjust at least one of the first target position parameter and the second target position parameter, so that the output degree of the at least one of the first motor and the second motor is automatically and correspondingly adjusted.

Based on the above, the automatic control method and the automatic control device of the present invention can effectively analyze the state parameters of the motor, and update the target position of the rotating shaft of the motor, so that the motor can automatically and correspondingly adjust the output degree. Therefore, the automatic control method and the automatic control device can effectively reduce the situation of force leakage caused by overheating of the motor temperature.

In order to make the aforementioned and other features and advantages of the invention more comprehensible, embodiments accompanied with figures are described in detail below.

Drawings

Fig. 1 is a block diagram of an automatic control device according to an embodiment of the present invention.

FIG. 2 is a schematic diagram of an exemplary automatic control device according to the embodiment of the figure.

Fig. 3 is a flow chart of an automatic control method according to an embodiment of the present invention.

Fig. 4 is a flowchart of an automatic control method according to a first embodiment of the present invention.

FIG. 5A is a schematic diagram of a first motor state according to the embodiment of FIG. 4.

FIG. 5B is a diagram illustrating a second motor state according to the embodiment of FIG. 4.

Fig. 6 is a flowchart of an automatic control method according to a second embodiment of the present invention.

FIG. 7A is a schematic diagram of a first motor state according to the embodiment of FIG. 6.

FIG. 7B is a diagram illustrating a second motor state according to the embodiment of FIG. 6.

Fig. 8 is a flowchart of an automatic control method according to another embodiment of the present invention.

Description of the reference numerals

100: an automatic control device;

100B: an automatic articulation mechanism;

110: a processor;

120: a first motor;

121: a first rotating shaft;

122: a first gear;

130: a second motor;

131: a second rotating shaft;

132: a second gear;

141: a joint rotation shaft;

142: a joint gear;

143: a robot arm;

s310 to S340, S401 to S410, S601 to S610, S810 to S850: a step of;

TP1, TP 1': a first target location parameter;

TP2, TP 2': a second target location parameter;

CP 1: a first current location parameter;

CP 2: a second current location parameter.

Detailed Description

In order that the present disclosure may be more readily understood, the following specific examples are given as illustrative of the invention which may be practiced in various ways. Further, wherever possible, the same reference numbers will be used throughout the drawings and the description to refer to the same or like parts.

Fig. 1 is a block diagram of an automatic control device according to an embodiment of the present invention. Referring to fig. 1, the automatic control apparatus 100 includes a processor 110, a first motor 120, and a second motor 130. The processor 110 is coupled to the first motor 120 and the second motor 130. In the present embodiment, the automatic control apparatus 100 may include an automatic joint mechanism, and the first motor 120 and the second motor 130 are provided in the automatic joint mechanism. For example, the first motor 120 and the second motor 130 can be coupled to the robot arm together and perform the robot arm operation in a cooperative manner. However, the automatic control device 100 of the present invention is not limited to two motors. In one embodiment, the automatic control device 100 may include more than two motors to form an automatic joint mechanism.

In the present embodiment, the processor 110 is adapted to perform output adjustment on the first motor and the second motor. In the embodiment, the processor 110 is, for example, a Central Processing Unit (CPU), or other Programmable general purpose or special purpose Microprocessor (Microprocessor), Digital Signal Processor (DSP), Programmable controller, Application Specific Integrated Circuit (ASIC), Programmable Logic Device (PLD), other similar Processing Circuits, or a combination thereof. In addition, the automatic control device 100 may further include a memory. The memory may be used to record relevant algorithms, software or modules for implementing the automatic control method according to the embodiments of the present invention, so that the processor 110 can read and execute the algorithms, software or modules.

In the embodiment, the first motor 120 and the second motor 130 may be, for example, a smart servo motor (Smartservo motor), but the invention is not limited thereto. In the present embodiment, the first motor 120 and the second motor 130 can respectively receive the control command of the processor 110 to perform corresponding operations. The control command outputted from the processor 110 may be, for example, a read ID command, a set ID command, a fix command, a relax command, a turn to target angle command within a given time, a read target angle command, a read current rotation angle command, a set target angle command, etc., and the present invention is not limited thereto. In addition, the first motor 120 and the second motor 130 may further include a position sensor and a temperature sensor, respectively. The position sensor is used for sensing the rotation position of the rotating shaft, so that the processor 110 can obtain the position parameter according to the embodiments by reading the position sensor. The temperature sensor is used for sensing the body temperature of the motor, so that the processor 110 can obtain the temperature parameter according to the embodiments by reading the temperature sensor.

Fig. 2 is a schematic diagram of an example of the automatic control device according to the embodiment of fig. 1. Referring to fig. 1 and 2, the automatic joint mechanism 100B of fig. 2 is an exemplary embodiment of the automatic control device 100 of fig. 1, but the automatic control device of the present invention is not limited thereto. In one embodiment, the automatic control device 100 of fig. 1 may be in other forms. In the present embodiment, the automatic joint mechanism 100B is a robot arm mechanism. The automatic joint mechanism 100B includes a first motor 120, a second motor 130, a joint rotation shaft 141, a joint gear 142, and a robot arm 143. The first motor 120 includes a first shaft 121 and a first gear 122. The second motor 130 includes a second shaft 131 and a second gear 132. The first shaft 121 is coupled with the first gear 122 such that the first shaft 121 and the first gear 122 rotate in synchronization. The second shaft 131 is coupled to the second gear 132, so that the second shaft 131 and the second gear 132 rotate synchronously. The joint rotation shaft 141 is coupled with the joint gear 142 such that the joint rotation shaft 141 and the joint gear 142 rotate in synchronization. The robot arm 143 is fixed to the joint gear 142 so that the robot arm 143 is interlocked with the joint gear 142. In the present embodiment, the first gear 122 is engaged with the joint gear 142, and the second gear 132 is engaged with the joint gear 142, so that the first gear 122, the second gear 132, and the joint gear 142 rotate in synchronization.

Fig. 3 is a flow chart of an automatic control method according to an embodiment of the present invention. Referring to fig. 1 to 3, the automatic control method of fig. 3 may be applied to at least the automatic control apparatus 100 of fig. 1 and 2. The processor 110 of the automatic control device 100 can execute the steps S310 to S340 to perform the output adjustment operation on the first motor 120 and the second motor 130. In step S310, the processor 110 may set a first target position parameter (TP1) of the first rotating shaft 121 of the first motor 120 and a second target position parameter (TP2) of the second rotating shaft 131 of the second motor 130, such that the first rotating shaft 121 and the second rotating shaft 131 rotate towards the first target position parameter (TP1) and the second target position parameter (TP2), respectively, simultaneously. However, although the processor 110 drives the first motor 120 and the second motor 130 according to the first target position parameter (TP1) and the second target position parameter (TP2), as a result of the actual rotation of the first rotating shaft 121 and the second rotating shaft 131, the robot arm 143 may be influenced by gravity or the mechanical structure of the automatic joint mechanism 100B may not be able to rotate to the first target position parameter (TP1) and the second target position parameter (TP2) so that the forces of the first motor 120 and the second motor 130 are not even, and at least one of the first motor 120 and the second motor 130 may be overheated.

Therefore, in step S320, after the first shaft 121 and the second shaft 131 rotate to the first current position and the second current position according to the first target position parameter (TP1) and the second target position parameter (TP2), the processor 110 may read the first motor state parameter of the first motor 120 and read the second motor state parameter of the second motor 130. In step S330, the processor 110 determines whether to adjust the output level of at least one of the first motor 120 and the second motor 130 based on the first motor state parameter and the second motor state parameter. In step S340. When the first motor state parameter is different from the second motor state parameter, the processor 110 may select at least one of the first motor 120 and the second motor 130 to adjust at least one of the first target position parameter (TP1) and the second target position parameter (TP2) so that the at least one of the first motor 120 and the second motor 130 automatically and correspondingly adjusts the output level.

Specifically, first, the processor 110 may read the first motor 120 to obtain the first current position parameter of the first motor 120 (CP1), and read the second motor 130 to obtain the second current position parameter of the second motor 130 (CP 2). The processor 110 may subtract the first target position parameter (TP1) from the first current position parameter (CP1) to obtain a first position deviation parameter (DP1 ═ TP1-CP1), and may subtract the second target position parameter (TP2) from the second current position parameter (CP2) to obtain a second position deviation parameter (DP2 ═ TP2-CP 2). Next, the processor 110 takes the absolute value (| DP1|) of the first position deviation parameter of the first motor 120 as the first motor state parameter, and the absolute value (| DP2|) of the second position deviation parameter of the second motor 130 as the second motor state parameter. Finally, the processor 110 may determine whether the absolute value (| DP1|) of the first position deviation parameter is equal to the absolute value (| DP2|) of the second position deviation parameter, so as to determine to adjust the output level of at least one of the first motor 120 and the second motor 130. Therefore, the automatic control method of the present embodiment can effectively adjust the output degree of at least one of the first motor 120 and the second motor 130 in the automatic joint mechanism 100B, so that the first motor 120 and the second motor 130 can output force evenly, and the uneven output of the first motor 120 and the second motor 130 can be effectively improved.

The following embodiments of fig. 4-5B are exemplary embodiments of a motor with a smaller degree of output adjustment.

Fig. 4 is a flowchart of an automatic control method according to a first embodiment of the present invention. Referring to fig. 1, 2 and 4, the automatic control method of fig. 4 may be applied to at least the automatic control apparatus 100 of fig. 1 and 2. The processor 110 of the automatic control apparatus 100 may execute the steps S401 to S410 to perform the output power adjustment procedure for the first motor 120 and the second motor 130. It should be noted that, in the present embodiment, it is assumed that the output degree of the first motor 120 is smaller than that of the second motor 130, and the processor 110 adjusts the first target position parameter (TP1) of the first motor 120 with smaller output. Therefore, in step S401, the processor 110 may read the first current position parameter of the first hinge 121 (CP1) and read the second current position parameter of the second hinge 131 (CP 2). In step S402, the processor 110 may calculate the first position deviation parameter (DP1) and the second position deviation parameter (DP2), and determine whether the absolute value (| DP1|) of the first position deviation parameter and the absolute value (| DP2|) of the second position deviation parameter are equal. For example, the processor 110 subtracts the first target position parameter from the first current position parameter (DP 1-TP 1-CP1) to obtain a first position deviation parameter (DP1), and subtracts the second target position parameter from the second current position parameter (DP 2-TP 2-CP2) to obtain a second position deviation parameter (DP 2). The processor 110 takes the absolute value (| DP1|) of the first position deviation parameter as the first motor state parameter and the absolute value (| DP2|) of the second position deviation parameter as the second motor state parameter.

In step S403, when the absolute value of the first position deviation parameter is smaller than the absolute value of the second position deviation parameter (| DP1| < | DP2|), it indicates that the degree of output of the first motor 120 is smaller than that of the second motor 130, so the processor 110 selects the first motor 120 with the smaller degree of output adjustment. The processor 110 first performs an operation to obtain a plurality of parameters. In the present embodiment, the processor 110 takes the absolute value of the first position deviation parameter to obtain the first parameter (| DP1 |). The processor 110 takes the second position deviation parameter as an absolute value to obtain the second parameter (| DP2 |). The processor 110 subtracts the second parameter from the first parameter and multiplies the subtracted result by half to obtain a third parameter ((| DP2| - | DP1 |)/2). Next, in step S404, the processor 110 determines whether the first position deviation parameter (DP1) is greater than, less than or equal to 0.

FIG. 5A is a schematic diagram of a first motor state according to the embodiment of FIG. 4. FIG. 5B is a diagram illustrating a second motor state according to the embodiment of FIG. 4. Reference is also made to fig. 1, fig. 2, fig. 4, fig. 5A and fig. 5B to assist in explaining how to adjust the output level of the first motor 120. In the present embodiment, the number of steps of the first motor 120 can be 0 to 1023. The first shaft 121 of the first motor 120 starts to rotate from 0, and the position parameter is the value of the step number. Therefore, continuing with step S404, if the processor 110 determines that the first position deviation parameter (DP1) is less than 0, it indicates that the first motor 120 may be in the first motor state of fig. 5A. In step S405, the processor 110 subtracts the first target location parameter from the third parameter to obtain a fourth parameter, and updates the first target location parameter to the fourth parameter (TP1 ═ TP1- (| DP2| -DP 1 |)/2). In other words, the processor 110 may update the first target position parameter (TP1) of the first rotating shaft 121 to the updated first target position parameter (TP1 ') so that the first motor 120 automatically increases the output level due to the first current position parameter (CP1) being farther away from the updated first target position parameter (TP 1'). Additionally, since the second motor 130 is linked with the first motor 120 to apply a rotational force to the robot 143, if the output level of the first motor 120 is changed, the output level of the second motor 130 is also changed accordingly.

On the contrary, if the processor 110 determines that the first position deviation parameter (DP1) is greater than 0, it indicates that the first motor 120 may be in the second motor state shown in fig. 5B. In step S406, the processor 110 adds the first target position parameter to the third parameter to obtain a fifth parameter, and updates the first target position parameter to the fifth parameter (TP1 ═ TP1+ (| DP2| - | DP1 |)/2). In other words, the processor 110 may update the first target position parameter (TP1) of the first rotating shaft 121 to the updated first target position parameter (TP1 ') so that the first motor 120 automatically increases the output level due to the first current position parameter (CP1) being farther away from the updated first target position parameter (TP 1'). In addition, similarly to the above, since the second motor 130 is linked with the first motor 120 to apply the rotational force to the robot 143, if the output level of the first motor 120 is changed, the output level of the second motor 130 is also changed accordingly.

However, if the processor 110 determines that the first position deviation parameter (DP1) is equal to 0, the processor 110 will re-execute step S401 to re-read the first motor 120 and the second motor 130. In other words, since the degrees of the output of the first motor 120 and the second motor 130 vary with time (non-constant output), the positions of the first rotating shaft 121 of the first motor 120 and the second rotating shaft 131 of the second motor 130 have an oscillating effect with time (non-constant positions). In contrast, as long as the processor 110 continues to re-execute step S401, it can be determined that the first motor 120 is in the motor state shown in fig. 5A or 5B, and the first target position parameter (TP1) is updated accordingly.

The above steps S401 to S406 are to perform a relatively coarse adjustment of the output level of the first motor 120, and the following steps S407 to S410 are to perform a relatively fine adjustment of the output level of the first motor 120. In step S407, when the respective output levels of the first motor 120 and the second motor 130 are adjusted correspondingly, the processor 110 re-reads the adjusted first current position parameter (CP1 ') of the first shaft 121 and re-reads the adjusted second current position parameter (CP 2') of the second shaft 131. The processor 110 first performs an operation to obtain a plurality of parameters. In the present embodiment, the processor 110 subtracts the updated first target location parameter from the adjusted first current location parameter to obtain a new first location deviation parameter (DP1 ═ TP1 '-CP 1'). The processor 110 takes the new first position deviation parameter as an absolute value to obtain the sixth parameter (| TP1 '-CP 1' |). The processor 110 subtracts the second target position parameter from the adjusted second current position parameter to obtain a new second position deviation parameter (DP2 ═ TP2-CP 2'). The processor 110 takes the new second position deviation parameter as an absolute value to obtain the seventh parameter (| TP2-CP 2' |). The processor 110 subtracts the seventh parameter from the sixth parameter and multiplies the subtracted result by half to obtain the eighth parameter ((| TP2-CP 2| - | TP1 '-CP 1' |)/2). Next, in step S408, the processor 110 determines whether the new first position deviation parameter (DP 1') is greater than, less than or equal to 0.

In the present embodiment, if the processor 110 determines that the new first position deviation parameter (DP 1') is less than 0, it indicates that the first motor 120 may be similar to the first motor state shown in fig. 5A. In step S409, the processor 110 subtracts the new first target position parameter from the eighth parameter to obtain a ninth parameter, and updates the first target position parameter to the ninth parameter (TP1 ″) TP1 ″ (| TP2-CP 2| -TP 1' -CP1 |)/2). In other words, the processor 110 may update the first target position parameter (TP1 ') of the first rotating shaft 121 to the updated first target position parameter (TP1 "), so that the first motor 120 automatically increases the output level because the adjusted first current position parameter (CP 1') is farther away from the updated first target position parameter (TP 1"). Additionally, since the second motor 130 is linked with the first motor 120 to apply a rotational force to the robot 143, if the output level of the first motor 120 is changed, the output level of the second motor 130 is also changed accordingly.

Conversely, if the processor 110 determines that the new first position deviation parameter (DP 1') is greater than 0, it indicates that the first motor 120 may be similar to the second motor state shown in fig. 5B. In step S410, the processor 110 adds the new first target position parameter to the eighth parameter to obtain the tenth parameter, and updates the first target position parameter to the tenth parameter (TP1 ″) TP1 '+ (| TP2-CP 2' | - | TP1 '-CP 1' |)/2). In other words, the processor 110 may update the first target position parameter (TP1 ') of the first rotating shaft 121 to the updated first target position parameter (TP1 "), so that the first motor 120 automatically increases the output level because the adjusted first current position parameter (CP 1') is farther away from the updated first target position parameter (TP 1"). In addition, similarly to the above, since the second motor 130 is linked with the first motor 120 to apply the rotational force to the robot 143, if the output level of the first motor 120 is changed, the output level of the second motor 130 is also changed accordingly.

However, if the processor 110 determines that the adjusted first position deviation parameter (DP 1') is equal to 0, the processor 110 will re-execute step S407 to re-read the first motor 120 and the second motor 130. In other words, since the degrees of the output of the first motor 120 and the second motor 130 vary with time (non-constant output), the positions of the first rotating shaft 121 of the first motor 120 and the second rotating shaft 131 of the second motor 130 have an oscillating effect with time (non-constant positions). In contrast, as long as the processor 110 continuously executes the step S607 again, it can be determined that the first motor 120 is in the motor state similar to that shown in fig. 5A or 5B, so as to perform the more detailed parameter adjustment on the updated first target position parameter (TP 1') again.

Therefore, the automatic control method of the present embodiment can sequentially increase the output of the first motor 120 through a two-stage determination procedure, so that the first motor 120 and the second motor 130 can output power equally, thereby effectively improving the uneven output of the first motor 120 and the second motor 130.

The following embodiments of fig. 6 to 7B are exemplary embodiments of a motor with a small degree of adjustment.

Fig. 6 is a flowchart of an automatic control method according to a second embodiment of the present invention. Referring to fig. 1, 2, and 6, the automatic control method of fig. 6 may be applied to at least the automatic control apparatus 100 of fig. 1 and 2. The processor 110 of the automatic control apparatus 100 can execute the steps S601 to S610 to perform the output power adjustment procedure for the first motor 120 and the second motor 130. It should be noted that, in the present embodiment, it is assumed that the output degree of the first motor 120 is smaller than that of the second motor 130, and the processor 110 adjusts the second target position parameter (TP2) of the second motor 130 with larger output. Therefore, in step S601, the processor 110 may read the first current position parameter of the first hinge 121 (CP1) and read the second current position parameter of the second hinge 131 (CP 2). In step S602, the processor 110 may calculate the first position deviation parameter (DP1) and the second position deviation parameter (DP2), and determine whether the absolute value (| DP1|) of the first position deviation parameter and the absolute value (| DP2|) of the second position deviation parameter are equal. For example, the processor 110 subtracts the first target position parameter from the first current position parameter (DP 1-TP 1-CP1) to obtain a first position deviation parameter (DP1), and subtracts the second target position parameter from the second current position parameter (DP 2-TP 2-CP2) to obtain a second position deviation parameter (DP 2). The processor 110 takes the absolute value (| DP1|) of the first position deviation parameter as the first motor state parameter and the absolute value (| DP2|) of the second position deviation parameter as the second motor state parameter.

In step S603, when the absolute value of the first position deviation parameter is smaller than the absolute value of the second position deviation parameter (| DP1| < | DP2|), it indicates that the degree of output of the first motor 120 is smaller than that of the second motor 130, so the processor 110 selects the second motor 130 with a larger degree of output adjustment. The processor 110 first performs an operation to obtain a plurality of parameters. In the present embodiment, the processor 110 takes the absolute value of the first position deviation parameter to obtain the first parameter (| DP1 |). The processor 110 takes the second position deviation parameter as an absolute value to obtain the second parameter (| DP2 |). The processor 110 subtracts the second parameter and the first parameter and multiplies the subtracted result by half to obtain a third parameter ((| DP2| - | DP1 |)/2). Next, in step S604, the processor 110 determines whether the second position deviation parameter (DP2) is greater than, less than or equal to 0.

FIG. 7A is a schematic diagram of a first motor state according to the embodiment of FIG. 6. FIG. 7B is a diagram illustrating a second motor state according to the embodiment of FIG. 6. Reference is also made to fig. 1, fig. 2, fig. 6, fig. 7A and fig. 7B to assist in explaining how to adjust the output level of the second motor 130. In the present embodiment, the number of steps of the second motor 130 can be 0 to 1023. The second shaft 131 of the second motor 130 starts to rotate from 0, and the position parameter is the value of the step number. Therefore, continuing with step S604, if the processor 110 determines that the second position deviation parameter (DP2) is less than 0, it indicates that the second motor 130 may be in the first motor state of fig. 7A. In step S605, the processor 110 adds the second target position parameter to the third parameter to obtain a fourth parameter, and updates the second target position parameter to the fourth parameter (TP2 ═ TP2+ (| DP2| - | DP1 |)/2). In other words, the processor 110 may update the second target position parameter (TP2) of the second shaft 131 to the updated second target position parameter (TP2 ') so that the second motor 130 automatically reduces the output level because the second current position parameter (CP2) is closer to the updated second target position parameter (TP 2'). Additionally, since the first motor 120 and the second motor 130 are linked to apply a rotational force to the robot 143, if the output level of the second motor 130 is changed, the output level of the first motor 120 is also changed accordingly.

On the contrary, if the processor 110 determines that the second position deviation parameter (DP2) is greater than 0, it indicates that the second motor 130 may be in the second motor state shown in fig. 7B. In step S606, the processor 110 subtracts the second target location parameter from the third parameter to obtain a fifth parameter, and updates the second target location parameter to the fifth parameter (TP2 ═ TP2- (| DP2| -DP 1 |)/2). In other words, the processor 110 may update the second target position parameter (TP2) of the second shaft 131 to the updated second target position parameter (TP2 ') so that the second motor 130 automatically reduces the output level because the second current position parameter (CP2) is closer to the updated second target position parameter (TP 2'). In addition, similarly to the above, since the first motor 120 and the second motor 130 are linked to apply a rotational force to the robot 143 together, if the output level of the second motor 130 is changed, the output level of the first motor 120 is also changed correspondingly.

However, if the processor 110 determines that the second position deviation parameter (DP2) is equal to 0, the processor 110 will re-execute step S601 to re-read the first motor 120 and the second motor 130. In other words, since the degrees of the output of the first motor 120 and the second motor 130 vary with time (non-constant output), the positions of the first rotating shaft 121 of the first motor 120 and the second rotating shaft 131 of the second motor 130 have an oscillating effect with time (non-constant positions). In contrast, as long as the processor 110 continues to re-execute step S601, it can determine that the second motor 130 is in the motor state shown in fig. 7A or fig. 7B, and accordingly update the second target position parameter (TP 2).

The above steps S601 to S606 are to perform a relatively coarse adjustment on the output level of the second motor 130, and the following steps S607 to S610 are to perform a relatively fine adjustment on the output level of the second motor 130. In step S607, when the respective output levels of the first motor 120 and the second motor 130 are adjusted correspondingly, the processor 110 re-reads the adjusted first current position parameter (CP1 ') of the first rotating shaft 121 and re-reads the adjusted second current position parameter (CP 2') of the second rotating shaft 131. The processor 110 first performs an operation to obtain a plurality of parameters. In the present embodiment, the processor 110 subtracts the first target position parameter from the adjusted first current position parameter to obtain a new first position deviation parameter (DP1 '═ TP1-CP 1'). The processor 110 takes the new first position deviation parameter as an absolute value to obtain the sixth parameter (| TP1-CP 1' |). The processor 110 subtracts the updated second target position parameter from the adjusted second current position parameter to obtain a new second position deviation parameter (DP2 ' ═ TP2 ' -CP2 '). The processor 110 takes the new second position deviation parameter as an absolute value to obtain the seventh parameter (| TP2 '-CP 2' |). The processor 110 subtracts the seventh parameter from the sixth parameter and multiplies the subtracted result by half to obtain the eighth parameter ((| TP2 ' -CP2 ' - | TP1-CP1 ' |)/2). Next, in step S608, the processor 110 determines whether the new second position deviation parameter (DP 2') is greater than, less than or equal to 0.

In this embodiment, if the processor 110 determines that the new second position deviation parameter (DP 2') is less than 0, it indicates that the second motor 130 may be similar to the first motor state shown in fig. 7A. In step S609, the processor 110 adds the new second target position parameter to the eighth parameter to obtain the ninth parameter, and updates the second target position parameter to the ninth parameter (TP2 ″) TP2 '+ (| TP 2' -CP2 '| - | TP1-CP 1' |)/2). In other words, the processor 110 may update the second target position parameter (TP2 ') of the second rotating shaft 131 to the updated second target position parameter (TP2 ") so that the second motor 130 automatically reduces the degree of the output because the adjusted second current position parameter (CP 2') is closer to the updated second target position parameter (TP 2"). Additionally, since the first motor 120 and the second motor 130 are linked to apply a rotational force to the robot 143, if the output level of the second motor 130 is changed, the output level of the first motor 120 is also changed accordingly.

On the contrary, if the processor 110 determines that the new second position deviation parameter (DP 2') is greater than 0, it indicates that the second motor 130 may be similar to the second motor state shown in fig. 7B. In step S610, the processor 110 subtracts the new second target position parameter from the eighth parameter to obtain a tenth parameter, and updates the second target position parameter to the tenth parameter (TP2 ″) TP2 ″ (| TP2 ' -CP2 ' | - | TP1-CP1 ' |)/2). In other words, the processor 110 may update the second target position parameter (TP2 ') of the second rotating shaft 131 to the updated second target position parameter (TP2 ") so that the second motor 130 automatically reduces the degree of the output because the adjusted second current position parameter (CP 2') is closer to the updated second target position parameter (TP 2"). In addition, similarly to the above, since the first motor 120 and the second motor 130 are linked to apply a rotational force to the robot 143 together, if the output level of the second motor 130 is changed, the output level of the first motor 120 is also changed correspondingly.

However, if the processor 110 determines that the adjusted second position deviation parameter (DP 2') is equal to 0, the processor 110 will re-execute step S607 to re-read the first motor 120 and the second motor 130. In other words, since the degrees of the output of the first motor 120 and the second motor 130 vary with time (non-constant output), the positions of the first rotating shaft 121 of the first motor 120 and the second rotating shaft 131 of the second motor 130 have an oscillating effect with time (non-constant positions). In contrast, as long as the processor 110 continuously executes the step S607 again, it can be determined that the first motor 120 is in the motor state similar to that shown in fig. 7A or 7B, so as to perform the more detailed parameter adjustment on the updated second target position parameter (TP 2') again.

Therefore, the automatic control method of the present embodiment can sequentially increase the output of the second motor 130 by two-stage judgment, so that the first motor 120 and the second motor 130 can output power equally, thereby effectively improving the uneven output of the first motor 120 and the second motor 130. In addition, the automatic control apparatus of the present invention is not limited to executing the automatic control method of fig. 4 or 6 alone. In an embodiment, the automatic control apparatus of the present invention can also synchronously execute the automatic control method of the embodiments shown in fig. 4 and fig. 6 to perform an adjustment procedure for the motor with smaller output power and the motor with larger output power, so as to improve the uneven output power of the first motor 120 and the second motor 130 more quickly and effectively.

Fig. 8 is a flowchart of an automatic control method according to another embodiment of the present invention. Referring to fig. 1, 2, and 8, the automatic control method of fig. 8 may be applied to at least the automatic control apparatus 100 of fig. 1 and 2. The processor 110 of the automatic control device 100 may execute steps S810 to S850 to perform the output adjustment operation on the first motor 120 and the second motor 130. In step S810, the processor 110 may set a first target position parameter (TP1) of the first rotating shaft 121 of the first motor 120 and a second target position parameter (TP2) of the second rotating shaft 131 of the second motor 130, such that the first rotating shaft 121 and the second rotating shaft 131 rotate towards the first target position parameter (TP1) and the second target position parameter (TP2), respectively, simultaneously. However, although the processor 110 drives the first motor 120 and the second motor 130 according to the first target position parameter (TP1) and the second target position parameter (TP2), as a result of the actual rotation of the first rotating shaft 121 and the second rotating shaft 131, the robot arm 143 may be influenced by gravity or the mechanical structure of the automatic joint mechanism 100B may not be able to rotate to the first target position parameter (TP1) and the second target position parameter (TP2) so that the forces of the first motor 120 and the second motor 130 are not even, and at least one of the first motor 120 and the second motor 130 may be overheated.

Therefore, in step S820, after the first shaft 121 and the second shaft 131 rotate to the first current position and the second current position according to the first target position parameter (TP1) and the second target position parameter (TP2), the processor 110 may read the first motor temperature parameter (T1) of the first motor 120 and read the second motor temperature parameter (T2) of the second motor 130. In step S830, the processor 110 may determine whether the first motor temperature parameter (T1) and the second motor temperature parameter (T2) are equal to each other, so as to determine to adjust the output level of at least one of the first motor 120 and the second motor 130. In step S840. When the first motor temperature parameter is less than the second motor temperature parameter (T1< T2), the first motor 120 with the lower motor temperature is selected to adjust the first target position parameter (TP1 ═ TP1-AP1) according to the first preset adjustment parameter (AP1), so as to increase the output degree of the first motor. In step S850. When the second motor temperature parameter is less than the second motor temperature parameter (T1< T2), the second motor 130 with the higher motor temperature is selected to adjust the second target position parameter (TP2 ═ TP2-AP2) according to the second preset adjustment parameter (AP2), so as to increase the output level of the first motor.

In addition, in the present embodiment, the first preset tuning parameter (AP1) and the second preset tuning parameter (AP2) may be determined by, for example, the parameter values of 1% to 10% of the first target position parameter (TP1 ') and the second target position parameter (TP 2'). In addition, in the embodiment, after the processor 110 executes the steps S810 to S850 to perform the output adjustment operation on at least one of the first motor 120 and the second motor 130, the processor 110 waits for a preset time (e.g., 5 minutes) and then performs the next output adjustment operation. In other words, the processor 110 waits for the completion of the corresponding adjustment of the output levels of the first motor 120 and the second motor 130, or after the corresponding temperature changes of the first motor 120 and the second motor 130, and then performs the next output adjustment operation to effectively adjust the output levels of the first motor 120 and the second motor 130, so as to avoid invalid adjustment results caused by too frequent parameter settings.

Therefore, the automatic control method of the present embodiment can effectively prevent the first motor 120 and the second motor 130 from overheating. The automatic control method of the embodiment can adjust the target position of the motor with higher temperature to the current position to reduce the output degree of the motor with higher temperature, and can adjust the target position of the motor with lower temperature to be far away from the current position to increase the output degree of the motor with lower temperature. However, in an embodiment, the automatic control device 100 may only have a motor with a higher adjustment temperature or a motor with a lower adjustment temperature, and it is also effective to prevent the first motor 120 and the second motor 130 from overheating. In addition, in addition to the above-mentioned manner of adjusting the output level of the motor by calculating the current position and the target position of the rotating shaft of the motor according to the embodiment of fig. 6 with reference to fig. 4, the automatic control device of the present invention may also adjust the output level of the motor by determining the temperature of the motor according to the embodiment of fig. 8.

In summary, the automatic control method and the automatic control apparatus of the present invention can install the first motor and the second motor in an automatic joint mechanism together to move the same robot arm synchronously, and determine to adjust the output degree of at least one of the first motor and the second motor by analyzing the position deviation parameter and the motor temperature parameter of at least one of the first motor and the second motor. In addition, the automatic control method and the automatic control device of the invention can automatically and correspondingly adjust the output degree of at least one of the first motor and the second motor by updating the target position of at least one of the first rotating shaft of the first motor and the second rotating shaft of the second motor. Therefore, the automatic control method and the automatic control device of the invention can enable the plurality of interlocked motors to achieve the effect of average output force, thereby effectively reducing the situation of force leakage caused by overheating of the motor temperature.

Although the present invention has been described with reference to the above embodiments, it should be understood that the invention is not limited to the embodiments, and various changes and modifications can be made by those skilled in the art without departing from the spirit and scope of the invention.

23页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种龙门机折叠机构

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!