Angle sensor for motor control and control method thereof, and motor control system
By introducing angle sensors and action history storage functions into the motor control system, the problem of difficulty in analysis when the robot control device detects abnormal motor rotation is solved, reducing handling costs and improving analysis flexibility.
Patent Information
- Application Number
- CN202111435239.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-11-30
- Filing Date
- 2021-11-29
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2041-11-29
AI Technical Summary
When the existing robot control device detects an abnormality in the angle sensor of the motor rotation amount, the entire robot control device needs to be analyzed, resulting in increased transportation costs and reduced analysis flexibility.
An angle sensor for motor control is designed, which includes a sensor, a calculation processing part and an action history storage part. The calculation processing part generates and saves position information data when an abnormality is detected, and saves it to the action history storage part, including the amount of rotation. and time for subsequent analysis of the cause of the anomaly.
By miniaturizing the angle sensor for motor control, the transportation cost when analyzing abnormalities is reduced, the flexibility of analysis is improved, and accurate analysis can be performed without reproducing abnormalities.
Smart Images

Figure CN114577143B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to an angle sensor for motor control, a motor control system and a control method for the angle sensor for motor control. Background Art
[0002] Patent Document 1 describes a robot control device that, when an abnormality occurs in the operation of the robot, stores the operation history at the time of the error in a fault history memory unit within the control device to facilitate subsequent analysis of the cause of the error.
[0003] Patent document 1: Japanese Patent Application Laid-Open No. 4-130503.
[0004] However, in such a configuration, in order to analyze the cause of the error, it is necessary to analyze the robot control device having a fault history memory unit. Therefore, for example, even if an abnormality occurs in an angle sensor that detects the rotation amount of a motor driving the robot, it is necessary to analyze the robot control device instead of the angle sensor. The robot control device is larger than the angle sensor, which leads to a technical problem that the transportation cost for analysis increases and the flexibility of analysis decreases. Summary of the invention
[0005] The angle sensor for motor control of the present invention comprises: a sensor, which outputs a signal corresponding to the drive of the motor; an operation processing unit; an action history temporary storage unit; and an action history storage unit, wherein the operation processing unit repeatedly generates position information data and stores the generated position information data in the action history temporary storage unit, and when an abnormality is detected or a signal notifying the abnormality is received from an external device, the position information data stored in the action history temporary storage unit is saved in the action history storage unit, wherein the position information data includes the position of the motor obtained based on the signal output from the sensor and the time when the position is obtained.
[0006] The motor control system of the present invention comprises: a motor; a sensor, which outputs a signal corresponding to the drive of the motor; an operation processing unit; an action history temporary storage unit; an action history storage unit; and a control device, which controls the drive of the motor, wherein the operation processing unit repeatedly generates position information data and stores the generated position information data in the action history temporary storage unit, and when an abnormality is detected or a signal notifying the abnormality is received from the control device, the position information data stored in the action history temporary storage unit is saved in the action history storage unit, wherein the position information data includes the position of the motor obtained based on the signal output from the sensor and the time when the position is obtained.
[0007] In the control method of the angle sensor for motor control of the present invention, the angle sensor for motor control comprises: a motor; a sensor, which outputs a signal corresponding to the drive of the motor; an operation processing unit; an action history temporary storage unit; an action history storage unit; and a control device, which controls the drive of the motor. In the control method, the operation processing unit repeatedly generates position information data and stores the generated position information data in the action history temporary storage unit every time a request signal is received from the control device, and when an abnormality is detected or a signal notifying the abnormality is received from the control device, the position information data stored in the action history temporary storage unit is saved in the action history storage unit, and the position information data includes the position of the motor obtained based on the signal output from the sensor and the time when the position is obtained. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Figure 1 It is an overall diagram showing a robot system according to an embodiment of the present invention.
[0009] Figure 2 A cross-sectional view of the drive device.
[0010] Figure 3 A cross-sectional view of the drive device.
[0011] Figure 4 A block diagram of the drive device.
[0012] Figure 5 This is a diagram showing an example of position information data generated by a calculation processing unit included in the drive device.
[0013] Figure 6 It is a flowchart showing the processing steps of the calculation processing unit included in the driving device.
[0014] Figure 7 This is a graph for explaining a method of detecting an abnormality in a calculation processing unit included in a drive device.
[0015] Figure 8 This is a graph for explaining a method of detecting an abnormality in a calculation processing unit included in a drive device.
[0016] Fig. 9 This is a graph for explaining a method of detecting an abnormality in a calculation processing unit included in a drive device.
[0017] Fig.10 This is a graph for explaining a method of detecting an abnormality in a calculation processing unit included in a drive device.
[0018] Fig.11 It is a block diagram showing a modified example of the driving device.
[0019] Fig.12 It is a block diagram showing a modified example of the driving device.
[0020] Fig.13 It is a block diagram showing a modified example of the driving device.
[0021] Description of Reference Numerals
[0022] 1: robot system; 2: robot; 20: base; 21: robot arm; 211: arm; 212: arm; 213: arm; 214: arm; 215: arm; 216: arm; 22: end effector; 3: robot control device; 41: drive device; 42: drive device; 43: drive device; 44: drive device; 45: drive device; 46: drive device; 5: motor; 51: rotating shaft; 52: rotor; 53: stator; 54: housing; 55: bearing; 56: bearing; 6: angle sensor for motor control; 60: sensor; 61: optical encoder; 611: optical scale; 611a: hub; 611b: disk; 612: optical sensor; 612a: light emitting element; 612b: light receiving element ; 62: magnetic encoder; 621: main gear; 622a: sub gear; 622b: sub gear; 623a: magnet; 623b: magnet; 624a: magnetic sensor; 624b: magnetic sensor; 63: substrate; 631: lower surface; 632: upper surface; 64: semiconductor element; 641: operation processing unit; 642: action history temporary storage unit; 643: action history storage unit; 644: timer; 65: connector; 66: wiring; 68: housing; 69: temperature sensor; Dr: position information data; Fe: error flag; L: light; R: rotation amount; SH: threshold value; Sr: request signal; Te: temperature; Ti: time; aZ: axis; aZ1: axis; aZ2: axis; n: number of revolutions. DETAILED DESCRIPTION
[0023] Hereinafter, a motor control angle sensor, a motor control system, and a method for controlling a motor control angle sensor according to the present invention will be described in detail based on preferred embodiments shown in the accompanying drawings.
[0024] Figure 1 It is an overall diagram showing a robot system according to an embodiment of the present invention. Figure 2 and Figure 3 They are cross-sectional views of the drive device. Figure 4 A block diagram of the drive device. Figure 5 This is a diagram showing an example of position information data generated by the calculation processing unit included in the drive device. Figure 6 It is a flowchart showing the processing steps of the calculation processing unit included in the driving device. Figures 7 to 10Each of these is a graph for explaining a method of detecting an abnormality in a calculation processing unit included in the drive device.
[0025] It should be noted that in Figure 2 and Figure 3 , three axes orthogonal to each other, namely, the X-axis, the Y-axis, and the Z-axis, are shown in the figure. In addition, the tip side of each arrow indicating the X-axis, the Y-axis, and the Z-axis is set to "+", and the base side is set to "-". In addition, the direction parallel to the X-axis is called "X-axis direction", the direction parallel to the Y-axis is called "Y-axis direction", and the direction parallel to the Z-axis is called "Z-axis direction". In addition, the +Z-axis direction side is also called "upper", and the -Z-axis direction side is called "lower". Figure 3 To make Figure 2 Cross-sectional view obtained by rotating 90° about the Z axis.
[0026] Figure 1 The robot system 1 shown can carry out operations such as feeding, removing, conveying, and assembling precision equipment and parts constituting the precision equipment. The robot system 1 includes a robot 2 that performs a predetermined operation and a robot control device 3 that is an external device that controls the driving of the robot 2 .
[0027] The robot 2 is a six-axis robot. The robot 2 has a base 20 fixed to a floor, a wall, a ceiling, etc., a robot arm 21 supported by the base 20, and an end effector 22 mounted on the front end of the robot arm 21. In addition, the robot arm 21 has an arm 211 rotatably connected to the base 20, an arm 212 rotatably connected to the arm 211, an arm 213 rotatably connected to the arm 212, an arm 214 rotatably connected to the arm 213, an arm 215 rotatably connected to the arm 214, and an arm 216 rotatably connected to the arm 215. In addition, the end effector 22 is mounted on the arm 216.
[0028] However, the configuration of the robot 2 is not particularly limited, and for example, the number of arms may be one or more and five or less, or may be seven or more. In addition, for example, the robot 2 may be a horizontal multi-joint (Scara) robot, a dual-arm robot, or the like.
[0029] The robot 2 includes a drive device 41 for rotating the arm 211 relative to the base 20, a drive device 42 for rotating the arm 212 relative to the arm 211, a drive device 43 for rotating the arm 213 relative to the arm 212, a drive device 44 for rotating the arm 214 relative to the arm 213, a drive device 45 for rotating the arm 215 relative to the arm 214, and a drive device 46 for rotating the arm 216 relative to the arm 215. These drive devices 41 to 46 are independently controlled by the robot control device 3.
[0030] The robot control device 3 receives a position instruction from a host computer (not shown) and independently controls the driving of the driving devices 41 to 46 so that each arm 211 to 216 is at a position corresponding to the position instruction. The robot control device 3 is composed of, for example, a computer, and has a processor (CPU) for processing information, a memory connected to the processor in a communicable manner, and an external interface. In addition, various programs that can be executed by the processor are stored in the memory, and the processor can read and execute various programs stored in the memory.
[0031] Next, the drive devices 41 to 46 are described. Since they have the same structure, the drive device 41 is described as a representative one, and the description of the other drive devices 42 to 46 is omitted. The drive device 41 is a motor control system, such as Figure 2 As shown, a motor 5 and a motor control angle sensor 6 for detecting a rotation state of a rotation shaft of the motor 5 are provided.
[0032] The motor 5 is a variety of motors such as a two-phase AC brushless motor, a three-phase AC brushless motor, and a three-phase synchronous motor. The motor 5 has a rotating shaft 51 arranged along an axis aZ parallel to the Z axis, a rotor 52 fixed to the rotating shaft 51, a stator 53 arranged around the rotor 52, a cylindrical housing 54 that accommodates and supports the stator 53, and bearings 55 and 56 that support the rotating shaft 51 so that it can rotate around the axis aZ relative to the housing 54. In addition, the housing 54 is fixed to the base 20. In addition, an arm 211 is connected to the end of the rotating shaft 51 on the opposite side of the angle sensor 6 for motor control. As a result, the output of the motor 5 is transmitted from the base 20 to the arm 211, and the arm 211 rotates relative to the base 20. It should be noted that the rotating shaft 51 can also be connected to the arm 211 via a gear device such as a speed reducer as needed.
[0033] The motor control angle sensor 6 is an encoder unit, and is disposed on the upper side of the motor 5, that is, the +Z axis side. The motor control angle sensor 6 includes a rotation angle detection type optical encoder 61, a multi-rotation detection type magnetic encoder 62, and a substrate 63. These components are housed in a housing 68 fixed to the housing 54.
[0034] The optical encoder 61 is a reflective optical encoder, and has: an optical scale 611 fixed to the rotating shaft 51 of the motor 5, and an optical sensor 612 for detecting the rotation state of the optical scale 611. The optical scale 611 rotates around the axis aZ together with the rotating shaft 51. The optical scale 611 has: a hub 611a fixed to the rotating shaft 51 of the motor 5, and a disk 611b fixed to the hub 611a. A detection pattern (not shown) that can detect the rotation angle and rotation speed of the disk 611b is formed on the upper surface of the disk 611b. There is no particular limitation on the detection pattern, and for example, a pattern in which two areas with different light reflectances, that is, a reflection area and a non-reflection area, are alternately arranged in a circumferential direction centered on the axis aZ can be cited.
[0035] The optical sensor 612 is arranged on the upper side of the disk 611b separately from the disk 611b. The optical sensor 612 has: a light emitting element 612a that emits light L toward a detection pattern on the disk 611b, and a light receiving element 612b that receives light L reflected by the detection pattern. The light emitting element 612a is, for example, a laser diode or a light emitting diode, and the light receiving element 612b is, for example, a photodiode. In the optical encoder 61 having such a structure, the waveform of the output signal from the light receiving element 612b changes as the disk 611b rotates around the axis aZ. Therefore, based on the output signal, the rotation angle θ of the disk 611b within a range of 360° can be detected. However, the structure of the optical encoder 61 is not particularly limited.
[0036] The magnetic encoder 62 is arranged on the upper side of the optical sensor 612, that is, on the +Z axis side. The magnetic encoder 62 includes: a main gear 621 fixed to the rotating shaft 51, two sub gears 622a and 622b meshing with the main gear 621, magnets 623a and 623b fixed to the sub gears 622a and 622b, and magnetic sensors 624a and 624b for detecting the rotation state of the magnets 623a and 623b.
[0037] The main gear 621 rotates around the axis aZ together with the rotating shaft 51. The sub-gear 622a is supported by an axis so as to be rotatable around an axis aZ1 parallel to the axis aZ, and is driven by the main gear 621 to rotate at a rotation amount corresponding to the gear ratio with the main gear 621. Similarly, the sub-gear 622b is supported by an axis so as to be rotatable around an axis aZ2 parallel to the axis aZ, and is driven by the main gear 621 to rotate at a rotation amount corresponding to the gear ratio with the main gear 621. The numbers of teeth of the main gear 621, the sub-gear 622a, and the sub-gear 622b are different from each other, and in particular, in the present embodiment, they are mutually prime.
[0038] The magnet 623a is fixed to the pinion 622a. Therefore, the magnet 623a rotates around the axis aZ1 together with the pinion 622a. Similarly, the magnet 623b is fixed to the pinion 622b. Therefore, the magnet 623b rotates around the axis aZ2 together with the pinion 622b. The magnets 623a and 623b are permanent magnets such as neodymium magnets, ferrite magnets, samarium-cobalt magnets, alnico magnets, bonded magnets, etc., and are configured so that the direction of the magnetic field changes as the pinion rotates around the axes aZ1 and aZ2.
[0039] The magnetic sensors 624a and 624b are arranged on the lower side of the magnets 623a and 623b, that is, on the -Z axis side. The magnetic sensor 624a is arranged opposite to the magnet 623a, and outputs a signal corresponding to the direction of the magnetic field of the magnet 623a, that is, the rotation angle of the sub-gear 622a within the range of 360°. On the other hand, the magnetic sensor 624b is arranged opposite to the magnet 623b, and outputs a signal corresponding to the direction of the magnetic field of the magnet 623b, that is, the rotation angle of the sub-gear 622b within the range of 360°. In the magnetic encoder 62 of such a structure, the number of revolutions n of the rotating shaft 51 can be detected by combining the values of the signals from the magnetic sensors 624a and 624b. However, the structure of the magnetic encoder 62 is not particularly limited.
[0040] The substrate 63 is arranged between the optical encoder 61 and the magnetic encoder 62. The substrate 63 is a wiring substrate fixed to the housing 68. An optical sensor 612 is installed on the lower surface 631 of the substrate 63 opposite to the optical scale 611, and magnetic sensors 624a and 624b are installed on the upper surface 632 opposite to the magnets 623a and 623b.
[0041] In addition, a semiconductor element 64 electrically connected to the optical sensor 612 and the magnetic sensors 624a and 624b is installed at a position of the lower surface 631 of the substrate 63 that does not overlap with the optical sensor 612. The semiconductor element 64 is composed of, for example, a computer, and has: a processor (CPU) for processing information, a memory connected to the processor in a communicable manner, and an external interface. In addition, various programs that can be executed by the processor are stored in the memory, and the processor can read and execute various programs stored in the memory.
[0042] In addition, if Figure 3 As shown, a connector 65 is mounted on an upper surface 632 of the substrate 63 . Then, the semiconductor element 64 and the robot controller 3 are electrically connected via a wiring 66 connected to the connector 65 .
[0043] The above is a description of the structure of the drive device 41. It should be noted that the optical sensor 612 and the magnetic sensors 624a and 624b are also referred to as sensors 60 below. Next, the semiconductor element 64 included in the drive device 41 is described in detail. Figure 4 As shown in FIG. 6 , the semiconductor element 64 includes: an operation processing unit 641, an operation history temporary storage unit 642, an operation history storage unit 643, a timer 644, and a temperature sensor 69. In this way, by providing the operation processing unit 641, the operation history temporary storage unit 642, the operation history storage unit 643, the timer 644, and the temperature sensor 69 in one semiconductor device 64, the driving device 41 can be miniaturized. However, the present invention is not limited to this, and at least one of them may be provided outside the semiconductor element 64.
[0044] The action history temporary storage unit 642 is a RAM (random access memory), and the action history storage unit 643 is a ROM (read only memory). Therefore, once the power of the drive device 41 is turned off, the data stored in the action history temporary storage unit 642 will be deleted, while the data stored in the action history storage unit 643 will be stored as it is even if the power of the drive device 41 is turned off. In addition, the temperature sensor 69 detects the temperature of the motor 5.
[0045] The calculation processing unit 641 detects the rotation amount R of the rotating shaft 51 based on the output from the sensor 60. Specifically, when the power is turned on, the number of revolutions n of the rotating shaft 51 of the motor 5 is detected based on the output of the magnetic sensors 624a and 624b, and then the rotation amount R is detected by adding or subtracting the rotation angle θ of the rotating shaft 51 detected based on the output (pulse signal) of the optical sensor 612 from the detected number of revolutions n. However, the detection method of the rotation amount R is not particularly limited.
[0046] like Figure 5 As shown, the calculation processing unit 641 generates position information data Dr including the rotation amount R, the time Ti at which the rotation amount R is obtained, and the temperature Te of the motor 5 at the time Ti at which the rotation amount R is obtained. Then, the calculation processing unit 641 performs a process of temporarily storing the generated position information data Dr in the action history temporary storage unit 642, and performs a process of sending the generated position information data Dr to the robot control device 3. It should be noted that the time Ti is based on the time of the clock generated by the timer 644, and is shown as a count value. In addition, the temperature Te of the motor 5 is the temperature detected by the temperature sensor 69.
[0047] like Figure 6As shown, the operation processing unit 641 generates position information data Dr every time it receives a request signal Sr periodically sent from the robot control device 3, temporarily stores the generated position information data Dr in the action history temporary storage unit 642, and sends it to the robot control device 3. In this way, it is possible to prevent unnecessary generation and transmission of position information data Dr, and to reduce the processing burden. In the process of repeatedly performing such processing, when the operation processing unit 641 detects an abnormality in the drive device 41 or receives an error flag Fe as a signal notifying the abnormality from the robot control device 3, it selects the required position information data Dr from a large amount of position information data Dr that is continuously stored in the action history temporary storage unit 642 every time it receives a request signal Sr, and stores it in the action history storage unit 643 in association with the date and time of the abnormality occurrence.
[0048] exist Figure 6 In the example shown, since the operation processing unit 641 detects an abnormality in the drive device 41 based on the position information data Dr corresponding to the nth request signal Sr, it selects the five most recent position information data Dr from a large amount of position information data Dr generated from the start of power-on to the nth request signal Sr and stored in the action history temporary storage unit 642, that is, the position information data Dr corresponding to the n-4th request signal Sr to the position information data Dr corresponding to the nth request signal Sr, and saves these data in the action history storage unit 643 in association with the date and time of the abnormality occurrence, that is, the date and time equivalent to the moment Ti corresponding to the nth request signal Sr.
[0049] Thus, the position information data Dr including the most recent multiple times of the times the abnormality of the drive device 41 was detected will be saved even if the power is turned off. Therefore, by analyzing the position information data Dr saved in the action history storage unit 643, the cause of the abnormality can be analyzed. Since the drive device 41 is smaller in size than the robot control device 3, it is possible to reduce the transportation cost for analyzing the abnormality and improve the flexibility of the analysis compared to the past. In addition, there is no need to reproduce the occurrence of the abnormality, and the analysis of the abnormality becomes easy. In addition, since the position information data Dr includes the temperature Te, it is also possible to confirm the state of the motor 5 at the time of the abnormality, and the abnormality can be analyzed with higher accuracy.
[0050] Here, the action history temporary storage unit 642 is composed of a ring buffer. Thus, the latest position information data Dr can be stored one by one. In addition, since the capacity of the action history temporary storage unit 642 can be reduced, that is, in the above example, as long as there is a capacity that can store at least five times of position information data Dr, the cost of the drive device 41 can also be reduced.
[0051] The number of position information data Dr saved in the action history storage unit 643 is not limited to five and can be set appropriately. In addition, for example, all position information data Dr temporarily stored in the action history temporary storage unit 642 can also be saved in the action history storage unit 643. That is, all position information data Dr generated from the time the power is turned on to the time when the abnormality is detected can also be saved in the action history storage unit 643. In addition, not only the position information data Dr before the abnormality is detected, but also the position information data Dr after the detection can be saved in the action history storage unit 643. For example, in the case of detecting an abnormality in the position information data Dr corresponding to the nth request signal Sr, the position information data Dr corresponding to the n-4th request signal Sr to the position information data Dr corresponding to the n+4th request signal Sr can also be saved in the action history storage unit 643. Thereby, it is easy to analyze whether the abnormality is sudden or chronic.
[0052] It should be noted that the "abnormality of the drive device 41" is not particularly limited, and for example, the following examples can be cited. Figure 7 As shown in FIG. 1 , when the output of the rotation amount R corresponding to the n-th request signal Sr increases sharply relative to the rotation amount R corresponding to the n-1th request signal Sr, the operation processing unit 641 detects that the optical encoder 61 is abnormal. Figure 8 As shown in FIG. 1 , when the count value indicating the time Ti corresponding to the n-th request signal Sr increases sharply relative to the count value indicating the time Ti corresponding to the n-1th request signal Sr, the operation processing unit 641 suspects that the request signal Sr has failed to be received and detects an abnormality such as a disconnection of the wiring 66 or the occurrence of noise. In addition, for example, in the case of Fig. 9 As shown in FIG. 1 , when the temperature Te corresponding to the n-th request signal Sr increases sharply relative to the temperature Te corresponding to the n-1th request signal Sr, the arithmetic processing unit 641 detects that the temperature sensor 69 is abnormal. Fig.10 As shown, when the temperature Te exceeds the threshold value SH, the calculation processing unit 641 detects an abnormality in the motor 5. Thus, according to the drive device 41, it is also possible to infer which element caused the abnormality based on the suddenly changed parameters. Therefore, subsequent abnormality analysis becomes easier.
[0053] In addition, there is no special limitation on the "situation in which the robot control device 3 sends the error flag Fe". For example, there can be a situation in which the position information data Dr corresponding to the request signal Sr is not sent, a situation in which the rotation amount R included in the position information data Dr deviates significantly from the position instruction, a situation in which an abnormality occurs in a factor other than the drive device 41, etc.
[0054] The robot system 1 has been described above. As described above, the motor control angle sensor 6 included in such a robot system 1 includes: a sensor 60 that outputs a signal corresponding to the drive of the motor 5, a calculation processing unit 641, an operation history temporary storage unit 642, and an operation history storage unit 643. In addition, the calculation processing unit 641 repeatedly generates the position information data Dr including the rotation amount R as the position of the motor 5 obtained based on the signal output from the sensor 60 and the time Ti when the rotation amount R is obtained, and stores the generated position information data Dr in the operation history temporary storage unit 642, and when an abnormality is detected or a signal notifying the abnormality is received from the robot control device 3 as an external device, the position information data Dr stored in the operation history temporary storage unit 642 is stored in the operation history storage unit 643. According to such a configuration, the position information data Dr of the most recent multiple times including the time when the abnormality is detected or the time when the signal notifying the abnormality is received from the robot control device 3 is saved even if the power is turned off. Therefore, by analyzing the position information data Dr stored in the operation history storage unit 643, the cause of the abnormality can be analyzed. Here, since the motor control angle sensor 6 is smaller than the robot control device 3, it is possible to reduce the transportation cost for analyzing the abnormality and improve the flexibility of the analysis compared with the past. In particular, since the time Ti is included in the position information data Dr, it is also possible to easily determine whether the abnormality is an abnormality in the sensor 60 or an abnormality in the communication with the robot control device 3, for example.
[0055] In addition, as described above, the calculation processing unit 641 generates the position information data Dr in response to the request signal Sr from the robot control device 3, and stores the generated position information data Dr in the action history temporary storage unit 642. In this way, it is possible to suppress the generation and storage of unnecessary position information data Dr in the action history temporary storage unit 642.
[0056] As described above, the calculation processing unit 641 generates position information data Dr in response to the request signal Sr from the robot controller 3, and transmits the generated position information data Dr to the robot controller 3. This can suppress the generation and transmission of unnecessary position information data Dr to the robot controller 3.
[0057] As described above, the operation history temporary storage unit 642 is formed of a ring buffer, thereby being able to sequentially store the latest position information data Dr. In addition, since the capacity of the operation history temporary storage unit 642 can be reduced, the cost of the motor control angle sensor 6 can also be reduced.
[0058] In addition, as described above, the motor control angle sensor 6 has a temperature sensor 69 for detecting the temperature Te of the motor 5. In addition, the calculation processing unit 641 generates position information data Dr including the temperature Te of the motor 5 at the time Ti in addition to the rotation amount R and the time Ti. Thus, the motor control angle sensor 6 can detect not only an abnormality of the sensor 60 but also an abnormality of the motor 5.
[0059] As described above, the calculation processing unit 641, the operation history temporary storage unit 642, and the operation history storage unit 643 are included in one semiconductor element 64. This makes it possible to reduce the size of the motor control angle sensor 6.
[0060] In addition, as described above, the drive device 41 as a motor control system includes the motor 5, the sensor 60 that outputs a signal corresponding to the drive of the motor 5, the calculation processing unit 641, the motion history temporary storage unit 642, the motion history storage unit 643, and the robot control device 3 as a control device that controls the drive of the motor 5. In addition, the calculation processing unit 641 repeatedly generates the position information data Dr including the position of the motor 5 obtained based on the signal output from the sensor 60, that is, the rotation amount R and the time Ti when the rotation amount R is obtained, and stores the generated position information data Dr in the motion history temporary storage unit 642, and when an abnormality is detected or a signal notifying the abnormality is received from the robot control device 3, the position information data Dr stored in the motion history temporary storage unit 642 is stored in the motion history storage unit 643. According to such a configuration, the position information data Dr of the most recent multiple times including the time when the abnormality is detected or the time when the signal notifying the abnormality is received from the robot control device 3 is stored even if the power is turned off. Therefore, by analyzing the position information data Dr stored in the motion history storage unit 643, the cause of the abnormality can be analyzed. Here, since the driving device 41 is smaller in size than the robot control device 3 , it is possible to reduce the transportation cost for analyzing abnormalities and improve the flexibility of analysis compared with the related art.
[0061] In addition, as described above, in the control method of the drive device 41 as a motor control system including the motor 5, the sensor 60 that outputs a signal corresponding to the drive of the motor 5, the calculation processing unit 641, the operation history temporary storage unit 642, the operation history storage unit 643, and the robot control device 3 that controls the drive of the motor 5, the calculation processing unit 641 repeatedly performs a process of generating position information data Dr including the rotation amount R of the motor 5 obtained based on the signal output from the sensor 60 and the time Ti at which the rotation amount R was obtained every time a request signal is received from the robot control device 3, and storing the generated position information data Dr in the operation history temporary storage unit 642, and storing the position information data Dr stored in the operation history temporary storage unit 642 in the operation history storage unit 643 when an abnormality is detected or a signal notifying the abnormality is received from the robot control device 3. According to such a method, the position information data Dr for the most recent multiple times including the times when the abnormality is detected or the times when the signal notifying the abnormality is received from the robot control device 3 are stored even if the power is turned off. Therefore, the cause of the abnormality can be analyzed later by analyzing the position information data Dr stored in the action history storage unit 643. Here, since the drive device 41 is smaller than the robot control device 3, it is possible to reduce the transportation cost for analyzing the abnormality and improve the flexibility of the analysis compared with the past.
[0062] Based on the illustrated embodiments, the angle sensor for motor control, the motor control system, and the control method for the angle sensor for motor control of the present invention are described above, but the present invention is not limited thereto, and the configuration of each part can be replaced with any configuration having the same function. In addition, other arbitrary configurations can also be added to the present invention. In addition, in the aforementioned embodiments, the example of applying the angle sensor for motor control, the motor control system, and the control method for the angle sensor for motor control to a robot system is described, but the angle sensor for motor control, the motor control system, and the control method for the angle sensor for motor control can also be applied to various electronic devices other than the robot system.
[0063] In addition, in the above-mentioned embodiment, the temperature sensor 69 is arranged in the semiconductor element 64, but it is not limited to this. Fig.11 and Fig.12 As shown, it can also be configured outside the semiconductor element 64. In addition, in the above-mentioned embodiment, the action history storage unit 643 is configured in the semiconductor element 64, but it is not limited to this. Fig.13 As shown, it may also be arranged outside the semiconductor element 64.
Claims
1. An angle sensor for motor control, characterized in that: have: A sensor outputs a signal corresponding to the driving of the motor; Operation processing unit; Action history temporary storage unit; as well as Action History Preservation Department, The arithmetic processing unit repeatedly generates position information data and stores the generated position information data in the action history temporary storage unit in response to a request signal periodically sent from the external device, and saves the position information data stored in the action history temporary storage unit in the action history storage unit when an abnormality is detected or a signal notifying an abnormality is received from the external device, wherein the position information data includes a position of the motor obtained based on a signal output from the sensor and a time when the position is obtained. The arithmetic processing unit suspects that reception of the request signal has failed when the count value indicating the time corresponding to the n-1th request signal increases sharply relative to the count value indicating the time corresponding to the n-1th request signal.
2. The motor control angle sensor according to claim 1, characterized in that: The arithmetic processing unit generates the position information data in response to a request signal from the external device, and transmits the generated position information data to the external device.
3. The motor control angle sensor according to claim 1 or 2, characterized in that: The action history temporary storage unit is composed of a ring buffer.
4. The motor control angle sensor according to claim 1 or 2, characterized in that: The motor control angle sensor includes a temperature sensor for detecting the temperature of the motor. The calculation processing unit generates the position information data including, in addition to the position and the time, the temperature of the motor at the time.
5. The motor control angle sensor according to claim 1 or 2, characterized in that: The arithmetic processing unit, the operation history temporary storage unit, and the operation history storage unit are included in one semiconductor element.
6. A motor control system, characterized in that: have: Motor; A sensor outputs a signal corresponding to the driving of the motor; Operation processing unit; Action history temporary storage unit; Action History Preservation Unit; and A control device controls the driving of the motor, The arithmetic processing unit repeatedly generates position information data and stores the generated position information data in the action history temporary storage unit in response to a request signal periodically sent from the control device, and saves the position information data stored in the action history temporary storage unit in the action history storage unit when an abnormality is detected or a signal notifying an abnormality is received from the control device, wherein the position information data includes a position of the motor obtained based on a signal output from the sensor and a time when the position is obtained. The arithmetic processing unit suspects that reception of the request signal has failed when the count value indicating the time corresponding to the n-1th request signal increases sharply relative to the count value indicating the time corresponding to the n-1th request signal.
7. A method for controlling an angle sensor for motor control, characterized in that: The motor control angle sensor comprises: Motor; A sensor outputs a signal corresponding to the driving of the motor; Operation processing unit; Action history temporary storage unit; Action History Preservation Department; as well as A control device controls the driving of the motor, In the control method, The operation processing unit repeatedly generates position information data and stores the generated position information data in the action history temporary storage unit each time a request signal periodically sent from the control device is received, and saves the position information data stored in the action history temporary storage unit to the action history storage unit when an abnormality is detected or a signal notifying an abnormality is received from the control device, wherein the position information data includes the position of the motor obtained based on the signal output from the sensor and the time when the position is obtained. The arithmetic processing unit suspects that reception of the request signal has failed when the count value indicating the time corresponding to the n-1th request signal increases sharply relative to the count value indicating the time corresponding to the n-1th request signal.
