Encoder and linear motor
By using dual-channel permanent magnet signal sources and detection components in linear motors to detect magnetic field signals, the absolute position information of the mover can be directly calculated, which solves the high-cost problems caused by the need to find reference points and power-off memory in the existing technology. Reduced use and maintenance costs.
Patent Information
- Application Number
- CN202323388891.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Priority Date
- 2023-06-16
- Filing Date
- 2023-12-12
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2033-12-12
AI Technical Summary
The existing absolute position detection method of linear motors requires regular replacement of internal batteries and search for reference points, resulting in high usage and maintenance costs.
A dual-code channel permanent magnet signal source is used to form a dual-code channel permanent magnet signal source through the permanent magnets of the first code channel and the second code channel. The detection component is used to detect the magnetic field signal, and the absolute position of the mover is directly calculated based on the cursor principle. information, avoiding the need to find reference points and memory after power-off.
It reduces the difficulty of detecting mover position information and manual maintenance cycles, reduces the use and maintenance costs of linear motors, and reduces the frequency of battery replacement.
Smart Images

Figure CN221612118U
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of linear motor position detection, and in particular to encoders and linear motors. Background Art
[0002] The characteristics of a permanent magnet linear motor are that the stator is a permanent magnet array, the mover is a drive coil winding, and applying voltage to the mover will generate an induced magnetic field. The induced magnetic field interacts with the magnetic field of the stator permanent magnet to generate an electromagnetic force that causes the mover to move linearly. In the motion control of a permanent magnet linear motor, it is necessary to obtain the position information of the motor mover in real time and accurately. Currently, encoders are usually used to detect and feedback the position of the motor mover.
[0003] Encoders can be divided into two types: incremental and absolute. The incremental encoder outputs a pulse signal, and the direction of movement and relative position information are determined by the pulse phase and number. The output signal of the absolute encoder is the absolute position information within the detection range, which has a higher resolution. The currently commonly used absolute position detection method for linear motors requires finding a reference point after power-on before establishing an absolute position coordinate system based on the reference point, which is inconvenient to use. In order to avoid the need to find a reference point every time the power is turned on, the prior art uses an internal battery for power supply after the power is disconnected to achieve the function of external power-off memory.
[0004] However, although the existing absolute encoders can provide high-precision absolute position signals, in actual use, the internal batteries must be replaced regularly and reference points must be found to ensure the stability of the system, which greatly increases the use and maintenance costs of the linear motors. Utility Model Content
[0005] The main technical problem solved by the present application is to provide an encoder and a linear motor, which can solve the problems of high usage and maintenance costs caused by the need to find reference points and power-off memory in the prior art.
[0006] In order to solve the above technical problems, the first technical solution adopted in the present application is to provide an encoder, including: a first code channel, a plurality of pairs of first permanent magnets arranged at equal intervals are arranged along a first direction; a second code channel, arranged on one side of the first code channel along the second direction, the second code channel is provided with a plurality of pairs of second permanent magnets arranged at equal intervals along the first direction, and the number of pairs of first permanent magnets is not equal to the number of pairs of second permanent magnets; a first detection component, movably connected to the first code channel and / or the second code channel; a second detection component, movably connected to the first code channel and / or the second code channel; the first detection component and the second detection component can move synchronously along the first direction, the first detection component is used to detect the magnetic field signals of the plurality of pairs of first permanent magnets, and the second detection component is used to detect the magnetic field signals generated by the plurality of pairs of second permanent magnets; wherein the first direction is perpendicular to the second direction.
[0007] The width direction of the first code channel is parallel to the second direction, and the width direction of the second code channel is parallel to the third direction; wherein the third direction is perpendicular to the first direction and the second direction respectively.
[0008] Wherein, the first detection component includes a plurality of first magnetic sensors, the plurality of first magnetic sensors are arranged at equal intervals along a first direction, and along a third direction, the plurality of first magnetic sensors are arranged at intervals from a first code channel; and / or, the second detection component includes a plurality of second magnetic sensors, the plurality of second magnetic sensors are arranged at equal intervals along the first direction, and along the second direction, the plurality of second magnetic sensors are arranged at intervals from a second code channel.
[0009] Among them, the first detection component includes a first bracket, a first circuit board and a plurality of first magnetic sensors, the first bracket is movably connected to the first code channel and / or the second code channel, the first circuit board is connected to the first bracket, and the plurality of first magnetic sensors are arranged on a side of the first circuit board facing the first code channel; and / or, the second detection component includes a second bracket, a second circuit board and a plurality of second magnetic sensors, the second circuit board is connected to the second bracket, and the plurality of second magnetic sensors are arranged on a side of the second circuit board facing the second code channel.
[0010] The number of pairs of the first permanent magnets is one pair less than the number of pairs of the second permanent magnets; or the number of pairs of the second permanent magnets is one pair less than the number of pairs of the first permanent magnets.
[0011] In order to solve the above-mentioned technical problems, the second technical solution adopted in this application is to provide a linear motor, including: a base; a mover, movably connected to the base; and also including the above-mentioned encoder, the first code channel and the second code channel of the encoder are respectively installed on the base, and the first detection component and the second detection component of the encoder are respectively arranged on the mover, and the mover can drive the first detection component and the second detection component to move relative to the first code channel and the second code channel.
[0012] In order to solve the above technical problems, the third technical solution adopted in the present application is to provide a position detection method for a linear motor, wherein the linear motor includes a base, a mover and an encoder, wherein the mover is movably connected to the base, the first code track and the second code track of the encoder are respectively installed on the base, the first detection component and the second detection component of the encoder are respectively arranged on the mover, and the mover can drive the first detection component and the second detection component to move relative to the first code track and the second code track; the position detection method includes: when the first detection component moves relative to the first code track, detecting the first magnetic field signal generated by the first permanent magnet; when the second detection component moves relative to the second code track, detecting the second magnetic field signal generated by the second permanent magnet; and calculating the absolute position information of the mover based on the first magnetic field signal and the second magnetic field signal.
[0013] Among them, the step of calculating the absolute position information of the mover based on the first magnetic field signal and the second magnetic field signal includes: calculating the angle difference based on the first magnetic field signal and the second magnetic field signal, and obtaining the actual number of magnetic pole pairs period of the mover on the first code track according to the angle difference; obtaining the absolute position information of the mover on the first code track through the actual number of magnetic pole pairs period, the first magnetic field signal and the magnetic moment of the first permanent magnet; wherein the magnetic moment is the distance between a pair of magnetic poles in the first permanent magnet.
[0014] Among them, the step of calculating the angle difference based on the first magnetic field signal and the second magnetic field signal includes: converting the first magnetic field signal into a first voltage signal, and performing an inverse tangent operation on the first voltage signal to obtain first magnetic field angle information; converting the second magnetic field signal into a second voltage signal, and performing an inverse tangent operation on the second voltage signal to obtain second magnetic field angle information; calculating the angle difference based on the first magnetic field angle information and the second magnetic field angle information.
[0015] The specific calculation method of the first magnetic field angle information and the second magnetic field angle information includes:
[0016]
[0017] Wherein, P is the magnetic field angle information of the mover in the magnetic pole period of the first code channel or the second code channel, Vsin is the sine voltage signal of the first voltage signal or the second voltage signal, Vcos is the cosine voltage signal of the first voltage signal or the second voltage signal, and arctan is the inverse tangent operator.
[0018] Among them, the step of obtaining the actual number of magnetic pole pairs period of the mover on the first code track according to the angle difference includes: obtaining a preset relationship table; wherein the relationship table is used to record the theoretical number of magnetic pole pairs period corresponding to each theoretical angle difference; querying the relationship table to obtain the theoretical angle difference matching the angle difference; and using the theoretical number of magnetic pole pairs period corresponding to the matching theoretical angle difference as the actual number of magnetic pole pairs period of the mover on the first code track.
[0019] Among them, the step of obtaining a preset relationship table includes: in each theoretical magnetic pole pair period of the mover running relative to the first code channel, using the first detection component to collect the first theoretical magnetic field signal generated by the first permanent magnet, and obtaining the first theoretical magnetic field angle information of the mover in the magnetic pole pair period of the first code channel based on the first theoretical magnetic field signal; and, using the second detection component to collect the second theoretical magnetic field signal generated by the second permanent magnet, and obtaining the second theoretical magnetic field angle information of the mover in the magnetic pole pair period of the second code channel based on the second theoretical magnetic field signal; calculating the theoretical angle difference based on the first theoretical magnetic field angle information and the second theoretical magnetic field angle information; storing each theoretical angle difference and the corresponding theoretical magnetic pole pair period number in the form of a data table to obtain a relationship table.
[0020] The specific method of obtaining the absolute position information of the mover on the first code track through the actual number of magnetic pole pairs, the first magnetic field signal and the magnetic moment of the first permanent magnet includes:
[0021]
[0022] Among them, y i is the absolute position information of the actuator on the first code track, C i is the calculated actual magnetic pole period, P A is the first magnetic field angle information, M is the number of pairs of first permanent magnets on the first code track, and L is the distance between a pair of magnetic poles in the first permanent magnet.
[0023] The beneficial effect of the present application is as follows: Different from the prior art, the present application provides an encoder and a linear motor. By forming a dual-channel permanent magnet signal source with a first permanent magnet in the first code channel of the linear motor itself and a second permanent magnet in the second code channel, and detecting the dual-channel permanent magnet signal source, the absolute position information of the mover in the linear motor can be directly calculated based on the cursor principle. Since there is no need to find a reference point and power-off memory, the difficulty of detecting the mover position information and the manual maintenance cycle can be greatly reduced, thereby reducing the use cost and maintenance cost of the linear motor. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments 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 these drawings without creative work.
[0025] Figure 1 It is a schematic diagram of an implementation method of a linear motor of the present application;
[0026] Figure 2 yes Figure 1 Top view of the linear motor;
[0027] Figure 3 yes Figure 1 Schematic diagram of the installation structure of the second code channel;
[0028] Figure 4 yes Figure 2 Schematic diagram of the cross-section structure along line AA;
[0029] Figure 5 yes Figure 4 Schematic diagram of the enlarged structure of the middle C area;
[0030] Figure 6 yes Figure 2 Schematic diagram of the cross-section structure along line BB;
[0031] Figure 7 yes Figure 6 Schematic diagram of the enlarged structure of the middle D area;
[0032] Figure 8 yes Figure 6 A schematic diagram of the specific structure of the first bracket;
[0033] Fig. 9 yes Figure 6 A schematic diagram of the specific structure of the second bracket;
[0034] Fig.10 is a schematic diagram of the three-dimensional structure of the first circuit board;
[0035] Fig.11 is a cross-sectional view of a second circuit board;
[0036] Fig.12 is a schematic diagram of the three-dimensional structure of the second circuit board;
[0037] Fig.13 It is a flow chart of a first implementation method of a position detection method of a linear motor of the present application;
[0038] Fig.14 It is a flow chart of a second implementation method of a position detection method of a linear motor of the present application;
[0039] Fig.15 It is a structural schematic diagram of an implementation method of the present application for obtaining the actual number of magnetic pole pairs periods of the mover on the first code track according to the angle difference;
[0040] Fig.16 This is a schematic diagram of the solution based on the dual-channel cursor. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0042] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms of "a", "said", and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless otherwise clearly indicated above, and "multiple" generally includes at least two, but does not exclude the inclusion of at least one.
[0043] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0044] It should be understood that the terms "include", "comprises" or any other variations used herein are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, the elements defined by the sentence "includes..." do not exclude the presence of other identical elements in the process, method, article or device that includes the elements.
[0045] In the prior art, in order to avoid the absolute encoder from having to search for a reference point every time it is powered on, an internal battery is used to supply power after the power supply is disconnected, so as to realize the function of external power-off memory. However, although the existing absolute encoder can provide a relatively high-precision absolute position signal, in actual use, the internal battery must be replaced regularly and the reference point must be searched to ensure the stability of the system, which greatly increases the use cost and maintenance cost of the linear motor.
[0046] Based on the above situation, the present application provides an encoder and a linear motor, which can solve the problem of high usage cost and maintenance cost caused by the need to find a reference point and power-off memory in the prior art.
[0047] To illustrate the specific structure of the encoder and linear motor in this application, please refer to Figure 1 and Figure 2 , Figure 1 is a schematic diagram of an embodiment of a linear motor of the present application, Figure 2 yes Figure 1 Top view of the linear motor.
[0048] In this embodiment, the linear motor 100 includes a base 11 , a mover 13 , and an encoder, wherein the mover 13 is movably connected to the base 11 .
[0049] The encoder includes a first code track 12 and a second code track 20 installed on a base 11, and the first detection component 30 and the second detection component 40 of the encoder are respectively arranged on a mover 13, and the mover 13 can drive the first detection component 30 and the second detection component 40 to move relative to the first code track 12 and the second code track 20.
[0050] In this embodiment, the first code track 12 is provided with a plurality of pairs of first permanent magnets arranged at equal intervals along the first direction y.
[0051] The first code track 12 is a stator code track, and the first permanent magnet is a stator permanent magnet.
[0052] The first direction y is the moving direction of the mover 13 , that is, the length direction of the linear motor 100 .
[0053] Specifically, each pair of first permanent magnets includes a relative N (north) pole and S (south) pole. Within a certain distance perpendicular to the first code track 12, when the mover 13 moves relative to the first code track 12, a continuous sinusoidal magnetic field can be generated between a pair of first permanent magnets at the end of the first code track 12 and at least one complete pair of first permanent magnets that the mover 13 can cross within the moving distance.
[0054] In this embodiment, the second code track 20 is disposed on one side of the first code track 12 along the second direction x, and the second code track 20 is provided with a plurality of pairs of second permanent magnets arranged at equal intervals along the first direction y.
[0055] The second code track 20 is a vernier code track, and the second permanent magnet is an auxiliary permanent magnet.
[0056] The first direction y is perpendicular to the second direction x, and the width direction of the first code track 12 is parallel to the second direction x, that is, the second direction x is the width direction of the linear motor 100 .
[0057] The width direction of the second code channel 20 is parallel to the third direction z. The third direction z is perpendicular to the first direction y and the second direction x.
[0058] Specifically, each pair of second permanent magnets includes opposite N poles and S poles. When the mover 13 moves relative to the first code track 12 within a certain distance perpendicular to the second code track 20, a continuous sinusoidal magnetic field can be generated between the pair of second permanent magnets at the end of the second code track 20 and at least one complete pair of second permanent magnets that the mover 13 can cross within the moving distance.
[0059] In some implementations, the second code channel 20 is disposed perpendicular to the first code channel 12. Figure 3 , Figure 3 yes Figure 1 The installation structure diagram of the second code channel in FIG. Figure 3 As shown, the second code track 20 is adhered to the second code track base 21, and the second code track base 21 is installed on the side of the base 11 of the linear motor 100 by screws, so that the second code track 20 is arranged perpendicular to the first code track 12, and the second permanent magnet in the second code track 20 is parallel to the running direction of the mover 13.
[0060] It can be understood that by setting the second code track 20 on one side of the first code track 12 of the linear motor 100, a dual-code channel permanent magnet signal source can be formed by using the first permanent magnet of the linear motor 100 itself and the second permanent magnet of the second code track 20. Among them, the signal source formed by the first permanent magnet on the first code track 12 is the main code track signal source, and the signal source formed by the second permanent magnet on the second code track 20 is the second code track signal source.
[0061] In this embodiment, the number of pairs of the first permanent magnets is not equal to the number of pairs of the second permanent magnets.
[0062] Among them, the starting end and the ending end of the second permanent magnet are the same as the starting end and the ending end of the first permanent magnet. The number of pairs of the first permanent magnet can be one less than the number of pairs of the second permanent magnet, or the number of pairs of the second permanent magnet can be one less than the number of pairs of the first permanent magnet. It is only necessary to make the second permanent magnet in the second code channel 20 and the first permanent magnet in the first code channel 12 misaligned, and the present application does not limit this.
[0063] In a specific embodiment, the number of pairs of the second permanent magnets is one pair less than the number of pairs of the first permanent magnets. For example, if the number of pairs of the first permanent magnets is M pairs, the number of pairs of the second permanent magnets is (M-1) pairs, and the starting positions of the sinusoidal magnetic field signals of the first pair of first permanent magnets on the first code track 12 and the first pair of second permanent magnets on the second code track 20 are the same, and the ending positions of the sinusoidal magnetic field signals of the Mth pair of first permanent magnets on the first code track 12 and the (M-1)th pair of second permanent magnets on the second code track 20 are the same.
[0064] For further information, see Figure 4-Figure 12 , Figure 4 yes Figure 2 Schematic diagram of the cross-section structure along line AA. Figure 5 yes Figure 4 Schematic diagram of the enlarged structure of the middle C area, Figure 6 yes Figure 2 Schematic diagram of the cross-sectional structure along line BB. Figure 7 yes Figure 6 The enlarged structural diagram of the D area in the middle, Figure 8 yes Figure 6 Schematic diagram of the specific structure of the first bracket, Fig. 9 yes Figure 6 Detailed structural diagram of the second bracket, Fig.10 is a schematic diagram of the three-dimensional structure of the first circuit board, Fig.11 is a cross-sectional view of the second circuit board, Fig.12 It is a schematic diagram of the three-dimensional structure of the second circuit board.
[0065] like Figure 4As shown, in this embodiment, the first detection component 30 is movably connected to the first code track 12, and the second detection component 40 is movably connected to the first code track 12. The first detection component 30 and the second detection component 40 can move synchronously along the first direction y, and the first detection component 30 is used to detect the magnetic field signals of multiple pairs of first permanent magnets, and the second detection component 40 is used to detect the magnetic field signals generated by multiple pairs of second permanent magnets.
[0066] In other embodiments, the first detection component 30 may be movably connected to the second code channel 20 , and the second detection component 40 may be movably connected to the second code channel 20 , which is not limited in the present application.
[0067] Specifically, the first detection component 30 and the second detection component 40 are both arranged on the mover 13 of the linear motor 100, and move synchronously with the mover 13. The first detection component 30 is used to detect the first magnetic field signal generated by the first permanent magnet when the mover 13 moves relative to the first code track 12, and output a first voltage signal based on the first magnetic field signal. The second detection component 40 is used to detect the second magnetic field signal generated by the second permanent magnet when the mover 13 moves relative to the first code track 12, and output a second voltage signal based on the second magnetic field signal.
[0068] Please refer to Figure 1 , Figure 5 , Figure 6 , Figure 7 , Figure 8 , Fig. 9 , Fig.10 , Fig.11 and Fig.12 .
[0069] In this embodiment, the first detection component 30 includes a plurality of first magnetic sensors 321, which are arranged at equal intervals along the first direction y, and along the third direction z, the plurality of first magnetic sensors 321 are spaced apart from the first code track 12. And / or, the second detection component 40 includes a plurality of second magnetic sensors 421, which are arranged at equal intervals along the first direction y, and along the second direction x, the plurality of second magnetic sensors 421 are spaced apart from the second code track 20.
[0070] Among them, the multiple first magnetic sensors 321 are used to collect first magnetic field signals and output multiple first voltage signals based on the first magnetic field signals, and the multiple second magnetic sensors 421 are used to collect second magnetic field signals and output multiple second voltage signals based on the second magnetic field signals.
[0071] In this embodiment, the first detection component 30 includes a first bracket 31, a first circuit board 32 and a plurality of first magnetic sensors 321. The first bracket 31 is movably connected to the first code channel 12, the first circuit board 32 is connected to the first bracket 31, and the plurality of first magnetic sensors 321 are arranged on a side of the first circuit board 32 facing the first code channel 12.
[0072] In other embodiments, the first bracket 31 may be movably connected to the second code channel 20 .
[0073] In some embodiments, the second detection component 40 includes a second bracket 41, a second circuit board 42 and a plurality of second magnetic sensors 421, the second circuit board 42 is connected to the second bracket 41, and the plurality of second magnetic sensors 421 are arranged on a side of the second circuit board 42 facing the second code channel 20.
[0074] Specifically, the first bracket 31 is fixedly connected to one side (side a) of the vertical movement direction of the mover 13 to fix the first circuit board 32 on the mover 13, and the second bracket 41 is fixedly connected to one side (side b) of the parallel movement direction of the mover 13 to fix the second circuit board 42 on the mover 13.
[0075] Specifically, the first bracket 31 includes a first fixed plate 311 and a first circuit board fixed plate 312, the first fixed plate 311 is fixedly connected to the a side of the mover 13, the first circuit board fixed plate 312 is connected to the side of the first fixed plate 311 close to the first code channel 12, and is parallel to the first code channel 12. Among them, the first circuit board 32 is arranged on the first circuit board fixed plate 312. The second bracket 41 includes a second fixed plate 411 and a second circuit board fixed plate 412, the second fixed plate 411 is fixedly connected to the b side of the mover 13, wherein the b side is adjacent to the a side. The second circuit board fixed plate 412 is vertically connected to the side of the second fixed plate 411 close to the second code channel 20, and is parallel to the second code channel 20. Among them, the second circuit board 42 is arranged on the second circuit board fixed plate 412.
[0076] In some embodiments, a plurality of first magnetic sensors 321 are arranged at equal intervals on a side of the first circuit board 32 facing the first code track 12, and a plurality of second magnetic sensors 421 are arranged at equal intervals on a side of the second circuit board 42 facing the second code track. Preferably, the distance between adjacent first magnetic sensors 321 is half the pole pitch of the first code track 12, and the distance between adjacent second magnetic sensors 421 is half the pole pitch of the second code track 20.
[0077] Among them, the number of the first magnetic sensors 321 can be 2, 3, 4 or 6, and the number of the second magnetic sensors 421 can be 2, 3, 4 or 6, which is not limited in the present application.
[0078] In some embodiments, the first circuit board 32 is connected to the wiring terminal 422 on the second circuit board 42 through a wire, so as to supply power to the second magnetic sensor 421 on the second circuit board 42 through the wiring terminal 422, and obtain the second voltage signal through the wiring terminal 422. The wiring terminal 422 and the second magnetic sensor 421 are arranged on both side surfaces of the second circuit board 42 opposite to each other.
[0079] In some embodiments, the processing circuit 322 is disposed on the first circuit board 32 and is electrically connected to the first circuit board 32 to obtain the first voltage signal and the second voltage signal through the first circuit board 32. The processing circuit 322 and the first magnetic sensor 321 are disposed on a side surface of the first circuit board 32.
[0080] In some implementations, the first magnetic sensor 321 and the second magnetic sensor 421 are both Hall elements, wherein the Hall element is a magnetic sensitive element that performs magneto-electric conversion according to the Hall effect, and can be used to measure the magnitude and direction of the magnetic field.
[0081] Among them, if each code channel uses 2 Hall elements, the phase difference between the two magnetic fields is 90°; if each code channel uses 3 Hall elements, the phase difference between the two magnetic fields is 120°, and after 3 / 2 coordinate transformation, the signal characteristics are equivalent to 2 Hall elements; if each code channel uses 4 Hall elements, the phase difference between the two magnetic fields is 90°, and the signal characteristics after differentiation are equivalent to 2 Hall elements, and the processing method is the same as that of 2 Hall elements; if each code channel uses 6 Hall elements, the phase difference between the two magnetic fields is 60°, and the signal characteristics after differentiation are equivalent to 3 Hall elements, and the processing method is the same as that of 3 Hall elements.
[0082] In other embodiments, the first magnetic sensor 321 and the second magnetic sensor 421 may also be magnetic sensitive elements such as AMR (Anisotropic magnetoresistance effect), GMR (Giant magnetoresistance effect) or TMR (Tunnel magnetoresistance effect) with the same function, which is not limited in the present application.
[0083] In this embodiment, the processing circuit 322 is connected to the first detection component 30 and the second detection component 40. The processing circuit 322 obtains the first magnetic field angle information of the mover 13 in the magnetic pole period of the first code track 12 and the second magnetic field angle information of the magnetic pole period of the second code track 20 based on the received first voltage signal and the second voltage signal, and outputs the angular position information of the mover 13 on the first code track 12 according to the first magnetic field angle information and the second magnetic field angle information.
[0084] Specifically, the processing circuit 322 is connected to the first magnetic sensor 321 and the second magnetic sensor 421 to obtain the first voltage signal and the second voltage signal through the first magnetic sensor 321 and the second magnetic sensor 421 .
[0085] It can be understood that by using the first magnetic sensor 321 and the second magnetic sensor 421 to respectively detect the magnetic field signals of the dual code channels and output corresponding voltage signals, it is possible to make a voltage signal with a phase difference of a preset number of periods between the first voltage signal and the second voltage signal based on the misalignment principle of the second permanent magnet in the second code channel 20 and the first permanent magnet in the first code channel 12. When the mover 13 is in different stator magnetic pole periods on the first code channel 12, the first magnetic field angle information and the second magnetic field angle information obtained based on the first voltage signal and the second voltage signal can obtain different fixed angle differences.
[0086] Among them, the stator magnetic pole period of the mover 13 in the first code track 12 refers to the sinusoidal magnetic field period of the mover 13 relative to the starting end of the first code track 12, and the auxiliary magnetic pole period of the mover 13 in the second code track 20 refers to the sinusoidal magnetic field period of the mover 13 relative to the starting end of the second code track 20.
[0087] It can be understood that, based on the above principle, when the mover 13 runs relative to the first code channel 12, the different first voltage signals and the second voltage signals are solved by the processing circuit 322, and the magnetic pole period of the mover 13 on the first code channel 12 can be determined based on the obtained fixed angle difference, and then the angular position information of the mover 13 on the first code channel 12 can be output based on the determined magnetic pole period and the first magnetic field angle information.
[0088] Different from the prior art, this embodiment forms a dual-channel permanent magnet signal source by making the first permanent magnet in the first code channel 12 of the linear motor 100 and the second permanent magnet in the second code channel 20, and detects the dual-channel permanent magnet signal source, so that the angular position information of the mover 13 in the linear motor 100 can be directly solved based on the vernier principle. Since there is no need to find a reference point and power-off memory, the difficulty of detecting the mover position information and the manual maintenance cycle can be greatly reduced, thereby reducing the use cost and maintenance cost of the linear motor 100. In addition, since only the second code channel 20 needs to be installed on the side of the base 11, and there is no need to frequently replace the battery, it can further reduce the preparation cost and expand the use scenarios of the linear motor 100.
[0089] See also Fig.13 , Fig.13It is a flow chart of the first embodiment of the position detection method of the linear motor of the present application. In this embodiment, the linear motor includes a base, a mover and an encoder, the mover is movably connected to the base, the first code track and the second code track of the encoder are respectively installed on the base, the first detection component and the second detection component of the encoder are respectively arranged on the mover, and the mover can drive the first detection component and the second detection component to move relative to the first code track and the second code track.
[0090] The position detection method specifically includes:
[0091] S11: When the first detection component moves relative to the first code track, the first magnetic field signal generated by the first permanent magnet is detected.
[0092] In this embodiment, the first detection component is used to detect the first magnetic field signal generated by the first permanent magnet when the mover moves relative to the first code track.
[0093] Wherein, the first detection component and the second detection component are both arranged on the mover of the linear motor and move synchronously with the mover.
[0094] The first detection component includes a first circuit board and a plurality of first magnetic sensors arranged on the first circuit board, and the second detection component includes a second circuit board and a plurality of second magnetic sensors arranged between the second circuit boards.
[0095] Among them, a plurality of first magnetic sensors are arranged at equal intervals on a side of the first circuit board facing the first code channel, and are used to collect a first magnetic field signal generated by a first permanent magnet in the first code channel. A plurality of second magnetic sensors are arranged at equal intervals on a side of the second circuit board facing the second code channel, and are used to collect a second magnetic field signal generated by a second permanent magnet in the second code channel.
[0096] The starting end and the ending end of the second permanent magnet are the same as the starting end and the ending end of the first permanent magnet in the first code channel, and the number of logarithms of the first permanent magnet is not equal to the number of logarithms of the second permanent magnet.
[0097] In a specific embodiment, the number of pairs of the second permanent magnets is one pair less than the number of pairs of the first permanent magnets. For example, if the number of pairs of the first permanent magnets is M pairs, the number of pairs of the second permanent magnets is (M-1) pairs, and the starting positions of the sinusoidal magnetic field signals of the first pair of first permanent magnets on the first code track 12 and the first pair of second permanent magnets on the second code track 20 are the same, and the ending positions of the sinusoidal magnetic field signals of the Mth pair of first permanent magnets on the first code track 12 and the (M-1)th pair of second permanent magnets on the second code track 20 are the same.
[0098] S12: When the second detection component moves relative to the second code track, the second magnetic field signal generated by the second permanent magnet is detected.
[0099] In this embodiment, the second detection component is used to detect the second magnetic field signal generated by the auxiliary permanent magnet when the mover moves relative to the first code track.
[0100] S13: Calculate the absolute position information of the mover based on the first magnetic field signal and the second magnetic field signal.
[0101] In this embodiment, the first detection component and the second detection component are used to respectively detect the first magnetic field signal and the second magnetic field signal of the dual code channel and output the corresponding first voltage signal and the second voltage signal. Based on the misalignment principle of the second permanent magnet in the second code channel and the first permanent magnet in the first code channel, there can be a voltage signal with a phase difference of a preset number of periods between the first voltage signal and the second voltage signal. When the mover is in different magnetic pole periods on the first code channel, the first magnetic field angle information and the second magnetic field angle information obtained based on the first voltage signal and the second voltage signal can obtain different fixed angle differences.
[0102] In this embodiment, by solving different first voltage signals and second voltage signals through a processing circuit arranged on the first circuit board, the magnetic pole period of the mover on the first code channel can be determined based on the obtained fixed angle difference, and then the angular position information of the mover on the first code channel can be output based on the determined magnetic pole period and the first magnetic field angle information.
[0103] Different from the prior art, this embodiment forms a dual-channel permanent magnet signal source with the first permanent magnet in the first code channel of the linear motor and the second permanent magnet in the second code channel, and detects the dual-channel permanent magnet signal source. It can directly calculate the absolute position information of the mover in the linear motor based on the cursor principle. Since there is no need to find a reference point and power-off memory, the difficulty of detecting the mover position information and the manual maintenance cycle can be greatly reduced, thereby reducing the use cost and maintenance cost of the linear motor.
[0104] See further Fig.14 , Fig.14 1 is a flow chart of a second embodiment of the method for detecting the position of a linear motor of the present application. In this embodiment, the method for detecting the position is implemented by the linear motor mentioned above.
[0105] The position detection method specifically includes:
[0106] S21: When the first detection component moves relative to the first code track, the first magnetic field signal generated by the first permanent magnet is detected.
[0107] For the specific process, please refer to the description in S11 and will not be repeated here.
[0108] S22: When the second detection component moves relative to the second code track, the second magnetic field signal generated by the second permanent magnet is detected.
[0109] For the specific process, please refer to the description in S12 and will not be repeated here.
[0110] S23: Calculate an angle difference based on the first magnetic field signal and the second magnetic field signal, and obtain the actual number of magnetic pole pairs periods of the mover on the first code track according to the angle difference.
[0111] In this embodiment, the first magnetic field signal is first converted into a first voltage signal, and an inverse tangent operation is performed on the first voltage signal to obtain first magnetic field angle information. The second magnetic field signal is converted into a second voltage signal, and an inverse tangent operation is performed on the second voltage signal to obtain second magnetic field angle information. Then, the angle difference is calculated based on the first magnetic field angle information and the second magnetic field angle information.
[0112] In this embodiment, the step of calculating the absolute position information of the mover based on the first magnetic field signal and the second magnetic field signal specifically includes: converting the first magnetic field signal into a first voltage signal, and performing an inverse tangent operation on the first voltage signal to obtain first magnetic field angle information; converting the second magnetic field signal into a second voltage signal, and performing an inverse tangent operation on the second voltage signal to obtain second magnetic field angle information.
[0113] Wherein, the first voltage signal and the second voltage signal are both in sine and cosine shapes.
[0114] In a specific implementation scenario, as the mover in the linear motor moves, the first magnetic field signal is collected using the two Hall elements A1 and A2 in the first detection component, and the second magnetic field signal is collected using the two Hall elements B1 and B2 in the second detection component. The first magnetic field signal and the second magnetic field signal are processed using A1 and A2 and B1 and B2 respectively to obtain corresponding sine and cosine voltage signals.
[0115] In this embodiment, the first magnetic field angle information is the angular position information of the mover in the stator magnetic pole pair period of the first code track, and the second magnetic field angle information is the angular position information of the mover in the auxiliary magnetic pole pair period of the second code track.
[0116] Specifically, when the mover moves to a certain position within a pair of stator magnetic poles in the first code channel, the magnetic field signal collected by the first detection component at this position is solved, and the obtained angular position information corresponds to a certain angle within a 360-degree period of the pair of stator magnetic poles. The magnetic field signal collected by the second detection component at this position is solved, and the obtained angular position information corresponds to a certain angle within a 360-degree period of a pair of auxiliary magnetic poles.
[0117] In this implementation, the first magnetic field angle information and the second magnetic field angle information are calculated using the following formula:
[0118]
[0119] Wherein, P is the magnetic field angle information of the mover in the magnetic pole period of the first code channel or the second code channel, Vsin is the sine voltage signal of the first voltage signal or the second voltage signal, Vcos is the cosine voltage signal of the first voltage signal or the second voltage signal, and arctan is the inverse tangent operator.
[0120] The first voltage signal and the second voltage signal are calculated using the above formula (1) to obtain the first magnetic field angle information P of the mover in the stator magnetic pair period of the first code channel: A , and the second magnetic field angle information P of the mover in the auxiliary magnetic pole period of the second code channel B .
[0121] Furthermore, an angle difference is calculated based on the first magnetic field angle information and the second magnetic field angle information. Specifically, the angle difference is calculated using the following formula:
[0122]
[0123] Among them, u(C) is the angle difference, P A is the first magnetic field angle information of the mover in the stator magnetic pole period of the first code channel, P B is the second magnetic field angle information of the mover in the auxiliary magnetic pole period of the second code channel, M is the logarithm of the first permanent magnet in the first code channel, (M-1) is the logarithm of the second permanent magnet in the second code channel, C is the actual magnetic pole period of the mover on the first code channel, ideally C is an integer, and C∈[1,M], 360 refers to the electrical angle represented by the entire detection cycle.
[0124] Among them, due to the influence of various factors in the actual operation process, the first magnetic field angle information P calculated A and the second magnetic field angle information P B There may be an error relative to the actual position, which may result in the first magnetic field angle information P being directly used. A and the second magnetic field angle information P A The actual magnetic pole period C obtained by calculation may not be an integer, and therefore needs to be compared with a preset relationship table to improve the detection accuracy.
[0125] Specifically, see Fig.15 , Fig.15 It is a structural schematic diagram of an implementation method of the present application for obtaining the actual number of magnetic pole pairs periods of the mover on the first code track according to the angle difference.
[0126] S31: Obtain a preset relationship table; wherein the relationship table is used to record the theoretical number of magnetic pole pairs periods corresponding to each theoretical angle difference.
[0127] In this embodiment, in each theoretical magnetic pole pair period of the mover running relative to the first code track, the first detection component is used to collect the first theoretical magnetic field signal generated by the first permanent magnet, and based on the first theoretical magnetic field signal, the first theoretical magnetic field angle information of the mover in the magnetic pole pair period of the first code track is obtained; and, the second detection component is used to collect the second theoretical magnetic field signal generated by the second permanent magnet, and based on the second theoretical magnetic field signal, the second theoretical magnetic field angle information of the mover in the magnetic pole pair period of the second code track is obtained.
[0128] The first theoretical magnetic field angle information is the angular position information of the mover in the stator magnetic pole pair period of the first code channel under ideal conditions, and the second theoretical magnetic field angle information is the angular position information of the mover in the auxiliary magnetic pole pair period of the second code channel under ideal conditions.
[0129] Specifically, the above formula (1) is used to calculate the first theoretical voltage signal and the second theoretical voltage signal corresponding to each magnetic pole pair period to obtain the first theoretical magnetic field angle information P of the mover in the stator magnetic pole pair period of the first code channel: A1 , and the second theoretical magnetic field angle information P of the mover in the auxiliary magnetic pole period of the second code channel B2 .
[0130] Furthermore, a theoretical angle difference is calculated based on the first theoretical magnetic field angle information and the second theoretical magnetic field angle information.
[0131] Specifically, the first theoretical magnetic field angle information P is calculated using the above formula (2): A1 and the second theoretical magnetic field angle information P B2 Calculation is performed to obtain the theoretical angle difference u(C'). In an ideal case, when the mover is in the same theoretical magnetic pole period C' on the first code track, the theoretical angle difference u(C') obtained based on the first theoretical magnetic field angle information and the second theoretical magnetic field angle information is fixed as the mover moves.
[0132] Specifically, see Fig.16 , Fig.16 This is a schematic diagram of the solution based on the dual code channel cursor. Taking the case where there are 8 pairs of first permanent magnets in the main code channel as an example, within the same stator magnetic pole period, even if the sampling point changes, causing the first theoretical magnetic field angle information and the second theoretical magnetic field angle information to change continuously, the theoretical angle difference obtained based on the two is still fixed. Among them, when C' is 1, the theoretical angle difference u(C') obtained is one, and the value is 0. When C' is greater than 1 and less than 8, the theoretical angle difference u(C') obtained is two, a fixed positive value and a fixed negative value. When C' is 8, the theoretical angle difference u(C') obtained is a fixed negative value. All theoretical angle differences are not repeated and are unique.
[0133] Finally, each theoretical angle difference and the corresponding theoretical magnetic pole pair period number are stored in the form of a data table to obtain a relationship table.
[0134] It can be understood that within the detection range of the encoder, the permanent magnets of the first code channel and the second code channel differ by one magnetic pole pair. Ideally, the sine and cosine voltage signals generated by the first magnetic sensor used to detect the first code channel signal and the second magnetic sensor used to detect the second code channel signal within the detection range will differ by one period, so that when the mover is in different main code channel magnetic pole pairs periods, there is a fixed difference in the angle based on the dual code channel solution. This is used as a lookup item for calculating the actual magnetic pole pair period, which can improve the accuracy of position detection.
[0135] S32: query the relationship table to obtain a theoretical angle difference value that matches the angle difference value.
[0136] In this implementation, the angle difference is matched with the theoretical angle difference using the following formula:
[0137]
[0138] Where i is the current sampling point, C' is the theoretical magnetic pole period obtained by querying the relationship table based on the current sampling point, and C i is the actual magnetic pole period calculated based on the current sampling point, u(C i ) is the angle difference value obtained based on the current sampling point i, u(C') is the theoretical angle difference value obtained by querying the relationship table based on the current sampling point i, and M is the logarithm of the stator magnetic pole pairs in the first code channel.
[0139] Among them, if the current sampling point i meets the above conditions, it means that the angle difference u(C i ) matches the queried theoretical angle difference u(C').
[0140] S33: taking the theoretical number of magnetic pole pairs corresponding to the matched theoretical angle difference as the actual number of magnetic pole pairs of the mover on the first code track.
[0141] Specifically, the theoretical magnetic pole period C' corresponding to the matched theoretical angle difference u(C') is used as the actual magnetic pole period C of the mover at the first code track. i , that is, C i =C'.
[0142] S24: Obtaining the absolute position information of the mover on the first code track through the actual number of magnetic pole pairs, the first magnetic field signal and the magnetic moment of the first permanent magnet; wherein the magnetic moment is the distance between a pair of magnetic poles in the first permanent magnet.
[0143] In this embodiment, the absolute position information of the mover is calculated by the following formula:
[0144]
[0145] Among them, y i is the absolute position information of the actuator on the first code track, C i is the calculated actual magnetic pole period, P A is the first magnetic field angle information, M is the number of pairs of first permanent magnets on the first code track, and L is the distance between a pair of magnetic poles in the first permanent magnet.
[0146] Different from the prior art, this embodiment forms a dual-channel permanent magnet signal source by making the first permanent magnet in the first code channel of the linear motor and the second permanent magnet in the second code channel, and detects the dual-channel permanent magnet signal source, which can directly solve the absolute position information of the mover in the linear motor based on the vernier principle. Since there is no need to find a reference point and power-off memory, the difficulty of detecting the mover position information and the manual maintenance cycle can be greatly reduced, thereby reducing the use cost and maintenance cost of the linear motor. Furthermore, by comparing the calculated actual magnetic pole period with the corresponding theoretical magnetic pole period in the relationship table, it can be determined whether the calculation is accurate, thereby improving the accuracy of position detection.
[0147] The above description is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. An encoder, characterized in that: include: A first code track, wherein a plurality of pairs of first permanent magnets arranged at equal intervals are arranged along a first direction; A second code track is arranged on one side of the first code track along a second direction, wherein the second code track is provided with a plurality of pairs of second permanent magnets arranged at equal intervals along the first direction, and the number of pairs of the first permanent magnets is not equal to the number of pairs of the second permanent magnets; A first detection component, movably connected to the first code channel and / or the second code channel; a second detection component, movably connected to the first code channel and / or the second code channel; The first detection component and the second detection component can move synchronously along a first direction, the first detection component is used to detect magnetic field signals of multiple pairs of the first permanent magnets, and the second detection component is used to detect magnetic field signals generated by multiple pairs of the second permanent magnets; The first direction is perpendicular to the second direction.
2. The encoder according to claim 1, characterized in that The width direction of the first code channel is parallel to the second direction, and the width direction of the second code channel is parallel to the third direction; Wherein, the third direction is perpendicular to the first direction and the second direction respectively.
3. The encoder according to claim 2, characterized in that The first detection component includes a plurality of first magnetic sensors, which are arranged at equal intervals along a first direction, and are spaced apart from the first code channel along the third direction.
4. The encoder according to claim 3, characterized in that The second detection component includes a plurality of second magnetic sensors, which are arranged at equal intervals along a first direction, and are spaced apart from the second code channel along the second direction.
5. The encoder according to claim 4, characterized in that The plurality of first magnetic sensors and the plurality of second magnetic sensors are all Hall elements.
6. The encoder according to claim 2, characterized in that The first detection component includes a first bracket, a first circuit board and a plurality of first magnetic sensors. The first bracket is movably connected to the first code channel and / or the second code channel. The first circuit board is connected to the first bracket. The plurality of first magnetic sensors are arranged on a side of the first circuit board facing the first code channel.
7. The encoder according to claim 6, characterized in that The second detection component includes a second bracket, a second circuit board and a plurality of second magnetic sensors. The second circuit board is connected to the second bracket. The plurality of second magnetic sensors are arranged on a side of the second circuit board facing the second code channel.
8. The encoder according to any one of claims 1 to 7, characterized in that: The number of pairs of the first permanent magnets is one pair less than the number of pairs of the second permanent magnets; or, The number of the pairs of the second permanent magnets is one pair less than the number of the pairs of the first permanent magnets.
9. A linear motor, characterized in that: include: Pedestal; A mover, movably connected to the base; It also includes an encoder as described in any one of claims 1 to 8, wherein the first code track and the second code track of the encoder are respectively installed on the base, and the first detection component and the second detection component of the encoder are respectively arranged on the mover, and the mover can drive the first detection component and the second detection component to move relative to the first code track and the second code track.
Citation Information
Cited By
Magnetic levitation heavy load line encoder, integrated driving system and rotor identification method
CN121346851A
