Motor control device
The motor control device addresses the challenge of servo motor restoration post-collision by controlling the servo motor to move away from obstacles and facilitate easy recovery, reducing damage and enhancing post-collision management.
Patent Information
- Application Number
- JP2023059947
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-03
- Publication Date
- 2024-10-16
AI Technical Summary
Existing motor control devices for servo motors in industrial robots and machines face difficulties in accurately restoring the servo motor state after a collision, as they reverse the motor direction regardless of the control command, making it challenging for the host device to manage the servo motor post-collision.
The motor control device includes a collision detection function that memorizes the motor rotation direction at the time of collision and controls the servo motor to stop or reverse its direction based on the control command, ensuring the servo motor moves away from obstacles and facilitates easy restoration.
This approach reduces damage to the moving object and enables easy restoration of the servo motor after a collision by accurately managing the motor's direction and state post-collision.
Smart Images

Figure 2024147130000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a motor control device that controls the drive of a servo motor based on a control command from a higher-level device. [Background technology]
[0002] Conventionally, there is known a motor control device that drives and controls a servo motor used in industrial robots and industrial machines (see, for example, Patent Document 1). The motor control device described in Patent Document 1 is composed of a digital servo circuit and a servo amplifier. A control command is input to the digital servo circuit from a numerical control device, which is a higher-level device, via a shared memory. The motor control device drives and controls the servo motor based on the control command input from the numerical control device.
[0003] The motor control device described in Patent Document 1 has a collision detection function that detects when an object to be operated (driven body) operated by the power of a servo motor collides with an obstacle (foreign object). When this motor control device detects a collision of the object to be operated, it rotates the servo motor in the direction opposite to the rotation direction of the servo motor at the time of the collision, regardless of the control command from the numerical control device. Therefore, by controlling a servo motor with the motor control device described in Patent Document 1, it is possible to reduce damage to the object to be operated when the object to be operated collides with an obstacle. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Japanese Patent Application Publication No. 3-3687 Summary of the Invention [Problem to be solved by the invention]
[0005] When the motor control device described in Patent Document 1 detects a collision of an object to be operated, it rotates the servo motor in the direction opposite to the direction of rotation of the servo motor at the time of the collision, regardless of the control command from the numerical control device, so it becomes difficult for the numerical control device, which is the higher-level device, to grasp the state of the servo motor after it has rotated in the opposite direction. Therefore, if the servo motor is controlled by the motor control device described in Patent Document 1, there is a risk that it will be difficult to restore the servo motor after detecting a collision of an object to be operated.
[0006] Therefore, an object of the present invention is to provide a motor control device that can reduce damage to an object operated by the power of a servo motor when the object collides with an obstacle, while also making it possible to easily perform recovery work for the servo motor after detecting a collision of the object. [Means for solving the problem]
[0007] In order to solve the above problems, the motor control device of the present invention is a motor control device that drives and controls a servo motor based on a control command from a higher-level device, and is equipped with a collision detection function that detects when an object operated by the power of the servo motor collides with an obstacle, and when a collision of the object is detected, the motor rotation direction at collision, which is the rotation direction of the servo motor at the time of collision detection, is stored, and the servo motor is stopped while being controlled, and thereafter, when a control command is input from the higher-level device, if the rotation direction of the servo motor based on the control command is the same direction as the motor rotation direction at collision, the servo motor is maintained in a stopped state, and if the rotation direction of the servo motor based on the control command is opposite to the motor rotation direction at collision, the servo motor is driven based on the control command.
[0008] When the motor control device of the present invention detects a collision of an object to be operated, it stops the servo motor while controlling the servo motor. Furthermore, after stopping the servo motor, if the rotation direction of the servo motor based on the control command input from the upper device is opposite to the motor rotation direction at the time of collision, which is the rotation direction of the servo motor at the time of collision, the motor control device of the present invention drives the servo motor based on the control command, while maintaining the stopped state of the servo motor if the rotation direction of the servo motor based on the control command input from the upper device is the same as the motor rotation direction at the time of collision. Therefore, in the present invention, the stopped servo motor rotates only in the direction in which the object to be operated moves away from the obstacle. Therefore, by controlling the servo motor with the motor control device of the present invention, it is possible to reduce damage to the object to be operated when the object to be operated collides with an obstacle.
[0009] In addition, the motor control device of the present invention drives the servo motor based on the control command when the rotation direction of the servo motor based on the control command input from the upper device is the opposite direction to the motor rotation direction at the time of collision after stopping the servo motor. That is, the motor control device of the present invention rotates the servo motor in the opposite direction based on the control command from the upper device. Therefore, in the present invention, the upper device can easily grasp the state of the servo motor after rotating in the opposite direction. Therefore, if the servo motor is controlled by the motor control device of the present invention, it is possible to easily perform the recovery work of the servo motor after detecting the collision of the operation object. That is, if the servo motor is controlled by the motor control device of the present invention, it is possible to easily perform the recovery work of the servo motor after detecting the collision of the operation object, even if it is possible to reduce damage to the operation object when the operation object collides with an obstacle.
[0010] In the present invention, it is preferable that the motor control device transmits a collision detection signal to a host device when it detects a collision of the object to be operated. In this configuration, the host device can recognize that a collision of the object to be operated has occurred.
[0011] In the present invention, when the motor control device detects, for example, a collision of an object to be operated, it decelerates and stops the servo motor by a preset deceleration time. In this case, by setting an appropriate deceleration time in advance according to the operating conditions of the object to be operated, it becomes possible to appropriately decelerate and stop the servo motor when a collision of the object to be operated is detected. Effect of the Invention
[0012] As described above, by controlling a servo motor with the motor control device of the present invention, it is possible to reduce damage to the operating object, etc., when the operating object operated by the power of the servo motor collides with an obstacle, and it is also possible to easily perform recovery work for the servo motor after detecting a collision of the operating object. [Brief description of the drawings]
[0013] [Figure 1] 1 is a block diagram for explaining a configuration related to a motor control device according to an embodiment of the present invention. [Diagram 2] 2 is a flowchart for explaining an example of a method for controlling a servo motor when a collision of the operation target shown in FIG. 1 is detected. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
[0015] (Schematic configuration of a motor control device) FIG. 1 is a block diagram for explaining a configuration related to a motor control device 1 according to an embodiment of the present invention.
[0016] The motor control device 1 of this embodiment controls a servo motor 3 based on a control command from a higher-level device 2. The servo motor 3 is mounted on an industrial robot, industrial machine, or the like for use. In an industrial robot or the like on which the servo motor 3 is mounted, various operating objects 4 are operated by the power of the servo motor 3. The motor control device 1 and the servo motor 3 are electrically connected via a specified cable, and the motor control device 1 and the higher-level device 2 are electrically connected via a specified cable.
[0017] The upper device 2 is, for example, a PLC (Programmable Logic Controller). In this embodiment, the upper device 2 is a relatively inexpensive general-purpose PLC. The upper device 2 transmits control commands for driving and controlling the servo motor 3 to the motor control device 1. The control commands include a position command, a speed command, and the like. The upper device 2 also receives various types of information from the motor control device 1.
[0018] The servo motor 3 is equipped with an encoder 5 for detecting the rotational position and rotational speed of the servo motor 3. The encoder 5 is composed of, for example, a disk-shaped slit plate attached to the rotating shaft of the servo motor 3, and an optical sensor having a light-emitting section and a light-receiving section arranged to sandwich the slit plate. In order to perform feedback control of the servo motor 3, an output signal of the encoder 5 (more specifically, an output signal of the sensor) is input to the motor control device 1. In addition, the output signal of the encoder 5 is input to the higher-level device 2 via the motor control device 1.
[0019] The motor control device 1 is a general-purpose servo amplifier, and supplies driving power to the servo motor 3. The motor control device 1 has a collision detection function that detects that the operation object 4 has collided with a predetermined obstacle. The motor control device 1 detects the collision of the operation object 4 based on a position deviation, which is the difference between the rotation position of the servo motor 3 based on the detection result of the encoder 5 and the rotation position of the servo motor 3 based on the control command from the upper device 2. Alternatively, the motor control device 1 detects the collision of the operation object 4 based on a torque command value to the servo motor 3. Specifically, when the operation object 4 collides with an obstacle and stops, the position deviation and the torque command value become large, so that the motor control device 1 detects the collision of the operation object 4 when the position deviation and the torque command value exceed a predetermined threshold value. Hereinafter, a method for controlling the servo motor 3 when the collision of the operation object 4 is detected will be described.
[0020] (Method of controlling a servo motor when detecting a collision of an object to be moved) FIG. 2 is a flowchart for explaining an example of a method for controlling the servo motor 3 when a collision of the operation target 4 shown in FIG. 1 is detected.
[0021] When starting the operation of the operation object 4, the motor control device 1 starts the rotation of the servo motor 3 based on a control command input from the higher-level device 2 (step S1). When the motor control device 1 detects a collision of the operation object 4 while the operation object 4 is in operation (step S2 becomes "Yes"), it transmits a collision detection signal to the higher-level device 2 (step S3). In addition, the motor control device 1 stores the motor rotation direction at the time of collision, which is the rotation direction of the servo motor 3 at the time of collision detection (step S4), and performs a servo motor stop process to stop the servo motor 3 while controlling the servo motor 3 (step S5).
[0022] In step S5, the motor control device 1 decelerates and stops the servo motor 3 using a preset deceleration time. Also, in step S5, the motor control device 1 decelerates and stops the servo motor 3 based on the detection result of the encoder 5. The deceleration time of the servo motor 3 in step S5 is an appropriate deceleration time according to the operating conditions and installation location of the operating object 4. Note that the deceleration time of the servo motor 3 in step S5 may be set to "0", and the servo motor 3 may be suddenly stopped in step S5.
[0023] After the servo motor stop process is performed, when a control command is input from the higher-level device 2 (step S6 becomes "Yes"), the motor control device 1 judges whether or not the rotation direction of the servo motor 3 based on the control command is the same as the motor rotation direction at the time of collision stored in step S4 (step S7). If the rotation direction of the servo motor 3 based on the control command is the same as the motor rotation direction at the time of collision, the motor control device 1 maintains the stopped state of the servo motor 3 (step S8). That is, in step S8, the motor control device 1 prohibits the driving of the servo motor 3.
[0024] On the other hand, if the rotation direction of the servo motor 3 based on the control command is opposite to the motor rotation direction at the time of collision, the motor control device 1 transmits a collision detection release signal to the upper device 2 (step S9) and drives the servo motor 3 based on the control command (step S10). In step S10, the motor control device 1 rotates the servo motor 3 in the opposite direction to the motor rotation direction at the time of collision based on the control command from the upper device 2. Also, in step S10, the motor control device 1 rotates the servo motor 3 based on the detection result of the encoder 5. In this embodiment, the servo state of the servo motor 3 is maintained in all steps S1 to S10.
[0025] (Main effects of this form) As described above, in this embodiment, when the motor control device 1 detects a collision of the operation target 4, it stops the servo motor 3 while controlling the servo motor 3. In addition, in this embodiment, after stopping the servo motor 3, if the rotation direction of the servo motor 3 based on the control command input from the higher-level device 2 is the opposite direction to the motor rotation direction at the time of collision, the motor control device 1 drives the servo motor 3 based on the control command, while maintaining the stopped state of the servo motor 3 if the rotation direction of the servo motor 3 based on the control command input from the higher-level device 2 is the same direction as the motor rotation direction at the time of collision. Therefore, in this embodiment, the stopped servo motor 3 rotates only in the direction in which the operation target 4 moves away from the obstacle. Therefore, if the motor control device 1 of this embodiment controls the servo motor 3, it is possible to reduce damage to the operation target 4, etc., when the operation target 4 collides with an obstacle.
[0026] In addition, in this embodiment, the motor control device 1 drives the servo motor 3 based on the control command when the rotation direction of the servo motor 3 based on the control command input from the upper device 2 is the opposite direction to the motor rotation direction at the time of collision after stopping the servo motor 3. That is, the motor control device 1 rotates the servo motor 3 in the opposite direction based on the control command from the upper device 2. Therefore, in this embodiment, the upper device 2 can easily grasp the state of the servo motor 3 after rotating in the opposite direction. Therefore, if the servo motor 3 is controlled by the motor control device 1 of this embodiment, it is possible to easily perform the recovery work of the servo motor 3 after detecting the collision of the operation object 4. That is, if the servo motor 3 is controlled by the motor control device 1 of this embodiment, it is possible to easily perform the recovery work of the servo motor 3 after detecting the collision of the operation object 4, even if it is possible to reduce damage to the operation object 4 when the operation object 4 collides with an obstacle.
[0027] In this embodiment, when the motor control device 1 detects a collision of the operation target 4, it transmits a collision detection signal to the higher-level device 2. Therefore, in this embodiment, the higher-level device 2 can recognize that a collision of the operation target 4 has occurred.
[0028] In this embodiment, when the motor control device 1 detects a collision of the operation target 4, it decelerates and stops the servo motor 3 at a preset deceleration time, and the deceleration time of the servo motor 3 at this time is an appropriate deceleration time according to the operation conditions and the installation location of the operation target 4. Therefore, in this embodiment, it is possible to appropriately decelerate and stop the servo motor 3 when a collision of the operation target 4 is detected.
[0029] (Other embodiments) The above-described embodiment is one example of a preferred embodiment of the present invention, but the present invention is not limited to this embodiment and various modifications are possible within the scope of the present invention. For example, in the above-described embodiment, the motor control device 1 does not need to transmit a collision detection signal to the upper device 2 when it detects a collision of the operation target object 4. [Explanation of symbols]
[0030] 1 Motor control device 2. Upper device 3. Servo motor 4. Moving Objects
Claims
1. A motor control device that drives and controls a servo motor based on a control command from a higher-level device, a motor control device including a collision detection function for detecting when an object to be operated by power of the servo motor collides with an obstacle, and when a collision of the object to be operated is detected, the motor rotation direction at collision is stored, which is the rotation direction of the servo motor at the time of collision detection, and the servo motor is stopped while being controlled, and thereafter, when the control command is input from the higher-level device, if the rotation direction of the servo motor based on the control command is the same direction as the motor rotation direction at collision, the motor control device maintains the stopped state of the servo motor, and if the rotation direction of the servo motor based on the control command is opposite to the motor rotation direction at collision, the motor control device drives the servo motor based on the control command.
2. 2. The motor control device according to claim 1, wherein, when a collision of the object to be operated is detected, a collision detection signal is transmitted to the host device.
3. 3. The motor control device according to claim 1, wherein, when a collision of the object to be moved is detected, the servo motor is decelerated and stopped for a preset deceleration time.
Citation Information
Patent Citations
Method of preventing collision damage of body driven by servo motor
JP1991003687A
