The present disclosure relates to a motor control device that controls a motor.
A motor control device that controls a motor that positions a load at a target position is conventionally known (e.g., see PTL 1).
PTL 1: Unexamined Japanese Patent Publication No. 2014-203365
When the load is moved to the target position, the load is desired to be quickly positioned within a predetermined range from the target position.
Thus, it is an object of the present disclosure to provide a motor control device capable of controlling a motor to achieve quick positioning of a load within a predetermined range from a target position.
A motor control device according to an aspect of the present disclosure controls a motor that moves a load to a target position based on a position command for instructing a position of the motor. The motor control device includes a prediction part, a correction command generator, a corrector, and a controller. The prediction part acquires one or more target position deviations each indicating a difference between a position of the load and the target position at a corresponding one of one or more times, and a target settling time indicating a target time at which the motor positions the load at the target position. Then, a predicted target position deviation indicating a difference between a position of the load at the target settling time and the target position is calculated based on the one or more target position deviations and the target settling time. When the predicted target position deviation indicates that the load does not reach within a predetermined range from the target position, the correction command generator generates a correction command for correcting the position command based on the predicted target position deviation. The corrector acquires the position command, corrects the position command based on the correction command, and generates a corrected position command. The controller controls the motor based on the corrected position command and a position of the motor.
The above configuration provides a motor control device capable of controlling a motor to quick movement of a load from a target position to a predetermined range.
PTL 1 describes a control system that positions a load without exceeding a target position. This control system includes a servo unit for controlling a motor that positions a load, the servo unit controlling the motor based on an internal command from a main control unit that is a host controller. This control system positions the load without exceeding the target position as follows: causing the motor to decelerate positioning speed of the load when the load approaches the target position; repeatedly performing imaging of the load and image processing of the captured image; and feeding back a result of the image processing to an internal command every time the image processing is performed.
When the control system for positioning the load can position the load within a predetermined range from the target position, the control system does not necessarily need to position the load without exceeding the target position. This kind of system is desired to position the load quickly.
Thus, the inventors have conducted intensive studies and experiments on a motor control device capable of controlling a motor to achieve quick positioning of a load within a predetermined range from a target position. As a result, the inventors have conceived a motor control device below.
The motor control device according to an aspect of the present disclosure controls a motor that moves a load to a target position based on a position command for instructing a position of the motor. The motor control device includes a prediction part, a correction command generator, a corrector, and a controller. The prediction part acquires one or more target position deviations each indicating a difference between a position of the load and the target position at a corresponding one of one or more times, and a target settling time indicating a target time at which the motor positions the load at the target position. Then, a predicted target position deviation indicating a difference between a position of the load at the target settling time and the target position is calculated based on the one or more target position deviations and the target settling time. When the predicted target position deviation indicates that the load does not reach within a predetermined range from the target position, the correction command generator generates a correction command for correcting the position command based on the predicted target position deviation. The corrector acquires the position command, corrects the position command based on the correction command, and generates a corrected position command. The controller controls the motor based on the corrected position command and a position of the motor.
The motor control device having the above configuration acquires one or more target position deviations and a target settling time, and corrects a position command based on the acquired one or more target position deviations and target settling time. Thus, the motor control device having the above configuration does not need to cause a host controller side to feed back information related to a position of the load, the host controller side being configured to output a position command to a motor drive device. Thus, the motor control device having the above configuration is capable of controlling the motor to achieve quick positioning of the load within a predetermined range from the target position. The motor control device having the above configuration also does not necessarily need to decelerate the positioning speed of the load even when the load approaches the target position. Thus, the motor control device having the above configuration is capable of controlling the motor to achieve quicker positioning of the load within the predetermined range from the target position.
The one or more target position deviations may be multiple target position deviations including a first target position deviation at a first time and a second target position deviation at a second time. The prediction part may calculate the predicted target position deviation based on the first time, the second time, the first target position deviation, and the second target position deviation.
As a result, the motor can be controlled relatively accurately based on the amount of change in the target position deviation per part time.
The prediction part may calculate the predicted target position deviation by linear interpolation performed using the first time, the second time, the first target position deviation, and the second target position deviation.
As a result, the predicted target position deviation can be calculated with a relatively small amount of calculation.
The multiple target position deviations may further include a third target position deviation at a third time. The prediction part may calculate the predicted target position deviation by secondary interpolation performed using the first time, the second time, the third time, the first target position deviation, the second target position deviation, and the third target position deviation.
As a result, the predicted target position deviation can be calculated with relatively high accuracy.
The correction command may instruct a correction command position shifted from a command position instructed by the position command by the predicted target position deviation.
The correction command also may instruct a correction command position shifted from a command position instructed by the position command by a difference between the predicted target position deviation and the predetermined range.
The correction command also may instruct a correction command position shifted from a command position instructed by the position command by a difference between the predicted target position deviation and a value obtained by multiplying the predetermined range by a predetermined value more than 0 and less than or equal to 1
Additionally, a target position deviation calculator that calculates the one or more target position deviations may be further provided. The target position deviation calculator may include a camera and a calculator. The camera is positioned together with the load by the motor, and captures images at respective one or more times. The calculator calculates one target position deviation corresponding to one of the images, the one target position deviation being included in the one or more target position deviations, when the target position is included in the one of the images based on the images captured by the camera.
As a result, the motor can be controlled without acquiring the target position deviation from the outside.
Hereinafter, a specific example of a motor control device according to an aspect of the present disclosure will be described with reference to the drawings. Exemplary embodiments described herein is a specific example of the present disclosure. Numerical values, shapes, constituent components, arrangement positions and connection modes of the constituent components, steps, order of the steps, and the like illustrated in the following exemplary embodiments are merely examples, and thus are not intended to limit the present disclosure. Each of the drawings is a schematic view, and is not necessarily precisely illustrated.
Comprehensive or specific aspects of the present disclosure may be achieved by a system, a method, an integrated circuit, a computer program, or a recording medium such as a computer-readable CD-ROM, or may be achieved by any combination of the system, the method, the integrated circuit, the computer program, and the recording medium.
<Configuration>
As illustrated in
Motor 70 is controlled by motor control device 10 to move load 80 to a target position.
Load 80 is connected to motor 70 by connecting part 71 and moved by motor 70.
As illustrated in
As illustrated in
Returning again to
Motor position detector 90 detects a position of motor 70, and outputs the detected position of motor 70 to motor control device 10. When motor 70 is a linear motor, for example, motor position detector 90 may be a linear scale. When motor 70 is a rotary motor, for example, motor position detector 90 may be an encoder. When motor 70 is a linear motor, for example, a position of the motor may be a position of a mover. For example, when motor 70 is a rotary motor, a position of the motor may be an angle of a rotor.
Motor control device 10 controls motor 70 based on a position command for instructing a position of motor 70. For example, the position command is output from host controller 11 connected to motor control device 10 via a communication line or the like.
As illustrated in
Target position deviation calculator 60 calculates a target position deviation indicating a difference between a position of load 80 and a target position. As illustrated in
Camera 61 is moved together with load 80 by motor 70, and captures an image at each of one or more times. That is, camera 61 is an imaging device. For example, camera 61 may include lens 66 that condenses light, solid-state imaging element 67 that converts the light condensed by the lens into an electric signal, and memory 68 that stores the electric signal converted by the solid-state imaging element.
As illustrated in
Returning again to
Based on each of images captured by camera 61, when the target position is included in a target image, calculator 62 calculates a target position deviation corresponding to the target image. Calculator 62 may include processor 63 and memory 64, for example, and have functions to be implemented by processor 63 executing a program stored in memory 64.
For example, calculator 62 performs image processing on an image captured by camera 61 to determine whether the target position is included in the image. Then, when determining that the target position is included in the image, calculator 62 performs further image processing and calculates a target position deviation, for example.
Prediction part 20 acquires one or more target position deviations calculated by target position deviation calculator 60 and a target settling time indicating a target time at which motor 70 positions load 80 at the target position. The target settling time is output from host controller 11, for example. Then, prediction part 20 calculates a predicted target position deviation indicating a difference between a position of load 80 and the target position at the target settling time based on the acquired one or more target position deviations and the target settling time. Prediction part 20 may include processor 21 and memory 22, for example, and have functions to be implemented by processor 21 executing a program stored in memory 22.
For example, prediction part 20 acquires a first target position deviation at a first time and a second target position deviation at a second time as the one or more target position deviations. Then, prediction part 20 calculates the predicted target position deviation based on the first time, the second time, the first target position deviation, and the second target position deviation.
Load 80 and camera 61 are moved in response to a position command.
As illustrated in
As illustrated in
Returning again to
When the predicted target position deviation calculated by prediction part 20 indicates that load 80 does not reach the target position, correction command generator 30 generates a correction command for correcting the position command based on the predicted target position deviation. Correction command generator 30 may include processor 31 and memory 32, for example, and have functions to be implemented by processor 31 executing a program stored in memory 32.
For example, correction command generator 30 generates a correction command for correcting the position command to instruct a correction command position shifted from the command position instructed by the position command by the predicted target position deviation.
Corrector 40 acquires a position command, and corrects the acquired position command based on the correction command generated by correction command generator 30 to generate a corrected position command. Corrector 40 may include processor 41 and memory 42, for example, and have functions to be implemented by processor 41 executing a program stored in memory 42.
Controller 50 controls motor 70 based on the corrected position command generated by corrector 40 and the position of motor 70 output by motor position detector 90. Controller 50 may include inverter 51 that generates three-phase alternating current for generating thrust in the motor, and controller 52 that controls inverter 51 by pulse width modulation (PWM), for example, and have functions to be implemented by controller 52 controlling inverter 51 by PWM based on the corrected position command and the position of motor 70.
<Operation>
Hereinafter, operation of positioning system 1 having the above configuration will be described.
Positioning system 1 instructs a command position using a position command, the command position allowing load 80 to be positioned at a target position by motor 70 moving to the command position when positioning system 1 is in an ideal state.
Unfortunately, even when motor 70 moves to the command position, load 80 may be actually positioned at a position different from the target position due to influence of deformation, thermal expansion, and the like of members constituting positioning system 1. That is, a deviation (this deviation is also referred to below as “target position deviation”) may occur between an actual position of load 80 positioned by motor 70 moving to the command position and the target position.
As illustrated in
In contrast,
As illustrated in
Positioning system 1 can position load 80 at the target position by performing position deviation correction processing by motor control device 10 even with a target position deviation that causes load 80 to be positioned at a position without reaching the target position (also referred to below as “non-positioning target position deviation”) unless the position command is corrected.
Hereinafter, the position deviation correction processing performed by motor control device 10 will be described with reference to the drawings.
When the position deviation correction processing is started in
When initial value 0 is substituted for the integer-type variable k, camera 61 captures image Ik and acquires time tk at which image Ik has been captured (step S10).
When image Ik is captured and time tk is acquired, calculator 62 performs image processing on image Ik and determines whether the target position is included in image Ik (step S15).
When it is determined that the target position is included in image Ik in the processing of step S15 (step S15: Yes), calculator 62 performs further image processing on image Ik and calculates target position deviation dk (step S20).
When target position deviation dk is calculated, motor control device 10 checks whether a value substituted for integer-type variable k is larger than 0 (step S25). When the value substituted for integer-type variable k is larger than 0 in the processing of step S25 (step S25: Yes), prediction part 20 calculates predicted target position deviation pk by performing linear interpolation using time kt−1, time kt, target position deviation dk−1, and target position deviation dk (step S30).
When predicted target position deviation pk is calculated, correction command generator 30 determines whether calculated predicted target position deviation pk indicates that load 80 does not reach the target position (step S35). When predicted target position deviation pk calculated indicates that load 80 reaches the target position in the processing of step S35 (step S35: No, see
In contrast, when predicted target position deviation calculated pk indicates that load 80 does not reach the target position in the processing of step S35 (step S35: Yes, see
When the amount of correction in the correction command being newly generated is larger than the amount of correction in the correction command being output last time in the processing of step S45 (step S45: Yes), correction command generator 30 updates the correction command being output last time with the correction command being newly generated (step S50), and outputs the updated correction command.
When the amount of correction in the correction command being newly generated is not larger than the amount of correction in the correction command being output last time in the processing of step S45 (step S45: No), correction command generator 30 does not update the correction command being output last time with the correction command being newly generated (step S55), and outputs the correction command being output last time.
When the processing of step S50 ends or the processing of step S55 ends, corrector 40 corrects the position command with the correction command output from correction command generator 30 (step S60) and outputs the corrected position command (see
When the corrected position command is output, controller 50 determines whether the correction command position of motor 70 reaches within predetermined range c based on the corrected position command and the position of motor 70 output by motor position detector 90 (step S65). The correction command position is a position corrected by the corrected position command.
When the correction command position of motor 70 does not reach within the predetermined range in the processing of step S65 (step S65: No), controller 50 controls motor 70 based on the corrected position command and the position of motor 70 output by motor position detector 90 (step S70).
Cases (i), (ii), (iii), and (iv) below allow motor control device 10 to substitute k+1 for integer-type variable k (step S75) and allow the processing to proceed to step S10.
Case (i): The processing of step S15 results in determination that the target position is included in the image k (step S15: No).
Case (ii): Step S25 results in determination that k is equal to or less than 0 (step S25: No).
Case (iii): The processing of step S35 results in determination that predicted target position deviation pk calculated indicates that load 80 reaches the target position (step S35: No), and step S85 results in determination that target position deviation dk does not fall within the predetermined range (step S85: No).
Case (iv): The processing of step S70 ends.
When the correction command position of motor 70 reaches within the predetermined range in the processing of step S65 (step S65: Yes), motor control device 10 ends the position deviation correction processing.
The correction command position of motor 70 is synonymous with corrected target position deviation dk of load 80. That is, the correction command position of motor 70, reaching within the predetermined range, is synonymous with corrected target position deviation dk of load 80, falling within the predetermined range. Thus, step S85 shows a sentence expressed as “Target position deviation dk falls within predetermined range?”.
This processing is effective only until target settling time tF.
Hereinafter, a specific example of behavior of motor control device 10 will be described with reference to the drawings, the specific example showing that motor control device 10 performs the position deviation correction processing in positioning system 1 causing the non-positioning target position deviation illustrated in
When the amount of change per part time of the target position deviation calculated by the target position deviation calculator 60 decreases after time having elapsed from just time A as illustrated in
<Consideration>
As described above, motor control device 10 calculates the target position deviation, acquires the target settling time, and corrects the position command based on the calculated target position deviation and the acquired target settling time. Thus, information related to load 80 does not need to be fed back to host controller 11 that gives a position command to motor control device 10. Then, motor control device 10 is capable of controlling motor 70 to achieve quick positioning of load 80 within a predetermined range from the target position. Motor control device 10 also does not necessarily need to decelerate positioning speed of load 80 even when load 80 approaches the target position. Thus, motor control device 10 is capable of controlling the motor to achieve quicker positioning of load 80 within the predetermined range from the target position.
(Supplementary)
Although the motor control device according to an aspect of the present disclosure has been described above based on the exemplary embodiments, the present disclosure is not limited to the exemplary embodiments. Configurations in which various variations conceived by those skilled in the art are applied to the exemplary embodiments, and an aspect formed by combining components in different exemplary embodiments may be included within the scope of one or more aspects of the present disclosure, without departing from the gist of the present disclosure. Hereinafter, another configuration example of the motor control device according to an aspect of the present disclosure will be described.
(1) First Another Configuration Example
Prediction part 20 has been described in the exemplary embodiments in which predicted target position deviation pk is calculated by performing linear interpolation using, for example, imaging time tk−1 of a (k−1)-th image captured by camera 61, an imaging time tk of a k-th image captured by camera 61, target position deviation dk−1 corresponding to the (k−1)-th image captured by camera 61, and target position deviation dk corresponding to the k-th image captured by camera 61. That is, prediction part 20 has been described assuming that the predicted target position deviation is calculated by performing linear interpolation using first time (tk−1), second time (tk), the first target position deviation (target position deviation dk−1), and the second target position deviation (target position deviation dk).
Alternatively, prediction part 20 may calculate predicted target position deviation pk by performing secondary interpolation as illustrated in
The predicted target position deviation can be also calculated by linear interpolation or secondary interpolation using four or more times and four or more target position deviations corresponding to the respective four or more times. Additionally, the predicted target position deviation can be calculated by performing multi-order interpolation, exponential function approximation, approximation based on a transfer function that simulates responsiveness of controller 50, and the like using all the data acquired in the past until the target position is reached.
(2) Second Another Configuration Example
Correction command generator 30 has been described in the exemplary embodiments in which the correction command is generated when the predicted target position deviation indicates that the load does not reach the target position (does not exceed the target position).
Alternatively, correction command generator 30 may generate the correction command when the predicted target position deviation indicates that the load does not reach within a predetermined range from the target position, for example, as another configuration example. As a result, the correction command is generated earlier than the exemplary embodiments to perform correction operation earlier than that in the exemplary embodiments, so that the load can reach within the predetermined range earlier.
(3) Third Another Configuration Example
Motor control device 10 has been described in the exemplary embodiments in which motor control device 10 is provided inside with target position deviation calculator 60 that calculates the target position deviation, and prediction part 20 acquires the target position deviation calculated by target position deviation calculator 60.
Alternatively, motor control device 10 may not include target position deviation calculator 60, and prediction part 20 may acquire the target position deviation from an external device of motor control device 10, as another configuration example.
(4) Fourth and Fifth Another Configuration Examples
Correction command generator 30 has been described in the exemplary embodiments in which a correction command for correcting the position command is generated to instruct a correction command position shifted from the command position instructed by the position command by the predicted target position deviation.
Alternatively, the correction command for correcting the position command may be generated to instruct a correction command position shifted by a difference between the predicted target position deviation and a predetermined range as illustrated in
Although a position of the load after stop is within the predetermined range in the exemplary embodiments, the correction command is too large, and thus the load exceeds the target position as illustrated in
The present disclosure is widely applicable to a motor control device that controls a motor.
Number | Date | Country | Kind |
---|---|---|---|
2020-214576 | Dec 2020 | JP | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2021/045122 | 12/8/2021 | WO |
Number | Date | Country | |
---|---|---|---|
20240136965 A1 | Apr 2024 | US |