Code reader fault diagnosis system and method for hospital box-type logistics system

By introducing trigger photoelectric sensors and code-taking photoelectric sensors into the hospital's box-type logistics system, combined with a programmable logic controller, the code reading rate is monitored in real time and dynamically calculated. This solves the problems of timely handling and fault classification of RFID reader faults, realizes the universality of the reader equipment and fault early warning, and shortens the maintenance cycle.

CN120996062APending Publication Date: 2025-11-21ESSENIOT INTELLIGENT MEDICAL EQUIP (SUZHOU) LTD INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511138707.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-14
Publication Date
2025-11-21

AI Technical Summary

Technical Problem

In existing hospital box-type logistics systems, when the reading rate of RFID readers drops or becomes abnormal, maintenance personnel cannot detect it in time, resulting in long system downtime and excessively long maintenance cycles. Furthermore, it is difficult to distinguish the type of fault, leading to problems such as delayed early warning and equipment dependency.

Method used

A reader fault diagnosis system is adopted, including trigger photoelectric sensors and code retrieval photoelectric sensors. The code reading rate is monitored in real time and dynamically calculated through a programmable logic controller, so as to realize fault classification and equipment universality, and eliminate the dependence on the storage function of RFID readers.

Benefits of technology

It enables timely handling and accurate classification of barcode reader faults, shortens fault handling time, provides dynamic early warning to avoid major shutdowns, adapts to different barcode reader models, and reduces operation and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120996062A_ABST
    Figure CN120996062A_ABST
Patent Text Reader

Abstract

The invention relates to a code reader fault diagnosis system and method of a hospital box-type logistics system. The method comprises the following steps that S200, a programmable logic controller collects the total number of reading times N, the number of abnormal communication times C and the number of unread times U of a code reader in real time; s400, dynamically calculating a code reading rate R based on the total reading times N; wherein when the total number of times of reading N is smaller than or equal to 1000, the code reading rate R is equal to 1-(the number of times of communication abnormity C + the number of times of unread U) / 1000; when the total reading frequency N is greater than 1000, the code reading rate R is equal to 1-(the communication abnormal frequency C + the unread frequency U) / the total reading frequency N; s600, when the code reading rate is Rlt; and when the code is read according to the early warning threshold, alarm information is sent. According to the invention, the code reading rate can be monitored in real time, fault classification is realized, and the universality of code reader equipment is realized.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the field of medical industry logistics, and more particularly, to a code reader fault diagnosis system and method of a hospital box logistics system. BACKGROUND

[0002] This BACKGROUND section presents generally the context of the present disclosure. To the extent that the work of the current inventors described in this BACKGROUND section is original, it is hereby incorporated by reference into the present disclosure. To the extent that this work is not original, it is not to be construed as constituting prior art and is solely provided to enable better enablement of the present disclosure.

[0003] With the expansion of modern hospitals and the increasing requirements for the timeliness of in-hospital material transportation (such as emergency distribution of medicines, infusions, and consumables), the traditional manual transportation mode has been unable to meet the demand. An automated hospital box logistics system realizes the automated sorting of materials through the horizontal transfer and vertical lifting of two dimensions of dynamic lines.

[0004] Currently, in the hospital box logistics system, the RFID code reader is a key device. ① The RFID code reader (installed at the entrance of the transfer machine / lifting machine) scans the tote barcode information (an internal RFID chip is installed in the tote, and the RFID chip stores the pre-written tote barcode information); ② The PLC control system obtains the barcode information from the RFID code reader; ③ The PLC transmits the barcode information to the WCS scheduling system; ④ The WCS scheduling system issues sorting instructions to the PLC; ⑤ The PLC executes the corresponding sorting task / box delivery task according to the sorting instructions (when the barcode information is abnormal, the transfer machine executes the default task, and the lifting machine executes the wrong layer backflow task).

[0005] However, in the existing hospital box logistics system, the following problems may exist: when the reading rate of the code reader decreases or abnormalities occur, the operation and maintenance personnel cannot timely discover the abnormalities in the early stage, because a small amount of abnormalities are executed by the transfer machine to perform the default task and the lifting machine to perform the wrong layer backflow task, and the turnover box can finally be sent to the destination; only when a large number of abnormalities occur due to the failure of the code reader, so that the turnover box cannot be sent to the destination, the operation and maintenance personnel can intervene to check and repair the code reader, and it is also necessary to verify whether the installation position of the code reader deviates or the hardware failure of the code reader itself or the abnormality of the communication network occurs; the system is caused to be shut down for a long time and the maintenance test period is lengthened. On the one hand, there is a problem of early warning lag: a small amount of reading code failure can be hidden by the default task, the operation and maintenance personnel intervene only when large-scale failure causes the system to be paralyzed, the performance degradation of the code reader cannot be timely discovered, and the maintenance opportunity is delayed; on the other hand, there is a problem of fuzzy fault classification: it is difficult to timely classify and locate the fault; the multiple factors such as installation deviation, hardware damage, network abnormality need to be manually checked, and the average maintenance period is as long as several hours; on the other hand, there is a problem of equipment dependence: the reading rate statistics depend on the storage function of the RFID code reader equipment, and cannot be compatible with old or low-end models, and the upgrade cost is high.

[0006] In view of the above problems, it is necessary to develop a code reader fault diagnosis system and method of a hospital box logistics system to monitor the reading rate in real time, classify the faults, and realize the universality of the code reader equipment. SUMMARY

[0007] One object of the present disclosure is to develop a code reader fault diagnosis system and method of a hospital box logistics system to monitor the reading rate in real time, classify the faults, and realize the universality of the code reader equipment.

[0008] To solve the above-mentioned purpose, one aspect of the present disclosure provides a code reader fault diagnosis system of a hospital box logistics system, which comprises: a code reader installed below a horizontal conveying line and configured to scan the bar code information on the turnover box; a trigger photoelectric sensor installed above the horizontal conveying line and located directly above the code reader; the trigger photoelectric sensor is configured to trigger the code reader to read the bar code information embedded in the RFID chip in the turnover box when the turnover box passes through the trigger photoelectric sensor, and store the read bar code information in the RFID register located in the code reader; a code-taking photoelectric sensor installed above the horizontal conveying line and located downstream of the trigger photoelectric sensor on the horizontal conveying line; the code-taking photoelectric sensor is configured to trigger the programmable logic controller to read the information stored in the RFID register when the turnover box passes through the code-taking photoelectric sensor; The programmable logic controller communicates with the code reader through a TCP / IP protocol, and stores the barcode information, the total reading number N, the communication abnormal number C, and the unread number U.

[0009] To solve the above-mentioned purposes, another aspect of the present disclosure proposes a code reader fault diagnosis method of a hospital box logistics system, applied to a code reader fault diagnosis system of the hospital box logistics system, and the method comprises the following steps: S200: The programmable logic controller collects the total reading number N, the communication abnormal number C, and the unread number U of the code reader in real time; S400: Based on the total reading number N, the code reading rate R is dynamically calculated; wherein, When the total reading number N is less than or equal to 1000 times, the code reading rate R = 1 - (the communication abnormal number C + the unread number U) / 1000; When the total reading number N is greater than 1000 times, the code reading rate R = 1 - (the communication abnormal number C + the unread number U) / the total reading number N; S600: When the code reading rate R is less than the code reading warning threshold, an alarm information is sent.

[0010] Compared with the prior art, the code reader fault diagnosis system and method of the hospital box logistics system of the present disclosure have the following beneficial technical effects: Solve the timely processing and accurate classification of the code reader fault of the hospital box logistics system during the material transfer process; Real-time monitoring of the current code reading rate: dynamically calculating the code reading rate, and early fault warning, avoiding the accumulation of small faults to large paralysis, which is helpful for predictive maintenance; the calculation of the code reading rate will not cause false alarm at the beginning when the total reading number is small, which will mislead the maintenance personnel; Realize fault classification: automatically distinguish network communication abnormality and hardware code reading fault, shorten the fault handling time; Realize the universality of the code reader device: strip the dependence on the storage function of the RFID code reader body, and adapt to any type of code reader. This diagnosis method is based on the calculation of the programmable logic controller, and does not depend on specific code reader devices. It will not miss the diagnosis and data recording of the code reader fault because of the change of the code reader type or the code reader itself does not have the statistical function.

[0011] Further areas of applicability will become apparent from the description provided herein. It should be understood that the description and specific examples are intended for purposes of illustration only and are not intended to limit the scope of the present disclosure.

[0012] The above features and advantages of the presently disclosed systems and methods and other features and advantages of the presently disclosed systems and methods will be more clearly understood from consideration of the following detailed description in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF DRAWINGS

[0013] The drawings needed to be used in the following detailed description of the specific embodiments or prior art will be briefly introduced.

[0014] It is obvious that some of the drawings described in the following description are some embodiments of the present disclosure, and other drawings can also be obtained by those skilled in the art without creative labor on the basis of these drawings.

[0015] In order to more clearly illustrate the technical solutions in the specific embodiments or prior art of the present disclosure, more details, features and advantages of the present disclosure are disclosed in the following description of the exemplary embodiments in conjunction with the drawings, in which: Figure 1 Schematic diagram of the information displayed on the host computer of the hospital box logistics system according to one embodiment of the present disclosure.

[0016] Figure 2 Schematic diagram of the information displayed on the host computer of the hospital box logistics system according to one embodiment of the present disclosure. DETAILED DESCRIPTION

[0017] In order to more clearly understand the above-mentioned purposes, features and advantages of the present disclosure, the present disclosure will be further described in detail below in conjunction with the specific embodiments. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0018] In the following description, many specific details are described in detail in order to fully understand the present disclosure, and the same or similar reference signs are used in the drawings and the description to represent the same or similar components or steps.

[0019] However, the present disclosure can also be implemented in other ways different from those described herein. Therefore, the protection scope of the present disclosure is not limited by the specific embodiments disclosed below. In one specific embodiment of this disclosure, a fault diagnosis system for a hospital box-type logistics system is provided, comprising three parts: the first part is an RFID reader device, various photoelectric sensors, and horizontal / vertical conveying equipment at the field end; the second part is a programmable logic controller (PLC) part; and the third part is a host computer monitoring part; wherein, the RFID reader device and the programmable logic controller (PLC) communicate and exchange data through a network; each photoelectric sensor and the horizontal / vertical conveying equipment are connected to the I / O module of the programmable logic controller (PLC), and the programmable logic controller (PLC) communicates and exchanges data with the I / O module through a fieldbus.

[0020] Figure 1 This is a schematic diagram of a reader fault diagnosis system for a hospital box-type logistics system according to a specific embodiment of the present disclosure. An RFID reader 200 is installed below the horizontal roller conveyor line 10. A trigger photoelectric sensor 310 is installed directly above the RFID reader. A code-taking photoelectric sensor 320 is located at a distance greater than half the length of a box and less than the length of a box from the trigger photoelectric sensor 310. A stop photoelectric sensor 330 is installed downstream of the code-taking photoelectric sensor 320, less than the length of a box.

[0021] In one specific embodiment of this disclosure, the structure of the RFID reader fault diagnosis system for a hospital box-type logistics system comprises an RFID reader communicating and exchanging data with a Siemens programmable logic controller (PLC) via the TCP / IP protocol. Field sensors and conveying equipment are connected to a remote I / O module, which communicates with the PLC via the Profinet protocol. The host computer uses the KingView platform and establishes a communication connection with the PLC through an S7-1200 driver. like Figure 1 As shown in a specific embodiment of this disclosure, a barcode reader fault diagnosis system for a hospital box-type logistics system is provided, comprising: The barcode reader 200, installed below the horizontal conveyor line 10, is configured to scan barcode information on the turnover box 100; A trigger photoelectric sensor 310 is installed above the horizontal conveyor line 10, directly above the barcode reader 200. The trigger photoelectric sensor 310 is configured to trigger the barcode reader 200 to read the barcode information embedded in the RFID chip 110 in the turnover box 100 when the turnover box 100 passes by the trigger photoelectric sensor 310, and store the read barcode information in the RFID register located in the barcode reader 200. A code-taking photoelectric sensor 320 is installed above the horizontal conveying line 10 downstream of the trigger photoelectric sensor 310 on the horizontal conveying line 10; the code-taking photoelectric sensor 320 is configured to trigger the programmable logic controller to read the information stored in the RFID register when the turnover box 100 passes through the code-taking photoelectric sensor 320. A programmable logic controller (not shown in the figure) communicates with the code reader 200 through a TCP / IP protocol, stores the barcode information, the total reading number N, the communication abnormality number C, and the unread number U.

[0022] In one specific embodiment of the present disclosure, the programmable logic controller includes a register storage module configured to store the total reading number N in the data block DB600.10, the communication abnormality number C in the data block DB600.20, and the unread number U in the data block DB600.10.

[0023] In one specific embodiment of the present disclosure, when the turnover box 100 passes through the horizontal conveying line 10, corresponding record data is generated in the programmable logic controller, the total reading number is stored in the DB600.10 data block, the communication abnormality number is stored in the DB600.20 data block of the programmable logic controller, and the unread barcode data is stored in the DB600.30 data block of the programmable logic controller. The calculated code reading rate is stored in the DB300,40 data block of the programmable logic controller. The programmable logic controller includes a register storage module configured to store the total reading number N in the data block DB600.10, the communication abnormality number C in the data block DB600.20, the unread number U in the data block DB600.10, and the code reading rate R in the data block DB600.40.

[0024] Beneficial technical effects: The present disclosure uses a standardized data storage structure to be compatible with information from multiple brands of code readers, instead of relying only on the private storage space of the RFID code reader, and the data storage is more secure and less likely to be lost. By unifying the data block mapping, the model decoupling with the RFID code reader is achieved. Different types and different brands, different versions of RFID code readers can be used with the programmable logic controller. The accidental shutdown and operation and maintenance caused by RFID code reader abnormalities on site are reduced. Different types of data are stored by partitioning and modularization, which is beneficial for historical data tracing and convenient for multi-system calling. In one specific embodiment of the present disclosure, a code reader fault diagnosis system is provided, wherein the distance D between the code-taking photoelectric sensor 320 and the trigger photoelectric sensor 310 satisfies 0.5L<D<L; wherein L is the length of the turnover box 100.

[0025] In one embodiment of the present disclosure, the trigger photoelectric sensor 310 is located directly above the RFID reader 200, and the installation position is aligned with the RFID reader 200; the code-taking photoelectric sensor 320 is located downstream of the trigger photoelectric sensor 310 on the horizontal conveying line 10, and the distance between the trigger photoelectric sensor 310 and the code-taking photoelectric sensor 320 is 0.5-1 times the length of the tote 100.

[0026] Beneficial technical effects: The distance between the code-taking photoelectric sensor 320 and the trigger photoelectric sensor 310 is >0.5 times the length of the tote 100, and the distance between the code-taking photoelectric sensor 320 and the trigger photoelectric sensor 310 is >1 times the length of the tote 100. This ensures that the tote positioning and the reading action are strictly synchronized, eliminating reading failure events caused by position deviation. In one embodiment of the present disclosure, the stop photoelectric sensor 330 is located downstream of the code-taking photoelectric sensor 320 on the horizontal conveying line 10, and the distance between the code-taking photoelectric sensor 320 and the stop photoelectric sensor 330 is <1 times the length of the tote 100, ensuring accurate triggering and data synchronization.

[0027] Beneficial technical effects: The physical installation position of the trigger photoelectric sensor 310 / code-taking photoelectric sensor 320 is designed ingeniously, which can solve the practical problem of "when is it more appropriate to collect reader data". If the code-taking is too early, the reader has not met more than half of the tote 100, and the reading is not reliable enough; if the code-taking is too late, the accuracy of the reading changes. In one embodiment of the present disclosure, a reader fault diagnosis system is provided, wherein the programmable logic controller comprises: a reading rate calculation module configured to dynamically calculate the reading rate R based on the total number of readings N; wherein when the total number of readings N≤1000, the reading rate R = 1 - (communication abnormality number C + unread number U) / 1000; when the total number of readings N>1000, the reading rate R = 1 - (communication abnormality number C + unread number U) / total number of readings N; when the reading rate R<reading warning threshold, an alarm information is sent.

[0028] In one embodiment of the present disclosure, during the peak period of the tote 100 passing through the horizontal conveying line 10, the reading warning threshold is 90%. When the reading rate R<90%, the programmable logic controller sends an alarm information to the upper computer. During the flat peak period of the tote 100 passing through the horizontal conveying line 10, the reading warning threshold is 80%. When the reading rate R<80%, the programmable logic controller sends an alarm information to the upper computer.

[0029] Figure 2Fig. 1 is a schematic diagram of information displayed on a host computer of a hospital box logistics system according to one specific embodiment of the present disclosure. Using KingView to establish a data model, the data display is associated to several data block variables of the just programmable logic controller, and the corresponding values are displayed on the monitored host computer as shown in Fig. 1 for display to the operation and maintenance personnel. Figure 2

[0030] According to one specific embodiment of the present disclosure, alarm information can be set on the monitored host computer, and a pop-up alarm is performed when the value is greater than 90% to prompt the operation and maintenance personnel.

[0031] Beneficial technical effects: through the dynamic denominator design, when N≤1000 in the initialization stage, the accidental error is smoothed, and the early warning accuracy is improved. False positives of small samples are avoided, and early warning is achieved (the existing technology needs to respond after a large number of faults accumulate). The early warning sensitivity is different, and the code reading early warning threshold is different during the peak period and the flat peak period of the turnover box 100 passing through the horizontal conveying line 10. In one specific embodiment of the present disclosure, a code reader fault diagnosis system is provided, wherein the programmable logic controller comprises: a fault diagnosis module configured to distinguish fault types according to the number of communication abnormalities C and the number of unread U; wherein when the number of communication abnormalities C / (the number of communication abnormalities C + the number of unread U)>the first preset threshold, it is determined that a network communication fault occurs.

[0032] In one specific embodiment of the present disclosure, a code reader fault diagnosis system is provided, wherein the programmable logic controller comprises: a fault diagnosis module configured to distinguish fault types according to the number of communication abnormalities C and the number of unread U; wherein when the number of unread U / (the number of communication abnormalities C + the number of unread U)>the second preset threshold, it is determined that a code reader hardware fault occurs.

[0033] ​In one specific embodiment of the present disclosure, the first preset threshold is 70%, and the second preset threshold is 60%. When the number of communication abnormalities C / (the number of communication abnormalities C + the number of unreadings U) > 70%, it is determined that a network communication failure occurs. When the number of unreadings U / (the number of communication abnormalities C + the number of unreadings U) > 60%, it is determined that a reader hardware failure occurs. The programmable logic controller stores the fault type signal in its own register. When it is determined that a communication abnormality failure occurs, the communication abnormality failure flag bit in the register of the programmable logic controller is set to 1. When it is determined that a reader hardware failure occurs, the reader hardware failure flag bit in the register of the programmable logic controller is set to 1. This facilitates the host computer to obtain the fault type signal from the programmable logic controller in a timely manner.

[0034] Beneficial technical effects: By the abnormal type ratio, the root cause of the failure is located as network packet loss (higher C\) and reader failure (higher U), which shortens the maintenance time. The fault type is quickly distinguished. It is no longer necessary to manually troubleshoot to distinguish whether the fault type is a network / hardware / installation problem, which shortens the troubleshooting time. In one specific embodiment of the present disclosure, a reader fault diagnosis method for a hospital box logistics system is provided, which is applied to a reader fault diagnosis system for the hospital box logistics system. The method comprises the following steps: S200: The programmable logic controller collects the total reading number N, the number of communication abnormalities C, and the number of unreadings U of the reader in real time. S400: Based on the total reading number N, the reading rate R is dynamically calculated; wherein, When the total reading number N is less than or equal to 1000 times, the reading rate R = 1 - (the number of communication abnormalities C + the number of unreadings U) / 1000. When the total reading number N is greater than 1000 times, the reading rate R = 1 - (the number of communication abnormalities C + the number of unreadings U) / the total reading number N. S600: When the reading rate R is less than the reading warning threshold, an alarm information is sent.

[0035] Beneficial technical effects: Through the dynamic denominator design, when the total reading number N is less than or equal to 1000 times in the initialization stage (small sample stage), the accidental error is smoothed, the occasional failure and fluctuation are tolerated, early warning is realized. In the stable running stage (large sample stage), the total reading number N is greater than 1000, accurate statistics, sensitive warning, and sensitive capture of abnormalities are realized, so as to solve the problem of long maintenance period in the prior art and improve the warning accuracy. The false alarm probability is reduced when the sample is large.

[0036] In one specific embodiment of the present disclosure, the read code early warning threshold is 90% during the peak period when the turnover box 100 passes through the horizontal conveying line 10. When the read code rate R < 90%, the programmable logic controller sends alarm information to the upper computer. During the flat peak period when the turnover box 100 passes through the horizontal conveying line 10, the read code early warning threshold is 80%. When the read code rate R < 80%, the programmable logic controller sends alarm information to the upper computer.

[0037] Beneficial technical effects: During the peak period and the flat peak period when the turnover box 100 passes through the horizontal conveying line 10, the early warning sensitivity is different, and the read code early warning threshold is different - 90% during the peak period and 80% during the flat peak period. The read code early warning threshold during the peak period is greater than that during the flat peak period, further improving the fault response speed during the peak period. In one specific embodiment of the present disclosure, the read code early warning threshold is 80% during the initial period of the hospital box logistics system, for example, within 48 hours of system startup. When the read code rate R < 80%, the programmable logic controller sends alarm information to the upper computer. During the stable operation period of the hospital box logistics system, for example, 48 hours after system startup, the read code early warning threshold is 90%. When the read code rate R < 90%, the programmable logic controller sends alarm information to the upper computer.

[0038] Beneficial technical effects: During the different periods of the startup of the hospital box logistics system, the early warning sensitivity is different, and the read code early warning threshold is different - 90% during the peak period and 80% during the flat peak period. The read code early warning threshold during the stable operation period of the system is greater than that during the initial period of the system startup, further improving the fault response speed during the stable operation period of the system. Also during the initial period of the system startup, the characteristics of each device are matched, and the fault probability fluctuation brought by the new read code is gradually adapted. In one specific embodiment of the present disclosure, the read code early warning threshold is 80% during the initial period of the hospital box logistics system, for example, within 48 hours of system startup. When the read code rate R < 80%, the programmable logic controller sends alarm information to the upper computer. During the stable operation period of the hospital box logistics system, for example, 48 hours after system startup, the read code early warning threshold is 90%. When the read code rate R < 90%, the programmable logic controller sends alarm information to the upper computer. When the number of communication abnormalities C / (the number of communication abnormalities C + the number of unread U) > the first preset threshold, it is determined that a network communication fault occurs. In one specific embodiment of the present disclosure, the read code early warning threshold is 80% during the initial period of the hospital box logistics system, for example, within 48 hours of system startup. When the read code rate R < 80%, the programmable logic controller sends alarm information to the upper computer. During the stable operation period of the hospital box logistics system, for example, 48 hours after system startup, the read code early warning threshold is 90%. When the read code rate R < 90%, the programmable logic controller sends alarm information to the upper computer. When the number of communication abnormalities C / (the number of communication abnormalities C + the number of unread U) > the first preset threshold, it is determined that a network communication fault occurs.

[0039] In one specific embodiment of the present disclosure, the first preset threshold is 70%, and the second preset threshold is 60%. When the number of communication abnormalities C / (the number of communication abnormalities C + the number of unreadings U) > 70%, it is determined that a network communication failure occurs. When the number of unreadings U / (the number of communication abnormalities C + the number of unreadings U) > 60%, it is determined that a reader hardware failure occurs. The programmable logic controller stores the fault type signal in its own register. When it is determined that a communication abnormality failure occurs, the communication abnormality failure flag bit in the register of the programmable logic controller is set to 1. When it is determined that a reader hardware failure occurs, the reader hardware failure flag bit in the register of the programmable logic controller is set to 1. This facilitates the host computer to obtain the fault type signal from the programmable logic controller in a timely manner.

[0040] Beneficial technical effects: By the abnormal type ratio, the root cause of the failure is located as network packet loss (higher number of communication abnormalities C) and reader failure (higher number of unreadings U), which shortens the maintenance time. The fault type is quickly distinguished. It is no longer necessary to manually troubleshoot to distinguish whether the fault type is a network / hardware / installation problem, which shortens the troubleshooting time. In one specific embodiment of the present disclosure, the reader fault diagnosis method comprises the following steps: S210: When the turnover box 100 passes through the trigger photoelectric sensor 310, the reading action of the reader 200 is triggered, and the reading of the bar code information on the turnover box 100 is started. The bar code information read is stored in the RFID register in the reader 200. S220: When the turnover box 100 passes through the code taking photoelectric sensor 320, the programmable logic controller reads the information stored in the RFID register, and the programmable logic controller automatically adds 1 to the total reading count N.

[0041] In one specific embodiment of the present disclosure, the reader fault diagnosis method further comprises the following steps in step S200: S230: If the information read from the RFID register in S220 is a preset unread code string, the programmable logic controller automatically adds 1 to the number of unreadings U. S240: If the information read from the RFID register in S220 is an error code of communication timeout between the programmable logic controller and the reader 200, the programmable logic controller automatically adds 1 to the number of communication abnormalities C.

[0042] In one specific embodiment of the present disclosure, the preset unread code string is "Noread".

[0043] Beneficial technical effects: ensure that data collection is strictly synchronized with the position of the turnover box 100; through the installation position constraint of the photoelectric sensor, avoid the miscounting caused by the turnover box 100 not completely entering the scanning area of the code reader 200 and starting to read the code. In one specific embodiment of the present disclosure, when the turnover box passes through the card reading area of the code reader, the information interaction process between the RFID code reader and the programmable logic controller is as follows: first, when the turnover box reaches the trigger photoelectric sensor, the trigger photoelectric sensor sends a signal to the code reader to start reading, and the code reader starts to work and read the code; after the code reader successfully reads the code, it stores the read barcode information in its own register; if it fails to read any barcode within the set reading time, it stores the preset barcode value, which is “Noread”, in its own register. In one specific embodiment of the present disclosure, when the turnover box reaches the code reading photoelectric sensor position, the programmable logic controller and the RFID code reader establish communication, and the information just stored in the register of the RFID code reader is acquired to the register of the programmable logic controller for conversion; at the same time, a code reading count is performed, and the counted data is also stored in the register of the programmable logic controller. In one specific embodiment of the present disclosure, the process state code of the communication between the programmable logic controller and the RFID code reader is monitored, and if the communication block is abnormal, a count is performed; the counted data is stored in the register of the programmable logic controller. In one specific embodiment of the present disclosure, under the condition that the communication between the programmable logic controller and the RFID code reader is normal, the final acquired barcode information is judged, and if the barcode value is the preset value that has not been read, such as “Noread”, a count is performed on the result this time, and the counted data is stored in the register of the programmable logic controller. Through the above operations, the following data can be obtained: total reading times, communication abnormal times, and code reader non-reading times. In one specific embodiment of the present disclosure, the calculation method of the code reading rate is as follows: in order to prevent the system from misjudging the state of the code scanner due to individual code scanning failure when the number of code scanning is small, when the total reading times are less than 1000, the code reading rate data is calculated using (communication abnormal times + code reader non-reading times) / 1000; when the total reading times are greater than 1000, the code reading rate data is calculated using (communication abnormal times + code reader non-reading times) / total reading times. In one specific embodiment of the present disclosure, a data box is made on a configuration monitoring screen using monitoring software KingView, data of reading rate and reading quantity, abnormal times, and reading times of the code reader are obtained through communication with the programmable logic controller, and displayed to the monitoring operation interface. When the reading rate is lower than 90%, an alarm information is triggered to prompt the operation and maintenance personnel to maintain and check the code reader, so as to avoid unexpected shutdown. The technical features of the above embodiments can be combined in any manner. To make the description concise, not all possible combinations of the technical features in the above embodiments are described, but as long as the combinations of the technical features do not exist contradictions, they should be considered as the scope of the present disclosure.

[0044] The above description of disclosed embodiments enables a person skilled in the art to implement or use the present disclosure. Various modifications to the above embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the above-described embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

[0045] The above description is merely a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed by the present disclosure, which should be covered within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.

[0046] The above description is merely illustrative and is in no way intended to limit the present disclosure, its application or use. The broad teachings of the present disclosure can be implemented in various forms. Therefore, although the present disclosure includes specific examples, the scope of the present disclosure should not be limited thereto, as other modifications will become apparent after studying the drawings, specification and appended claims.

Claims

1. A code reader fault diagnostic system for a hospital case logistics system, characterized by, The system comprises: a code reader installed below the horizontal conveying line and configured to scan the bar code information on the toter; a trigger photoelectric sensor installed above the horizontal conveying line and directly above the code reader; the trigger photoelectric sensor is configured to trigger the code reader to read the bar code information embedded in the RFID chip in the toter when the toter passes through the trigger photoelectric sensor and store the read bar code information in the RFID register in the code reader; a code-taking photoelectric sensor installed above the horizontal conveying line and downstream of the trigger photoelectric sensor on the horizontal conveying line; the code-taking photoelectric sensor is configured to trigger the programmable logic controller to read the information stored in the RFID register when the toter passes through the code-taking photoelectric sensor; a programmable logic controller in communication with the code reader via TCP / IP protocol, storing the bar code information, the total reading frequency N, the communication abnormality frequency C and the unread frequency U.

2. The reader fault diagnostic system of claim 1, wherein The distance D between the code-taking photoelectric sensor and the trigger photoelectric sensor satisfies 0.5L<D<L; wherein L is the length of the toter.

3. The reader fault diagnostic system of claim 1, wherein The programmable logic controller comprises: a code reading rate calculation module configured to dynamically calculate the code reading rate R based on the total reading frequency N; wherein when the total reading frequency N is less than or equal to 1000 times, the code reading rate R = 1 - (the communication abnormality frequency C + the unread frequency U) / 1000; and when the total reading frequency N is greater than 1000 times, the code reading rate R = 1 - (the communication abnormality frequency C + the unread frequency U) / the total reading frequency N. When the code reading rate R is less than a code reading warning threshold, an alarm information is sent. The programmable logic controller comprises:

4. The code reader fault diagnostic system of claim 3, wherein, a fault diagnosis module configured to distinguish the fault type according to the communication abnormality frequency C and the unread frequency U; wherein when the communication abnormality frequency C / (the communication abnormality frequency C + the unread frequency U) is greater than a first preset threshold, it is determined that a network communication fault occurs. The programmable logic controller comprises:

5. The code reader fault diagnostic system of claim 3, wherein, a fault diagnosis module configured to distinguish the fault type according to the communication abnormality frequency C and the unread frequency U; wherein when the unread frequency U / (the communication abnormality frequency C + the unread frequency U) is greater than a second preset threshold, it is determined that a code reader hardware fault occurs. The method comprises the following steps: 6.A method for diagnosing a fault of a code reader of a hospital box logistics system, applied to the system for diagnosing a fault of a code reader of a hospital box logistics system according to claim 1, characterized in that, S200: The programmable logic controller collects the total reading frequency N, the communication abnormality frequency C and the unread frequency U of the code reader in real time; S400: The code reading rate R is dynamically calculated based on the total reading frequency N; wherein when the total reading frequency N is less than or equal to 1000 times, the code reading rate R = 1 - (the communication abnormality frequency C + the unread frequency U) / 1000; and when the total reading frequency N is greater than 1000 times, the code reading rate R = 1 - (the communication abnormality frequency C + the unread frequency U) / the total reading frequency N. S600: When the code reading rate R is less than a code reading warning threshold, an alarm information is sent. After step S400 and before step S600, the method further comprises step S500: ​ 7. The method of claim 6, wherein, ​ When the number of communication exceptions C / (the number of communication exceptions C + the number of unread U) > the first preset threshold, it is determined that a network communication failure occurs.

8. The method of claim 6, wherein, After step S400 and before step S600, there is also step S550: When the number of unread U / (the number of communication exceptions C + the number of unread U) > the second preset threshold, it is determined that a reader hardware failure occurs.

9. The method of claim 6, wherein, Step S200 includes: S210: When the turnover box passes through the trigger photoelectric sensor, the reading action of the reader is triggered, and the reading of the reader starts to scan the bar code information on the turnover box. The read bar code information is stored in the RFID register located in the reader; S220: When the turnover box passes through the code taking photoelectric sensor, the programmable logic controller reads the information stored in the RFID register, and the programmable logic controller automatically adds 1 to the total number of readings N.

10. The method of claim 6, wherein, Step S200 also includes: S230: If the information read from the RFID register in S220 is the preset unread code string, the programmable logic controller automatically adds 1 to the number of unread U; S240: If the information read from the RFID register in S220 is the error code of the programmable logic controller and the reader communication timeout, the programmable logic controller automatically adds 1 to the number of communication exceptions C.