A control method, device, computer equipment and storage medium for an injection pump
By detecting the operating status of the syringe pump and obtaining position parameters, the operation results of the syringe pump piston are determined, and the problem of difficulty in controlling the precise position of the syringe pump piston is solved, which achieves high-precision control of the syringe pump and improves the accuracy of the sequencing results.
Patent Information
- Application Number
- CN202211668335.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-23
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2042-12-23
AI Technical Summary
During sequencing, the syringe pump requires high-precision control to achieve injection or discharge of reagents of different flow rates and volumes. However, the prior art is difficult to achieve precise position control of the syringe pump piston, resulting in the impact of the accuracy of the sequencing results.
By detecting the operating status of the target syringe pump, the position parameters representing the piston movement results are obtained, and the piston operation results are determined based on these parameters and the specified positions in the operation instructions. When the piston operation result fails, the step of sending the running command is returned to achieve high-precision control of the syringe pump.
High-precision control of the syringe pump piston is achieved to ensure the accurate injection or discharge of reagents, thereby improving the accuracy of sequencing results.
Smart Images

Figure CN116044729B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a control method and device for an injection pump, a computer device, and a storage medium. Background Art
[0002] During operation, the sequencer can add various reagents to the biochip through a high-precision syringe pump to achieve sequencing. During the sequencing process, a high-precision syringe pump is required to continuously inject or discharge reagents into or out of the biochip at different flow rates and volumes. The flow rate and volume accuracy of the injected or discharged reagents are very high. Any slight deviation may affect the accuracy of the sequencing results. Therefore, how to achieve high-precision control of the syringe pump has become an urgent problem to be solved in this field. Summary of the invention
[0003] The embodiments of the present disclosure at least provide a control method, device, computer equipment and storage medium for an injection pump.
[0004] In a first aspect, an embodiment of the present disclosure provides a method for controlling a syringe pump, comprising:
[0005] Sending an operation instruction to a target injection pump to instruct the target injection pump to control a piston to move to a designated position corresponding to the operation instruction;
[0006] In response to detecting that the operating state of the target injection pump is stopped, acquiring a first position parameter for characterizing a movement result of the piston;
[0007] Based on the first position parameter and the designated position corresponding to the operation instruction, the piston operation result of the target injection pump in this operation is determined, and when the piston operation result is a failure, the step of sending the operation instruction is returned to be executed.
[0008] In a possible implementation manner, the method further includes obtaining the operating status of the target injection pump according to the following steps:
[0009] Sending an operation status query instruction to the target injection pump at a preset time interval to instruct the target injection pump to determine the current operation status;
[0010] Receive a query result sent by the target injection pump that includes the current operating status of the target injection pump.
[0011] In a possible implementation manner, when the first position parameter includes the current piston position of the target injection pump, determining the operation result of the current operation of the target injection pump based on the first position parameter and the designated position corresponding to the operation instruction includes:
[0012] When it is detected that the distance between the current piston position of the target injection pump and the designated position is greater than the first preset distance, it is determined that the piston operation result of the current operation of the target injection pump is a failure.
[0013] In a possible implementation manner, the operation instruction further includes a target valve port position for representing a valve port corresponding to an injection operation or an extraction operation performed by the target injection pump;
[0014] The method further comprises:
[0015] In response to detecting that the operating state of the target injection pump is stopped, obtaining a second position parameter for characterizing a valve port movement result;
[0016] Determining a valve port operation result according to the target valve port position and the second position parameter;
[0017] When the valve port operation result is failure, the process returns to the step of sending the operation instruction.
[0018] In a possible implementation manner, when the piston operation result is a failure, returning to execute the step of sending the operation instruction includes:
[0019] If the piston operation result is a failure, returning to the step of sending the operation instruction until a stop condition is met;
[0020] The stop condition includes that the operation result is successful, and / or the number of times the operation instruction is resent reaches a preset number of times, and / or the duration of executing the operation instruction reaches a preset duration.
[0021] In a possible implementation manner, after the target injection pump receives the operation instruction for the first time and before controlling the piston to move, the position of the piston is the initial position;
[0022] The operation instruction also carries flow rate and volume information, the volume information is used to determine the designated position, and the flow rate is used to instruct the target injection pump to inject or extract the target liquid matching the volume information at the flow rate.
[0023] In a possible implementation, the target injection pump includes a plurality of syringes;
[0024] When the piston operation result is a failure, returning to execute the step of sending the operation instruction comprises:
[0025] When it is detected that the operation result of the piston of any of the syringes fails, the step of sending an operation instruction to the target syringe pump is returned to instruct the piston of the syringe to move to the specified position corresponding to the operation instruction.
[0026] In a second aspect, the present disclosure also provides a control device for an injection pump, comprising:
[0027] A sending module, used for sending an operation instruction to a target injection pump to instruct the target injection pump to control a piston to move to a designated position corresponding to the operation instruction;
[0028] an acquisition module, configured to acquire a first position parameter for characterizing a movement result of the piston in response to detecting that the operation state of the target injection pump is stopped;
[0029] A determination module is used to determine the piston operation result of the target injection pump this time based on the first position parameter and the designated position corresponding to the operation instruction, and return to the step of sending the operation instruction when the piston operation result is a failure.
[0030] In a possible implementation manner, the acquisition module is further used to acquire the operating status of the target injection pump according to the following steps:
[0031] Sending an operation status query instruction to the target injection pump at a preset time interval to instruct the target injection pump to determine the current operation status;
[0032] Receive a query result sent by the target injection pump that includes the current operating status of the target injection pump.
[0033] In a possible implementation, when the first position parameter includes the current piston position of the target injection pump, the determination module, when determining the operation result of the current operation of the target injection pump based on the first position parameter and the specified position corresponding to the operation instruction, is used to:
[0034] When it is detected that the distance between the current piston position of the target injection pump and the designated position is greater than the first preset distance, it is determined that the piston operation result of the current operation of the target injection pump is a failure.
[0035] In a possible implementation manner, the operation instruction further includes a target valve port position for representing a valve port corresponding to an injection operation or an extraction operation performed by the target injection pump;
[0036] The determining module is also used for:
[0037] In response to detecting that the operating state of the target injection pump is stopped, obtaining a second position parameter for characterizing a valve port movement result;
[0038] Determining a valve port operation result according to the target valve port position and the second position parameter;
[0039] When the valve port operation result is failure, the process returns to the step of sending the operation instruction.
[0040] In a possible implementation manner, when the piston operation result is a failure, the determination module returns to execute the step of sending the operation instruction, and is used to:
[0041] If the piston operation result is a failure, returning to the step of sending the operation instruction until a stop condition is met;
[0042] The stop condition includes that the operation result is successful, and / or the number of times the operation instruction is resent reaches a preset number of times, and / or the duration of executing the operation instruction reaches a preset duration.
[0043] In a possible implementation manner, after the target injection pump receives the operation instruction for the first time and before controlling the piston to move, the position of the piston is the initial position;
[0044] The operation instruction also carries flow rate and volume information, the volume information is used to determine the designated position, and the flow rate is used to instruct the target injection pump to inject or extract the target liquid matching the volume information at the flow rate.
[0045] In a possible implementation, the target injection pump includes a plurality of syringes;
[0046] The determining module, when the piston operation result is a failure, returns to execute the step of sending the operation instruction, is used to:
[0047] When it is detected that the operation result of the piston of any of the syringes fails, the step of sending an operation instruction to the target syringe pump is returned to instruct the piston of the syringe to move to the specified position corresponding to the operation instruction.
[0048] In a third aspect, an embodiment of the present disclosure further provides a computer device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the above-mentioned first aspect, or any possible implementation of the first aspect are performed.
[0049] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned first aspect or any possible implementation of the first aspect are executed.
[0050] The control method, apparatus, computer equipment and storage medium of the injection pump provided by the embodiments of the present disclosure obtain a first position parameter for characterizing the result of piston movement when it is detected that the target injection pump stops running, and determines the piston operation result of this operation based on the first position parameter and the specified position in the operation instruction. Therefore, if the piston operation result is a failure, the control method, apparatus, computer equipment and storage medium can be returned to execute the step of sending the operation instruction, so that the piston can continue to be controlled when the piston has not moved to the right position, thereby achieving high-precision control of the injection pump.
[0051] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.
[0053] Figure 1 A flow chart showing a method for controlling an injection pump provided by an embodiment of the present disclosure is shown;
[0054] Figure 2 A schematic diagram of the architecture of a control device for an injection pump provided by an embodiment of the present disclosure is shown;
[0055] Figure 3 A schematic diagram of the structure of a computer device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.
[0057] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0058] The term "and / or" herein only describes an association relationship, indicating that three relationships may exist. For example, A and / or B may represent the following three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C may represent including any one or more elements selected from the set consisting of A, B, and C.
[0059] After research, it was found that in the related technology, when determining whether the piston of the injection pump has moved into place, it is often determined by the operating status of the injection pump. When the operating instruction for the piston is sent, if the operating status of the injection pump is to stop running, it can be considered that the injection pump has executed the operating instruction. However, in actual applications, the piston in the injection pump may not have moved into place, so there may be a large error, resulting in abnormal situations such as the inability to proceed with the sequencing experiment normally.
[0060] Based on the above research, the present disclosure provides a control method, device, computer equipment and storage medium for an injection pump. When it is detected that the target injection pump stops running, a first position parameter used to characterize the piston movement result is obtained, and based on the first position parameter and the specified position in the running instruction, the piston operation result of this operation is determined. Therefore, when the piston operation result is a failure, the method returns to the step of sending the running instruction, so that the piston can continue to be controlled when the piston has not moved into place, thereby achieving high-precision control of the injection pump.
[0061] To facilitate understanding of this embodiment, a control method for an injection pump disclosed in an embodiment of the present disclosure is first introduced in detail. The execution subject of the control method for an injection pump provided in an embodiment of the present disclosure is generally a computer device with certain computing capabilities, and the computer device includes, for example: a terminal device or a server or other processing device, and the terminal device may be a user equipment (UE), a mobile device, a user terminal, a terminal, a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the control method for the injection pump may be implemented by a processor calling a computer-readable instruction stored in a memory.
[0062] See also Figure 1FIG. 1 is a flow chart of a method for controlling an injection pump according to an embodiment of the present disclosure, wherein the method includes S101 to S103, wherein:
[0063] S101: Sending an operation instruction to a target injection pump to instruct the target injection pump to control a piston to move to a designated position corresponding to the operation instruction.
[0064] S102: In response to detecting that the target injection pump is in the stopped state, obtaining a first position parameter for characterizing a movement result of the piston.
[0065] S103: Based on the first position parameter and the designated position corresponding to the operation instruction, determine the piston operation result of the target injection pump in this operation, and when the piston operation result is a failure, return to the step of sending the operation instruction.
[0066] The following is a detailed description of the above steps.
[0067] For S101,
[0068] The operating instruction may be sent by a host computer that has established a connection with the target injection pump. The host computer may be a computer device with certain computing capabilities. The operating instruction may be sent to the target injection pump through the target software running in the computer device. The host computer and the target injection pump may establish a communication connection through an RS485 communication bus, for example. The operating instruction may include a designated position for controlling the piston. After receiving the operating instruction, the target injection pump may control the piston to move according to the designated position corresponding to the operating instruction, so that the piston moves to the designated position. In addition, after the target injection pump receives the operating instruction for the first time, before controlling the piston to move, the position of the piston may be an initial position after initialization. The operating instruction may also carry flow rate and volume information, and the volume information is used to determine the designated position. The flow rate is used to instruct the target injection pump to inject or extract the target liquid matching the volume information at the flow rate.
[0069] In addition, the target injection pump may include multiple syringes, and the operating instruction may be sent to any of the syringes, that is, the operating instruction may be used to control the movement of the piston of the target syringe.
[0070] Specifically, the designated position may be determined based on the volume information. After receiving the operation instruction, the designated position to which the piston needs to move may be determined according to the volume information carried in the operation instruction.
[0071] Exemplarily, if the volume information carried in the operation instruction is 10 ml and the piston position is the starting position of the syringe, it can be determined that the designated position is the position corresponding to 10 ml of the syringe.
[0072] In practical applications, the target injection pump may be an injection pump comprising multiple valve ports, and different valve ports may correspond to different liquids. By controlling the target injection pump to connect with any valve port, the liquid corresponding to the valve port can be injected or extracted through the valve port.
[0073] Furthermore, the operating instruction may also include a target valve port position for characterizing the valve port corresponding to the target injection pump performing an injection operation or an extraction operation, so that the target injection pump can be controlled to communicate with the target valve port at the target valve port position, so as to inject or extract the liquid corresponding to the valve port from the target valve port by moving the piston to a specified position.
[0074] Specifically, the target injection pump may correspond to an initial valve port position. If the operation instruction does not include the target valve port position, the initial valve port position may be used as the valve port position corresponding to the injection operation or the extraction operation.
[0075] It should be noted that the positive or negative value of the flow rate and / or the volume information can be used to characterize whether the target injection pump is performing an injection operation or an extraction operation at this time. Taking the piston movement direction corresponding to the injection operation as the positive direction as an example, when the flow rate is positive, the operation of the target injection pump can be an injection operation, and if the flow rate is negative, the operation of the target injection pump can be an extraction operation. The above-mentioned method of determining the operation type of the target injection pump is only exemplary. The embodiment of the present disclosure does not limit how to determine whether the operation corresponding to the target injection pump is an injection operation or an extraction operation, which is based on what can be achieved.
[0076] For S102,
[0077] The operating status may include states such as stopped running, running, and faulty; the first position parameter may include the current piston position of the target injection pump, and the current piston position may be used to characterize the volume of liquid currently injected or extracted; when acquiring the first position parameter, in response to detecting that the operating status of the target injection pump is stopped running, a piston position query instruction may be sent to the target injection pump to instruct the target injection pump to determine the current piston position; and a query result including the current piston position of the target injection pump sent by the target injection pump is received, so as to obtain the current piston position of the target injection pump.
[0078] In actual applications, when detecting the operating status of the target injection pump, since the target injection pump often does not actively return relevant information used to characterize the completion of instruction execution after successfully executing the operating instruction, it is necessary to initiate a query to the target injection pump to determine whether the target injection pump has successfully executed the operating instruction.
[0079] In a possible implementation manner, the operating status of the target injection pump may be obtained according to the following steps A1 to A2:
[0080] A1: Sending an operation status query instruction to the target injection pump at a preset time interval to instruct the target injection pump to determine the current operation status.
[0081] Here, the value of the time interval can be a target value obtained based on preliminary tests that will not affect the normal operation of the target injection pump and the value meets the preset time interval requirement; wherein the preset time interval requirement can, for example, be a minimum time interval, that is, the target value can be a value that will not affect the normal operation of the target injection pump and has a minimum time interval.
[0082] Exemplarily, the preset time interval may be, for example, 50 ms. If the time interval is less than 50 ms, the normal operation of the target injection pump may be affected.
[0083] In this way, by sending an operation status query instruction to the target injection pump at a preset time interval to instruct the target injection pump to determine the current operation status, the current operation status of the target injection pump can be quickly acquired.
[0084] A2: Receive a query result including the current operating status of the target injection pump sent by the target injection pump.
[0085] Furthermore, after determining the operating status, the target injection pump may send a query result including the current operating status of the target injection pump to the host computer, so that the host computer can obtain the operating status of the target injection pump.
[0086] S103,
[0087] Here, if the piston operation result is failure, it means that the target injection pump cannot control the piston to move to the specified position corresponding to the operation instruction due to equipment aging, failure, etc., including the situation where the control piston moves too short a distance; if the piston operation result is success, it means that the piston successfully moves to the specified position corresponding to the operation instruction.
[0088] In actual applications, due to factors such as measurement errors, the position of the piston after movement may be a certain distance away from the specified position, and these distances do not have a significant impact on the high-precision control of the injection pump. Therefore, a certain distance between the current piston position after the piston stops running and the specified position can be allowed.
[0089] In one possible implementation, when determining the operating result of the target injection pump's current operation, when it is detected that the distance between the current piston position of the target injection pump and the designated position is greater than a first preset distance, it can be determined that the piston operating result of the target injection pump's current operation is a failure; and when it is detected that the distance between the current piston position of the target injection pump and the designated position is less than or equal to the first preset distance, it can be determined that the piston operating result of the target injection pump's current operation is a success.
[0090] Among them, the first preset distance can be a distance that matches the size information of the syringe in the target injection pump, and the first preset distance can be proportional to the size information of the syringe, that is, the larger the size information, the larger the first preset distance; in addition, the distance between the current piston position of the target injection pump and the specified position can also be represented by the difference between the scales on the syringe. For example, if the first scale corresponding to the current piston position is 10ml, and the second scale corresponding to the target position is 8ml, then the distance between the current piston position of the target injection pump and the specified position can be the distance corresponding to the 2ml scale on the syringe.
[0091] Exemplarily, taking the first preset distance of 1 cm as an example, if the distance between the current piston position of the target injection pump and the specified position is 0.5 cm, it can be determined that the piston operation result of the target injection pump this time is successful; if the distance between the current piston position of the target injection pump and the specified position is 1.5 cm, it can be determined that the piston operation result of the target injection pump this time is a failure.
[0092] In this way, by setting the first preset distance to judge the current piston position of the target injection pump and the designated position, the influence of factors such as errors on the judgment of the operation result can be avoided, thereby ensuring the accuracy of the piston operation result.
[0093] In addition, the operation result may also include the valve port operation result of the current operation of the target injection pump.
[0094] In a possible implementation manner, the valve port operation result can be determined according to the following steps B1 to B2:
[0095] B1: In response to detecting that the target injection pump is in the stopped state, obtaining a second position parameter for characterizing a valve port movement result.
[0096] Here, the second position parameter may include a current valve port position of the target syringe pump.
[0097] Specifically, when acquiring the second position parameter, in response to detecting that the operating state of the target injection pump is stopped, a valve port position query instruction can be sent to the target injection pump to instruct the target injection pump to determine the current valve port position; and a query result including the current valve port position of the target injection pump sent by the target injection pump is received, so that the current valve port position of the target injection pump can be obtained.
[0098] B2: Determine the valve port operation result according to the target valve port position and the second position parameter.
[0099] Here, since the valve port position determines at which valve port an injection operation or an extraction operation is performed, the real-time valve port position needs to be the same as the target valve port position, thereby ensuring the normal operation of the target injection pump.
[0100] Specifically, when determining the valve port operation result of the target injection pump this time based on the second position parameter and the target valve port position, the target valve port position can be compared with the second position parameter. When the second position parameter is the same as the target valve port position, the valve port operation result of the target injection pump this time is determined to be successful. When the second position parameter is different from the target valve port position, it can be determined that the valve port operation result of the target injection pump this time is a failure.
[0101] Furthermore, when the valve port operation result is a failure, the process may return to the step of sending the operation instruction.
[0102] In actual application, if the piston operation result and / or the valve port operation result is a failure, it may be necessary to re-execute the operation instruction to implement operations such as re-sequencing.
[0103] In a possible implementation manner, when the piston operation result is a failure, when returning to execute the step of sending the operation instruction, the step of sending the operation instruction may be returned to execute when the piston operation result is a failure until a stop condition is met; wherein the stop condition may include at least one of the following conditions:
[0104] Condition 1: The operation result is successful
[0105] Here, if the operation result is successful, it means that the execution of the operation instruction is completed, so the step of sending the operation instruction can be stopped.
[0106] Condition 2: The number of times the operation instruction is resent reaches a preset number of times
[0107] Here, the preset number may be, for example, 5, which is used to represent the maximum number of times the retransmission operation is performed.
[0108] Furthermore, when the number of times the operation instruction is resent reaches a preset number and the operation result is still a failure, an abnormal prompt message can be sent to the host computer to prompt that the target injection pump has a fault.
[0109] Exemplarily, taking the preset number of times as 5, when the number of times the operating instruction is resent reaches 5 and the operating result after the fifth resentment of the operating instruction is still a failure, an abnormal prompt message can be sent to the host computer to prompt that the target injection pump has a fault.
[0110] Condition 3: The execution time of the operation instruction reaches the preset time
[0111] Here, the preset duration may be, for example, 10 seconds.
[0112] Furthermore, when the execution time of the operation instruction reaches a preset time and the operation result is still a failure, an abnormal prompt message can be sent to the host computer to prompt that the target injection pump has a fault.
[0113] Exemplarily, taking the preset time length as 10 seconds as an example, when the execution time of the running instruction reaches 10 seconds and the running result of the running instruction is still a failure, an abnormal prompt message can be sent to the host computer to prompt that the target injection pump has a fault.
[0114] In addition, when the valve port operation result is a failure, the step of sending the operation instruction can be returned to execute until the stop condition is met. The description of the stop condition can refer to the relevant content above and will not be repeated here.
[0115] In this way, by setting the stop condition, when the piston operation result of the target injection pump and / or the valve operation result is a failure and the operation instruction is repeatedly executed, the execution of the operation instruction can be paused at an appropriate time to avoid abnormal problems caused by repeatedly executing the operation instruction.
[0116] In actual applications, the target injection pump may include multiple syringes. When the piston operation result is a failure, the step of returning to execute the step of sending the operation instruction can be returned to the step of sending the operation instruction to the target injection pump when it is detected that the piston operation result of any of the syringes has failed, to instruct the piston of the syringe to be moved to the specified position corresponding to the operation instruction.
[0117] Here, the returning step of executing sending the operating instruction to the syringe is to resend the operating instruction for the syringe to the target syringe pump to instruct the piston of the syringe to move to the designated position corresponding to the operating instruction.
[0118] In addition, when it is detected that the valve port operation result of any of the syringes fails, the step of sending an operation instruction to the target injection pump can be returned to instruct the valve port of the syringe to move to the target valve port position corresponding to the operation instruction.
[0119] Below, taking the communication bus as RS485 bus as an example, the control method of the injection pump provided by the embodiment of the present disclosure is introduced, which may include the following steps:
[0120] Step 1: The host computer sends an operation instruction to the target injection pump to instruct the target injection pump to control the piston of the target syringe and the valve port of the target injection pump to move to the designated positions corresponding to the operation instruction respectively.
[0121] Among them, the target syringe can be at least one of the syringes contained in the target injection pump; before sending the running instruction, an initialization instruction can also be sent, and the target injection pump can also be initialized. The initialization operation can include returning the piston position to zero, moving the valve port position to the initial valve port position, etc.
[0122] Step 2: query the operating status of the target injection pump via the RS485 bus at preset time intervals.
[0123] The preset time interval may be 50 ms, and the running status may include stopped running, running, and faulty status.
[0124] Step 3: In response to detecting that the target injection pump is in the stopped state, a real-time piston position for characterizing the movement result of the piston and a real-time valve port position for characterizing the movement result of the valve port are acquired.
[0125] Step 4: Based on the real-time piston position, the real-time valve position and the designated position, determine the operation result of the target injection pump this time, and if the operation result is a failure, return to the step of sending the operation instruction until the stop condition is met.
[0126] Among them, when determining the operation result, the piston operation result of this operation can be determined based on the real-time piston position and the first designated position corresponding to the piston (that is, the designated position); the valve port operation result of this operation can be determined based on the real-time valve port position and the second designated position corresponding to the valve port (that is, the target valve port position).
[0127] Further, in the case that any one of the piston operation result and the valve port operation result is a failure, it can be determined that the operation result of the target injection pump this time is a failure.
[0128] The specific description of the above steps can be referred to the relevant content above, which will not be repeated here.
[0129] The control method of the injection pump provided in the embodiment of the present disclosure obtains a first position parameter for characterizing the result of piston movement when it is detected that the target injection pump stops running, and determines the piston operation result of this operation based on the first position parameter and the specified position in the operation instruction. Therefore, if the piston operation result is a failure, the method returns to the step of sending the operation instruction, so that the piston can continue to be controlled when the piston has not moved to the right position, thereby achieving high-precision control of the injection pump.
[0130] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.
[0131] Based on the same inventive concept, the embodiment of the present disclosure also provides a control device for an injection pump corresponding to the control method for the injection pump. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the control method for the injection pump in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0132] Reference Figure 2 , which is a schematic diagram of the architecture of a control device for an injection pump provided by an embodiment of the present disclosure, the device comprises: a sending module 201, an acquisition module 202, and a determination module 203; wherein,
[0133] The sending module 201 is used to send an operation instruction to a target injection pump to instruct the target injection pump to control the piston to move to a specified position corresponding to the operation instruction;
[0134] An acquisition module 202 is used for acquiring a first position parameter for characterizing a movement result of the piston in response to detecting that the operation state of the target injection pump is stopped;
[0135] The determination module 203 is used to determine the piston operation result of the current operation of the target injection pump based on the first position parameter and the designated position corresponding to the operation instruction, and return to the step of sending the operation instruction when the piston operation result is a failure.
[0136] In a possible implementation manner, the acquisition module 202 is further configured to acquire the operating status of the target injection pump according to the following steps:
[0137] Sending an operation status query instruction to the target injection pump at a preset time interval to instruct the target injection pump to determine the current operation status;
[0138] Receive a query result sent by the target injection pump that includes the current operating status of the target injection pump.
[0139] In a possible implementation, when the first position parameter includes the current piston position of the target injection pump, the determination module 203, when determining the operation result of the current operation of the target injection pump based on the first position parameter and the specified position corresponding to the operation instruction, is used to:
[0140] When it is detected that the distance between the current piston position of the target injection pump and the designated position is greater than the first preset distance, it is determined that the piston operation result of the current operation of the target injection pump is a failure.
[0141] In a possible implementation manner, the operation instruction further includes a target valve port position for representing a valve port corresponding to an injection operation or an extraction operation performed by the target injection pump;
[0142] The determining module 203 is further used for:
[0143] In response to detecting that the operating state of the target injection pump is stopped, obtaining a second position parameter for characterizing a valve port movement result;
[0144] Determining a valve port operation result according to the target valve port position and the second position parameter;
[0145] When the valve port operation result is failure, the process returns to the step of sending the operation instruction.
[0146] In a possible implementation manner, when the piston operation result is a failure, the determination module 203 returns to execute the step of sending the operation instruction, and is used to:
[0147] If the piston operation result is a failure, returning to the step of sending the operation instruction until a stop condition is met;
[0148] The stop condition includes that the operation result is successful, and / or the number of times the operation instruction is resent reaches a preset number of times, and / or the duration of executing the operation instruction reaches a preset duration.
[0149] In a possible implementation manner, after the target injection pump receives the operation instruction for the first time and before controlling the piston to move, the position of the piston is the initial position;
[0150] The operation instruction also carries flow rate and volume information, the volume information is used to determine the designated position, and the flow rate is used to instruct the target injection pump to inject or extract the target liquid matching the volume information at the flow rate.
[0151] In a possible implementation, the target injection pump includes a plurality of syringes;
[0152] The determining module 203, when the piston operation result is a failure, returns to execute the step of sending the operation instruction, is used to:
[0153] When it is detected that the operation result of the piston of any of the syringes fails, the step of sending an operation instruction to the target syringe pump is returned to instruct the piston of the syringe to move to the specified position corresponding to the operation instruction.
[0154] The control device for the injection pump provided in the embodiment of the present disclosure obtains a first position parameter for characterizing a piston movement result when it detects that the target injection pump stops running, and determines the piston operation result of this operation based on the first position parameter and a specified position in the operation instruction. Therefore, if the piston operation result is a failure, the control device can return to the step of sending the operation instruction, so that the piston can continue to be controlled when the piston has not moved to the right position, thereby achieving high-precision control of the injection pump.
[0155] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.
[0156] Based on the same technical concept, the embodiment of the present disclosure also provides a computer device. Figure 3As shown, it is a schematic diagram of the structure of a computer device 300 provided in an embodiment of the present disclosure, including a processor 301, a memory 302, and a bus 303. Among them, the memory 302 is used to store execution instructions, including a memory 3021 and an external memory 3022; the memory 3021 here is also called an internal memory, which is used to temporarily store the operation data in the processor 301, and the data exchanged with the external memory 3022 such as a hard disk. The processor 301 exchanges data with the external memory 3022 through the memory 3021. When the computer device 300 is running, the processor 301 communicates with the memory 302 through the bus 303, so that the processor 301 executes the following instructions:
[0157] Sending an operation instruction to a target injection pump to instruct the target injection pump to control a piston to move to a designated position corresponding to the operation instruction;
[0158] In response to detecting that the operating state of the target injection pump is stopped, acquiring a first position parameter for characterizing a movement result of the piston;
[0159] Based on the first position parameter and the designated position corresponding to the operation instruction, the piston operation result of the target injection pump in this operation is determined, and when the piston operation result is a failure, the step of sending the operation instruction is returned to be executed.
[0160] In a possible implementation manner, the instructions of the processor 301 further include obtaining the operating status of the target injection pump according to the following steps:
[0161] Sending an operation status query instruction to the target injection pump at a preset time interval to instruct the target injection pump to determine the current operation status;
[0162] Receive a query result sent by the target injection pump that includes the current operating status of the target injection pump.
[0163] In a possible implementation manner, in the instruction of the processor 301, when the first position parameter includes the current piston position of the target injection pump, determining the operation result of the current operation of the target injection pump based on the first position parameter and the specified position corresponding to the operation instruction includes:
[0164] When it is detected that the distance between the current piston position of the target injection pump and the designated position is greater than the first preset distance, it is determined that the piston operation result of the current operation of the target injection pump is a failure.
[0165] In a possible implementation manner, in the instructions of the processor 301, the operation instruction further includes a target valve port position for representing a valve port corresponding to an injection operation or an extraction operation performed by the target injection pump;
[0166] Also includes:
[0167] In response to detecting that the operating state of the target injection pump is stopped, obtaining a second position parameter for characterizing a result of a movement of the valve port 5;
[0168] Determining a valve port operation result according to the target valve port position and the second position parameter;
[0169] When the valve port operation result is failure, the process returns to the step of sending the operation instruction.
[0170] In a possible implementation manner, in the instruction of the processor 301, when the piston operation result is a failure, returning to execute the step of sending the operation instruction includes: 0 When the piston operation result is a failure, returning to execute the step of sending the operation instruction until a stop condition is met;
[0171] The stop condition includes that the operation result is successful, and / or the number of times the operation instruction is resent reaches a preset number of times, and / or the duration of executing the operation instruction reaches a preset duration.
[0172] In a possible implementation manner, in the instruction of the processor 301, after the target injection pump receives the operation instruction for the first time and before controlling the piston to move, the position of the piston is the initial position;
[0173] The operation instruction also carries flow rate and volume information, the volume information is used to determine the designated position, and the flow rate is used to instruct the target injection pump to inject or extract the target liquid matching the volume information at the flow rate.
[0174] In a possible implementation, in the instruction of the processor 301, the target injection pump includes a plurality of injection syringes;
[0175] When the piston operation result is a failure, returning to execute the step of sending the operation instruction comprises:
[0176] When it is detected that the operation result of the piston of any of the syringes fails, the step of sending an operation instruction to the target syringe pump is returned to instruct the piston of the syringe to move to the specified position corresponding to the operation instruction.
[0177] The present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the control method of the injection pump described in the above method embodiment are executed. The storage medium can be a volatile or non-volatile computer-readable storage medium.
[0178] The presently disclosed embodiment also provides a computer program product, which carries a program code. The instructions included in the program code can be used to execute the steps of the injection pump control method described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.
[0179] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is implemented as a computer storage medium. In another optional embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).
[0180] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.
[0181] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0182] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0183] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0184] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A method for controlling an injection pump, characterized in that: Applied to a sequencer, the control method comprises: Sending an operation instruction to a target injection pump to instruct the target injection pump to control the piston to move to a designated position corresponding to the operation instruction; the target injection pump comprises a plurality of valve ports, and different valve ports correspond to different liquids; the operation instruction also includes a target valve port position for representing the valve port corresponding to the injection operation or extraction operation performed by the target injection pump, so as to control the target injection pump to communicate with the target valve port at the target valve port position, so as to inject or extract the liquid corresponding to the target valve port from the target valve port by moving the piston to the designated position; In response to detecting that the operating state of the target injection pump is stopped, acquiring a first position parameter for characterizing a movement result of the piston and a second position parameter for characterizing a movement result of the valve port; Determining a piston operation result of the current operation of the target injection pump based on the first position parameter and the designated position corresponding to the operation instruction; and determining a valve port operation result based on the target valve port position and the second position parameter; When the piston operation result is a failure, or when the valve operation result is a failure, the process returns to the step of sending the operation instruction.
2. The method according to claim 1, characterized in that The method further comprises obtaining the operating status of the target injection pump according to the following steps: Sending an operation status query instruction to the target injection pump at a preset time interval to instruct the target injection pump to determine the current operation status; Receive a query result sent by the target injection pump that includes the current operating status of the target injection pump.
3. The method according to claim 1, characterized in that In the case where the first position parameter includes the current piston position of the target injection pump, determining the operation result of the current operation of the target injection pump based on the first position parameter and the designated position corresponding to the operation instruction includes: When it is detected that the distance between the current piston position of the target injection pump and the designated position is greater than the first preset distance, it is determined that the piston operation result of the current operation of the target injection pump is a failure.
4. The method according to any one of claims 1 to 3, characterized in that: When the piston operation result is a failure, returning to execute the step of sending the operation instruction comprises: If the piston operation result is a failure, returning to the step of sending the operation instruction until a stop condition is met; The stop condition includes that the operation result is successful, and / or the number of times the operation instruction is resent reaches a preset number of times, and / or the duration of executing the operation instruction reaches a preset duration.
5. The method according to claim 1, characterized in that After the target injection pump receives the operation instruction for the first time and before controlling the piston to move, the position of the piston is the initial position; The operation instruction also carries flow rate and volume information, the volume information is used to determine the designated position, and the flow rate is used to instruct the target injection pump to inject or extract the target liquid matching the volume information at the flow rate.
6. The method according to claim 1, characterized in that The target injection pump includes a plurality of syringes; When the piston operation result is a failure, returning to execute the step of sending the operation instruction comprises: When it is detected that the operation result of the piston of any of the syringes fails, the step of sending an operation instruction to the target syringe pump is returned to instruct the piston of the syringe to move to the specified position corresponding to the operation instruction.
7. A control device for an injection pump, characterized in that: Applied to sequencers, including: A sending module, used for sending an operation instruction to a target injection pump, so as to instruct the target injection pump to control a piston to move to a designated position corresponding to the operation instruction; the target injection pump comprises a plurality of valve ports, and different valve ports correspond to different liquids; the operation instruction also includes a target valve port position for representing a valve port corresponding to an injection operation or an extraction operation performed by the target injection pump, so as to control the target injection pump to communicate with the target valve port at the target valve port position, so as to inject or extract the liquid corresponding to the target valve port from the target valve port by moving the piston to a designated position; an acquisition module, configured to acquire, in response to detecting that the target injection pump is in the stopped state, a first position parameter for characterizing a movement result of the piston and a second position parameter for characterizing a movement result of the valve port; A determination module is used to determine the piston operation result of the current operation of the target injection pump based on the first position parameter and the specified position corresponding to the operation instruction; and to determine the valve port operation result according to the target valve port position and the second position parameter; when the piston operation result is a failure, or when the valve port operation result is a failure, return to execute the step of sending the operation instruction.
8. A computer device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the control method of the injection pump as described in any one of claims 1 to 6 are performed.
9. A computer-readable storage medium, characterized in that: The computer readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the control method of the injection pump as described in any one of claims 1 to 6 are executed.
Citation Information
Patent Citations
Common line selector valve for a system
CN109313214A
Backlash correction of syringe pump apparatus
JP1991099231A
Actuator controller
US20210054858A1