Multi-turn counting correction method and device and multi-turn encoder
Through the redundant settings of the Wiegand counting module and the photoelectric position detection module, multi-turn counting correction is achieved, which solves the problem that the counting action of the Wiegand multi-turn encoder cannot be carried out in full, and improves the accuracy of the number of turns calculation and the encoder reliability.
Patent Information
- Application Number
- CN202411265166.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2024-12-03
AI Technical Summary
During the rotation process of the Wiegand multi-turn encoder, due to uneven magnetic charging of magnetic steel, different magnetic field size, unstable current production of coils, or abnormal read and write of memory chips, the counting action cannot be carried out intact, resulting in the loss of the number of turns, and then It may cause a collision or other accident.
Using the multi-turn counting correction method, the redundant settings of the Wiegand counting module and the photoelectric position detection module are obtained to obtain the number of turns correction values of the previous rotation period, and determine whether the number of turns correction values increase or when the photoelectric position detection module rotates through the zero point. Reduce and use the second round value to cover the first round value to ensure the accuracy of the number of rounds calculation.
It effectively prevents missed recording of the number of turns, improves the reliability and counting accuracy of the encoder, and avoids potential accidents caused by the number of turns.
Smart Images

Figure CN119063775A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present specification relate to the technical field of encoders, and in particular to a multi-turn counting correction method and device, and a multi-turn encoder. Background Art
[0002] As a feedback device in the servo system, the encoder effectively improves its working accuracy and has been increasingly widely used in angle, length measurement and positioning control in various industrial systems. With the enrichment of scenarios, the position within a single feedback circle can no longer meet the application requirements, and the encoder is also required to record multi-turn data without losing power. Traditional battery multi-turn encoders require regular maintenance, while Wiegand battery-free multi-turn encoders can be maintenance-free for life after installation.
[0003] Due to its special self-generating working mode, when the encoder rotates, the magnetic field cuts the coil to generate two weak electrical signals in each mechanical cycle. It is necessary to complete the counting logic in an extremely short power supply time and with extremely small power supply current, and then interact with the storage chip through the on-chip communication interface to complete a multi-turn counting action.
[0004] However, due to factors such as uneven magnetization of the magnet, differences in magnetic field size, unstable current produced by the coil, or abnormal reading and writing of the memory chip, the entire solution may not be able to complete a certain counting action while the motor is running. Loss of turns means loss of position, which may cause a collision or other accidents.
[0005] To address the above problems, no effective solution has been proposed yet. Summary of the invention
[0006] The embodiments of this specification provide a multi-turn counting correction method and device, and a multi-turn encoder to solve the problem in the prior art that the sub-counting action of Wiegand multi-turn counting cannot be completed and the number of turns is lost.
[0007] An embodiment of the present specification provides a multi-turn counting correction method, which is applied to a multi-turn encoder, wherein the multi-turn encoder includes a Wiegand counting module and a photoelectric position detection module, and the multi-turn counting correction method includes: obtaining a turn correction value of the previous rotation cycle; when the previous rotation cycle passes through the Wiegand counting point, the Wiegand counting module counts based on the turn correction value to obtain a first turn value; when the photoelectric position detection module rotates through a zero point, according to the change of the current absolute position detected by the photoelectric position detection module, it is determined whether the turn correction value is increased or decreased by "1" to obtain a second turn value in the current rotation cycle; when the photoelectric position detection module rotates to the correction point, the second turn value is used to cover the first turn value, and the second turn value is used as the turn correction value of the current rotation cycle.
[0008] The embodiment of the present specification also provides a multi-turn encoder, which includes: a Wiegand counting module, a photoelectric position detection module, a logic operation module, a storage chip, and a main control module, wherein the Wiegand counting module is connected to the logic operation chip, the logic operation chip is connected to the storage chip, the photoelectric position detection module is connected to the main control module, and the main control module is connected to the logic operation module; the method for performing multi-turn counting correction using the multi-turn encoder includes: the logic operation module obtains the correction value of the number of turns of the previous rotation cycle from the storage chip; when the previous rotation cycle passes through the Wiegand counting point, the logic operation module generates a correction value according to the Wiegand counting module. The input pulse detection signal is counted based on the circle number correction value to obtain a first circle value; the logic operation module stores the first circle value in the storage chip; when the photoelectric position detection module rotates through the zero point, the main control chip determines whether the circle number correction value is increased or decreased by "1" according to the change of the current absolute position detected by the photoelectric position detection module, and obtains the second circle value in the current rotation cycle; when the photoelectric position detection module rotates to the correction point, the main control chip replaces the first circle value in the storage chip with the second circle value through the logic operation module, and uses the second circle value as the circle number correction value of the current rotation cycle.
[0009] The embodiments of the present specification also provide a computer-readable storage medium on which computer instructions are stored. When the instructions are executed, the steps of any method embodiment in the embodiments of the present specification are implemented.
[0010] The embodiment of this specification provides a multi-turn counting correction method, which performs multi-turn counting simultaneously by redundantly setting a Wiegand counting module and a photoelectric position detection module. When passing through the Wiegand counting point in the previous rotation cycle, the Wiegand counting module counts based on the correction value of the number of turns in the previous rotation cycle to obtain a first turn value; when the photoelectric position detection module rotates through the zero point, it is determined whether the correction value of the number of turns is increased or decreased by "1" according to the change of the current absolute position detected by the photoelectric position detection module, and the second turn value in the current rotation cycle is obtained. Since the Wiegand counting module uses the principle of self-generation to count multiple turns, there is a situation where the number of turns is missed, and the photoelectric position detection module can be powered by an external or internal power supply, so the calculation of the turn value is accurate and will not be affected by external factors. Therefore, in order to improve the accuracy of the turn value, when the photoelectric position detection module rotates to the correction point, the second turn value can be used to cover the first turn value, and the second turn value can be used as the correction value of the number of turns in the current rotation cycle, so that the situation of missing the number of turns can be effectively prevented, thereby effectively improving the reliability of the encoder. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the embodiments of the present application 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 application. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.
[0012] Figure 1 It is a schematic diagram of the steps of the multi-turn counting correction method provided in the embodiment of this specification;
[0013] Figure 2 is a schematic diagram of zero point alignment provided according to an embodiment of this specification;
[0014] Figure 3 is a schematic diagram of the position of the correction area provided in an embodiment of this specification;
[0015] Figure 4 is a schematic diagram of the structure of a multi-turn encoder provided according to an embodiment of this specification;
[0016] Figure 5 It is a schematic diagram of the structure of an electronic device provided according to an embodiment of this specification.
[0017] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0018] The principles and spirit of the embodiments of this specification will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the embodiments of this specification, and are not intended to limit the scope of the embodiments of this specification in any way. On the contrary, these embodiments are provided to make the disclosure of the embodiments of this specification more thorough and complete, and to fully convey the scope of the disclosure to those skilled in the art.
[0019] Those skilled in the art know that the implementation of the embodiments of this specification can be implemented as a system, device, method or computer program product. Therefore, the embodiments disclosed in this specification can be specifically implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.
[0020] Although the processes described below include multiple operations that occur in a particular order, it should be clear that these processes may include more or fewer operations, which may be performed sequentially or in parallel (eg, using parallel processors or a multi-threaded environment).
[0021] In addition, the descriptions of "first", "second", etc. in this application are only for descriptive purposes and should not be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.
[0022] See also Figure 1 This embodiment can provide a multi-turn counting correction method. The multi-turn counting correction method can be used for a multi-turn encoder, and the multi-turn encoder can include a Wiegand counting module and a photoelectric position detection module. Through the redundant setting of the Wiegand counting module and the photoelectric position detection module, the accuracy of the multi-turn counting is guaranteed when the photoelectric position detection module is powered. The multi-turn counting correction method can include the following steps.
[0023] S101: Obtaining the correction value of the number of revolutions of the previous rotation cycle;
[0024] In this embodiment, during the rotation of the multi-turn encoder, the current multi-turn value can be detected in real time. In order to improve the accuracy of multi-turn counting, the Wiegand counting module can first obtain the lap correction value corrected by the photoelectric position detection module before counting in one rotation cycle, so that multi-turn counting can be performed based on the lap value corrected by the photoelectric position detection module.
[0025] In this embodiment, the turn correction value may be a positive integer greater than or equal to 0, for example: 1, 12, 99, 106, etc.
[0026] In this embodiment, the photoelectric position detection module can be powered by an internal battery, or by an external power supply through a cable or a socket. The specific selection can be made according to the actual situation, and this specification embodiment does not limit this. Since the power supply of the photoelectric position detection module is stable, the multi-turn value recorded by the photoelectric position detection module is accurate and will not be interfered by external factors and cause the number of turns to be missed.
[0027] In this embodiment, the photoelectric position detection module can be an absolute value rotary encoder, such as a reflective photoelectric rotary encoder, a transmissive photoelectric rotary encoder, an inductive rotary encoder, etc. Preferably, an encoder different from the principle of the Wiegand counting module can be used, such as a photoelectric rotary encoder. Of course, the type of the photoelectric position detection module is not limited to the above examples. Under the inspiration of the technical essence of the embodiments of this specification, technicians in the relevant field may make other changes, but as long as the functions and effects achieved are the same or similar to those of the embodiments of this specification, they should be covered within the protection scope of the embodiments of this specification.
[0028] In this embodiment, the multi-turn value recorded by the photoelectric position detection module in each rotation cycle can be stored in a preset position so as to be obtained when needed next time. The multi-turn value determined by the photoelectric position detection module in each rotation cycle can be stored as a turn correction value, and the Wiegand counting module calculates the number of turns in the current rotation cycle according to the turn correction value.
[0029] S103: When the previous rotation cycle passes through the Wiegand counting point, the Wiegand counting module counts based on the circle number correction value to obtain a first circle value;
[0030] In this embodiment, two Wiegand counting points are generally provided in each rotation cycle, and a counting action is performed each time the Wiegand counting point is passed. The Wiegand counting module can count based on the number of turns correction value, and increase or decrease the number of turns correction value by 1 to obtain a first turn value. In which, 1 is added when it is judged to be forward rotation, and 1 is subtracted when it is judged to be reverse rotation, and the first turn value is a positive integer greater than 0.
[0031] In this embodiment, the Wiegand counting module adopts a battery-free multi-turn solution. The Wiegand counting module can be composed of multiple electronic devices, including but not limited to a logic operation chip, a memory chip, a magnet, one or more Wiegand coils, etc. The magnet can be at the rotation center of the multi-turn encoder, and the logic operation chip is placed directly above the magnet. When the encoder rotates, the magnetic field cuts the Wiegand coil to generate two weak electrical signals in each mechanical cycle, which power the logic operation chip and the memory chip. After the logic operation chip completes the counting logic in a short time, it exchanges data with the memory chip through the on-chip communication interface and completes a multi-turn counting action.
[0032] In this embodiment, after obtaining the first turn value, the first turn value can be stored in the above-mentioned preset position, and the first turn value and the turn correction value can be stored in the same position. The above-mentioned preset position can be a storage chip in the multi-turn encoder, such as a RAM chip, a ROM chip, an MRAM chip, etc., which can be determined according to actual conditions, and this specification embodiment does not limit this.
[0033] S105: when the photoelectric position detection module rotates through the zero point, determining whether the revolution correction value is increased or decreased by "1" according to the change of the current absolute position detected by the photoelectric position detection module, and obtaining the second revolution value in the current rotation cycle;
[0034] In this embodiment, while the Wiegand counting module performs multi-turn counting, the photoelectric position detection module also performs multi-turn counting. When the photoelectric position detection module rotates through the zero point, it means that one turn has been made and the multi-turn value needs to be increased or decreased.
[0035] In this embodiment, the photoelectric position detection module can obtain the detected absolute position in real time, so as to determine the change of the current absolute position according to the absolute positions of several adjacent sampling points. The change of the current absolute position can be used to characterize whether the photoelectric position detection module rotates forward or reverse when it rotates through the zero point, so as to determine whether the number of turns correction value is increased or decreased by "1" according to the change of the current absolute position. If it is forward rotation, the number of turns correction value is increased by 1, and if it is reverse rotation, the number of turns correction value is decreased by 1, and finally the second turn value is obtained.
[0036] In this embodiment, it should be noted that the photoelectric position detection module counts independently based on the number of turns recorded by itself in the previous rotation cycle. Since the Wiegand multi-turn counting method may miss records, in order to ensure the accuracy of the multi-turn value, the photoelectric position detection module does not count based on the first turn value in the current rotation cycle, but counts based on the multi-turn correction value after correction in the previous rotation cycle, which effectively improves the accuracy of the multi-turn value.
[0037] In this embodiment, the zero point may be the zero point of the photoelectric position detection module, and generally may be the zero point of the code disk, and the position of the zero point is fixed.
[0038] S107: When the photoelectric position detection module rotates to the calibration point, the first circle value is overwritten with the second circle value, and the second circle value is used as the circle correction value of the current rotation cycle.
[0039] In this embodiment, after obtaining the second circle value, the first circle value can be replaced by the second circle value, so as to correct the circle value recorded by the Wiegand counting module in the current rotation cycle, so that the circle value correction action is performed in each rotation cycle, which effectively avoids the Wiegand counting module from being unable to complete a certain counting action, and then the loss of circles causes a collision or other accidents.
[0040] In this embodiment, a correction action of multiple turns can be performed when the photoelectric position detection module rotates to the correction point. In order to avoid confusion in the turn counting of the Wiegand counting module and the photoelectric position detection module, the correction point can be set before the Wiegand counting point so that the Wiegand counting module can count according to the corrected turn value.
[0041] In this embodiment, since there are generally two Wiegand counting points in one rotation cycle, the correction point can be set before the first Wiegand counting point or after the second Wiegand counting point. The specific point can be determined according to actual conditions and is not limited in this embodiment of the present specification.
[0042] In this embodiment, if the circle correction value and the first circle value are stored at the same position, after the photoelectric position detection module rotates through the zero point, the operation of storing the second circle value will inevitably replace the first circle value. Therefore, the preferred correction point can be set at a position close to the zero point of the photoelectric position detection module. Of course, the position of the correction point is not limited to the above example. For example, the second circle value is first stored in a virtual position, and then the first circle value is overwritten when passing the correction point. In this way, the position of the correction point is not limited by the zero point position. Inspired by the technical essence of the embodiments of this specification, technical personnel in the relevant field may also make other changes, but as long as the functions and effects achieved are the same or similar to the embodiments of this specification, they should be covered within the protection scope of the embodiments of this specification.
[0043] In this embodiment, in the current rotation cycle, the Wiegand counting module may count based on the second circle value, and the above steps S101-S107 are executed cyclically.
[0044] From the above description, it can be seen that the embodiments of this specification achieve the following technical effects: by redundantly setting the Wiegand counting module and the photoelectric position detection module to simultaneously perform multi-turn counting, when passing through the Wiegand counting point in the previous rotation cycle, the Wiegand counting module counts based on the number of turns correction value of the previous rotation cycle to obtain the first turn value; when the photoelectric position detection module rotates through the zero point, according to the change of the current absolute position detected by the photoelectric position detection module, it is determined whether the number of turns correction value is increased or decreased by "1", and the second turn value in the current rotation cycle is obtained. Since the Wiegand counting module uses the principle of self-generation to count multiple turns, there is a situation where the number of turns is missed, and the photoelectric position detection module can be powered by an external or internal power supply, so the calculation of the turn value is accurate and will not be affected by external factors. Therefore, in order to improve the accuracy of the circle value, when the photoelectric position detection module rotates to the correction point, the second circle value can be used to cover the first circle value, and the second circle value can be used as the circle correction value of the current rotation cycle, so that the Wiegand counting module can be used to accumulate the number of circles when the power is not turned on, and the photoelectric position detection module can be used to calibrate multiple circle values after power is turned on, which can effectively prevent the occurrence of circle omissions and thus effectively improve the reliability of the encoder.
[0045] In one embodiment, in a rotation cycle, the Wiegand counting point may include: a first Wiegand counting point and a second Wiegand counting point; wherein, when the previous rotation cycle passes through the Wiegand counting point, the Wiegand counting module counts based on the number of turns correction value, and the step of obtaining a first turn value may include: when the previous rotation cycle passes through the first Wiegand counting point, the Wiegand counting module increases or decreases the number of turns correction value by "0.5" to obtain an intermediate turn value; when passing through the second Wiegand counting point, the Wiegand counting module increases or decreases the intermediate turn value by "0.5" to obtain a first turn value.
[0046] In this embodiment, the Wiegand counting module adopts a battery-free multi-turn solution. The Wiegand counting module can be composed of multiple electronic devices, including but not limited to a logic operation chip, a memory chip, a magnet, one or more Wiegand coils, etc. The magnet can be at the rotation center of the multi-turn encoder, and the logic operation chip is placed directly above the magnet. When the encoder rotates, the magnetic field cuts the Wiegand coil to generate two weak electrical signals in each mechanical cycle, which power the logic operation chip and the memory chip. After the logic operation chip completes the counting logic in a short time, it exchanges data with the memory chip through the on-chip communication interface and completes a multi-turn counting action.
[0047] In this embodiment, the Wiegand counting points are divided into forward Wiegand counting points and reverse Wiegand counting points. Each forward rotation cycle is provided with a first forward Wiegand counting point and a second forward Wiegand counting point, and each reverse rotation cycle is provided with a first reverse Wiegand counting point and a second reverse Wiegand counting point. During the forward rotation of the photoelectric position detection module, when passing through the first forward Wiegand counting point, the Wiegand counting module increases the number of turns correction value by "0.5" to obtain an intermediate turn value; when passing through the second forward Wiegand counting point, the Wiegand counting module increases the intermediate turn value by "0.5" to obtain a first turn value. During the reverse rotation of the photoelectric position detection module, when passing through the first reverse Wiegand counting point, the Wiegand counting module decreases the number of turns correction value by "0.5" to obtain an intermediate turn value; when passing through the second reverse Wiegand counting point, the Wiegand counting module decreases the intermediate turn value by "0.5" to obtain a first turn value.
[0048] In one embodiment, before obtaining the number of turns correction value of the previous rotation cycle, it can also include: after the multi-turn encoder is powered on, obtaining zero point correction information from the storage chip; wherein the zero point correction information is used to characterize the position difference between the zero point of the Wiegand counting module and the zero point of the photoelectric position detection module; obtaining the initial turn value of the Wiegand counting module when powered on; obtaining the initial single-turn absolute position recorded when the photoelectric position detection module is powered on; according to the zero point correction information and the initial single-turn absolute position, performing zero point alignment based on the initial turn value to obtain a turn reference value; the photoelectric position detection module performs multi-turn counting based on the turn reference value.
[0049] In this embodiment, since the Wiegand counting method itself is affected by hysteresis, the zero point is not fixed but varies within a range. Therefore, the zero point of the Wiegand counting module can be the position on the code disk corresponding to the magnetic zero point of the Wiegand counting module, or the position on the code disk corresponding to the point where the number of turns of the Wiegand counting module actually jumps, or the midpoint between the point where the number of turns actually jumps in the forward rotation and the point where the number of turns actually jumps in the reverse rotation. The specific point can be determined according to the actual situation, and the point that is convenient for measurement can be preferably defined as the zero point, which is not limited in the embodiments of this specification.
[0050] In this embodiment, due to the different zero points of the Wiegand counting module and the photoelectric position detection module, the circle values corresponding to the Wiegand counting module and the photoelectric position detection module are not necessarily consistent. Therefore, in the embodiment of this specification, when the multi-turn encoder is powered off, the Wiegand counting module independently accumulates the number of rotations, and when powered on again, the zero point is aligned according to the initial single-turn absolute position at the time of power-on and the position difference between the zero point of the Wiegand counting module and the zero point of the photoelectric position detection module, and the zero point of the code disk of the photoelectric position detection module is brought closer to the magnetic zero point of the Wiegand counting module, thereby correcting the circle value of the spare Wiegand counting module to be consistent with the circle value of the photoelectric position detection module, avoiding the problem of inaccurate circle value of the Wiegand counting module after power failure, and improving the measurement accuracy of the encoder.
[0051] In this embodiment, taking the photoelectric position detection module as an example, based on the basic principle that the code disk rotates when the encoder is working, it can be known that when the zero point position of the code track on the code disk is read once during forward rotation, the circle value increases by 1. The zero point of the Wiegand counting module does not coincide with the zero point position of the photoelectric position detection module, and the time passing through the zero point position is inconsistent, which leads to inconsistent circle value counting.
[0052] Therefore, the position difference between the zero point of the Wiegand counting module and the zero point of the photoelectric position detection module can be measured in advance and stored in the storage chip. The zero point correction information can be an angle value, such as 5°, 62°, 120.5°, etc. It can be understood that the storage location of the zero point correction information can also be other possible places, such as the main control chip, and the embodiments of this specification are not limited to this.
[0053] In this embodiment, since the difference in the circle value counts by the Wiegand counting module and the photoelectric position detection module is related to the current single-circle absolute position and the starting zero point, the current single-circle absolute position can be obtained, that is, the initial single-circle absolute position recorded by the photoelectric position detection module when powered on.
[0054] After determining the initial single-turn absolute position at power-on and the zero-point correction information, zero-point alignment can be performed to determine the difference in the turn value counts between the Wiegand counting module and the photoelectric position detection module, thereby determining whether the initial turn value needs to be corrected and ultimately obtaining a turn reference value. The photoelectric position detection module is corrected based on the turn reference value after zero-point alignment.
[0055] In one embodiment, according to the zero point correction information and the absolute position information, zero point alignment is performed based on the initial turn value to obtain a turn reference value, which may include: adding the zero point correction information and the initial single-turn absolute position to obtain a single-turn absolute position correction value; in the forward direction, when the single-turn absolute position correction value passes through the zero point of the Wiegand counting module one more time than the initial single-turn absolute position, the initial turn value is increased by 1, otherwise the initial single-turn absolute position is kept unchanged to obtain the turn reference value; in the reverse direction, when the single-turn absolute position correction value passes through the zero point of the Wiegand counting module one more time than the initial single-turn absolute position, the initial turn value is reduced by 1, otherwise the initial single-turn absolute position is kept unchanged to obtain the turn reference value.
[0056] In this embodiment, the zero point of the photoelectric position detection module can be corrected to the zero point of the Wiegand counting module by adding the zero point correction information and the initial single-turn absolute position, and the single-turn absolute position correction value is the single-turn absolute position based on the zero point of the Wiegand counting module. Therefore, by comparing the positional relationship between the single-turn absolute position correction value and the zero point of the Wiegand counting module, it can be determined whether the initial turn value needs to be increased or decreased.
[0057] In this embodiment, based on the basic principle of the rotation of the code disk when the encoder is working, it can be known that when the photoelectric position detection module rotates forward, the circle value increases or decreases by 1 each time it passes the zero point on the code disk. After the zero point of the code disk is corrected to the zero point of the Wiegand counting module, the current single-turn absolute position will also change accordingly. If the corrected single-turn absolute position passes the zero point of the Wiegand counting module, it means that the circle values of the two are inconsistent and need to be corrected; if the corrected single-turn absolute position does not pass the zero point of the Wiegand counting module, it means that the circle values of the two are consistent.
[0058] In this embodiment, when rotating forward (clockwise), if the single-turn absolute position correction value does not pass the zero point of the zero-point code disk of the Wiegand counting module, it means that the number of times the zero-point rotation of the Wiegand counting module and the photoelectric position detection module passes through the sensing component is the same. That is to say, at this time, the circle values obtained by the two encoding components of the Wiegand counting module and the photoelectric position detection module are consistent, and the initial circle value can be directly used as the circle reference value. When the initial single-turn absolute position does not pass the zero point of the Wiegand counting module, and the single-turn absolute position correction value passes the zero point of the Wiegand counting module more than once after adding the zero-point correction information, it means that the number of times the zero-point rotation of the Wiegand counting module and the photoelectric position detection module passes through the sensing component is not the same, and the circle values obtained are also inconsistent. At this time, it is necessary to add 1 to the initial circle value to obtain the circle reference value.
[0059] Similarly, when reversing (counterclockwise rotation), if the single-turn absolute position correction value does not pass the zero point of the zero-point code disk of the Wiegand counting module, it means that the number of times the zero-point rotation of the Wiegand counting module and the photoelectric position detection module passes through the sensing component is the same. That is to say, at this time, the circle values obtained by the two encoding components of the Wiegand counting module and the photoelectric position detection module are consistent, and the initial circle value can be directly used as the circle reference value. When the initial single-turn absolute position does not pass the zero point of the Wiegand counting module, and the single-turn absolute position correction value passes the zero point of the Wiegand counting module one more time after adding the zero-point correction information, it means that the number of times the zero-point rotation of the Wiegand counting module and the photoelectric position detection module passes through the sensing component is not the same, and the circle values obtained are also inconsistent. At this time, it is necessary to subtract 1 from the initial circle value to obtain the circle reference value.
[0060] like Figure 2 As shown in , taking forward rotation as an example, N is the zero point of the photoelectric position detection module, M is the zero point of the Wiegand counting module, P is the initial single-turn absolute position, α is the position difference between the zero point of the Wiegand counting module and the zero point of the photoelectric position detection module, and P' is the single-turn absolute position correction value. In a specific embodiment, the initial multi-turn value at point P is 99 turns, Figure 2 If the corrected P' does not exceed N, the photoelectric position detection module can count the next multiple circles based on 99 circles without correction; if the corrected P' passes N one more time than P (such as point b in the figure), it is necessary to add 1 to 99 circles, and the photoelectric position detection module will count the next multiple circles based on 100 circles.
[0061] In this embodiment, the problem of different accumulated turns caused by the zero point difference of the two encoding components, the Wiegand counting module and the photoelectric position detection module, is solved. When the initial turn value is obtained by the Wiegand counting module after power-on, the initial turn value is also corrected, thereby ensuring the consistency of the turn counting basis of the two encoding components, effectively improving the accuracy of multi-turn counting.
[0062] In one embodiment, before obtaining the correction value of the number of turns of the previous rotation cycle, it can also include: obtaining the magnetic zero point of the Wiegand counting module; obtaining the code disk zero point of the photoelectric position detection module; calculating the difference between the code disk zero point and the magnetic zero point to obtain zero point correction information; and storing the zero point correction information in the storage chip.
[0063] In this embodiment, the magnetic zero point of the Wiegand counting module and the code disk zero point of the photoelectric position detection module can be measured and determined in advance before the encoder leaves the factory, and the position difference between the code disk zero point and the magnetic zero point is stored in the memory chip of the encoder so that it can be obtained and used after power-on. Of course, it can be understood that the above zero point correction information can also be measured and determined after the encoder is powered on after leaving the factory, and the specific information can be determined according to the actual situation, and this specification embodiment does not limit this.
[0064] In this embodiment, if Figure 2 As shown in , O is the origin of the code disk, and the angle between the magnetic zero point M and the code disk zero point N is α, which can be the value of the angle corresponding to the magnetic zero point M on the code disk minus the angle corresponding to the code disk zero point N on the code disk, or the angle corresponding to the code disk zero point N on the code disk minus the angle corresponding to the magnetic zero point M on the code disk. If α is the value of the angle corresponding to the magnetic zero point M on the code disk minus the angle corresponding to the code disk zero point N on the code disk, then in the above steps, it is necessary to add α to the initial single-turn absolute position to obtain the single-turn absolute position correction value; if α is the angle corresponding to the code disk zero point N on the code disk minus the angle corresponding to the magnetic zero point M on the code disk, then in the above steps, it is necessary to subtract α from the initial single-turn absolute position to obtain the single-turn absolute position correction value. The specific value can be determined according to the actual situation, and the embodiments of this specification do not limit this.
[0065] In one embodiment, the correction points may include: a forward correction point and a reverse correction point, wherein the forward correction point is located between the zero point interval of the photoelectric position detection module in the forward direction and the forward Wiegand counting interval of the Wiegand counting module; the forward correction point is located between the zero point of the photoelectric position detection module in the reverse direction and the reverse Wiegand counting interval of the Wiegand counting module.
[0066] In this embodiment, if the circle correction value and the first circle value are stored at the same position, after the photoelectric position detection module rotates through the zero point, the operation of storing the second circle value will inevitably replace the first circle value. Therefore, the preferred correction point can be set at a position close to the zero point of the photoelectric position detection module. Further, in order to avoid confusion in the circle counting of the Wiegand counting module and the photoelectric position detection module, the correction point can be set after the zero point and before the Wiegand counting point, so that the Wiegand counting module can count according to the corrected circle value.
[0067] In this embodiment, since two Wiegand counting points are generally provided in one rotation cycle, the correction point may be set before the first Wiegand counting point or after the second Wiegand counting point to avoid interfering with the multi-turn counting of the Wiegand counting module.
[0068] In one embodiment, Figure 3As shown in , the calibration point can be located at any position in the calibration area. Since the encoder needs a certain amount of time to perform sampling, calculation, reading and writing operations, the calibration point can avoid the zero point and the Wiegand counting point by a certain angle. The zero point interval refers to the interval within a certain angle range around the zero point of the photoelectric position detection module, and the Wiegand counting interval refers to the interval within a certain angle range around the Wiegand counting point.
[0069] In this embodiment, the angle range of the zero point interval can be set to 8°, 9°, 10°, 12 degrees, etc., and the angle range of the Wiegand counting interval can be set to 7°, 9°, 11°, 12 degrees, etc. Of course, it can also be set to other possible values, or it can be determined based on the rotation angle experienced by the actual sampling, calculation, reading and writing operations. The embodiments of this specification do not limit this.
[0070] In this embodiment, in order to ensure consistency during forward and reverse rotation, the forward correction point and the reverse correction point can be designed symmetrically relative to the zero point, the zero point interval can be designed symmetrically relative to the zero point, and the Wiegand counting interval can also be designed symmetrically relative to the Wiegand counting point. Of course, it can be understood that an asymmetrical design can also be used, and it will not affect the implementation of the solution. The specific design can be determined based on actual conditions, and the embodiments of this specification do not limit this.
[0071] In this embodiment, the calibration points may be stored in a multi-turn encoder after being determined, that is, the calibration points of the same encoder are fixed.
[0072] In one embodiment, the zero point interval of the photoelectric position detection module may be: the interval corresponding to the rotation angle experienced in the time interval between two adjacent sampling points at the zero point of the photoelectric position detection module; the forward Wiegand counting interval of the Wiegand counting module may be: the interval corresponding to the rotation angle experienced by the logic operation chip operating on the storage chip at the maximum speed of the multi-turn encoder at the forward Wiegand counting point of the Wiegand counting module; the forward Wiegand counting interval of the Wiegand counting module may be: the interval corresponding to the rotation angle experienced by the logic operation chip operating on the storage chip at the maximum speed of the multi-turn encoder at the reverse Wiegand counting point of the Wiegand counting module.
[0073] In this embodiment, since the logic control chip will access the storage chip twice in one circle during the rotation of the multi-turn encoder, a special method is used to select the correction point position to avoid conflicts between the main control chip and the logic control chip when writing data. Figure 3The "correction area" shown in the figure is the area where the correction point is located. This area must meet two conditions. At the maximum speed of the encoder, the first is to avoid the encoder rotation angle experienced when the logic operation chip operates the storage chip. The second is to avoid the encoder rotation angle experienced when the time interval between two adjacent sampling points at the encoder zero crossing point.
[0074] In one embodiment, the photoelectric position detection module is powered by an external power supply. In some embodiments, a cable can be used to power the module with 220V AC power. Of course, other possible power supply methods can also be used, which is not limited in the embodiments of this specification.
[0075] Based on the same inventive concept, a multi-turn encoder is also provided in the embodiments of this specification, as described in the following embodiments. Since the principle of solving the problem by the multi-turn encoder is similar to that of the multi-turn counting correction method, the implementation of the multi-turn counting correction method for the multi-turn encoder can refer to the embodiment of the multi-turn counting correction method above, and the repeated parts will not be repeated.
[0076] In this embodiment, if Figure 4 As shown, the multi-turn encoder may include: a Wiegand counting module, a photoelectric position detection module, a logic operation module, a storage chip, and a main control module, wherein the Wiegand counting module is connected to the logic operation chip, the logic operation chip is connected to the storage chip, the photoelectric position detection module is connected to the main control module, and the main control module is connected to the logic operation module.
[0077] In this embodiment, the Wiegand counting module is used to perform multi-turn counting through the Wiegand battery-free solution. The Wiegand counting module can be composed of multiple electronic devices, including but not limited to a logic operation chip, a storage chip, a magnet, one or more Wiegand coils, etc. The magnet can be at the rotation center of the multi-turn encoder, and the logic operation chip is placed directly above the magnet. When the encoder rotates, the magnetic field cuts the Wiegand coil to generate two weak electrical signals in each mechanical cycle, which power the logic operation chip and the storage chip. After the logic operation chip completes the counting logic in a short time, it exchanges data with the storage chip through the on-chip communication interface and completes a multi-turn counting action.
[0078] In this embodiment, the photoelectric position detection module may include: a light source, a code disk, and a photocell. The zero point of the photoelectric position detection module may be the zero point of the code disk. The photoelectric position detection module may be powered by an internal battery or an external power supply through a cable or a socket. The specific power supply may be selected according to actual conditions, and this specification embodiment does not limit this.
[0079] In this embodiment, the logic operation module can be implemented by a logic operation chip, which is an integrated circuit for performing logic operations and control functions. The logic operation chip can be used to perform multi-turn counting according to the pulse signal transmitted by the Wiegand counting module, and since there is no communication interface between the main control module and the storage chip, the logic operation chip can also serve as a bridge for communication between the main control module and the storage chip.
[0080] In this embodiment, the main control module can be an MCU or an FPGA, and the main control module is used to determine the single-turn absolute position and multi-turn value according to the data transmitted by the photoelectric position detection module. The multi-turn information provided by the logic operation module is calibrated and rewritten by the main control module of the multi-turn encoder itself, and the accuracy of the multi-turn counting can be guaranteed when the photoelectric position detection module is powered.
[0081] In this embodiment, the storage chip is used to store the multi-turn values and single-turn absolute positions recorded by the Wiegand counting module and the photoelectric position detection module. In some embodiments, the storage chip can also be a cloud storage area, which can be determined according to actual conditions and is not limited in this specification embodiment.
[0082] In this embodiment, the step of performing multi-turn counting correction using the above-mentioned multi-turn encoder may include: the logic operation module obtains the number of turns correction value of the previous rotation cycle from the storage chip; when the previous rotation cycle passes through the Wiegand counting point, the logic operation module counts based on the number of turns correction value according to the pulse detection signal transmitted by the Wiegand counting module to obtain a first turn value; the logic operation module stores the first turn value in the storage chip; when the photoelectric position detection module rotates through the zero point, the main control chip determines whether the number of turns correction value is increased or decreased by "1" according to the change of the current absolute position detected by the photoelectric position detection module, and obtains the second turn value in the current rotation cycle; when the photoelectric position detection module rotates to the correction point, the main control chip replaces the first turn value in the storage chip with the second turn value through the logic operation module, and uses the second turn value as the number of turns correction value of the current rotation cycle.
[0083] In one embodiment, before obtaining the number of turns correction value of the previous rotation cycle, it may also include: after the multi-turn encoder is powered on, the main control chip obtains zero point correction information, the initial turn value recorded by the Wiegand counting module when powered on, and the initial single-turn absolute position recorded by the photoelectric position detection module when powered on from the storage chip through the logic operation module; wherein the zero point correction information is used to characterize the position difference between the zero point of the Wiegand counting module and the zero point of the photoelectric position detection module; the main control chip performs zero point alignment based on the initial turn value according to the zero point correction information and the initial single-turn absolute position to obtain a turn reference value; the main control chip stores the turn reference value in the storage chip through the logic operation module; and the photoelectric position detection module performs multi-turn counting based on the turn reference value.
[0084] In this embodiment, the initial single-turn absolute position at power-on can also be stored in the main control chip. It does not need to be obtained from the storage chip through the logic operation chip, but can be directly obtained from the storage area of the main control chip. The specific position can be determined according to actual conditions, and this specification does not limit this.
[0085] The above method is described below in conjunction with a specific embodiment. However, it should be noted that the specific embodiment is only for better illustrating the embodiments of this specification and does not constitute an improper limitation on the embodiments of this specification.
[0086] The present invention provides a multi-turn counting correction method, which may include:
[0087] Step 1: The main control chip obtains the current initial multi-turn value from the storage chip through on-chip communication to the logic operation chip and records it.
[0088] Among them, since the Wiegand counting module is self-generated, the Wiegand counting module will perform a multi-turn counting operation in each rotation cycle, and the above initial multi-turn value is recorded in the storage chip when power is turned on.
[0089] Step 2: Combined with the initial single-turn absolute position calculated by the main control chip when it is powered on, the above initial multi-turn value is zero-aligned, and the aligned turn reference value is used as the basic value for the independent counting of the main control chip.
[0090] Step 3: During the rotation of the multi-turn encoder, the main control chip detects the current single-turn absolute position in real time.
[0091] Step 4: When the single-turn absolute position of the photoelectric position detection module passes through the zero point, the main control chip increases or decreases the reference value of the number of turns counted independently according to the increase or decrease of the absolute position.
[0092] Step 5. When the absolute position of the photoelectric position detection module passes the calibration point, the latest number of turns counted independently by the main control chip is directly accessed through on-chip communication to the storage chip, and written into the storage chip to overwrite the multi-turn value written by the logic operation chip, thereby achieving the purpose of compensation.
[0093] In this embodiment, the multi-turn value corrected by the main control chip can be used as the counting basis for the next rotation cycle, and the above steps 3 to 5 are repeatedly performed in each rotation cycle.
[0094] In this embodiment, the above steps 1-2 can be executed only once when the power is turned on, and there is no need to repeat them later. Of course, steps 1 and 2 can also be executed once at intervals, or after a specific abnormal situation (for example, voltage instability, etc.) is detected. Of course, not limited to the above examples, technicians in the relevant field may make other changes under the inspiration of the technical essence of the embodiments of this specification, but as long as the functions and effects achieved are the same or similar to the embodiments of this specification, they should be covered within the protection scope of the embodiments of this specification.
[0095] In this embodiment, in order to avoid the problem of occasional loss of Wiegand multi-turn counts, since the photoelectric position detection module is relatively more reliable when powered by a power supply, the multi-turn information provided by the logic operation chip can be calibrated and re-written through the main control chip (MCU or FPGA) of the encoder itself. When the photoelectric position detection module is powered, the accuracy of the multi-turn count can be guaranteed, thereby improving the reliability of the encoder.
[0096] The embodiment of this specification also provides an electronic device, which can be specifically referred to in Figure 5 The electronic device structure diagram of the multi-turn counting correction method provided by the embodiment of this specification is shown, and the electronic device may specifically include an input device 51, a processor 52, and a memory 53. Among them, the input device 51 can be specifically used to input the number of turns correction value of the previous rotation cycle. The processor 52 can be specifically used to count based on the number of turns correction value when the previous rotation cycle passes through the Wiegand counting point, and obtain the first turn value; when the photoelectric position detection module rotates through the zero point, according to the change of the current absolute position detected by the photoelectric position detection module, determine whether the number of turns correction value is increased or decreased by "1", and obtain the second turn value of the current rotation cycle; when the photoelectric position detection module rotates to the correction point, the second turn value is used to cover the first turn value, and the second turn value is used as the turn correction value of the current rotation cycle. The memory 53 can be specifically used to store data such as the first turn value, the second turn value, and the turn correction value.
[0097] In this embodiment, the input device may specifically be one of the main devices for information exchange between the user and the computer system. The input device may include a keyboard, a mouse, a camera, a scanner, a light pen, a handwriting input board, a voice input device, etc.; the input device is used to input the original data and the program for processing these numbers into the computer. The input device can also obtain and receive data transmitted from other modules, units, and devices. The processor can be implemented in any appropriate manner. For example, the processor can take the form of a computer-readable medium, a logic gate, a switch, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a programmable logic controller, and an embedded microcontroller, etc., such as a microprocessor or a processor and a computer-readable program code (such as software or firmware) that can be executed by the (micro) processor. The memory may specifically be a memory device used to store information in modern information technology. The memory may include multiple levels. In a digital system, anything that can store binary data can be a memory; in an integrated circuit, a circuit with a storage function without a physical form is also called a memory, such as a RAM, a FIFO, etc.; in a system, a storage device with a physical form is also called a memory, such as a memory stick, a TF card, etc.
[0098] In this embodiment, the functions and effects specifically realized by the electronic device can be explained in comparison with other embodiments and will not be described in detail here.
[0099] In the implementation manner of the embodiment of this specification, a computer storage medium based on a multi-turn counting correction method is also provided, and the computer storage medium stores computer program instructions, which can achieve the following when executed: obtaining a turn correction value of the previous rotation cycle; when the previous rotation cycle passes through a Wiegand counting point, the Wiegand counting module counts based on the turn correction value to obtain a first turn value; when the photoelectric position detection module rotates through a zero point, according to the change of the current absolute position detected by the photoelectric position detection module, determining whether the turn correction value is increased or decreased by "1" to obtain a second turn value in the current rotation cycle; when the photoelectric position detection module rotates to the correction point, the second turn value is used to cover the first turn value, and the second turn value is used as the turn correction value of the current rotation cycle.
[0100] In this embodiment, the storage medium includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), a cache, a hard disk (HDD), or a memory card. The memory may be used to store computer program instructions. The network communication unit may be an interface for network connection communication set in accordance with the standard specified by the communication protocol.
[0101] In this embodiment, the functions and effects specifically implemented by the program instructions stored in the computer storage medium can be explained in comparison with other embodiments and will not be repeated here.
[0102] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of this specification can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of this specification are not limited to any specific combination of hardware and software.
[0103] Although the embodiments of this specification provide method operation steps as described in the above embodiments or flowcharts, more or fewer operation steps may be included in the method based on routine or no creative labor. In the steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided by the embodiments of this specification. When the device or terminal product of the method described in practice is executed, it can be executed in sequence or in parallel according to the method shown in the embodiments or drawings (for example, a parallel processor or a multi-threaded processing environment).
[0104] It should be understood that the above description is for illustration and not for limitation. By reading the above description, many embodiments and many applications beyond the examples provided will be apparent to those skilled in the art. Therefore, the scope of the embodiments of this specification should not be determined with reference to the above description, but should be determined with reference to the full scope of the aforementioned claims and the equivalents possessed by these claims.
[0105] The above is only a preferred embodiment of the embodiment of this specification, and is not intended to limit the embodiment of this specification. For those skilled in the art, the embodiment of this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiment of this specification shall be included in the protection scope of the embodiment of this specification.
Claims
1. A multi-turn counting correction method, It is characterized in that Applied to a multi-turn encoder, the multi-turn encoder includes a Wiegand counting module and a photoelectric position detection module, and the multi-turn counting correction method includes: Get the correction value of the number of revolutions of the previous rotation cycle; When the last rotation cycle passes through the Wiegand counting point, the Wiegand counting module counts based on the circle number correction value to obtain a first circle value; When the photoelectric position detection module rotates through the zero point, determining whether the number of turns correction value is increased or decreased by "1" according to the change of the current absolute position detected by the photoelectric position detection module, and obtaining the second number of turns value in the current rotation cycle; When the photoelectric position detection module rotates to the calibration point, the first circle value is covered by the second circle value, and the second circle value is used as the circle correction value of the current rotation cycle.
2. The method according to claim 1, It is characterized in that In a rotation cycle, the Wiegand counting points include: a first Wiegand counting point and a second Wiegand counting point; wherein, when the previous rotation cycle passes through the Wiegand counting point, the Wiegand counting module counts based on the circle correction value, and the step of obtaining the first circle value includes: When the last rotation cycle passes through the first Wiegand counting point, the Wiegand counting module increases or decreases the circle correction value by "0.5" to obtain an intermediate circle value; When passing the second Wiegand counting point, the Wiegand counting module increases or decreases the intermediate circle value by "0.5" to obtain the first circle value.
3. The method according to claim 1, It is characterized in that Before obtaining the correction value of the number of revolutions of the previous rotation cycle, it also includes: After the multi-turn encoder is powered on, zero point correction information is obtained from the storage chip; wherein the zero point correction information is used to characterize the position difference between the zero point of the Wiegand counting module and the zero point of the photoelectric position detection module; Obtaining the initial circle value of the Wiegand counting module when it is powered on; Obtaining the initial single-turn absolute position recorded when the photoelectric position detection module is powered on; According to the zero point correction information and the initial single-turn absolute position, zero point alignment is performed based on the initial turn value to obtain a turn reference value; The photoelectric position detection module performs multi-turn counting based on the turn number reference value.
4. The method according to claim 3, It is characterized in that According to the zero point correction information and the absolute position information, zero point alignment is performed based on the initial turn value to obtain a turn reference value, including: Adding the zero point correction information and the initial single-turn absolute position to obtain a single-turn absolute position correction value; In the forward direction, when the single-turn absolute position correction value passes through the zero point of the Wiegand counting module one more time than the initial single-turn absolute position, the initial turn value is increased by 1, otherwise the initial single-turn absolute position is kept unchanged to obtain a turn reference value; In the reverse direction, when the single-turn absolute position correction value passes through the zero point of the Wiegand counting module one more time than the initial single-turn absolute position, the initial turn value is reduced by 1; otherwise, the initial single-turn absolute position is kept unchanged to obtain a turn reference value.
5. The method according to claim 3, It is characterized in that Before obtaining the correction value of the number of revolutions of the previous rotation cycle, it also includes: Obtaining the magnetic zero point of the Wiegand counting module; Obtaining the code disk zero point of the photoelectric position detection module; Calculating the difference between the code disk zero point and the magnetic zero point to obtain zero point correction information; The zero point correction information is stored in the storage chip.
6. The method according to claim 1, It is characterized in that The correction points include: a forward correction point and a reverse correction point, wherein: The forward rotation correction point is located between the zero point interval of the photoelectric position detection module and the forward rotation Wiegand counting interval of the Wiegand counting module in the forward rotation direction; The forward rotation correction point is located between the zero point of the photoelectric position detection module in the reverse direction and the reverse Wiegand counting interval of the Wiegand counting module.
7. The method according to claim 6, It is characterized in that The zero point interval of the photoelectric position detection module is: the interval corresponding to the rotation angle experienced by the time interval between two adjacent sampling points at the zero point of the photoelectric position detection module; The forward Wiegand counting interval of the Wiegand counting module is: at the forward Wiegand counting point of the Wiegand counting module, the interval corresponding to the rotation angle experienced by the logic operation chip operating the storage chip at the maximum speed of the multi-turn encoder; The forward Wiegand counting interval of the Wiegand counting module is: at the reverse Wiegand counting point of the Wiegand counting module, the interval corresponding to the rotation angle experienced by the logic operation chip operating the storage chip at the maximum speed of the multi-turn encoder.
8. The method according to claim 1, It is characterized in that The photoelectric position detection module is powered by an external power supply.
9. A multi-turn encoder, It is characterized in that The multi-turn encoder includes: a Wiegand counting module, a photoelectric position detection module, a logic operation module, a storage chip, and a main control module, wherein the Wiegand counting module is connected to the logic operation chip, the logic operation chip is connected to the storage chip, the photoelectric position detection module is connected to the main control module, and the main control module is connected to the logic operation module; The method for performing multi-turn counting correction using the multi-turn encoder includes: The logic operation module obtains the correction value of the number of revolutions of the previous rotation cycle from the storage chip; When the previous rotation cycle passes through the Wiegand counting point, the logic operation module counts based on the pulse detection signal transmitted by the Wiegand counting module and the circle number correction value to obtain a first circle value; The logic operation module stores the first round value in the storage chip; When the photoelectric position detection module rotates through the zero point, the main control chip determines whether the circle correction value is increased or decreased by "1" according to the change of the current absolute position detected by the photoelectric position detection module, and obtains the second circle value in the current rotation cycle; When the photoelectric position detection module rotates to the calibration point, the main control chip replaces the first circle value in the storage chip with the second circle value through the logic operation module, and uses the second circle value as the circle correction value of the current rotation cycle.
10. The method according to claim 9, It is characterized in that Before obtaining the correction value of the number of revolutions of the previous rotation cycle, it also includes: After the multi-turn encoder is powered on, the main control chip obtains the zero point correction information, the initial turn value recorded by the Wiegand counting module when powered on, and the initial single turn absolute position recorded by the photoelectric position detection module when powered on from the storage chip through the logic operation module; wherein the zero point correction information is used to characterize the position difference between the zero point of the Wiegand counting module and the zero point of the photoelectric position detection module; The main control chip performs zero point alignment based on the initial circle value according to the zero point correction information and the initial single circle absolute position to obtain a circle number reference value; The main control chip stores the reference value of the number of revolutions in a storage chip through the logic operation module; The photoelectric position detection module performs multi-turn counting based on the turn number reference value.
11. The method according to claim 9, It is characterized in that The photoelectric position detection module comprises: a code disk, the zero point of the photoelectric position detection module is the zero point of the code disk; And / or, the photoelectric position detection module is powered by a cable.
12. The method according to claim 9, It is characterized in that The main control module includes MCU or FPGA.
13. A computer-readable storage medium, It is characterized in that Computer instructions are stored thereon, and when the instructions are executed, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Cited By
Single-loop absolute encoder speed measurement and processing method and system
CN119916052A
