A direct reading method of a photoelectric direct reading counter based on low-order word wheel carry counting

By using the low-position font wheel carry counting method in the photoelectric direct reading counter, the reference font wheel is used as the signal source for counting and diagnosis, solving the problems of decoding errors and high power consumption, improving the reliability and battery life of the counter and reducing the reliability of the counter trade disputes and maintenance workloads.

CN114707626BActive Publication Date: 2024-11-26LUOMEITE (ZHEJIANG) INTELLIGENT TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210138727.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-15
Publication Date
2024-11-26
Estimated Expiration
2042-02-15

AI Technical Summary

Technical Problem

Existing photoelectric direct read counters have decoding errors and high power consumption in industrial environments, resulting in trade disputes and shortened battery life, and pulse signals are easily disturbed, affecting the reliability of the counter.

Method used

The photoelectric direct reading counter method based on the carry of the low-position wheel is used to count the reference word wheel as the signal source for diagnosis and correction, and the high-position word wheel is selected as the reference word wheel in the event of a fault, only in the reference word When the wheel is carried, the high-bit wheel display value is read to reduce power consumption.

Benefits of technology

Improves counter reliability and battery life, reduces trade disputes and maintenance workload, reduces power consumption, and enhances counter diagnostic and calibration capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114707626B_ABST
    Figure CN114707626B_ABST
Patent Text Reader

Abstract

The present invention relates to a direct reading method of a photoelectric direct reading counter based on low-order word wheel carry counting, and the direct reading method comprises the following steps: step 1, power-on initialization, synchronization of the direct reading value of the mechanical counter and the count value of the electronic counter; step 2, selecting the reference word wheel and configuring the reading cycle T; judging whether the time reaches the reading cycle T: if yes, executing step 3; if not, entering sleep mode and waiting for the next reading; step 3, saving the original direct reading value M0 and the original count value C0; step 4, updating the new direct reading value M; step 5, updating the new count value C; step 6, diagnosing and correcting the new direct reading value M and the new count value C; step 7, outputting diagnostic information or the corrected direct reading value and count value, and then entering sleep mode and waiting for the next reading. The present invention can greatly improve the reliability of traditional gas flow meters, avoid urban gas metering trade disputes, effectively reduce power consumption, reduce the maintenance workload of flow meters, and broaden product application scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of measuring instruments, and in particular to a direct reading method of a photoelectric direct reading counter based on low-order word wheel carry counting. Background Art

[0002] With the development of Internet of Things technology, direct-reading mechanical counters have been applied to industrial and commercial and civil automation systems and automatic meter reading systems. At present, photoelectric direct-reading mechanical counters are more mature in technology and are the main types of direct-reading counters. Photoelectric direct-reading counters are divided into two types: opposite-beam type and reflective type. The opposite-beam type includes two types: opposite-beam through the light hole on the character wheel and opposite-beam through the optical transmission element. In terms of specific principles, the above direct-reading counters are all through the light hole designed on the character wheel or the reflective barcode on the character wheel. When the character wheel is in different positions, the light signal emitted is opposite-beamed or reflected. The collected code corresponds to the 0-9 numbers on the character wheel disk, and then the number is read out through decoding. The above direct-reading counters all have decoding errors caused by factors such as failure of individual light sources or light receiving devices, or inaccurate position of the character wheel disk, which leads to inconsistency between the mechanical reading and the decoded output number, especially when the high-position character wheel is decoded incorrectly, which will lead to a large digital deviation. For direct-reading counters supporting industrial and commercial flow meters, direct-reading data errors will lead to trade disputes, such as high-position errors will lead to serious trade disputes. However, most direct-reading counters currently use the method of directly reading all digits, which has the problem of a high possibility of misreading. There are also direct-reading counters with pulse signal input. During initialization, after synchronizing the pulse counter, mechanical counter reading and decoded direct reading value, the input pulse signal is counted and its count value is compared with the decoded direct reading value of the direct-reading counter to perform self-diagnosis and correction to improve the reliability of the decoded direct reading value. However, practice has proved that when used in an industrial environment, the pulse signal is easily interfered, which causes errors in the count value of the pulse signal, and then makes it impossible to use the count value of the pulse counter as the basis for diagnosis and calibration of the decoded direct reading value of the direct-reading counter. Therefore, it is necessary to further improve the reliability of the direct-reading counter by improving the diagnosis and calibration methods.

[0003] Secondly, direct-reading counters generally use photoelectric methods, and because most direct-reading counters use the method of directly reading all digits, they consume a lot of power. However, due to the particularity of their application scenarios, most industrial and commercial flow meters generally have no external power requirements and are powered by internal batteries. Therefore, reducing the power consumption of direct-reading counters is of great significance to extending battery life and reducing maintenance workload. Summary of the invention

[0004] The present invention innovatively proposes a direct reading method of a photoelectric direct reading counter based on low-order word wheel carry counting, which can greatly improve the reliability of traditional gas flow meters and avoid urban gas metering trade disputes; effectively reduce power consumption, reduce the workload of flow meter maintenance, and expand product application scenarios.

[0005] In order to solve the above problems existing in the prior art, the present invention provides a direct reading method of a photoelectric direct reading counter based on low-order word wheel carry counting, and the direct reading method comprises the following steps:

[0006] Step 1, power on initialization, read the direct reading value of all the word wheel indications of the counter, and synchronize the direct reading value of the mechanical counter and the count value of the electronic counter as the initial value;

[0007] Step 2, select the low-order word wheel with a bit sequence of n as the reference word wheel, and configure the reading period T of the reference word wheel indication; then determine whether the time reaches the reading period T: if yes, execute step 3; if not, enter sleep mode and wait for the next reading;

[0008] Step 3, counting the direct reading value of the mechanical counter as the original direct reading value M0 and saving it, and counting the count value of the electronic counter as the original count value C0 and saving it;

[0009] Step 4, read the indications of the reference position word wheel and all the low position word wheels, and update the new direct reading value M according to the original direct reading value M0;

[0010] Step 5, when the reference bit word wheel carries a position, counting is performed according to the count value increment determined by the bit sequence of the reference bit word wheel, and a new count value C of the electronic counter is calculated according to the indications of the reference bit word wheel and all the low bit word wheels;

[0011] Step 6, diagnose and calibrate the new direct reading value M and the new count value C;

[0012] Step 7, output diagnostic information or corrected direct reading value and count value, then enter sleep state and wait for next reading.

[0013] Furthermore, the present invention provides a direct reading method of a photoelectric direct reading counter based on low-order word wheel carry counting, wherein in step 2, when the low-order reference word wheel is configured as a tenth-order word wheel, the bit sequence n=1;

[0014] When the bit sequence n of the low-order reference character wheel is one bit lower than the tenth-order character wheel, the value of the bit sequence n decreases by 1 successively;

[0015] When the bit sequence n of the low-order reference character wheel is one bit higher than the tenth-order character wheel, the value of the bit sequence n is increased by 1 successively;

[0016] The reading cycle T is adjusted according to the bit sequence of the reference character wheel, and the value range of the reading cycle T is: 2≤T≤16.

[0017] Furthermore, the present invention provides a direct reading method of a photoelectric direct reading counter based on carry counting of a low-order character wheel, which, after step 3, also includes a step of determining whether the reference position character wheel is faulty: if so, selecting a higher-order character wheel as the reference character wheel and returning to step 3; if not, executing step 4.

[0018] Furthermore, the present invention provides a direct reading method of a photoelectric direct reading counter based on carry counting of a low-order word wheel, wherein in step 4, when the read-out value of the reference word wheel is normal and no carry occurs, a new direct reading value M is obtained according to the read-out values ​​of the reference word wheel and all the low-order word wheels and the original direct reading value M0;

[0019] When the reference position word wheel carries a position, it is necessary to read the indication of the word wheel one position higher than the reference position word wheel, and update the new direct reading value M together with the reading indication of the reference position word wheel and all the lower word wheels;

[0020] When the reference bit wheel carries a position and other high bit wheels carry a position at the same time, the read values ​​of the bit wheel higher than the highest bit wheel carrying a position and all bit wheels thereafter are read to update and obtain a new direct reading value M.

[0021] Furthermore, the present invention provides a direct reading method of a photoelectric direct reading counter based on low-order word wheel carry counting, wherein in step 5, a reference word wheel with a bit sequence of n has a carry, and the electronic counter value increment for each carry is 10 n-1 , then clear the value of the corresponding bit wheel of the reference bit wheel and all the low-bit wheels after the reference bit wheel in the count value C0, and then add it to the indication of the reference bit wheel and all the low-bit wheels to obtain a new count value C;

[0022] Before updating the new count value C, the unupdated new count value C is replaced with the original count value C0.

[0023] Furthermore, the present invention provides a direct reading method of a photoelectric direct reading counter based on low-order word wheel carry counting, wherein in step 6, the original direct reading value M0 is compared with the new direct reading value M, and the difference between the two is calculated as Δ1=M-M0;

[0024] Compare the original count value C0 with the new count value C, and calculate the difference between the two as Δ2 = C-C0;

[0025] Compare the new count value C with the new direct reading value M, and calculate the absolute value of the difference between the two as Δ3 = ABS (MC);

[0026] The increment of the next read cycle is counted as Δ V ;

[0027] If Δ1≤Δ V , Δ2≤ΔV , and Δ3≤10 n-2 ; then determine that the new direct reading value M and the new count value C are both correct, set C = M, and then execute step 7.

[0028] Furthermore, the present invention provides a direct reading method of a photoelectric direct reading counter based on low-order word wheel carry counting, wherein

[0029] If Δ1≤Δ V , but Δ2>Δ V , and Δ3≤10 n-2 , then it is determined that the new direct reading value M is normal but the new count value C is abnormal, and C=M is ​​set for calibration, and then step 7 is executed.

[0030] Furthermore, the present invention provides a direct reading method of a photoelectric direct reading counter based on low-order word wheel carry counting, wherein if Δ2≤Δ V , but Δ1>Δ V , and Δ3≤10n -2 , then it is determined that the new count value C is normal and the new direct reading value M is abnormal, and M=C is set for calibration, and then step 7 is executed.

[0031] Furthermore, the present invention provides a direct reading method of a photoelectric direct reading counter based on low-order word wheel carry counting, wherein if Δ1≤Δ V , Δ2≤Δ V , and Δ3>10 n-2 , it is determined that the deviation between the new direct reading value M and the new count value C increases. If ABS(Δ1)<ABS(Δ2), C=M is set for calibration; if ABS(Δ2)<ABS(Δ1), M=C is set for calibration, and then step 7 is executed.

[0032] Furthermore, the present invention provides a direct reading method of a photoelectric direct reading counter based on low-order word wheel carry counting, wherein if Δ1>ΔV, Δ2>Δ V , or Δ3>10 n-2 , then determine that the reading fails and return to step 3; if the reading fails three times in a row, determine that it fails and stop reading, then execute step 7.

[0033] Compared with the prior art, the direct reading method of the photoelectric direct reading counter based on the low-order word wheel carry counting of the present invention has the following advantages: by using the reference bit word wheel carry as the signal source of the electronic counter for counting, a basis for diagnosing and calibrating the direct reading value is obtained, and compared with the traditional direct reading counter and the direct reading mechanical counter using the pulse signal counter as the diagnosis and calibration, it has higher reliability; secondly, a method of reading the indication of the higher-order word wheel only when the reference bit word wheel carries is adopted, and compared with the traditional direct reading counter that reads all the word wheels, the power consumption is effectively reduced; in addition, because the reference bit word wheel can select the higher-order word wheel as the reference bit word wheel when it fails, the accuracy of each bit data except the number of bits of the original failed reference bit word wheel can be effectively guaranteed, and trade disputes can be effectively reduced.

[0034] The following is a further detailed description of a direct reading method of a photoelectric direct reading counter based on low-order word wheel carry counting according to the present invention in conjunction with the specific embodiments shown in the accompanying drawings: BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 The present invention is a flow chart of a direct reading method of a photoelectric direct reading counter based on low-order word wheel carry counting.

[0036] Figure 2 The present invention is a flow chart of diagnosis and correction in a direct reading method of a photoelectric direct reading counter based on low-order word wheel carry counting.

[0037] Figure 3 The invention discloses a direct-reading mechanical counter. DETAILED DESCRIPTION

[0038] First of all, it should be explained that the directional words such as up, down, front, back, left and right described in the present invention are only described according to the drawings for the convenience of understanding, and are not intended to limit the technical solution of the present invention and the scope of protection requested.

[0039] like Figure 1 The present invention is a specific embodiment of a direct reading method of a photoelectric direct reading counter based on low-order word wheel carry counting, and the direct reading method comprises the following steps:

[0040] Step 1, power on initialization, read the direct reading value of all the word wheel indications of the counter, and synchronize the direct reading value of the mechanical counter and the count value of the electronic counter as the initial value;

[0041] The direct reading value of the mechanical counter includes the original direct reading value M0 and the new direct reading value M, and the new direct reading value M will replace the value saved before the original direct reading value M0 before updating; the count value of the electronic counter includes the original count value C0 and the new count value C, and the new count value C will replace the value saved before the original count value C0 before updating. In order to prevent data loss, the original direct reading value M0 and the new direct reading value M can be stored in the direct reading value storage unit of the mechanical counter, and the original count value C0 and the new count value C can be stored in the count value storage unit of the electronic counter. The direct reading value storage unit of the mechanical counter and the count value storage unit of the electronic counter can use non-volatile memory. After initialization, M=C=C0=M0, and C0=M0 is consistent with the initial value of the counter character wheel code disk.

[0042] Step 2, select the low-order word wheel with a bit sequence of n as the reference word wheel, and configure the reading period T of the reference word wheel indication; then determine whether the time reaches the reading period T: if yes, execute step 3; if not, enter sleep mode and wait for the next reading;

[0043] In step 2, when the lower reference character wheel is configured as the tenth character wheel, the bit sequence n=1;

[0044] When the bit sequence n of the low-order reference character wheel is one bit lower than the tenth-order character wheel, the value of the bit sequence n decreases by 1 successively;

[0045] When the bit sequence n of the low-order reference word wheel is one digit higher than the tenth-order word wheel, the value of the bit sequence n is increased by 1 successively.

[0046] Usually, the tenths wheel is preferred as the reference wheel. However, when the tenths wheel fails or the reading cycle is shorter than 2s due to high rotation speed, the ones or tens wheel can be selected as the reference wheel. At this time, the increment of the electronic counter count value is 10 when the carry is performed. n .

[0047] In step 2, the reading cycle T is adjusted according to the bit sequence of the reference word wheel, and the value range of the reading cycle T is: 2≤T≤16, so as to ensure that the reference word wheel carries at most once in one reading cycle.

[0048] Step 3, counting the direct reading value of the mechanical counter as the original direct reading value M0 and saving it, and counting the count value of the electronic counter as the original count value C0 and saving it;

[0049] After step 3, the method further includes the step of determining whether the reference character wheel is faulty: if so, selecting a higher character wheel as the reference character wheel and returning to step 3; if not, executing step 4.

[0050] The fault in this step is that the reference bit wheel fails or the rotation speed is too fast, resulting in a shorter reading cycle. When a fault occurs, a higher bit wheel is selected as the reference bit wheel, which can effectively ensure the accuracy of each bit of data except the bit number of the original faulty reference bit wheel.

[0051] Step 4, read the indications of the reference position word wheel and all the low position word wheels, and update the new direct reading value M according to the original direct reading value M0;

[0052] In step 4, when the reference bit character wheel reads and displays a normal value and no carry occurs, a new direct reading value M is obtained according to the read and displayed values ​​of the reference bit character wheel and all its lower bit character wheels and the original direct reading value M0;

[0053] When the reference position word wheel carries a position, it is necessary to read the indication of the word wheel one position higher than the reference position word wheel, and update the new direct reading value M together with the reading indication of the reference position word wheel and all the lower word wheels;

[0054] When the reference bit wheel carries a position and other high bit wheels carry a position at the same time, the read values ​​of the bit wheel higher than the highest bit wheel carrying a position and all bit wheels thereafter are read to update and obtain a new direct reading value M.

[0055] For ease of understanding, if the counter is 8, it is an integer with 2 decimal places. The direct reading value of the counter and the count value of the electronic counter are 10-bit BCD codes. Suppose the value stored in the original direct reading value and electronic count value storage unit is M0 = C0 = A1A2A3A4A5A6A7A8.A9A 10 ;

[0056] If the reference position character wheel is at the nth position (i.e. n=1 is the tenth position, n=2 is the unit position, n=3 is the hundredth position, and so on), after the reading cycle is over, read the indications of the reference position character wheel and all other low-position character wheels. If no carry occurs, set the direct reading value of the reference position character wheel and its low-position character wheel indications to be a 10-n ...a 10 , then the updated counter direct reading value M is: M = A1A2...A 9-n +a 10-n ...a 10 *10 -2 ;

[0057] If the reference position word wheel carries a position, read the indication of the word wheel one position higher than the reference position word wheel a 9-n The new M value after updating the direct reading value together with the direct reading value of the reference position character wheel and all the lower position character wheels is: M=A1A2...A 8-n *10 n +a 9- n a 10-n ...a 10 *10 -2 ;

[0058] If the reference bit wheel carries, the previous bits carry at the same time, that is, it is necessary to read the value of the bit wheel before the highest bit wheel that carries (set as the mth bit, where 1≤m≤7, m=1 is the highest bit A1) and all the bits after it, and set the direct reading value of the value to be a m ...a8a9a 10 , then the new direct reading value M of the counter is: M = A1...A m-1 *10 9-m +a m a m+ 1...a8a9a 10 *10 -2 .

[0059] Step 5, when the reference bit word wheel carries a position, counting is performed according to the count value increment determined by the bit sequence of the reference bit word wheel, and a new count value C of the electronic counter is calculated according to the indications of the reference bit word wheel and all the low bit word wheels;

[0060] In step 5, the reference bit wheel with bit sequence n has a carry, and the electronic counter value increments by 10 each time the carry occurs. n-1 , then clear the value of the corresponding bit wheel of the reference bit wheel and all the low-bit wheels after the reference bit wheel in the count value C0, and then add it to the indication of the reference bit wheel and all the low-bit wheels to obtain a new count value C;

[0061] For example, if the reference bit wheel with bit sequence n carries a position, the electronic counter value increments by 10 each time it carries a position. n -1 ; Assume that the direct reading code value of the "reference bit wheel" and all its lower bit wheels after carry is a 10-n ...a 10 , then the new value C of the electronic counter is: C = A1A2...A 9-n +a 10-n ...a 10 *10 -2 +10 n-1 .

[0062] Before updating the new count value C, the unupdated new count value C is replaced with the original count value C0.

[0063] Step 6, diagnose and calibrate the new direct reading value M and the new count value C;

[0064] Specifically, Figure 2 As shown, in step 6, the original direct reading value M0 is compared with the new direct reading value M, and the difference between the two is calculated as Δ1=M-M0;

[0065] Compare the original count value C0 with the new count value C, and calculate the difference between the two as Δ2 = C-C0;

[0066] Compare the new count value C with the new direct reading value M, and calculate the absolute value of the difference between the two as Δ3 = ABS (MC);

[0067] The increment of the next read cycle is counted as Δ V ;

[0068] If Δ1≤Δ V , Δ2≤Δ V , and Δ3≤10 n-2 ; then determine that the new direct reading value M and the new count value C are both correct, set C = M, and then execute step 7.

[0069] If Δ1≤Δ V , but Δ2>Δ V , and Δ3≤10 n-2 , then it is determined that the new direct reading value M is normal but the new count value C is abnormal, and C=M is ​​set for calibration, and then step 7 is executed.

[0070] If Δ2≤Δ V , but Δ1>Δ V , and Δ3≤10n -2 , then it is determined that the new count value C is normal and the new direct reading value M is abnormal, and M=C is set for calibration, and then step 7 is executed.

[0071] If Δ1≤Δ V , Δ2≤Δ V , and Δ3>10 n-2 , it is determined that the deviation between the new direct reading value M and the new count value C increases. Under the above premise, if ABS(Δ1)<ABS(Δ2), let C=M for calibration; conversely, if ABS(Δ2)<ABS(Δ1), let M=C for calibration, and then execute step 7.

[0072] If Δ1>ΔV, Δ2>Δ V , or Δ3>10 n-2 , then determine that the reading fails and return to step 3; if the reading fails three times in a row, determine that it fails and stop reading, then execute step 7.

[0073] Step 7, output diagnostic information or corrected direct reading value and count value, then enter sleep state and wait for next reading.

[0074] In summary, the present invention obtains a basis for diagnosing and calibrating the direct reading value by using the reference bit wheel carry as the signal source of the electronic counter for counting. Compared with the traditional direct reading counter and the direct reading mechanical counter using the pulse signal counter for diagnosis and calibration, it has higher reliability; secondly, it adopts a method of reading the indication of the higher bit wheel only when the reference bit wheel carries, which effectively reduces the power consumption compared with the traditional direct reading counter that reads all the bits; in addition, because the reference bit wheel can select the higher bit wheel as the reference bit wheel when it fails, it can effectively ensure the accuracy of each bit data except the number of bits of the original failed reference bit wheel, which can effectively reduce trade disputes.

[0075] like Figure 3 As shown, the present invention also provides a direct-reading mechanical counter, which includes a photoelectric direct-reading processing module 1, an output communication interface 2, a counter housing 3, a character wheel group 4, a light receiving component 6, a light emitting component 7 and a transmission mechanism 8, wherein the photoelectric direct-reading processing module 1, the output communication interface 2, the character wheel group 4, the light receiving component 6, the light emitting component 7 and the transmission mechanism 8 are arranged in the counter housing 3. The character wheel group 4 is composed of a plurality of character wheels, such as Figure 3 As shown, a character wheel 5 in the lower position is selected as the reference position character wheel (can be selected according to actual needs). The character wheel group 4 rotates through the transmission mechanism 8, and the photoelectric direct reading processing module 1 reads the code value of the character wheel to be read as required. Taking the reference position character wheel 5 as an example, the method for reading its code value is as follows: a light hole is left on the character wheel disk, a light-emitting component 7 is installed on one side of the character wheel, and a light-receiving component 6 is installed on the other side. When the light emitted by the light-emitting component 7 passes through the light hole of the character wheel disk, it is irradiated onto the light-receiving component 6 and the code value of the character wheel is obtained through the photoelectric conversion and decoding reading of the photoelectric direct reading processing module 1, which is the indication number "9" of the character wheel. The microprocessor in the photoelectric direct reading processing module 1 reads the code value of the reference position character wheel 5 and its lower position character wheel according to the set reading cycle and the method steps of the present invention, and obtains the direct reading value "01234598" after processing. When the code value read by the "reference bit wheel" changes from "9" to "0" or from large to small, it means that the "reference bit wheel" 5 has a carry, and the electronic counter in the photoelectric direct reading processing module 1 should count correctly based on the position of the "reference bit wheel" 5 (in this schematic diagram, the reference bit wheel 5 is the tenth place, n=1, and the carry should be added by 1). Then the direct reading value and the counter are diagnosed and corrected according to the method steps of the present invention, and the results and alarm information are transmitted through the output communication interface 2. By using the present invention, by using the reference bit wheel carry as the signal source of the electronic counter for counting, a basis for diagnosing and calibrating the counter direct reading value is obtained, and whether the mechanical counter is abnormal can be diagnosed online, and reliable and accurate measurement values ​​and information can be output; secondly, a method based on reading the code value of the higher bit wheel only when the reference bit wheel carries is adopted, which effectively reduces power consumption.

[0076] It should be noted that the present invention can also be applied to gas rotary flowmeters, so that the gas rotary flowmeter has diagnosis and correction functions. It is connected to the gas flowmeter base meter through magnetic coupling. When the flowmeter is running, the mechanical energy proportional to the gas flow rate drives the transmission mechanism of the self-diagnosis direct reading counter to rotate through magnetic coupling, thereby driving the character wheel group to count. During operation, the photoelectric direct reading processing module is connected to the gas flowmeter base meter through magnetic coupling. Figure 1 The reading process and the diagram diagnosis and correction process are processed and output. According to the method of the present invention, by counting based on the reference bit wheel carry as the increment of the electronic counter, the basis for diagnosing and calibrating the direct reading value is obtained, and the mechanical counter can be diagnosed online to see if it is abnormal and output reliable measurement values ​​and diagnostic information. Compared with other direct reading mechanical counters, it has higher reliability; secondly, it adopts the method of reading the higher bit wheel only when the reference bit wheel carries, which effectively reduces power consumption; in addition, because the higher bit wheel can be selected as the reference bit wheel when the reference bit wheel fails, the accuracy of each bit data except the number of bits of the original faulty reference bit wheel can be effectively guaranteed, which can effectively reduce trade disputes.

[0077] The above embodiments are only descriptions of the preferred embodiments of the present invention, and are not limitations on the scope of protection requested by the present invention. Without departing from the design spirit of the present invention, various forms of deformation made by engineers and technicians in this field based on the technical solution of the present invention should fall within the scope of protection determined by the claims of the present invention.

Claims

1. A direct reading method of a photoelectric direct reading counter based on low-order word wheel carry counting, Features: The direct reading method comprises the following steps: Step 1, power on initialization, read the direct reading value of all the word wheel indications of the counter, and synchronize the direct reading value of the mechanical counter and the count value of the electronic counter as the initial value; Step 2, select the low-order word wheel with a bit sequence of n as the reference word wheel, and configure the reading period T of the reference word wheel indication; then determine whether the time reaches the reading period T: if yes, execute step 3; if not, enter sleep mode and wait for the next reading; Step 3: Set the direct reading value of the mechanical counter as the original direct reading value M 0 And save, the count value of the electronic counter is counted as the original count value C 0 and save; Step 4: read the reference position word wheel and all low position word wheels, and calculate the value according to the original direct reading value M. 0 Update to obtain the new direct reading value M; Step 5, when the reference bit word wheel carries a position, counting is performed according to the count value increment determined by the bit sequence of the reference bit word wheel, and a new count value C of the electronic counter is calculated according to the indications of the reference bit word wheel and all the low bit word wheels; Step 6, diagnose and calibrate the new direct reading value M and the new count value C; Step 7, output diagnostic information or corrected direct reading value and count value, then enter sleep state and wait for next reading.

2. The direct reading method of the photoelectric direct reading counter based on the carry counting of the low-order word wheel according to claim 1, Features: In step 2, when the lower reference character wheel is configured as the tenth character wheel, the bit sequence n=1; When the bit sequence n of the low-order reference character wheel is one bit lower than the tenth-order character wheel, the value of the bit sequence n decreases by 1 successively; When the bit sequence n of the low-order reference character wheel is one bit higher than the tenth-order character wheel, the value of the bit sequence n is increased by 1 successively; The reading cycle T is adjusted according to the bit sequence of the reference character wheel, and the value range of the reading cycle T is: 2≤T≤16.

3. The direct reading method of the photoelectric direct reading counter based on the low-order word wheel carry counting according to claim 1, Features: After step 3, the method further includes the step of determining whether the reference character wheel is faulty: if so, selecting a higher character wheel as the reference character wheel and returning to step 3; if not, executing step 4.

4. The direct reading method of the photoelectric direct reading counter based on the low-order word wheel carry counting according to claim 1, Features: In step 4, when the reference bit wheel reads the displayed value normally and no carry occurs, the read value of the reference bit wheel and all the lower bit wheels is compared with the original direct reading value M. 0 Get the new direct reading value M; When the reference position word wheel carries a position, it is necessary to read the indication of the word wheel one position higher than the reference position word wheel, and update the new direct reading value M together with the reading indication of the reference position word wheel and all the lower word wheels; When the reference bit wheel carries a position and other high bit wheels carry a position at the same time, the read values ​​of the bit wheel higher than the highest bit wheel carrying a position and all bit wheels thereafter are read to update and obtain a new direct reading value M.

5. The direct reading method of the photoelectric direct reading counter based on the low-order word wheel carry counting according to claim 1, Features: In step 5, the reference bit wheel with bit sequence n has a carry, and the electronic counter value increments by 10 each time the carry occurs. n-1 , then the count value C 0 The corresponding position word wheel of the reference position word wheel and the values ​​of all low-position word wheels after the reference position word wheel are cleared to zero, and then the corresponding position word wheel and the values ​​of all low-position word wheels are added to obtain a new count value C; Before updating the new count value C, replace the unupdated new count value C with the original count value C 0 middle.

6. A direct reading method of a photoelectric direct reading counter based on low-order word wheel carry counting according to claim 4, Features: In step 6, compare the original direct reading value M 0 and the new direct reading value M, and the difference between the two is recorded as Δ 1 =MM 0 ; Compare the original count value C 0 and the new count value C, and the difference between the two is counted as Δ 2 =CC 0 ; Compare the new count value C with the new direct reading value M, and calculate the absolute value of the difference between the two as Δ 3 =ABS(MC); The increment of the next read cycle is counted as Δ V ; If Δ 1 ≤Δ V , Δ 2 ≤Δ V , and Δ 3 ≤10 n-2 ; then determine that the new direct reading value M and the new count value C are both correct, set C=M, and then execute step 7.

7. A direct reading method of a photoelectric direct reading counter based on low-order word wheel carry counting according to claim 6, Features: If Δ 1 ≤Δ V , but Δ 2 >Δ V , and Δ 3 ≤10 n-2 , then it is determined that the new direct reading value M is normal but the new count value C is abnormal, and C=M is ​​set for calibration, and then step 7 is executed.

8. The direct reading method of the photoelectric direct reading counter based on the carry counting of the low-order word wheel according to claim 7, Features: If Δ 2 ≤Δ V , but Δ 1 >Δ V , and Δ 3 ≤10 n-2 , then it is determined that the new count value C is normal and the new direct reading value M is abnormal, and M=C is set for calibration, and then step 7 is executed.

9. A direct reading method of a photoelectric direct reading counter based on low-order word wheel carry counting according to claim 8, Features: If Δ 1 ≤Δ V , Δ 2 ≤Δ V , and Δ 3 >10 n-2 , then it is determined that the deviation between the new direct reading value M and the new count value C increases, such as ABS(Δ 1 )<ABS(Δ 2 ), then let C=M for calibration; if ABS(Δ 2 )<ABS(Δ 1 ), then set M=C for calibration, and then execute step 7.

10. A direct reading method of a photoelectric direct reading counter based on low-order word wheel carry counting according to claim 9, Features: If Δ 1 >ΔV,Δ 2 >Δ V , or Δ 3 >10 n-2 , then determine that the reading fails and return to step 3; if the reading fails three times in a row, determine that it fails and stop reading, then execute step 7.