Automatic identification device and method for lead wires of stepping motor

By designing an automatic identification device and using controllable switches and sensors to automatically identify stepper motor lead wires, the problem of cumbersome and time-consuming manual identification in the existing technology is solved, and fast and accurate multi-phase winding lead wire identification is achieved.

CN114814654BActive Publication Date: 2024-10-01THE 21TH RES INST OF CHINA ELECTRONIC TECH GRP CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210432653.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-21
Publication Date
2024-10-01
Estimated Expiration
2042-04-21

Smart Images

  • Figure CN114814654B_ABST
    Figure CN114814654B_ABST
Patent Text Reader

Abstract

A stepper motor lead-out automatic identification device includes: a controllable switch, the controllable switch corresponds to a plurality of lead-outs of a stepper motor to be tested; a grounding wire; a power line for realizing parallel connection of all normally closed contacts; a sampling resistor; an angle monitoring device; a voltage measuring device; and a control module, the control module is connected to a conduction switching module for realizing individual control of each controllable switch. The present invention also provides a stepper motor lead-out automatic identification method. In the present invention, the stepper motor lead-out is connected to the contact of the conduction switching module, and the control module controls the working state of the conduction switching module while collecting the voltage on the sampling resistor and the angle change of the angle detection sensor, thereby achieving the purpose of identifying the stepper motor lead-out. The present invention has a fast identification speed, high identification accuracy, and wide applicability, and also has the advantages of simple operation, accurate identification, and high identification efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of stepper motor lead wire identification and detection, and more specifically, to a stepper motor lead wire automatic identification device and a stepper motor lead wire automatic identification method. Background Art

[0002] The lead wires of stepper motors are generally two-phase four-wire or four-phase six-wire. For some occasions with special requirements, winding backup is used to double the number of lead wires of the motor. Due to the large number of lead wires and the use of single-color lead wires, it is impossible to directly identify the corresponding relationship between the lead wires and each phase winding when the product is completed. This requires certain means to test the motor and mark the lead wires.

[0003] The existing stepper motor lead wire identification generally adopts the following methods:

[0004] Use a multimeter or other instrument to manually test the continuity between each lead wire one by one to distinguish each phase winding;

[0005] Use a dedicated drive controller with a known power-on sequence to power on the stepper motor, check whether the motor rotates normally, determine whether the rotation direction meets the requirements, and mark the motor lead wires according to the driver interface. Summary of the invention

[0006] In summary, the existing stepper motor lead wire identification method is manually operated, and each test can only test one set of windings, requiring frequent wiring, and the operation process is cumbersome and time-consuming, and it is also prone to errors. Therefore, how to provide a lead wire testing method that is easy to operate, accurate in identification, and efficient has become a problem that needs to be solved urgently by those skilled in the art.

[0007] In order to achieve the above object, the present invention provides the following technical solutions:

[0008] The present invention provides a stepper motor lead wire automatic identification device, the stepper motor lead wire automatic identification device provided by the present invention comprises:

[0009] A controllable switch, the controllable switch comprising a normally closed contact for connecting to a power source, a normally open contact for grounding, and a common terminal for connecting to a lead wire of a stepping motor to be tested, the controllable switch is provided with a plurality of switches and constitutes a conduction switching module, the controllable switch corresponds to a plurality of lead wires of the stepping motor to be tested one by one, and in all the controllable switches, the normally open contacts are connected in parallel, and the normally closed contacts are connected in parallel;

[0010] A grounding wire for connecting all the normally open contacts in parallel;

[0011] A power line for connecting all the normally closed contacts in parallel;

[0012] A sampling resistor arranged on the ground line or the power line;

[0013] An angle monitoring device for measuring the number of rotation steps of the output shaft of the stepping motor to be measured;

[0014] A voltage measuring device for measuring the voltage of the sampling resistor;

[0015] A control module, wherein the control module is control-connected to the conduction switching module and is used to realize individual control of each of the controllable switches; the control module is signal-connected to the angle monitoring device and is used to receive the rotation step number signal generated by the angle monitoring device; the control module is signal-connected to the voltage measuring device and is used to receive the voltage signal generated by the voltage measuring device.

[0016] Preferably, the stepper motor lead wire automatic identification device provided by the present invention further includes a display module, which is connected to the control module and is used to display the numerical values ​​of the rotation step number signal and the voltage signal.

[0017] Preferably, the stepper motor lead wire automatic identification device provided by the present invention also includes an instruction input module, which is signal-connected to the control module and is used to input measurement parameter instructions to the control module; the measurement parameter instructions are the type of the stepper motor to be tested.

[0018] Preferably, in the stepping motor lead wire automatic identification device provided by the present invention, the angle monitoring device is an angle detection sensor.

[0019] Preferably, in the stepping motor lead wire automatic identification device provided by the present invention, the voltage measuring device is a voltmeter.

[0020] Preferably, in the stepping motor lead wire automatic identification device provided by the present invention, the controllable switch is a controllable relay.

[0021] Preferably, in the stepping motor lead wire automatic identification device provided by the present invention, the controllable switch is a half-bridge circuit.

[0022] Preferably, in the stepping motor lead wire automatic identification device provided by the present invention, the number of controllable switches is four to twelve, and the number of controllable switches is an even number.

[0023] Preferably, in the stepping motor lead wire automatic identification device provided by the present invention, the number of the controllable switches is four, six, eight or twelve.

[0024] The present invention also provides a method for automatically identifying lead wires of a stepper motor. In the method, the present invention uses the automatic identification device for lead wires of a stepper motor as described above to identify the lead wires of the stepper motor to be tested.

[0025] The stepper motor lead wire automatic identification method comprises:

[0026] Step 1: Connect the leads of the stepper motor to be tested to the common terminals of the controllable switch in sequence;

[0027] Step 2: Select one of the leads as the first basic lead, change the state of the controllable switch corresponding to the first basic lead, and record the sampling resistor voltage, then change the states of other controllable switches in turn and record the voltage of each lead, and group the leads according to the change relationship of the sampling resistor voltage value;

[0028] Step 3: Group the other leads into teams according to step 2;

[0029] Step 4. Change the corresponding controllable switch states of two different team leads in the prescribed order and cycle in sequence. The number of cycles is N. Obtain the number of rotation steps of the motor shaft on the stepper motor to be tested. When the number of rotation steps is 4*N and the rotation direction is consistent with the prescribed direction, the lead sequence conforms to the prescribed rotation direction of the stepper motor to be tested. When the number of rotation steps is 4*N but the direction is inconsistent with the prescribed direction, it is necessary to change the order of one pair of lead wires. After the change, the lead wire sequence conforms to the prescribed rotation direction of the stepper motor to be tested.

[0030] Preferably, the method for automatic identification of stepper motor lead wires provided by the present invention also includes step five, when the number of rotation steps is not 4*N, replacing a group of leads in the two teams, and then repeating step four until the number of rotation steps is 4*N and the rotation direction is consistent with the specified direction, then the lead sequence conforms to the specified rotation direction of the stepper motor to be tested.

[0031] Compared with the prior art, the present invention has the following beneficial effects:

[0032] The present invention provides an automatic identification device for lead wires of a stepping motor, the automatic identification device for lead wires of a stepping motor comprises: a controllable switch, the controllable switch comprises a normally closed contact for connecting to a power supply, a normally open contact for grounding, and a common end for connecting to the lead wires of a stepping motor to be tested, a plurality of controllable switches are provided and constitute a conduction switching module, the controllable switches correspond to the plurality of lead wires of the stepping motor to be tested one by one, in all the controllable switches, the normally open contacts are connected in parallel, and the normally closed contacts are connected in parallel; a grounding wire for realizing parallel connection of all the normally open contacts; and a grounding wire for realizing parallel connection of all the normally open contacts. A power line with normally closed contacts in parallel; a sampling resistor arranged on a ground line or a power line; an angle monitoring device for measuring the number of rotation steps of the output shaft of the stepper motor to be tested; a voltage measuring device for measuring the voltage of the sampling resistor; a control module, the control module is connected to the conduction switching module for realizing the individual control of each controllable switch, the control module is connected to the angle monitoring device for receiving the rotation step number signal generated by the angle monitoring device, and the control module is connected to the voltage measuring device for receiving the voltage signal generated by the voltage measuring device. The present invention also provides a method for automatically identifying the lead wires of a stepper motor, the identification method uses the automatic identification device for the lead wires of a stepper motor to identify the lead wires of the stepper motor to be tested.

[0033] Through the above structural design, in the automatic identification device for lead wires of stepper motors provided by the present invention, the lead wires of stepper motors are connected to the contacts of the conduction switching module, the output shaft (the output shaft of the stepper motor) is connected to the angle sensor (the device for the automatic identification device for lead wires of stepper motors to measure angles), and the control module collects the voltage on the sampling resistor and the angle change of the angle detection sensor while controlling the working state of the conduction switching module, thereby achieving the purpose of identifying the lead wires of the stepper motor. After the present invention is put into use, only one wiring is required to automatically identify all the lead wires of the stepper motor, with fast identification speed and high identification accuracy. The present invention can be applied to stepper motors with two-phase four-wires, two-phase backup eight-wires, four-phase six-wires and four-phase backup twelve-wires, and has a wide applicability, and also has the advantages of simple operation, accurate identification, and high identification efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The drawings in the specification, which constitute a part of this application, are used to provide a further understanding of the present invention. The illustrative embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0035] Figure 1 The schematic diagram of the automatic identification device for lead wires of a stepping motor in an embodiment of the present invention is shown in FIG.

[0036] exist Figure 1 The corresponding relationship between the component names and the reference numerals is as follows:

[0037] Controllable switch 1, conduction switching module 2, ground wire 3, power wire 4, sampling resistor 5,

[0038] Angle monitoring device 6, control module 7, display module 8, and stepping motor to be tested 9. DETAILED DESCRIPTION

[0039] The present invention will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments. Each example is provided by way of explanation of the present invention and is not intended to limit the present invention. In fact, it will be clear to those skilled in the art that modifications and variations may be made in the present invention without departing from the scope or spirit of the present invention. For example, the present invention is shown or described as

[0040] Features that are part of one embodiment may be used on another embodiment to yield a still further embodiment. Thus, it is intended that the present invention encompass such modifications and variations as come within the scope of the appended claims and their equivalents.

[0041] In the description of the present invention, the terms "longitudinal", "lateral", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings. They are only for the convenience of describing the present invention and do not require that the present invention must be constructed and operated in a specific orientation. Therefore, they should not be understood as limitations on the present invention. The terms "connected" and "connected" used in the present invention should be understood in a broad sense. For example, they can be fixed connections or detachable connections; they can be directly connected or indirectly connected through intermediate components. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.

[0042] Please refer to Figure 1 , Figure 1 The schematic diagram of the automatic identification device for lead wires of a stepping motor in an embodiment of the present invention is shown in FIG.

[0043] The present invention provides a stepper motor lead wire automatic identification device, which can identify and detect the lead wires of a stepper motor 9 to be tested.

[0044] In the present invention, the stepper motor lead wire automatic identification device includes the following components:

[0045] 1. Controllable switch 1.

[0046] The controllable switch 1 is a switch device that is controlled (can accept external instructions) and can change its own conduction state (conducting a circuit or cutting off a circuit).

[0047] In a preferred embodiment of the present invention, the controllable switch 1 is preferably a controllable relay or a half-bridge circuit, which are both control devices (control structures) that use electrical signals as control signals and can change their own conduction states according to the control signals. The controllable switch 1 uses a controllable relay or a half-bridge circuit and is provided with a drive circuit, which is a circuit that realizes the action of the controllable switch 1. The controller can control the conduction states of each controllable switch 1 through the drive circuit according to the built-in program.

[0048] Of course, the present invention can also use a mechanical switch, which is manually controlled by an operator (manual control is relatively cumbersome, so the controllable switch 1 is preferably a relay or a half-bridge circuit) to implement the test of the lead wires of the stepper motor 9 to be tested.

[0049] Specifically, the controllable switch 1 includes a normally closed contact for connecting to a power source (it changes state to power on only after receiving a corresponding control signal), a normally open contact for grounding (grounded under normal conditions, equivalent to an open circuit), and a common terminal for connecting to the lead wire of the stepper motor 9 to be tested.

[0050] Generally, the stepper motor 9 to be tested is provided with multiple lead wires. In order to be able to test each lead wire, the controllable switch 1 should also be provided with multiple (at least twelve, which can meet the test identification of four-phase twelve lines). The controllable switch 1 is provided with multiple and constitutes the conduction switching module 2. In the conduction switching module 2, there are multiple controllable switches 1. In order to facilitate subsequent operations, the controllable switches 1 need to be numbered, for example, starting from the first controllable switch, Roman numerals are used for sequential numbering (for example, the first controllable switch is numbered K1, the second controllable switch is numbered K2... The twelfth controllable switch is numbered K12). When installing the lead wires to the common terminal, they should be connected in sequence from the controllable switch numbered K1.

[0051] The controllable switch 1 corresponds to the multiple lead wires of the stepping motor 9 to be tested. In all the controllable switches 1, the normally open contacts are connected in parallel, and the normally closed contacts are connected in parallel. As can be seen from the above, there are multiple controllable switches 1. In all the controllable switches 1, the normally open contacts are connected in parallel by setting a wire, and the normally closed contacts are connected in parallel by setting a wire (a ground wire 3 for connecting all the normally closed contacts in parallel). The present invention sets a sampling resistor 5 on the ground wire 3.

[0052] In another embodiment of the present invention, the sampling resistor 5 can also be set on the power line 4 (the power line 4 is a line used to connect all normally closed contacts of the controllable switch 1 and connected to the power supply). When the sampling resistor 5 is set on the power line 4, the corresponding measuring points detected by the control module 7 also need to be changed to both ends of the sampling resistor 5.

[0053] At the same time, the present invention also provides an angle monitoring device 6 for measuring the number of rotation steps of the output shaft of the stepper motor 9 to be tested and a voltage measuring device for measuring the voltage of the sampling resistor 5. The number of rotation steps of the output shaft of the stepper motor 9 to be tested can be obtained through the angle monitoring device 6, and the voltage value of the sampling resistor 5 can be obtained through the voltage measuring device.

[0054] Each time the stepping motor 9 to be tested takes a step, its rotation angle is predetermined. Therefore, by measuring the rotation angle of the output shaft, the number of steps of the stepping motor 9 to be tested can be determined.

[0055] 2. Control module 7.

[0056] The control module 7 is a structure in the present invention that can run a control program and send a control signal.

[0057] The control module 7 is controlled and connected to the conduction switching module 2 (preferably in a wired connection mode, i.e., the connection is achieved through a signal line) and is used to realize individual control of each controllable switch 1 (the control module 7 sends a signal to the drive circuit of the controllable switch 1, and then the drive circuit changes the conduction state of the controllable switch 1). The control module 7 is signal-connected to the angle monitoring device 6 and is used to receive the rotation step number signal generated by the angle monitoring device 6. The control module 7 is signal-connected to the voltage measuring device and is used to receive the voltage signal generated by the voltage measuring device.

[0058] 3. Display module 8.

[0059] The display module 8 is connected to the control module 7 and is used to display the values ​​of the rotation step number signal and the voltage signal.

[0060] 4. Command input module.

[0061] The command input module is connected to the control module 7 by signal, and is used to input the measurement parameter command to the control module 7; the measurement parameter command is the type of the stepping motor 9 to be measured. The command input module can be a control button, and there are multiple control buttons, corresponding to two-phase four-wire, two-phase eight-wire, four-phase six-wire and four-phase twelve-wire motors, respectively. When a control button is triggered, the control module 7 can run the corresponding program to control each controllable switch 1 to change its conduction state.

[0062] The display module 8 and the command input module are both arranged on the operating table of the stepping motor lead wire automatic identification device. Therefore, the display module 8 and the command input module can be regarded as one module, namely, the input and display module 8 .

[0063] Specifically, in the present invention, the angle monitoring device 6 is an angle detection sensor (which can convert the rotation angle of the motor output shaft into the number of steps of the motor after obtaining it), and the voltage measuring device is a voltmeter.

[0064] Specifically, there are four to twelve controllable switches 1, and the number of controllable switches 1 is an even number. Preferably, the number of controllable switches 1 can be four, six, eight or twelve.

[0065] In the present invention, the number of controllable switches 1 is determined according to the type of stepper motor used. For example, twelve switches are required to realize automatic phase separation of all the above-mentioned stepper motors (to meet the detection requirements of four-phase twelve-wire motors). If automatic phase separation of four-phase twelve-wire motors is not required, the number of controllable switches 1 can be set according to the number of lead wires of the applicable stepper motor (it can be reduced appropriately).

[0066] The present invention provides a method for automatically identifying lead wires of a stepper motor. The method for automatically identifying lead wires of a stepper motor provided by the present invention uses the automatic identification device for lead wires of a stepper motor as described above to identify the lead wires of a stepper motor to be tested.

[0067] Specifically, the stepper motor lead wire automatic identification method includes:

[0068] Step 1: Connect the leads of the stepper motor to be tested to the common terminals of the controllable switch in sequence;

[0069] Step 2: select one of the leads as the first basic lead, change the state of the controllable switch corresponding to the first basic lead, then change the states of other controllable switches in turn and record the voltage of each lead, and take the lead with zero voltage value and the first basic lead to form a first group;

[0070] Step 3: Group the other leads according to step 2. If there are only four leads to be tested, then only the first group needs to be determined. If there are more than four leads to be tested, such as six or eight, then step 2 needs to be used to group them (each team contains two leads).

[0071] Step 4: For two different teams with a total of four leads, change the corresponding controllable switches in sequence and cycle in a cycle number of N to obtain the number of rotation steps of the motor shaft on the stepper motor to be tested. When the number of rotation steps is 4*N (4 is because there are four leads in the two teams), the lead sequence direction is the specified rotation direction of the stepper motor to be tested.

[0072] Step 5: When the number of rotation steps is not 4*N, replace one set of leads in the two teams, and then repeat step 4 until the number of rotation steps is 4*N. The lead sequence direction is the specified rotation direction of the stepper motor to be tested.

[0073] The present invention provides an automatic identification device for lead wires of a stepper motor. The lead wires of the stepper motor are connected to the contacts of a conduction switching module, the output shaft of the stepper motor is connected to an angle sensor, the control module controls the working state of the conduction switching module (the switching state of a controllable switch), and simultaneously collects the voltage on a sampling resistor and an angle change signal (angle change value) obtained by an angle detection sensor, thereby identifying the lead wires of the stepper motor.

[0074] Among them, the conduction switching module is composed of twelve controllable switches (such as relays or half-bridge drivers) and their driving circuits (driving circuits of controllable switches, used to change the switching state of controllable switches). The common end of the controllable switch is a contact connected to the lead-out line of the stepper motor. The normally closed contacts of the controllable switches (a total of twelve) are connected in parallel to the positive pole VCC of the power supply, and the normally open contacts are connected in parallel and connected to the power ground GND through a sampling resistor.

[0075] The stepper motor lead wire automatic identification device provided by the present invention is also provided with an input and display module, which includes motor type input and identification result display functions. The motor types include two-phase four-wire, two-phase eight-wire, four-phase six-wire and four-phase twelve-wire.

[0076] The control module controls the switch state of the conduction switching module, collects the voltage of the sampling resistor and the angle data obtained by the angle sensor, identifies the lead wire through the control program and controls the input and display modules to display the identification results. The control program is divided into two-phase four-wire program, two-phase eight-wire program, four-phase six-wire program and four-phase twelve-wire identification program according to the motor type.

[0077] The steps for identifying different types of motors are as follows:

[0078] The typical steps for identifying the lead wires of a two-phase four-wire stepper motor are as follows:

[0079] The two-phase four-wire stepper motor has four lead wires, which are respectively connected to the contacts of K1 to K4 (four controllable switches labeled K1 to K4) of the conduction switching module (the conduction switching module is equipped with twelve controllable switches in total, and the contacts are the common ends of the controllable switches, and the twelve controllable switches are arranged and numbered in sequence). In the input and display module, select the motor type as two-phase four-wire, and the control module starts the two-phase four-wire program.

[0080] The control module controls the switching of the controllable switch (1) (the controllable switch labeled K1), and reads the voltage on the sampling resistor and stores it in the array V[1]. The corresponding contact is stored in COM[1], that is, COM[1]=1. The lead of the contact (1) is marked as A+. Then the controllable switches (2) to (4) (the controllable switches labeled K2, K3, and K4) are controlled to switch in turn, and the voltage on the sampling resistor is read and stored in the voltage array V[2] to V[4]. Among the three voltage arrays obtained, one of the voltage values ​​is approximately zero, and the corresponding contact is stored in the array COM[2], that is, COM[2]=n2, and the corresponding lead of the COM[2] contact is marked as A-. The other two sets of voltage values ​​are approximately twice the voltage of V[1]. The controllable switch contact lead wires corresponding to the two sets of voltages are the two endpoints of a set of windings of the motor. The corresponding contacts are denoted as n3 and n4, and are stored in arrays COM[3] and COM[4], respectively, that is, COM[3]=n3, COM[4]=n4.

[0081] The controllable switches COM[1] to COM[4] are restored to the normally open contacts. The corresponding controllable switches are switched and restored in a cyclic manner according to the order of COM[2], COM[4], COM[1], and COM[3]. Then the angle of the angle sensor is read. After ten cycles, the angle of the angle sensor changes to forty times the step angle. This is used to determine whether the rotation direction is consistent with the specified direction. If the rotation direction is consistent with the specified direction, the lead corresponding to the COM[3] contact is marked as B+, and the lead corresponding to the COM[4] contact is marked as B-. If the directions are opposite, the values ​​of the corresponding contacts of COM[3] and COM[4] are exchanged. The lead line recognition result is displayed through the input and display module.

[0082] The contact numbers corresponding to the lead wire labels A+, A-, B+, and B- are COM[1] to COM[4].

[0083] Typical steps for identifying the lead wires of a two-phase eight-wire type (two-phase with backup winding) stepper motor:

[0084] The two-phase eight-wire stepper motor has eight lead wires, which are respectively connected to the contacts (1) to (8) of the conduction switching module. The motor type is selected as two-phase eight-wire in the input and display module, and the control module starts the two-phase eight-wire program. The control module controls the switch (1) and reads the voltage on the sampling resistor at the same time, stores it in the array V[1], and stores the corresponding contact in COM[1], that is, COM[1]=1. The lead wire of contact (1) is marked as A1+. Then the switch (2) to (8) is controlled and the voltage on the sampling resistor is read at the same time, and stores it in the voltage array V[2] to V[8]. Among the seven voltage arrays obtained, one of the voltage values ​​is approximately zero, and the corresponding contact number is stored in the array COM[2], that is, COM[2]=n2, and the corresponding lead wire of COM[2] contact is marked as A1-. Restore the controllable switch states corresponding to the COM[1] and COM[2] contacts, select one contact n3 from the remaining 6 contacts and store it in COM[3], control the controllable switch switching, and read the voltage on the sampling resistor and store it in the array V[3]. Then control the remaining controllable switches to switch in sequence, and read the voltage on the sampling resistor and store it in the voltage array V[4]~V[8]. Among the seven groups of voltage arrays obtained, one group has a voltage value of approximately zero, and the corresponding contact number is stored in the array COM[4], COM[4]=n4. The same method is used to obtain the contact numbers corresponding to COM[5]~COM[8]. At this time, the 8 lead wires of the stepper motor are divided into 4 groups.

[0085] The controllable switch returns to the normally open contact, and the corresponding controllable switch is switched and restored in a cyclic manner according to COM[2], COM[4], COM[1], and COM[3]. After ten cycles, the angle of the angle sensor is read to determine whether the motor is rotating normally and whether the rotation direction is consistent with the specified direction. If the motor rotates normally at forty times the step angle and the rotation direction is consistent with the specified direction, the corresponding contact lead wires of COM[1] to COM[4] are marked as A1+, A1-, B1+, and B1-; if the motor rotates forty times the step angle but the rotation direction is opposite to the specified direction, the COM[3] and COM[4] array data are exchanged; if the motor does not rotate normally, COM[3] and COM[5] data are exchanged, and COM[4] and COM[6] data are exchanged, and then COM[2], COM[4], and COM[1] are pressed again. ], COM[3] sequentially cycle control the switching and recovery of the corresponding controllable switches. After ten cycles, the angle of the angle sensor is read to determine whether the motor rotates normally and whether the rotation direction is consistent with the specified direction. If the motor rotates normally at forty times the step angle and the rotation direction is consistent with the specified direction, the corresponding contact lead wires of COM[1]~COM[4] are marked as A1+, A1-, B1+, B1-; if the motor rotates forty times the step angle but the rotation direction is opposite to the specified direction, the COM[3] and COM[4] array data are exchanged.

[0086] The controllable switch returns to the normally open contact, and the corresponding controllable switch is switched and restored in a cyclic manner according to the order of COM[2], COM[8], COM[1], and COM[7]. After ten cycles, the angle of the angle sensor is read to determine whether the motor rotates normally and whether the rotation direction is consistent with the specified direction. If the motor rotates normally at forty times the step angle and the rotation direction is consistent with the specified direction, the corresponding contact lead wires of COM[7] and COM[8] are marked as B2+ and B2-. If the motor rotates at forty times the step angle but the rotation direction is opposite to the specified direction, the array data of COM[7] and COM[8] are swapped. If the motor does not rotate normally, COM[5] and COM[7] exchange data, COM[6] and COM[8] exchange data, and then restore the controllable switch to the normally closed contact state. The corresponding controllable switch is switched and restored in the order of COM[2], COM[8], COM[1], and COM[7]. After ten cycles, the angle sensor is read to determine whether the motor rotation direction is consistent with the specified direction. If the motor rotates normally forty times the step angle and the rotation direction is consistent with the specified direction, the corresponding contact lead wires of COM[7] and COM[8] are marked as B2+ and B2-. If the motor rotates forty times the step angle but the rotation direction is opposite to the specified direction, the COM[7] and COM[8] array data are exchanged.

[0087] The controllable switch returns to the normally open contact, and the corresponding controllable switch is switched and restored in a cyclic manner according to the order of COM[6], COM[8], COM[5], and COM[7]. After ten cycles, the angle of the angle sensor is read to determine whether the motor rotates normally and whether the rotation direction is consistent with the specified direction. If the motor rotates normally at forty times the step angle and the rotation direction is consistent with the specified direction, the corresponding contact lead wires of COM[5] and COM[6] are marked as A2+ and A2-. If the motor rotates at forty times the step angle but the rotation direction is opposite to the specified direction, the array data of COM[5] and COM[6] are swapped.

[0088] The pinout identification results are displayed through the input and display module. The pinout labels A1+, A1-, B1+, B1-, A2+, A2-, B2+, B2- correspond to the contact numbers COM[1] to COM[8].

[0089] Typical steps for identifying the lead wires of a four-phase six-wire stepper motor:

[0090] The four-phase six-wire stepper motor has six lead wires, which are connected to the (1) to (6) contacts of the conduction switching module. The motor type is selected as four-phase six-wire in the input and display module, and the control module starts the four-phase six-wire program. The control module controls the controllable switches (1) to (6) to switch in sequence, and reads the voltage on the sampling resistor at the same time and stores it in the array V[1] to V[6]. Among the six groups of voltage arrays obtained, two groups of voltage values ​​are approximately twice the other four groups of voltages. The controllable switch contact lead wires corresponding to the two groups of voltages are the common ends of the motor windings. The corresponding contacts are recorded as n1 and n2, and are stored in the arrays COM[1] and COM[2], that is, COM[1] = n1 (AC common end lead contact), COM[2] = n2 (BD common end lead contact).

[0091] The controllable switch corresponding to the COM[1] contact is switched to the normally open contact, and the other controllable switches are restored to the normally closed contact. The sampling resistor voltage V[1] is read, and then the other four controllable switches (the four controllable switches other than COM[1] and COM[2]) are controlled to switch in turn. At the same time, the sampling resistor voltage is read and stored in the array V[2] to V[6]. Two of the four voltage groups are smaller than V[1], and the other two are larger than V[1]. The controllable switch contacts corresponding to the two voltage groups smaller than V[1] are numbered n3 and n4 and stored in the arrays COM[3] and COM[4]. The lead wires corresponding to the COM[3] and COM[4] contacts are the lead wires of the A and C phase windings, marked A and C respectively. In addition, there are two unmarked contacts (numbers are stored in the arrays COM[5] and COM[6].

[0092] The controllable switch returns to the normally closed contact state, and the corresponding controllable switch is switched and restored in a cyclic manner in the order of COM[3], COM[5], COM[4], and COM[6]. After ten cycles, the angle of the angle sensor is read to determine whether the rotation direction is consistent with the specified direction. If the rotation direction is consistent with the specified direction, the corresponding contact lead wires of COM[5] and COM[6] are B and D; if the directions are inconsistent, the contact numbers in the COM[5] and COM[6] arrays are swapped.

[0093] The pinout identification result is displayed through the input and display module. The pinouts marked AC common, BD common, A, C, B, D correspond to the contact numbers COM[1] to COM[6].

[0094] Typical steps for identifying the lead wires of a four-phase twelve-wire (four-phase with backup winding) stepper motor:

[0095] The four-phase twelve-wire stepper motor has twelve lead wires, which are respectively connected to the contacts (1) to (12) of the conduction switching module. The motor type is selected as four-phase twelve-wire in the input and display module, and the control module starts the four-phase twelve-wire program control. The control module controls the controllable switches (1) to (12) to switch in sequence, and reads the voltage on the sampling resistor at the same time and stores it in the array V[1] to V

[12] . Among the twelve groups of voltage arrays obtained, four groups of voltage values ​​are approximately twice the other eight groups of voltages. The controllable switch contact lead wires corresponding to the four groups of voltages are the common ends of the motor windings. The corresponding contacts are recorded as n1, n2, n3, and n4, and are stored in the arrays COM[1] to COM[4] respectively.

[0096] The controllable switch corresponding to the COM[1] contact is switched to the normally open contact, and the other controllable switches are restored to the normally closed contact. The sampling resistor voltage V[1] is read, and then the other eight controllable switches (the eight controllable switches other than COM[1] to COM[4]) are controlled to switch in turn. At the same time, the sampling resistor voltage is read and stored in the array V[5] to V

[12] . Two of the eight voltage groups are smaller than V[1], and the other six are larger than V[1]. The controllable switch contacts corresponding to the two voltage groups smaller than V[1] are numbered n5 and n6 and stored in the arrays COM[5] and COM[6]. The lead wires corresponding to the COM[5] and COM[6] contacts are the lead wires of the two-phase windings A1 and C1, marked as A1 and C1 respectively. The controllable switch corresponding to the COM[2] contact is switched to the normally open contact, and the other controllable switches are restored to the normally closed contact. The sampling resistor voltage V[2] is read, and then the other six controllable switches (the six controllable switches other than COM[1] to COM[6]) are controlled to switch in turn. At the same time, the sampling resistor voltage is read and stored in the array V[7] to V

[12] . Two of the six voltage groups are smaller than V[2], and the other four are larger than V[2]. The controllable switch contacts corresponding to the two voltage groups smaller than V[2] are numbered n7 and n8 and stored in the arrays COM[7] and COM[8]. The controllable switches corresponding to the COM[3] and COM[4] contacts are controlled in the same way, and the 12 lead wires are finally divided into four groups. COM[1], COM[5], and COM[6] form a group, COM[2], COM[7], and COM[8] form a group, COM[3], COM[9], and COM

[10] form a group, and COM[4], COM

[11] , and COM

[12] form a group, corresponding to the four sets of windings of a four-phase twelve-wire motor, where COM[1] to COM[4] are the common ends of the corresponding windings.

[0097] The controllable switch returns to the normally closed contact state, and the corresponding controllable switch is switched and restored in a cyclic manner according to COM[5], COM[7], COM[6], and COM[8]. After ten cycles, the angle of the angle sensor is read to determine whether the motor is rotating normally and whether the rotation direction is consistent with the specified direction. If the motor rotates normally at forty times the step angle and the rotation direction is consistent with the specified direction, the corresponding contact lead wires of COM[7] and COM[8] are B1 and D1. If the motor rotates normally at forty times the step angle but the direction is inconsistent, the contact numbers in the COM[7] and COM[8] arrays are swapped. If the motor cannot rotate normally by forty times the step angle, COM[2] and COM[3] exchange data, COM[7] and COM[9] exchange data, COM[8] and COM

[10] exchange data, and then restore the controllable switch to the normally closed contact state. The corresponding controllable switch is switched and restored in the order of COM[5], COM[7], COM[6], and COM[8]. After ten cycles, the angle sensor is read to determine whether the motor rotation direction is consistent with the specified direction. If the motor rotates normally by forty times the step angle and the rotation direction is consistent with the specified direction, the corresponding contact lead wires of COM[7] and COM[8] are B1 and D1. If the motor rotates by forty times the step angle but the rotation direction is opposite to the specified direction, the contact numbers in the COM[7] and COM[8] arrays are swapped.

[0098] The controllable switch returns to the normally closed contact state, and the corresponding controllable switch is switched and restored in a cyclic manner according to COM[5], COM

[11] , COM[6], and COM

[12] . After ten cycles, the angle of the angle sensor is read to determine whether the motor is rotating normally and whether the rotation direction is consistent with the specified direction. If the motor rotates normally at forty times the step angle and the rotation direction is consistent with the specified direction, the corresponding contact lead wires of COM

[11] and COM

[12] are B2 and D2. If the motor rotates normally at forty times the step angle but the direction is inconsistent, the contact numbers in the COM[7] and COM[8] arrays are swapped. If the motor cannot rotate normally by forty times the step angle, COM[3] and COM[4] exchange data, COM

[11] and COM[9] exchange data, COM

[12] and COM

[10] exchange data, and then restore the controllable switch to the normally closed contact state, and control the corresponding controllable switch switching and restoration in the order of COM[5], COM

[11] , COM[6], and COM

[12] . After ten cycles, read the angle of the angle sensor to determine whether the motor rotation direction is consistent with the specified direction. If the motor rotates normally by forty times the step angle and the rotation direction is consistent with the specified direction, the corresponding contact lead wires of COM

[11] and COM

[12] are B2 and D2; if the motor rotates by forty times the step angle but the rotation direction is opposite to the specified direction, the contact numbers in the COM

[11] and COM

[12] arrays are swapped.

[0099] The controllable switch returns to the normally closed contact state, and the corresponding controllable switch is switched and restored in a cyclic manner according to COM[9], COM

[11] , COM

[10] , and COM

[12] . After ten cycles, the angle of the angle sensor is read to determine whether the motor rotation direction is consistent with the specified direction. If the motor rotates normally at forty times the step angle and the rotation direction is consistent with the specified direction, the corresponding contact lead wires of COM[9] and COM

[10] are A1 and A2; if the motor rotates at forty times the step angle but the rotation direction is opposite to the specified direction, the contact numbers in the COM[9] and COM

[10] arrays are swapped.

[0100] The pinout identification result is displayed through the input and display module. The pinouts marked A1C1 common, B1D1 common, A2C2 common, B2D2 common, A1, C1, B1, D1, A2, C2, B2, D2 correspond to the contact numbers COM[1] to COM

[12] .

[0101] In the present invention, the conduction switching module is composed of twelve controllable switches and their driving circuits. The common end of the controllable switch is the contact point between the device and the lead wire of the stepper motor. The normally closed contact is connected in parallel to the positive pole of the external power supply, and the normally open contact is connected in parallel to the power supply ground through a sampling resistor.

[0102] The main function of the control module is to control the state of the conduction switching module, collect the sampling resistor voltage and the angle of the angle sensor, identify the lead wires through the program and control the input and display modules to display the identification results.

[0103] The superior effects of the present invention are: 1. All lead wires of the stepper motor can be automatically identified through one-time wiring, and the identification speed is fast; 2. Through software setting, it can be applicable to two-phase four-wire, two-phase backup eight-wire, four-phase six-wire and four-phase backup twelve-wire stepper motors.

[0104] The present invention provides a stepper motor lead-out automatic identification device. In the stepper motor lead-out automatic identification device provided by the present invention, the stepper motor lead-out is connected to the contact of the conduction switching module, the output shaft (the output shaft of the stepper motor) is connected to the angle sensor (the device used by the stepper motor lead-out automatic identification device to measure the angle), and the control module controls the working state of the conduction switching module while collecting the voltage on the sampling resistor and the angle change of the angle detection sensor, thereby achieving the purpose of identifying the stepper motor lead-out. After the present invention is put into use, only one wiring is required to automatically identify all the lead-outs of the stepper motor, with fast identification speed and high identification accuracy. The present invention can be applied to two-phase four-wire, two-phase backup eight-wire, four-phase six-wire and four-phase backup twelve-wire stepper motors, and has a wide applicability. It also has the advantages of simple operation, accurate identification, and high identification efficiency.

[0105] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A stepper motor lead wire automatic identification device, characterized in that: include: A controllable switch (1), the controllable switch comprising a normally closed contact for connecting to a power source, a normally open contact for grounding, and a common terminal for connecting to a lead wire of a stepping motor to be tested, the controllable switch being provided with a plurality of them and forming a conduction switching module (2), the controllable switches corresponding one to one to a plurality of lead wires of the stepping motor to be tested (9), and in all the controllable switches, the normally open contacts are connected in parallel, and the normally closed contacts are connected in parallel; A grounding wire (3) for connecting all the normally open contacts in parallel; A power line (4) for connecting all the normally closed contacts in parallel; A sampling resistor (5) provided on the ground line or the power line; An angle monitoring device (6) for measuring the number of rotation steps of the output shaft of the stepping motor to be measured; A voltage measuring device for measuring the voltage of the sampling resistor; a control module (7), the control module being control-connected to the conduction switching module and used to realize individual control of each of the controllable switches, the control module being signal-connected to the angle monitoring device and used to receive a rotation step number signal generated by the angle monitoring device, and the control module being signal-connected to the voltage measuring device and used to receive a voltage signal generated by the voltage measuring device; The lead wires of the stepper motor to be tested are identified by using the automatic lead wire identification device of the stepper motor, including: Step 1: Connect the leads of the stepper motor to be tested to the common terminals of the controllable switch in sequence; Step 2: Select one of the leads as the first basic lead, change the state of the controllable switch corresponding to the first basic lead, and record the sampling resistor voltage, then change the states of other controllable switches in turn and record the voltage of each lead, and group the leads according to the change relationship of the sampling resistor voltage value; Step 3: Group the other leads into teams according to step 2; Step 4: Change the corresponding controllable switch states of two different team leads in the prescribed order and cycle, the number of cycles is N, obtain the number of rotation steps of the motor shaft on the stepper motor to be tested, when the number of rotation steps is 4*N and the rotation direction is consistent with the prescribed direction, the lead sequence conforms to the prescribed rotation direction of the stepper motor to be tested, when the number of rotation steps is 4*N but the direction is inconsistent with the prescribed direction, it is necessary to change the order of one pair of lead wires, and after the change, the lead sequence conforms to the prescribed rotation direction of the stepper motor to be tested; Step 5. When the number of rotation steps is not 4*N, replace one set of leads in the two teams, and then repeat step 4 until the number of rotation steps is 4*N and the rotation direction is consistent with the specified direction. The lead sequence conforms to the specified rotation direction of the stepper motor to be tested.

2. The stepper motor lead wire automatic identification device according to claim 1, characterized in that: It also includes a display module (8), which is connected to the control module and is used to display the numerical values ​​of the rotation step number signal and the voltage signal.

3. The stepper motor lead wire automatic identification device according to claim 1, characterized in that: It also includes an instruction input module, which is connected to the control module by signal and is used to input measurement parameter instructions to the control module; The measurement parameter instruction is the type of the stepper motor to be measured.

4. The stepping motor lead wire automatic identification device according to claim 1, characterized in that: The angle monitoring device is an angle detection sensor.

5. The stepping motor lead wire automatic identification device according to claim 1, characterized in that: The voltage measuring device is a voltmeter.

6. The stepping motor lead wire automatic identification device according to any one of claims 1 to 5, characterized in that: The controllable switch is a controllable relay.

7. The stepping motor lead wire automatic identification device according to any one of claims 1 to 5, characterized in that: The controllable switch is a half-bridge circuit.

8. The stepping motor lead wire automatic identification device according to any one of claims 1 to 5, characterized in that: The number of the controllable switches is four to twelve, and the number of the controllable switches is an even number.