Disclosure of Invention
The invention mainly aims to provide a test device for a magnetic encoder plate, and aims to solve the technical problem that the existing test device for the magnetic encoder plate is low in efficiency.
In order to achieve the above purpose, the present invention provides a test apparatus for a magnetic encoder board, which includes a mounting table, and a test fixture, a magnetic code disc and a test motherboard which are located on the mounting table, wherein the top of the test fixture is provided with an accommodating cavity, the magnetic code disc is located right above the test fixture and is arranged at a preset distance from the test fixture, and the test motherboard is provided with a first power input interface for electrically connecting with an external power supply, a first power output interface for supplying power to the magnetic encoder board to be tested, a communication interface for outputting a detection result, and a data acquisition interface for electrically connecting with the magnetic encoder board to be tested.
Preferably, the test main board comprises a first circuit board and a second circuit board, the first power input interface and the communication interface are both located on the first circuit board, and the first circuit board is further provided with a second power output interface and a first signal interface; the first power output interface and the data acquisition interface are both positioned on the second circuit board, and the second circuit board is also provided with a second power input interface electrically connected with the second power output interface and a second signal interface electrically connected with the first signal interface.
Preferably, the accommodating cavity is internally provided with a probe electrically connected with the first power output interface, and the data acquisition interface can be electrically connected with the tested magnetic encoder board through a cable.
Preferably, the test equipment further comprises a display screen arranged on the mounting table and electrically connected with the test mainboard, and the display screen can display the voltage value at the first power input interface and the voltage value output by the first power output interface.
Preferably, the test equipment further comprises a power supply device electrically connected with the first power input interface.
Preferably, the mounting table comprises a test box, a mounting plate arranged on the top surface of the test box, and a mounting block arranged on the mounting plate in a sliding manner, the test fixture is positioned on the top surface of the test box, and the test mainboard is positioned inside the test box; the mounting block is positioned right above the test fixture and can slide towards or away from the test fixture, and the magnetic code disc is positioned on the mounting block.
Preferably, the test equipment further comprises a driving mechanism arranged on the mounting plate, and an output end of the driving mechanism is connected with the mounting block to drive the mounting block to move.
Preferably, the test box include the box body and with box body articulated lid, the lid can rotate and the shutoff around hinge department the open end of box body, mounting panel and tool all are located on the lid.
Preferably, the magnetic code disc and a Hall sensor on a tested magnetic encoder plate in the test fixture are spaced by 0.4 mm.
Preferably, the test equipment further comprises an identification device which is arranged on the mounting table and can communicate with an external terminal, and the identification device is used for collecting the number on the magnetic encoder board to be tested.
According to the test equipment for the magnetic encoder board, provided by the embodiment of the invention, after the tested magnetic encoder board is placed on the test fixture and the test mainboard is used for supplying power to the tested magnetic encoder board, whether the detected magnetic code disc of the tested magnetic encoder board is consistent with the preset value or not can be obtained, so that the working state of the tested magnetic encoder board is judged, the test mode of the magnetic encoder board is simplified, and the detection efficiency is improved.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be illustrative of the present invention and should not be construed as limiting the present invention, and all other embodiments that can be obtained by one skilled in the art based on the embodiments of the present invention without inventive efforts shall fall within the scope of protection of the present invention.
The invention provides a test device of a magnetic encoder board, as shown in fig. 1 to 3, the test device comprises a mounting table 100, a test fixture 200, a magnetic code disc and a test mainboard 300, the test fixture 200, the magnetic code disc and the test mainboard 300 are positioned on the mounting table 100, the top of the test fixture 200 is provided with an accommodating cavity 210, the magnetic code disc is positioned right above the test fixture 200 and is arranged at a preset distance from the test fixture 200, and the test mainboard 300 is provided with a first power input interface 311 for electrically connecting with an external power supply, a first power output interface 321 for supplying power to the magnetic encoder board to be tested, a communication interface 312 for electrically connecting with an external terminal and a data acquisition interface 322 for electrically connecting with the magnetic encoder board to be tested.
In this embodiment, the test fixture 200 has the accommodating cavity 210 thereon, and the shape of the accommodating cavity 210 can be set according to the measured magnetic encoder board, so that the measured magnetic encoder board can be fixed, and specifically, the accommodating cavity 210 is provided with the positioning column 220 which can be inserted into the mounting hole on the magnetic encoder board to be measured. Magnetic code wheel (being the magnetic ring) sets up on mount table 100 and is located the tool directly over, and with the tool interval preset distance, it can to make the hall sensor on the magnetic encoder board that is surveyed read the positional information of magnetic code wheel, it is concrete, place the magnetic encoder board that is surveyed on test fixture 200 for the convenience, can conveniently place the magnetic encoder board that is surveyed through changing the distance between test fixture 200 and the magnetic code dish, can be test fixture 200 relocation, also can be magnetic code dish relocation, it can to restore test fixture 200 and magnetic code dish to preset interval distance after placing the magnetic encoder board that is surveyed on test fixture 200 this moment. The test main board 300 is provided with a first power input interface 311 for electrically connecting with an external power supply, a first power output interface 321 for supplying power to the magnetic encoder board to be tested, a communication interface 312 for outputting a detection result and a data acquisition interface 322 for electrically connecting with the magnetic encoder board to be tested, after the test main board 300 is electrified, a hall sensor on the magnetic encoder board to be tested detects position data of the magnetic encoder board and transmits the position data to the test main board 300 through the data acquisition interface 322 for processing, if the position data of the magnetic encoder board obtained by processing by the test main board 300 is equal to preset data (because the magnetic encoder board is arranged on the mounting table 100 in a fixed state, the magnetic encoder board has unique position data, the magnetic encoder board to be tested can be judged to work normally only by obtaining the position data of the magnetic encoder in advance), if the position data of the magnetic encoder board is not equal, the magnetic encoder board to be tested is judged to work abnormally, then, the determination result is output to an external terminal (e.g., a computer) through the communication interface 312 for display, or may be output to a warning light disposed on the mounting platform 100, where a red light indicates that the magnetic encoder board to be tested is abnormal in operation, and a green light indicates that the magnetic encoder board to be tested is normal in operation, and the logic circuit and the processor on the test motherboard 300 may be implemented by referring to the existing implementable manner, so as to implement the above functions, which will not be described in detail herein. The first power output interface 321 and the data acquisition interface 322 are electrically connected to the magnetic encoder board to be tested, and specifically, conductive contacts electrically connected to the first power output interface 321 and the data acquisition interface 322 are provided in the test fixture 200, and the conductive contacts can be butted with corresponding points on the magnetic encoder board to be tested, so as to achieve electrical connection, or the first power output interface 321 and the data acquisition interface 322 are electrically connected to the magnetic encoder board to be tested through cables. In this embodiment, after the tested magnetic encoder board is placed on the testing jig 200 and the testing main board 300 is used to supply power to the tested magnetic encoder board, it is possible to obtain whether the detected magnetic encoder board detects the magnetic code disc and preset the numerical value, so as to determine the working state of the tested magnetic encoder board, simplify the testing mode of the magnetic encoder board, and facilitate the improvement of the detection efficiency.
In a preferred embodiment, as shown in fig. 3, the test motherboard 300 includes a first circuit board 310 and a second circuit board 320, the first power input interface 311 and the communication interface 312 are both located on the first circuit board 310, and the first circuit board 310 further has a second power output interface 313 and a first signal interface 314 thereon; the first power output interface 321 and the data acquisition interface 322 are both located on the second circuit board 320, and the second circuit board 320 further has a second power input interface 323 electrically connected to the second power output interface 313 and a second signal interface 324 electrically connected to the first signal interface 314. Preferably, the voltage input by the first power input interface 311 is 12V, and the voltage output by the first power output interface 321 and the voltage output by the second power output interface 313 are both 5V. At this time, the second circuit board 320 may be a servo drive controller board in the mechanical arm, a power input end in the servo drive controller board is the second power input interface 323, the debugging serial port is the second signal interface 324, and the magnetic encoder interface includes the first power output interface 321 and the data acquisition interface 322. Meanwhile, the communication interface 312 is preferably in the form of a USB serial port to facilitate data transmission with a computer. In this embodiment, the data collected by the magnetic encoder board to be tested is acquired through the data collection interface 322, then the processor on the second circuit board 320 is used to determine the data, the second signal interface 324 transmits the determination result to the first signal interface 341 to the first circuit board 310, and then the communication interface 312 transmits the determination result to the external terminal.
In a preferred embodiment, as shown in fig. 2, a probe 230 electrically connected to the first power output interface 321 is preferably disposed in the accommodating cavity 210, so as to conveniently supply power to the measured electromagnetic encoder board disposed in the accommodating cavity 210, and the data collecting interface 322 is electrically connected to the measured electromagnetic encoder board through a cable. At this time, the test fixture 200 has an avoiding gap 240 for the cable to pass through.
In a preferred embodiment, as shown in fig. 1, the testing apparatus further includes a display screen 400 disposed on the mounting platform 100, and the display screen 400 is electrically connected to the testing motherboard 300. At this time, it is preferable that the number of the display screens 400 is two, one of the display screens 400 is electrically connected to the first circuit board 310, and the other display screen 400 is electrically connected to the second circuit board 320, so that it is convenient to respectively observe whether the voltage value input to the first circuit board 310 is normal and whether the voltage input to the magnetic encoder board to be measured is normal through the two display screens 400.
In a preferred embodiment, the testing apparatus further includes a power supply device disposed on the mounting platform 100, and the power supply device is preferably a power supply capable of outputting a preset voltage value, such as an existing adapter, so that the utility power can be converted into a voltage value conforming to the testing motherboard 300 (i.e. the first circuit board 310), such as a voltage of 12V provided by the power supply device for the testing motherboard 300. Of course, the power supply device may also be a rechargeable battery (e.g., a lithium battery), thereby facilitating the testing of the testing device in different environments. At this time, as shown in fig. 1, a power switch 700 for controlling the on/off of the power supply circuit between the power supply device and the test main board 300 may be further disposed on the mounting board 100, so as to conveniently control the start of the test equipment.
In a preferred embodiment, as shown in fig. 1 and 4, the mounting table 100 preferably includes a test box 110, a mounting plate 120, and a mounting block 130, the mounting plate 120 being disposed on the top surface of the test box 110 in a vertical state, and the mounting block 130 being slidably disposed on the mounting plate 120 and being slidable in a vertical direction. At this time, the test fixture 200 is also located on the top surface of the test box 110 and located right below the mounting block 130, a preset distance is formed between the test fixture 200 and the lower limit of the mounting block 130, the magnetic code disc is located on the mounting block 130, and the test motherboard 300 is located in the internal space of the test box 110. At this time, in order to facilitate the mounting block 130 to be fixed at the lower limit during the test, a return spring having a predetermined elastic coefficient (facilitating the manual pushing of the mounting block 130 to slide) may be further provided, and both ends of the return spring are respectively connected to the mounting block 130 and the mounting plate 120, so that the mounting block 130 is limited at the lower limit thereof by the elastic force of the return spring. In this embodiment, the magnetic code disk is disposed on the mounting block 130, so that the magnetic encoder board to be tested can be conveniently placed in the test fixture 200 after the mounting block 130 moves upward. At this time, it is preferable that both the display screens 400 are rotatably connected to the mounting plate 120, so that the angle of the display screens 400 can be conveniently adjusted to conveniently adapt to different users to observe the voltage value.
In a preferred embodiment, as shown in FIG. 1, the testing apparatus further comprises a driving mechanism 500 disposed on the mounting plate 120, in which case the driving of the mounting block 130 can be manual (e.g., a linkage mechanism) or automatic (e.g., a lead screw assembly + a motor). In this embodiment, the driving mechanism 500 preferably includes a handle with one end hinged to the mounting plate 120 and a connecting rod with two ends hinged to the handle and the mounting block 130, so that the mounting block 130 can be moved by moving the handle.
In a preferred embodiment, the test box 110 preferably includes a box body and a lid, and one side of the lid is hinged to one side of the box body and can be pivoted out of the hinged position to close off the open end of the box body. At this time, the mounting plate 120 and the test fixture 200 are both located on the lid. The testing box 110 may further include a fixing structure to fix the box cover on the box body, such as by screws or hanging. In this embodiment, through being connected lid and box body articulated mode to the convenience is installed and is maintained the test mainboard 300 that is located the box body.
In a preferred embodiment, the magnetic code disc on the mounting block 130 is preferably spaced 0.4mm from the hall sensor on the magnetic encoder board to be tested in the test fixture 200, that is, when the mounting block 130 is located at the lower limit position, the hall sensor and the magnetic code disc are spaced 0.4mm from each other, so that the hall sensor can conveniently read the position information of the magnetic code disc.
In a preferred embodiment, as shown in fig. 1, in order to record the test information of the magnetic encoder board to be tested, it is preferable that the mounting table 100 is further provided with an identification device 600 capable of communicating with an external terminal, and the specific device can be arranged according to the serial number information pattern set on the magnetic encoder board to be tested, and if the serial number information is a two-dimensional code, a bar code or a numeric string, a code scanning gun corresponding to the serial number information pattern is adopted. The identification device 600 and the external terminal may communicate with each other by transmitting information obtained by scanning to the test motherboard 300, and then the test motherboard 300 associates the serial number information with the test information of the tested magnetic encoder board and sends the serial number information to the external terminal, thereby being beneficial to avoiding the situation that the serial number information is not matched with the test information. Meanwhile, the identification device 600 may be directly connected to the external terminal, so as to directly send the number information of the measured magnetic encoder board to the external terminal. Of course, the recognition device 600 may be provided separately, and is not necessarily provided on the mounting table 100.
The above is only a part or preferred embodiment of the present invention, and neither the text nor the drawings should limit the scope of the present invention, and all equivalent structural changes made by the present specification and the contents of the drawings or the related technical fields directly/indirectly using the present specification and the drawings are included in the scope of the present invention.