Nothing Special   »   [go: up one dir, main page]

CN114636840A - Displacement control method of test tube rack, sample analysis device and storage medium - Google Patents

Displacement control method of test tube rack, sample analysis device and storage medium Download PDF

Info

Publication number
CN114636840A
CN114636840A CN202011493458.7A CN202011493458A CN114636840A CN 114636840 A CN114636840 A CN 114636840A CN 202011493458 A CN202011493458 A CN 202011493458A CN 114636840 A CN114636840 A CN 114636840A
Authority
CN
China
Prior art keywords
test tube
distance
test
target position
rack
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.)
Pending
Application number
CN202011493458.7A
Other languages
Chinese (zh)
Inventor
李鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Dymind Biotechnology Co Ltd
Original Assignee
Shenzhen Dymind Biotechnology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Dymind Biotechnology Co Ltd filed Critical Shenzhen Dymind Biotechnology Co Ltd
Priority to CN202011493458.7A priority Critical patent/CN114636840A/en
Publication of CN114636840A publication Critical patent/CN114636840A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N35/00Automatic analysis not limited to methods or materials provided for in any single one of groups G01N1/00 - G01N33/00; Handling materials therefor
    • G01N35/10Devices for transferring samples or any liquids to, in, or from, the analysis apparatus, e.g. suction devices, injection devices
    • G01N35/1009Characterised by arrangements for controlling the aspiration or dispense of liquids
    • G01N35/1011Control of the position or alignment of the transfer device
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N35/00Automatic analysis not limited to methods or materials provided for in any single one of groups G01N1/00 - G01N33/00; Handling materials therefor
    • G01N35/00584Control arrangements for automatic analysers
    • G01N35/00722Communications; Identification
    • G01N35/00732Identification of carriers, materials or components in automatic analysers
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N35/00Automatic analysis not limited to methods or materials provided for in any single one of groups G01N1/00 - G01N33/00; Handling materials therefor
    • G01N35/02Automatic analysis not limited to methods or materials provided for in any single one of groups G01N1/00 - G01N33/00; Handling materials therefor using a plurality of sample containers moved by a conveyor system past one or more treatment or analysis stations
    • G01N35/04Details of the conveyor system
    • G01N2035/0439Rotary sample carriers, i.e. carousels
    • G01N2035/0441Rotary sample carriers, i.e. carousels for samples

Landscapes

  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Automatic Analysis And Handling Materials Therefor (AREA)

Abstract

The application discloses displacement control method, sample analysis device and storage medium of test-tube rack, this method is used for rotating through control motor drive conveyer belt to drive the test-tube rack displacement on the conveyer belt, this method includes: acquiring a test tube displacement instruction; wherein the test tube displacement instruction indicates to move a first test tube on the test tube rack to a target position; determining a second test tube currently at the identification position; determining the distance between the first test tube and the target position according to the distance between the first test tube and the second test tube and the distance between the target position and the identification position; according to the distance between the first test tube and the target position, the test tube rack is driven, so that the first test tube moves to the target position. By such a mode, the accuracy of test tube displacement can be improved.

Description

一种试管架的位移控制方法、样本分析装置以及存储介质Displacement control method for test tube rack, sample analysis device and storage medium

技术领域technical field

本申请涉及医疗器械技术领域,特别涉及一种试管架的位移控制方法、样本分析装置及计算机可读存储介质。The present application relates to the technical field of medical devices, and in particular, to a displacement control method for a test tube rack, a sample analysis device, and a computer-readable storage medium.

背景技术Background technique

自动进样器是一种智能化、自动化的进样仪器,只需设置好进样参数、把待检测样品放入试管中,传送带就可以把样品自动运输到检测仪器内,即可完成自动进样过程。自动进样器可很大程度地减少人工操作,提高检测效率,在医学检测领域,得到了广泛的应用。The autosampler is an intelligent and automatic sampling instrument. It only needs to set the sampling parameters, put the sample to be tested into the test tube, and the conveyor belt can automatically transport the sample to the testing instrument to complete the automatic injection. sample process. Autosampler can greatly reduce manual operation and improve detection efficiency, and has been widely used in the field of medical detection.

现有的自动进样设备需支持复检功能,实现试管架在传送带上来回反复运输,在运输过程中,通常需要对电机的移动步距进行计算,从而驱动传送带转动,但常规的计算方式得到的步距准确性偏低,无法保证试管位移的准确性。The existing automatic sampling equipment needs to support the re-inspection function to realize the repeated transportation of the test tube racks on the conveyor belt. During the transportation process, it is usually necessary to calculate the moving step of the motor to drive the conveyor belt to rotate. The accuracy of the step distance is low, and the accuracy of the test tube displacement cannot be guaranteed.

发明内容SUMMARY OF THE INVENTION

为了解决上述问题,本申请提供一种试管架的位移控制方法、样本分析装置及计算机可读存储介质,能够提高试管位移的准确性。In order to solve the above problems, the present application provides a displacement control method for a test tube rack, a sample analysis device and a computer-readable storage medium, which can improve the accuracy of the displacement of the test tube.

为解决上述技术问题,本申请采用的一个技术方案是:提供一种试管架的位移控制方法,该方法用于通过控制电机驱动传送带转动,以带动传送带上的试管架位移,该方法包括:获取试管位移指令;其中,试管位移指令表示将试管架上的第一试管移动至目标位;确定当前处于标识位的第二试管;根据第一试管和第二试管的距离,以及目标位和标识位的距离,确定第一试管和目标位的距离;根据第一试管和目标位的距离,驱动试管架,以使第一试管移动至目标位。In order to solve the above-mentioned technical problems, a technical solution adopted in the present application is to provide a method for controlling the displacement of test tube racks. The method is used to drive the rotation of the conveyor belt by controlling the motor to drive the displacement of the test tube racks on the conveyor belt. The method includes: obtaining Test tube displacement instruction; wherein, the test tube displacement instruction means to move the first test tube on the test tube rack to the target position; determine the second test tube currently in the identification position; according to the distance between the first test tube and the second test tube, as well as the target position and the identification position The distance between the first test tube and the target position is determined; according to the distance between the first test tube and the target position, the test tube rack is driven to move the first test tube to the target position.

其中,根据第一试管和第二试管的距离,以及目标位和标识位的距离,确定第一试管和目标位的距离,包括:确定第一试管和第二试管的第一距离;以及确定目标位和标识位的第二距离;根据第一距离和第二距离,确定第一试管和目标位的距离。Wherein, according to the distance between the first test tube and the second test tube, and the distance between the target position and the mark position, determining the distance between the first test tube and the target position includes: determining the first distance between the first test tube and the second test tube; and determining the target The second distance between the position and the identification position; according to the first distance and the second distance, the distance between the first test tube and the target position is determined.

其中,确定第一试管和第二试管的第一距离,包括:确定相邻两个试管之间的距离;获取第一试管的第一编号,以及获取第二试管的第二编号;根据相邻两个试管之间的距离、第一编号和第二编号的差值,确定第一试管和第二试管的第一距离;其中,试管架上的试管按照试管排列顺序依次编号。Wherein, determining the first distance between the first test tube and the second test tube includes: determining the distance between two adjacent test tubes; obtaining the first number of the first test tube, and obtaining the second number of the second test tube; The distance between the two test tubes and the difference between the first number and the second number determine the first distance between the first test tube and the second test tube; wherein, the test tubes on the test tube rack are sequentially numbered according to the order of the test tubes.

其中,试管架上的试管按照试管排列顺序,并对应传送带的移动方向,依次递减编号;根据相邻两个试管之间的距离、第一编号和第二编号的差值,确定第一试管和第二试管的第一距离,包括:当第一编号大于第二编号时,确定第一试管和第二试管的第一距离为正值;或当第一编号小于第二编号时,确定第一试管和第二试管的第一距离为负值。Among them, the test tubes on the test tube rack are sequentially numbered according to the order of the test tubes and corresponding to the moving direction of the conveyor belt; The first distance of the second test tube includes: when the first number is greater than the second number, determining that the first distance between the first test tube and the second test tube is a positive value; or when the first number is smaller than the second number, determining the first distance The first distance between the test tube and the second test tube is a negative value.

其中,确定目标位和标识位的第二距离,包括:确定目标位与原点之间的距离;以及确定标识位与原点之间的距离;根据目标位与原点之间的距离、标识位与原点之间的距离,确定目标位和标识位的第二距离。Wherein, determining the second distance between the target position and the identification position includes: determining the distance between the target position and the origin; and determining the distance between the identification position and the origin; according to the distance between the target position and the origin, the identification position and the origin The distance between the target position and the identification position is determined.

其中,根据第一距离和第二距离,确定第一试管和目标位的距离,包括:计算第一距离和第二距离的和值,作为第一试管和目标位的距离。Wherein, determining the distance between the first test tube and the target position according to the first distance and the second distance includes: calculating the sum of the first distance and the second distance as the distance between the first test tube and the target position.

其中,标识位为装载位,目标位为扫码位,装载位为试管架装载至传送带时,试管架上最靠近扫描位的第一个试管的位置,扫码位上设置有扫码机构,用于对试管上的条码进行扫码;或标识位为装载位,目标位为取样位,取样位上设有取样机构,用于对试管内的液体进行取样操作;或标识位为扫码位,目标位为取样位。Among them, the identification position is the loading position, the target position is the scanning position, the loading position is the position of the first test tube on the test tube rack closest to the scanning position when the test tube rack is loaded on the conveyor belt, and the scanning position is provided with a scanning mechanism. It is used to scan the barcode on the test tube; or the identification position is the loading position, the target position is the sampling position, and the sampling position is provided with a sampling mechanism for sampling the liquid in the test tube; or the identification position is the scanning position. , the target bit is the sampling bit.

其中,方法还包括:在第一试管移动时,获取第一试管的实际移动距离;确定实际移动距离与计算距离之间的误差值;对误差值进行累加,在累加的误差值满足预设阈值时,对下一次位移控制进行补偿。Wherein, the method further includes: when the first test tube moves, acquiring the actual moving distance of the first test tube; determining an error value between the actual moving distance and the calculated distance; accumulating the error values, and when the accumulated error value meets a preset threshold , the next displacement control will be compensated.

为解决上述技术问题,本申请采用的另一个技术方案是:提供一种样本分析装置,该装置包括:传送带,用于承载并运送试管架;电机,连接传送带,用于驱动传送带转动,以带动传送带上的试管架位移;控制器,连接电机,用于采用上述方法控制电机。In order to solve the above technical problem, another technical solution adopted in the present application is to provide a sample analysis device, the device includes: a conveyor belt for carrying and transporting test tube racks; a motor, connected to the conveyor belt, for driving the conveyor belt to rotate to drive the The test tube rack on the conveyor belt is displaced; the controller is connected to the motor, and is used for controlling the motor by the above method.

为解决上述技术问题,本申请采用的又一个技术方案是:提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,计算机程序在被处理器执行时,用以实现上述方法。In order to solve the above-mentioned technical problem, another technical solution adopted in this application is to provide a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, it is used to realize the above method .

本申请实施例的有益效果是:区别于现有技术,本申请提供的试管架的位移控制方法,能够通过准确获取的第一试管和第二试管的距离,以及目标位和标识位的距离,确定试管位移指令所对应的第一试管至目标位的距离,以根据该距离驱动第一试管移动至目标位。通过这样的方式,能够对试管的定向移动提供准确的位移控制,提高了试管位移的准确性。The beneficial effects of the embodiments of the present application are: different from the prior art, the displacement control method of the test tube rack provided by the present application can accurately obtain the distance between the first test tube and the second test tube, and the distance between the target position and the mark position, The distance from the first test tube corresponding to the test tube displacement instruction to the target position is determined, so as to drive the first test tube to move to the target position according to the distance. In this way, accurate displacement control can be provided for the directional movement of the test tube, which improves the accuracy of the displacement of the test tube.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。其中:In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort. in:

图1是本申请提供的进样机构一实施例的结构示意图;1 is a schematic structural diagram of an embodiment of a sample feeding mechanism provided by the present application;

图2是本申请提供的传送带一实施例的结构示意图FIG. 2 is a schematic structural diagram of an embodiment of a conveyor belt provided by the present application

图3是本申请提供的样本分析方法一实施例的流程示意图;3 is a schematic flowchart of an embodiment of a sample analysis method provided by the present application;

图4是本申请提供的样本分析方法另一实施例的流程示意图;4 is a schematic flowchart of another embodiment of the sample analysis method provided by the present application;

图5是本申请提供的试管架的位移控制方法一实施例的流程示意图;5 is a schematic flowchart of an embodiment of a displacement control method for a test tube rack provided by the present application;

图6是本申请提供的试管架的位移控制方法另一实施例的流程示意图;6 is a schematic flowchart of another embodiment of the displacement control method of the test tube rack provided by the present application;

图7是图6中步骤603的具体流程示意图;Fig. 7 is the specific flow chart of step 603 in Fig. 6;

图8是图6中步骤604的具体流程示意图;Fig. 8 is the specific flow chart of step 604 in Fig. 6;

图9是本申请提供的试管架的位移控制方法又一实施例的流程示意图;9 is a schematic flowchart of another embodiment of the displacement control method of the test tube rack provided by the present application;

图10是本申请提供的试管架的位移控制方法再一实施例的流程示意图;10 is a schematic flowchart of another embodiment of the displacement control method of the test tube rack provided by the present application;

图11是图10中步骤1007的具体流程示意图;Fig. 11 is the specific flow chart of step 1007 in Fig. 10;

图12是本申请提供的样本分析装置一实施例的结构示意图;12 is a schematic structural diagram of an embodiment of a sample analysis device provided by the present application;

图13是本申请提供的计算机可读存储介质一实施例的结构示意图。FIG. 13 is a schematic structural diagram of an embodiment of a computer-readable storage medium provided by the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。可以理解的是,此处所描述的具体实施例仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application. In addition, it should be noted that, for the convenience of description, the drawings only show some but not all the structures related to the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

请参阅图1,图1是本申请提供的进样机构一实施例的结构示意图,该进样机构包括传送带10和电机20,在本实施例中,传送带10为单条传送带,传送带10用于在装载位101接收试管架30载入,电机20转动从而驱动传送带10转动,从而带动试管架30从装载位101依次经过扫码位102、取样位103、卸载位104,扫码位102用于设置扫码机构以对试管进行扫码识别,取样位103用于对试管架30上的试管进行取样,卸载位104用于卸载试管架30。Please refer to FIG. 1. FIG. 1 is a schematic structural diagram of an embodiment of a sample feeding mechanism provided by the present application. The sample feeding mechanism includes a conveyor belt 10 and a motor 20. In this embodiment, the conveyor belt 10 is a single conveyor belt, and the conveyor belt 10 is used for The loading position 101 receives the loading of the test tube rack 30, and the motor 20 rotates to drive the conveyor belt 10 to rotate, thereby driving the test tube rack 30 from the loading position 101 to pass through the code scanning position 102, the sampling position 103, and the unloading position 104 in sequence. The scanning position 102 is used for setting The code scanning mechanism is used for scanning code identification of the test tubes, the sampling position 103 is used for sampling the test tubes on the test tube rack 30 , and the unloading position 104 is used for unloading the test tube rack 30 .

进一步参阅图2,图2是本申请提供的传送带一实施例的结构示意图,该传送带10包括带体11和定位结构12。其中,带体11用于承载并运送试管架或试管30,定位结构12设置于带体11的表面,用于对承载于带体11上的试管架或试管30进行定位,从而保证在带体11来回移动的过程中,防止带体11与试管架或试管30之间发生相对滑动,起到准确定位试管架或试管30的作用。Referring further to FIG. 2 , FIG. 2 is a schematic structural diagram of an embodiment of a conveyor belt provided by the present application. The conveyor belt 10 includes a belt body 11 and a positioning structure 12 . The belt body 11 is used for carrying and transporting the test tube racks or test tubes 30, and the positioning structure 12 is provided on the surface of the belt body 11 for positioning the test tube racks or test tubes 30 carried on the belt body 11, so as to ensure that the test tube racks or test tubes 30 are placed on the belt body During the back and forth movement of the 11 , the relative sliding between the belt body 11 and the test tube rack or the test tube 30 is prevented, and the function of accurately positioning the test tube rack or the test tube 30 is achieved.

其中,带体11呈环圈状,可为平皮带,具有光滑内表面。可选地,带体11也可为同步带,具有齿形内表面,其传动精度和传动效率较高。Wherein, the belt body 11 is in the shape of a ring, can be a flat belt, and has a smooth inner surface. Optionally, the belt body 11 can also be a synchronous belt with a toothed inner surface, and its transmission precision and transmission efficiency are high.

其中,定位结构12可为凸起于带体11外表面的挡块12,挡块12用于与试管架30的端部止挡定位配合,或者与试管架30的底部滑动定位配合,进而对承载于带体11上的试管架或试管30进行定位,当然,可选地,定位结构12也可以为凹陷于带体11外表面的凹陷区,凹陷区用于收容试管架30的底部或是收容试管30的底部。Wherein, the positioning structure 12 can be a block 12 protruding from the outer surface of the belt body 11, and the block 12 is used for positioning and matching with the end stop of the test tube rack 30, or sliding positioning and matching with the bottom of the test tube rack 30, so as to The test tube racks or test tubes 30 carried on the belt body 11 are positioned. Of course, optionally, the positioning structure 12 can also be a concave area recessed on the outer surface of the belt body 11, and the concave area is used to accommodate the bottom of the test tube rack 30 or The bottom of the test tube 30 is accommodated.

可选地,挡块12可以通过多种连接方式与带体11连接,优选地,带体11与挡块12为一体结构,带体11和挡块12为相同材料,通过冲压工艺一体成型加工而成。或者,带体11包括第一层结构和第二层结构,第一层结构用于承载试管架或试管30,挡块与第一层结构一体成型。Optionally, the stopper 12 can be connected to the belt body 11 through various connection methods. Preferably, the belt body 11 and the stopper 12 are integrally formed, and the belt body 11 and the stopper 12 are made of the same material and are integrally formed by a stamping process. made. Alternatively, the belt body 11 includes a first layer structure and a second layer structure, the first layer structure is used to carry the test tube rack or the test tube 30, and the stopper is integrally formed with the first layer structure.

在本实施例中,挡块12的数量不做限制,可为多个,多个挡块12之间可呈非等距分布,在其他一些实施例中,多个挡块12之间还可以呈等距分布。In this embodiment, the number of the stoppers 12 is not limited, and it may be multiple, and the multiple stoppers 12 may be distributed at a non-equidistant distance. In other embodiments, the multiple stoppers 12 may also be distributed distributed equidistantly.

可选地,上述进样机构还包括缓冲区(图未示),缓冲区可以设置于带体11的任一端靠近装载位101或卸载位104的位置,也可以在带体11的两端,分别靠近装载位101和卸载位104的位置均设置缓冲区。当带体11上的试管架30的数量为多个时,缓冲区则可以支持多个试管架30整体回退或前进,实现了多个试管架30同时随着传送带10来回运动。Optionally, the above-mentioned sample feeding mechanism also includes a buffer area (not shown in the figure), and the buffer area can be set at either end of the belt body 11 near the loading position 101 or the unloading position 104, or at both ends of the belt body 11, Buffers are set at positions close to the load bit 101 and the unload bit 104, respectively. When the number of the test tube racks 30 on the belt body 11 is multiple, the buffer zone can support the multiple test tube racks 30 to retreat or advance as a whole, so that the multiple test tube racks 30 can move back and forth with the conveyor belt 10 at the same time.

可选地,上述进样机构还可以包括备用电源,例如UPS电源(UninterruptiblePower Supply,不间断电源),当多个试管架30在传送带10上运动以进行各种检测时,若发生断电,则可以利用UPS电源,对整个装置提供不间断的电源,以维持装置的正常工作,保护硬件不受损坏,能够实现断电恢复。Optionally, the above-mentioned sample feeding mechanism may also include a backup power supply, such as a UPS power supply (Uninterruptible Power Supply, uninterruptible power supply). UPS power supply can be used to provide uninterrupted power supply to the entire device to maintain the normal operation of the device, protect the hardware from damage, and realize power failure recovery.

另外,备用电源中还可以配置有存储装置,在利用备用电源供电进行设备工作的过程中,还可以将设备运行产生的数据暂存于备用电源中。在设备恢复供电后,可以将备用电源中暂存的数据再存储于设备的存储器中。In addition, a storage device may also be configured in the backup power supply, and data generated by the operation of the device may be temporarily stored in the backup power supply during the operation of the device using the backup power supply. After the power supply of the device is restored, the data temporarily stored in the backup power supply can be re-stored in the memory of the device.

参阅图3,图3是本申请提供的样本分析方法一实施例的流程示意图,本实施例的方法具体包括:Referring to FIG. 3, FIG. 3 is a schematic flowchart of an embodiment of a sample analysis method provided by the present application. The method of this embodiment specifically includes:

S301:将至少一个试管架装载至传送带上。S301: Load at least one test tube rack onto the conveyor belt.

其中,本实施例中的传送带为单皮带,传送带上设有定位机构,定位机构设置于传送带的带体的表面上,用于对承载于传送带上的试管架进行固定,能够防止带体与试管架之间发生相对滑动,起到准确定位试管架的作用。Among them, the conveyor belt in this embodiment is a single belt, and a positioning mechanism is provided on the conveyor belt. The positioning mechanism is arranged on the surface of the belt body of the conveyor belt, and is used to fix the test tube rack carried on the conveyor belt, which can prevent the belt body from being connected to the test tube. Relative sliding occurs between the racks, which plays the role of accurately positioning the test tube racks.

可选地,定位机构可为凸起于带体外表面的挡块,挡块的数量通常为偶数,两个挡块组成一对,一对挡块之间的距离与试管架的长度相同,用于与试管架的两个端部止挡配合,进而对承载于带体上的试管架进行定位。当试管架与进样机构所对应的装载位对齐时,即可进行试管架的装载动作,以完成装载。Optionally, the positioning mechanism can be a stopper protruding from the outer surface of the belt, the number of stoppers is usually an even number, two stoppers form a pair, and the distance between a pair of stoppers is the same as the length of the test tube rack. It cooperates with the two end stops of the test tube rack, thereby positioning the test tube rack carried on the belt body. When the test tube rack is aligned with the loading position corresponding to the sampling mechanism, the loading action of the test tube rack can be performed to complete the loading.

S302:根据试管位移指令,控制试管架上的试管移动至目标位,以对试管架上的试管完成相应操作。S302: Control the test tube on the test tube rack to move to the target position according to the test tube displacement instruction, so as to complete the corresponding operation on the test tube on the test tube rack.

其中,目标位可以包括扫码位以及取样位等,当目标位是扫码位时,可以对试管架上的试管进行扫码操作,以实现试管有无或试管类别的判断,以及试管架或试管的扫描;当目标位是取样位时,可以对试管架上的试管进行取样操作,以便于其他装置对试管内的样本进行分析。除此之外,目标位还可以是根据实际分析需要所设置的位置,其相应的操作实现方式应为本领域常规手段,在此不做赘述。Among them, the target position can include code scanning position and sampling position, etc. When the target position is the scanning code position, the code scanning operation can be performed on the test tubes on the test tube rack, so as to realize the judgment of the existence of test tubes or the type of test tubes, and the test tube rack or the test tube type. Scanning of test tubes; when the target position is the sampling position, the test tubes on the test tube rack can be sampled, so that other devices can analyze the samples in the test tubes. In addition, the target position may also be a position set according to actual analysis requirements, and the corresponding operation implementation manner should be a conventional means in the field, which will not be repeated here.

S303:将完成操作的试管架从传送带上进行卸载。S303: Unload the completed test tube rack from the conveyor belt.

当试管架完成扫码或取样等操作后,已经满足卸载条件,进一步即可将试管架移动到卸载位,并将试管架推出进给轨道,以完成试管架的整个样本分析检测。When the test tube rack has completed scanning or sampling operations, and the unloading conditions have been met, the test tube rack can be further moved to the unloading position, and the test tube rack can be pushed out of the feed track to complete the entire sample analysis and detection of the test tube rack.

区别于现有技术,本实施例提供的样本分析方法,通过在传送带上设置定位机构,以利用定位机构对传送带上的试管架进行位置固定,避免试管架由于惯性作用而与传送带发生相对滑动,并且通过具有定位机构的传送带带动试管架完成相应的样本检测等操作,保证了样本分析工作的稳定进行。Different from the prior art, in the sample analysis method provided in this embodiment, a positioning mechanism is provided on the conveyor belt to use the positioning mechanism to fix the position of the test tube rack on the conveyor belt, so as to avoid the relative sliding of the test tube rack and the conveyor belt due to inertial action, In addition, the test tube rack is driven by a conveyor belt with a positioning mechanism to complete operations such as corresponding sample detection, which ensures the stable progress of the sample analysis work.

参阅图4,图4是本申请提供的样本分析方法另一实施例的流程示意图,本实施例的方法具体包括:Referring to FIG. 4, FIG. 4 is a schematic flowchart of another embodiment of the sample analysis method provided by the present application. The method of this embodiment specifically includes:

S401:对传送带进行复位,以使传送带上的定位机构与试管架装载区对齐。S401: Reset the conveyor belt to align the positioning mechanism on the conveyor belt with the test tube rack loading area.

可以理解的,传送带的运行可以是持续的,或是停止于前一时刻对应的终止状态,但装载区的试管架在进行装载前通常需要一定准备时间,而当装载区内的试管架准备就绪时,传送带上的定位机构不一定能与试管架对应的装载区对齐,此时即使试管架准备就绪也无法对试管架进行装载操作。It can be understood that the operation of the conveyor belt can be continuous or stop at the corresponding termination state at the previous moment, but the test tube racks in the loading area usually require a certain preparation time before loading, and when the test tube racks in the loading area are ready. At this time, the positioning mechanism on the conveyor belt may not be able to align with the loading area corresponding to the test tube rack. At this time, even if the test tube rack is ready, the test tube rack cannot be loaded.

因此,在对试管架进行装载之前,可以先利用试管架有无识别光耦对试管架对应的装载区进行检测,具体可以包括:检测试管架装载区是否有试管架;若有,则对传送带进行复位,以使传送带上的定位机构与试管架装载区对齐。这样的方式能够在保证试管架准确固定的基础上,同时提高一定的装载效率或检测分析效率。Therefore, before loading the test tube rack, you can first use the test tube rack to identify the optical coupler to detect the corresponding loading area of the test tube rack, which may include: detecting whether there is a test tube rack in the test tube rack loading area; Make a reset to align the positioning mechanism on the carousel with the rack loading area. This method can improve a certain loading efficiency or detection and analysis efficiency on the basis of ensuring the accurate fixing of the test tube rack.

其中,装载区的电机包括装载电机和装载回拨电机,对传送带进行复位是指控制装载电机正转,或控制装载回拨电机反转,当试管架准备就绪时,利用电机对传送带上的进给轨道进行复位补偿或退回,以使传送带上的定位机构与试管架装载区对齐。Among them, the motor in the loading area includes a loading motor and a loading callback motor. To reset the conveyor belt means to control the loading motor to rotate forward, or control the loading callback motor to reverse. Reset compensation or retract the track to align the positioning mechanism on the carousel with the rack loading area.

可选地,若试管架有无识别光耦没有检测到试管架装载区存在试管架,则持续进行检测动作,直到检测结果为存在试管架,即可进行装载前的复位。Optionally, if the photocoupler for identifying the existence of the test tube rack does not detect the existence of the test tube rack in the loading area of the test tube rack, the detection action is continued until the detection result indicates that the test tube rack exists, and then the reset before loading can be performed.

S402:将试管架装载区中的一个试管架装载至传送带上。S402: Load one test tube rack in the test tube rack loading area onto the conveyor belt.

其中,对试管架进行装载时,需要确保装载回拨电机对装载推进处于无干扰状态,避免装载回拨对试管架装载产生影响。可选地,可以利用装载到位识别光耦对试管架的装载动作进行检测,以监控装载是否完成,当装载到位识别光耦被触发时,表明装载成功,此时还可以将试管架装载区剩余的试管架移动至远离传送带,具体可以通过装载回拨电机将进给轨道外的其他试管架剥离进给轨道,避免剩余试管架干涉到进给运动。Among them, when loading the test tube rack, it is necessary to ensure that the loading callback motor is in a state of no interference with the loading advancement, so as to avoid the loading callback from affecting the loading of the test tube rack. Optionally, the loading action of the test tube rack can be detected by using the loading-in-position identification optocoupler to monitor whether the loading is completed. When the loading-in-position identification optocoupler is triggered, it indicates that the loading is successful. At this time, the remaining test tube rack loading area can also be The test tube rack is moved away from the conveyor belt. Specifically, the other test tube racks outside the feed track can be separated from the feed track by the loading and dialing motor, so as to avoid the remaining test tube racks interfering with the feeding movement.

S403:根据试管位移指令,控制试管架上的试管移动至目标位,以对试管架上的试管完成相应操作。S403: Control the test tubes on the test tube rack to move to the target position according to the test tube displacement instruction, so as to complete the corresponding operation on the test tubes on the test tube rack.

在一个应用场景中,根据试管位移指令,可以控制试管架上的试管移动至扫码位,以对试管架上的试管进行扫码操作,扫码位可以识别试管有无或者试管的类型,以及试管和试管架的条码扫描,并进一步可以根据扫码结果,控制试管架上的试管移动至取样位,以对试管架上的试管内的液体进行取样操作。In an application scenario, according to the test tube displacement command, the test tubes on the test tube rack can be controlled to move to the scan code position to scan the test tubes on the test tube rack. The code scan position can identify the presence or absence of test tubes or the type of test tubes, and Barcode scanning of test tubes and test tube racks, and further according to the scanning results, the test tubes on the test tube racks can be controlled to move to the sampling position to sample the liquid in the test tubes on the test tube racks.

可选地,如果上述试管扫描失败,会自动分配默认值,若扫描到试管的样本信息,则将样本信息上传至检测仪器端。如果取样位的取样机构需要检测该样本,此时进样机构会暂停扫描流程,优先响应样本分配以使试管优先进行取样检测,当取样检测的样本分配完成但没有新的样本分配请求时,进样机构会继续扫描剩下的样本试管。Optionally, if the above-mentioned test tube scanning fails, a default value will be automatically assigned, and if the sample information of the test tube is scanned, the sample information will be uploaded to the detection instrument. If the sampling mechanism at the sampling position needs to detect the sample, the sampling mechanism will suspend the scanning process at this time, and give priority to responding to the sample allocation so that the test tube can be sampled first. When the sample allocation for the sampling test is completed but there is no new sample allocation request, the The sample agency will continue to scan the remaining sample tubes.

在一个实施方式中,当试管架移动至扫码位准备进行扫描时,可以先对试管架进行初步扫描,以对例如整个试管架的类型或试管架上试管位的数量进行确定,而后再对试管架上的试管进行扫描,进一步确定每一个试管的具体信息,例如试管类型、容量、样本类型、检测项目等。通过这样的方式,能够加快扫码效率。其中,对试管架的扫描可以通过扫描枪的方式实现,即通过扫描枪对试管架上的条形码/二维码进行扫描,以获取试管架信息;还可以通过RFID(Radio Frequency Identification System射频识别)卡的方式实现,即在每一个试管架上安装一个射频发射装置,然后在扫描位设置一射频接收装置,通过对射频信号的识别以获取试管架信息。In one embodiment, when the test tube rack is moved to the scanning position for scanning, a preliminary scan of the test tube rack may be performed first to determine, for example, the type of the entire test tube rack or the number of test tube positions on the test tube rack, and then the test tube rack may be scanned. The test tubes on the test tube rack are scanned to further determine the specific information of each test tube, such as test tube type, capacity, sample type, test items, etc. In this way, the scanning efficiency can be accelerated. Among them, the scanning of the test tube rack can be realized by means of a scanning gun, that is, the barcode/QR code on the test tube rack is scanned by the scanning gun to obtain the information of the test tube rack; it can also be realized by RFID (Radio Frequency Identification System , Radio Frequency Identification System). ) card, that is, install a radio frequency transmitting device on each test tube rack, and then set up a radio frequency receiving device in the scanning position, and obtain the test tube rack information by identifying the radio frequency signal.

可选地,在本实施例中,当传送上最多可以装载并同时工作的试管架数量为两个时,此时传送带的长度应当足够长,并且进样机构的两端存在一定的缓冲区,能够实现多排试管架的装载。当第一排试管架已经装载完毕并且取样检测到特定试管时,若装载区内的第二排试管架准备就绪满足装载条件,此时传送带上的进给轨道可以优先进行复位操作,使得位于第一排试管架的定位机构之后的另一定位机构与装载区对齐,以进行第二排试管架的装载,在第二排试管架装载完成后,可以继续进行进给运动,以使第二排试管架进行扫码、取样等操作。Optionally, in this embodiment, when the maximum number of test tube racks that can be loaded on the conveyor and work at the same time is two, the length of the conveyor belt should be long enough, and there are certain buffer zones at both ends of the sample feeding mechanism. It can realize the loading of multi-row test tube racks. When the first row of test tube racks has been loaded and a specific test tube is detected by sampling, if the second row of test tube racks in the loading area is ready to meet the loading conditions, the feed track on the conveyor belt can be reset first, so that the first row of test tube racks can be reset. Another positioning mechanism after the positioning mechanism of one row of test tube racks is aligned with the loading area for loading the second row of test tube racks. After the second row of test tube racks is loaded, the feeding motion can be continued to make the second row Test tube racks for scanning, sampling and other operations.

在一些实施例中,在第二排试管架准备开始进行装载前,第一排试管架在进行相应操作时需要满足一定的条件,也即是如上所述的第一排试管架已经装载完毕并且取样检测到了特定试管,其中,该特定试管通常是第一排试管架中位置更靠近第二排试管架的某一试管。在一实施例中,一个试管架一共有10个试管位,可以放置10个试管,根据在该实施例中轨道的长度、定位机构的设置位置、试管架的长度等原因综合考量,确定该特定试管为第一排试管架中的第9号试管,当第一排试管架的第9号试管完成抓取准备进行取样检测后,已满足装载条件的第二排试管架则可以开始进行装载,以在装载完成后进行后续操作。可以理解地,特定试管的位置或编号可以根据装置的实际情况或实际需要进行设置,例如由于传送带长度的关系,只有在前一排试管架进给到第9号试管时,装载区对应传送带部分的距离才能够承载后一排试管架的装载,由此对特定试管预先进行设置。In some embodiments, before the second row of test tube racks is ready to be loaded, the first row of test tube racks needs to meet certain conditions when performing corresponding operations, that is, the first row of test tube racks has been loaded as described above and Sampling detects a specific test tube, wherein the specific test tube is usually a test tube located closer to the second row of test tube racks in the first row of test tube racks. In one embodiment, a test tube rack has a total of 10 test tube positions, and 10 test tubes can be placed. According to comprehensive consideration of the length of the track in this embodiment, the setting position of the positioning mechanism, the length of the test tube rack, etc., the specific test tube is determined. The test tube is the No. 9 test tube in the first row of test tube racks. After the No. 9 test tube of the first row of test tube racks is ready for sampling and testing, the second row of test tube racks that meet the loading conditions can start to be loaded. for subsequent operations after the load is complete. It can be understood that the position or number of a specific test tube can be set according to the actual situation or actual needs of the device. For example, due to the length of the conveyor belt, only when the test tube rack in the previous row is fed to the No. 9 test tube, the loading area corresponds to the conveyor belt part. Only the distance can carry the loading of the next row of test tube racks, so that specific test tubes are pre-set.

在另一些实施例中,在第二排试管架准备开始进行装载前,第一排试管架在进行相应操作时还可以满足其他的一些条件。继续以上述一个试管架共有10个试管位,可以放置10个试管为基础,同样由于轨道的长度、定位机构的设置位置、试管架的长度等原因综合考量,试管在取样过程中可能存在取样失败而必须再次进行检测的情况,此时传送带通常需要反方向转动,以使需要复检的试管能够重新移动至取样位,但由于上述多种原因的限制(例如轨道长度),在第二排试管架已经完成装载的情况下发生回退,可能会出现无法回退或回退后无法再次重新进给的问题,因此在该实施例中,在对第二排试管架进行装载前,需要等待第一排试管架的第10号试管完成复检,也即是试管架上所有试管复检结束,包括不需要复检的情况。In other embodiments, before the second row of test tube racks is ready to start loading, the first row of test tube racks may also meet some other conditions when performing corresponding operations. Continue to take the above-mentioned test tube rack with a total of 10 test tube positions, and 10 test tubes can be placed as the basis. Also, due to the length of the track, the setting position of the positioning mechanism, the length of the test tube rack and other reasons, the test tube may have a sampling failure during the sampling process. In the case where the test must be carried out again, the conveyor belt usually needs to rotate in the opposite direction, so that the test tube that needs to be re-tested can be moved to the sampling position again. When the racks are already loaded, the test tube racks are retracted, and there may be a problem that the test tube racks cannot be retracted or cannot be fed again after retraction. Therefore, in this embodiment, before loading the test tube racks in the second row, it is necessary to wait for the third row of test tube racks to be loaded. The 10th test tube in a row of test tube racks has completed the re-inspection, that is, the re-inspection of all the test tubes on the test-tube rack is completed, including the cases where re-inspection is not required.

可选地,还可以将第一排试管架的复检问题和特定试管等情况进行综合考虑,例如需要保证位于第一排试管架的某一特定试管之前的所有试管(包括特定试管)均完成复检或不需要复检,在此之后再进行第二排试管架的装载,以保证整个进给过程的稳定进行。Optionally, it is also possible to comprehensively consider the re-inspection of the first row of test tube racks and specific test tubes. For example, it is necessary to ensure that all test tubes (including specific test tubes) located before a specific test tube in the first row of test tube racks are completed. Re-inspection or no re-inspection is required, after which the second row of test tube racks is loaded to ensure the stability of the entire feeding process.

当进给轨道由于物理限制导致不能对轨道上的全部试管进行扫描时,可以暂停扫描,直到满足继续扫描的条件时(例如第一排试管架被卸载),即可再次启动扫描剩下的试管直到扫描完成。进一步,还可以根据进给轨道的实际情况,对第一排试管架未卸载前,第二排试管架内试管允许扫描的具体个数,例如由于进给轨道的缘故,当第一排试管架未卸载,且第二排试管架开始进入扫描阶段时,允许第二排试管架内试管进行扫描的最大试管数量为两个,也就是说第二排试管架在其前两个试管扫描完成后,只有在第一排试管架完成卸载之后,才可以继续完成扫描。When the feed track cannot scan all the test tubes on the track due to physical limitations, the scan can be paused until the conditions for continuing scanning are met (for example, the first row of test tube racks is unloaded), and the remaining test tubes can be scanned again. until the scan is complete. Further, according to the actual situation of the feeding track, the specific number of test tubes allowed to be scanned in the second row of test tube racks before the first row of test tube racks is not unloaded, for example, due to the feeding track, when the first row of test tube racks is not unloaded When the second row of test tube racks is not unloaded, and the second row of test tube racks starts to enter the scanning phase, the maximum number of tubes allowed to be scanned in the second row of test tube racks is two. , the scan can be continued only after the first row of test tube racks has been unloaded.

进一步,本实施例中,当传送上最多可以同时工作的试管架数量为两个时,若第二排试管架处于特定阶段,例如取样特定的试管,但此时第一排试管架已经结束整个检测流程而需要进行卸载时,此时第二排试管架可以暂停取样操作而优先进行第一排试管架的卸载,并且可以在第一排试管架卸载期间,对已经取样的样本进行分配检测,直到第一排试管架卸载后,复位进给轨道以继续第二排试管架剩余试管的扫描。Further, in this embodiment, when the maximum number of test tube racks that can work at the same time is two, if the second row of test tube racks is in a specific stage, such as sampling a specific test tube, but at this time the first row of test tube racks has finished the whole process. When unloading is required during the detection process, the sampling operation of the second row of test tube racks can be suspended and the first row of test tube racks can be unloaded first. Until the first row of test tube racks is unloaded, reset the feed track to continue scanning the remaining tubes in the second row of test tube racks.

在多排试管架运行于传送带的实施例中,当存在试管执行完毕某一操作,传送带准备根据下一指令而转动时,若此时有多个操作同时需要执行,在这样的情况下则需要按照指令对应操作的优先级进行选择执行。具体地,可以通过如下的步骤实现:获取至少两个控制指令;按照预设优先级顺序依次执行至少两个控制指令。In the embodiment of the multi-row test tube rack running on the conveyor belt, when there are test tubes that have completed a certain operation and the conveyor belt is ready to rotate according to the next command, if there are multiple operations that need to be performed at the same time, in this case, it is necessary to Select and execute according to the priority of the corresponding operation of the instruction. Specifically, it can be implemented through the following steps: acquiring at least two control instructions; and executing the at least two control instructions in sequence according to the preset priority order.

其中,至少两个控制指令包括扫码指令、取样指令和卸载指令,预设优先级顺序为卸载指令、取样指令、扫码指令,对应于卸载操作优先级>取样操作优先级>扫码操作优先级,也即是当某一试管架需要卸载或取样时的优先执行。例如当多排试管架中已经存在满足卸载条件的试管架时,会获取到卸载指令,此时则优先执行对应试管架的卸载操作,而暂停其他所有试管架可能准备进行的取样或扫码操作,直到卸载完成;当多排试管架中已经存在满足取样条件的试管架时,会获取到取样指令,但由于也没有获取到高优先级的卸载指令,因此此时则优先执行对应试管架的取样操作,而暂停其他所有试管架可能准备进行的扫码操作,直到取样完成。Among them, the at least two control instructions include a code scanning instruction, a sampling instruction and an unloading instruction, and the preset priority order is an unloading instruction, a sampling instruction, and a code scanning instruction, corresponding to the unloading operation priority > the sampling operation priority > the scanning operation priority level, that is, the priority execution when a certain test tube rack needs to be unloaded or sampled. For example, when there are test tube racks that meet the unloading conditions in the multi-row test tube racks, the unloading instruction will be obtained. At this time, the unloading operation of the corresponding test tube rack will be performed first, and the sampling or scanning operation that may be prepared for all other test tube racks will be suspended. , until the unloading is completed; when there are test tube racks that meet the sampling conditions in the multi-row test tube racks, the sampling instruction will be obtained, but since no high-priority unloading instruction has been obtained, the corresponding test tube rack will be executed first at this time. Sampling operation, and suspend all other scanning operations that the rack may be ready to perform until sampling is complete.

可选地,为了实现试管架上试管的准确移动,在试管架进行每一步的进给之前,可以先进行传送带复位以使试管架退回至装载区,使得试管架相应的定位机构与装载区对齐,而后再开始进行下一步的进给动作。例如试管架的3号试管完成扫描后,下一步需要对4号试管进行扫描,正常情况下则直接进给以使4号试管移动至扫码位,而在本实施例中,在3号试管完成扫描后,先对传送带进行复位,以使试管架回到装载位,相当于将试管架之前的位移清零,此时再直接将4号试管移动至扫码位,能够避免由于多次位移产生的误差,提高试管架的移动准确度。Optionally, in order to realize the accurate movement of the test tubes on the test tube rack, before the test tube rack performs each step of feeding, the conveyor belt can be reset to return the test tube rack to the loading area, so that the corresponding positioning mechanism of the test tube rack is aligned with the loading area. , and then start the next feeding action. For example, after the No. 3 test tube of the test tube rack is scanned, the next step needs to scan the No. 4 test tube. Under normal circumstances, the No. 4 test tube is directly fed to move the No. 4 test tube to the scanning position. In this embodiment, the No. 3 test tube is scanned. After completing the scan, first reset the conveyor belt to make the test tube rack return to the loading position, which is equivalent to clearing the previous displacement of the test tube rack. At this time, directly move the No. 4 test tube to the scanning position, which can avoid multiple displacement The resulting error improves the movement accuracy of the test tube rack.

可选地,为了实现S403试管架上的试管的准确移动,可以采用如图5所示的步骤对试管架进行位移控制,图5是本申请提供的试管架的位移控制方法一实施例的流程示意图,在本实施例中以传送带进给轨道上同一时间只有一排试管架为基础进行计算,该方法用于通过控制电机驱动传送带转动,以带动传送带上的试管架位移,方法具体包括:Optionally, in order to realize the accurate movement of the test tubes on the test tube rack in S403, the steps shown in FIG. 5 can be adopted to control the displacement of the test tube rack, and FIG. 5 is the process flow of an embodiment of the displacement control method of the test tube rack provided by the present application. Schematic diagram, in this embodiment, the calculation is based on the fact that there is only one row of test tube racks on the feeding track of the conveyor belt at the same time. This method is used to drive the rotation of the conveyor belt by controlling the motor to drive the displacement of the test tube racks on the conveyor belt. The method specifically includes:

S501:获取试管位移指令。S501: Obtain a test tube displacement instruction.

其中,试管位移指令表示将试管架上的第一试管移动至目标位,第一试管即表示待移动的试管,或表示待进行扫码、取样的试管,目标位则表示试管位移指令中指示待移动试管下一步所需要到达的位置,包括扫码位、取样位等。Among them, the test tube displacement command means to move the first test tube on the test tube rack to the target position, the first test tube means the test tube to be moved, or the test tube to be scanned and sampled, and the target position means that the test tube displacement command indicates that the test tube is to be moved. Move the position where the test tube needs to reach in the next step, including the scanning position, sampling position, etc.

S502:确定当前处于标识位的第二试管。S502: Determine the second test tube currently at the identification position.

其中,标识位则表示进样机构里的多个操作位置,包括装载位、扫码位、取样位等,第二试管则表示处于扫码位或取样位上正在进行或准备进行相应检测的试管。Among them, the identification bit represents multiple operating positions in the sampling mechanism, including the loading position, the scanning position, the sampling position, etc., and the second test tube indicates the test tube that is in the scanning position or the sampling position and is currently undergoing or preparing for corresponding detection. .

S503:根据第一试管和第二试管的距离,以及目标位和标识位的距离,确定第一试管和目标位的距离。S503: Determine the distance between the first test tube and the target position according to the distance between the first test tube and the second test tube, and the distance between the target position and the marker position.

本实施例中,由于传送带进给轨道上同一时间只有一排试管架,此时,第一试管和第二试管之间的距离是固定且可以计算的,而多处不同标识位和目标位的位置是固定且已知的,因此标识位和目标位之间的距离也可以根据标识位、目标位的具体指代进行计算,最终即可准确计算得到第一试管和目标位之间的距离。In this embodiment, since there is only one row of test tube racks on the feeding track of the conveyor belt at the same time, the distance between the first test tube and the second test tube is fixed and can be calculated. The position is fixed and known, so the distance between the marker position and the target position can also be calculated according to the specific designation of the marker position and the target position, and finally the distance between the first test tube and the target position can be accurately calculated.

S504:根据第一试管和目标位置的距离,驱动试管架,以使第一试管移动至目标位。S504: Drive the test tube rack according to the distance between the first test tube and the target position, so as to move the first test tube to the target position.

其中,计算出的第一试管和目标位之间的距离的单位,可以与电机运行控制时所移动的距离单位相对应,例如第一试管和第二试管之间的距离都以电机步距(N步)为标准进行计算表示,以实现试管位移的准确控制。Wherein, the calculated unit of the distance between the first test tube and the target position may correspond to the unit of the distance moved during the motor operation control, for example, the distance between the first test tube and the second test tube is determined by the motor step distance ( N step) is calculated and expressed as a standard to achieve accurate control of the displacement of the test tube.

区别于现有技术,本实施例提供的试管架的位移控制方法,能够通过准确获取的第一试管和第二试管的距离,以及目标位和标识位的距离,确定试管位移指令所对应的第一试管至目标位的距离,以根据该距离驱动第一试管移动至目标位。通过这样的方式,能够对试管的定向移动提供准确的位移控制,提高了试管位移的准确性。Different from the prior art, the displacement control method of the test tube rack provided in this embodiment can determine the first test tube corresponding to the test tube displacement instruction by accurately obtaining the distance between the first test tube and the second test tube, as well as the distance between the target position and the marking position. The distance from a test tube to the target position, so as to drive the first test tube to move to the target position according to the distance. In this way, accurate displacement control can be provided for the directional movement of the test tube, which improves the accuracy of the displacement of the test tube.

可选地,还可以通过如图6所示的步骤对试管架进行位移控制,图6是本申请提供的试管架的位移控制方法另一实施例的流程示意图,在本实施例中以传送带进给轨道上同一时间只有一排试管架为基础进行计算,该方法用于通过控制电机驱动传送带转动,以带动传送带上的试管架位移,方法具体包括:Optionally, displacement control can also be performed on the test tube rack through the steps shown in FIG. 6 . FIG. 6 is a schematic flowchart of another embodiment of the displacement control method for the test tube rack provided by the present application. The calculation is based on only one row of test tube racks on the track at the same time. This method is used to drive the rotation of the conveyor belt by controlling the motor to drive the displacement of the test tube racks on the conveyor belt. The method specifically includes:

S601:获取试管位移指令。S601: Obtain a test tube displacement instruction.

其中,试管位移指令表示将试管架上的第一试管移动至目标位。Wherein, the test tube displacement instruction means to move the first test tube on the test tube rack to the target position.

S602:确定当前处于标识位的第二试管。S602: Determine the second test tube currently at the identification position.

S603:确定第一试管和第二试管的第一距离。S603: Determine a first distance between the first test tube and the second test tube.

可选地,S603的具体步骤可以由图7所示的方法实现,具体包括:Optionally, the specific steps of S603 can be implemented by the method shown in FIG. 7 , which specifically includes:

S6031:确定相邻两个试管之间的距离。S6031: Determine the distance between two adjacent test tubes.

相邻试管之间的距离通常根据试管架的规格进行设定,或根据传送带的长度进行相应设定,例如通常可以固定设置为50个单位长度,在此不做过多限制。The distance between adjacent test tubes is usually set according to the specifications of the test tube rack, or according to the length of the conveyor belt. For example, it can usually be fixedly set to 50 units of length, which is not limited here.

S6032:获取第一试管的第一编号,以及获取第二试管的第二编号。S6032: Obtain the first serial number of the first test tube, and obtain the second serial number of the second test tube.

其中,试管架上的试管按照试管排列顺序依次编号,具体可以对应传送带的移动方向,依次递减编号,也即是靠近取样位的编号小,远离取样位的编号大。例如,以一排试管架设置有10个试管为例,将传送带移动方向上的第一个试管编号为1号,并依次将传送带移动相反方向上的第二个试管至第十个试管编号为2、3……10号,进而可以根据需要以及编号情况确定第一试管和第二试管所对应的编号。Among them, the test tubes on the test tube rack are numbered sequentially according to the order of the test tubes. Specifically, the numbers may be sequentially decreased according to the moving direction of the conveyor belt, that is, the number near the sampling position is small, and the number far from the sampling position is large. For example, taking a row of test tube racks with 10 test tubes as an example, number the first test tube in the moving direction of the conveyor belt as No. 1, and sequentially move the second test tube to the tenth test tube in the opposite direction of the conveyor belt. 2, 3...10, and then the numbers corresponding to the first test tube and the second test tube can be determined according to the needs and the numbering situation.

S6033:根据相邻两个试管之间的距离、第一编号和第二编号的差值,确定第一试管和第二试管的第一距离。S6033: Determine the first distance between the first test tube and the second test tube according to the distance between two adjacent test tubes and the difference between the first number and the second number.

本实施例中,由于试管架的规格为已知,因此任意两个相邻试管之间的距离通常是固定的,例如50个单位长度,进一步根据第一编号和第二编号之间的差值,对第一试管和第二试管之间的距离进行计算。其中,当第一编号大于第二编号时,确定第一试管和第二试管的第一距离为正值;或当第一编号小于第二编号时,确定第一试管和第二试管的第一距离为负值。In this embodiment, since the specifications of the test tube racks are known, the distance between any two adjacent test tubes is usually fixed, such as 50 unit lengths, and further according to the difference between the first number and the second number , calculate the distance between the first test tube and the second test tube. Wherein, when the first number is greater than the second number, the first distance between the first test tube and the second test tube is determined to be a positive value; or when the first number is less than the second number, the first distance between the first test tube and the second test tube is determined. Distance is negative.

例如第一编号为2号,第二编号为7号,此时两者之间的差值为-5个相邻试管之间的距离,由此即可计算出第一试管和第二试管之间的第一距离为-250个单位长度。例如第一编号为7号,第二编号为2号,此时两者之间的差值为+5个相邻试管之间的距离,由此即可计算出第一试管和第二试管之间的第一距离为+250个单位长度。For example, the first number is No. 2 and the second number is No. 7. At this time, the difference between the two is the distance between -5 adjacent test tubes. From this, the difference between the first test tube and the second test tube can be calculated. The first distance between is -250 units of length. For example, the first number is No. 7, and the second number is No. 2. At this time, the difference between the two is +5 the distance between adjacent test tubes. From this, the difference between the first test tube and the second test tube can be calculated. The first distance between them is +250 units of length.

S604:确定目标位和标识位的第二距离。S604: Determine the second distance between the target position and the identification position.

可选地,S604的具体步骤可以由图8所示的方法实现,具体包括:Optionally, the specific steps of S604 can be implemented by the method shown in FIG. 8 , which specifically includes:

S6041:确定目标位与原点之间的距离。S6041: Determine the distance between the target position and the origin.

其中,原点为传送带上的固定点,用于标记各个目标位或标识位的位置距离,可以根据实际情况对原点进行设置,原点位置的设定实际上不会影响目标位和标识位的位置,也不会改变两者之间的距离。例如在本实施例中,可以以1号试管位于装载位时的试管架中,10号试管所在的位置作为原点;在其他一些实施例中,还可以传送带上装载试管之外的点作为原点,例如在上述10号试管继续远离装载位一定距离的位置,甚至可以延伸至传送带的背面,也即是传送带无法承载试管架的一面,原点的设置方式在此不做过多限定,仅用于表示各个工作位置之间的关系。Among them, the origin is a fixed point on the conveyor belt, which is used to mark the position distance of each target position or identification position. The origin can be set according to the actual situation. The setting of the origin position will not actually affect the position of the target position and the identification position. It also doesn't change the distance between the two. For example, in this embodiment, the position of the test tube No. 1 in the test tube rack when the No. 1 test tube is at the loading position can be used as the origin; For example, in the position where the above-mentioned No. 10 test tube continues to be far away from the loading position, it can even extend to the back of the conveyor belt, that is, the side of the conveyor belt that cannot carry the test tube rack. The setting method of the origin is not limited here. The relationship between the various work positions.

目标位即为第一试管根据位移指令需要进行移动的目标位置点,可以包括取样位或扫码位等。因此,由于原点和目标位均为进样机构中预先设置好的位置点,因此两者之间的距离可以准确获得。The target position is the target position point that the first test tube needs to move according to the displacement instruction, which may include a sampling position or a code scanning position. Therefore, since the origin and the target position are both preset positions in the sampling mechanism, the distance between the two can be accurately obtained.

S6042:确定标识位与原点之间的距离。S6042: Determine the distance between the identification position and the origin.

其中,标识位即为用于对第一试管所需的移动距离进行计算参考的位置点,由上所述可知标识位与原点为预先设置好的位置点,因此两者之间的距离同样可以准确获得。Among them, the marker position is the position point used to calculate the reference for the moving distance required by the first test tube. From the above, it can be seen that the marker position and the origin are preset positions, so the distance between the two can also be Accurately obtained.

可选地,当标识位为装载位时,目标位为扫码位时,装载位为试管架装载至传送带时,试管架上最靠近扫描位的第一个试管的位置,也即是以传送带运行方向上的第一个试管所在的位置作为装载位,当试管架移动后,装载位的位置不变,位于装载位上的试管编号随即发生改变,并以此作为计算参考;扫码位上设置有扫码机构,用于对试管上的条码进行扫码。Optionally, when the identification position is the loading position, when the target position is the scanning position, the loading position is the position of the first test tube closest to the scanning position on the test tube rack when the test tube rack is loaded on the conveyor belt, that is, the position of the first test tube on the test tube rack is closest to the scanning position. The position of the first test tube in the running direction is used as the loading position. When the test tube rack moves, the position of the loading position remains unchanged, and the number of the test tube on the loading position changes immediately, which is used as a reference for calculation; A scanning mechanism is provided for scanning the barcode on the test tube.

可选地,当标识位为装载位,目标位为取样位,取样位上设置有取样机构,用于对试管内的液体进行取样操作;在另一些实施例中,标识位还可以为扫码位,目标位为取样位,具体可以根据实际情况进行设置,在此不做赘述。Optionally, when the identification position is the loading position, the target position is the sampling position, and the sampling position is provided with a sampling mechanism for sampling the liquid in the test tube; in other embodiments, the identification position can also be a scan code. bit, the target bit is the sampling bit, which can be set according to the actual situation, and will not be repeated here.

S6043:根据目标位与原点之间的距离、标识位与原点之间的距离,确定目标位和标识位的第二距离。S6043: Determine a second distance between the target position and the identification position according to the distance between the target position and the origin, and the distance between the identification position and the origin.

在一个应用场景中,例如第一试管所需要进行移动的目标位为扫码位,第二试管所处于的标识位为装载位,可以得到,扫码位与原点之间的距离为1000个单位长度(步),装载位与原点之间的距离为600个单位长度(步),因此此时可以计算得到目标位和标识位的第二距离为1000-600=400个单位长度。其中,当标识位和目标位的选择发生改变时,两者之间的第二距离也随之进行变化,此处不做限定。In an application scenario, for example, the target position that the first test tube needs to move is the scanning position, and the identification position where the second test tube is located is the loading position. It can be obtained that the distance between the scanning position and the origin is 1000 units Length (step), the distance between the loading position and the origin is 600 unit lengths (steps), so the second distance between the target position and the identification position can be calculated as 1000-600=400 unit lengths. Wherein, when the selection of the identification bit and the target bit changes, the second distance between them also changes, which is not limited here.

S605:根据第一距离和第二距离,确定第一试管和目标位的距离。S605: Determine the distance between the first test tube and the target position according to the first distance and the second distance.

具体地,S605可以由如下步骤实现:计算第一距离和第二距离的和值,作为第一试管和目标位的距离。Specifically, S605 may be implemented by the following steps: calculating the sum of the first distance and the second distance as the distance between the first test tube and the target position.

在本实施例中,由于第一距离可能为正值或负值,因此根据上述示例,当第一距离为+250个单位长度时,第一试管和目标位之间的距离即为400+250=750个单位长度;当第一距离为-250个单位长度时,第一试管和目标位之间的距离即为400-250=150个单位长度。In this embodiment, since the first distance may be a positive value or a negative value, according to the above example, when the first distance is +250 unit lengths, the distance between the first test tube and the target position is 400+250 =750 unit length; when the first distance is -250 unit length, the distance between the first test tube and the target position is 400-250=150 unit length.

S606:根据第一试管和目标位的距离,驱动试管架,以使第一试管移动至目标位。S606: According to the distance between the first test tube and the target position, drive the test tube rack to move the first test tube to the target position.

根据上述示例,控制电机移动例如750或150个电机步距,即可将第一试管移动至所需要到达的目标位。According to the above example, the first test tube can be moved to the desired target position by controlling the motor to move, for example, by 750 or 150 motor steps.

因此本实施例的方法,根据需要移动的第一试管的试管编号,和用于进行参考标识的第二试管的试管编号,以及第二试管所处的标识位和第一试管所需要到达的目标位,即可准确计算出此次位移需要前进或后退的对应步距,进而控制电机运动,实现试管位置的移动。通过这样的方式,能够准确、快速地计算出相同试管架中任意试管到任意位置的距离,从而对试管位移进行准确控制,降低了试管移动的计算复杂度,提高了工作效率。Therefore, in the method of this embodiment, the test tube number of the first test tube to be moved, the test tube number of the second test tube for reference identification, the identification position of the second test tube and the target that the first test tube needs to reach position, you can accurately calculate the corresponding step distance that the displacement needs to move forward or backward, and then control the movement of the motor to realize the movement of the position of the test tube. In this way, the distance from any test tube to any position in the same test tube rack can be accurately and quickly calculated, so that the displacement of the test tube can be accurately controlled, the computational complexity of the test tube movement is reduced, and the work efficiency is improved.

可选地,由于电机在运行过程中,可能会出现丢步或过冲的情况,此时电机根据上述步骤计算出的距离对传送带进行控制时,试管位移的准确性仍然会受到部分影响,因此,在S606之后还可以利用编码器进行位置纠正,具体包括:Optionally, since the motor may lose steps or overshoot during operation, when the motor controls the conveyor belt according to the distance calculated in the above steps, the accuracy of the test tube displacement will still be partially affected. , the encoder can also be used for position correction after S606, including:

S607:在第一试管移动时,获取第一试管的实际移动距离。S607: When the first test tube moves, obtain the actual moving distance of the first test tube.

可以知道,编码器的精度会高于电机,因此编码器可以更精确地识别、监控和反馈试管位移的情况。由于电机的控制是以1步为单位进行运行,当第一试管在电机的驱动下进行移动时,编码器同步获取第一试管的实际移动距离,由于电机丢步或过冲,实际移动距离可能会大于或小于电机的控制步距。It can be known that the accuracy of the encoder will be higher than that of the motor, so the encoder can more accurately identify, monitor and feedback the displacement of the test tube. Since the motor is controlled by one step, when the first test tube moves under the drive of the motor, the encoder synchronously obtains the actual moving distance of the first test tube. Because the motor loses steps or overshoots, the actual moving distance may be It will be larger or smaller than the control step of the motor.

S608:确定实际移动距离与计算距离之间的误差值。S608: Determine the error value between the actual moving distance and the calculated distance.

其中,计算距离即为通过第一试管、第二试管、标识位和目标位之间的距离所计算出的第一试管需要移动的理论距离,该理论距离在电机不发生丢步、过冲等情况时,应当与实际移动距离相等。因此,实际情况下由于电机所带来的误差,需要利用编码器计算的实际移动距离对误差值进行计算。Among them, the calculated distance is the theoretical distance that the first test tube needs to move calculated by the distance between the first test tube, the second test tube, the marking position and the target position. In this case, it should be equal to the actual moving distance. Therefore, in practice, due to the error caused by the motor, it is necessary to use the actual moving distance calculated by the encoder to calculate the error value.

S609:对误差值进行累加,在累加的误差值满足预设阈值时,对下一次位移控制进行补偿。S609: Accumulate the error value, and perform compensation for the next displacement control when the accumulated error value meets the preset threshold.

其中,预设阈值可以根据实际情况进行设置,在本实施例中可以设置为1个单位长度,也即是1步。Wherein, the preset threshold can be set according to the actual situation, and in this embodiment, it can be set as one unit length, that is, one step.

在一个应用场景中,由于电机丢步或过冲而导致编码器所获取的实际运动距离与计算距离之间的误差值大于0却不足1步的阶段时,将0-1阶段计算得到的误差值进行累加,当累加误差值满足大于1步时,在下一次执行试管架试管的位移控制时,将这个一步的误差值补入到电机的控制步距中,以进一步提高试管的位移精度。In an application scenario, when the error value between the actual moving distance obtained by the encoder and the calculated distance is greater than 0 but less than 1 step due to the motor lost step or overshoot, the error calculated in the 0-1 stage is calculated. When the accumulated error value is greater than 1 step, the next time the displacement control of the test tube rack is performed, the error value of this step is added to the control step of the motor to further improve the displacement accuracy of the test tube.

可以理解,当累加误差值不是整数时,只会补偿整数步数的误差值,而不满1步的误差值则继续累加,补得累加误差值会以四舍五入的方式补偿,例如累加误差值为2.3时,那么当前会补偿2个单位的步距,剩余的0.3继续做累加;又例如当累加误差值为1.8时,那么四舍五入当前也会补偿2步,此时累加误差值则变为-0.2。It can be understood that when the accumulated error value is not an integer, only the error value of the integer number of steps will be compensated, and the error value of less than 1 step will continue to be accumulated, and the accumulated accumulated error value will be compensated by rounding, for example, the accumulated error value is 2.3 , then the current compensation will be 2 steps, and the remaining 0.3 will continue to be accumulated; for example, when the accumulated error value is 1.8, the rounding will also compensate for 2 steps, and the accumulated error value will become -0.2.

可选地,在另一些实施例中,还可以通过位置光耦对电机的控制进行纠正,例如可以在每一排试管架完成检测后,进行一次复位,通过初始位置的光耦定位传送带的位置,以实现光耦纠正。Optionally, in other embodiments, the control of the motor can also be corrected through the position optocoupler. For example, after each row of test tube racks is tested, a reset can be performed, and the position of the conveyor belt can be positioned through the optocoupler at the initial position. , to achieve optocoupler correction.

通过这样的方式,在对试管的位移量进行准确计算的基础上,能够利用编码器或位置光耦确保位移的精度保持在较高水平,从而进一步提高了试管位移的准确性。In this way, on the basis of accurately calculating the displacement of the test tube, an encoder or a position optical coupler can be used to ensure that the displacement accuracy is kept at a high level, thereby further improving the accuracy of the test tube displacement.

可选地,还可以通过如图9所示的步骤对试管架进行位移控制,图9是本申请提供的试管架的位移控制方法又一实施例的流程示意图,在本实施例中以传送带进给轨道上同一时间可以有两排试管架为基础进行计算,该方法用于通过控制电机驱动传送带转动,以带动传送带上的试管架位移,方法具体包括:Optionally, displacement control can also be performed on the test tube rack through the steps shown in FIG. 9 . FIG. 9 is a schematic flowchart of another embodiment of the displacement control method for the test tube rack provided by the present application. There can be two rows of test tube racks on the track at the same time for calculation. This method is used to drive the rotation of the conveyor belt by controlling the motor to drive the displacement of the test tube racks on the conveyor belt. The method specifically includes:

S901:获取试管位移指令。S901: Obtain a test tube displacement instruction.

其中,试管位移指令表示将试管架上的第一试管移动至目标位,第一试管位于第一试管架上,表示待移动的试管,或表示待进行扫码、取样的试管,目标位则表示试管位移指令中指示待移动试管下一步所需要到达的位置,包括扫码位、取样位等。Among them, the test tube displacement command means to move the first test tube on the test tube rack to the target position. The first test tube is located on the first test tube rack, which means the test tube to be moved, or the test tube to be scanned and sampled. The target position means The test tube displacement instruction indicates the position that the test tube to be moved needs to reach in the next step, including code scanning position, sampling position, etc.

S902:确定当前处于标识位的第二试管。S902: Determine the second test tube currently at the identification position.

其中,标识位则表示进样机构里的多个操作位置,包括装载位、扫码位、取样位等,第二试管位于第二试管架上,表示处于扫码位或取样位上正在进行或准备进行相应检测的试管。Among them, the identification bit represents multiple operating positions in the sampling mechanism, including the loading position, the scanning position, the sampling position, etc. The second test tube is located on the second test tube rack, indicating that it is in the scanning position or the sampling position. Prepare test tubes for the corresponding assays.

S903:根据第一试管和第二试管对应的试管架序号,确定第一试管和第二试管的距离。S903: Determine the distance between the first test tube and the second test tube according to the serial numbers of the test tube racks corresponding to the first test tube and the second test tube.

在本实施例中,默认第一试管和第二试管位于不同的试管架上,若第一试管和第二试管处于相同试管架上,那么本实施例的方法可以按照前述实施例进行计算。In this embodiment, the first test tube and the second test tube are located on different test tube racks by default. If the first test tube and the second test tube are located on the same test tube rack, the method of this embodiment can be calculated according to the previous embodiment.

可选地,由于传送带进给轨道上同一时间可以有两排试管架,可以知道,传送带上按照一定的距离设置多个定位结构,每个定位结构包括两个挡块,用于对试管架进行定位,因此通常在对定位结构进行设置时,不同定位机构的相邻挡块之间的距离可以根据实际情况进行设定的,该距离同样可以表示两排相邻试管架之间的间隔距离(在忽略挡块长度的情况下),因此,第一排试管架和第二排试管架之间的距离为固定且已知。Optionally, since there can be two rows of test tube racks on the feeding track of the conveyor belt at the same time, it can be known that a plurality of positioning structures are arranged on the conveyor belt according to a certain distance, and each positioning structure includes two stoppers for the test tube racks. Therefore, when setting the positioning structure, the distance between the adjacent stops of different positioning mechanisms can be set according to the actual situation, and the distance can also represent the spacing between two rows of adjacent test tube racks ( ignoring the length of the stop), therefore, the distance between the first row of test tube racks and the second row of test tube racks is fixed and known.

进一步,由前述实施例所述可知,可以对每一排试管架上的试管进行编号,在本实施例中进一步对不同的试管架进行编号,而由于试管架的规格相同,任意两个试管之间的距离也相同,因此根据试管序号的关系以及试管之间距离,以及试管架之间的距离即可计算出第一试管和第二试管之间的距离。Further, it can be seen from the foregoing embodiment that the test tubes on each row of test tube racks can be numbered, and in this embodiment, different test tube racks are further numbered, and since the specifications of the test tube racks are the same, any two test tubes are numbered. The distance between the test tubes is also the same, so the distance between the first test tube and the second test tube can be calculated according to the relationship between the serial numbers of the test tubes, the distance between the test tubes, and the distance between the test tube racks.

S904:根据第一试管和第二试管的第一距离,以及目标位和标识位的第二距离,确定第一试管和目标位的距离。S904: Determine the distance between the first test tube and the target position according to the first distance between the first test tube and the second test tube and the second distance between the target position and the identification position.

在本实施例中,由于多处不同标识位和目标位的位置是固定的,它们相互之间的距离在进样机构设置时通常也为已知,因此在第一试管和第二试管的第一距离已获取的基础上,能够根据标识位、目标位的具体位置指代计算出最终的第一试管和目标位之间的距离。In this embodiment, since the positions of many different identification positions and target positions are fixed, the distances between them are usually known when the sampling mechanism is set, so the first test tube and the second test tube On the basis that a distance has been obtained, the final distance between the first test tube and the target position can be calculated according to the specific position of the identification position and the target position.

S905:根据第一试管和目标位置的距离,驱动试管架,以使第一试管移动至目标位。S905: Drive the test tube rack according to the distance between the first test tube and the target position, so as to move the first test tube to the target position.

其中,计算出的第一试管和目标位之间的距离的单位,可以与电机运行控制时所移动的距离单位相对应,例如第一试管和第二试管之间的距离都以电机步距(N步)为标准进行计算表示,以实现试管位移的准确控制。Wherein, the calculated unit of the distance between the first test tube and the target position may correspond to the unit of the distance moved during the motor operation control, for example, the distance between the first test tube and the second test tube is determined by the motor step distance ( N step) is calculated and expressed as a standard to achieve accurate control of the displacement of the test tube.

区别于现有技术,本实施例提供的试管架的位移控制方法,能够通过准确获取的第一试管和第二试管的距离,以及目标位和标识位的距离,确定试管位移指令所对应的第一试管至目标位的距离,以根据该距离驱动第一试管移动至目标位。通过这样的方式,能够对试管的定向移动提供准确的位移控制,提高了试管位移的准确性。Different from the prior art, the displacement control method of the test tube rack provided in this embodiment can determine the first test tube corresponding to the test tube displacement instruction by accurately obtaining the distance between the first test tube and the second test tube, as well as the distance between the target position and the marking position. The distance from a test tube to the target position, so as to drive the first test tube to move to the target position according to the distance. In this way, accurate displacement control can be provided for the directional movement of the test tube, which improves the accuracy of the displacement of the test tube.

可选地,还可以通过如图10所示的步骤对试管架进行位移控制,图10是本申请提供的试管架的位移控制方法再一实施例的流程示意图,在本实施例中以传送带进给轨道上同一时间可以有两排试管架为基础进行计算,该方法用于通过控制电机驱动传送带转动,以带动传送带上的试管架位移,方法具体包括:Optionally, displacement control can also be performed on the test tube rack through the steps shown in FIG. 10 . FIG. 10 is a schematic flowchart of another embodiment of the displacement control method for the test tube rack provided by the present application. There can be two rows of test tube racks on the track at the same time for calculation. This method is used to drive the rotation of the conveyor belt by controlling the motor to drive the displacement of the test tube racks on the conveyor belt. The method specifically includes:

S1001:获取试管位移指令。S1001: Obtain a test tube displacement instruction.

其中,试管位移指令表示将试管架上的第一试管移动至目标位。Wherein, the test tube displacement instruction means to move the first test tube on the test tube rack to the target position.

S1002:确定当前处于标识位的第二试管。S1002: Determine the second test tube currently at the identification position.

S1003:按照传送带上的试管架顺序,对试管架添加序号。S1003: Add serial numbers to the test tube racks according to the order of the test tube racks on the conveyor belt.

其中,试管架顺序可以表示为试管架装载至传送带上时的顺序,以装载在前的试管架为第一序号试管架,以装载在后的试管架为第二序号试管架。在实际的场景中,可以根据传送带的长度或进样机构的长度设置大于两排试管架,本实施例的方法以两排试管架为标准进行位移控制,多排试管架的位移控制方法的原理与两排试管架相同。The order of the test tube racks can be expressed as the order in which the test tube racks are loaded onto the conveyor belt, with the test tube racks loaded in the front as the first serial numbered test tube racks, and the later loaded test tube racks as the second serial numbered test tube racks. In an actual scenario, the length of the conveyor belt or the length of the sample feeding mechanism can be set to be larger than two rows of test tube racks. The method in this embodiment uses two rows of test tube racks as the standard for displacement control. The principle of the displacement control method for multi-row test tube racks Same with two rows of test tube racks.

S1004:以第一序号试管架上第一个试管为基准,对至少两个试管架上的试管按照试管排列顺序依次编号。S1004: Based on the first test tube on the test tube rack with the first serial number, the test tubes on at least two test tube racks are sequentially numbered according to the order of the test tubes.

其中,试管架上的试管按照试管排列顺序依次编号,具体可以对应传送带的移动方向,依次递减编号,也即是靠近取样位的试管的编号小,远离取样位的试管的编号大,并且,第一序号试管架和第二序号试管架在编号时按照一个整体进行编号,例如,以一排试管架有10个试管为例,将第一序号试管架上对应传送带移动方向上的第一个试管编号为1号,并以1号试管所处的位置作为基准点,用于对应表示多排试管架上的第一个试管,进一步继续依次将第一序号试管架上的剩余试管按照顺序编号为2……10号,在对第二序号试管架进行编号时,将第二序号试管架上对应传送带移动方向上的第一个试管编号为11号,并依次将剩余的试管编号为11……20号;当传送带上能够承载更多的试管架时,对试管架以及试管的编号方式可以按照上述方式继续排列设置。Among them, the test tubes on the test tube rack are numbered in sequence according to the order of the test tubes. Specifically, the numbers may be sequentially decreased according to the moving direction of the conveyor belt, that is, the number of the test tubes close to the sampling position is smaller, and the number of the test tubes far from the sampling position is larger. The test tube racks with the first serial number and the test tube racks with the second serial number are numbered as a whole. For example, taking a row of test tube racks with 10 test tubes as an example, the first test tube rack on the first serial number test tube rack corresponds to the first test tube in the moving direction of the conveyor belt. The number is No. 1, and the position of the No. 1 test tube is used as the reference point to correspond to the first test tube on the multi-row test tube rack, and the remaining test tubes on the first serial number test tube rack are numbered in sequence as No. 2...10, when numbering the test tube rack with the second serial number, number the first test tube on the test tube rack with the second serial number corresponding to the moving direction of the conveyor belt as No. 11, and sequentially number the remaining test tubes as No. 11... No. 20; when the conveyor belt can carry more test tube racks, the numbering method of the test tube racks and test tubes can be arranged and arranged in the above-mentioned manner.

可选地,在传送带上有试管架卸载时,重新按照传送带上的试管架顺序,对试管架添加序号。也就是说,第一序号试管架完成检测并进行卸载时,对第二序号试管架的序号进行更新,变为新的第一序号试管架,而原第二序号试管架上编号为11号至20号的试管,也随着变为第一序号试管架而更新为1号至10号,并以新的1号试管的位置作为新的基准点。Optionally, when there are test tube racks on the conveyor belt to be unloaded, serial numbers are added to the test tube racks according to the order of the test tube racks on the conveyor belt. That is to say, when the test tube rack with the first serial number is detected and unloaded, the serial number of the test tube rack with the second serial number is updated to become a new first serial number test tube rack, and the original second serial number test tube rack is numbered from 11 to 11. The test tube No. 20 is also updated to No. 1 to No. 10 as it becomes the test tube rack with the first serial number, and the position of the new No. 1 test tube is used as a new reference point.

S1005:获取第一试管的第一编号,以及获取第二试管的第二编号。S1005: Obtain the first serial number of the first test tube, and obtain the second serial number of the second test tube.

由上所述,即可根据需要以及编号情况确定第一试管和第二试管所对应的编号。From the above, the numbers corresponding to the first test tube and the second test tube can be determined according to the needs and the numbering situation.

S1006:根据相邻两个试管之间的距离、相邻两个试管架之间的距离、第一编号和第二编号的差值,确定第一试管和第二试管的第一距离。S1006: Determine a first distance between the first test tube and the second test tube according to the distance between two adjacent test tubes, the distance between two adjacent test tube racks, and the difference between the first number and the second number.

本实施例中,由于试管架的规格为已知,因此任意两个相邻试管之间的距离通常是固定的,例如50个单位长度,进一步根据第一编号和第二编号之间的差值,以及相邻两个试管架之间的距离,即可对第一试管和第二试管之间的距离进行计算。其中,当第一编号大于第二编号时,确定第一试管和第二试管的第一距离为正值;或当第一编号小于第二编号时,确定第一试管和第二试管的第一距离为负值。In this embodiment, since the specifications of the test tube racks are known, the distance between any two adjacent test tubes is usually fixed, such as 50 unit lengths, and further according to the difference between the first number and the second number , and the distance between two adjacent test tube racks, the distance between the first test tube and the second test tube can be calculated. Wherein, when the first number is greater than the second number, the first distance between the first test tube and the second test tube is determined to be a positive value; or when the first number is less than the second number, the first distance between the first test tube and the second test tube is determined. Distance is negative.

其中,相邻两个试管架之间的距离,可以由固定试管架的定位结构进行确定,具体由两个相邻试管架对应的定位结构中的多个挡块进行确定,每个定位结构包括两个挡块,一个定位结构中的两个挡块之间的距离与试管架的长度相对应,两个不同定位结构的相邻挡块之间的距离可以根据实际情况进行设定,例如设置为间隔一个试管宽度左右的长度,例如55个单位长度,即为相邻试管架之间的距离,具体可以根据挡块的实际厚度对相邻试管架之间的距离进行调整,在此不做过多限制。The distance between two adjacent test tube racks can be determined by the positioning structure for fixing the test tube racks, specifically determined by a plurality of blocks in the positioning structures corresponding to the two adjacent test tube racks, and each positioning structure includes Two blocks, the distance between two blocks in one positioning structure corresponds to the length of the test tube rack, and the distance between adjacent blocks in two different positioning structures can be set according to the actual situation, such as setting It is the length of about one test tube width, for example, 55 units of length, which is the distance between adjacent test tube racks. Specifically, the distance between adjacent test tube racks can be adjusted according to the actual thickness of the block, which is not done here. Too restrictive.

在一个具体的应用场景中,例如第一试管的编号为7号,第二试管的编号为13号,此时两者之间的差值-6个相邻试管之间的距离,进一步根据已知确认的相邻试管架之间的距离,即可计算出第一试管和第二试管之间的第一距离。需要注意的是,此处在利用编号差值进行计算时,需要减去一个相邻试管之间的距离,因为11号试管和10号试管之间的距离属于相邻试管架距离的计算中,不能对其进行重复计算,因此7号试管和13号试管之间的第一距离为﹣((13-7-1)*50+55)=﹣305个单位长度。同理当第一编号为13号,第二编号为7号时,最终计算得到的第一距离为+305个单位长度。In a specific application scenario, for example, the number of the first test tube is No. 7, and the number of the second test tube is No. 13. At this time, the difference between the two is the distance between 6 adjacent test tubes. Knowing the confirmed distance between adjacent test tube racks, the first distance between the first test tube and the second test tube can be calculated. It should be noted that the distance between adjacent test tubes needs to be subtracted when using the number difference for calculation here, because the distance between the No. 11 test tube and the No. 10 test tube belongs to the calculation of the distance between adjacent test tube racks. It cannot be double-counted, so the first distance between test tube No. 7 and test tube No. 13 is -((13-7-1)*50+55)=-305 units of length. Similarly, when the first number is number 13 and the second number is number 7, the final calculated first distance is +305 unit lengths.

S1007:确定目标位和标识位的第二距离。S1007: Determine the second distance between the target position and the identification position.

可选地,S1007的具体步骤可以由图11所示的方法实现,具体包括:Optionally, the specific steps of S1007 can be implemented by the method shown in FIG. 11 , which specifically includes:

S10071:确定目标位与原点之间的距离。S10071: Determine the distance between the target position and the origin.

其中,原点为传送带上的固定点,用于标记各个目标位或标识位的位置距离,可以根据实际情况对原点进行设置,原点位置的设定实际上不会影响目标位和标识位的位置,也不会改变两者之间的距离。而目标位即为第一试管根据唯一指令需要进行移动的目标位置点,可以包括取样位或扫码位等。因此,由于原点和目标位均为进样机构中预先设置好的位置点,因此两者之间的距离可以准确获得。Among them, the origin is a fixed point on the conveyor belt, which is used to mark the position distance of each target position or identification position. The origin can be set according to the actual situation. The setting of the origin position will not actually affect the position of the target position and the identification position. It also doesn't change the distance between the two. The target position is the target position where the first test tube needs to move according to the unique instruction, which may include a sampling position or a code scanning position. Therefore, since the origin and the target position are both preset positions in the sampling mechanism, the distance between the two can be accurately obtained.

S10072:确定标识位与原点之间的距离。S10072: Determine the distance between the marker position and the origin.

其中,标识位即为用于对第一试管所需的移动距离进行计算参考的位置点,由上所述可知标识位与原点为预先设置好的位置点,因此两者之间的距离同样可以准确获得。Among them, the marker position is the position point used to calculate the reference for the moving distance required by the first test tube. From the above, it can be seen that the marker position and the origin are preset positions, so the distance between the two can also be Accurately obtained.

可选地,当标识位为装载位时,目标位为扫码位时,装载位为试管架装载至传送带时,试管架上最靠近扫描位的第一个试管的位置,也即是以传送带运行方向上的第一个试管所在的位置作为装载位,当试管架移动后,装载位的位置不变,位于装载位上的试管编号随即发生改变,并以此作为计算参考;扫码位上设置有扫码机构,用于对试管上的条码进行扫码。Optionally, when the identification position is the loading position, when the target position is the scanning position, the loading position is the position of the first test tube closest to the scanning position on the test tube rack when the test tube rack is loaded on the conveyor belt, that is, the position of the first test tube on the test tube rack is closest to the scanning position. The position of the first test tube in the running direction is used as the loading position. When the test tube rack moves, the position of the loading position remains unchanged, and the number of the test tube on the loading position changes immediately, which is used as a reference for calculation; A scanning mechanism is provided for scanning the barcode on the test tube.

可选地,当标识位为装载位,目标位为取样位,取样位上设置有取样机构,用于对试管内的液体进行取样操作;在另一些实施例中,标识位还可以为扫码位,目标位为取样位,具体可以根据实际情况进行设置,在此不做赘述。Optionally, when the identification position is the loading position, the target position is the sampling position, and the sampling position is provided with a sampling mechanism for sampling the liquid in the test tube; in other embodiments, the identification position can also be a scan code. bit, the target bit is the sampling bit, which can be set according to the actual situation, and will not be repeated here.

S10073:根据目标位与原点之间的距离、标识位于原点之间的距离,确定目标位和标识位的第二距离。S10073: Determine a second distance between the target position and the identification position according to the distance between the target position and the origin, and the distance between the marker and the origin.

在一个应用场景中,例如第一试管所需要进行移动的目标位为取样位,第二试管所处的标识位为扫码位,可以得到,取样位与原点之间的距离为800个单位长度(步),扫码位与原点之间的距离为200个单位长度(步),因此此时可以计算得到目标位与标识位的第二距离为800-200=600个单位长度。In an application scenario, for example, the target position of the first test tube to be moved is the sampling position, and the identification position of the second test tube is the scanning position. It can be obtained that the distance between the sampling position and the origin is 800 units of length. (step), the distance between the scan code bit and the origin is 200 unit lengths (steps), so at this time it can be calculated that the second distance between the target bit and the identification bit is 800-200=600 unit lengths.

S1008:根据第一距离和第二距离,确定第一试管和目标位的距离。S1008: Determine the distance between the first test tube and the target position according to the first distance and the second distance.

具体地,S1008可以由如下步骤实现:计算第一距离和第二距离的和值,作为第一试管和目标位的距离。Specifically, S1008 may be implemented by the following steps: calculating the sum of the first distance and the second distance as the distance between the first test tube and the target position.

在本实施例中,由于第一距离可能为正值或负值,因此根据上述示例,当第一距离为+305个单位长度时,第一试管和目标位之间的距离即为600+305=905个单位长度;当第一距离为-305个单位长度时,第一试管和目标位之间的距离即为600-305=295个单位长度。In this embodiment, since the first distance may be a positive value or a negative value, according to the above example, when the first distance is +305 unit lengths, the distance between the first test tube and the target position is 600+305 =905 unit length; when the first distance is -305 unit length, the distance between the first test tube and the target position is 600-305 = 295 unit length.

S1009:根据第一试管和目标位置的距离,驱动试管架,以使第一试管移动至目标位。S1009: Drive the test tube rack according to the distance between the first test tube and the target position, so as to move the first test tube to the target position.

根据上述示例,控制电机移动例如905或295个电机步距,即可将第一试管移动至所需要到达的目标位。According to the above example, the first test tube can be moved to the desired target position by controlling the motor to move, for example, by 905 or 295 motor steps.

因此本实施例的方法,根据需要移动的第一试管的试管编号、用于进行参考标识的第二试管的试管编号、相邻两个试管架之间的距离、以及第二试管所处的标识位和第一试管所需要到达的目标位,即可准确计算出此次位移需要前进或后退的对应步距,进而控制电机运动,实现试管位置的移动。通过这样的方式,能够准确、快速地计算出不同试管架中任意试管到任意位置的距离,从而对试管位移进行准确控制,降低了试管移动的计算复杂度,提高了工作效率。Therefore, in the method of this embodiment, the test tube number of the first test tube to be moved, the test tube number of the second test tube for reference identification, the distance between two adjacent test tube racks, and the mark where the second test tube is located are determined. Position and the target position that the first test tube needs to reach, you can accurately calculate the corresponding step distance that the displacement needs to move forward or backward, and then control the motor movement to realize the movement of the test tube position. In this way, the distance from any test tube to any position in different test tube racks can be accurately and quickly calculated, so that the displacement of the test tube can be accurately controlled, the computational complexity of the test tube movement is reduced, and the work efficiency is improved.

因此,上述多个实施例通过提供的位移控制方法,能够准确控制试管架上试管的移动,以使目标试管能够准确位移至目标位以完成相应的操作,提高了自动进样的效率。Therefore, the displacement control methods provided in the above embodiments can accurately control the movement of the test tubes on the test tube rack, so that the target test tube can be accurately displaced to the target position to complete the corresponding operation, thereby improving the efficiency of automatic sample injection.

可选地,由于电机在运行过程中,可能会出现丢步或过冲的情况,此时电机根据上述步骤计算出的距离对传送带进行控制时,试管位移的准确性仍然会受到部分影响,因此,在S1009之后还可以利用编码器进行位置纠正,具体包括:Optionally, since the motor may lose steps or overshoot during operation, when the motor controls the conveyor belt according to the distance calculated in the above steps, the accuracy of the test tube displacement will still be partially affected. , the encoder can also be used for position correction after S1009, including:

A:在第一试管移动时,获取第一试管的实际移动距离。A: When the first test tube moves, obtain the actual moving distance of the first test tube.

可以知道,编码器的精度会高于电机,因此编码器可以更精确地识别、监控和反馈试管位移的情况。由于电机的控制是以1步为单位进行运行,当第一试管在电机的驱动下进行移动时,编码器同步获取第一试管的实际移动距离,由于电机丢步或过冲,实际移动距离可能会大于或小于电机的控制步距。It can be known that the accuracy of the encoder will be higher than that of the motor, so the encoder can more accurately identify, monitor and feedback the displacement of the test tube. Since the motor is controlled by one step, when the first test tube moves under the drive of the motor, the encoder synchronously obtains the actual moving distance of the first test tube. Because the motor loses steps or overshoots, the actual moving distance may be It will be larger or smaller than the control step of the motor.

B:确定实际移动距离与计算距离之间的误差值。B: Determine the error value between the actual moving distance and the calculated distance.

其中,计算距离即为通过第一试管、第二试管、标识位和目标位之间的距离所计算出的第一试管需要移动的理论距离,该理论距离在电机不发生丢步、过冲等情况时,应当与实际移动距离相等。因此,实际情况下由于电机所带来的误差,需要利用编码器计算的实际移动距离对误差值进行计算。Among them, the calculated distance is the theoretical distance that the first test tube needs to move calculated by the distance between the first test tube, the second test tube, the marking position and the target position. In this case, it should be equal to the actual moving distance. Therefore, in practice, due to the error caused by the motor, it is necessary to use the actual moving distance calculated by the encoder to calculate the error value.

C:对误差值进行累加,在累加的误差值满足预设阈值时,对下一次位移控制进行补偿。C: Accumulate the error value, and compensate the next displacement control when the accumulated error value meets the preset threshold.

其中,预设阈值可以根据实际情况进行设置,在本实施例中可以设置为1个单位长度,也即是1步。Wherein, the preset threshold can be set according to the actual situation, and in this embodiment, it can be set as one unit length, that is, one step.

在一个应用场景中,由于电机丢步或过冲而导致编码器所获取的实际运动距离与计算距离之间的误差值大于0却不足1步的阶段时,将0-1阶段计算得到的误差值进行累加,当累加误差值满足大于1步时,在下一次执行试管架试管的位移控制时,将这个一步的误差值补入到电机的控制步距中,以进一步提高试管的位移精度。In an application scenario, when the error value between the actual moving distance obtained by the encoder and the calculated distance is greater than 0 but less than 1 step due to the motor lost step or overshoot, the error calculated in the 0-1 stage is calculated. When the accumulated error value is greater than 1 step, the next time the displacement control of the test tube rack is performed, the error value of this step is added to the control step of the motor to further improve the displacement accuracy of the test tube.

可以理解,当累加误差值不是整数时,只会补偿整数步数的误差值,而不满1步的误差值则继续累加,补得累加误差值会以四舍五入的方式补偿,例如累加误差值为2.3时,那么当前会补偿2个单位的步距,剩余的0.3继续做累加;又例如当累加误差值为1.8时,那么四舍五入当前也会补偿2步,此时累加误差值则变为-0.2。It can be understood that when the accumulated error value is not an integer, only the error value of the integer number of steps will be compensated, and the error value of less than 1 step will continue to be accumulated, and the accumulated accumulated error value will be compensated by rounding, for example, the accumulated error value is 2.3 , then the current compensation will be 2 steps, and the remaining 0.3 will continue to be accumulated; for example, when the accumulated error value is 1.8, the rounding will also compensate for 2 steps, and the accumulated error value will become -0.2.

可选地,在另一些实施例中,还可以通过位置光耦对电机的控制进行纠正,例如可以在每一排试管架完成检测后,进行一次复位,通过初始位置的光耦定位传送带的位置,以实现光耦纠正。Optionally, in other embodiments, the control of the motor can also be corrected through the position optocoupler. For example, after each row of test tube racks is tested, a reset can be performed, and the position of the conveyor belt can be positioned through the optocoupler at the initial position. , to achieve optocoupler correction.

通过这样的方式,在对试管的位移量进行准确计算的基础上,能够利用编码器或位置光耦确保位移的精度保持在较高水平,从而进一步提高了试管位移的准确性。In this way, on the basis of accurately calculating the displacement of the test tube, an encoder or a position optical coupler can be used to ensure that the displacement accuracy is kept at a high level, thereby further improving the accuracy of the test tube displacement.

S404:将完成操作的试管架从传送带上进行卸载。S404: Unload the completed test tube rack from the conveyor belt.

具体地,S404的卸载操作可以通过如下的步骤实现:将需要卸载的试管架移动至试管架卸载区,以使传送带上的定位机构与试管架卸载区对齐;将试管架推出传送带。Specifically, the unloading operation of S404 can be realized by the following steps: moving the test tube rack to be unloaded to the test tube rack unloading area, so that the positioning mechanism on the conveyor belt is aligned with the test tube rack unloading area; pushing the test tube rack out of the conveyor belt.

其中,当同时有多排试管架在进给轨道上时,如果有部分试管架在扫码位执行扫描,而其它部分试管架满足卸载条件,那么卸载流程将打断扫码位的工作,待满足卸载条件的试管架卸载完成后,再继续完成剩余部分试管架的扫描。Among them, when there are multiple rows of test tube racks on the feed track at the same time, if some test tube racks are scanned at the code scanning position, while other test tube racks meet the unloading conditions, the unloading process will interrupt the work of the code scanning position. After the test tube racks that meet the unloading conditions are unloaded, continue to scan the remaining test tube racks.

可以知道,由于在试管取样过程中可能会存在取样失败的情况发生,若此时该试管架已经完成卸载,则无法对该试管架上的试管进行复检,因此为了避免这一情况的发生,需要检测并确认所有试管的复检决策信息,具体可以通过如下步骤来解决:判断目标试管架上最后一个试管对应的样本是否需要进行复检操作;若需要,则在最后一个试管对应的样本复检完成之后,将目标试管架从传送带上进行卸载;若不需要,则将目标试管架从传送带上进行卸载。It can be known that since sampling failure may occur during the test tube sampling process, if the test tube rack has been unloaded at this time, the test tubes on the test tube rack cannot be re-inspected. Therefore, in order to avoid this situation, It is necessary to detect and confirm the re-inspection decision information of all test tubes, which can be solved by the following steps: determine whether the sample corresponding to the last test tube on the target test tube rack needs to be re-inspected; if necessary, re-test the sample corresponding to the last test tube. After the inspection is completed, the target test tube rack is unloaded from the conveyor belt; if not required, the target test tube rack is unloaded from the conveyor belt.

其中,目标试管架是指已经完成所有检测操作,但可能存在试管样本需要复检的试管架;在本实施例中,对目标试管架的最后一个试管进行判断,可以通过对最后一个试管的复检决策信息进行检测和确认,当最后一个试管的复检决策信息表示为完成时,则表明整个目标试管架的所有试管已经完成复检或不需要复检,此时可以直接将目标试管架从传送带上进行卸载。Among them, the target test tube rack refers to a test tube rack that has completed all detection operations, but there may be test tube samples that need to be re-examined; in this embodiment, to judge the last test tube of the target test tube rack The inspection decision information is tested and confirmed. When the re-inspection decision information of the last test tube is indicated as complete, it indicates that all the test tubes in the entire target test tube rack have been re-inspected or do not need to be re-inspected. Unloading on the conveyor belt.

若最后一个试管的复检决策信息表示未完成,则表明最后一个试管需要进行复检却还未进行复检,此时需要将最后一个试管再次移动至取样位,以对试管内的样本进行取样检测,在检测期间还可以根据如前所述的预设优先级顺序对其他试管架上的试管进行相应操作,直到最后一个试管的复检决策信息表示为完成时,才可以将目标试管架从传送带上进行卸载。If the re-inspection decision information of the last test tube indicates that it has not been completed, it indicates that the last test tube needs to be re-inspected but has not been re-inspected. At this time, the last test tube needs to be moved to the sampling position again to sample the sample in the test tube. During the detection, the test tubes on other test tube racks can also be operated correspondingly according to the preset priority order as mentioned above, and the target test tube rack can not be changed from the target test tube rack until the retest decision information of the last test tube is indicated as complete. Unloading on the conveyor belt.

因此,本实施例提供的样本分析方法,通过在传送带上设置定位机构,以利用定位机构对传送带上的试管架进行位置固定,避免试管架由于惯性作用而与传送带发生相对滑动,并且通过具有定位机构的传送带,以及位移控制方法准确地带动试管架移动,以完成相应的样本检测等操作,保证了样本分析工作的稳定进行,提高了样本分析效率。Therefore, in the sample analysis method provided in this embodiment, a positioning mechanism is provided on the conveyor belt, so that the position of the test tube rack on the conveyor belt is fixed by the positioning mechanism, so as to avoid the relative sliding of the test tube rack and the conveyor belt due to the inertia effect, and by having a positioning mechanism The conveyor belt of the mechanism and the displacement control method accurately drive the test tube rack to move to complete the corresponding sample detection and other operations, which ensures the stable progress of the sample analysis work and improves the sample analysis efficiency.

参阅图12,图12是本申请提供的样本分析装置一实施例的结构示意图,该样本分析装置120包括传送带121、电机122和控制器123,其中,传送带121用于承载并运送试管架,电机122连接传送带121,用于驱动传送带121转动,以带动传送带121上的至少一个试管架位移,控制器123连接电机122,用于采用如下的方法控制电机:Referring to FIG. 12 , FIG. 12 is a schematic structural diagram of an embodiment of a sample analysis device provided by the present application. The sample analysis device 120 includes a conveyor belt 121 , a motor 122 and a controller 123 , wherein the conveyor belt 121 is used for carrying and transporting test tube racks, and the motor 122 is connected to the conveyor belt 121 for driving the conveyor belt 121 to rotate to drive the displacement of at least one test tube rack on the conveyor belt 121, and the controller 123 is connected to the motor 122 for controlling the motor by the following method:

将至少一个试管架装载至传送带上;其中,传送带上设有定位机构,定位机构用于对承载于传送带上的试管架进行固定;根据试管位移指令,控制试管架上的试管移动至目标位,以对试管架上的试管完成相应操作;将完成操作的试管架从传送带上进行卸载。Load at least one test tube rack onto the conveyor belt; wherein, a positioning mechanism is provided on the conveyor belt, and the positioning mechanism is used to fix the test tube rack carried on the conveyor belt; according to the test tube displacement instruction, the test tube on the test tube rack is controlled to move to the target position, To complete the corresponding operation on the test tubes on the test tube rack; unload the completed test tube rack from the conveyor belt.

进一步地,该样本分析装置120还包括装载机构、扫码机构、取样机构、卸载机构以及前述实施例所述的进样机构(图均未示)。装载机构设置于装载位处,用于装载试管架;取样机构设于取样位,即设于装载机构的下游,用于对试管架上的试管进行取样;扫码机构设于扫码位,即设于装载机构和取样机构之间,用于对试管进行逐一扫码识别。卸载机构设于卸载位,即设于装载机构下游,用于卸载试管架;该样本分析装置120能实现自动化、智能化地完成装载、扫码、进样、取样、检测及卸载等功能。Further, the sample analysis device 120 further includes a loading mechanism, a code scanning mechanism, a sampling mechanism, an unloading mechanism, and the sample feeding mechanism described in the foregoing embodiments (none of which are shown in the figures). The loading mechanism is set at the loading position for loading the test tube rack; the sampling mechanism is set at the sampling position, that is, downstream of the loading mechanism, for sampling the test tubes on the test tube rack; the scanning mechanism is set at the scanning position, namely It is located between the loading mechanism and the sampling mechanism, and is used to scan and identify the test tubes one by one. The unloading mechanism is located at the unloading position, that is, downstream of the loading mechanism, for unloading the test tube racks; the sample analysis device 120 can automatically and intelligently complete functions such as loading, scanning, sampling, sampling, testing, and unloading.

参阅图13,图13是本申请提供的计算机可读存储介质一实施例的结构示意图。本实施例的计算机可读存储介质130用于存储计算机程序131,计算机程序131在被处理器执行时,用以实现如下方法步骤:Referring to FIG. 13, FIG. 13 is a schematic structural diagram of an embodiment of a computer-readable storage medium provided by the present application. The computer-readable storage medium 130 in this embodiment is used to store a computer program 131, and when the computer program 131 is executed by the processor, is used to implement the following method steps:

将至少一个试管架装载至传送带上;其中,传送带上设有定位机构,定位机构用于对承载于传送带上的试管架进行固定;根据试管位移指令,控制试管架上的试管移动至目标位,以对试管架上的试管完成相应操作;将完成操作的试管架从传送带上进行卸载。Load at least one test tube rack onto the conveyor belt; wherein, a positioning mechanism is provided on the conveyor belt, and the positioning mechanism is used to fix the test tube rack carried on the conveyor belt; according to the test tube displacement instruction, the test tube on the test tube rack is controlled to move to the target position, To complete the corresponding operation on the test tubes on the test tube rack; unload the completed test tube rack from the conveyor belt.

需要说明的是,本实施例的计算机程序131所执行的方法步骤是基于上述方法实施例的,其实施原理和步骤类似。因此,计算机程序131在被处理器执行时,还可以实现上述任一实施例中的其他方法步骤,在此不再赘述。It should be noted that, the method steps executed by the computer program 131 in this embodiment are based on the foregoing method embodiments, and the implementation principles and steps are similar. Therefore, when the computer program 131 is executed by the processor, other method steps in any of the foregoing embodiments may also be implemented, which will not be repeated here.

本申请的实施例以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施方式所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。When the embodiments of the present application are implemented in the form of software functional units and are sold or used as independent products, they may be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .

以上所述仅为本申请的实施方式,并非因此限制本申请的专利范围,凡是根据本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above descriptions are only the embodiments of the present application, and are not intended to limit the scope of the patent of the present application. Any equivalent structure or equivalent process transformation made according to the contents of the description and drawings of the present application, or directly or indirectly applied to other related technologies Fields are similarly included within the scope of patent protection of this application.

Claims (10)

1.一种试管架的位移控制方法,其特征在于,所述方法用于通过控制电机驱动传送带转动,以带动所述传送带上的试管架位移,所述方法包括:1. a displacement control method of a test tube rack, is characterized in that, described method is used to drive conveyor belt to rotate by controlling motor, to drive the test tube rack displacement on described conveyor belt, described method comprises: 获取试管位移指令;其中,所述试管位移指令表示将所述试管架上的第一试管移动至目标位;Obtaining a test tube displacement instruction; wherein, the test tube displacement instruction represents moving the first test tube on the test tube rack to a target position; 确定当前处于标识位的第二试管;Determine the second test tube currently in the marked position; 根据所述第一试管和所述第二试管的距离,以及所述目标位和所述标识位的距离,确定所述第一试管和所述目标位的距离;According to the distance between the first test tube and the second test tube, and the distance between the target position and the identification position, determine the distance between the first test tube and the target position; 根据所述第一试管和所述目标位的距离,驱动所述试管架,以使所述第一试管移动至所述目标位。According to the distance between the first test tube and the target position, the test tube rack is driven to move the first test tube to the target position. 2.根据权利要求1所述的方法,其特征在于,2. The method according to claim 1, wherein 所述根据所述第一试管和所述第二试管的距离,以及所述目标位和所述标识位的距离,确定所述第一试管和所述目标位的距离,包括:The determining the distance between the first test tube and the target position according to the distance between the first test tube and the second test tube, as well as the distance between the target position and the identification position, includes: 确定所述第一试管和所述第二试管的第一距离;以及determining a first distance between the first test tube and the second test tube; and 确定所述目标位和所述标识位的第二距离;determining the second distance between the target position and the identification position; 根据所述第一距离和所述第二距离,确定所述第一试管和所述目标位的距离。According to the first distance and the second distance, the distance between the first test tube and the target position is determined. 3.根据权利要求2所述的方法,其特征在于,3. The method of claim 2, wherein 所述确定所述第一试管和所述第二试管的第一距离,包括:The determining of the first distance between the first test tube and the second test tube includes: 确定相邻两个试管之间的距离;Determine the distance between two adjacent test tubes; 获取所述第一试管的第一编号,以及获取所述第二试管的第二编号;obtaining the first number of the first test tube, and obtaining the second number of the second test tube; 根据所述相邻两个试管之间的距离、所述第一编号和所述第二编号的差值,确定所述第一试管和所述第二试管的第一距离;Determine the first distance between the first test tube and the second test tube according to the distance between the two adjacent test tubes and the difference between the first number and the second number; 其中,所述试管架上的试管按照试管排列顺序依次编号。Wherein, the test tubes on the test tube rack are sequentially numbered according to the order in which the test tubes are arranged. 4.根据权利要求3所述的方法,其特征在于,4. The method of claim 3, wherein 所述试管架上的试管按照试管排列顺序,并对应所述传送带的移动方向,依次递减编号;The test tubes on the test tube rack are sequentially numbered in descending order according to the order of the test tubes and corresponding to the moving direction of the conveyor belt; 所述根据所述相邻两个试管之间的距离、所述第一编号和所述第二编号的差值,确定所述第一试管和所述第二试管的第一距离,包括:The determining of the first distance between the first test tube and the second test tube according to the distance between the two adjacent test tubes and the difference between the first number and the second number includes: 当所述第一编号大于所述第二编号时,确定所述第一试管和所述第二试管的第一距离为正值;或When the first number is greater than the second number, determining that the first distance between the first test tube and the second test tube is a positive value; or 当所述第一编号小于所述第二编号时,确定所述第一试管和所述第二试管的第一距离为负值。When the first number is smaller than the second number, it is determined that the first distance between the first test tube and the second test tube is a negative value. 5.根据权利要求2所述的方法,其特征在于,5. The method of claim 2, wherein 所述确定所述目标位和所述标识位的第二距离,包括:The determining of the second distance between the target position and the identification position includes: 确定所述目标位与原点之间的距离;以及determining the distance between the target position and the origin; and 确定所述标识位与所述原点之间的距离;determining the distance between the identification bit and the origin; 根据所述目标位与原点之间的距离、所述标识位与所述原点之间的距离,确定所述目标位和所述标识位的第二距离。The second distance between the target position and the identification position is determined according to the distance between the target position and the origin and the distance between the identification position and the origin. 6.根据权利要求2所述的方法,其特征在于,6. The method of claim 2, wherein 所述根据所述第一距离和所述第二距离,确定所述第一试管和所述目标位的距离,包括:The determining the distance between the first test tube and the target position according to the first distance and the second distance includes: 计算所述第一距离和所述第二距离的和值,作为所述第一试管和所述目标位的距离。The sum of the first distance and the second distance is calculated as the distance between the first test tube and the target position. 7.根据权利要求1-6任一项所述的方法,其特征在于,7. The method according to any one of claims 1-6, characterized in that, 所述标识位为装载位,所述目标位为扫码位,所述装载位为所述试管架装载至所述传送带时,所述试管架上最靠近所述扫描位的第一个试管的位置,所述扫码位上设置有扫码机构,用于对试管上的条码进行扫码;或The identification position is the loading position, the target position is the scanning position, and the loading position is the position of the first test tube closest to the scanning position on the test tube rack when the test tube rack is loaded on the conveyor belt. position, the scanning position is provided with a scanning mechanism for scanning the barcode on the test tube; or 所述标识位为装载位,所述目标位为取样位,所述取样位上设有取样机构,用于对试管内的液体进行取样操作;或The identification position is the loading position, the target position is the sampling position, and the sampling position is provided with a sampling mechanism for sampling the liquid in the test tube; or 所述标识位为扫码位,所述目标位为取样位。The identification bits are code scanning bits, and the target bits are sampling bits. 8.根据权利要求1所述的方法,其特征在于,8. The method of claim 1, wherein: 所述方法还包括:The method also includes: 在所述第一试管移动时,获取所述第一试管的实际移动距离;When the first test tube moves, obtain the actual moving distance of the first test tube; 确定所述实际移动距离与计算距离之间的误差值;determining an error value between the actual moving distance and the calculated distance; 对所述误差值进行累加,在累加的误差值满足预设阈值时,对下一次位移控制进行补偿。The error value is accumulated, and when the accumulated error value meets a preset threshold, compensation is performed for the next displacement control. 9.一种样本分析装置,其特征在于,所述样本分析装置包括:9. A sample analysis device, wherein the sample analysis device comprises: 传送带,用于承载并运送试管架;Conveyor belts for carrying and transporting test tube racks; 电机,连接所述传送带,用于驱动所述传送带转动,以带动所述传送带上的试管架位移;a motor, connected to the conveyor belt, for driving the conveyor belt to rotate, so as to drive the displacement of the test tube racks on the conveyor belt; 控制器,连接所述电机,用于采用如权利要求1-8任一项所述的方法控制所述电机。A controller, connected to the motor, is used for controlling the motor by using the method according to any one of claims 1-8. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,所述计算机程序在被处理器执行时,用以实现如权利要求1-8任一项所述的试管架的位移控制方法。10. A computer-readable storage medium, characterized in that, a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the computer program is used to realize any one of claims 1-8 The displacement control method of the test tube rack.
CN202011493458.7A 2020-12-16 2020-12-16 Displacement control method of test tube rack, sample analysis device and storage medium Pending CN114636840A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011493458.7A CN114636840A (en) 2020-12-16 2020-12-16 Displacement control method of test tube rack, sample analysis device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011493458.7A CN114636840A (en) 2020-12-16 2020-12-16 Displacement control method of test tube rack, sample analysis device and storage medium

Publications (1)

Publication Number Publication Date
CN114636840A true CN114636840A (en) 2022-06-17

Family

ID=81944495

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011493458.7A Pending CN114636840A (en) 2020-12-16 2020-12-16 Displacement control method of test tube rack, sample analysis device and storage medium

Country Status (1)

Country Link
CN (1) CN114636840A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103353536A (en) * 2008-12-22 2013-10-16 希森美康株式会社 Sample testing system, sample testing method, and computer program product
CN104297509A (en) * 2014-11-03 2015-01-21 深圳市亚辉龙生物科技有限公司 System for conveying samples to sample analyzing device and accurately positioning samples
US20190187165A1 (en) * 2017-12-14 2019-06-20 Maccura Medical Instrument Co., Ltd. Sample transport method and apparatus, test instrument and computer-readable storage medium
CN111721949A (en) * 2019-03-22 2020-09-29 深圳迈瑞生物医疗电子股份有限公司 Sample analyzer, sample detection method, and computer-readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103353536A (en) * 2008-12-22 2013-10-16 希森美康株式会社 Sample testing system, sample testing method, and computer program product
CN104297509A (en) * 2014-11-03 2015-01-21 深圳市亚辉龙生物科技有限公司 System for conveying samples to sample analyzing device and accurately positioning samples
US20190187165A1 (en) * 2017-12-14 2019-06-20 Maccura Medical Instrument Co., Ltd. Sample transport method and apparatus, test instrument and computer-readable storage medium
CN111721949A (en) * 2019-03-22 2020-09-29 深圳迈瑞生物医疗电子股份有限公司 Sample analyzer, sample detection method, and computer-readable storage medium

Similar Documents

Publication Publication Date Title
CN104569461B (en) Sample rack vehicle and streamline and Transfer method
CN108196080B (en) Sample transport method and apparatus, test instrument, and computer-readable storage medium
KR101300856B1 (en) Prealignment method of semiconductor wafer and recording medium having recorded prealignment program therein
US8048374B2 (en) Automatic analyzer
EP2330425B1 (en) Sample processing system
JP6230915B2 (en) Sample transfer device and system
CN104569462A (en) Conveying device and conveying method of sample container
EP1410046B1 (en) Sample presentation unit
CN102647504A (en) Method for controlling applications in mobile phone
JP2017197342A (en) Transport vehicle
CN109507441B (en) Sample retesting device and retesting method thereof
CN110456092A (en) A kind of sample rack conveying device
EP4083634B1 (en) Automatic sample feeding system, sample analysis system and method for automatic sample feeding control
CN114636840A (en) Displacement control method of test tube rack, sample analysis device and storage medium
JP2019197021A (en) Device for transportation, analyte measurement system, and transportation method
EP2338817B1 (en) Paper leaves processor and paper leaves processing method
CN114636839A (en) Displacement control method of test tube rack, sample analysis device and storage medium
CN114636835A (en) Sample analysis method, sample analysis device, and computer-readable storage medium
CN117665300A (en) Sample analyzer, sample transport control method, sample transport control device and sample transport control medium
CN113884689A (en) Sample analyzer and sample detection method
CN115267237A (en) Cascade sample analyzer and sample injection control device, sample injection control method and medium thereof
CN114354961B (en) Sample analyzer, cleaning control method and device thereof, and medium
CN116297481A (en) A detection method, device, electronic equipment and computer-readable storage medium
CN110196339B (en) Sample processing device and control method thereof
US20240103030A1 (en) Sample rack recovery method and manipulation device, detection system, and computer-readable medium

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