Testing device of photoelectric encoder

By designing an optoelectronic encoder testing device including a relay module and an offline downloader module, the problem of inefficient testing of single-board photoelectronic encoder in the prior art is solved, and batch firmware download and efficient testing are realized.

CN223038114UActive Publication Date: 2025-06-27上海金著信息科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202421965475.X
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2025-06-27
Estimated Expiration
2034-08-14

AI Technical Summary

Technical Problem

The prior art is difficult to efficiently test and firmware download the optoelectronic encoder board, resulting in inefficient testing.

Method used

A test device including a first power module, a second power module, a third power module, a relay module, a main control module, an offline downloader module and an optoelectronic encoder assembly is designed, and the test firmware is downloaded in batches on multiple optoelectronic encoder boards through the relay module and the offline downloader module.

Benefits of technology

It improves the testing efficiency of the optoelectronic encoder board, reduces the time to wait for downloading the test firmware, facilitates testers to conduct tests faster, and improves product quality and production efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223038114U_ABST
    Figure CN223038114U_ABST
Patent Text Reader

Abstract

The utility model relates to the field of testing devices, in particular to a testing device of a photoelectric encoder. The device comprises a first power supply module, a second power supply module, a third power supply module, a relay module, a main control module, an off-line downloader module and a photoelectric encoder makeup. The photoelectric encoder makeup is provided with a plurality of photoelectric encoder single boards; the first power supply module, the second power supply module, the third power supply module and the off-line downloader module are respectively connected with the relay module; the third power supply module is connected with the off-line downloader module through the relay module; the relay module is respectively connected with the main control module and each photoelectric encoder single board; the main control module is connected with the photoelectric encoder single boards. The testing efficiency of the photoelectric encoder single boards in the photoelectric encoder makeup is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the field of test devices, in particular to a test device for an optical encoder. Background Art

[0002] An optical encoder is a sensor used to measure the position of mechanical motion, usually composed of a light source, a photosensitive receiving device, and a coding disk. Since the area of a single board of an optical encoder is small, when manufacturing a single board of an optical encoder, multiple single boards of optical encoders are typeset on the same PCB board to form an optical encoder panel, so that the area of the PCB board can be utilized to the maximum. However, in this manufacturing method, it is difficult to perform functional tests and firmware downloads on the single board of the optical encoder, reducing the test efficiency of the single board of the optical encoder. Therefore, how to improve the test efficiency of the single board of the optical encoder has become a technical problem to be solved. Summary of the Utility Model

[0003] An embodiment of the utility model discloses a test device for an optical encoder, which is used to improve the test efficiency of a single board of an optical encoder.

[0004] An embodiment of the utility model provides a test device for an optical encoder, including: a first power supply module, a second power supply module, a third power supply module, a relay module, a main control module, an offline downloader module, and an optical encoder panel; the optical encoder panel is provided with a plurality of single boards of optical encoders; the first power supply module, the second power supply module, the third power supply module, and the offline downloader module are respectively connected to the relay module; the third power supply module is connected to the offline downloader module through the relay module; the relay module is respectively connected to the main control module and each single board of the optical encoder; the main control module is respectively connected to each single board of the optical encoder.

[0005] Optionally, a plurality of offline downloaders are arranged in the offline downloader module, each offline downloader is provided with two data channels, each data channel is provided with four data output terminals, and every four data output terminals are connected to two single boards of the optical encoder through the relay module.

[0006] Optionally, the relay module includes a first relay, a second relay, a third relay, and a fourth relay; the number of the third relays is the same as the number of the offline downloaders, and the number of the fourth relays is four times that of the offline downloaders;

[0007] The first power supply module and the main control module are respectively connected to the coils of the first relay, the second relay, each of the third relays, and each of the fourth relays;

[0008] The second power supply module is connected to one end of the contact of the first relay, and the other end of the contact of the first relay is connected to each of the photoelectric encoder single boards;

[0009] One end of the third power supply module is connected to one end of the contact of the second relay, and the other end of the contact of the second relay is respectively connected to each of the photoelectric encoder single boards;

[0010] The other end of the third power supply module is connected to one end of the contact of the third relay, and the other end of the contact of the third relay is connected to the offline downloader;

[0011] Each two of the data output terminals are respectively connected to one end of the contact of a fourth relay, and are connected to two of the photoelectric encoder single boards through the contact of the fourth relay.

[0012] Optionally, a first safety resistor is further included;

[0013] The other end of the contact of the first relay is connected to one end of the first safety resistor, and the other end of the first safety resistor is connected to each of the photoelectric encoder single boards.

[0014] Optionally, the number of the third power supply modules is the same as the number of the offline downloaders;

[0015] Each of the third power supply modules is connected to a third relay and is connected to an offline downloader through the third relay.

[0016] Optionally, the main control module includes a PC and an IO module;

[0017] The PC is respectively connected to each of the photoelectric encoder single boards and the IO module;

[0018] The IO module is respectively connected to the first power supply module, the coil of the first relay, the coil of the second relay, the coils of each of the third relays, and the coils of each of the fourth relays.

[0019] Optionally, the photoelectric encoder panel includes five groups of photoelectric encoder panel sub-units, and each group of the photoelectric encoder panel sub-units includes four photoelectric encoder single boards; the number of the offline downloaders is five.

[0020] Optionally, the photoelectric encoder single board is provided with a second power input terminal, a third power input terminal, a grounding terminal, a data receiving terminal, a control terminal, a light source control terminal, and is provided with a photosensor;

[0021] The second power input terminal is connected to the second power supply module;

[0022] The third power input terminal is connected to the third power module;

[0023] The data receiving end is respectively connected to the off-line downloader through the relay module;

[0024] The control end is connected to the main control module;

[0025] The light source control end is connected to the LED lamp;

[0026] The optical sensor is disposed opposite to the LED lamp.

[0027] Optionally, it further includes: a main power supply;

[0028] The main power supply is respectively connected to the first power module, the second power module, the third power module, and the main control module.

[0029] Optionally, it further includes a rocker switch;

[0030] The first power module, the second power module, and the third power module are respectively connected to the rocker switch and are connected to the main power supply through the rocker switch.

[0031] It can be seen from the above technical solutions that the embodiments of the present invention have the following advantages:

[0032] The embodiments of the present invention provide a test device for an optical encoder, including a first power module, a second power module, a third power module, a relay module, a main control module, an off-line downloader module, and an optical encoder panel; the optical encoder panel is provided with a plurality of optical encoder single boards; the first power module, the second power module, the third power module, and the off-line downloader module are respectively connected to the relay module; the third power module is connected to the off-line downloader module through the relay module; the relay module is respectively connected to the main control module and each of the optical encoder single boards; the main control module is respectively connected to each of the optical encoder single boards.

[0033] In the present utility model, a first power supply module is connected to a relay module for supplying power to the relay module. A second power supply module is connected to the relay module and is connected to a photoelectric encoder board through the relay module for supplying a test power supply to the photoelectric encoder board. A third power supply module is connected to the relay module and is connected to the photoelectric encoder board and an off-line downloader module through the relay module for supplying a test power supply to the photoelectric encoder board and supplying power to the off-line downloader module. A main control module is connected to the relay module for switching the on / off states of the relays in the relay module. The off-line downloader module is connected to the relay module and is connected to each photoelectric encoder board through the relay module, so that the off-line downloader module can download test firmware to multiple photoelectric encoder boards in a batch manner, thereby reducing the waiting time of each photoelectric encoder board in the photoelectric encoder board for waiting to download the test firmware, facilitating the tester to test the photoelectric encoder board faster, and improving the test efficiency of the photoelectric encoder board. Each photoelectric encoder board is connected to the main control module for uploading test results to the main control module. Therefore, the test device provided by the present utility model can improve the test efficiency of the photoelectric encoder board in the photoelectric encoder board. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present utility model or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present utility model. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0035] Figure 1 It is a schematic structural diagram of a photoelectric encoder test device provided in an embodiment of the present utility model;

[0036] Figure 2 It is a schematic structural diagram of an off-line downloader provided in an embodiment of the present utility model;

[0037] Figure 3 It is a schematic structural diagram of a photoelectric encoder board provided in an embodiment of the present utility model;

[0038] Figure 4 It is another schematic structural diagram of a photoelectric encoder test device provided in an embodiment of the present utility model. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0039] The present utility model provides a photoelectric encoder test device for improving the test efficiency of a photoelectric encoder board.

[0040] The technical solution of the present utility model will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present utility model, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present utility model without creative efforts shall fall within the protection scope of the present utility model.

[0041] In the description of the present utility model, it should be noted that the orientation or positional relationship indicated by the terms "front", "rear", "upper", "lower", "two ends", "center", "horizontal", "inner", "outer", etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present utility model and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be construed as a limitation to the present utility model. The relational terms such as "first", "second", etc. are only used to distinguish one entity from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities.

[0042] Unless otherwise clearly specified and defined, the terms "installation", "connection", "connection", "fixation", "setting" shall be understood in a broad sense. For example, it may be a fixed connection, a detachable connection, or an integral connection; it may be a mechanical connection, a direct connection, or an indirect connection through an intermediate medium, and it may be the communication inside two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present utility model can be understood according to specific circumstances.

[0043] Please refer to Figures 1-4 , an embodiment of a test device for an optical encoder provided in an embodiment of the present utility model includes: a first power supply module 1, a second power supply module 2, a third power supply module 3, a relay module 5, a main control module 6, an off-line downloader module 4, and an optical encoder panel 7; the optical encoder panel 7 is provided with a plurality of optical encoder single boards; the first power supply module 1, the second power supply module 2, the third power supply module 3, and the off-line downloader module 4 are respectively connected to the relay module 5; the third power supply module 3 is connected to the off-line downloader module 4 through the relay module 5; the relay module 5 is respectively connected to the main control module 6 and each optical encoder single board; the main control module 6 is respectively connected to each optical encoder single board.

[0044] It should be noted that the number of the optical encoder single boards can be set according to actual production requirements.

[0045] In this embodiment, the first power supply module 1 is connected to the relay module 5 and is used to supply power to the relay module 5. The second power supply module 2 is connected to the relay module 5 and is connected to the photoelectric encoder board 7 through the relay module 5, and is used to supply test power to the photoelectric encoder single board. The third power supply module 3 is connected to the relay module 5 and is connected to the photoelectric encoder board 7 and the offline downloader module 4 through the relay module 5, and is used to supply test power to the photoelectric encoder single board and supply power to the offline downloader module 4. The offline downloader module 4 is connected to the relay module 5 and is connected to each photoelectric encoder single board through the relay module 5, so that the offline downloader module 4 can download the test firmware to each photoelectric encoder single board in a batch manner, thereby improving the test efficiency of the photoelectric encoder single board. Each photoelectric encoder single board is connected to the main control module 6 and is used to upload the test results to the main control module 6. The main control module 6 is connected to the relay module 5 and is used to switch the on / off states of the relays in the relay module 5, thereby switching the photoelectric encoder single boards connected to the offline downloader module 4, so that the offline download module can transfer the test firmware to the photoelectric encoder single boards faster, thereby improving the test efficiency.

[0046] Among them, the offline downloader module 4 is used to download the test firmware. Among them, the test firmware is used for photoelectric encoder testing. When the photoelectric encoder single board receives the test firmware, the tester can perform corresponding functional tests on the photoelectric encoder single board, such as detecting the output signal, photoelectric reception function, power supply function, communication function, etc. of the photoelectric encoder.

[0047] It can be understood that the test firmware is an existing test tool and is prepared in advance by the tester before the test. The improvement in this embodiment is not to improve the test firmware, but to improve the connection structure between the offline downloader module 4 and the photoelectric encoder board 7, so that the offline downloader module 4 can simultaneously download the test firmware to multiple photoelectric encoders in the photoelectric encoder board 7, so that each photoelectric encoder in the photoelectric encoder board 7 can complete the deployment of the test firmware faster, enabling the tester to perform functional tests on multiple photoelectric encoders in a batch manner and improving the test efficiency.

[0048] Therefore, the test device provided in this embodiment can improve the test efficiency of the photoelectric encoder single boards in the photoelectric encoder board 7, avoid the problem that the existing production method of photoelectric encoder single boards is difficult to perform functional tests and firmware downloads of photoelectric encoders, reduce the test efficiency of photoelectric encoders, and by using the test device provided in this embodiment to test the photoelectric encoder single boards, defective single boards can be intercepted in time when defective single boards are found, so as to reduce the defective rate of products, improve product quality and production efficiency, and avoid the cumbersome processes of disassembly, replacement, and repair that are required when defective single boards are found after installation.

[0049] In addition, in practical applications, the master control module 6 can also switch the on / off states of the relays in the relay module 5 that are used to connect the offline downloader module 4 and the single-board optical encoder, so that each single-board optical encoder can upload the test results one by one.

[0050] In a specific embodiment, a number of offline downloaders are provided in the offline downloader module 4. Each offline downloader is provided with two data channels, and each data channel is provided with four data output terminals. Every four data output terminals are connected to two single-board optical encoders through the relay module 5.

[0051] It should be noted that the offline downloader in this embodiment is a one-to-two downloader, which has two data channels for transmitting test firmware to the single-board optical encoder. Among them, each data channel is provided with four data output terminals, and every four data output terminals are connected to two single-board optical encoders through the calculator module.

[0052] Therefore, in this embodiment, by using the relay module 5 to connect the offline downloader and the single-board optical encoder, the offline downloader can be connected to more single-board optical encoders, thereby improving the deployment efficiency of the test firmware of each single-board optical encoder in the optical encoder layout 7, so as to improve the test efficiency of the single-board optical encoder.

[0053] In an example, the XW16Pro offline downloader can be used as the offline downloader.

[0054] In a specific embodiment, the relay module 5 includes a first relay, a second relay, a third relay, and a fourth relay; the number of the third relays is the same as the number of the offline downloaders, and the number of the fourth relays is four times that of the offline downloaders;

[0055] The first power module 1 and the master control module 6 are respectively connected to the coils of the first relay, the second relay, each third relay, and each fourth relay;

[0056] The second power module 2 is connected to one end of the contact of the first relay, and the other end of the contact of the first relay is connected to each single-board optical encoder;

[0057] One end of the third power module 3 is connected to one end of the contact of the second relay, and the other end of the contact of the second relay is respectively connected to each single-board optical encoder;

[0058] The other end of the third power module 3 is connected to one end of the contact of the third relay, and the other end of the contact of the third relay is connected to the offline downloader;

[0059] Every two data output terminals are respectively connected to one end of the contact of a fourth relay and are connected to two single-board optical encoders through the contact of the fourth relay.

[0060] It should be noted that the first relay and the second relay are single-pole single-throw relays, and the third relay and the fourth relay are double-pole double-throw relays.

[0061] The first power supply module 1 is used to provide a power source for the coils of the first relay, the second relay, the third relay, and the fourth relay. The main control module 6 outputs corresponding conduction signals to energize the coils of the corresponding relays, so that the contacts of the corresponding relays are closed to conduct the loop where the relay is located.

[0062] The second power supply module 2 is connected to the optical encoder single board through the contact of the first relay. When the coil of the first relay is energized, the contact of the first relay performs a closing action to connect the optical encoder single board to the second power supply module 2.

[0063] One end of the third power supply module 3 is connected to each optical encoder single board through the contact of the second relay and is used to provide electrical energy for the optical encoder single board. When the coil of the second relay is energized, the contact of the second relay performs a closing action to connect each optical encoder single board to the third power supply module 3.

[0064] The other end of the third power supply module 3 is also connected to the off-line downloader through the contact of the third relay and is used to provide electrical energy for the off-line downloader. When the coil of the third relay is energized, the contact of the third relay performs a closing action to connect the off-line downloader to the third power supply module 3 and start up when powered on.

[0065] Two data channels are set in the off-line downloader, and each data channel is respectively provided with four data receiving ends. Among them, every two data receiving ends are respectively connected to a contact of the fourth relay and are connected to the single boards of two optical encoders through the contact of the fourth relay. The fourth relay is a double-pole double-throw relay with a pair of moving contacts and two pairs of static contacts. The four data receiving ends are respectively the SWDIO end, the CLK end, the GND end, and the VCC end. One ends of the SWDIO end and the CLK end are respectively connected to the two moving contacts of the fourth relay. The two static contacts of the fourth relay are respectively connected to a single board of an optical encoder, and the other two static contacts of the fourth relay are respectively connected to a single board of an optical encoder. The GND end and the VCC end are connected to the single boards of two optical encoders through the contact of another fourth relay.

[0066] Figure 2 The connection relationship between an off-line downloader and four optical encoder single boards is shown, such as Figure 2As shown, the offline downloader is respectively connected to the optoelectronic encoder single board 1#, the optoelectronic encoder single board 2#, the optoelectronic encoder single board 3#, and the optoelectronic encoder single board 4#. Taking the connection of the data output end of one of the data channels of the offline downloader as an example, the SWDIO end and the CLK end are connected to a pair of moving contacts of the fourth relay. The two static contacts of the fourth relay are respectively connected to the optoelectronic encoder single board 1# and the optoelectronic encoder single board 2#. The GND end and the VCC end are connected to the two moving contacts of another fourth relay, and the two static contacts of another fourth relay are respectively connected to the optoelectronic encoder single board 1# and the optoelectronic encoder single board 2#. As Figure 2 shown, when the coil of the fourth relay is not powered on, the SWDIO end, the CLK end, the GND end, and the VCC end are connected to the optoelectronic encoder 1#. When the coil of the fourth relay is powered on, the SWDIO end, the CLK end, the GND end, and the VCC end are connected to the optoelectronic encoder 2#.

[0067] Therefore, in this embodiment, the offline downloader can be connected to four optoelectronic encoder single boards through the fourth relay, thereby improving the test efficiency of the optoelectronic encoder single boards. And by turning on and off the fourth relay, the optoelectronic encoder single board connected to the offline downloader can be switched, so that the optoelectronic encoder single board can be tested more conveniently.

[0068] In a specific embodiment, the number of the third power modules 3 is the same as the number of the offline downloaders;

[0069] Each third power module 3 is connected to a third relay and is connected to an offline downloader through the third relay.

[0070] It should be noted that in this embodiment, the on-off states of the third relays can be controlled to control the power-on and power-off states of the offline downloaders, so as to start or close the offline downloaders.

[0071] In a specific embodiment, the main control module 6 includes a PC and an IO module;

[0072] The PC is respectively connected to each optoelectronic encoder single board and the IO module;

[0073] The IO module is respectively connected to the first power module 1, the coils of the first relay, the coils of the second relay, the coils of the third relays, and the coils of the fourth relays.

[0074] It should be noted that the PC is connected to the IO module and each single-board optical encoder through RS485 twisted pair. The IO module is provided with multiple output interfaces, and each output interface is correspondingly connected to the coil of a relay. The first power supply module 1 is used to provide the power source for the relay module 5 and the IO module.

[0075] The working principle of this embodiment is as follows: The PC outputs a control signal to the output interface of the IO module and transmits it to the corresponding relay through the output interface of the IO module, so that the corresponding relay coil is powered on and conducts, and then the contacts of the corresponding relay act.

[0076] In one embodiment, the model of the IO module can be KCK-10-32DO.

[0077] In a specific embodiment, the single-board optical encoder is provided with a second power input terminal, a third power input terminal, a grounding terminal, a data receiving terminal, a control terminal, a light source control terminal, and is provided with a light sensor;

[0078] The second power input terminal is connected to the second power supply module 2;

[0079] The third power input terminal is connected to the third power supply module 3;

[0080] The data receiving terminal is respectively connected to the off-line downloader through the relay module 5;

[0081] The control terminal is connected to the main control module 6;

[0082] The light source control terminal is connected to the LED lamp;

[0083] The light sensor is arranged opposite to the LED lamp.

[0084] It should be noted that the second power supply module 2 and the third power supply module 3 respectively provide different test power supplies for the single-board optical encoder. The data receiving terminal of the optical encoder is respectively connected to the four data output terminals of the off-line download through the fourth relay. Among them, the data receiving terminal of the optical encoder corresponds to the four data output terminals of the off-line downloader, which are the SWDIO terminal, the CLK terminal, the GND terminal, and the VCC terminal respectively. Among them, the SWDIO terminal of the optical encoder is connected to the SWDIO terminal of the off-line downloader, the CLK terminal of the optical encoder is connected to the CLK terminal of the off-line downloader, the GND terminal of the optical encoder is connected to the GND terminal of the off-line downloader, and the VCC terminal of the optical encoder is connected to the VCC terminal of the off-line downloader.

[0085] The control terminal of the optical encoder is connected to the PC in the main control module 6 through RS485 twisted pair for uploading the test results to the PC.

[0086] The light source control terminal and the GND terminal of the photoelectric encoder are connected to the LED, which is used to turn on or off the LED lamp.

[0087] The LED is arranged opposite to the optical sensor, which is convenient for testers to test the photosensitive function of the photoelectric encoder. Among them, the LED is preferably a blue LED.

[0088] In one example, the specification of the second power supply module 2 can be 3.7V / 4A, and the specification of the third power supply module 3 can be 5V / 4A. As Figure 3 shown, 3.6V represents the second power input terminal, 5V represents the third power input terminal, TP10_LED represents the optical signal input terminal, and the GND below 5V is used to short-circuit the common ground terminal of the 3.6V power supply and the 5V power supply.

[0089] In a specific embodiment, it further includes a first safety resistor R1;

[0090] The other end of the contact of the first relay is connected to one end of the first safety resistor R1, and the other end of the first safety resistor R1 is connected to each photoelectric encoder single board.

[0091] It should be noted that the first safety resistor R1 is a 1A resettable fuse resistor, which has functions such as overcurrent and overheat protection and automatic recovery. Under normal circumstances, the first safety resistor R1 presents a low-resistance state, enabling the circuit to work normally. When a fault occurs in the circuit, such as a short circuit or abnormal current, it presents a high-resistance state. When the fault is eliminated, it can return to the low-resistance state.

[0092] Therefore, in this embodiment, by setting the first safety resistor R1 between the first relay and the photoelectric encoder single board, the safety of the circuit is improved.

[0093] In a specific embodiment, it further includes a second safety resistor R2;

[0094] The second safety resistor R2 is connected to the third power supply module 3 and is connected to one end of the contact of the second relay.

[0095] It should be noted that the second safety resistor R2 is a 1A resettable fuse resistor, and its principle and function are the same as those of the first safety resistor R1. For details, please refer to the first safety resistor R1, and no further description will be given here.

[0096] In a specific embodiment, it further includes: a main power supply;

[0097] The main power supply is respectively connected to the first power supply module 1, the second power supply module 2, the third power supply module 3, and the main control module 6.

[0098] It should be noted that the main power supply can adopt a 220VAC control power supply. Among them, the main power supply is respectively connected to the first power supply module 1, the second power supply module 2, the third power supply module 3, and the PC, and is used to provide electrical energy for the first power supply module 1, the second power supply module 2, the third power supply module 3, and the PC.

[0099] In a specific embodiment, it further includes a rocker switch;

[0100] The first power supply module 1, the second power supply module 2, and the third power supply module 3 are respectively connected to the rocker switch and are connected to the main power supply through the rocker switch.

[0101] It should be noted that the rocker switch in this embodiment adopts a manual rocker switch, which is used to start or close the connection between the main power supply and the first power supply module 1, the second power supply module 2, and the third power supply module 3. Among them, the manual rocker switch is as Figure 4 shown as SW1 in the figure.

[0102] In a specific embodiment, the first power supply module 1 can adopt a power supply module with a specification of 24V / 5A.

[0103] In a specific embodiment, the photoelectric encoder platen 7 includes five groups of photoelectric encoder platen sub-units, and each group of photoelectric encoder platen sub-units includes four photoelectric encoder single boards; the number of off-line downloaders is five.

[0104] It should be noted that this embodiment takes the photoelectric encoder platen 7 specified as as an example to illustrate the device provided by the present invention.

[0105] Among them, the photoelectric encoder platen 7 can be divided into five groups of photoelectric encoder platen sub-units. Among them, each group of photoelectric encoder platen sub-units can contain four photoelectric encoder single boards. Therefore, five off-line downloaders can be set according to the number of photoelectric encoder single boards, and the number of the third power supply modules 3 is set to five. The five third power supply modules 3 are respectively connected to the off-line downloaders through five third relays. Among them, the third relay and the off-line downloader can be specifically connected through twisted pairs.

[0106] The five off-line downloaders are respectively connected to each photoelectric encoder single board through twenty fourth relays, and are specifically connected to the photoelectric encoder through a 3-wire harness. The number of the harnesses can be 4*5 = 20 bundles. The first relay is respectively connected to each photoelectric encoder single board through the first safety resistor R1. Among them, the first safety resistor R1 is specifically connected to each photoelectric encoder single board through 20 bundles of twisted pairs. The PC is specifically connected to each photoelectric encoder single board through 20 bundles of RS485 twisted pairs and is connected to the IO module through the RS485 twisted pairs.

[0107] Therefore, in this embodiment, the number of the first relays can be one, the number of the second relays can be one, the number of the third relays can be five, and the number of the fourth relays can be twenty.

[0108] As Figure 4 shown, in this embodiment, the coils of the first relay, the second relay, the third relay, and the fourth relay can be arranged in the same module. As shown by the relays KA1-KA27 in Figure 4 , where KA1 represents the coil of the first relay, KA2 represents the coil of the second relay, KA3-KA7 respectively represent the coils of the five third relays, and KA8-KA27 respectively represent the coils of the twenty fourth relays. The DO1-DO27 output interfaces of the IO module are respectively connected to KA1-KA27. K1 represents the contact of the first relay, K2 represents the contact of the second relay, and K3-K7 represent the contacts of the five third relays.

[0109] In this embodiment, the PC can output a control signal to the IO module and output it to the corresponding relay coil through the IO module, so that the corresponding relay coil is powered on and conducts, thereby triggering the corresponding relay contact to close and making the corresponding circuit conduct. For example: The PC can conduct K1-K8, so that the optoelectronic encoder board connected to K8 can receive the test firmware transmitted by the offline downloader for functional testing, and upload the test results to the PC after the test. Another example: The PC can sequentially conduct the fourth relays K8-K27 connecting the offline downloader and each optoelectronic encoder, so as to download the test firmware to the optoelectronic encoder board in sequence, enabling the optoelectronic encoder board to upload the test results in sequence.

[0110] Combined with the foregoing, this device takes into account the characteristics and working principles of the optoelectronic encoder itself, improves the accuracy and reliability of the test results of the optoelectronic encoder board, and is simple to use and convenient to operate.

[0111] The above has introduced in detail a test device for an optoelectronic encoder provided by the present invention. For those of ordinary skill in the art, according to the idea of the embodiments of the present invention, there will be changes in the specific implementation manners and application scopes. In summary, the content of this specification should not be construed as a limitation to the present invention.

Claims

1. A test device for a photoelectric encoder, characterized in that: include: A first power module, a second power module, a third power module, a relay module, a main control module, an offline downloader module, and a photoelectric encoder panel; the photoelectric encoder panel is provided with a plurality of photoelectric encoder boards; The first power module, the second power module, the third power module, and the offline downloader module are respectively connected to the relay module; The third power supply module is connected to the offline downloader module through the relay module; The relay module is connected to the main control module and each of the photoelectric encoder boards respectively; The main control module is connected to each of the photoelectric encoder boards respectively.

2. The device according to claim 1, characterized in that The offline downloader module is provided with a plurality of offline downloaders, wherein the offline downloaders are provided with two data channels, each of the data channels is provided with four data output terminals, and each of the four data output terminals is connected with two photoelectric encoder boards through the relay module.

3. The device according to claim 2, characterized in that The relay module includes a first relay, a second relay, a third relay and a fourth relay; the number of the third relays is consistent with the number of the offline downloaders, and the number of the fourth relays is four times that of the offline downloaders; The first power supply module and the main control module are respectively connected to the coil of the first relay, the coil of the second relay, the coils of each of the third relays, and the coils of each of the fourth relays; The second power supply module is connected to one end of the contact of the first relay, and the other end of the contact of the first relay is connected to each of the photoelectric encoder boards; One end of the third power module is connected to one end of the contact of the second relay, and the other end of the contact of the second relay is connected to each of the photoelectric encoder boards respectively; The other end of the third power supply module is connected to one end of the contact of the third relay, and the other end of the contact of the third relay is connected to the offline downloader; Every two of the data output ends are respectively connected to one end of a contact of the fourth relay, and are connected to the two photoelectric encoder boards through the contacts of the fourth relay.

4. The device according to claim 3, characterized in that Also includes a first safety resistor; The other end of the contact of the first relay is connected to one end of the first safety resistor, and the other end of the first safety resistor is connected to each of the photoelectric encoder boards.

5. The device according to claim 4, characterized in that The number of the third power supply modules is consistent with the number of the offline downloaders; Each of the third power supply modules is connected to one of the third relays, and is connected to one of the offline downloaders through the third relay.

6. The device according to claim 5, characterized in that The main control module includes a PC and an IO module; The PC is connected to each of the photoelectric encoder boards and the IO module respectively; The IO module is respectively connected to the first power module, the coil of the first relay, the coil of the second relay, the coils of each of the third relays, and the coils of each of the fourth relays.

7. The device according to claim 5, characterized in that The photoelectric encoder plateset includes five groups of photoelectric encoder plateset sub-units, each group of the photoelectric encoder plateset sub-units includes four photoelectric encoder boards; the number of the offline downloaders is five.

8. The device according to claim 2, characterized in that The photoelectric encoder board is provided with a second power input terminal, a third power input terminal, a ground terminal, a data receiving terminal, a control terminal, a light source control terminal, and a light sensor; The second power input terminal is connected to the second power module; The third power input terminal is connected to the third power module; The data receiving end is connected to the offline downloader respectively through the relay module; The control end is connected to the main control module; The light source control end is connected to the LED lamp; The light sensor is arranged opposite to the LED lamp.

9. The device according to any one of claims 1 to 6, characterized in that: Also includes: Main power supply; The main power supply is connected to the first power module, the second power module, the third power module and the main control module respectively.

10. The device according to claim 9, characterized in that Also includes a rocker switch; The first power module, the second power module, and the third power module are respectively connected to the rocker switch, and are connected to the main power supply through the rocker switch.