Peristaltic pump control logic setting method, system and medium
By configuring multiple graphic elements on the peristaltic pump control system interface and displaying control parameters through dragging operations, the problem of poor user experience in the existing technology is solved, and an intuitive programming process and efficient control logic setting are achieved.
Patent Information
- Application Number
- CN202210413714.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-15
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2042-04-15
AI Technical Summary
The existing peristaltic pump control system programming interface has a poor user experience, the control parameters cannot be viewed intuitively, and adding steps requires jumping to the interface, which is cumbersome.
Configure multiple graphics elements on the programming interface, and display the selected graphics elements in the programming area by dragging and dropping, along with the corresponding control parameters. It supports various filling steps such as uniform speed, uniform acceleration, and uniform deceleration, and allows graphics elements to be exchanged and parameters to be edited.
It realizes the intuitive display of control parameters and logical relationships without jumping to the interface, improving the intuitiveness of the programming process and user experience.
Smart Images

Figure CN114941620B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of peristaltic pump control programming, and in particular to a method, system and medium for setting peristaltic pump control logic. Background Art
[0002] In the industrial liquid filling process, in order to achieve flexible and efficient filling, different control logics are usually used for peristaltic pumps. Some require fast filling for a period of time, followed by slow filling for a period of time; some require constant speed filling first, followed by accelerated filling, and so on. In these cases, the control logic needs to be programmed using the programming interface of the peristaltic pump control system.
[0003] However, the programming interface of the existing peristaltic pump control system only displays a simple icon list. When a step needs to be added, it is necessary to jump to other interfaces for setting, which provides a poor user experience. In addition, the corresponding control parameters cannot be displayed on the icon, and the user cannot intuitively view the setting parameters. Summary of the Invention
[0004] The purpose of the present invention is to provide a method, system and medium for setting the control logic of a peristaltic pump, thereby improving the user experience through dragging operations.
[0005] In order to achieve the above object, the present invention provides the following technical solutions:
[0006] The present invention is used to provide a method for setting the control logic of a peristaltic pump, the method comprising:
[0007] Displaying a programming interface of a peristaltic pump control system, the programming interface including a programming area and a setting area, wherein a plurality of graphic elements are arranged in the setting area, and the graphic elements represent peristaltic pump control steps;
[0008] Determining the type of a selected graphic element and the display position of the selected graphic element in the programming area based on a user's dragging operation on the graphic element in the setting area;
[0009] The selected graphic element and control parameter information corresponding to the graphic element type are displayed at the display position.
[0010] Optionally, the graphic element type includes one or more of a uniform speed filling step, a uniform acceleration filling step, a uniform deceleration filling step, a step acceleration filling step, a step deceleration filling step, a delay step, a cyclic filling step, an input step, an output step and a jump step.
[0011] Optionally, determining the type of the selected graphic element and the display position of the selected graphic element in the programming area based on the user's dragging operation on the graphic element in the setting area may specifically include:
[0012] Get the start and end positions of the drag operation;
[0013] Determine the type of the selected element according to the starting position;
[0014] The display position of the selected graphic element in the programming area is determined according to the end position.
[0015] Optionally, determining the display position of the selected graphic element in the programming area according to the end position may specifically include:
[0016] Determining the positional relationship between the selected graphic element and other graphic elements according to the relationship between the end position and other graphic elements in the programming area;
[0017] The display position of the selected graphic element in the programming area is determined according to the positional relationship.
[0018] Optionally, determining the positional relationship between the selected graphic element and other graphic elements based on the relationship between the end position and other graphic elements in the programming area may specifically include:
[0019] Determining whether the end position is located in a blank area of the programming area to obtain a first determination result;
[0020] If the first judgment result is yes, it is determined that the position of the selected graphic element is located at the bottom of other graphic elements.
[0021] Optionally, the method may further include:
[0022] If the first judgment result is no, determining whether the end position is located at a corresponding position of the loop primitive, and obtaining a second judgment result;
[0023] If the second judgment result is no, it is determined that the position of the selected graphic element is above or below the graphic element corresponding to the end position.
[0024] Optionally, the method may further include:
[0025] If the second judgment result is yes, it is determined that the position of the selected primitive is located inside the cyclic primitive.
[0026] Optionally, the control parameter information may include one or more of filling speed information, filling acceleration information, filling time information, delay time information, cycle number information, input signal information, and output signal information.
[0027] Optionally, the positions of the graphics elements in the editing area can be exchanged.
[0028] Optionally, the method may further include:
[0029] In response to a user clicking on a graphic element in the editing area, an editing interface for control parameters of the graphic element is displayed;
[0030] Based on the user's editing operation on the control parameter, the control parameter information corresponding to the graphic element is updated.
[0031] Optionally, the method may further include: in response to a save operation by the user, generating a peristaltic pump control code according to the arrangement order of graphic elements in the editing area and control system parameter information.
[0032] Compared with the prior art, the present invention configures multiple graphic elements representing filling steps on the programming interface. Through the user's dragging operation, the selected graphic element is displayed in the programming area, and the control parameters corresponding to each graphic element are displayed at the same time. This control logic setting method does not require a jump interface and can display the control parameters, making the programming process more intuitive and improving the user experience.
[0033] The present invention also provides a system for setting peristaltic pump control logic, the system comprising:
[0034] A programming interface display module, configured to display a programming interface of the peristaltic pump control system, wherein the programming interface includes a programming area and a setting area, wherein a plurality of graphic elements are configured in the setting area, and the graphic elements represent peristaltic pump control steps;
[0035] A display position determination module, configured to determine the type of a selected graphic element and the display position of the selected graphic element in the programming area based on a user's dragging operation on the graphic element in the setting area;
[0036] The graphic element and parameter display module is used to display the selected graphic element and the control parameter information corresponding to the graphic element type at the display position.
[0037] The present invention also provides a computer-readable medium, wherein the computer-readable medium stores computer program code, and the computer program code implements the above-mentioned setting method when executed by a processor.
[0038] Compared with the prior art, the beneficial effects of the system and medium provided by the present invention are the same as the beneficial effects of the display method described in the above technical solution, and will not be described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0040] Figure 1A schematic diagram of a peristaltic pump programming interface in the prior art;
[0041] Figure 2 This is a schematic diagram of another peristaltic pump programming interface in the prior art;
[0042] Figure 3 Flowchart of the method for setting the peristaltic pump control logic provided in Example 1 of the present invention;
[0043] Figure 4 A schematic diagram of a programming interface provided in Example 1 of the present invention;
[0044] Figure 5 A schematic diagram of dragging a selected graphic element to a blank area provided in Example 1 of the present invention;
[0045] Figure 6 A schematic diagram of dragging a selected primitive into a range of a cyclic primitive provided in embodiment 1 of the present invention;
[0046] Figure 7 A schematic diagram of dragging a selected primitive into a non-cyclic primitive range provided in embodiment 1 of the present invention;
[0047] Figure 8 A display principle diagram of the programming interface provided in Example 1 of the present invention;
[0048] Figure 9 This is a schematic diagram of an application of the display method provided in Example 1 of the present invention;
[0049] Figure 10 This is a structural diagram of the system for setting the peristaltic pump control logic provided in Example 2 of the present invention. DETAILED DESCRIPTION
[0050] In order to facilitate the clear description of the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the present invention should not be interpreted as being more preferred or advantageous than other embodiments or design. Specifically, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete way. In the present invention, "at least one" means one or more, and "more than one" means two or more.
[0051] Figure 1 A schematic diagram of a peristaltic pump programming interface in the prior art; Figure 2 This is a schematic diagram of another peristaltic pump programming interface in the prior art. Figure 1 and Figure 2As shown, the programming interface of the prior art uses an icon list display method, but the icons do not display the control parameters. Users cannot see the specific content of the icons and lack the display of control parameters. During the programming process, after the setting operation is completed, it is uncertain whether the modification is successful. Moreover, if additional steps are needed, it is necessary to jump to another interface to operate.
[0052] Example 1
[0053] Based on this, Figure 3 This is a flow chart of a method for setting the peristaltic pump control logic provided in Example 1 of the present invention, as shown in FIG. Figure 3 As shown, the method includes:
[0054] S1: Displaying a programming interface of a peristaltic pump control system, wherein the programming interface includes a programming area and a setting area. A plurality of graphic elements are arranged in the setting area, and the graphic elements represent peristaltic pump control steps;
[0055] S2: determining the type of the selected graphic element and the display position of the selected graphic element in the programming area based on the user's dragging operation on the graphic element in the setting area;
[0056] S3: Displaying the selected graphic element and control parameter information corresponding to the graphic element type at the display position.
[0057] This embodiment configures multiple graphic elements representing filling steps on the programming interface. Through the user's drag operation, the selected graphic element is displayed in the programming area, and the control parameters corresponding to each graphic element are displayed at the same time. This control logic setting method does not require a jump interface and can display the control parameters, making the programming process more intuitive and improving the user experience.
[0058] like Figure 4 As shown in FIG, it is a schematic diagram of the programming interface of this embodiment. Figure 4 As shown, the programming interface of this embodiment is divided into two areas. The left side is the setup area, which is used to configure multiple graphics elements, each of which represents a peristaltic pump control step. The right side is the programming area. Graphic elements in the left area can be dragged to the right area, and the corresponding control parameter information is displayed on the graphics element. The process of dragging graphics elements from the left area to the right area is the process of programming the peristaltic pump control logic. The graphics elements displayed in the programming area constitute the program list.
[0059] Specifically, the graphics elements in the setting area have different representation forms (different graphics elements), and they have different graphics element types. Specifically, they can include one or more of uniform speed filling steps, uniform acceleration filling steps, uniform deceleration filling steps, step acceleration filling steps, step deceleration filling steps, loop filling steps, input steps, output steps and jump steps, wherein a step represents an executable action defined by a specific device.
[0060] The control parameter information may include one or more of filling speed, filling acceleration, and filling time. The filling speed may be constant, variable, or variable acceleration. The filling time may be set in stages. Furthermore, the control parameter information may include one or more of delay time, number of cycles, input signal, and output signal.
[0061] In S2, dragging can be understood as the process of pressing a finger on a touch screen at one position, sliding it to another position, and then leaving the position.
[0062] In S2, the drag operation is the process in which the user presses the first position of the programming interface, slides to the end position and then leaves. Figure 4 As shown, S2 may include:
[0063] A1: Gets the start and end positions of the drag operation;
[0064] A2: Determine the type of the selected element according to the starting position;
[0065] A3: Determine the display position of the selected graphic element in the programming area according to the end position.
[0066] Specifically, the starting position when the user presses the programming interface is first obtained, and the dragged element is determined according to the starting position.
[0067] Typically, the programming interface is displayed on a touch screen. The starting position of the user pressing the programming interface on the touch screen is obtained, and the coordinate region corresponding to the starting position is determined. The graphic element within the coordinate region is then used as the dragged graphic element. The graphic element is defined and recorded as a graphic element type.
[0068] Secondly, the end position when the user's finger leaves the programming interface is obtained, and the positional relationship between the dragged element and the existing elements in the canvas is generated based on the end position to determine the display position of the dragged element.
[0069] In this embodiment, the coordinates of the end position are marked as landing points. Different landing points of the drag operation represent different user operations and will produce different control logic relationships. Different processing can be performed according to different landing points.
[0070] Specifically, in A3, determining the display position of the selected graphic element in the programming area according to the end position may include:
[0071] Determining the positional relationship between the selected graphic element and other graphic elements according to the relationship between the end position and other graphic elements in the programming area;
[0072] The display position of the selected graphic element in the programming area is determined according to the positional relationship.
[0073] There are two main types of relationships between the ending position (drop point) and other primitives: the drop point is inside or outside other primitives. Positional relationships can include front-to-back relationships and nested relationships. Nested relationships are mainly reflected in loop steps.
[0074] Specifically, determining whether the end position is located in a blank area of the programming area to obtain a first determination result;
[0075] Assume that the point of landing is P(x, y), and the range of existing elements in the canvas (that is, the existing steps in the canvas) is R. Traverse all existing elements in the canvas. If the Cotain(P) method of all existing elements returns FALSE, it is considered that there is no element under point P, and the end position is considered to be in the blank area of the canvas. It should be noted that the R.Cotain(P) method returns the logical result of whether R contains P. If not, it returns FALSE. The algorithm is as follows: R.lefttop.x <P.x<R.righttop.x&&R.leftbottom.y<P.y<R.rightbottom.y。
[0076] (1) If the first judgment result is yes, determining that the position of the selected element is located at the bottom of other elements;
[0077] like Figure 5 As shown, Figure 5 (a) is a schematic diagram of dragging the element to a blank area. At this time, the added step (i.e., the step corresponding to the dragged element) is placed at the end of all steps (i.e., the steps corresponding to the elements already in the canvas). Figure 5 (b) is a schematic diagram of the result after dragging the dragged element to the blank area.
[0078] (2) If the first judgment result is no, determine whether the end position is located at the corresponding position of the loop primitive to obtain a second judgment result.
[0079] Traverse all the entities in the programming area. If the Cotain(P) method returns TRUE for any entity, it is considered that there is an entity under point P. If the entity under point P is a cyclic entity, the second judgment result is yes. If the entity under point P is a non-cyclic entity, the second judgment result is no.
[0080] (3) If the second judgment result is yes, determine that the position of the selected primitive is located inside the loop primitive.
[0081] The logical relationship between the dragged element and the existing elements is a nested relationship, and the display position of the dragged element is determined to be inside the element corresponding to the loop; specifically, the display position of the dragged element is the last edge of all elements included in the inside of the element corresponding to the loop.
[0082] like Figure 6 As shown, Figure 6 (a) is a schematic diagram of dragging the dragged element into the range of the loop element. At this time, the newly added steps (i.e., the steps corresponding to the dragged element) are included in the loop element and displayed inside the loop element, and the newly added steps are arranged at the end of all the elements included in the loop. Figure 6 (b) is a schematic diagram of the result after dragging the dragged element to the element range corresponding to the loop.
[0083] (4) If the second judgment result is no, the logical relationship between the dragged element and the existing elements in the canvas is a front-back relationship, and the position of the selected element is determined to be above or below the element corresponding to the end position.
[0084] At this time, the selected element can be displayed above or below the element under point P according to the setting requirements.
[0085] When the setting requirement is above, such as Figure 7 As shown, Figure 7 (a) is a schematic diagram of dragging the dragged element into the range of the non-cyclic element. At this time, the new step (that is, the step corresponding to the dragged element) is arranged before this step (the step corresponding to the element where the end position is located). Figure 7 (b) is a schematic diagram of the result after dragging the dragged element to the non-cyclic element range.
[0086] Combine Figure 2 It can be seen that when programming using the programming interface in the prior art, adding or inserting steps requires a dialog box to pop up, which is very cumbersome, inefficient, and provides a poor user experience when editing multiple steps. However, the display method of this embodiment allows the user to enter the editing interface after a single click, and then use a drag-and-drop method to add steps and modify the order, which is convenient and fast, improving efficiency and user experience.
[0087] like Figure 8 The following figure shows the display principle diagram of the display method described in this embodiment. The step type and target location can be quickly obtained by dragging and dropping. After editing, the detailed parameters can be displayed, and the position and logical relationship of the edited step in the list can be intuitively displayed.
[0088] Example 2
[0089] In this embodiment, to enhance the user experience, the steps represented by each graphic element in the programming area can be adjusted, and the positions of two steps can be swapped. Furthermore, the control parameters of each graphic element can be adjusted. Specifically, in response to a user clicking on a graphic element in the editing area, an editing interface for the control parameters of the graphic element is displayed; based on the user's editing operation on the control parameters, the control parameter information corresponding to the graphic element is updated.
[0090] In a specific embodiment, double-clicking the element to be edited will display the editing screen, and then display different control parameters for different types of elements for the user to adjust. After the adjustment is completed, the user can press the OK button or return to the main interface to save the edited control parameters and display them.
[0091] Furthermore, in this embodiment, each primitive represents a code segment. After the user completes the programming logic and clicks the Save button or a shortcut key, the server generates the peristaltic pump control code based on the primitive arrangement order and control system parameter information in the editing area. Specifically, the code segments included in the primitives are combined according to the logical relationships between the primitives on the canvas to generate code, which is then used to control the peristaltic pump.
[0092] like Figure 9 Figure 1 shows a schematic diagram of the display method described in this embodiment applied to the beaker calibration process. During the calibration process, a certain amount of liquid is first filled at high speed, then the speed is reduced, and then the beaker is filled at the lowest speed. The beaker is allowed to stand for a period of time to facilitate balance measurement, outputting a low level, then filling at the lowest speed, and then delaying the time. In this process, multiple programming steps can automate the operation and improve accuracy.
[0093] Example 2:
[0094] This embodiment can divide the functional modules according to the above-mentioned method examples. For example, each functional module can be divided according to each function, or two or more functions can be integrated into a single processing module. The above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. It should be noted that the module division in this embodiment is illustrative and only represents a logical functional division. In actual implementation, other division methods may be used.
[0095] In the case of dividing each functional module into corresponding functional modules, Figure 10 FIG. 1 shows a schematic diagram of a system for setting a peristaltic pump control logic according to an embodiment of the present invention. Figure 10 As shown, the system may include:
[0096] A programming interface display module M1 is used to display a programming interface of the peristaltic pump control system. The programming interface includes a programming area and a setting area. A plurality of graphic elements are configured in the setting area. The graphic elements represent the peristaltic pump control steps.
[0097] A display position determining module M2, configured to determine the type of a selected graphic element and the display position of the selected graphic element in the programming area based on a user's dragging operation on the graphic element in the setting area;
[0098] The graphic element and parameter display module M3 is used to display the selected graphic element and the control parameter information corresponding to the graphic element type at the display position.
[0099] All relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
[0100] Example 3:
[0101] This embodiment is used to provide a computer-readable medium, in which computer program code is stored. When the computer program code is executed by a processor, the setting method described in Example 1 is implemented.
[0102] Although the present invention is described herein in conjunction with various embodiments, in the process of implementing the claimed invention, those skilled in the art can understand and implement other variations of the disclosed embodiments by reviewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude multiple situations. A single processor or other unit can implement several functions listed in the claims. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.
[0103] Although the present invention has been described with reference to specific features and embodiments thereof, it will be apparent that various modifications and combinations may be made thereto without departing from the spirit and scope of the invention. Accordingly, this specification and drawings are merely illustrative of the invention as defined by the appended claims and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the invention. It will be apparent that various modifications and variations may be made to the present invention by those skilled in the art without departing from the spirit and scope of the invention. Thus, the present invention is intended to include such modifications and variations as fall within the scope of the claims of the present invention and their equivalents.
Claims
1. A method for setting the control logic of a peristaltic pump, characterized in that: The method comprises: Displaying a programming interface of a peristaltic pump control system, the programming interface including a programming area and a setting area, wherein a plurality of graphic elements are arranged in the setting area, and the graphic elements represent peristaltic pump control steps; Determining the type of a selected graphic element and the display position of the selected graphic element in the programming area based on a user's dragging operation on the graphic element in the setting area; Displaying the selected graphic element and control parameter information corresponding to the graphic element type at the display position; The determining, based on the user's dragging operation on the graphic element in the setting area, the graphic element type of the selected graphic element and the display position of the selected graphic element in the programming area specifically includes: Get the start and end positions of the drag operation; Determine the type of the selected element according to the starting position; Determining a display position of the selected graphic element in the programming area according to the end position; Determining the display position of the selected graphic element in the programming area according to the end position specifically includes: Determining the positional relationship between the selected graphic element and other graphic elements according to the relationship between the end position and other graphic elements in the programming area; Determining a display position of the selected graphic element in the programming area according to the positional relationship; The determining, based on the relationship between the end position and other graphic elements in the programming area, the positional relationship between the selected graphic element and other graphic elements specifically includes: Determining whether the end position is located in a blank area of the programming area to obtain a first determination result; If the first judgment result is yes, determining that the position of the selected graphic element is located at the bottom of other graphic elements; The method further comprises: If the first judgment result is no, determining whether the end position is located at a corresponding position of the loop primitive, and obtaining a second judgment result; If the second judgment result is yes, it is determined that the position of the selected primitive is located inside the cyclic primitive.
2. The method according to claim 1, wherein The method further comprises: If the second judgment result is no, it is determined that the position of the selected graphic element is above or below the graphic element corresponding to the end position.
3. The method according to claim 1, wherein The individual graphics elements in the programming area can exchange positions.
4. The method according to claim 1, wherein The control parameter information includes one or more of filling speed information, filling acceleration information, filling time information, delay time information, cycle number information, input signal information and output signal information.
5. The method according to claim 1, wherein The method further comprises: In response to a user clicking on a graphic element in the programming area, an editing interface for control parameters of the graphic element is displayed; Based on the user's editing operation on the control parameter, the control parameter information corresponding to the graphic element is updated.
6. The method according to claim 1, wherein The method further comprises: In response to a user's saving operation, a peristaltic pump control code is generated according to the arrangement sequence of graphic elements in the programming area and the control system parameter information.
7. The method according to claim 1, wherein The graphic element types include one or more of a uniform speed filling step, a uniform acceleration filling step, a uniform deceleration filling step, a step acceleration filling step, a step deceleration filling step, a delay step, a cycle filling step, an input step, an output step and a jump step.
8. A system for setting the control logic of a peristaltic pump, characterized in that: The system comprises: A programming interface display module, configured to display a programming interface of the peristaltic pump control system, wherein the programming interface includes a programming area and a setting area, wherein a plurality of graphic elements are configured in the setting area, and the graphic elements represent peristaltic pump control steps; A display position determination module, configured to determine the type of a selected graphic element and the display position of the selected graphic element in the programming area based on a user's dragging operation on the graphic element in the setting area; A graphic element and parameter display module, configured to display the selected graphic element and control parameter information corresponding to the graphic element type at the display position; The determining, based on the user's dragging operation on the graphic element in the setting area, the graphic element type of the selected graphic element and the display position of the selected graphic element in the programming area specifically includes: Get the start and end positions of the drag operation; Determine the type of the selected element according to the starting position; Determining a display position of the selected graphic element in the programming area according to the end position; Determining the display position of the selected graphic element in the programming area according to the end position specifically includes: Determining the positional relationship between the selected graphic element and other graphic elements according to the relationship between the end position and other graphic elements in the programming area; Determining a display position of the selected graphic element in the programming area according to the positional relationship; The determining, based on the relationship between the end position and other graphic elements in the programming area, the positional relationship between the selected graphic element and other graphic elements specifically includes: Determining whether the end position is located in a blank area of the programming area to obtain a first determination result; If the first judgment result is yes, determining that the position of the selected graphic element is located at the bottom of other graphic elements; If the first judgment result is no, determining whether the end position is located at a corresponding position of the loop primitive, and obtaining a second judgment result; If the second judgment result is yes, it is determined that the position of the selected primitive is located inside the cyclic primitive.
9. A computer-readable medium, characterized in that The computer-readable medium stores computer program code, which, when executed by a processor, implements the setting method described in any one of items 1-7.
Citation Information
Patent Citations
Dyeing process new construction method and device, electronic device, storage medium and management system
CN113434242A
Graphical programming interaction system and interaction method of compilation type PLC
CN113515084A