Motor Control Device
The motor control device provides stable and high-speed transitions from position or speed control to torque control by eliminating the need for pressure detectors and using a speed detection unit for automatic mode switching, ensuring smooth operation in servo guns.
Patent Information
- Application Number
- JP2020074613
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-04-20
- Publication Date
- 2024-08-13
- Estimated Expiration
- 2040-04-20
AI Technical Summary
Existing motor control devices for pressing control, such as in servo guns, require pressure or force detectors, which can lead to unstable operation due to noise or rigidity issues, and lack a smooth transition from position or speed control to torque control.
A motor control device that eliminates the need for pressure or force detectors by using a speed detection unit, subtracter, position controller, speed controller, and a speed command selector to automatically switch between position and torque control with a speed limit function, ensuring stable and high-speed transitions.
Enables fast and stable transitions from position or speed control to torque control without pressure detectors, eliminating operational instability and ensuring smooth switching without chattering.
Smart Images

Figure 0007532074000001 
Figure 0007532074000002 
Figure 0007532074000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a motor control device for press-fit control. [Background technology]
[0002] In a spot welding servo gun, the workpiece is clamped with the welding tips of the electrode part of the welding gun, the torque of the motor is controlled to apply pressure, and electricity is passed between the electrode tips to weld the workpiece. In such a welding gun, the gun moves to the point where it is about to come into contact with the workpiece under position control and speed control, and then switches to torque control to apply pressure. Torque control with a speed limiting function is implemented so that excessive speeds do not occur when switching to torque control and collide with the workpiece. When welding is completed, the gun moves again under position control and speed control.
[0003] Patent Document 1 is an example of such pressing control performed by switching between position control, speed control, and torque control. Patent Document 1 describes a motor control device that controls a motor equipped with an encoder, which includes a position command generation unit that generates a position command, which is a command value for a mechanical load driven by the motor to approach a pressurized object and for the final position of the mechanical load to be a certain distance before the pressurized object, a position control unit that outputs a first speed command so that the position of the motor detected by the encoder follows the position command, a pressure command generation unit that generates a pressure command, which is a command value for pressure or force to be applied to the pressurized object, and a second speed command generation unit that outputs a second speed command so that the pressure or force detected by the mechanical load follows the pressure command when the mechanical load is pressed against the pressurized object. a speed command selection unit that selects one of a creep speed that specifies an upper limit of the motor speed when a mechanical load comes into contact with a pressurized object, a first speed command, or a second speed command and outputs it as a speed command at which the motor should operate; and a speed control unit that outputs a current command that supplies current to the motor so that the motor speed follows the speed command output by the speed command selection unit, wherein after selecting the first speed command, the speed command selection unit selects the second speed command or a smaller value of the creep speed after the timing at which the first speed command falls below the creep speed.
[0004] In this way, in the method of Patent Document 1, after the timing when the first speed command falls below the creep speed, a process of selecting the second speed command or a smaller value of the creep speed is performed. However, a pressure detector or a force detector is required to configure the pressure control unit, and there is a problem that pressing control cannot be performed in equipment that does not have such detectors. In addition, when there is noise contained in the output of the pressure or force detector or an unstable element caused by the rigidity of the machine that configures the pressure control loop, a ripple occurs in the speed command from the pressure control unit, and the pressure control loop is interrupted and then restored near the point where the creep speed and the second speed command are switched, resulting in an unstable operation. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] Patent No. 6113378 Summary of the Invention [Problem to be solved by the invention]
[0006] The present invention has been made to solve the above problems, and its object is to provide a control device for a motor for press-fit control, which does not require a pressure detector or force detector, can quickly transition from position control or speed control to torque control with a speed limiting function, and can quickly and stably transition from the speed limited state to torque control. [Means for solving the problem]
[0007] According to one aspect of the present invention, there is provided a motor control device that controls a motor based on a control mode command of either torque or position, the motor position being controlled in accordance with a position command in a position control mode, and the motor torque being controlled in accordance with a torque command at a speed equal to or higher than a speed limit command in the torque control mode, the motor control device comprising a speed detection unit that detects the speed of the motor, a subtractor that subtracts a position from a position command to obtain a position deviation, a position controller that obtains a speed command based on the position deviation, a speed deviation calculator that obtains a speed deviation based on a torque command, an adder that adds the speed deviation based on the torque command and the speed to obtain a speed command based on the torque command, a speed limiting unit that limits the speed command based on the torque command based on the speed limit command and outputs the limited speed command, and a speed limiting unit that outputs the limited speed command based on a control mode automatic switching signal, a speed command selection unit which switches between a speed command from the position controller and the limited speed command, and outputs a motor speed command; a subtractor which subtracts the motor speed from the motor speed command and outputs a speed deviation; a speed controller which performs a speed control calculation using the speed deviation as an input, and outputs a motor torque command; and a motor torque control unit which outputs a torque based on the motor torque command, wherein the speed controller has a proportional controller and an integral controller, and the speed command selection unit compares the speed command from the position controller with the limited speed command based on the torque command, and selects the value of the speed command from the position controller if the value of the speed command from the position controller is greater than the value of the limited speed command, and selects the value of the limited speed command if the value of the speed command from the position controller is equal to or less than the value of the limited speed command, thereby determining a motor speed command.
[0008] The speed command selection section may enable automatic control mode switching when a position of a member driven by a motor reaches a predetermined position close to an object of press-contact control.
[0009] It is preferable that the speed controller selects the limited speed command in the speed command selection section, and performs proportional control if the speed command based on the torque command is not speed-limited in the speed limiting section, and performs proportional-integral control if the speed command based on the torque command is speed-limited in the speed limiting section. Effect of the Invention
[0010] According to the present invention, a pressure detector or a force detector is not required, and a transition from position control or speed control to torque control with a speed limiting function can be performed quickly. Furthermore, it is possible to provide a control device for a motor used for press-fit control, which is capable of quickly and stably transitioning from a speed limited state to torque control. [Brief description of the drawings]
[0011] [Figure 1] FIG. 1 is a block diagram illustrating one embodiment of a motor control device and method. [Diagram 2] FIG. 2 is a diagram showing a specific example of the configuration of the speed controller. [Diagram 3] FIG. 3 is a diagram showing a simulation result in the case where the actuator moves to a position just before contacting the pressure target under position control, and then the actuator is switched to torque control to perform a pressure application operation. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] The following describes in detail the embodiments of the motor control device and method according to the present invention with reference to the drawings. Note that the scope of the present invention is not limited by the description of the embodiments, and any embodiment is included in the scope of the present invention as long as it falls within the technical scope of the invention according to each claim of the claims. FIG. 1 illustrates one embodiment of a motor control device and method.
[0013] As described in the Background Art section above, a torque control device and a control method with a motor speed limiting function based on a torque command and a speed limiting command are well known, so a detailed description will be omitted, but an embodiment of the present invention is as follows.
[0014] The motor control device A of the present invention, which controls the motor torque and position of the motor 21, is roughly composed of an encoder EN23, a speed detection unit 25 that determines the speed by differentiating the position of the encoder EN23, a speed deviation calculator 1, an adder 3, a speed limiting unit 5, a control mode switching unit 7, a subtractor 11, a speed controller 15, a speed command selection unit 16, a motor torque controller 17, a position controller 35, etc.
[0015] The embodiment shown in FIG. 1 shows an example in which the torque control mode and the position control mode can be switched. The functions of each part of the motor control device A are as follows. C is passed through the speed deviation calculator 1 to obtain the speed deviation S based on the torque command. DT The speed deviation S based on the torque command is calculated. DT and the speed V are added by an adder 3 to obtain a speed command S based on the torque command. TC In the speed limiting section 5, the torque command T C Speed command S based on TC The speed limit command S LC The speed is limited by the speed limit value commanded by S CL Request. In addition, the position command L C Subtract the position P from to get the position deviation P DT is calculated and passed through the position controller 35 to the speed command S C Request.
[0016] In the control mode switching unit 7, a speed command selection command S from the speed command selection unit 16 is TS Based on this, the speed command S from the position controller C and the speed command S after the limit CL and the motor speed command S MC Speed command selection command S TSIf the speed command from the position controller, the speed command S C The motor speed command S MC Then, the speed command selection command S TS is the speed command S after limiting CL In the case of , the speed command S after the limit CL The motor speed command S MC Then, the motor speed command S MC The motor speed is controlled based on the above.
[0017] When the motor 21 approaches the object of pressing control, the upper controller generates a control mode automatic switching signal C based on the position signal, etc. MS Enable the control mode automatic switching signal C MS When becomes effective, the speed command selection unit 16 selects the speed command S C and the speed command S after the limit CL and the speed command S from the position controller C is the speed command S after limiting CL If it is larger, the speed command S from the position controller C Select and set the speed command S from the position controller. C is the speed command S after limiting CL When the speed command after the limit is reached, CL Select the motor speed command S MC This motor speed command S MC The speed of the motor 21 is controlled based on this.
[0018] Specifically, the speed is calculated by differentiating the position of the encoder EN23 attached to the motor. MC The speed deviation S is calculated by subtracting the speed from D is calculated and the motor torque command T MT Calculate the motor torque command T MT Based on this, the motor torque controller 17 outputs a motor torque command T MT The motor outputs the torque as follows. The position rotated by the torque output from the motor is detected by the encoder EN23, and the motor speed command S MC The speed is controlled to match
[0019] The speed controller 15 has a proportional controller 15a, and receives a speed controller control signal S from a speed command selection unit 16 based on the control state. TSS Depending on this, only the proportional controller 15a is operated, or both the proportional controller 15a and the integral controller 15b are operated. A speed command selection unit 16 selects the speed command S from the position controller. C If is selected, the speed regulator control signal S TSS The proportional and integral control is performed by operating both the proportional controller 15a and the integral controller 15b. CL is selected and the torque command T C If the speed command based on the speed limit is applied, the proportional-integral control is performed in the same manner. CL is selected and the torque command T C If the speed command based on the speed control signal S is not subject to the speed limit, TSS Proportional control is performed by
[0020] Fig. 2 is a diagram showing a more specific example of the configuration of the speed controller 15 in Fig. 1. The proportional controller 15a is configured by a proportional gain 15a-1, and the integral controller 15b is configured by an integral gain 15b-1, an integrator 15b-2, an integral attenuation gain 15b-3, and a changeover switch 15b-4.
[0021] When the speed controller 15 is operated with proportional-integral control, the changeover switch 15b-4 is set to 1 to cause the integral controller 15b to perform integral action. When the speed controller 15 is operated with a proportional controller, the changeover switch 15b-4 is set to 2, the value of the integrator 15b-2 is attenuated to 0 based on an integral attenuation gain with a minus sign to cause proportional action. Each of these parts that perform motor control can be configured with software, and control calculations are performed for each control sample.
[0022] When the position of the member driven by the motor 21 reaches a predetermined position close to the object of the pressing control, the speed command selection unit 16 outputs the control mode automatic switching signal C MSIn response to this, the automatic control mode switching is enabled, i.e., the control mode is set to a state in which automatic switching between the position control mode and the torque control mode is possible. The speed command selection unit 16 selects the speed command S from the position controller. C and the speed command S after the limit CL Compare with. Speed command S from the position controller C The speed command S after the value of CL If it is greater than the value of C Select a value for.
[0023] On the other hand, the speed command S from the position controller C The speed command value S after the limit is reached CL In the following cases, the speed command S after the limit is CL Select the value of the motor speed command S MC is required.
[0024] The speed controller 15 selects the limited speed command in the speed command selection unit 16 and outputs the torque command T C Speed command S based on TC If the speed is not limited by the speed limiting unit 5, proportional control is performed. On the other hand, the speed command S based on the torque command TC When the speed of the rotational speed control unit 5 is limited by the speed limiter 5, the proportional-integral control is performed.
[0025] Speed command selection command S TS is the speed command S after limiting CL In this case, the control mode switching unit 7 uses the limited speed command S CL is selected, and torque control with speed limiting function is performed as follows. If the speed controller 15 is composed of a proportional controller 15a and its gain is GP, the motor speed command S in the speed control system is MC Motor torque command T MT By calculating backwards, the torque command T C Speed command S based on torque command TC can be calculated as follows:
[0026] Speed deviation S based on torque command DT = Torque command T C / GP (1) Speed command S based on torque command TC = Speed deviation based on torque command S DT +Speed V(2)
[0027] Then, the speed command S based on the obtained torque command is TC Speed limit command S LC The speed is limited based on the speed command S CL Request. Speed command after limit S CL When the speed of the motor 21 is controlled according to the above, the result is as follows. Motor torque command T MT = speed deviation S D ×GP = (Motor speed command S MC -Speed V)×GP
[0028] If the speed limit is not reached, the motor speed command S MC = Speed command S based on torque command TC Therefore, Motor torque command T MT = (speed command based on torque command S TC -speed V) × GP = {(speed deviation based on torque command S DT +Speed V)-Speed V}×GP (3) Here, (speed deviation based on torque command S DT )×GP=torque command / GP×GP=torque command T C Then, the motor torque command T MT is the torque command T C This motor torque command T MT Torque control is performed based on the motor torque command T MT The motor 21 outputs the motor torque as follows. When the speed limit is reached, the motor speed command S MC is the speed limit command S LC The speed limit command S LC The motor speed is controlled based on the speed limit command S LCThe speed is proportional-integral controlled.
[0029] 3A to 3G are diagrams showing an example of a simulation result in which the position control according to this embodiment is used to move the gun to just before contacting the object to be pressed, and then the control is switched to torque control to perform a pressing operation (A to G). Here, the example shows a configuration in which the gun is used in a servo gun for spot welding.
[0030] Waveform A is the velocity command S from the position controller. TC FIG. Waveform B is the torque command TC 11 is a graph showing a load torque and a load torque. Waveform C shows automatic control (position, torque) mode switching. Waveform D is the speed command S after limiting CL FIG. Waveform E is the motor speed command S MC FIG. The waveform F shows the velocity V. Waveform G is the motor torque command T MC FIG.
[0031] In position control, when the servo gun position approaches the pressure target, the automatic control mode switching is enabled (waveform C), and the speed command S from the position controller TC (Waveform A) is the speed command S after limiting CL (waveform D) or less, the speed command selector 16 selects the limited speed command S CL Select the motor speed command S MC is the speed limit command S LC The speed limit value set by (300 min -1 ) (see 0.12-0.14 in waveform E).
[0032] Then, the robot approaches the object to be pressed at a limited speed. When the robot comes into contact with the object, the load torque increases (waveform B), the speed decreases (waveform F), the speed limit is released, and the torque command T C Motor torque command T MT The object to be pressurized is pressurized (waveform G). When the object is pressurized, the automatic control mode switching is disabled (waveform C). Since there is no pressure control loop, the speed command S after limiting, which is the output from the torque control system with speed limiting function, is LC (Waveform D) is a constant, clean value, and the switch from position control to torque control is fast and smooth (Waveform G). Also, when the speed limit state is switched to torque control upon contact with the pressure target, no unstable phenomena such as chattering are observed, and the control switches to torque control instantly (Waveform G).
[0033] As described above, in the present invention, normal position control is performed until the motor approaches the object of press-fit control, and when the motor approaches the object of press-fit control, automatic control mode switching is enabled. When automatic control mode switching is enabled, the speed command selection unit compares the speed command from the position controller with the limited speed command. When the speed command from the position controller becomes equal to or lower than the limited speed command, the limited speed command is selected and torque control with speed limit function is performed. Since there is no pressure control loop in the present invention, switching is fast and smooth, and after switching, the motor operates at the speed limit value until it comes into contact with the pressurized object. When it comes into contact with the pressurized object, the speed decreases and the speed limit state is released. Then, the motor torque command becomes as per the torque command, and the pressurized object is pressurized by the torque command. Switching from the speed limit state to the torque control state is also fast and smooth since there is no pressure control loop, and is automatically switched in the torque control with speed limit function of the present control method. The torque control system with speed limit function only adds the speed to the speed deviation based on the torque command to limit the speed. Therefore, there is no pressure control loop to realize a speed limit above the speed control loop, and no special control parameters are required. Even if the gain of the speed controller is low, when the speed limit is not reached, the motor torque command is calculated according to the torque command, and is not affected by the gain of the speed controller. The gain of the speed controller can be adjusted so that the speed loop is stable when controlling the motor speed normally. Also, if there is resonance in the mechanical system, a notch filter or low-pass filter can be provided at the output of the speed controller. In that case, the response to the torque command will decrease by the amount of the filter added.
[0034] As described above, in the present invention, a speed command based on a torque command is calculated based on the torque command, a speed limit is performed to obtain a speed command after the limit, the speed command from the position controller is compared with the speed command after the limit, and if the speed command from the position controller is greater than the speed command after the limit, the speed command from the position controller is selected. If the speed command from the position controller becomes equal to or smaller than the speed command after the limit, the speed command after the limit is selected to obtain a motor speed command and realize press-fit control. This makes it possible to provide a motor control device for press-fit control that does not require a pressure detector or force detector, has a high speed transition from position control or speed control to torque control with a speed limit function, and has a high speed and stable transition from a speed limited state to torque control.
[0035] Each of the above-mentioned embodiments shows one embodiment of the present invention, and the present invention itself is not limited to the specific configurations shown by those embodiments. The scope of the present invention includes everything that a person skilled in the art can imagine based on the matters described in the claims. [Explanation of symbols]
[0036] A Motor Control Device P position V speed 1 Speed deviation calculator 3 Adder 5 Speed limit section 7 Control mode switching section 11 Subtractor 15 Speed Controller 15a Proportional Controller 15a-1 Proportional Gain 15b Integral Controller 15b-2 Integrator 15b-3 Attenuation Gain 15b-4 Changeover switch 16 Speed command selection section 17 Motor torque controller 21 Motor 23 Encoder 35 Position Controller L C position command P DT position deviation S C Speed command S CL Speed command after limit S TSS Speed controller control signal S D speed deviation S DT Speed deviation based on torque command S LC Speed limit command S TC Speed command based on torque command S TS Speed control device control signal S MC Motor Speed Command T C Torque Command T MT Motor Torque Command
Claims
1. A motor control device that controls a motor based on either a given torque or position control mode command, wherein in a position control mode, the motor position is controlled in accordance with a given position command, and in a torque control mode, the motor speed is limited in accordance with a speed limit command at speeds equal to or greater than a speed limit command, and the motor torque is controlled in accordance with a given torque command at speeds lower than the speed limit command, The motor control device includes: a speed detection unit for detecting a speed of the motor; a subtractor for subtracting the position of the motor from a position command to obtain a position deviation; a position controller for determining a motor speed command based on the position deviation; a subtractor that subtracts the motor speed from the motor speed command and outputs a speed deviation; a speed controller that performs a speed control calculation using the speed deviation as an input and outputs a motor torque command; a speed deviation calculator for calculating a speed deviation based on the torque command; an adder that adds the speed deviation based on the torque command and the motor speed to obtain a speed command based on the torque command; a speed limiting unit that limits a speed command based on the torque command based on a speed limiting command and outputs the limited speed command; a speed command selection unit that switches between the speed command from the position controller and the limited speed command based on a control mode automatic switching signal and outputs a motor speed command; a motor torque control unit that outputs a torque based on the motor torque command, The speed controller includes a proportional controller and an integral controller. The speed command selection unit The speed command from the position controller is compared with the limited speed command based on the torque command, and if the value of the speed command from the position controller is greater than the limited speed command, the value of the speed command from the position controller is selected, and if the value of the speed command from the position controller is equal to or less than the limited speed command, the value of the limited speed command is selected to determine the motor speed command. Motor control device.
2. The speed command selection unit enables automatic control mode switching when the position of the member driven by the motor approaches the object of press-fit control and reaches a predetermined position. The motor control device according to claim 1 .
3. The speed controller includes: The speed command selection unit selects the limited speed command, When the speed command based on the torque command is not limited by the speed limiting unit, proportional control is performed. When the speed command based on the torque command is limited by the speed limiting unit, proportional-integral control is performed. The motor control device according to claim 1 or 2.
Citation Information
Patent Citations
Hottgas bypass type freezer
JP1978072249A
Image processing system
JP1986013378A
Control mode switching method of servo system using servomotor
JP1997069013A
