Multiple groups of vernier code disks, photoelectric encoders and light source position calculation method

By using a combination of multiple sets of cursor code disks and identification code channels in the photoelectric encoder, the phase difference and level status information of the cursor group and identification code channels are used to solve the absolute position error of the photoelectric encoder in the light source position solution. Problem, improving the accuracy of position measurement.

CN114353842BActive Publication Date: 2024-11-26SUZHOU INOVANCE CONTROL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111538411.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-15
Publication Date
2024-11-26
Estimated Expiration
2041-12-15

AI Technical Summary

Technical Problem

Existing photoelectric encoders with high physical resolution have problems with absolute position solution errors when calculating the position of the light source in the code disk.

Method used

Using multiple sets of cursor code disks, including cursor rings with the rotation center as the center, set up multiple cursor groups connected to the end and end and corresponding identification code channels. The light source is determined on the code disk through the phase difference between the cursor group and identification code channels. and determine the target position based on the level status information.

Benefits of technology

Improve the position measurement accuracy of the light source on multiple sets of cursor code disks, reduce absolute position errors, and achieve more accurate light source position resolution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114353842B_ABST
    Figure CN114353842B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for calculating the position of multiple sets of vernier code disks, a photoelectric encoder, and a light source. The multiple sets of vernier code disks include: a vernier ring with the rotation center of the multiple sets of vernier code disks as the center of the circle, the vernier ring includes multiple vernier groups connected end to end; identification code channels with the same number as the vernier groups are arranged inside and / or outside the vernier ring, there is a first phase difference between the starting ends of each identification code channel, and there is a second phase difference between the starting end of each identification code channel and the starting end of the corresponding vernier group. In the present invention, by increasing the number of vernier groups and setting identification code channels, the initial position of the light source on the vernier group is determined by the vernier group, and then the target position of the light source on the code disk is determined according to the identification code channels and the initial position, so that the exact position of the light source on the multiple sets of vernier code disks can be more accurately calculated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of encoders, and in particular to a method for calculating the position of a plurality of vernier code disks, a photoelectric encoder and a light source. Background Art

[0002] With the rapid development of industrial control technology and the continuous advancement of manufacturing industry upgrading, a huge market has been provided for the development of the servo industry. As a feedback device in the servo system, the encoder effectively improves its working accuracy. The absolute rotary encoder has been increasingly widely used in angle, length measurement and positioning control in various industrial systems because each position is absolutely unique and anti-interference. Along with the demand for high-precision processing, the effective resolution of the encoder has also put forward significant technical requirements.

[0003] The general photoelectric encoder only has one set of cursor code tracks on the code disk. On a code disk of the same area, the more code tracks there are, the narrower the code tracks are. Too narrow code tracks will cause the analog signal to be highly sensitive to the optical signal. In addition to the error of the number conversion itself and the influence of circuit noise, even if the result after conversion has only a slight error with the true value, it will cause absolute position errors when the code tracks in the cursor are too dense. At present, photoelectric encoders with high physical resolution on the market have the problem of absolute position solution errors when calculating the position of the light source on the code disk.

[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the present invention is to provide a method for calculating the position of a light source using a plurality of vernier code disks, a photoelectric encoder and a method for calculating the position of the light source, aiming to solve the technical problem in the prior art that photoelectric encoders with high physical resolution have absolute position calculation errors when calculating the position of the light source on the code disk.

[0006] To achieve the above-mentioned object, the present invention proposes a multi-group vernier code disc, wherein the multi-group vernier code disc comprises: a vernier ring with the rotation center of the multi-group vernier code disc as the center of the circle, the vernier ring comprising a plurality of vernier groups connected end to end;

[0007] The same number of identification code channels as the cursor group is arranged inside and / or outside the cursor ring, a first phase difference exists between the starting ends of each identification code channel, and a second phase difference exists between the starting end of each identification code channel and the starting end of the corresponding cursor group.

[0008] Optionally, the cursor group includes a main code track, a cursor code track and a segment code track which are arranged with the rotation center of the multiple groups of cursor code discs as the center of the circle.

[0009] Optionally, the plurality of cursor groups include a first cursor group and a second cursor group, and a starting end of the first cursor group is connected to an ending end of the second cursor group;

[0010] The first cursor group is arranged on one side of the zero point scale line of the plurality of cursor code discs, and the second cursor group is arranged on the other side of the zero point scale line of the plurality of cursor code discs.

[0011] Optionally, the identification code channel includes: a first identification code channel and a second identification code channel;

[0012] The starting end of the first identification code channel is rotated clockwise or counterclockwise by the preset angle relative to the starting end of the first cursor group;

[0013] The starting end of the second identification code channel is rotated clockwise or counterclockwise by the preset angle relative to the starting end of the second cursor group.

[0014] Optionally, the starting end of the first identification code channel is rotated clockwise by the preset angle relative to the starting end of the first cursor group;

[0015] The starting end of the second identification code channel is rotated counterclockwise by the preset angle relative to the starting end of the second cursor group.

[0016] Optionally, the first identification code channel is arranged outside the circle of the cursor, and the second identification code channel is arranged inside the circle of the cursor.

[0017] In addition, to achieve the above-mentioned purpose, the present invention further provides a photoelectric encoder, which includes the above-mentioned multiple groups of vernier code disks.

[0018] In addition, to achieve the above purpose, the present invention also provides a method for calculating the position of a light source, the method comprising:

[0019] Get the current main analog quantity of the main channel and the current cursor analog quantity of the cursor channel in the cursor group where the light source is located;

[0020] Determine the initial position information of the light source in the cursor group where the light source is located according to the current main analog quantity and the current cursor analog quantity;

[0021] Obtaining level status information of each identification code channel;

[0022] Determine the cursor group information where the light source is located according to the level state information and the initial position information;

[0023] The target position information of the light source on the code disk is determined according to the initial position information and the cursor group information.

[0024] Optionally, the step of determining the initial position information of the light source in the cursor group where the light source is located according to the current main analog quantity and the current cursor analog quantity comprises:

[0025] Determining a code channel phase difference between the main code channel and the vernier code channel according to the current main analog quantity and the current vernier analog quantity;

[0026] The initial position information of the light source in the cursor group is determined according to the code channel phase difference, the current main analog quantity and the current cursor analog quantity.

[0027] Optionally, before the step of determining the initial position information of the light source in the cursor group according to the code channel phase difference, the current main analog quantity and the current cursor analog quantity, the step further includes:

[0028] Obtaining the current segment analog value of the middle segment code channel of the cursor group where the encoder pointer is located;

[0029] Correspondingly, the step of determining the initial position information of the light source in the cursor group according to the code channel phase difference, the current main analog quantity and the current cursor analog quantity includes:

[0030] The initial position information of the light source in the cursor group is determined according to the code channel phase difference, the current segment analog quantity, the current main analog quantity and the current cursor analog quantity.

[0031] The present invention provides a method for calculating the position of a plurality of vernier code disks, a photoelectric encoder, and a light source. The plurality of vernier code disks include: a vernier ring with the rotation center of the plurality of vernier code disks as the center, the vernier ring including a plurality of vernier groups connected end to end; identification code channels having the same number as the vernier groups are arranged inside and / or outside the vernier ring, a first phase difference exists between the starting ends of the identification code channels, and a second phase difference exists between the starting ends of the identification code channels and the starting ends of the corresponding vernier groups. In the present invention, by increasing the number of vernier groups and setting identification code channels, the initial position of the light source on the vernier group is determined by the vernier group, and then the target position of the light source on the code disk is determined according to the identification code channels and the initial position, so that the exact position of the light source on the plurality of vernier code disks can be more accurately calculated. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.

[0033] Figure 1 It is a structural schematic diagram of a first embodiment of a plurality of vernier code discs of the present invention;

[0034] Figure 2 This is a schematic diagram of the first structure of the second embodiment of the multiple sets of vernier code disks of the present invention;

[0035] Figure 3 This is a schematic diagram of the connection of the cursor groups in the second embodiment of the multiple-group cursor code disk of the present invention;

[0036] Figure 4 This is a second structural schematic diagram of the second embodiment of the multiple sets of vernier code disks of the present invention;

[0037] Figure 5 This is a schematic diagram of the third structure of the second embodiment of the multiple sets of vernier code disks of the present invention;

[0038] Figure 6 It is a flowchart of a first embodiment of a method for calculating a light source position according to the present invention;

[0039] Figure 7 FIG. 4 is a flow chart of a second embodiment of a method for calculating a light source position according to the present invention.

[0040] Description of Figure Numbers:

[0041] Label name Label name 10 Cursor Group 20 Identification code 30 Neutral 110 First cursor group 120 Second cursor group 210 First identification code 220 Second identification code 101 Cursor Channel 102 Main Pier 103 Segment code channel A First identification area B Second identification area C Third identification area D Fourth identification area ψ1 The first phase difference Ψ2 The second phase difference

[0042] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0043] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0044] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0045] Reference Figure 1 , Figure 1 Schematic diagram of the structure of the second electrode layer in the first embodiment of the multiple sets of vernier code disks of the present invention.

[0046] In this embodiment, the plurality of sets of vernier code discs include: a vernier ring with the rotation center of the plurality of sets of vernier code discs as the center of the circle, the vernier ring including a plurality of end-to-end connected vernier groups 10;

[0047] The same number of identification code channels 20 as the cursor group is arranged inside and / or outside the cursor ring, a first phase difference ψ1 exists between the starting ends of each identification code channel, and a second phase difference ψ2 exists between the starting ends of each identification code channel and the starting ends of the corresponding cursor group 10.

[0048] It should be noted that the code disk of the photoelectric encoder usually includes a cursor group 10. When adjusting the accuracy of the encoder, the number of code channels in the cursor group needs to be increased. When the area of ​​the cursor group 10 remains unchanged, increasing the number of code channels tends to reduce the width of the code channels, making the code channels denser and causing the analog signals in the code channels to be very sensitive to the light source signal.

[0049] It should be understood that the vernier ring is a ring structure composed of multiple vernier groups 10 connected end to end. The number of the vernier groups 10 can be two, three, four, etc. In the present embodiment, the vernier group 10 can include a vernier code channel and a main code channel. The vernier is a movable micrometer scale. The vernier group 10 on the code disk uses the phase difference between the vernier code channel and the main code channel to accurately measure the position of the light source irradiated on the code disk. The specific use method of the vernier group is the same as that of the vernier caliper. The specific principle can be referred to the vernier caliper and will not be repeated here.

[0050] In this embodiment, the second phase difference ψ2 between the starting end of each identification code channel and the starting end of the corresponding cursor group 10 can be the same or different, and can be determined according to actual conditions, and the embodiments of this specification do not limit this. The second phase difference ψ2 between the starting end of each identification code channel and the starting end of the corresponding cursor group 10 can be used to distinguish the corresponding angular position information of the cursor group 10 and the identification code channel 20 on the code disk. The above-mentioned second phase difference ψ2 can be a value greater than 0, for example: 45 degrees, 60 degrees, 90 degrees, 180 degrees, etc., and can be determined according to actual conditions, and the embodiments of this specification do not limit this.

[0051] In this embodiment, the identification code channel 20 can be used to divide the code disk into multiple areas, and then determine the position of the cursor group 10 on the code disk. When the trace left by the light source through the code disk on the horse disk is on the identification code channel 20, the identification code channel 20 including the trace and the identification code channel not including the trace will output different signals. For example, when the trace is in the first identification code channel, the first identification code channel can output a high-level signal, and the other identification code channels output low-level signals. The identification code channels 20 can be set on the inside or outside of the cursor ring. Of course, the cursor code channels can also be set separately, one part is set on the inside of the cursor ring, and the other part is set on the outside of the cursor ring. The identification code channel does not need to be converted into analog to digital, and the state corresponding to the current identification code channel can be identified by connecting the signal to the comparator circuit. The state of the identification code channel can be a bright state and a dark state, or a high-level state and a low-level state, etc.

[0052] In this embodiment, the angles occupied by each identification code channel on the code disk may be the same or different, which may be determined specifically according to actual conditions, and this specification embodiment does not limit this. There is a first phase difference ψ1 between the starting ends of each adjacent identification code channel, and the first phase difference ψ1 between the starting ends of each adjacent identification code channel may be the same or different, and the first phase difference ψ1 may be a value greater than 0, for example: 45 degrees, 60 degrees, 90 degrees, 180 degrees, etc., which may be determined specifically according to actual conditions, and this specification embodiment does not limit this.

[0053] In a specific implementation, when the light source is irradiated to the PCB board through the code disk, a certain light source trace will be left on the code disk. The light source trace through the multi-cursor group code disk must be on a certain cursor group 10, and the cursor group 10 can be used to measure the position of the light source trace, so as to determine the initial position information of the light source trace on the cursor group 10. The level status information of each identification code channel 20 is obtained, and the identification code channel 20 where the trace corresponding to the light source is located is determined according to the level status information. Different identification code channels 20 correspond to different areas on the code disk. According to the area position information corresponding to the area combined with the initial position information of the light source trace on the cursor group, the precise position of the light source trace on the code disk can be determined.

[0054] In one embodiment, for example, three cursor groups 10 and three identification code channels 20 are arranged on the code disk, wherein the first cursor group occupies a 120-degree sector area of ​​0-120 degrees on the code disk with the zero line as the starting point, the second cursor group occupies a 120-degree sector area of ​​120-240 degrees, and the third cursor group occupies a 120-degree sector area of ​​240-360 degrees. The starting ends of the three identification code channels are spaced 60 degrees apart from the starting ends of the cursor groups at the corresponding positions, at which time the first identification code channel occupies a 120-degree sector area of ​​60-180 degrees, the second identification code channel occupies a 120-degree sector area of ​​180-300 degrees, and the third identification code channel occupies a 120-degree sector area of ​​300-360 degrees and a 120-degree sector area of ​​0-60 degrees. When determining the position of the trace of the light source, the position of the light source on the cursor group where the trace of the light source is located can be determined, for example, the trace of the light source is located at the initial position of 80 degrees of the cursor group; then the state of the identification code channel is obtained. If the third identification code channel outputs a high-level signal at this time, and the other two identification code channels both output low-level signals, the trace of the light source is in the area corresponding to the third identification code channel. The area corresponding to the third identification code channel is a 120-degree fan-shaped area of ​​300-360 degrees and 0-60 degrees, wherein the 300-360 degrees corresponding to the third identification code channel belongs to the 60-120 degrees of the third cursor group, and the 0-60 degrees corresponding to the third identification code channel belongs to the 0-60 degrees of the first cursor group. The trace of the light source is located at the 80-degree position of the cursor group, so it can be determined that the trace of the light source is located in the third cursor group, and is at the 80-degree position of the third cursor group. Combined with the specific position on the code disk, it can be obtained that the target position corresponding to the trace of the light source is the 320-degree position of the zero line clockwise rotation.

[0055] The initial position is the position of the trace of the light source passing through the code disk on the corresponding cursor group, and the target position is the specific position of the trace of the light source on the code disk.

[0056] In the present embodiment, a plurality of vernier code disks are provided, and the plurality of vernier code disks include: a vernier ring with the rotation center of the plurality of vernier code disks as the center, the vernier ring including a plurality of vernier groups connected end to end; identification code channels of the same number as the vernier groups are arranged inside and / or outside the vernier ring, a first phase difference exists between the starting ends of the identification code channels, and a second phase difference exists between the starting ends of the identification code channels and the starting ends of the corresponding vernier groups. In the present embodiment, by increasing the number of vernier groups and setting identification code channels, the initial position of the light source on the vernier group is determined by the vernier group, and then the target position of the light source on the code disk is determined according to the identification code channels and the initial position, so that the exact position of the light source on the plurality of vernier code disks can be more accurately calculated.

[0057] Based on the first embodiment of the multiple sets of vernier code disks mentioned above, a second embodiment of the multiple sets of vernier code disks of the present invention is proposed.

[0058] In this embodiment, the cursor group includes a main code track 101, a cursor code track 102 and a segment code track 103 which are arranged with the rotation center of the plurality of sets of cursor code disks as the center of the circle.

[0059] It should be noted that the main code channel 101 and the vernier code channel 102 are two code channels used to measure the specific position of the trace of the light source on the vernier group. There is a certain first unit phase difference in the unit scale between the main code channel 101 and the vernier code channel. The segment code channel 103 is a code channel that has a certain second unit phase difference with the vernier code channel 102. Here, by setting the main code channel 101, the vernier code channel 102 and the segment code channel 103, it is equivalent to using multiple vernier calipers to measure the object at the same time, and the initial position of the trace of the light source can be obtained more accurately. In a specific implementation, the initial position of the trace of the light source on the current vernier group can be measured by the main code channel 101, the vernier code channel 102 and the segment code channel 103 using the principle of vernier caliper distance measurement.

[0060] Reference Figure 2 In this embodiment, the plurality of cursor groups 10 include a first cursor group 110 and a second cursor group 120, and the starting end of the first cursor group 110 is connected to the ending end of the second cursor group 120;

[0061] The first vernier group 110 is disposed on one side of the zero point scale line 30 of the plurality of vernier code discs, and the second vernier group 120 is disposed on the other side of the zero point scale line 30 of the plurality of vernier code discs.

[0062] The identification code channel 20 includes: a first identification code channel 201 and a second identification code channel 220;

[0063] The starting end of the first identification code channel 210 is rotated clockwise or counterclockwise by the preset angle relative to the starting end of the first cursor group 110 ; the starting end of the second identification code channel 220 is rotated clockwise or counterclockwise by the preset angle relative to the starting end of the second cursor group 120 .

[0064] It should be noted that in Figure 2 In the following, two cursor groups and two cursor channels are set up for explanation. Figure 2Preferably, the first identification code channel 210 can be set to rotate clockwise at a preset angle with the starting end of the corresponding first cursor group 110, and the second identification code channel 220 can also be set to rotate clockwise at a preset angle with the starting end of the corresponding second cursor group 120; of course, the first identification code channel 210 can also be set to rotate counterclockwise at a preset angle with the starting end of the corresponding first cursor group 110, and the second identification code channel 220 can also be set to rotate counterclockwise at a preset angle with the starting end of the corresponding second cursor group 120. In some embodiments, the first identification code channel 210 and the second identification code channel 220 can also be set in other possible ways, which can be determined according to actual conditions, and the embodiments of this specification are not limited to this.

[0065] In one embodiment, the first cursor group 110 can occupy a 180-degree sector area of ​​0-180 degrees on the code disk with the zero mark 30 as the starting point, and the second cursor group 120 can occupy a 180-degree sector area of ​​180-360 degrees. The starting ends of the two identification code channels lag 45 degrees relative to the starting ends of the cursor groups at the corresponding positions, and of course, other angles can also be used, which are not specifically limited here. At this time, the first identification code channel occupies a 180-degree sector area of ​​45-225 degrees, and the second identification code channel occupies a 180-degree sector area of ​​225-360 degrees and 0-45 degrees. When determining the position of the trace of the light source, the position of the light source on the cursor group where the trace of the light source is located can be determined, for example, the trace of the light source is located at the initial position of 120 degrees of the cursor group; then the state of the identification code channel is obtained, if at this time the first identification code channel 210 outputs a high level signal and the second identification code channel 220 outputs a low level signal, then the trace of the light source is in the area 45-225 degrees corresponding to the first identification code channel 210. Among them, 45-180 degrees belong to the area corresponding to the first cursor group 110, and 180-225 degrees belong to the area 0-45 degrees corresponding to the second cursor group 120. At this time, the initial position is 120 degrees, then the trace of the light source is on the first cursor group 110, and is at 120 degrees of the first cursor group 110, and then it is determined that the target position of the trace of the light source on the multiple groups of cursor code disks is 120 degrees.

[0066] Reference Figure 3 In this embodiment, the first cursor group 110 is arranged on the right side of the zero point mark 30, and the second cursor group 120 is arranged on the left side of the zero point mark 30, and the starting end of the first cursor group 110 and the ending end of the second cursor group 120 are connected at the zero point mark 30.

[0067] Reference Figure 4In this embodiment, the starting end of the first identification code channel 210 is set by rotating the preset angle clockwise relative to the starting end of the first cursor group 110; the starting end of the second identification code channel 220 is set by rotating the preset angle counterclockwise relative to the starting end of the second cursor group 120. In this embodiment, the first identification code channel is set outside the ring of the cursor ring, and the second identification code channel is set inside the ring of the cursor ring. Of course, it can be understood that in some embodiments, the first identification code channel can also be set inside the ring of the cursor ring, and the second identification code channel can be set outside the ring of the cursor ring. The specific can be determined according to actual conditions, and the embodiments of this specification are not limited to this.

[0068] In the specific implementation, please refer to Figure 5 The first identification code channel 210 and the second identification code channel 220 divide the plurality of sets of cursor code disks into four areas, namely, the first identification area A, the second identification area B, the third identification area C, and the fourth identification area D. It should be noted that the first identification code channel 210 and the second identification code channel 220 do not include the first identification area A, but the first identification code channel 210 and the second identification code channel 220 both include the third identification area D. When both the first identification code channel 210 and the second identification code channel 220 output low levels, the trace of the light source on the code disk is in the first identification area A; when the first identification code channel 210 outputs high levels and the second identification code channel 220 outputs low levels, the trace of the light source on the code disk is in the second identification area B; when both the first identification code channel 210 and the second identification code channel 220 output high levels, the trace of the light source on the code disk is in the third identification area C; when the first identification code channel 210 outputs low levels and the second identification code channel 220 outputs high levels, the trace of the light source on the code disk is in the fourth identification area D. When the trace of the light source on the code disk is in the second identification area B, it can be directly indicated that the trace of the light source is in the first identification code channel 210; similarly, when the trace of the light source on the code disk is in the fourth identification area D, it can be directly indicated that the trace of the light source is in the second identification code channel 220. When the trace of the light source is in the first identification area A or the fourth identification area D, it is necessary to determine it based on the initial position of the trace of the light source on the corresponding cursor group. For example, when the preset area is 45 degrees, in the first identification area A, if the initial position is between 0-45 degrees, the trace of the light source is in the first identification area; if the initial position is between 135-180 degrees, the trace of the light source is in the second identification area. In the third identification area C, there is also weak magnetism, which will not be described here.

[0069] The present embodiment provides a plurality of vernier code disks, which include: a vernier ring with the rotation center of the plurality of vernier code disks as the center, the vernier ring including a plurality of vernier groups connected end to end; identification code channels of the same number as the vernier groups are arranged inside and / or outside the vernier ring, a first phase difference exists between the starting ends of each identification code channel, and a second phase difference exists between the starting ends of each identification code channel and the starting ends of the corresponding vernier groups. In the present embodiment, by increasing the number of vernier groups and setting identification code channels, the initial position of the light source on the vernier group is determined by the vernier group, and then the target position of the light source on the code disk is determined according to the area corresponding to the identification code channel and the initial position, so that the exact position of the light source on the plurality of vernier code disks can be more accurately calculated.

[0070] In addition, to achieve the above purpose, the present invention also provides a photoelectric encoder, which includes multiple sets of vernier code disks as described above. The specific structure of the multiple sets of vernier code disks refers to the above embodiment. Since the photoelectric encoder adopts all the technical solutions of all the above embodiments, it at least has all the beneficial effects brought by the technical solutions of the above embodiments, which will not be repeated here one by one.

[0071] In addition, to achieve the above purpose, the present invention also provides a method for calculating the position of a light source. Figure 6 , Figure 6 This is a flow chart of the first embodiment of the method for calculating the light source position of the present invention, based on Figure 6 The present invention also provides a first embodiment of a method for calculating a light source position.

[0072] In this embodiment, the method for manufacturing multiple sets of vernier code disks includes:

[0073] Step S10: obtaining the current main analog quantity of the main code channel and the current cursor analog quantity of the cursor code channel in the cursor group where the light source is located.

[0074] It should be noted that the current main analog quantity refers to the specific quantized value simulated on the main code channel in the current state. The current vernier analog quantity refers to the specific quantized value simulated on the vernier code channel in the current state. The current main analog quantity is equivalent to the value of the main scale in the vernier caliper, and the current vernier analog quantity is equivalent to the value of the vernier scale.

[0075] In a specific implementation, the current main analog quantity and the current cursor analog quantity can be directly obtained through the traces of the light source at the corresponding scale positions on multiple sets of cursor code disks. Of course, they can also be obtained through other methods, and the specific method is not limited.

[0076] Step S20: determining the initial position information of the light source in the cursor group where the light source is located according to the current main analog quantity and the current cursor analog quantity.

[0077] It should be noted that the initial position information refers to the position information of the trace of the light source in the vernier group. In this embodiment, when the current main analog quantity and the current vernier analog quantity are obtained, the initial position information of the trace of the light source in the vernier group can be directly calculated by the calculation method of the vernier group. The calculation method of the vernier group is the same as the calculation method of the vernier caliper, which will not be repeated here.

[0078] Step S30: Obtaining level status information of each identification code channel.

[0079] It should be noted that the level status information is information used to reflect the current state of each identification code channel. The level status information can be a high level state or a low level state corresponding to the identification code channel, or it can be a lighting state or an extinguishing state of a light-emitting device set by the identification code.

[0080] In a specific implementation, the level status information can be collected by a multimeter, and of course, the level status information can also be determined by collecting the brightness status of each identification code channel.

[0081] Step S40: determining the cursor group information where the light source is located according to the level state information and the initial position information.

[0082] It should be noted that, in this embodiment, the voltage values ​​corresponding to each identification code channel collected can be respectively input into one input terminal of the comparator, a reference voltage is set at the other input terminal of the comparator, and the level state information of each identification code channel is determined according to the output result of the comparator. For example, if the voltage value of the voltage value information corresponding to the first identification code channel 210 is greater than the reference voltage, the comparator outputs a high-level signal at this time, indicating that the trace of the light source is in the first identification code channel 210; if the voltage value of the voltage value information corresponding to the second identification code channel 220 is less than the reference voltage, the comparator outputs a low-level signal at this time, indicating that the trace of the light source is not in the second identification code channel 220. Of course, when an identification code channel includes the positions of two cursor groups, it can be determined in which cursor group the trace of the light source is located according to the initial position information.

[0083] Step S50: determining the target position information of the light source on the code disk according to the initial position information and the cursor group information.

[0084] It should be noted that the target position information refers to the position information of the traces of the light source passing through the multiple sets of cursor code disks on the code disk. In a specific implementation, when the initial position information of the traces of the light source on the cursor group is determined and the specific cursor group is determined, the specific position of the traces of the light source on the multiple sets of cursor code disks can be determined according to the area on the code disk corresponding to each cursor group.

[0085] In the present embodiment, a method for calculating the position of a light source is provided. The method for calculating the position of a light source is performed by obtaining the current main analog quantity of the main code channel in the cursor group where the light source is located and the current cursor analog quantity of the cursor code channel; determining the initial position information of the light source in the cursor group where the light source is located according to the current main analog quantity and the current cursor analog quantity; obtaining the level status information of each identification code channel; determining the cursor group information where the light source is located according to the level status information and the initial position information; and determining the target position information of the light source on the code disk according to the initial position information and the cursor group information. In the present embodiment, by increasing the number of cursor groups and setting identification code channels, the initial position of the light source on the cursor group where it is located can be determined based on multiple cursor groups. Furthermore, the target position of the light source on the code disk can be determined according to the identification code channels and the initial position, so that the accurate position of the light source on multiple groups of cursor code disks can be more accurately calculated.

[0086] Based on the first embodiment of the method for calculating the position of a light source, a second embodiment of the method for calculating the position of a light source of the present invention is proposed.

[0087] In this embodiment, step S20 includes:

[0088] Step S201: determining a code channel phase difference between the main code channel and the vernier code channel according to the current main analog quantity and the current vernier analog quantity.

[0089] It should be noted that the code channel phase difference refers to the difference between the unit phase of the main code channel and the unit phase of the vernier code channel. When determining the number of units of the main code channel and the vernier code channel, the unit phase of the main code channel and the unit phase of the vernier code channel can be directly obtained by calculation, and the code channel phase difference is obtained by calculating the unit phase of the main code channel and the unit phase of the vernier code channel.

[0090] Step S202: determining the initial position information of the light source in the cursor group according to the code channel phase difference, the current main analog quantity and the current cursor analog quantity.

[0091] It should be noted that when determining the code channel phase difference, the current main analog quantity and the current vernier analog quantity, it is equivalent to directly obtaining the main scale measurement of the vernier caliper, the vernier caliper measurement value and the unit accuracy of the vernier caliper. The initial position information of the trace of the light source in the vernier group can be directly obtained through calculation.

[0092] Wherein, before step S202, the method further includes:

[0093] Step S2021: Obtain the current segment analog value of the middle segment code channel of the cursor group where the encoder pointer is located.

[0094] It should be noted that the current segment analog quantity refers to the quantized value simulated by the current segment code channel. By acquiring the current segment analog quantity in combination with the current main analog quantity and the current cursor analog quantity, the initial position information of the light source trace in the cursor group can be more accurately obtained.

[0095] Accordingly, step S202 includes:

[0096] Step S202': determining the initial position information of the light source in the cursor group according to the code channel phase difference, the current segment analog quantity, the current main analog quantity and the current cursor analog quantity.

[0097] In the present embodiment, a method for calculating the position of a light source is provided. The method for calculating the position of a light source is performed by obtaining the current main analog quantity of the main code channel in the cursor group where the light source is located and the current cursor analog quantity of the cursor code channel; determining the initial position information of the light source in the cursor group where the light source is located according to the current main analog quantity and the current cursor analog quantity; obtaining the level status information of each identification code channel; determining the cursor group information where the light source is located according to the level status information and the initial position information; and determining the target position information of the light source on the code disk according to the initial position information and the cursor group information. In the present embodiment, by increasing the number of cursor groups and setting identification code channels, by introducing segment code channels in the cursor group to more accurately determine the initial position of the light source on the cursor group where it is located, and then determining the target position of the light source on the code disk according to the identification code channels and the initial position, the accurate position of the light source on multiple groups of cursor code disks can be more accurately calculated.

[0098] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

[0099] Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0100] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0101] In addition, the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

Claims

1. A multi-group vernier code disc, characterized in that: The multiple groups of vernier code discs include: a vernier ring with the rotation center of the multiple groups of vernier code discs as the center of the circle, and the vernier ring includes a plurality of vernier groups connected end to end; The same number of identification code channels as the cursor group is arranged inside and / or outside the cursor ring, a first phase difference exists between the starting ends of each identification code channel, and a second phase difference exists between the starting end of each identification code channel and the starting end of the corresponding cursor group.

2. The multiple sets of vernier code discs according to claim 1, characterized in that: The cursor group includes a main code track, a cursor code track and a segment code track which are arranged with the rotation center of the plurality of sets of cursor code discs as the center of the circle.

3. The multiple sets of vernier code discs according to claim 1, characterized in that: The multiple cursor groups include a first cursor group and a second cursor group, and the starting end of the first cursor group is connected to the ending end of the second cursor group; The first cursor group is arranged on one side of the zero point scale line of the plurality of cursor code discs, and the second cursor group is arranged on the other side of the zero point scale line of the plurality of cursor code discs.

4. The multiple sets of vernier code discs according to claim 3, characterized in that: The identification code channel comprises: a first identification code channel and a second identification code channel; The starting end of the first identification code channel is rotated clockwise or counterclockwise by a preset angle relative to the starting end of the first cursor group; The starting end of the second identification code channel is rotated clockwise or counterclockwise by the preset angle relative to the starting end of the second cursor group.

5. The multiple sets of vernier code discs according to claim 4, characterized in that: The starting end of the first identification code channel is rotated clockwise by the preset angle relative to the starting end of the first cursor group; The starting end of the second identification code channel is rotated counterclockwise by the preset angle relative to the starting end of the second cursor group.

6. The multiple sets of vernier code discs according to claim 4, characterized in that: The first identification code channel is arranged outside the circle of the cursor, and the second identification code channel is arranged inside the circle of the cursor.

7. A photoelectric encoder, characterized in that: The photoelectric encoder comprises a plurality of sets of vernier code discs as described in any one of claims 1-6.

8. A method for calculating the light source position based on the photoelectric encoder according to claim 7, characterized in that: The light source position calculation method comprises: Get the current main analog quantity of the main channel and the current cursor analog quantity of the cursor channel in the cursor group where the light source is located; Determine the initial position information of the light source in the cursor group where the light source is located according to the current main analog quantity and the current cursor analog quantity; Obtaining level status information of each identification code channel; Determine the cursor group information where the light source is located according to the level state information and the initial position information; The target position information of the light source on the code disk is determined according to the initial position information and the cursor group information.

9. The method for calculating the light source position according to claim 8, wherein: The step of determining the initial position information of the light source in the cursor group where the light source is located according to the current main analog quantity and the current cursor analog quantity comprises: Determining a code channel phase difference between the main code channel and the vernier code channel according to the current main analog quantity and the current vernier analog quantity; The initial position information of the light source in the cursor group is determined according to the code channel phase difference, the current main analog quantity and the current cursor analog quantity.

10. The method for calculating the light source position according to claim 9, wherein: Before the step of determining the initial position information of the light source in the cursor group according to the code channel phase difference, the current main analog quantity and the current cursor analog quantity, the step further includes: Obtaining the current segment analog value of the middle segment code channel of the cursor group where the encoder pointer is located; Correspondingly, the step of determining the initial position information of the light source in the cursor group according to the code channel phase difference, the current main analog quantity and the current cursor analog quantity includes: The initial position information of the light source in the cursor group is determined according to the code channel phase difference, the current segment analog quantity, the current main analog quantity and the current cursor analog quantity.