Photoelectric encoder, motor, motor detection method and computer readable storage medium

By setting multiple windows in the photoelectric encoder with engraved lines and projections of different lengths, and using light signals to detect the performance of the motor, it solves the problem that the existing encoder cannot detect the performance of the motor, and achieves accurate detection of motor performance and lifespan. prediction, improving the accuracy of the servo system.

CN115790677BActive Publication Date: 2024-09-10SUZHOU GAOCHUANG MOTION CONTROL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211412044.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-11
Publication Date
2024-09-10
Estimated Expiration
2042-11-11

AI Technical Summary

Technical Problem

Existing encoders cannot detect the performance of the motor, especially the degree of eccentricity, shaft runout or radial runout, which affects the accuracy of the servo system and the life prediction of the motor.

Method used

A photoelectric encoder is designed. By setting multiple windows on the code wheel with engraved lines and projections of different lengths, the optical signals transmitted through the first window and the second window are used to detect the position and speed of the motor, and pass Motor detection methods obtain eccentricity data to predict motor life.

Benefits of technology

It achieves accurate detection of motor performance, improves the accuracy of the servo system and motor life prediction, simplifies the motor life prediction method, and avoids additional equipment investment and the inaccuracy of vibration sensors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115790677B
    Figure CN115790677B
Patent Text Reader

Abstract

The present invention discloses a photoelectric encoder, a motor, a motor detection method and a computer-readable storage medium. The photoelectric encoder includes a code disk and a photocell. The code disk is provided with a first code track with a rotating shaft as the center of the circle, and the first code track includes a plurality of evenly arranged scribed lines. The photocell is arranged facing the first code track, and the photocell is provided with a plurality of first windows and at least one second window whose extension direction is consistent with the scribed lines. The length of the first window is less than the length of the scribed lines of the first code track, and the projection of the scribed lines of the first code track on the first window is a first projection, and the two ends of the first projection respectively exceed the two ends of the first window; the length of the second window is greater than the length of the first window, and the projection of the scribed lines of the first code track on the second window is a second projection, and the length difference between the second projection and the second window is less than the length difference between the first projection and the first window. The performance of the motor can be detected according to the optical signals obtained by the first window and the second window.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field, and in particular to a photoelectric encoder, a motor, a motor detection method and a computer-readable storage medium. Background Art

[0002] The encoder is a core component of the servo motor. In the servo system, the encoder measures the position and speed of the motor in real time, and feeds back the position, speed and other information to the servo driver in real time, providing information for the next operation of the servo driver. At present, the data detected by the encoder in the existing technology cannot be used to detect the performance of the motor. Summary of the invention

[0003] The purpose of the present invention is to solve at least one of the technical problems existing in the prior art, and to provide a photoelectric encoder, a motor, a motor detection method and a computer-readable storage medium, which can detect the performance of the motor.

[0004] In a first aspect, an embodiment of the present invention provides a photoelectric encoder, including a code disk and a photocell, wherein:

[0005] The code disc is provided with a first code track with the rotation axis as the center, and the first code track includes a plurality of evenly arranged engraved lines;

[0006] The photocell is arranged facing the first code channel, and is provided with a plurality of first windows and at least one second window whose extension direction is consistent with the scribed lines. The length of the first window is less than the length of the scribed lines of the first code channel, and the projection of the scribed lines of the first code channel on the first window is a first projection, and both ends of the first projection respectively exceed both ends of the first window; the length of the second window is greater than the length of the first window, and the projection of the scribed lines of the first code channel on the second window is a second projection, and the difference in length between the second projection and the second window is less than the difference in length between the first projection and the first window.

[0007] The photoelectric encoder provided according to the embodiment of the present invention has at least the following beneficial effects: the code disk is rotated by the rotating shaft, and since the length of the first window is smaller than the length of the engraved line of the first code channel and the two ends of the first projection respectively exceed the two ends of the first window, the light signal transmitted through the first window is relatively stable and is used to determine the position or speed of the motor; and the length of the second window is larger than the length of the first window and the difference in length between the second projection and the second window is smaller than the difference in length between the first projection and the first window, so that the light signal transmitted through the second window can contain the beating information, and the encoder can detect the performance of the motor according to the coordination of the light signal transmitted through the first window and the light signal transmitted through the second window, such as detecting the degree of eccentricity, the size of shaft runout or the size of radial runout of the motor.

[0008] In the photoelectric encoder provided in some embodiments, the length of the second window is equal to the length of the scribed line of the first code channel, and two ends of the projection of the scribed line of the first code channel on the second window are respectively flush with two ends of the second window.

[0009] By setting the size and position of the second window in the manner of this embodiment, the light signal transmitted through the second window can be more accurate, and the degree of eccentricity, shaft runout or radial runout of the motor can be more accurately reflected.

[0010] In the photoelectric encoder provided in some embodiments, the difference in length between the second projection and the second window is less than 1 / 2 of the difference in length between the first projection and the first window.

[0011] In the photoelectric encoder provided in some embodiments, the first code track is located on the surface of one side in the axial direction of the code disk, the first code track includes a plurality of evenly arranged radial lines corresponding to the rotation axis, and the photocell is located on one axial side of the code disk.

[0012] In the photoelectric encoder provided in some embodiments, the first code track is located on the outer side of the code disk, the first code track includes a plurality of evenly arranged axial lines corresponding to the rotation axis, and the photocell is located on the circumferential side of the code disk.

[0013] In the photoelectric encoder provided in some embodiments, the code disk is further provided with a second code channel, and the photocell is further provided with a third window, the projection of the engraved line of the second code channel on the third window is a third projection, and both ends of the third projection respectively exceed both ends of the third window.

[0014] In this embodiment, the photoelectric encoder can implement photoelectric encoder encoding according to the combination of the light signal transmitted through the first window and the light signal transmitted through the third window, for example, absolute encoding such as vernier code encoding or pseudo-random code encoding.

[0015] In the photoelectric encoder provided in some embodiments, a plurality of the third windows are provided.

[0016] In this embodiment, based on the multiple groups of light signals transmitted by the multiple first windows and the multiple light signals transmitted by the multiple third windows, the photoelectric encoder can better achieve position measurement and speed measurement of the motor.

[0017] In the photoelectric encoder provided in some embodiments, the width of the first window is equal to the width of the second window; and / or the spacing between the second window and an adjacent first window is equal to the spacing between two adjacent first windows.

[0018] In the photoelectric encoder provided in some embodiments, the second window is located at an edge of one side of the plurality of first windows.

[0019] In this embodiment, compared with the arrangement in which the second window is located among the plurality of first windows, the second window is located at the edge of one side of the plurality of first windows, which can avoid interference between the optical signal transmitted by the second window and the optical signal transmitted by the plurality of first windows.

[0020] In the photoelectric encoder provided in some embodiments, the center of the first window and the center of the second window are located on the same circumference with the rotation axis as the center.

[0021] In a second aspect, an embodiment of the present invention provides a motor, comprising a housing, a rotating shaft, and a photoelectric encoder as described in the embodiment of the first aspect above, wherein the code disc is mounted on the rotating shaft, and the photocell is fixed on the housing.

[0022] The motor provided according to the embodiment of the present invention has at least the following beneficial effects: the code disk is rotated by the rotating shaft, and since the length of the first window is smaller than the length of the engraved line of the first code channel and the two ends of the first projection respectively exceed the two ends of the first window, the light signal transmitted through the first window is relatively stable, which is used to determine the position or speed of the motor; and the length of the second window is larger than the length of the first window and the difference in length between the second projection and the second window is smaller than the difference in length between the first projection and the first window, so that the light signal transmitted through the second window can contain jitter information, and the encoder can detect the performance of the motor according to the coordination of the light signal transmitted through the first window and the light signal transmitted through the second window, such as detecting the degree of eccentricity, shaft runout or radial runout of the motor.

[0023] In a third aspect, an embodiment of the present invention provides a motor detection method, which is applied to the motor described in the embodiment of the second aspect, and the method includes:

[0024] Acquire a first electrical signal and a second electrical signal obtained when the code disk rotates one circle when the motor rotates, wherein the first electrical signal is converted from the light signal passing through the first window, and the second electrical signal is converted from the light signal passing through the second window;

[0025] The eccentricity data of the motor is obtained according to the first electrical signal and the second electrical signal.

[0026] The motor detection method provided in the embodiment of the present invention has at least the following beneficial effects: after the motor is controlled to rotate, the code disk is driven to rotate by the rotating shaft. Since the length of the first window is smaller than the length of the engraved line of the first code channel and the two ends of the first projection respectively exceed the two ends of the first window, the light signal transmitted by the first window is relatively stable, which is used to determine the position or speed of the motor; and the length of the second window is larger than the length of the first window and the difference in length between the second projection and the second window is smaller than the difference in length between the first projection and the first window, so that the light signal transmitted by the second window can contain the beating information, and the encoder can detect the performance of the motor according to the coordination of the light signal transmitted by the first window and the light signal transmitted by the second window, such as detecting the degree of eccentricity, the size of shaft runout or the size of radial runout of the motor.

[0027] In the motor detection method provided in some embodiments, the lines on the first code track are radial lines, and the eccentricity data includes radial runout data of the motor; or, the lines on the first code track are axial lines, and the eccentricity data includes axial runout data of the motor.

[0028] In the motor detection method provided in some embodiments, the first electrical signal includes a plurality of first sinusoidal wave signals, the second electrical signal includes a plurality of second sinusoidal wave signals, and obtaining the eccentricity data of the motor according to the first electrical signal and the second electrical signal includes:

[0029] Normalizing the peak values ​​of the plurality of first sinusoidal wave signals with a first average value to obtain a first normalized parameter, wherein the first average value is an average value of the peak values ​​of the plurality of first sinusoidal wave signals;

[0030] Normalizing the peak values ​​of the plurality of second sinusoidal wave signals with a second average value to obtain a second normalized parameter, wherein the second average value is an average value of the peak values ​​of the plurality of second sinusoidal wave signals;

[0031] The second normalized parameter is divided by the first normalized parameter to obtain the eccentricity data of the motor.

[0032] In the motor detection method provided in some embodiments, it also includes: predicting the life of the motor based on the eccentricity data and a preset eccentricity threshold.

[0033] In a fourth aspect, an embodiment of the present invention provides an operation control device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the motor detection method as described in the embodiment of the third aspect above.

[0034] In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the motor detection method as described in the embodiment of the third aspect above.

[0035] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the technical solution of the present invention and do not constitute a limitation on the technical solution of the present invention.

[0037] The present invention is further described below in conjunction with the accompanying drawings and embodiments;

[0038] Figure 1 is a schematic diagram of the structure of a photoelectric encoder provided by an embodiment of the present invention;

[0039] Figure 2 is a schematic structural diagram of a photoelectric encoder provided by another embodiment of the present invention;

[0040] Figure 3 It is a schematic structural diagram of a radially engraved code disk provided by an embodiment of the present invention;

[0041] Figure 4 yes Figure 3 An enlarged schematic diagram of the dotted box portion in FIG.

[0042] Figure 5 is a schematic diagram of the structure of another code disk provided by an embodiment of the present invention;

[0043] Figure 6 yes Figure 5 A partial enlarged schematic diagram of the first code channel;

[0044] Figure 7 It corresponds to Figure 3 A schematic diagram of the structure of a photocell of a radially engraved code disk shown;

[0045] Figure 8 It is a schematic diagram of the window design of the photocell of the photoelectric encoder in the related art;

[0046] Fig. 9 It corresponds to Figure 5 A schematic diagram of the structure of the photocell of the axially engraved code disk shown;

[0047] Fig.10 It is a schematic diagram of the window design of a photocell of another photoelectric encoder in the related art;

[0048] Fig.11 is a schematic diagram of electrical signal data converted from two sets of second optical signals;

[0049] Fig.12 yes Fig.11 Schematic diagram of comparative data after processing the two sets of data in;

[0050] Fig.13 It is a schematic diagram of the code disk structure of the vernier code type absolute encoder;

[0051] Fig.14 yes Fig.13 An enlarged schematic diagram of the dotted frame portion;

[0052] Fig.15 It is a schematic diagram of the code disk structure of an absolute encoder with a pseudo-random code;

[0053] Fig.16 yes Fig.15 An enlarged schematic diagram of the dotted frame portion;

[0054] Fig.17 It corresponds to Fig.15 A schematic diagram of the structure of the photocell of the code disk shown;

[0055] Fig.18 It is a schematic diagram of the window design of a photoelectric cell of another photoelectric encoder in the related art;

[0056] Fig.19 is a flow chart of a motor detection method provided by an embodiment of the present invention;

[0057] Fig. 20 yes Fig.19 A detailed flowchart of step S1920 in FIG.

[0058] Fig.21 It is a schematic diagram of using eccentricity data to predict the life of the motor;

[0059] Fig. 22 It is a structural schematic diagram of an operation control device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0060] This section will describe in detail the specific embodiments of the present invention. The preferred embodiments of the present invention are shown in the accompanying drawings. The purpose of the accompanying drawings is to supplement the description of the text part of the specification with graphics, so that people can intuitively and vividly understand each technical feature and the overall technical solution of the present invention, but it cannot be understood as a limitation on the scope of protection of the present invention.

[0061] In the description of the embodiments of the present invention, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed", etc. are understood to exclude the number itself, "above", "below", "within", etc. are understood to include the number itself, "at least one" means one or more, "at least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. If there is a description of "first", "second", etc., it is only used for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0062] It should be noted that the terms such as setting, installing, connecting, etc. in the embodiments of the present invention should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the embodiments of the present invention based on the specific content of the technical solution.

[0063] It should be noted that the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0064] The encoder is a core component of the servo motor. In the servo system, the encoder measures the position and speed of the motor in real time. And the position, speed and other information are fed back to the servo drive in real time to provide information for the next operation of the servo drive. At present, various automated production lines have higher and higher requirements for the accuracy of motors, and the control accuracy of motors is seriously dependent on the accuracy of encoders. As robots are involved in various high-precision control and service systems, robots have higher and higher requirements for their core drive motors. According to different application scenarios, various high, medium and low-end rotary servo encoders can provide angle position measurement and feedback up to the arc second level, and can support high-speed rotation of up to tens of thousands of revolutions. In particular, the position accuracy of some high-precision photoelectric encoders can reach the arc second level. In fact, not only the performance of the encoder itself can affect the position accuracy measurement of the rotary servo, but also the installation accuracy of the encoder when assembled with the motor will affect the accuracy of the servo system. For example, the increase in the eccentricity between the encoder and the motor will increase the position error and speed error of the encoder. At present, many manufacturers have added the center of circle optical alignment process when assembling motors and photoelectric encoders. Compared with the traditional manual or human eye judgment, this optical alignment technology can greatly improve the concentricity of the encoder code disc when installing. However, this installation method can only detect the concentricity during the installation process, but not after the installation. In addition, for the encoder, if the eccentricity of the encoder code disk installation is known, the encoder error can be reduced by data compensation.

[0065] In addition, for servo motors used in automated production lines, sudden motor failures will seriously affect the production efficiency of the production line. If the life of the motor can be predicted in advance and a reasonable replacement or maintenance plan can be made, the risk of sudden downtime of the production line can be reduced, and the economic losses caused by downtime can be reduced. The life prediction of current servo motors is generally predicted by adding some vibration sensors to the outside of the motor. However, the vibration sensor is an additional sensor, which not only requires additional equipment investment, but also the vibration sensor is not accurate for the model of motor life prediction. The life results obtained by vibration sensors installed in different positions are quite different. The encoder is an angle sensor of the servo motor itself. If the encoder can provide data support for the prediction of motor life or rotating shaft life, it will simplify the current motor life prediction method.

[0066] Embodiments of the present invention provide a photoelectric encoder, a motor, a motor detection method, and a computer-readable storage medium. The photoelectric encoder can detect the performance of the motor based on the coordination of the light signal transmitted through a first window and the light signal transmitted through a second window, such as the degree of eccentricity, the size of shaft runout, or the size of radial runout of the motor. The motor detection method can obtain the eccentricity data of the motor based on the first electrical signal converted from the light signal transmitted through the first window and the second electrical signal converted from the light signal transmitted through the second window, so as to control the working state of the motor and predict the life of the motor.

[0067] The embodiments of the present invention are further described below in conjunction with the accompanying drawings.

[0068] Figure 1 is a schematic diagram of the structure of a photoelectric encoder provided by an embodiment of the present invention; Figure 2 FIG. 1 is a schematic diagram of the structure of a photoelectric encoder provided by another embodiment of the present invention. Figure 1 and Figure 2 A first aspect of the present invention provides a photoelectric encoder, comprising a code disc 100 and a photocell 200 .

[0069] The code disc 100 is provided with a first code track 110 with the rotating shaft as the center, and the first code track 110 includes a plurality of evenly arranged engraved lines. It should be noted that the code disc 100 can be directly mounted on the rotating shaft and driven to rotate directly by the rotating shaft; or it can be mounted on the rotating shaft through other connecting components and driven to rotate indirectly by the rotating shaft through the connecting components.

[0070] In some embodiments, the structure of the photoelectric encoder can be as follows Figure 1 As shown, in the axial direction of the code disc 100, the photocell 200 is disposed facing the code disc 100 and away from the axis of the code disc 100, and the axial side surface (upper surface or Figure 1A first code track 110 is arranged on the lower surface of the optical encoder, and the photocell 200 faces the first code track 110. In other embodiments, the structure of the photoelectric encoder can be as follows: Figure 2 As shown, the photocell 200 is disposed on the circumferential side of the code disc 100 , a first code track 110 is disposed on the circumferential side wall of the code disc 100 , and the photocell 200 faces the first code track 110 .

[0071] In some embodiments of the photoelectric encoder provided, referring to Figure 3 The code disc 100 shown in FIG. 1 has a first code track 110 located on the upper surface of the code disc 100 ; or referring to FIG. Figure 1 In the code disk 100 shown in FIG. 1 , the first code track 110 is located on the lower surface of the code disk 100; Figure 4 As shown, Figure 4 for Figure 3 The first code channel 110 includes a plurality of radial lines 111 evenly arranged corresponding to the rotation axis, so Figure 1 and Figure 3 The code disk 100 in the embodiment may also be referred to as a radially engraved code disk. Figure 2 and Figure 5 In the code disk shown in FIG. 1 , the first code track 110 is located on the outer side of the code disk 100; Figure 6 As shown, Figure 6 for Figure 5 FIG. 1 is a schematic diagram of an enlarged partial area of ​​the first code track 110 in FIG. 1 , wherein the first code track 110 includes a plurality of evenly arranged axial lines 112 corresponding to the rotation axis. Figure 2 and Figure 5 The code wheel 100 in the embodiment may also be referred to as an axially engraved code wheel.

[0072] Figure 7 For the corresponding Figure 3 The schematic diagram of the structure of the photocell 200 of the radially engraved code disk is shown in FIG. Fig. 9 For the corresponding Figure 5 The schematic diagram of the structure of the photocell 200 of the axially engraved code disk shown in FIG. Figure 7 or Fig. 9As shown, the photocell 200 is arranged facing the first code channel 110, and the photocell 200 is provided with a plurality of first windows 210 and at least one second window 220 whose extension direction is consistent with the scribed line of the first code channel 110, the length of the first window 210 is less than the length of the scribed line of the first code channel 110, the projection of the scribed line of the first code channel 110 on the first window 210 is the first projection, the two ends of the first projection respectively exceed the two ends of the first window 210, the length of the second window 220 is greater than the length of the first window 210, the projection of the scribed line of the first code channel 110 on the second window 220 is the second projection, and the length difference between the second projection and the second window 220 is less than the length difference between the first projection and the first window 210. Further, in the photoelectric encoder provided in some embodiments, the length difference between the second projection and the second window 220 is less than 1 / 2 of the length difference between the first projection and the first window 210.

[0073] The window design of the photoelectric cell of the photoelectric encoder in the current related technology refers to Figure 8 and Fig.10 As shown, Figure 8 For the current related technology Figure 3 The schematic diagram of the structure of the photocell 200 of the radially engraved code disk is shown in FIG. Fig.10 For the current related technology Figure 5 The schematic diagram of the structure of the photocell 200 of the axially engraved code disk shown in the figure, the photocell 200 is provided with a plurality of first windows 210, and the light signal transmitted by the first window 210 can be converted into electrical signal data for position settlement or speed settlement. The length of the first window 210 is less than the length of the engraved line of the first code channel 110 and the two ends of the first projection are respectively beyond the two ends of the first window 210, so even if there is a radial relative displacement or an axial relative displacement between the code disk and the photocell, Figure 8 Under the condition that the two side edges of the first window 210 of the photocell 200 shown do not exceed the two side edges of the code disk engraving line, the signal channel corresponding to the first window 210 of the photocell 200 will not be attenuated.

[0074] According to the photoelectric encoder provided by the embodiment of the present invention, the code disk 100 is driven to rotate by the rotating shaft. Since the length of the first window 210 is less than the length of the engraved line of the first code channel 110 and the two ends of the first projection respectively exceed the two ends of the first window 210, the light signal transmitted by the first window 210 is relatively stable, which is used to determine the position or speed of the motor; and the length of the second window 220 is greater than the length of the first window 210 and the length difference between the second projection and the second window 220 is less than the length difference between the first projection and the first window 210, so that the light signal transmitted by the second window 220 can contain the beating information, and the encoder can detect the performance of the motor according to the light signal transmitted by the first window 210 and the light signal transmitted by the second window 220, such as detecting the degree of eccentricity, the size of shaft runout or the size of radial runout of the motor.

[0075] It is understandable that during the rotation of the code disk 100, the light signal transmitted through the first window 210 and the light signal transmitted through the second window 220 can be converted into electrical signals. Fig.11 As shown, Fig.11 The diagram shows two groups of electrical signal data converted from optical signals. The left one is a schematic diagram of a group of stable signals, which indicates that the concentricity between the code disk 100 and the rotating shaft is good; the right one is a schematic diagram of a group of signals with large jitter, which indicates that the concentricity between the code disk 100 and the rotating shaft is poor. Since the code disk 100 has radial jitter or axial jitter during rotation, the peak value of the electrical signal data converted from the optical signal transmitted by the second window 220 will change in each engraved line period. Fig.11 After the peak data corresponding to the two groups of signals are normalized, they are divided by the data obtained after the light signal transmitted through the first window 210 is converted into the electrical signal data and processed accordingly, and the following can be obtained: Fig.12 The data shown can be used to determine the degree of eccentricity, shaft runout or radial runout of the motor by comparing the relationship between each point and 1.

[0076] It can be understood that the jitter information contained in the light signal transmitted by the second window 220 refers to the information generated by the jitter of the code disk 100 during the rotation of the axis, for example, Fig.11 The peak data of the electrical signal data converted from the optical signal transmitted by the second window 220 is shown.

[0077] In the photoelectric encoder provided in some embodiments, the length of the second window 220 is equal to the length of the scribed line of the first code channel 110 , and both ends of the projection of the scribed line of the first code channel 110 on the second window 220 are respectively flush with both ends of the second window 220 .

[0078] It can be understood that the length of the second window 220 is equal to the length of the scribe line of the first code channel 110, for example Figure 7The length of the second window 220 in Figure 4 The length of the radial score line 111 shown, Fig. 9 The length of the second window 220 in Figure 6 The length of the axial scale line 112 is shown. By setting the size and position of the second window 220 in the manner of this embodiment, the light signal transmitted by the second window 220 can be more accurate, and the eccentricity, shaft runout or radial runout of the motor can be more accurately reflected.

[0079] In addition, it should be noted that encoders are mainly divided into photoelectric, electromagnetic and inductive encoders. Among them, photoelectric encoders have the highest accuracy and are indispensable in high-precision control systems. Photoelectric encoders include incremental encoders and absolute encoders in terms of encoding methods. The encoding method of photoelectric encoders is mainly related to the encoder's code disk and photocell. According to the direction of the engraved lines on the code disk, it can be divided into radial engraved code disks and axial engraved code disks. The encoder of the radial engraved code disk can be transmissive or reflective, while the axial engraved code disk is generally reflective. Generally, the incremental encoder only needs one code channel with uniform engraved lines on the code disk, and the photocell opens one or more windows at the corresponding position of the code channel. The absolute encoder needs to output the absolute position code, so the absolute encoder generally requires the code channel to follow the absolute encoding format, and the number of code channels is generally greater than or equal to two. The more common absolute encoders are vernier code, pseudo-random code or Gray code, among which Fig.13 This is a schematic diagram of the code disk structure of an absolute encoder with a vernier code. Fig.15 This is a schematic diagram of the code disk structure of an absolute encoder with a pseudo-random code. Fig.14 and Fig.16 They are Fig.13 and Fig.15 An enlarged schematic diagram of the dotted box part.

[0080] Reference Fig.13 and Fig.15 In some embodiments of the photoelectric encoder, the code disc 100 is provided with a second code track 120 in addition to the first code track 100; accordingly, referring to Fig.17 In addition to the first window 210 and the second window 220 , the photovoltaic cell 200 is further provided with a third window 230 . The projection of the scribed line of the second code channel 120 on the third window 230 is a third projection, and both ends of the third projection exceed both ends of the third window 230 .

[0081] It is understandable that the photoelectric encoder can realize absolute encoding of the photoelectric encoder through the light signal transmitted by the first window 210 and the light signal transmitted by the third window 230, for example, realizing the above-mentioned cursor code encoding or realizing pseudo-random code encoding. Fig.13 and Fig.15 The window design of the photocell of the code disk is as follows Fig.18 As shown, only the first window 210 and the third window 230 are provided, but the second window 220 is not provided.

[0082] In addition, refer to Fig.17 As shown in the photoelectric cell 200, in the photoelectric encoder provided in some embodiments, a plurality of third windows 230 are provided.

[0083] It can be understood that, based on the multiple groups of light signals transmitted through the multiple first windows 210 and the multiple light signals transmitted through the multiple third windows 230 , the photoelectric encoder can better achieve position measurement and speed measurement of the motor.

[0084] Reference Fig. 9 As shown, in some embodiments of the photoelectric encoder, the width of the first window 210 is equal to the width of the second window 220; and / or the spacing between the second window 210 and the adjacent first window 210 is equal to the spacing between the two adjacent first windows 210. It can be understood that Figure 7 , Fig. 9 , Fig.17 In the illustrated embodiment, the second window 220 is located among the plurality of first windows 210 .

[0085] In the photoelectric encoder provided in some embodiments, the second window 220 is located at an edge of one side of the plurality of first windows 210 .

[0086] In this embodiment, compared with Figure 7 or Fig. 9 The second window 220 is arranged among the plurality of first windows 210 , and is located at the edge of one side of the plurality of first windows 210 , so that interference between the optical signal transmitted by the second window 220 and the optical signal transmitted by the plurality of first windows 210 can be avoided.

[0087] In the photoelectric encoder provided in some embodiments, the center of the first window 210 and the center of the second window 220 are located on the same circumference with the rotation axis as the center.

[0088] In addition, the second aspect of the present invention provides a motor, including a housing, a rotating shaft and a photoelectric encoder as described in the first aspect of the present invention, wherein the code disc 100 is mounted on the rotating shaft of the motor, and the photocell 200 is fixed on the housing of the motor.

[0089] According to the motor provided by the embodiment of the present invention, the code disk 100 is driven to rotate by the rotating shaft. Since the length of the first window 210 is less than the length of the engraved line of the first code channel 110 and the two ends of the first projection respectively exceed the two ends of the first window 210, the light signal transmitted by the first window 210 is relatively stable, which is used to determine the position or speed of the motor; and the length of the second window 220 is greater than the length of the first window 210 and the length difference between the second projection and the second window 220 is less than the length difference between the first projection and the first window 210, so that the light signal transmitted by the second window 220 can contain the beating information, and the encoder can detect the performance of the motor according to the light signal transmitted by the first window 210 and the light signal transmitted by the second window 220, such as detecting the degree of eccentricity, the size of shaft runout or the size of radial runout of the motor.

[0090] In addition, refer to Fig.19 As shown, the third aspect of the present invention provides a motor detection method, which is applied to the motor of the second aspect of the present invention, and the method includes but is not limited to step S1910 and step S1920:

[0091] Step S1910: acquiring a first electrical signal and a second electrical signal obtained when the code wheel 100 rotates one circle when the motor rotates, wherein the first electrical signal is converted from the light signal passing through the first window 210, and the second electrical signal is converted from the light signal passing through the second window 220;

[0092] Step S1920: Obtaining the eccentricity data of the motor according to the first electrical signal and the second electrical signal.

[0093] According to the motor detection method provided by the embodiment of the present invention, after the motor is controlled to rotate, the code disk 100 is driven to rotate by the rotating shaft. Since the length of the first window 210 is less than the length of the engraved line of the first code channel 110 and the two ends of the first projection respectively exceed the two ends of the first window 210, the light signal transmitted by the first window 210 is relatively stable, which is used to determine the position or speed of the motor; and the length of the second window 220 is greater than the length of the first window 210 and the difference in length between the second projection and the second window 220 is less than the difference in length between the first projection and the first window 210, so that the light signal transmitted by the second window 220 can contain the beating information, and the encoder can obtain the eccentricity data of the motor according to the light signal transmitted by the first window 210 and the light signal transmitted by the second window 220 to detect the performance of the motor.

[0094] In the motor detection method provided in some embodiments, the engraved lines on the first code channel 110 are radial engraved lines 111, that is, the code disk 100 is Figure 3 The code disc shown, accordingly, the eccentricity data obtained by the above motor detection method includes the radial runout data of the motor, which is used to characterize the radial runout size of the motor rotating shaft.

[0095] In some other embodiments of the motor detection method provided, the engraved lines on the first code track 110 are axial engraved lines 112, that is, the code disk 100 is Figure 5 The code disc shown, accordingly, the eccentricity data obtained by the above-mentioned motor detection method includes the shaft runout data of the motor, which is used to characterize the shaft runout size of the motor shaft.

[0096] In the motor detection method provided in some embodiments, the first electrical signal includes a plurality of first sinusoidal wave signals, and the second electrical signal includes a plurality of second sinusoidal wave signals. Fig. 20 , obtaining the eccentricity data of the motor according to the first electrical signal and the second electrical signal in step S1920 includes steps S2010 to S2030:

[0097] Step S2010: normalizing the peak values ​​of the plurality of first sinusoidal wave signals with a first average value to obtain a first normalized parameter, wherein the first average value is an average value of the peak values ​​of the plurality of first sinusoidal wave signals;

[0098] Step S2020: normalizing the peak values ​​of the plurality of second sinusoidal wave signals with a second average value to obtain a second normalization parameter, where the second average value is an average value of the peak values ​​of the plurality of second sinusoidal wave signals;

[0099] Step S2030: Divide the second normalized parameter by the first normalized parameter to obtain the eccentricity data of the motor.

[0100] Understandably, Fig.19 and Fig. 20 The motor detection method in the embodiment can be executed when the motor encoder is powered on and initialized, when the encoder is calibrated once, or continuously during the operation of the motor. The eccentricity data obtained when the encoder is powered on and initialized and the eccentricity data obtained when the encoder is calibrated once can be stored in the non-volatile register of the encoder as reference data; the eccentricity data obtained by continuously executing the above motor detection method during the operation of the motor can be used as operation measurement data, and the life of the motor can be calculated by monitoring the change of the eccentricity data relative to the parameter data for a long time.

[0101] In the motor detection method provided in some embodiments, it also includes: predicting the life of the motor based on the eccentricity data and a preset eccentricity threshold.

[0102] Reference Fig.21 , Fig.21 This is a schematic diagram of predicting the life of a motor by using the eccentricity data obtained by continuously executing the above motor detection method during the operation of the motor. When the eccentricity data of the motor is greater than the preset eccentricity threshold of the motor by the manufacturer, it is considered that the motor is about to be damaged.

[0103] The motor detection method provided in the above-mentioned embodiment of the present invention can be used to detect the installation quality of the encoder code disk or the photocell. When applied to the photoelectric encoder production line, the installation quality of the encoder can be judged by detecting the signal quality of the second window added in the photocell; it can also be used to detect the radial runout size when the transmission shaft rotates (the code disk lines of the photoelectric encoder are along the radial direction) or detect the shaft runout size when the transmission shaft rotates (the code disk lines of the photoelectric encoder are along the axial direction); it can also calculate the life of the motor or the transmission system according to the user's performance requirements for the motor or the transmission system by long-term monitoring of the eccentricity data of the motor operation.

[0104] In addition, refer to Fig. 22 The fourth aspect of the present invention provides an operation control device 2200, including a memory 2220, a processor 2210, and a computer program stored in the memory 2220 and executable on the processor 2210. The processor 2210 executes the program to implement the motor detection method of the third aspect of the present invention, for example, to execute Fig.19 Steps S1910 to S1920, Fig. 20 Steps S2010 to S2030 in .

[0105] The operation control device 2200 provided in the above embodiment of the present invention controls the motor to rotate, and the code disk 100 is driven to rotate by the rotating shaft. Since the length of the first window 210 is less than the length of the engraved line of the first code channel 110 and the two ends of the first projection respectively exceed the two ends of the first window 210, the light signal transmitted by the first window 210 is relatively stable, which is used to determine the position or speed of the motor; and the length of the second window 220 is greater than the length of the first window 210 and the difference in length between the second projection and the second window 220 is less than the difference in length between the first projection and the first window 210, so that the light signal transmitted by the second window 220 can contain the beating information, and the encoder can obtain the eccentricity data of the motor according to the light signal transmitted by the first window 210 and the light signal transmitted by the second window 220, so as to detect the performance of the motor and control the working state of the motor.

[0106] In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the motor detection method of the third aspect embodiment above, for example, to execute Fig.19 Steps S1910 to S1920, Fig. 20 Steps S2010 to S2030 in .

[0107] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed methods above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium or a non-transitory medium and a communication medium or a temporary medium. As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk DVD or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0108] The embodiments of the present invention are described in detail above with reference to the accompanying drawings. However, the present invention is not limited to the above embodiments. Various changes can be made within the knowledge scope of ordinary technicians in the technical field without departing from the purpose of the present invention.

Claims

1. A photoelectric encoder, characterized in that: include: A code disc, wherein the code disc is provided with a first code track with the rotation axis as the center, and the first code track includes a plurality of evenly arranged engraved lines; a photocell, the photocell being arranged facing the first code channel, the photocell being provided with a plurality of first windows and at least one second window extending in the same direction as the scribed lines, the length of the first window being smaller than the length of the scribed lines of the first code channel, the projection of the scribed lines of the first code channel on the first window being a first projection, and two ends of the first projection respectively exceeding two ends of the first window; The length of the second window is greater than that of the first window, the projection of the scribed line of the first code channel on the second window is a second projection, and the difference in length between the second projection and the second window is less than the difference in length between the first projection and the first window; The length of the second window is equal to the length of the score line of the first code channel, and two ends of the projection of the score line of the first code channel on the second window are respectively flush with two ends of the second window.

2. The photoelectric encoder according to claim 1, characterized in that: The first code track is located on a surface on one side in the axial direction of the code disc, the first code track includes a plurality of evenly arranged radial lines corresponding to the rotation axis, and the photocell is located on one axial side of the code disc.

3. The photoelectric encoder according to claim 1, characterized in that: The first code track is located on the outer side of the code disk, and the first code track includes a plurality of evenly arranged axial lines corresponding to the rotation axis. The photocell is located on the peripheral side of the code disk.

4. The photoelectric encoder according to claim 2, characterized in that: The code disc is further provided with a second code track, and the photocell is further provided with a third window. The projection of the engraved line of the second code track on the third window is a third projection, and two ends of the third projection respectively exceed two ends of the third window.

5. The photoelectric encoder according to claim 1, characterized in that: The width of the first window is equal to the width of the second window; and / or the distance between the second window and an adjacent first window is equal to the distance between two adjacent first windows.

6. The photoelectric encoder according to claim 1, characterized in that: The second window is located at an edge of one side of the plurality of first windows.

7. The photoelectric encoder according to claim 1, characterized in that: The center of the first window and the center of the second window are located on the same circumference with the rotation axis as the center.

8. A motor, characterized in that: It comprises a housing, a rotating shaft and the photoelectric encoder according to any one of claims 1 to 7, wherein the code disc is mounted on the rotating shaft and the photocell is fixed on the housing.

9. A motor detection method, characterized in that: Applied to the motor of claim 8, the method comprising: Acquire a first electrical signal and a second electrical signal obtained when the code disk rotates one circle when the motor rotates, wherein the first electrical signal is converted from the light signal passing through the first window, and the second electrical signal is converted from the light signal passing through the second window; The eccentricity data of the motor is obtained according to the first electrical signal and the second electrical signal.

10. The motor detection method according to claim 9, characterized in that: The engraved lines on the first code track are radial engraved lines, and the eccentricity data include radial runout data of the motor; or the engraved lines on the first code track are axial engraved lines, and the eccentricity data include axial runout data of the motor.

11. The motor detection method according to claim 9, characterized in that: The first electrical signal includes a plurality of first sinusoidal wave signals, the second electrical signal includes a plurality of second sinusoidal wave signals, and obtaining the eccentricity data of the motor according to the first electrical signal and the second electrical signal includes: Normalizing the peak values ​​of the plurality of first sinusoidal wave signals with a first average value to obtain a first normalized parameter, wherein the first average value is an average value of the peak values ​​of the plurality of first sinusoidal wave signals; Normalizing the peak values ​​of the plurality of second sinusoidal wave signals with a second average value to obtain a second normalized parameter, wherein the second average value is an average value of the peak values ​​of the plurality of second sinusoidal wave signals; The second normalized parameter is divided by the first normalized parameter to obtain the eccentricity data of the motor.

12. The motor detection method according to claim 10, characterized in that: Also includes: The life of the motor is predicted according to the eccentricity data and a preset eccentricity threshold.

13. An operation control device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the motor detection method according to any one of claims 9 to 12.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the motor detection method according to any one of claims 9 to 12.