Absolute value type encoder networking test method and system

By building a test platform and setting initial parameters, and using series and parallel connections to change the total impedance value, the accuracy problem of multi-encoder network performance testing is solved, ensuring the stability and normal operation of the encoder in different environments.

CN118714037APending Publication Date: 2024-09-27HUNAN AEROSPACE MAGNET & MAGNETO
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410884609.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Existing technology cannot effectively conduct accurate and rapid performance testing of multi-encoder networks in different environments, and traditional testing methods only consider the performance of a single product and cannot determine the combined use status of multiple encoders in different environments.

Method used

By building a test platform, establish a communication link between multiple encoders and the host computer, set initial parameters, obtain the initial state of a single encoder, use series and parallel connections to change the total impedance value, synchronously test the communication status and waveform, and obtain the total impedance value. The upper limit and lower limit values ​​are used to obtain the network test status of multiple encoders based on different environmental conditions.

Benefits of technology

It achieves accurate performance testing of multi-encoder networking in different environments, ensuring that the total impedance value after networking is within a predetermined range, and judging the stability and normal working ability of the encoder.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118714037A
    Figure CN118714037A
Patent Text Reader

Abstract

The invention discloses an absolute value type encoder networking test method, which comprises the following steps of: constructing a test platform, and establishing a communication link between multiple encoders and an upper computer; initial parameters of multiple encoders are set based on an upper computer, and the initial state of a single encoder is obtained; the total impedance value of the multiple encoders is changed in a series connection and parallel connection mode, the communication state and waveform of the multiple encoders are tested synchronously and compared with the initial state of a single encoder, and the upper limit value and the lower limit value of the total impedance of the multiple encoders are obtained; based on different environment states, total impedance values and real-time states of the multiple encoders in different environment states are obtained, and networking test states of the multiple encoders in different environments are obtained according to an upper limit value and a lower limit value of the total impedance of the multiple encoders and an initial state of a single encoder. According to the invention, the technical problem of how to accurately and quickly carry out performance test on the multi-encoder networking and output the result in different environments is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of encoders, and in particular to a networking test method and system for an absolute value encoder. Background Art

[0002] With the development of modern industry, the demand for encoders in various industries is increasing, and the application scenarios of encoders are increasing. The same encoder may have different application scenarios, and the performance requirements for encoders are getting higher and higher. In addition to considering the basic functions, performance, environment, and EMC requirements of encoders during the design process, it is increasingly necessary to consider the conditions of encoders in actual applications.

[0003] The patent document with application number 202311457160.4 discloses an encoder testing method, system and storage medium, which integrates multiple test modules together through a signal switching module, matches the parameter information of the encoder to be tested with the preset test file through a computer, and uses the signal switching module to connect the encoder to be tested with the corresponding test module, so that different types of encoders can be tested on the same test device, saving test equipment. Testers do not need to pre-sort the products, and there is no need to manually configure the test program before testing. Traditional tests are based on single-unit testing, only considering the performance of the single product itself, and cannot determine the status of multiple products used together in combination under different environments. Most products are used in combination with multiple encoders in actual applications. Therefore, it is urgent to propose an absolute value encoder networking test method and system to solve the technical problem of how to accurately and quickly perform performance testing on multi-encoder networking and output results under different environments. Summary of the invention

[0004] The main purpose of the present invention is to propose an absolute value encoder networking test method and system, aiming to solve the technical problem of how to accurately and quickly perform performance testing on a multi-encoder network and output the results under different environments.

[0005] To achieve the above object, the present invention provides an absolute value encoder networking test method, wherein the absolute value encoder networking test method comprises the following steps:

[0006] S1. Build a test platform and establish a communication link between the multi-encoder and the host computer;

[0007] S2. Set the initial parameters of multiple encoders based on the host computer and obtain the initial state of a single encoder;

[0008] S3. Change the total impedance value of the multi-encoders by connecting in series and in parallel, synchronously test the communication status and waveform of the multi-encoders, and compare them with the initial state of a single encoder to obtain the upper limit and lower limit of the total impedance of the multi-encoders;

[0009] S4. Based on different environmental conditions, the total impedance value and real-time status of the multi-encoders under different environmental conditions are obtained, and the networking test status of the multi-encoders under different environments is obtained according to the upper and lower limits of the total impedance of the multi-encoders and the initial state of a single encoder.

[0010] One of the preferred solutions, in step S2, the initial parameters of the multi-encoder are set based on the host computer, specifically:

[0011] Different node IDs of multiple encoders and the transmission cycles of multiple encoders are set based on the host computer.

[0012] In one of the preferred solutions, the transmission periods of the multiple encoders are the same.

[0013] In one of the preferred solutions, the transmission period of the encoder is:

[0014] T>n*L

[0015] Wherein, T is the transmission period, n is the number of encoders in the network, and L is the data length of multi-encoder communication.

[0016] In one of the preferred solutions, the initial state of a single encoder is obtained in step S2, specifically:

[0017] A single encoder is connected to the host computer through a communication serial port, an oscilloscope probe is connected to the signal line, the communication status and waveform of the encoder are obtained through the oscilloscope, and the impedance between the signal lines is tested with a multimeter to obtain the initial state of the single encoder.

[0018] One of the preferred solutions, in step S3, the upper limit value of the total impedance of the multi-encoder is obtained, specifically:

[0019] At least one resistor is connected in series at both ends of the multi-encoder communication line, the first impedance is tested, and whether the communication status and waveform of the multi-encoder are correct, if correct, the resistance value of the series resistor is gradually increased, the real-time impedance, communication status and waveform of the multi-encoder are synchronously tested, and whether the communication status and waveform of the multi-encoder are correct is judged according to the initial state of a single encoder, until the multi-encoder cannot communicate, and the upper limit value of the total impedance of the multi-encoder in the networking test is obtained.

[0020] In one of the preferred solutions, the resistance values ​​of the multiple resistors connected in series at both ends of the multi-encoder communication line are the same.

[0021] One of the preferred solutions, in step S3, the lower limit of the total impedance of the multi-encoder is obtained, specifically:

[0022] A resistor is connected in parallel at both ends of the multi-encoder communication line to test the second impedance and determine whether the communication status and waveform of the multi-encoder are correct. If correct, the resistance value of the parallel resistor is gradually increased to synchronously test the real-time impedance, communication status and waveform of the multi-encoder. The communication status and waveform of the multi-encoder are determined based on the initial state of a single encoder until the multi-encoder cannot communicate, and the lower limit of the total impedance of the multi-encoder for the networking test is obtained.

[0023] An absolute encoder networking test system, comprising:

[0024] Communication module, impedance test module, comparison analysis module and several encoders;

[0025] The plurality of encoders are connected to the host computer through a communication module, and the communication module is used to establish a communication link between the plurality of encoders and the host computer;

[0026] The impedance testing module is used to change the impedance of the encoder in a series or parallel manner, so as to obtain the upper limit and lower limit of the total impedance of the encoder in a normal communication state;

[0027] The comparison and analysis module is used to compare and analyze the test results of the encoders in different environments to obtain the results of the multi-encoder networking test.

[0028] In the above technical scheme of the present invention, the absolute value encoder networking test method includes the following steps: constructing a test platform, establishing a communication link between multiple encoders and a host computer; setting the initial parameters of the multiple encoders based on the host computer, and obtaining the initial state of a single encoder; changing the total impedance value of the multiple encoders by series and parallel connection, synchronously testing the communication state and waveform of the multiple encoders, and comparing with the initial state of a single encoder, obtaining the upper limit and lower limit of the total impedance of the multiple encoders; based on different environmental states, obtaining the total impedance value and real-time state of the multiple encoders under different environmental states, and obtaining the networking test state of the multiple encoders under different environments according to the upper limit and lower limit of the total impedance of the multiple encoders and the initial state of the single encoder. The present invention solves the technical problem of how to accurately and quickly perform performance testing on the multi-encoder networking and output the results under different environments.

[0029] In the present invention, by obtaining the upper limit and lower limit of the total impedance of multiple encoders in a normal state, the total impedance value of the encoders in different environments after networking is made to be within the range of the upper limit and the lower limit, thereby further judging the stability of the multiple encoders in different environments and whether they can work normally. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.

[0031] Figure 1 A schematic diagram of a network testing method for an absolute value encoder according to an embodiment of the present invention;

[0032] Figure 2 The figure is a schematic diagram of an absolute encoder networking test system according to an embodiment of the present invention.

[0033] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with the implementation methods and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0035] In addition, in the present invention, the descriptions such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of the features.

[0036] Furthermore, the technical solutions between the various embodiments of the present invention may be combined with each other, but this must be based on the fact that they can be implemented by ordinary technicians in the field. When the combination of technical solutions is mutually contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0037] See also Figure 1 According to one aspect of the present invention, the present invention provides an absolute value encoder networking test method, wherein the absolute value encoder networking test method comprises the following steps:

[0038] S1. Build a test platform and establish a communication link between the multi-encoder and the host computer;

[0039] S2. Set the initial parameters of multiple encoders based on the host computer and obtain the initial state of a single encoder;

[0040] S3. Change the total impedance value of the multi-encoders by connecting in series and in parallel, synchronously test the communication status and waveform of the multi-encoders, and compare them with the initial state of a single encoder to obtain the upper limit and lower limit of the total impedance of the multi-encoders;

[0041] S4. Based on different environmental conditions, the total impedance value and real-time status of the multi-encoders under different environmental conditions are obtained, and the networking test status of the multi-encoders under different environments is obtained according to the upper and lower limits of the total impedance of the multi-encoders and the initial state of a single encoder.

[0042] Specifically, in this embodiment, a test platform is built, a communication link is established between multiple encoders and a PC host computer through a communication module, the working status of the signal end of the encoder is monitored by an oscilloscope, and several resistors with different resistance values ​​are configured to test the encoder's ability to withstand impedance in normal communication. At the same time, the real-time status of multiple encoders under different environmental conditions is tested through a constant temperature and humidity test chamber to ensure that the encoder can work normally in each scenario.

[0043] Specifically, in this embodiment, the initial parameters of the multi-encoder are set based on the host computer in step S2, specifically: different node IDs of the multi-encoder and the transmission cycle of the multi-encoder are set based on the host computer; the node ID of each encoder is set to a different ID by the host computer to distinguish each sample machine, and the transmission cycle of each encoder is the same, and the transmission cycle of the encoder is:

[0044] T>n*L

[0045] Among them, T is the transmission period, n is the number of encoders in the network, and L is the data length of multi-encoder communication;

[0046] If the transmission period T does not meet the above conditions, the data of one or more encoders may be overwritten, making it impossible to distinguish whether it is a problem with the encoder itself or a problem with the network test.

[0047] Specifically, in this embodiment, the initial state of the single encoder is obtained in step S2, specifically: the single encoder is connected to the host computer through the communication serial port, the oscilloscope probe is connected to the signal line, the communication state and waveform of the encoder are obtained through the oscilloscope, and the impedance between the signal lines is tested with a multimeter to obtain the initial state of the single encoder; the communication serial port is a USB serial port, which is not specifically limited in the present invention and can be set according to needs.

[0048] Specifically, in the present embodiment, the upper limit value of the total impedance of the multi-encoder is obtained in the step S3, specifically as follows: at least one resistor is connected in series at both ends of the multi-encoder communication line, the first impedance is tested, and the communication status and waveform of the multi-encoder are determined whether they are correct. If they are correct, the resistance value of the series resistor is gradually increased, the real-time impedance, communication status and waveform of the multi-encoder are synchronously tested, and the communication status and waveform of the multi-encoder are determined according to the initial state of a single encoder whether they are correct, until the multi-encoder cannot communicate, and the upper limit value of the total impedance of the multi-encoder in the networking test is obtained; determining whether the communication status and waveform of the multi-encoder are correct is specifically as follows: comparing the real-time acquired communication status and waveform of the multi-encoder with the initial communication status and waveform acquired by a single encoder under normal conditions, when the series resistor is gradually increased, the total impedance value of the multi-encoder exceeds the critical threshold, and the encoder will be unable to communicate.

[0049] Specifically, in this embodiment, the resistance values ​​of the multiple resistors connected in series at both ends of the multi-encoder communication line are the same.

[0050] Specifically, in the present embodiment, the lower limit value of the total impedance of the multi-encoder is obtained in the step S3, specifically as follows: a resistor is connected in parallel at both ends of the multi-encoder communication line, the second impedance is tested, and the communication status and waveform of the multi-encoder are judged whether they are correct; if correct, the resistance value of the parallel resistor is gradually increased, the real-time impedance, communication status and waveform of the multi-encoder are synchronously tested, and the communication status and waveform of the multi-encoder are judged whether they are correct according to the initial state of a single encoder, until the multi-encoder cannot communicate, and the lower limit value of the total impedance of the multi-encoder in the networking test is obtained; judging whether the communication status and waveform of the multi-encoder are correct is specifically as follows: the communication status and waveform of the multi-encoder obtained in real time are compared with the initial communication status and waveform obtained by a single encoder under normal conditions; when the parallel resistor is gradually increased, the total impedance value of the multi-encoder exceeds the critical threshold, and the encoder will be unable to communicate.

[0051] Specifically, in this embodiment, a network test is performed on multiple encoders, and the total impedance value of the networked encoders is between the upper limit value and the lower limit value, which is achieved by adjusting the matching resistance R of the encoder, that is, the total impedance value of the network is: R 总=R / number of networked units; in the actual test process, the matching resistor R, that is, the resistor connected in series or in parallel, will increase or decrease in resistance under high or low temperature environments. In actual Yingzhong, whether other resistors will be connected externally, and the influence of the impedance of the wire or extension line on the product will all lead to differences in the total impedance value. Therefore, the present invention performs networking tests on multiple encoders in different environmental states, such as normal temperature, high temperature, and low temperature environments, respectively, to obtain the total impedance value, communication state, and waveform under different environmental states, so as to judge the stability of the encoder under different environmental states, and whether the encoder networked in different environments can work normally. Conclusion; for example, if the total impedance value of the multiple encoders in the networking test is not between the upper limit and the lower limit of the total impedance value of the multiple encoders in the high temperature environment, or the multiple encoders cannot communicate and the waveform is abnormal, it can be determined that the multiple encoders in the networking test cannot work normally and have poor stability.

[0052] See also Figure 2 According to another aspect of the present invention, the present invention provides an absolute value encoder networking test system, wherein an absolute value encoder networking test system comprises:

[0053] Communication module, impedance test module, comparison analysis module and several encoders;

[0054] The plurality of encoders are connected to the host computer through a communication module, and the communication module is used to establish a communication link between the plurality of encoders and the host computer;

[0055] The impedance testing module is used to change the impedance of the encoder in a series or parallel manner, so as to obtain the upper limit and lower limit of the total impedance of the encoder in a normal communication state;

[0056] The comparison and analysis module is used to compare and analyze the test results of the encoders in different environments to obtain the results of the multi-encoder networking test.

[0057] Specifically, in this embodiment, the absolute encoder networking test system also includes an oscilloscope and a multimeter. The oscilloscope is connected to the signal line of the encoder through the probe, and is used to obtain the communication status and waveform of the encoder; the multimeter is connected to the signal line of the encoder, and is used to obtain the impedance between the signal lines of the signal encoder.

[0058] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. All equivalent structural changes made using the contents of the present invention's specification and drawings, or directly / indirectly applied in other related technical fields, are included in the patent protection scope of the present invention.

Claims

1. A network test method for absolute encoders. It is characterized in that The following steps are involved: S1. Build a test platform and establish a communication link between the multi-encoder and the host computer; S2. Set the initial parameters of multiple encoders based on the host computer and obtain the initial state of a single encoder; S3. Change the total impedance value of the multi-encoders by connecting in series and in parallel, synchronously test the communication status and waveform of the multi-encoders, and compare them with the initial state of a single encoder to obtain the upper limit and lower limit of the total impedance of the multi-encoders; S4. Based on different environmental conditions, the total impedance value and real-time status of the multi-encoders under different environmental conditions are obtained, and the networking test status of the multi-encoders under different environments is obtained according to the upper and lower limits of the total impedance of the multi-encoders and the initial state of a single encoder.

2. According to claim 1, a method for testing an absolute encoder network, It is characterized in that In step S2, the initial parameters of the multi-encoder are set based on the host computer, specifically: Different node IDs of multiple encoders and the transmission cycles of multiple encoders are set based on the host computer.

3. According to claim 2, a method for testing an absolute encoder network, It is characterized in that The transmission cycles of the multiple encoders are the same.

4. According to claim 2, a method for testing an absolute encoder network, It is characterized in that The transmission cycle of the encoder is: T>n*L Wherein, T is the transmission period, n is the number of encoders in the network, and L is the data length of multi-encoder communication.

5. A method for testing an absolute encoder network according to any one of claims 1 to 4, It is characterized in that The initial state of a single encoder is obtained in step S2, specifically: A single encoder is connected to the host computer through a communication serial port, an oscilloscope probe is connected to the signal line, the communication status and waveform of the encoder are obtained through the oscilloscope, and the impedance between the signal lines is tested with a multimeter to obtain the initial state of the single encoder.

6. A method for testing an absolute encoder network according to any one of claims 1 to 4, It is characterized in that The upper limit value of the total impedance of the multi-encoder is obtained in step S3, specifically: At least one resistor is connected in series at both ends of the multi-encoder communication line, the first impedance is tested, and whether the communication status and waveform of the multi-encoder are correct, if correct, the resistance value of the series resistor is gradually increased, the real-time impedance, communication status and waveform of the multi-encoder are synchronously tested, and whether the communication status and waveform of the multi-encoder are correct is judged according to the initial state of a single encoder, until the multi-encoder cannot communicate, and the upper limit value of the total impedance of the multi-encoder in the networking test is obtained.

7. The absolute encoder network testing method according to claim 6, It is characterized in that The resistance values ​​of the multiple resistors connected in series at both ends of the multi-encoder communication line are the same.

8. A method for testing an absolute encoder network according to any one of claims 1 to 4, It is characterized in that The lower limit value of the total impedance of the multi-encoder is obtained in step S3, specifically: A resistor is connected in parallel at both ends of the multi-encoder communication line to test the second impedance and determine whether the communication status and waveform of the multi-encoder are correct. If correct, the resistance value of the parallel resistor is gradually increased to synchronously test the real-time impedance, communication status and waveform of the multi-encoder. The communication status and waveform of the multi-encoder are determined based on the initial state of a single encoder until the multi-encoder cannot communicate, and the lower limit of the total impedance of the multi-encoder for the networking test is obtained.

9. A system comprising the absolute encoder networking test method according to any one of claims 1 to 8, It is characterized in that include: Communication module, impedance test module, comparison analysis module and several encoders; The plurality of encoders are connected to the host computer through a communication module, and the communication module is used to establish a communication link between the plurality of encoders and the host computer; The impedance testing module is used to change the impedance of the encoder in a series or parallel manner, so as to obtain the upper limit and lower limit of the total impedance of the encoder in a normal communication state; The comparison and analysis module is used to compare and analyze the test results of the encoders in different environments to obtain the results of the multi-encoder networking test.