CN116354018A - Automatic drug storage detection method, device and equipment - Google Patents
Automatic drug storage detection method, device and equipment Download PDFInfo
- Publication number
- CN116354018A CN116354018A CN202310628865.1A CN202310628865A CN116354018A CN 116354018 A CN116354018 A CN 116354018A CN 202310628865 A CN202310628865 A CN 202310628865A CN 116354018 A CN116354018 A CN 116354018A
- Authority
- CN
- China
- Prior art keywords
- palletizing
- information
- target
- drug
- warehouse management
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 239000003814 drug Substances 0.000 title claims abstract description 163
- 238000001514 detection method Methods 0.000 title claims abstract description 69
- 229940079593 drug Drugs 0.000 title claims description 161
- 238000003860 storage Methods 0.000 title claims description 71
- 238000000034 method Methods 0.000 claims abstract description 41
- 230000003993 interaction Effects 0.000 claims abstract description 35
- 230000002452 interceptive effect Effects 0.000 claims abstract description 26
- 230000008569 process Effects 0.000 claims abstract description 24
- 230000002159 abnormal effect Effects 0.000 claims abstract description 22
- 230000005856 abnormality Effects 0.000 claims abstract description 16
- 238000007726 management method Methods 0.000 claims description 95
- 238000004519 manufacturing process Methods 0.000 claims description 91
- 238000007689 inspection Methods 0.000 claims description 29
- 230000001105 regulatory effect Effects 0.000 claims description 25
- 238000013439 planning Methods 0.000 claims description 18
- 230000005540 biological transmission Effects 0.000 claims description 7
- 238000011897 real-time detection Methods 0.000 claims description 6
- 238000012795 verification Methods 0.000 claims description 5
- 230000004044 response Effects 0.000 claims description 4
- 230000006870 function Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- 238000012544 monitoring process Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000004888 barrier function Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000013480 data collection Methods 0.000 description 2
- 238000013524 data verification Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000001447 compensatory effect Effects 0.000 description 1
- 238000010924 continuous production Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 230000000644 propagated effect Effects 0.000 description 1
- 239000000523 sample Substances 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 238000011895 specific detection Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000012384 transportation and delivery Methods 0.000 description 1
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B65—CONVEYING; PACKING; STORING; HANDLING THIN OR FILAMENTARY MATERIAL
- B65G—TRANSPORT OR STORAGE DEVICES, e.g. CONVEYORS FOR LOADING OR TIPPING, SHOP CONVEYOR SYSTEMS OR PNEUMATIC TUBE CONVEYORS
- B65G1/00—Storing articles, individually or in orderly arrangement, in warehouses or magazines
- B65G1/02—Storage devices
- B65G1/04—Storage devices mechanical
- B65G1/0407—Storage devices mechanical using stacker cranes
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B65—CONVEYING; PACKING; STORING; HANDLING THIN OR FILAMENTARY MATERIAL
- B65G—TRANSPORT OR STORAGE DEVICES, e.g. CONVEYORS FOR LOADING OR TIPPING, SHOP CONVEYOR SYSTEMS OR PNEUMATIC TUBE CONVEYORS
- B65G1/00—Storing articles, individually or in orderly arrangement, in warehouses or magazines
- B65G1/02—Storage devices
- B65G1/04—Storage devices mechanical
- B65G1/0485—Check-in, check-out devices
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B65—CONVEYING; PACKING; STORING; HANDLING THIN OR FILAMENTARY MATERIAL
- B65G—TRANSPORT OR STORAGE DEVICES, e.g. CONVEYORS FOR LOADING OR TIPPING, SHOP CONVEYOR SYSTEMS OR PNEUMATIC TUBE CONVEYORS
- B65G1/00—Storing articles, individually or in orderly arrangement, in warehouses or magazines
- B65G1/02—Storage devices
- B65G1/04—Storage devices mechanical
- B65G1/137—Storage devices mechanical with arrangements or automatic control means for selecting which articles are to be removed
- B65G1/1373—Storage devices mechanical with arrangements or automatic control means for selecting which articles are to be removed for fulfilling orders in warehouses
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Mechanical Engineering (AREA)
- Warehouses Or Storage Devices (AREA)
Abstract
Description
技术领域technical field
本发明涉及药品管理技术领域,尤其涉及一种自动化药品入库检测方法、装置及设备。The invention relates to the technical field of drug management, in particular to an automatic drug storage detection method, device and equipment.
背景技术Background technique
随着生活节奏的加快,人们对于物流效率的要求也不断提升。为了提高车间药品的入库效率,机器人通常被用于搬运货箱。车间产药品的入库堆垛从人工变为机器,需要实时校验系统之间的数据准确性和数据平衡。现有技术的缺陷在于:1、药品生产车间和仓库处于不同的空间,车间无法看到仓库码垛情况,不能及时发现问题。2、流水线硬件设备和仓储管理软件之间的数据交互缺少辅助程序的监控,导致无法及时定位问题,无法提前预警设备出现的错误指令。3、各系统间数据传输不对等,容易出现异常。综上所述,由于入库环节较多,出现异常时未及时处理,导致入库效率较低。With the accelerated pace of life, people's requirements for logistics efficiency are also constantly increasing. In order to improve the storage efficiency of medicines in the workshop, robots are usually used to carry boxes. The warehousing and stacking of medicines produced in the workshop has changed from manual to machine, which requires real-time verification of data accuracy and data balance between systems. The defects of the prior art are: 1. The pharmaceutical production workshop and the warehouse are in different spaces, and the workshop cannot see the stacking situation of the warehouse, and cannot find problems in time. 2. The data interaction between the assembly line hardware equipment and the warehouse management software lacks the monitoring of auxiliary programs, which leads to the inability to locate problems in time and prevent early warning of erroneous instructions in equipment. 3. The data transmission between the various systems is not equal, and abnormalities are prone to occur. To sum up, due to the many warehousing links, when an exception occurs, it is not handled in time, resulting in low warehousing efficiency.
发明内容Contents of the invention
本发明的目的是提供一种自动化药品入库检测方法、装置、设备及存储介质,基于跨系统对各数据库建立连接,车间产成品的入库堆垛从人工变为机器,实时校验各数据库之间的数据准确性和数据平衡,可以替代人工检测,及时定位并警示异常,实现入库检测的自动化。The purpose of the present invention is to provide an automatic drug storage detection method, device, equipment and storage medium, based on the establishment of cross-system connections to various databases, the storage and stacking of finished products in the workshop is changed from manual to machine, and real-time verification of each database The data accuracy and data balance between can replace manual inspection, locate and warn abnormalities in time, and realize the automation of storage inspection.
本发明提供了一种自动化药品入库检测方法,其特征在于,包括:The invention provides an automated drug storage detection method, which is characterized in that it comprises:
基于跨系统获取对应的监管码数据库、码垛数据库和仓库管理数据库之间的交互数据,所述交互数据包括与所述监管码数据库建立连接的信息、与所述码垛数据库建立连接的信息和与所述仓库管理数据库建立连接的信息;Interaction data between the corresponding supervision code database, palletizing database and warehouse management database is obtained based on the cross-system, and the interaction data includes information for establishing a connection with the supervision code database, information for establishing a connection with the palletizing database, and Information on establishing a connection with the warehouse management database;
响应于从仓库管理数据库向码垛系统发送的码垛请求,基于所述交互数据对当前码垛状态进行实时检测,得到码垛完成后的码垛状态数据;In response to the palletizing request sent from the warehouse management database to the palletizing system, the current palletizing state is detected in real time based on the interactive data, and the palletizing state data after palletizing is completed;
将所述码垛状态数据从所述码垛系统发送至所述仓库管理系统,建立所述码垛系统与所述仓库管理系统之间的连接,更新所述仓库管理系统生成对应的目标订单状态,并对所述目标订单状态进行实时检测,得到更新后的目标订单数据;Send the palletizing status data from the palletizing system to the warehouse management system, establish a connection between the palletizing system and the warehouse management system, and update the warehouse management system to generate a corresponding target order status , and perform real-time detection on the target order status to obtain updated target order data;
启动检测模式时,对所述当前码垛状态、所述目标订单状态及所述交互数据之间的平衡进行实时检测并判断与自动化药品入库相关任务运行过程中是否存在异常,若出现异常情况时,则在用户界面输出异常提示。When the detection mode is started, the balance between the current palletizing state, the target order state and the interactive data is detected in real time and whether there is any abnormality in the operation process of the task related to the automatic drug storage, if any abnormal situation occurs , an exception prompt will be output on the user interface.
作为优选地,还包括:Preferably, it also includes:
在正常工作运行状态下,根据入库请求采集目标药品信息,将所述目标药品信息从所述监管码系统发送至所述码垛系统,建立所述码垛系统与所述监管码系统之间的连接,所述目标药品信息至少包括目标药品的生产批号、药品子类编码及对应的药品监管码信息;In the normal working state, collect target drug information according to the storage request, send the target drug information from the supervision code system to the palletizing system, and establish a relationship between the palletizing system and the supervision code system The target drug information includes at least the production batch number of the target drug, the drug sub-category code and the corresponding drug regulatory code information;
从所述监管码系统获取目标生产任务ID,根据所述目标生产ID得到对应的药品监管码信息,所述目标生产任务ID与目标码垛任务一一绑定;Obtain the target production task ID from the supervision code system, obtain the corresponding drug supervision code information according to the target production ID, and bind the target production task ID with the target palletizing task one by one;
在检测模式运行状态下,对所述监管码系统与所述码垛系统之间的所述交互数据传输是否成功进行检测,即根据所述目标药品的生产批次获取正在生产中的所述目标生产任务ID,根据所述码垛系统接收到的对应发所述药品监管码信息对所述监管码系统生成对应的所述药品监管码信息进行定位,确认正在生产中的所述目标生产任务ID是否准确;In the running state of the detection mode, it is detected whether the interactive data transmission between the supervision code system and the palletizing system is successful, that is, the target in production is obtained according to the production batch of the target drug production task ID, locate the corresponding drug supervision code information generated by the supervision code system according to the corresponding drug supervision code information received by the palletizing system, and confirm the target production task ID in production is it accurate;
其中,所述目标药品的一个生产批次包括多个目标生产任务,同一批次仅进行一个所述目标生产任务。Wherein, one production batch of the target drug includes multiple target production tasks, and only one target production task is performed in the same batch.
作为优选地,所述启动检测模式的方法包括:Preferably, the method for starting the detection mode includes:
根据所述入库请求获取所述仓库管理系统生成的成品计划工单;Obtain the finished product plan work order generated by the warehouse management system according to the storage request;
根据所述成品计划工单从所述仓库管理系统向所述码垛系统发送码垛位请求;sending a palletizing location request from the warehouse management system to the palletizing system according to the finished product planning work order;
根据所述码垛位请求获取所述码垛系统发出的对目标码垛位的绑定指令以执行对所述目标码垛位的分配,控制外部设备对分配后的码垛位进行分拣,得到码垛完成后的第一对比信息,所述第一对比信息至少包括目标药品的码垛总件数和对应的药品监管码信息;According to the palletizing position request, obtain the binding instruction for the target palletizing position issued by the palletizing system to execute the allocation of the target palletizing position, and control the external equipment to sort the allocated palletizing positions, Obtain the first comparison information after the palletizing is completed, the first comparison information includes at least the total number of palletized pieces of the target drug and the corresponding drug regulatory code information;
将码垛完成后的所述第一对比信息发送至所述仓库管理系统得到目标订单关闭后的第二对比信息,所述第二对比信息至少包括所述码垛系统传输至所述仓库管理系统的目标药品总件数和对应的药品监管码信息;Sending the first comparison information after the palletizing is completed to the warehouse management system to obtain the second comparison information after the target order is closed, the second comparison information at least includes that the palletizing system transmits to the warehouse management system The total number of target drugs and the corresponding drug regulatory code information;
获取所述监管码系统生成的目标药品信息,将所述目标药品信息发送至所述码垛系统得到生产完成后的第三对比信息,所述目标药品信息至少包括目标生产批号和目标药品监管码信息,所述第三对比信息至少包括所述监管码系统传输至所述码垛系统的目标药品总件数和对应的药品监管码信息;Obtain the target drug information generated by the supervision code system, send the target drug information to the palletizing system to obtain the third comparison information after production is completed, the target drug information includes at least the target production batch number and the target drug supervision code Information, the third comparison information includes at least the total number of target drugs transmitted by the regulatory code system to the palletizing system and the corresponding drug regulatory code information;
判断自动化入库流程中是否出现异常,将所述第一对比信息、所述第二对比信息和所述第三对比信息进行比对,实时校验各系统数据库间输出的所述交互数据是否一致,输出与系统稳定性相关的检测结果。Judging whether there is an abnormality in the automated warehousing process, comparing the first comparison information, the second comparison information and the third comparison information, and checking in real time whether the interaction data output between the system databases are consistent , output the detection results related to the system stability.
作为优选地,所述启动检测模式的方法还包括:Preferably, the method for starting the detection mode further includes:
获取所述码垛系统中的所述目标码垛任务的单据信息和监管码信息;Obtain the document information and supervision code information of the target palletizing task in the palletizing system;
对所述码垛系统是否接收到所述监管码系统发送的所述监管码信息进行第一步检测,在传递异常的情况下,重新从所述监管码系统获取所述目标药品对应的监管码信息;The first step is to detect whether the palletizing system has received the supervision code information sent by the supervision code system, and in the case of abnormal transmission, re-obtain the supervision code corresponding to the target drug from the supervision code system information;
对车间产线设备和所述监管码系统、所述码垛系统中交互的网络和端口进行第二步检测;Carry out a second step of detection on the workshop production line equipment, the supervision code system, and the interactive network and ports in the palletizing system;
获取所述监管码系统、所述码垛系统和所述仓库管理系统中所述目标订单对应的所述码垛任务状态和对应的药品监管码信息在各系统数据库中获取的所述交互数据平衡性进行第三步检测,实现对正在进行中或未成功任务的补偿检查;和/或,Obtain the palletizing task status corresponding to the target order in the supervision code system, the palletizing system and the warehouse management system and the corresponding drug supervision code information, and obtain the interaction data balance in each system database a third step of detection, enabling compensatory checks for in-progress or unsuccessful tasks; and/or,
若硬件出现故障情况时,采集硬件错误信息,并根据所述硬件错误信息发出故障提示,所述硬件错误信息包括自动化药品入库过程中相关设备产生的报警信息和仓库上架任务状态异常信息。If there is a hardware failure, hardware error information is collected, and a failure prompt is issued according to the hardware error information. The hardware error information includes alarm information generated by related equipment during the automated drug storage process and abnormal status information of warehouse shelving tasks.
作为优选地,所述基于所述交互数据对目标码垛状态进行实时检测包括:Preferably, the real-time detection of the target palletizing state based on the interaction data includes:
获取码垛任务进行中的所述交互数据,所述交互数据至少包括所述仓库管理数据库传输至所述码垛数据库的单据信息、从所述仓库管理数据库获取到的订单总件数、当前已上架的件数以及从所述码垛数据库获取到的当前托盘上件数;Acquiring the interaction data in progress of the palletizing task, the interaction data at least includes the document information transmitted from the warehouse management database to the palletizing database, the total number of orders obtained from the warehouse management database, the The number of pieces and the number of pieces on the current pallet obtained from the palletizing database;
对每个所述单据信息是否符合预设的码垛规则进行校验;Check whether each document information conforms to the preset palletizing rules;
通过目标订单总件数=托盘上件数+已上架件数的公式,确认所述码垛数据库与所述仓库管理数据库之间产生的所述交互数据是否平衡;Confirm whether the interaction data generated between the palletizing database and the warehouse management database is balanced by the formula of the total number of target orders = the number of pieces on the pallet + the number of pieces on the shelf;
当一个或多个所述单据信息不符合预设的码垛规则时,对当前码垛位进行标记;When one or more of the document information does not meet the preset palletizing rules, mark the current palletizing position;
当全程检测过程中产生的所有所述单据信息均符合预设的码垛规则时,则直接结束当前码垛状态检查的指令操作以完成当前状态下的全程检测运行。When all the document information generated during the whole inspection process conforms to the preset palletizing rules, the command operation of the current palletizing state inspection is directly ended to complete the whole inspection operation under the current state.
作为优选地,判断所述码垛系统是否接收到从所述监管码系统发出的结批指令进一步包括:As preferably, judging whether the palletizing system has received the batch closing instruction sent from the supervision code system further includes:
当托盘上码满一托后,发送满托指令至所述码垛系统并生成xml文件,所述xml文件包括当前码垛任务对应的成品计划工单的订单号、药品生产批次号、托盘号和当前托盘上的监管码信息以及码垛时间;When a pallet is full on the pallet, send a full pallet command to the palletizing system and generate an xml file, which includes the order number of the finished product planning work order corresponding to the current palletizing task, the drug production batch number, the pallet No. and supervision code information on the current pallet as well as palletizing time;
从所述仓库管理系统接收所述xml文件并对所述xml文件进行解析,得到解析后的信息并存储入所述仓库管理系统对应的数据库中,以显示实物已处于入库状态。Receiving the xml file from the warehouse management system and parsing the xml file, obtaining the parsed information and storing it in a database corresponding to the warehouse management system, so as to show that the physical object is in a warehouse-in state.
作为优选地,所述对每个所述单据信息是否符合预设的码垛规则进行校验包括:Preferably, the checking whether each document information conforms to the preset palletizing rules includes:
判断从所述仓库管理系统获取的目标码垛位任务是否合法;Judging whether the target palletizing position task obtained from the warehouse management system is legal;
根据所述生产批号从所述仓库管理系统向所述码垛系统申请码垛位,判断当前码垛位是否申请成功,在申请码垛位未成功的情况下,若车间将打包操作后的所述目标药品放置于提升机上,通过抓取位操作和光电扫描操作之后得到所述目标药品对应的监管码信息,识别到所述监管码信息与当前码垛任务不匹配,则从故障口剔除;Apply for a stacking position from the warehouse management system to the palletizing system according to the production batch number, and judge whether the application for the current stacking position is successful. The target drug is placed on the hoist, and the regulatory code information corresponding to the target drug is obtained after the grab position operation and photoelectric scanning operation. If it is recognized that the regulatory code information does not match the current palletizing task, it will be removed from the fault port;
若当前码垛位已完成分配指令操作,则发出分配新码垛位的拒绝信号并反馈至所述仓库管理系统并向用户发出提示;If the current palletizing position has completed the allocation instruction operation, a rejection signal for allocating a new palletizing position is issued and fed back to the warehouse management system and a prompt is given to the user;
若当前码垛位已分配至当前所述生产批号,则发出分配新码垛位的拒绝信号并反馈至所述仓库管理系统并向用户发出提示;If the current palletizing position has been assigned to the current production batch number, a rejection signal for assigning a new palletizing position is issued and fed back to the warehouse management system and a prompt is given to the user;
判断所述码垛系统是否接收到从所述监管码系统发出的结批指令,若收到所述结批指令则进入对应的入库任务,输出当前码垛的整箱数和总数量,并与实际码垛的整箱数和总数量对比,判断数量是否相等,若未收到所述结批指令则继续运行所述目标码垛任务。Judging whether the palletizing system has received the batch closing instruction sent from the supervision code system, if the batch closing instruction is received, it will enter the corresponding warehousing task, output the number of full boxes and the total quantity of the current palletizing, and Compared with the actual number of full boxes and the total number of palletized, it is judged whether the number is equal, and if the batch closing instruction is not received, the target palletizing task is continued.
作为优选地,所述根据所述入库请求获取所述仓库管理系统生成的成品计划工单进一步包括:Preferably, said obtaining the finished product planning work order generated by the warehouse management system according to the storage request further includes:
对所述成品计划工单进行校验;Verifying the planned work order for the finished product;
其中校验的内容包括:判断从所述成品计划工单中获取的药品子类编码与从所述码垛系统生成的成品子类编码表中的子类编码是否匹配,所述成品子类编码表包括目标药品名称、子类编码和打包成箱后的箱型编号;The content of the verification includes: judging whether the drug subcategory code obtained from the finished product plan work order matches the subcategory code in the finished product subcategory code table generated from the palletizing system, and the finished product subcategory code The table includes the name of the target drug, the subclass code and the box type number packed into the box;
对所述目标码垛位对应的生产批号进行绑定,判断绑定后的所述生产批号是否存在于从所述仓库管理系统获取的目标订单中。Binding the production batch number corresponding to the target pallet location, and judging whether the bound production batch number exists in the target order obtained from the warehouse management system.
本发明还提供了一种自动化药品入库检测装置,包括:The present invention also provides an automatic drug storage detection device, including:
数据获取模块,用于基于跨系统获取对应的监管码数据库、码垛数据库和仓库管理数据库之间的交互数据,所述交互数据包括与所述监管码数据库建立连接的信息、与所述码垛数据库建立连接的信息和与所述仓库管理数据库建立连接的信息;The data acquisition module is used to obtain the interaction data between the corresponding supervision code database, palletizing database and warehouse management database based on cross-system, the interaction data includes the information of establishing a connection with the supervision code database, and the information related to the palletizing Information on establishing a connection to the database and information on establishing a connection with the warehouse management database;
第一检测模块,用于响应于从仓库管理系统向码垛系统发送的码垛请求,基于所述交互数据对当前码垛状态进行实时检测,得到码垛完成后的码垛状态数据;The first detection module is used to respond to the palletizing request sent from the warehouse management system to the palletizing system, to detect the current palletizing state in real time based on the interactive data, and to obtain the palletizing state data after the palletizing is completed;
第二检测模块,用于将所述码垛状态数据从所述码垛系统发送至所述仓库管理系统,建立所述码垛系统与所述仓库管理系统之间的连接,更新所述仓库管理系统生成对应的目标订单状态,并对所述目标订单状态进行实时检测,得到更新后的目标订单数据;The second detection module is used to send the palletizing state data from the palletizing system to the warehouse management system, establish a connection between the palletizing system and the warehouse management system, and update the warehouse management system The system generates the corresponding target order status, and detects the target order status in real time to obtain updated target order data;
异常输出模块,用于启动检测模式时,对所述当前码垛状态、所述目标订单状态及所述交互数据之间的平衡进行实时检测并判断与自动化药品入库相关任务运行过程中是否存在异常,若出现异常情况时,则在用户界面输出异常提示。The abnormal output module is used to detect in real time the balance between the current palletizing state, the target order state and the interactive data when the detection mode is started, and judge whether there is an Abnormal, if an abnormal situation occurs, an abnormal prompt will be output on the user interface.
本发明还提供了一种控制设备,包括:The present invention also provides a control device, comprising:
存储器,所述存储器用于存储处理程序;memory, the memory is used to store the processing program;
处理器,所述处理器执行所述处理程序时实现如本发明实施例所述的自动化药品入库检测方法。A processor, when the processor executes the processing program, the automatic drug storage detection method according to the embodiment of the present invention is realized.
针对现有技术,本发明具有如下的有益效果:For the prior art, the present invention has the following beneficial effects:
本发明所提供的一种自动化药品入库检测方法,基于跨系统对各数据库建立连接,车间产成品的入库堆垛从人工变为机器,实时校验各数据库之间的数据准确性和数据平衡,可以替代人工检测,及时定位并警示异常,实现入库检测的自动化、智能化。The automatic drug storage detection method provided by the present invention is based on the establishment of connections to various databases across systems, the storage and stacking of finished products in the workshop is changed from manual to machine, and the data accuracy and data accuracy between the databases are verified in real time. Balanced, it can replace manual inspection, locate and warn of abnormalities in time, and realize the automation and intelligence of storage inspection.
本发明基于AC、WCS、WMS的跨系统实现对全流程数据校验、监控的功能;作为生产制造业的辅助指令操作,实现了流水线硬件设备以及仓储管理软件的数据采集以及预警功能。The present invention is based on AC, WCS, and WMS to realize the functions of data verification and monitoring of the whole process; as an auxiliary instruction operation in the manufacturing industry, it realizes the data collection and early warning functions of assembly line hardware equipment and warehouse management software.
本发明打通产线上各系统之间的壁垒,实时检查AC、WCS和WMS程序间交互数据,监测码垛状态与数据平衡;实现对设备状态检查,包含网络,端口以及单据状态的检查;实现数据检查功能,检查码垛订单的数据平衡。The invention breaks through the barriers between the various systems on the production line, checks the interactive data between AC, WCS and WMS programs in real time, monitors the palletizing state and data balance; realizes the inspection of the equipment state, including the inspection of the network, port and document state; realizes Data check function, check the data balance of the palletizing order.
附图说明Description of drawings
图1为本发明一实施例中所述自动化药品入库检测方法的步骤示意图;Figure 1 is a schematic diagram of the steps of the automated drug storage detection method described in an embodiment of the present invention;
图2为本发明一实施例中各数据库交互的示意图;Fig. 2 is the schematic diagram of each database interaction in an embodiment of the present invention;
图3为本发明一实施例中WCS码垛状态检测示例图;Fig. 3 is an example diagram of WCS palletizing state detection in an embodiment of the present invention;
图4为本发明一实施例中码垛位状态界面示例图;Fig. 4 is an example diagram of the status interface of the palletizing position in an embodiment of the present invention;
图5为本发明一实施例中自动化药品入库检测流程图;Fig. 5 is a flowchart of automated drug storage detection in an embodiment of the present invention;
图6为本发明一实施例中所述自动化药品入库检测方法的稳定性检查示例图;Fig. 6 is an example diagram of the stability check of the automated drug storage detection method described in an embodiment of the present invention;
图7为本发明一实施例中所述自动化药品入库检测方法的常规检查示例图;Fig. 7 is an example diagram of routine inspection of the automated drug storage detection method described in an embodiment of the present invention;
图8为本发明一实施例中所述自动化药品入库检测方法的故障检查示例图。Fig. 8 is an example diagram of fault checking of the automatic drug storage detection method according to an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一种实施例”表示“至少一种实施例”;术语“另一实施例”表示“至少一种另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。As used herein, the term "comprise" and its variations are open-ended, ie "including but not limited to". The term "based on" is "based at least in part on". The term "an embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below.
需要注意,本申请公开中提及的“一次”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that the concepts such as "once" and "second" mentioned in the disclosure of this application are only used to distinguish different devices, modules or units, and are not used to limit the sequence of functions performed by these devices, modules or units or interdependence.
需要注意,本申请公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "one" and "plurality" mentioned in the disclosure of the present application are illustrative and not restrictive, and those skilled in the art should understand that unless the context clearly indicates otherwise, it should be understood as "a or more".
实施例一Embodiment one
如图1所示,本发明提供了一种自动化药品入库检测方法,其特征在于,包括:As shown in Fig. 1, the present invention provides a kind of automatic drug storage detection method, it is characterized in that, comprises:
S1:基于跨系统获取对应的监管码数据库、码垛数据库和仓库管理数据库之间的交互数据,所述交互数据包括与所述监管码数据库建立连接的信息、与所述码垛数据库建立连接的信息和与所述仓库管理数据库建立连接的信息;参照图2所示,本实施例采用的用户友好的跨系统是通过XZRobot程序实现的交互平台,从各系统数据库获取所需信息,即从监管码系统AC获取监管码数据库数据、从码垛系统WCS获取码垛数据库数据,从仓库管理系统WMS获取仓库管理数据库数据,实时监控界面,只要检测异常就可以示警,以便及时处理。S1: Obtaining the interaction data between the corresponding supervision code database, palletizing database and warehouse management database based on cross-system, the interaction data includes information establishing connection with the supervision code database, information establishing connection with the stacking database Information and the information that establishes connection with described warehouse management database; With reference to shown in Figure 2, the user-friendly cross-system that present embodiment adopts is the interactive platform that realizes by XZRobot program, obtains required information from each system database, namely from supervision The code system AC obtains the supervision code database data, the palletizing system WCS obtains the palletizing database data, and the warehouse management system WMS obtains the warehouse management database data, and monitors the interface in real time. As long as an abnormality is detected, an alarm can be issued for timely processing.
S2:响应于从所述仓库管理系统向所述码垛系统发送的码垛请求,基于所述交互数据对当前码垛状态进行实时检测,得到码垛完成后的码垛状态数据;S2: In response to the palletizing request sent from the warehouse management system to the palletizing system, based on the interactive data, the current palletizing state is detected in real time, and the palletizing state data after palletizing is completed;
为了打通产线上各系统之间的壁垒,实时检查AC、WCS和WMS程序间交互数据,监测码垛状态与数据平衡,所述步骤S2中基于所述交互数据对目标码垛状态进行实时检测包括:In order to break through the barriers between the various systems on the production line, check the interactive data between AC, WCS and WMS programs in real time, monitor the palletizing status and data balance, and perform real-time detection of the target palletizing status based on the interactive data in the step S2 include:
S210:获取当前码垛任务进行中的所述交互数据,所述交互数据至少包括所述仓库管理数据库传输至所述码垛数据库的单据信息、从所述仓库管理数据库获取到的目标订单总件数、当前已上架的件数以及从所述码垛数据库获取到的当前托盘上件数;码垛时需先码到托盘再转换至其他位置,本实施例所述的单据信息包括:根据WMS的成品计划工单申请的WCS码垛位、WMS订单号、药品名称、订单数量、药品子类编码、药品生产批号。S210: Obtain the interaction data in progress of the current palletizing task, the interaction data at least includes the document information transmitted from the warehouse management database to the palletizing database, and the total number of target orders obtained from the warehouse management database , the number of pieces currently on the shelf and the current number of pieces on the pallet obtained from the palletizing database; when palletizing, it is necessary to first code to the pallet and then switch to other positions. The document information described in this embodiment includes: According to the finished product plan of WMS The WCS palletizing position, WMS order number, drug name, order quantity, drug subcategory code, and drug production batch number of the work order application.
S211:对每个所述单据信息是否符合预设的码垛规则进行校验;本实施例预设的码垛规则包括:1、WCS有一张药品信息表,包含药品名称、子类编码、箱型编号。不同大小的箱子有不同的码垛方式,一共有4个编号。子类编码是否在WCS药品信息表中。2、不允许一个生产批次的药物同时有两个码垛任务。S211: Check whether each document information conforms to the preset palletizing rules; the preset palletizing rules in this embodiment include: 1. WCS has a drug information table, including drug name, sub-category code, box model number. Boxes of different sizes have different stacking methods, and there are 4 numbers in total. Whether the subclass code is in the WCS drug information table. 2. It is not allowed to have two palletizing tasks for one production batch of drugs at the same time.
S212:通过订单总件数=托盘上件数+已上架件数的公式,确认所述码垛数据库与所述仓库管理数据库之间的所述交互数据是否平衡;本实施例中所述的已上架件数是指WMS已经收货的件数。当托盘上码满一托后,WCS会生成xml文件,即包含当前码垛任务对应的WMS成品计划工单的订单号、药品生产批次号、托盘号和托盘上的监管码信息以及码垛时间。WMS会将xml文件解析,将以上信息记入数据库中,代表实物已经入库。根据WMS订单号查询到已经入库的监管码数量,也就是收货件数。S212: Confirm whether the interaction data between the palletizing database and the warehouse management database is balanced through the formula of total number of orders = number of pieces on pallet + number of put-on-shelf pieces; the number of put-on-shelf pieces described in this embodiment is Refers to the number of pieces that WMS has received. When a pallet is full of pallets, WCS will generate an xml file, which contains the order number of the WMS finished product plan work order corresponding to the current palletizing task, the drug production batch number, the pallet number, the supervision code information on the pallet, and the palletizing time. WMS will parse the xml file and record the above information into the database, which means that the physical object has been stored. According to the WMS order number, the number of supervised codes that have been put into storage is queried, that is, the number of received items.
S213:当一个或多个所述单据信息不符合预设的码垛规则时,对当前码垛位进行标记;本实施例中所述的单据信息可以是执行WCS任务产生的更新信息或WMS执行任务产生的更新信息,若上述信息均不符合预设规则,则自动化药品入库检测系统中XZRobot程序变红,并会播放报警音示警。S213: When one or more of the document information does not conform to the preset palletizing rules, mark the current palletizing location; the document information described in this embodiment can be updated information generated by executing WCS tasks or executed by WMS For the update information generated by the task, if the above information does not meet the preset rules, the XZRobot program in the automated drug storage inspection system will turn red, and an alarm sound will be played to warn.
S214:当全程检测过程中产生的所有所述单据信息均符合预设的码垛规则时,则直接结束当前码垛状态检查的指令操作以完成当前状态下的全程检测运行。本实施例是自动化药品入库的全程检查,运行30s左右完成一次检查。如果所有需要检查的数据都符合规则,绿色正常显示,一旦途中检测到异常则变红。S214: When all the document information generated during the whole inspection process conforms to the preset palletizing rules, directly end the instruction operation of the current palletizing state inspection to complete the whole inspection operation in the current state. This embodiment is a full-process inspection of automated drug storage, and one inspection is completed after running for about 30 seconds. If all the data that needs to be checked conform to the rules, the green color is normally displayed, and it turns red once an abnormality is detected on the way.
参照图3所示,本实施例中对码垛状态的检查侧重于进行中的任务,从AC、 WCS、WMS数据库中获取WMS传递到WCS的预期到货通知单单据和AC的生产任务,校验每张单据是否符合码垛规则,并通过公式“订单总件数=托盘上件数+已上架件数”实时确认WCS和WMS数据是否平衡,如果发现错误单据会在界面上变成红色,以便提醒业务人员及时发现错误。本实施例中所述错误单据主要预防人为创建工单时的一些错误,比如子类编码错误、仓库错误、数量错误、同一批次多任务同时申请码垛位等。With reference to shown in Fig. 3, in the present embodiment, the inspection to the stacking state focuses on the task in progress, obtains the expected arrival notice document and the production task of AC that WMS passes to WCS from AC, WCS, WMS database, checks Check whether each document complies with the palletizing rules, and confirm in real time whether the WCS and WMS data are balanced through the formula "total number of pieces on the order = number of pieces on the pallet + number of pieces on the shelf". If an error is found, the document will turn red on the interface to remind the business Errors are detected by personnel in a timely manner. The erroneous documents described in this embodiment are mainly to prevent some errors when artificially creating work orders, such as subcategory coding errors, warehouse errors, quantity errors, and simultaneous application for palletizing positions for multiple tasks in the same batch.
一种实施例中,所述步骤S211中对每个所述单据信息是否符合预设的码垛规则进行校验的步骤包括:In one embodiment, the step of checking whether each document information conforms to the preset palletizing rules in the step S211 includes:
S2110:判断从所述仓库管理系统获取的目标码垛位任务是否合法;S2110: judging whether the target palletizing position task obtained from the warehouse management system is legal;
S2111:根据所述生产批号从所述仓库管理系统向所述码垛系统申请码垛位,判断当前码垛位是否申请成功,在申请码垛位未成功的情况下,若车间将打包操作后的所述目标药品放置于提升机上,通过抓取位操作和光电扫描操作之后得到所述目标药品对应的监管码信息,识别到所述监管码信息与当前码垛任务不匹配,则从故障口剔除;S2111: Apply for a palletizing position from the warehouse management system to the palletizing system according to the production batch number, and judge whether the application for the current palletizing position is successful. If the application for the palletizing position is unsuccessful, if the workshop will The target drug is placed on the hoist, and the regulatory code information corresponding to the target drug is obtained after the grabbing position operation and photoelectric scanning operation. If it is recognized that the regulatory code information does not match the current palletizing task, start remove;
S2112:若当前码垛位已完成分配指令操作,则发出分配新码垛位的拒绝信号并反馈至所述仓库管理系统并向用户发出提示;S2112: If the current palletizing location has completed the allocation command operation, send a rejection signal for assigning a new palletizing location, feed it back to the warehouse management system, and issue a prompt to the user;
S2113:若当前码垛位已分配至当前所述生产批号,则发出分配新码垛位的拒绝信号并反馈至所述仓库管理系统并向用户发出提示;S2113: If the current palletizing position has been assigned to the current production batch number, send a rejection signal for allocating the new palletizing position, feed it back to the warehouse management system, and issue a prompt to the user;
S2114:判断所述码垛系统是否接收到从所述监管码系统发出的结批指令,若收到所述结批指令则进入对应的入库任务,输出当前码垛的整箱数和总数量,并与实际码垛的整箱数和总数量对比,判断数量是否相等,若未收到所述结批指令则继续运行所述目标码垛任务。S2114: Judging whether the palletizing system has received the batch closing instruction from the supervision code system, if the batch closing instruction is received, enter the corresponding warehousing task, and output the current number of full boxes and the total number of palletized , and compare it with the actual palletized FCL and total quantity to determine whether the quantity is equal, and continue to run the target palletizing task if the batch closing instruction is not received.
本领域技术人员可以理解,本实施例对预设的码垛规则相关检查:WCS的码垛任务是否合法:1)判断WMS是否申请码垛位,没有申请码垛位时,如果车间将包装好的整箱药品放到提升机上,到了机械手抓取位,光电扫描之后,发现该批监管码没有码垛任务,就会被剔除,从故障口出;2)判断同一批号是否重复申请码垛位,不能出现重复申请的码垛位。Those skilled in the art can understand that this embodiment checks the preset palletizing rules: whether the palletizing task of WCS is legal: 1) judge whether the WMS applies for a palletizing position, if no palletizing position is applied for, if the workshop will pack the Put the whole box of medicines on the hoist, reach the grabbing position of the manipulator, and after photoelectric scanning, if it is found that the batch of supervision codes has no palletizing task, it will be rejected and exit from the fault port; 2) Judging whether the same batch number has repeatedly applied for palletizing positions , there cannot be palletizing positions that have been applied for repeatedly.
进一步地,所述步骤S2114中判断所述码垛系统是否接收到从所述监管码系统发出的结批指令进一步包括:Further, in the step S2114, judging whether the palletizing system has received the batch closing instruction sent from the supervision code system further includes:
当托盘上码满一托后,发送满托指令至所述码垛系统并生成xml文件,所述xml文件包括当前码垛任务对应的成品计划工单的订单号、药品生产批次号、托盘号和当前托盘上的监管码信息以及码垛时间;When a pallet is full on the pallet, send a full pallet command to the palletizing system and generate an xml file, which includes the order number of the finished product planning work order corresponding to the current palletizing task, the drug production batch number, the pallet No. and supervision code information on the current pallet as well as palletizing time;
从所述仓库管理系统接收所述xml文件并对所述xml文件进行解析,得到解析后的信息并存储入所述仓库管理系统对应的数据库中,以显示实物已处于入库状态。Receiving the xml file from the warehouse management system and parsing the xml file, obtaining the parsed information and storing it in a database corresponding to the warehouse management system, so as to show that the physical object is in a warehouse-in state.
S3:将所述码垛状态数据从所述码垛系统发送至所述仓库管理系统,建立所述码垛系统与所述仓库管理系统之间的连接,更新所述仓库管理系统生成对应的目标订单状态,并对所述目标订单状态进行实时检测,得到更新后的目标订单数据;S3: Send the palletizing state data from the palletizing system to the warehouse management system, establish a connection between the palletizing system and the warehouse management system, and update the warehouse management system to generate a corresponding target Order status, and real-time detection of the target order status to obtain updated target order data;
S4:启动检测模式时,对所述当前码垛状态、所述目标订单状态及所述交互数据之间的平衡进行实时检测并判断与自动化药品入库相关任务运行过程中是否存在异常,若出现异常情况时,则在用户界面输出异常提示。运行时,如果码垛任务状态正常,界面为绿色;如发生错误,界面变红,发出警报提示音,车间暂停码垛,直至错误恢复,方可继续码垛。通过检查码垛订单的数据平衡可以实现数据检查功能。S4: When the detection mode is started, the balance between the current palletizing state, the target order state and the interactive data is detected in real time and whether there is any abnormality in the operation process of tasks related to the automatic drug storage, if there is In case of an exception, an exception prompt is output on the user interface. During operation, if the status of the palletizing task is normal, the interface will be green; if an error occurs, the interface will turn red, an alarm will sound, and the workshop will suspend palletizing until the error is recovered before continuing to palletize. The data checking function can be realized by checking the data balance of the palletizing order.
如图4所示,获取码垛位状态以及信息,实时展示内容包括:码垛位道号及当前任务状态,如尚未结批,持续生产中;WMS工单号、产品名称规格、生产批号、获取码垛位时间;WCS已码垛总件数以及AC生产任务ID、是否确认AC生产任务ID、AC已生产件数、WMS已收货件数、当前码垛位托盘上件数、WMS工单状态等。As shown in Figure 4, the status and information of the palletizing position are obtained, and the real-time display content includes: the palletizing position channel number and the current task status, if the batch has not been completed, continuous production; WMS work order number, product name specification, production batch number, Obtain the time of palletizing location; the total number of palletized pieces in WCS and AC production task ID, whether to confirm the AC production task ID, the number of AC produced pieces, the number of WMS received goods, the number of pieces on the pallet at the current palletizing location, the status of WMS work order, etc.
流水线硬件设备和仓储管理软件之间的数据交互缺少辅助程序的监控,导致无法及时定位问题,无法提前预警设备出现的错误指令。本实施例作为生产制造业的辅助方法,实现了流水线硬件设备以及仓储管理软件的数据采集以及预警功能。本实施例采用的跨系统是基于AC、WCS和WMS系统,建立监管码数据库、码垛数据库和仓库管理数据库,下述简称AC数据库、WCS数据库和WMS数据库。图5阐述了成品从车间到仓库的自动入库流程,三个系统之间的关系。XZRobot是在此基础上开发的监控辅助程序,部署于现场全流程校验数据。The data interaction between the assembly line hardware equipment and the warehouse management software lacks the monitoring of auxiliary programs, which makes it impossible to locate problems in time and to warn of wrong instructions in equipment in advance. As an auxiliary method for the manufacturing industry, this embodiment realizes the data collection and early warning functions of the assembly line hardware equipment and warehouse management software. The cross-system used in this embodiment is based on the AC, WCS and WMS systems, to establish a supervision code database, a palletizing database and a warehouse management database, hereinafter referred to as AC database, WCS database and WMS database. Figure 5 illustrates the automatic warehousing process of finished products from the workshop to the warehouse, and the relationship between the three systems. XZRobot is a monitoring auxiliary program developed on this basis, which is deployed on-site to verify data throughout the process.
具体地,本实施例采用的监管码系统在全流程校验中起到的具体检测步骤包括:Specifically, the specific detection steps of the supervision code system used in this embodiment in the whole process verification include:
S5:在正常工作运行状态下,根据入库请求采集目标药品信息,将所述目标药品信息从所述监管码系统发送至所述码垛系统,建立所述码垛系统与所述监管码系统之间的连接,所述目标药品信息至少包括目标药品的生产批号、药品子类编码及对应的药品监管码信息;S5: Under normal working conditions, collect target drug information according to the storage request, send the target drug information from the supervision code system to the palletizing system, and establish the palletizing system and the supervision code system The connection between the target drug information includes at least the production batch number of the target drug, the drug subcategory code and the corresponding drug regulatory code information;
S6:从所述监管码系统获取目标生产任务ID,根据所述目标生产ID得到对应的药品监管码信息,所述目标生产任务ID与所述目标码垛任务一一绑定;S6: Obtain the target production task ID from the supervision code system, obtain the corresponding drug supervision code information according to the target production ID, and bind the target production task ID to the target palletizing task one by one;
S7:在检测模式运行状态下,对所述监管码系统与所述码垛系统之间的所述交互数据传输是否成功进行检测,即根据所述目标药品的生产批次获取正在生产中的所述目标生产任务ID,根据所述码垛系统接收到的对应的所述药品监管码信息对所述监管码系统生成的对应的所述监管码信息进行定位,确认正在生产中的所述目标生产任务ID是否准确;S7: In the running state of the detection mode, detect whether the interactive data transmission between the supervision code system and the palletizing system is successful, that is, obtain all the production batches of the target drug according to the production batch of the target drug. The target production task ID, according to the corresponding drug supervision code information received by the palletizing system, the corresponding supervision code information generated by the supervision code system is located, and the target production in production is confirmed Whether the task ID is accurate;
其中,所述目标药品的一个生产批次包括多个目标生产任务,同一批次仅进行一个所述目标生产任务。本实施例中针对AC进行如下检查,如检查AC是否将监管码成功传给WCS;是否获取到正确的任务ID,为确保全流程数据准确,通过批次取正在生产中的AC任务ID,再通过WCS已经收到的监管码信息去定位AC系统中该监管码,确认获取到的任务ID是否正确。AC一个批次会有多个任务,其他系统不需要使用AC任务ID,所以没有将AC任务ID传给其他系统的功能。同一批次进行中的AC任务只有一个,但车间在极少数情况下:操作时可能存在暂停任务A,进行任务B的情况,这种情况下,实时获取到任务B的ID,因此需要确认任务ID是否正确,并记录正确的ID。Wherein, one production batch of the target drug includes multiple target production tasks, and only one target production task is performed in the same batch. In this embodiment, the following checks are performed on the AC, such as checking whether the AC has successfully passed the supervision code to the WCS; whether the correct task ID has been obtained. Use the supervision code information received by WCS to locate the supervision code in the AC system, and confirm whether the obtained task ID is correct. There are multiple tasks in one batch of AC, and other systems do not need to use the AC task ID, so there is no function of passing the AC task ID to other systems. There is only one AC task in progress in the same batch, but in rare cases, the workshop may suspend task A and perform task B during operation. In this case, the ID of task B is obtained in real time, so the task needs to be confirmed Is the ID correct and records the correct ID.
为了对自动化药品入库检测系统进行稳定性检查,参见图6所示,将所有自动入库流程中检测到的异常,以及结合操作日志便于追溯定位。所述步骤S4中启动检测模式的方法包括:In order to check the stability of the automated drug storage inspection system, as shown in Figure 6, all abnormalities detected in the automatic storage process and combined with the operation log are convenient for traceability and location. The method for starting the detection mode in the step S4 includes:
S410:根据所述入库请求获取所述仓库管理数据库生成的成品计划工单;S410: Obtain a finished product planning work order generated by the warehouse management database according to the storage request;
S411:根据所述成品计划工单从所述仓库管理数据库向所述码垛位数据库发送码垛位请求;所述成品计划工单在自动化入库流程中使用的信息:目标订单号、仓库信息、目标药品名称、目标药品物料编码、目标药品生产批号、目标订单数量、收货数量、单位、托盘号、托盘所在货位号、装箱数和子类编码。S411: Send a palletizing location request from the warehouse management database to the palletizing location database according to the finished product planning work order; the information used by the finished product planning work order in the automated storage process: target order number, warehouse information , the name of the target drug, the material code of the target drug, the production batch number of the target drug, the target order quantity, the quantity received, the unit, the pallet number, the pallet location number, the number of boxes, and the sub-category code.
S412:根据所述码垛位请求获取所述码垛系统发出的对目标码垛位的绑定指令以执行对所述目标码垛位的分配,控制外部设备对分配后的码垛位进行分拣,得到码垛完成后的第一对比信息,所述第一对比信息至少包括目标药品的码垛总件数和对应的药品监管码信息;本实施例中采用的控制外部设备可以是自动分拣机或其他自动分拣设备。S412: According to the palletizing position request, obtain the binding instruction for the target palletizing position issued by the palletizing system to execute the allocation of the target palletizing position, and control the external device to distribute the allocated palletizing position Picking, to obtain the first comparison information after the palletizing is completed, the first comparison information includes at least the total number of palletized pieces of the target drug and the corresponding drug supervision code information; the control external equipment used in this embodiment can be automatic sorting machine or other automatic sorting equipment.
S413:将码垛完成后的所述第一对比信息发送至所述仓库管理系统得到目标订单关闭后的第二对比信息,所述第二对比信息至少包括所述码垛系统传输至所述仓库管理系统的目标药品总件数和对应的药品监管码信息;S413: Send the first comparison information after the palletizing is completed to the warehouse management system to obtain the second comparison information after the target order is closed, the second comparison information at least includes the palletizing system transmitted to the warehouse The total number of target drugs in the management system and the corresponding drug regulatory code information;
S414:获取所述监管码系统生成的目标药品信息,将所述目标药品信息发送至所述码垛系统得到生产完成后的第三对比信息,所述药品信息至少包括目标生产批号和目标药品监管码信息,所述第三对比信息至少包括所述监管码系统传输至所述码垛系统的目标药品总件数和对应的药品监管码信息;S414: Obtain the target drug information generated by the supervision code system, send the target drug information to the palletizing system to obtain the third comparison information after production is completed, the drug information includes at least the target production batch number and target drug supervision Code information, the third comparison information includes at least the total number of target drugs transmitted by the regulatory code system to the palletizing system and the corresponding drug regulatory code information;
S415:判断自动化入库流程中是否出现异常,将所述第一对比信息、所述第二对比信息和所述第三对比信息进行比对,实时校验各系统数据库间输出的所述交互数据是否一致,输出与系统稳定性相关的检测结果,第一对比信息、第二对比信息和第三对比信息还可以包括其他所需用到的信息,更新后的收货信息、码垛信息,仓库管理信息、订单信息等。S415: Determine whether there is an abnormality in the automated warehousing process, compare the first comparison information, the second comparison information, and the third comparison information, and verify the interaction data output between the system databases in real time Whether it is consistent, output the test results related to system stability, the first comparison information, the second comparison information and the third comparison information can also include other required information, updated receipt information, palletizing information, warehouse Management information, order information, etc.
本领域技术人员可以理解,在WCS码垛任务结束后,获取AC、WCS和WMS数据库中码垛任务的单据和数据,通过比较AC传给WCS的总件数和监管码信息、WCS码垛总件数和监管码信息、WCS传给WMS的总件数和监管码信息,以及WMS收货总件数和监管码信息,进行比对,若对应的WMS订单长时间未关闭,则会报警提示,此时再由人工干预。对WCS的检查方法还包括:1)检查WCS当前托盘件数=WCS码垛总件数-WMS收货件数;2)WCS的码垛任务是否合法:i)WMS是否申请码垛位;没有申请码垛位的话,如果车间将包装好的整箱药品放到提升机上,到了机械手抓取位,光电扫描之后,发现该批监管码没有码垛任务,就会被剔除,从故障口出。ii)同一批号是否重复申请码垛位;3)码垛任务是否结批,即AC系统是否发出订单结束指令;4)获取实时硬件报警信息,具体内容在下文进行详述。Those skilled in the art can understand that after the WCS palletizing task is completed, the documents and data of the palletizing task in the AC, WCS and WMS databases are obtained, and by comparing the total number of pieces and supervision code information sent by AC to WCS, and the total number of palletizing pieces in WCS Compare with the supervision code information, the total number of pieces and supervision code information sent by WCS to WMS, and the total number of goods received by WMS and the supervision code information. If the corresponding WMS order has not been closed for a long time, an alarm will be prompted. by human intervention. The inspection method of WCS also includes: 1) Check the current number of pallets in WCS = total number of palletized pieces in WCS - number of received goods in WMS; 2) Whether the palletizing task of WCS is legal: i) Whether WMS applies for palletizing position; no application for palletizing If the workshop puts the packaged full box of medicines on the elevator, and reaches the grabbing position of the manipulator, after photoelectric scanning, it is found that there is no palletizing task for the batch of supervision codes, it will be rejected and exit from the fault exit. ii) Whether the same batch number has repeatedly applied for palletizing positions; 3) Whether the palletizing task has been approved, that is, whether the AC system has issued an order end instruction; 4) Obtain real-time hardware alarm information, the specific content will be described in detail below.
所述步骤S410中根据所述入库请求获取所述仓库管理数据库生成的成品计划工单进一步包括:In the step S410, obtaining the finished product planning work order generated by the warehouse management database according to the warehousing request further includes:
对所述成品计划工单进行校验;判断当前码垛位的数据平衡:WCS当前托盘件数=WCS码垛总件数-WMS收货件数;当托盘上码满一托后,WCS会生成xml文件包含当前码垛任务对应的WMS成品计划工单的订单号、药品生产批次号、托盘号和托盘上的监管码信息以及码垛时间。WMS会将xml文件解析,将以上信息记入WMS数据库中,代表实物已经入库。根据WMS订单号查询到已经入库的监管码数量,即收货件数。Verify the planned work order of the finished product; judge the data balance of the current palletizing position: the current number of pallets in WCS = the total number of palletizing in WCS - the number of received goods in WMS; when the pallet is full of pallets, WCS will generate an xml file Contains the order number of the WMS finished product planning work order corresponding to the current palletizing task, the drug production batch number, the pallet number, the supervision code information on the pallet, and the palletizing time. WMS will parse the xml file and record the above information into the WMS database, which means that the physical object has been stored. According to the WMS order number, the number of supervised codes that have been put into the warehouse can be queried, that is, the number of goods received.
其中校验的内容包括:1、从所述仓库管理数据库中成品计划工单中获取的药品子类编码是否能在WCS的产品子类编码表中找到;即WMS的药品子类编码是否存在于WCS的定义之中。2、WMS的上架规则是否合法,不合法出现的情况,比如药品没有根据分类入指定仓库:拼箱入了整箱库;3、对所述目标码垛位对应的生产批号进行绑定,判断绑定后的所述生产批号是否存在于从所述仓库管理数据库获取的目标订单中,这里的订单即为WMS预期到货通知单即与成品计划工单信息一致。The content of the verification includes: 1. Whether the drug subcategory code obtained from the finished product planning work order in the warehouse management database can be found in the product subcategory code table of WCS; that is, whether the drug subcategory code of WMS exists in In the definition of WCS. 2. Whether the shelf rules of WMS are legal or not, for example, if the drug is not put into the designated warehouse according to the classification: the LCL is put into the full container warehouse; 3. Bind the production batch number corresponding to the target pallet position, and judge Whether the bound production batch number exists in the target order obtained from the warehouse management database, where the order is the WMS expected arrival notice and is consistent with the finished product planning work order information.
本实施例中进行常规检查时,参见图7所示,所述步骤S4中启动检测模式的方法还包括:When performing routine inspection in this embodiment, referring to FIG. 7, the method for starting the detection mode in step S4 also includes:
S420:获取所述码垛系统中的所述目标码垛任务的单据信息和对应的药品监管码信息;S420: Obtain the document information and corresponding drug regulatory code information of the target palletizing task in the palletizing system;
S421:对所述码垛系统是否接收到所述监管码系统发送的所述药品监管码信息进行第一步检测,在传递异常的情况下,重新从所述监管码系统获取所述目标药品对应的监管码信息;接收到时,界面绿色一切正常,车间正常码垛;未接收到时会报警提示,车间会暂停码垛,需要人为干预检查网络异常原因。在码垛任务正常绑定的前提下,包装完成的整箱药品被剔除,从故障口出,可能是WCS没有收到AC传递的监管码信息。如果传递成功的情况下被剔除,可能是标签贴歪,或是标签打印异常,没有扫到信息。不成功,则需要AC重新发送监管码信息。S421: Check whether the palletizing system has received the drug supervision code information sent by the supervision code system. Supervision code information; when received, the interface is green and everything is normal, and the workshop is stacking normally; when not received, an alarm will be prompted, and the workshop will suspend palletizing, requiring human intervention to check the cause of network abnormalities. Under the premise that the palletizing task is normally bound, the packaged whole box of medicines is rejected, and the fault exits, it may be that the WCS has not received the supervision code information delivered by the AC. If it is rejected when the delivery is successful, it may be that the label is affixed crookedly, or the label is printed abnormally, and no information is scanned. If it fails, the AC needs to resend the supervision code information.
S422:同时,对车间产线设备和所述监管码系统、所述码垛系统中交互的网络和端口进行第二步检测;有利于实现对设备状态的检测,包含网络,端口以及单据状态检查。S422: At the same time, perform a second step of detection on the workshop production line equipment, the supervision code system, and the interactive network and ports in the palletizing system; it is beneficial to realize the detection of equipment status, including network, port and document status checks .
S423:获取所述监管码系统、所述码垛系统和所述仓库管理系统中所述目标订单对应的所述码垛任务状态和对应的药品监管码信息在各系统数据库中获取的所述交互数据平衡性进行第三步检测,实现对正在进行中或未成功任务的补偿检查。S423: Obtain the interaction of the palletizing task status corresponding to the target order in the regulatory code system, the palletizing system, and the warehouse management system and the corresponding drug regulatory code information obtained in each system database The data balance is checked in the third step to realize the compensation check of the ongoing or unsuccessful tasks.
本领域技术人员可以理解,获取WCS数据库中码垛任务的单据和信息,查询是否收到AC下发的监管码信息;Ping/telnet 车间产线工控机和AC、WCS数据库检查网络和端口是否畅通;获取AC、WCS、WMS数据库获取订单码垛状态和监管码信息,对正在进行中或未成功的任务的补偿检查。具体在本实施例中,通过比对WCS托盘上监管码与当前AC任务监管码的信息,判断是否获取到正确的任务ID;没有获取到正确ID的拼箱任务可以自动重新获取,整箱任务需要人工更新;已关闭但AC、WCS、WMS数据不相等的任务,记录失败原因,找到导致数据不平衡的监管码;对未获取到正确任务状态的记录进行状态更新。Those skilled in the art can understand, obtain the documents and information of the palletizing task in the WCS database, check whether the supervision code information issued by the AC is received; Ping/telnet the industrial computer of the production line in the workshop and the AC and WCS database to check whether the network and ports are unblocked ; Obtain AC, WCS, WMS databases to obtain order palletizing status and supervision code information, and check compensation for ongoing or unsuccessful tasks. Specifically, in this embodiment, by comparing the supervision code on the WCS pallet with the information of the current AC task supervision code, it is judged whether the correct task ID has been obtained; Manual update is required; for tasks that have been closed but with unequal AC, WCS, and WMS data, record the cause of failure and find the supervision code that caused the data imbalance; update the status of records that have not obtained the correct task status.
为了对故障问题进行进一步检查,参见图8所示,所述步骤S4中启动检测模式的方法还包括:In order to further check the fault problem, as shown in Figure 8, the method for starting the detection mode in the step S4 also includes:
S430:若硬件出现故障情况时,采集硬件错误信息,并根据所述硬件错误信息发出故障提示,所述硬件错误信息包括自动化药品入库过程中相关设备产生的报警信息,如码垛机器人和高架库的报警信息、仓库上架任务不存在信息及仓库上架任务未完成状态信息,在获取码垛机器人和高架库的报警信息,按托盘号检查WMS上架任务是否存在,入库状态检查:上架任务是否完成,会发生托盘到入库口,显示没有上架任务,出现下述问题:托盘入指定货位,或者在自动入库时,由于硬件故障卡在了某处等等。码垛机器人的报警信息如托盘条码异常,无法识别;有箱子被剔除;整托托盘从故障口出;缺少托盘需要补充托盘;硬件故障报警,比如第一道升降机故障;plc的托盘上箱数和WCS程序计数不一致等。本实施例中,WCS故障读取模块收集WMS和WCS接口中WCS的硬件错误,在运行过程中及时提醒业务人员。本实施例中码垛完成的托盘最后进入高架库,即高架立体库。S430: If the hardware fails, collect hardware error information, and issue a fault prompt according to the hardware error information. The hardware error information includes alarm information generated by related equipment during the automated drug storage process, such as palletizing robots and overhead racks. The alarm information of the warehouse, the information of the non-existence of the warehouse put-up task and the unfinished state information of the warehouse put-up task, after obtaining the alarm information of the palletizing robot and the high-bay warehouse, check whether the WMS put-up task exists according to the pallet number, check the storage status: whether the put-up task is After completion, the pallet will arrive at the storage port, indicating that there is no put-on-shelf task, and the following problems will occur: the pallet enters the designated storage location, or it gets stuck somewhere due to a hardware failure during automatic storage, etc. The alarm information of the palletizing robot, such as the abnormal bar code of the pallet, cannot be recognized; some boxes are rejected; the whole pallet comes out from the fault port; the lack of pallets needs to be replenished; hardware fault alarms, such as the failure of the first elevator; Inconsistent with the WCS program count, etc. In this embodiment, the WCS fault reading module collects hardware errors of the WCS in the interface between the WMS and the WCS, and promptly reminds business personnel during operation. In this embodiment, palletized pallets finally enter the elevated warehouse, that is, the elevated three-dimensional warehouse.
本实施采用的检测方法应用于入库设备,如机器人、流水线机构,基于AC、WCS、WMS的跨系统的全流程数据进行校验、监控。标准入库流程的工作原理如下:The detection method used in this implementation is applied to storage equipment, such as robots and assembly line mechanisms, and is verified and monitored based on AC, WCS, and WMS cross-system full-process data. The standard inbound process works as follows:
第一步,车间在WMS中选择物料编码加生产批号对应的成品计划工单。In the first step, the workshop selects the finished product planning work order corresponding to the material code and production batch number in WMS.
第二步,WMS发起向WCS申请码垛位,WMS用生产批号进行申请。In the second step, WMS initiates an application to WCS for a palletizing position, and WMS uses the production batch number to apply.
第三步,WCS判断是否可以分配码垛位置,若预设的码垛位已经全分配完,则拒绝分配新的码垛位,反馈给WMS,由WMS提醒用户。预设的码垛位可以是4个或其他数量。In the third step, WCS judges whether the palletizing position can be allocated. If the preset palletizing position has been allocated, it refuses to allocate a new palletizing position and feeds back to WMS, which will remind the user. The preset stacking positions can be 4 or other quantities.
如果码垛位已经分配给当前批号,则拒绝分配新的码垛位,由WMS提醒用户。这种情况可能是用户选错成品计划工单。被拒绝后则停止包装,可以通过触摸屏或者信号灯提示“拒绝分配码垛位的异常”。If the palletizing position is already assigned to the current batch number, then refuse to allocate a new palletizing position, and the user will be reminded by WMS. In this case, the user may select the wrong finished product planning work order. If it is rejected, the packaging will be stopped, and the touch screen or signal light can prompt "abnormal rejection of palletizing position".
若均无上述情况则包装货物。If there are none of the above conditions, pack the goods.
MS中当前任务部分收货和部分上架交替出现,本实施例中所述的上架件数与WMS收货的件数相同。Partial receipt and partial putaway of the current task appear alternately in the MS, and the number of putaway pieces described in this embodiment is the same as the number of pieces received by the WMS.
第四步,包装完毕货物经过本实施例采用的采样设备,如探头,根据电子监管码向WCS发送品名,药品子类编码,批号,电子监管码三级码等信息。In the fourth step, the packaged goods pass through the sampling equipment used in this embodiment, such as probes, and send information such as product name, drug subcategory code, batch number, and three-level electronic supervision code to WCS according to the electronic supervision code.
第五步,WCS根据本实施例提供的自动化入库检测系统获取信息验证当前批号是否是四个码垛位码垛的其中之一,是则货物到提升机,WCS保存上述从本实施例提供的自动化入库检测系统获得的信息;否则暂停。In the fifth step, WCS obtains information according to the automated storage inspection system provided in this embodiment to verify whether the current batch number is one of the four palletizing positions. The information obtained by the automated storage inspection system; otherwise, it is suspended.
第六步,货物到码垛机器人前,WCS根据外箱上的电子监管码获得生产批号,再根据生产批号判断货物放在哪个堆垛位,上述操作都在WCS中完成。The sixth step, before the goods arrive at the palletizing robot, WCS obtains the production batch number according to the electronic supervision code on the outer box, and then judges which stacking position the goods are placed according to the production batch number. The above operations are all completed in WCS.
第七步,码垛机器人码垛。In the seventh step, the palletizing robot palletizes.
第八步,码垛机器人按照预先设定好的一托盘码多少箱码完整托盘。In the eighth step, the palletizing robot completes the pallets according to the preset number of boxes per pallet.
第九步,WCS把托盘和货物的电子监管码三级码信息发送到WMS。上传用于销售平台的XML文件由WMS生成。In the ninth step, WCS sends the third-level code information of the electronic supervision code of pallets and goods to WMS. The XML file uploaded for sales platform is generated by WMS.
第十步,WMS完成上架。In the tenth step, the WMS completes the listing.
第十一步,如果没有检测到AC发送的结批信号,循环至第七步。In the eleventh step, if the batch ending signal sent by the AC is not detected, loop to the seventh step.
第十二步,在最后一托不满整托的情况下,爱创发结批指令,包含整箱的总数量、状态等,给WCS,表明批次结束。WCS比对实际码垛的整箱数和总数量是否相等,不相等则流程停止,报警。The twelfth step, in the case that the last pallet is less than the whole pallet, Aichuang sends a batch closing instruction, including the total quantity and status of the full container, to WCS, indicating that the batch is over. WCS compares whether the number of full boxes actually stacked is equal to the total number, and if they are not equal, the process stops and an alarm is issued.
第十三步,WMS订单关闭,在AC、WCS、WMS数据一致的情况下,关闭成品计划工单。自动入库流程完成。In the thirteenth step, the WMS order is closed, and when the AC, WCS, and WMS data are consistent, the finished product planning work order is closed. The automatic storage process is completed.
第十四步,码垛位该批号的占位释放,WCS删除当前成品计划工单每一箱从监管码系统获得的所有电子监管码的信息。The fourteenth step, release the occupancy of the batch number at the palletizing position, and WCS deletes all the electronic supervision code information obtained from the supervision code system for each box of the current finished product planning work order.
实施例二Embodiment two
基于相同的构思,本发明提供了本发明还提供了一种自动化药品入库检测装置,包括:Based on the same concept, the present invention also provides an automatic drug storage detection device, including:
数据获取模块,用于基于跨系统获取对应的监管码数据库、码垛数据库和仓库管理数据库之间的交互数据,所述交互数据包括与所述监管码数据库建立连接的信息、与所述码垛数据库建立连接的信息和与所述仓库管理数据库建立连接的信息;The data acquisition module is used to obtain the interaction data between the corresponding supervision code database, palletizing database and warehouse management database based on cross-system, the interaction data includes the information of establishing a connection with the supervision code database, and the information related to the palletizing Information on establishing a connection to the database and information on establishing a connection with the warehouse management database;
第一检测模块,用于响应于从所述仓库管理系统向所述码垛系统发送的码垛请求,基于所述交互数据对当前码垛状态进行实时检测,得到码垛完成后的码垛状态数据;本实施例中所述的第一检测模块即为码垛状态检查模块。The first detection module is configured to, in response to the palletizing request sent from the warehouse management system to the palletizing system, detect the current palletizing state in real time based on the interactive data, and obtain the palletizing state after palletizing is completed Data; the first detection module described in this embodiment is the palletizing state inspection module.
第二检测模块,用于将所述码垛状态数据从所述码垛系统发送至所述仓库管理系统,建立所述码垛系统与所述仓库管理系统之间的连接,更新所述仓库管理系统生成对应的目标订单状态,并对所述目标订单状态进行实时检测,得到更新后的目标订单数据;The second detection module is used to send the palletizing state data from the palletizing system to the warehouse management system, establish a connection between the palletizing system and the warehouse management system, and update the warehouse management system The system generates the corresponding target order status, and detects the target order status in real time to obtain updated target order data;
异常输出模块,用于启动检测模式时,对所述当前码垛状态、所述目标订单状态及所述交互数据之间的平衡进行实时检测并判断与自动化药品入库相关任务运行过程中是否存在异常,若出现异常情况时,则在用户界面输出异常提示。The abnormal output module is used to detect in real time the balance between the current palletizing state, the target order state and the interactive data when the detection mode is started, and judge whether there is an Abnormal, if an abnormal situation occurs, an abnormal prompt will be output on the user interface.
第三检测模块,用于在正常工作运行状态下,根据入库请求采集目标药品信息,将所述目标药品信息从所述监管码系统发送至所述码垛系统,建立所述码垛系统与所述监管码系统之间的连接,所述目标药品信息至少包括目标药品的生产批号、药品子类编码及对应的药品监管码信息;The third detection module is used to collect target drug information according to the warehousing request under normal working conditions, send the target drug information from the supervision code system to the palletizing system, and establish the palletizing system and The connection between the supervision code systems, the target drug information at least includes the production batch number of the target drug, the drug subcategory code and the corresponding drug supervision code information;
从所述监管码系统获取目标生产任务ID,根据所述目标生产ID得到对应的药品监管码信息,所述目标生产任务ID与所述目标码垛任务一一绑定;Obtain the target production task ID from the supervision code system, obtain the corresponding drug supervision code information according to the target production ID, and bind the target production task ID with the target palletizing task one by one;
在检测模式运行状态下,对所述监管码系统与所述码垛系统之间的所述交互数据传输是否成功进行检测,即根据所述目标药品的生产批次获取正在生产中的所述目标生产任务ID,根据所述码垛系统接收到的对应的所述药品监管码信息对所述监管码系统生成的对应的所述监管码信息进行定位,确认正在生产中的所述目标生产任务ID是否准确。In the running state of the detection mode, it is detected whether the interactive data transmission between the supervision code system and the palletizing system is successful, that is, the target in production is obtained according to the production batch of the target drug Production task ID, locate the corresponding supervision code information generated by the supervision code system according to the corresponding drug supervision code information received by the palletizing system, and confirm the target production task ID in production Is it accurate.
具体地,系统稳定性检查模块包括:Specifically, the system stability check module includes:
根据所述入库请求获取所述仓库管理系统生成的成品计划工单;Obtain the finished product plan work order generated by the warehouse management system according to the storage request;
根据所述成品计划工单从所述仓库管理系统向所述码垛系统发送码垛位请求;sending a palletizing location request from the warehouse management system to the palletizing system according to the finished product planning work order;
根据所述码垛位请求获取所述码垛位系统发出的对目标码垛位的绑定指令以执行对所述目标码垛位的分配,控制外部设备对分配后的码垛位进行分拣,得到码垛完成后的第一对比信息,所述第一对比信息至少包括目标药品的码垛总件数和对应的药品监管码信息;According to the palletizing position request, obtain the binding instruction for the target palletizing position issued by the palletizing position system to execute the allocation of the target palletizing position, and control the external equipment to sort the allocated palletizing positions , obtaining the first comparison information after the palletizing is completed, the first comparison information includes at least the total number of palletized pieces of the target drug and the corresponding drug regulatory code information;
将所述码垛完成后的第一对比信息发送至所述仓库管理系统得到订单关闭后的第二对比信息,所述第二对比信息至少包括所述码垛系统传输至所述仓库管理系统的目标药品总件数和对应的药品监管码信息;Sending the first comparison information after the palletizing is completed to the warehouse management system to obtain the second comparison information after the order is closed, the second comparison information includes at least the information transmitted by the palletizing system to the warehouse management system The total number of target drugs and the corresponding drug regulatory code information;
获取所述监管码系统生成的目标药品信息,将所述目标药品信息发送至所述码垛系统得到生产完成后的第三对比信息,所述药品信息至少包括目标生产批号和目标药品监管码信息,所述第三对比信息至少包括所述监管码系统传输至所述码垛系统的目标药品总件数和对应的药品监管码信息;Obtain the target drug information generated by the supervision code system, send the target drug information to the palletizing system to obtain the third comparison information after production is completed, and the drug information includes at least the target production batch number and target drug supervision code information , the third comparison information includes at least the total number of target drugs transmitted by the regulatory code system to the palletizing system and the corresponding drug regulatory code information;
判断自动化入库流程中是否出现异常,将所述第一对比信息、所述第二对比信息和所述第三对比信息进行比对,实时校验各系统数据库间输出的所述交互数据是否一致,输出与系统稳定性相关的检测结果。Judging whether there is an abnormality in the automated warehousing process, comparing the first comparison information, the second comparison information and the third comparison information, and checking in real time whether the interaction data output between the system databases are consistent , output the detection results related to the system stability.
常规检查模块包括:获取所述码垛系统中的所述目标码垛任务的单据信息和对应的药品监管码信息;对所述码垛系统是否接收到所述监管码系统发送的所述监管码信息进行第一步检测;同时,对车间产线设备和所述监管码系统、所述码垛系统中交互的网络和端口进行第二步检测;获取所述监管码系统、所述码垛系统和所述仓库管理系统中所述目标订单对应的所述码垛任务状态和对应的药品监管码信息在各数据库中获取的所述交互数据平衡性进行第三步检测,实现对正在进行中或未成功任务的补偿检查。The routine inspection module includes: obtaining the document information and corresponding drug supervision code information of the target palletizing task in the palletizing system; whether the palletizing system has received the supervision code sent by the supervision code system The first step of detection of information; at the same time, the second step of detection is performed on the workshop production line equipment, the supervision code system, and the interactive network and ports in the palletizing system; The third step is to detect the balance of the interaction data obtained in each database of the palletizing task status corresponding to the target order in the warehouse management system and the corresponding drug supervision code information, so as to realize the in-progress or Compensation check for unsuccessful tasks.
故障读取模块,若硬件出现故障情况时,采集硬件错误信息,并根据所述硬件错误信息发出故障提示,所述硬件错误信息包括自动化药品入库过程中相关设备产生的报警信息和仓库上架任务异常信息。The fault reading module, if there is a fault in the hardware, collects hardware error information and sends a fault prompt according to the hardware error information. The hardware error information includes alarm information generated by related equipment during the automated drug storage process and warehouse shelving tasks exception information.
需说明的是,本装置/系统实施例中的各个模块的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且这些模块可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分单元通过处理元件调用软件的形式实现,部分单元通过硬件的形式实现。It should be noted that the division of each module in this device/system embodiment is only a division of logical functions, and may be fully or partially integrated into a physical entity or physically separated during actual implementation. And these modules can all be implemented in the form of calling software through processing elements; they can also be implemented in the form of hardware; some units can also be implemented in the form of calling software through processing elements, and some units can be implemented in the form of hardware.
上述数据获取模块、第一检测模块、第二检测模块和异常输出模块等模块的实现原理、方法已在前述实施例中进行了叙述,因此此处不作重复赘述。The implementation principles and methods of the data acquisition module, the first detection module, the second detection module and the abnormality output module have been described in the foregoing embodiments, so they will not be repeated here.
实施例三Embodiment Three
基于相同的构思,在本申请的一些实施例中,还提供了一种控制设备。该种控制设备中包含存储器和处理器,其中存储器用于对处理程序进行存储,处理器则根据指令对处理程序进行执行。当处理器对处理程序进行执行时,使得前述实施例中的自动化药品入库检测方法得以实现。本实施例中采用的控制设备可以是机器人。Based on the same idea, in some embodiments of the present application, a control device is also provided. The control device includes a memory and a processor, wherein the memory is used to store the processing program, and the processor executes the processing program according to instructions. When the processor executes the processing program, the automatic drug storage inspection method in the foregoing embodiments is realized. The control device used in this embodiment may be a robot.
在本申请的一些实施例中,还提供了一种可读存储介质,该可读存储介质可以为非易失性可读存储介质,也可以为易失性可读存储介质。该可读存储介质中存储有指令,当该指令在计算机上运行时,使得包含该种可读存储介质的电子设备执行前述的自动化药品入库检测方法。In some embodiments of the present application, a readable storage medium is also provided, and the readable storage medium may be a non-volatile readable storage medium or a volatile readable storage medium. Instructions are stored in the readable storage medium, and when the instructions are run on the computer, the electronic equipment including the readable storage medium executes the aforementioned automatic drug storage inspection method.
可以理解的是,对于前述所提及的自动化药品入库检测方法,如果均以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-only memory,ROM)、随机存取存储器(Random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。It can be understood that, if the above-mentioned automated drug storage detection methods are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-only memory, ROM), random access memory (Random access memory, RAM), magnetic disk or optical disk and other various media that can store program codes. .
计算机可读存储介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读存储介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。可读存储介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。A computer readable storage medium may include a data signal carrying readable program code in baseband or as part of a carrier wave traveling as part of a data signal. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable storage medium may also be any readable medium other than a readable storage medium that can send, propagate or transport a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the readable storage medium may be transmitted by any suitable medium, including but not limited to wireless, cable, optical cable, RF, etc., or any suitable combination of the above.
可以以一种或多种程序设计语言的任意组合来编写用于执行本申请所公开的技术方案所涉及的程序代码,程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如C语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。The program codes involved in implementing the technical solutions disclosed in this application can be written in any combination of one or more programming languages, and the programming languages include object-oriented programming languages—such as Java, C++, etc., and also include A conventional procedural programming language—such as C or a similar programming language. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server to execute. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (for example, using an Internet service provider). business to connect via the Internet).
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310628865.1A CN116354018B (en) | 2023-05-31 | 2023-05-31 | Automatic medicine warehouse-in detection method, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310628865.1A CN116354018B (en) | 2023-05-31 | 2023-05-31 | Automatic medicine warehouse-in detection method, device and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116354018A true CN116354018A (en) | 2023-06-30 |
CN116354018B CN116354018B (en) | 2023-08-08 |
Family
ID=86909774
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310628865.1A Active CN116354018B (en) | 2023-05-31 | 2023-05-31 | Automatic medicine warehouse-in detection method, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116354018B (en) |
Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05116705A (en) * | 1991-10-25 | 1993-05-14 | Toshiba Corp | Automatic warehouse system |
JP2001048316A (en) * | 1999-08-17 | 2001-02-20 | Lion Corp | Warehouse management equipment |
JP2002251552A (en) * | 2001-02-23 | 2002-09-06 | Ricoh Co Ltd | Inventory management method, inventory management system, program for executing the method, and recording medium |
US20030212602A1 (en) * | 2002-05-13 | 2003-11-13 | Kurt Schaller | Order and inventory management system |
KR20120095196A (en) * | 2011-02-18 | 2012-08-28 | (주)제이브이엠 | Automatic warehousing and delivery management system for medicine and the warehousing and delivery method thereof |
CN103761546A (en) * | 2013-12-30 | 2014-04-30 | 武汉华工赛百数据系统有限公司 | Quality safety tracing method for food processing enterprises |
CN106920060A (en) * | 2017-03-13 | 2017-07-04 | 上海龙腾科技股份有限公司 | A kind of warehouse management system |
CN207174622U (en) * | 2017-06-21 | 2018-04-03 | 上海上药信谊药厂有限公司 | Pharmaceutical warehouse goes out Input System |
CN108960746A (en) * | 2018-08-14 | 2018-12-07 | 合肥科塑信息科技有限公司 | A kind of factory's material automatic stacking system based on Internet of Things |
WO2019158029A1 (en) * | 2018-02-14 | 2019-08-22 | 菜鸟智能物流控股有限公司 | Logistics object processing method and system |
CN110503375A (en) * | 2019-08-23 | 2019-11-26 | 广州凯晟信息科技有限公司 | Storage management method, device and computer readable storage medium |
CN111252432A (en) * | 2020-02-13 | 2020-06-09 | 龙岩烟草工业有限责任公司 | Warehousing management method and device, computer readable storage medium and warehousing system |
CN215613321U (en) * | 2021-08-30 | 2022-01-25 | 西安市宇威信息科技有限责任公司 | Intelligent warehouse management system |
CN113978986A (en) * | 2021-11-10 | 2022-01-28 | 思拓达仓储泊车技术(常州)有限公司 | Control system and control method of palletizer |
CN115303696A (en) * | 2022-09-15 | 2022-11-08 | 广东耀东华装饰材料科技有限公司 | Sorting system and method for warehouse artificial board building materials |
CN115526556A (en) * | 2022-06-27 | 2022-12-27 | 上海力嘉物流科技有限公司 | Logistics storage management system |
CN115983740A (en) * | 2022-10-17 | 2023-04-18 | 联通(四川)产业互联网有限公司 | Intelligent crop storage management method and system |
-
2023
- 2023-05-31 CN CN202310628865.1A patent/CN116354018B/en active Active
Patent Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05116705A (en) * | 1991-10-25 | 1993-05-14 | Toshiba Corp | Automatic warehouse system |
JP2001048316A (en) * | 1999-08-17 | 2001-02-20 | Lion Corp | Warehouse management equipment |
JP2002251552A (en) * | 2001-02-23 | 2002-09-06 | Ricoh Co Ltd | Inventory management method, inventory management system, program for executing the method, and recording medium |
US20030212602A1 (en) * | 2002-05-13 | 2003-11-13 | Kurt Schaller | Order and inventory management system |
KR20120095196A (en) * | 2011-02-18 | 2012-08-28 | (주)제이브이엠 | Automatic warehousing and delivery management system for medicine and the warehousing and delivery method thereof |
CN103761546A (en) * | 2013-12-30 | 2014-04-30 | 武汉华工赛百数据系统有限公司 | Quality safety tracing method for food processing enterprises |
CN106920060A (en) * | 2017-03-13 | 2017-07-04 | 上海龙腾科技股份有限公司 | A kind of warehouse management system |
CN207174622U (en) * | 2017-06-21 | 2018-04-03 | 上海上药信谊药厂有限公司 | Pharmaceutical warehouse goes out Input System |
WO2019158029A1 (en) * | 2018-02-14 | 2019-08-22 | 菜鸟智能物流控股有限公司 | Logistics object processing method and system |
CN108960746A (en) * | 2018-08-14 | 2018-12-07 | 合肥科塑信息科技有限公司 | A kind of factory's material automatic stacking system based on Internet of Things |
CN110503375A (en) * | 2019-08-23 | 2019-11-26 | 广州凯晟信息科技有限公司 | Storage management method, device and computer readable storage medium |
CN111252432A (en) * | 2020-02-13 | 2020-06-09 | 龙岩烟草工业有限责任公司 | Warehousing management method and device, computer readable storage medium and warehousing system |
CN215613321U (en) * | 2021-08-30 | 2022-01-25 | 西安市宇威信息科技有限责任公司 | Intelligent warehouse management system |
CN113978986A (en) * | 2021-11-10 | 2022-01-28 | 思拓达仓储泊车技术(常州)有限公司 | Control system and control method of palletizer |
CN115526556A (en) * | 2022-06-27 | 2022-12-27 | 上海力嘉物流科技有限公司 | Logistics storage management system |
CN115303696A (en) * | 2022-09-15 | 2022-11-08 | 广东耀东华装饰材料科技有限公司 | Sorting system and method for warehouse artificial board building materials |
CN115983740A (en) * | 2022-10-17 | 2023-04-18 | 联通(四川)产业互联网有限公司 | Intelligent crop storage management method and system |
Also Published As
Publication number | Publication date |
---|---|
CN116354018B (en) | 2023-08-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP4063300A1 (en) | Carrying apparatus, carrying robot, counting method, and counting system | |
US8340808B2 (en) | Targeted product distribution system and method | |
JP4070312B2 (en) | Specimen inspection system and specimen inspection method | |
CN116588569B (en) | A method and control system for controlling the entry and exit of warehousing materials | |
CN105046472A (en) | Bearing cover packaging system and control method of bearing cover packaging system | |
CN114378815A (en) | Plate ex-warehouse method, system, equipment and medium based on robot sorting | |
CN117743991A (en) | Monitoring and alarming method and device for warehouse system, warehouse system and electronic equipment | |
CN116354018A (en) | Automatic drug storage detection method, device and equipment | |
CN115403258B (en) | Glass deep processing system and scheduling method | |
CN115055398B (en) | Error-proof system and method for finished cigarette | |
JP2001114407A (en) | Goods collection equipment | |
JP7524154B2 (en) | Apparatus and method for notifying abnormalities in a production line | |
EP4571612A1 (en) | Control method and apparatus of stacker and three-dimensional warehouse automation system | |
CN114936824A (en) | A logistics management method and system | |
CN115132374A (en) | System, method, equipment and medium for high-throughput identification of potential risks of drugs | |
CN118351660A (en) | Alarm method, system, equipment and medium based on sorting errors in logistics sorting | |
CN112918978B (en) | Automatic detecting device for tobacco material warehouse-out | |
JP2022540088A (en) | Archiving system and electronic data archiving method | |
CN111768150A (en) | Logistics equipment health management platform based on 5G network | |
CN114997769A (en) | Warehouse transportation informatization management method and system | |
KR20120043861A (en) | Automatic assorting system | |
US20200393819A1 (en) | Method to control stores for a processing line for containers that were pre-dosed with fluid products | |
CN115180558B (en) | Intelligent handover system and method for warehouse forklift | |
JP7579423B2 (en) | Work efficiency calculation system, method, and program | |
JP7645430B1 (en) | Stacker state prediction method, electronic device, storage medium and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |