Flow direction control simulation method and device, electronic equipment and storage medium

By dragging and connecting the conveyor line model on the display interface, placing the sensor model, and establishing material flow relationships, simulation verification of the flow direction control of the conveyor line system is achieved, solving the problems of long physical verification time and high cost, and improving efficiency and ease of use.

CN119596732APending Publication Date: 2025-03-11HANGZHOU HIKROBOT TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510138329.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-07
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

After the delivery line system is deployed in the production workshop of a large factory, the physical conveyor line system will take a long time to verify the flow control direction, which is costly and inefficient.

Method used

Provide a flow direction control simulation method, which is to drag and connect the conveyor line model through the display interface, place the sensor model, and establish the material flow direction relationship to conduct simulation verification.

Benefits of technology

Reduce verification costs and improve verification efficiency. Through visual simulation methods, testers do not need to write underlying logical code, but only need simple interface interaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119596732A_ABST
    Figure CN119596732A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a flow direction control simulation method and device, electronic equipment and a storage medium, and relates to the technical field of automatic simulation, the method comprises the following steps: in response to dragging a first conveying line model on a display interface, if the first conveying line model is connected with a second conveying line model displayed on the display interface, the second conveying line model is displayed on the display interface; generating a conveying line interface between the connected conveying line models, and displaying the generated conveying line interface at the connection position; in response to placing the sensor model on the third conveyor line model, placing the sensor model at an installable position of the third conveyor line model; in response to a connection operation between the sensor model and the conveyor line interface, rendering a connection line and establishing a material flow direction relationship between the two conveyor line models corresponding to the conveyor line interface connected with the connection line; and in response to the simulation instruction, performing flow direction control simulation based on the material flow direction relationship among the conveyor line models displayed on the display interface. In this way, the flow direction control flow of the materials conveyed by the conveying line system can be verified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automated simulation technology, and in particular to a flow control simulation method, device, electronic device and storage medium. Background Art

[0002] In order to improve the level of production automation, some large factories have deployed conveyor line systems in their production workshops. Through the conveyor line system, various materials can be transported to the corresponding locations according to demand, for example, to the operating table, sorting table, etc. To ensure the normal operation of the conveyor line system, it is necessary to verify the flow control process of the conveyor line system transporting materials before the conveyor line system is put into use. However, if the conveyor line system is deployed in the workshop and the physical conveyor line system is used for verification, due to the complex on-site working conditions, it takes a long time to cover a more comprehensive scenario, so the verification cost is high and the verification efficiency is low.

[0003] In view of this, it is necessary to provide a simulation method to verify the flow control process of materials transported by the conveyor line system. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a flow control simulation method, device, electronic device and storage medium to verify the flow control process of materials transported by a conveyor line system. The specific technical solution is as follows:

[0005] In a first aspect of an embodiment of the present application, a flow direction control simulation method is provided, the method comprising:

[0006] In response to dragging a first conveyor line model on a display interface, if the first conveyor line model is connected to a second conveyor line model displayed on the display interface, a conveyor line interface between the first conveyor line model and the second conveyor line model is generated, and the generated conveyor line interface is displayed at a connection position between the first conveyor line model and the second conveyor line model;

[0007] In response to an operation of placing a sensor model on a third conveyor line model, placing the sensor model at an installable position of the third conveyor line model, wherein the third conveyor line model is the first conveyor line model or the second conveyor line model;

[0008] In response to the connection operation between the sensor model and the conveyor line interface, the connection between the sensor model and the conveyor line interface is rendered, and a material flow relationship between two conveyor line models corresponding to the conveyor line interfaces connected by the connection is established;

[0009] In response to the simulation instruction, a flow control simulation is performed based on the material flow relationship between the conveyor line models displayed on the display interface.

[0010] In a possible implementation manner, the first conveyor line model and the second conveyor line model are connected in the following manner:

[0011] In response to releasing the dragged first conveyor line model, determining a second conveyor line model from other conveyor line models other than the first conveyor line model displayed on the display interface based on a positional relationship between the conveyor line model and the first conveyor line model;

[0012] The first conveying line model is controlled to be adsorbed and connected to the second conveying line model.

[0013] In a possible implementation, the determining of the second conveyor line model from other conveyor line models other than the first conveyor line model displayed on the display interface based on the positional relationship between the conveyor line model and the first conveyor line model includes:

[0014] From other conveyor line models other than the first conveyor line model displayed on the display interface, a conveyor line model that meets the following conditions is determined as the second conveyor line model:

[0015] The distance between the first conveyor line model and the first conveyor line model is less than a first distance threshold;

[0016] The material conveying direction from the other conveying line models to the material conveying direction of the first conveying line model is a passable direction.

[0017] In a possible implementation, in response to the operation of placing the sensor model on the third conveyor line model, placing the sensor model at an installable position of the third conveyor line model includes:

[0018] Displaying the sensor model along the dragging trajectory of the sensor model on the display interface;

[0019] In response to releasing the dragged sensor model, determining a third conveyor line model from conveyor line models displayed on the display interface that satisfy a preset positional relationship with the sensor model;

[0020] The sensor model is controlled to be adsorbed to an installable position of the third conveyor line model.

[0021] In a possible implementation manner, after controlling the sensor model to be adsorbed to an installable position of the third conveyor line model, the method further includes:

[0022] In response to dragging the sensor model along the third conveyor line model, adjusting a position of the sensor model on the third conveyor line model.

[0023] In a possible implementation, in response to the simulation instruction, based on the material flow relationship between the conveyor line models displayed on the display interface, flow control simulation is performed, including:

[0024] In response to the simulation instruction, controlling the simulated material to move along the conveyor line model displayed on the display interface;

[0025] In response to the simulated material moving into the detection range of the sensor model, acquiring identification features of the simulated material from properties of the simulated material;

[0026] Flow control is performed on the simulated material according to the identification features, the flow control strategy configured in the attributes of the sensor model, and the material flow relationship between the conveyor line models displayed on the display interface.

[0027] In a possible implementation, the flow control strategy includes a material identification sub-strategy and a flow distribution sub-strategy;

[0028] The flow control for the simulated material is performed according to the identification feature, the flow control strategy configured in the attribute of the sensor model, and the material flow relationship between the conveyor line models displayed on the display interface, including:

[0029] Determining whether the identification feature matches the material identification sub-strategy;

[0030] If there is a match, based on the diversion allocation sub-strategy and the material flow relationship between the conveyor line models displayed on the display interface, a target conveyor line interface is selected from the conveyor line interfaces corresponding to the third conveyor line model;

[0031] The simulated material is controlled to move toward a fourth conveyor line model, wherein the fourth conveyor line model is: a conveyor line model corresponding to the target conveyor line interface except the third conveyor line model.

[0032] In a second aspect of an embodiment of the present application, a flow direction control simulation device is provided, the device comprising:

[0033] A first response module, configured to generate a conveyor line interface between the first conveyor line model and the second conveyor line model in response to dragging the first conveyor line model on the display interface, if the first conveyor line model is connected to the second conveyor line model displayed on the display interface, and display the generated conveyor line interface at the connection position between the first conveyor line model and the second conveyor line model;

[0034] a second response module, configured to place the sensor model at an installable position of the third conveyor line model in response to an operation of placing the sensor model on the third conveyor line model, wherein the third conveyor line model is the first conveyor line model or the second conveyor line model;

[0035] A third response module, for responding to the connection operation between the sensor model and the conveyor line interface, rendering the connection between the sensor model and the first conveyor line interface, and establishing a material flow relationship between two conveyor line models corresponding to the conveyor line interfaces connected by the connection;

[0036] The fourth response module is used to respond to the simulation instruction and perform flow control simulation based on the material flow relationship between the conveyor line models displayed on the display interface.

[0037] In a possible implementation, the first conveyor line model and the second conveyor line model are connected in the following manner: in response to releasing the dragged first conveyor line model, based on the positional relationship between the conveyor line model and the first conveyor line model, the second conveyor line model is determined from other conveyor line models other than the first conveyor line model displayed on the display interface; and the first conveyor line model is controlled to be adsorbed and connected to the second conveyor line model.

[0038] In a possible implementation, the second conveyor line model is determined from other conveyor line models other than the first conveyor line model displayed on the display interface based on the positional relationship between the conveyor line model and the first conveyor line model, including: determining a conveyor line model that meets the following conditions from other conveyor line models other than the first conveyor line model displayed on the display interface as the second conveyor line model: the distance between the conveyor line model and the first conveyor line model is less than a first distance threshold; and the material conveying direction from the other conveyor line models to the material conveying direction of the first conveyor line model is a passable direction.

[0039] In a possible implementation, the second response module is specifically used to: display the sensor model along the dragging trajectory of the sensor model on the display interface; in response to releasing the dragged sensor model, determine a third conveyor line model from conveyor line models displayed on the display interface that satisfy a preset position relationship with the sensor model; and control the sensor model to be adsorbed to an installable position of the third conveyor line model.

[0040] In a possible implementation, the second response module is further used to: after controlling the sensor model to be adsorbed to the installable position of the third conveyor line model, in response to dragging the sensor model along the third conveyor line model, adjust the position of the sensor model on the third conveyor line model.

[0041] In one possible implementation, the fourth response module is specifically used to: in response to a simulation indication, control the simulated material to move along the conveyor line model displayed on the display interface; in response to the simulated material moving to the detection range of the sensor model, obtain an identification feature of the simulated material from the properties of the simulated material; and perform flow control on the simulated material according to the identification feature, the flow control strategy configured in the properties of the sensor model, and the material flow relationship between the conveyor line models displayed on the display interface.

[0042] In a possible implementation, the flow control strategy includes a material identification sub-strategy and a diversion allocation sub-strategy; the fourth response module is specifically used to: determine whether the identification feature matches the material identification sub-strategy; if matched, based on the diversion allocation sub-strategy and the material flow relationship between the conveyor line models displayed on the display interface, select a target conveyor line interface from the conveyor line interfaces corresponding to the third conveyor line model; control the simulated material to move to a fourth conveyor line model, wherein the fourth conveyor line model is: a conveyor line model corresponding to the target conveyor line interface except the third conveyor line model.

[0043] In a third aspect of the embodiments of the present application, an electronic device is provided, including:

[0044] Memory, used to store computer programs;

[0045] The processor is used to implement the flow control simulation method described in any one of the first aspects above when executing the program stored in the memory.

[0046] In a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the flow control simulation method described in any one of the first aspects is implemented.

[0047] In a fifth aspect of the embodiments of the present application, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the flow control simulation method described in any one of the first aspects above.

[0048] Beneficial effects of the embodiments of the present application:

[0049] In the technical solution provided by the embodiment of the present application, the simulation structure of the conveyor line system is displayed through the display interface, and in response to the user dragging the conveyor line model, sensor model and connection operations, the conveyor line interface is generated and displayed, and the connection line between the sensor and the conveyor line interface is rendered and displayed, and the material flow relationship between the conveyor line models corresponding to the conveyor line interface is established. Then, when the simulation instruction is received, the flow direction simulation is performed based on the material flow direction relationship in the simulated conveyor line system displayed in the display interface, so as to realize the simulation verification of the flow direction control process of the conveyor line system conveying materials.

[0050] In addition, the above-mentioned visual simulation method is easy to use and does not require writing underlying logic code. It only requires simple interaction on the display interface, which reduces the ability requirements of testers for simulation verification.

[0051] Of course, implementing any product or method of the present application does not necessarily require achieving all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other embodiments can also be obtained based on these drawings.

[0053] Figure 1 A schematic diagram of a flow chart of a flow direction control simulation method provided in an embodiment of the present application;

[0054] Figure 2 A schematic diagram of a display interface of a conveyor line model provided in an embodiment of the present application;

[0055] Figure 3 A schematic diagram of a transmission line interface provided in an embodiment of the present application;

[0056] Figure 4 A schematic diagram of a scenario for placing a sensor model provided in an embodiment of the present application;

[0057] Figure 5 A schematic diagram of the connection between the sensor model and the transmission line interface provided in the embodiment of the present application;

[0058] Figure 6 A schematic flow chart of a connection method of a first conveyor line model and a second conveyor line model provided in an embodiment of the present application;

[0059] Figure 7 A schematic diagram of the distance between the conveyor line models provided in the embodiment of the present application;

[0060] Figure 8 A schematic diagram of the positional relationship of the conveyor line model after adsorption provided in an embodiment of the present application;

[0061] Fig. 9 A schematic diagram of an example of the adsorption process of a conveyor line model provided in an embodiment of the present application;

[0062] Fig.10 A detailed flow chart of step S102 provided in an embodiment of the present application;

[0063] Fig.11 A schematic diagram of the distance between the conveyor line model and the sensor model provided in an embodiment of the present application;

[0064] Fig.12 A detailed flow chart of step S104 provided in an embodiment of the present application;

[0065] Fig.13 A detailed flow chart of step S1203 provided in an embodiment of the present application;

[0066] Fig.14 A schematic diagram of a composition of a material identification sub-strategy provided in an embodiment of the present application;

[0067] Fig.15 A schematic diagram of a conveyor line system provided in an embodiment of the present application, in which the conveyor line interfaces are assigned numbers and displayed on a display interface;

[0068] Fig.16 A schematic diagram of a structure of a flow direction control simulation device provided in an embodiment of the present application;

[0069] Fig.17 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0070] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field based on the present application belong to the scope of protection of the present application.

[0071] In order to improve the level of production automation, some large factories have deployed conveyor line systems in their production workshops. Through the conveyor line system, various materials can be transported to the corresponding locations according to demand, for example, to the operating table, sorting table, etc. The above materials can be raw materials required in the production process or products produced. To ensure the normal operation of the conveyor line system, it is necessary to verify the flow control process of the materials transported by the conveyor line system before the conveyor line system is put into use. However, if the conveyor line system is deployed in the workshop and the physical conveyor line system is used for verification, due to the complex on-site working conditions, in order to cover a more comprehensive scenario, it is necessary to find specific materials and place these materials on site according to the verification requirements, which takes a long time, resulting in high verification costs and low verification efficiency.

[0072] In view of this, it is necessary to provide a simulation method to verify the flow control process of materials transported by the conveyor line system.

[0073] The present application embodiment provides a flow control simulation method, such as Figure 1 As shown, the method includes the following steps S101-S104.

[0074] For ease of description, the following description will be made using an electronic device as the execution subject, and the electronic device may be a computer, a server, etc.

[0075] Step S101, in response to dragging the first conveyor line model on the display interface, if the first conveyor line model is connected to the second conveyor line model displayed on the display interface, a conveyor line interface between the first conveyor line model and the second conveyor line model is generated, and the generated conveyor line interface is displayed at the connection position between the first conveyor line model and the second conveyor line model.

[0076] The display interface may display at least one conveyor line model, including the placement of these conveyor line models and the flow direction of the conveyed materials. Figure 2 As shown, Figure 2 The placement of the five conveyor line models and the direction of the conveyed materials are shown in Figure 1. For example, the top conveyor line model 1 is placed horizontally and conveys materials from left to right, and the second conveyor line model 3 from the left is placed vertically and conveys materials from top to bottom.

[0077] The connection between the first conveyor line model and the second conveyor line model means that the first conveyor line model intersects with the second conveyor line model, and there is a passable direction between the first conveyor line model and the second conveyor line model, that is, the material can be transported from the first conveyor line model to the second conveyor line model, or from the second conveyor line model to the first conveyor line model. Figure 2In the figure, the horizontally placed conveyor line model 1 intersects with the vertically placed conveyor line model 3, and the material can be transported from the conveyor line model 1 to the conveyor line model 3, that is, there is a passable direction between the conveyor line model 1 and the conveyor line model 3, that is, the conveyor line model 1 is connected to the conveyor line model 3.

[0078] The conveyor line interface is an interface model with attribute information. The attribute information of the conveyor line interface may include information such as the material flow direction and position relationship between the first conveyor line model and the second conveyor line model.

[0079] The user can drag a conveyor line model, i.e., the first conveyor line model, from the toolbar displayed on the display interface, and release it when the first conveyor line model is connected to other conveyor line models on the display interface. The above user can be a tester who verifies the flow control process of the conveyor line system. The display interface can display a 3D entity of the conveyor line model. For the convenience of explanation, Figure 2 A plan view is used for description.

[0080] The electronic device can use the conveyor line model connected to the first conveyor line model as the second conveyor line model, generate a conveyor line interface between the first conveyor line model and the second conveyor line model, and display the generated conveyor line interface in the form of a rectangular block at the connection position between the first conveyor line model and the second conveyor line model.

[0081] For example, Figure 3 As shown, the user drags the conveyor line model 3 to connect with the conveyor line model 1 and then releases it. The electronic device generates a conveyor line interface between the conveyor line model 1 and the conveyor line model 3, and displays the conveyor line interface in the form of a rectangular block at the connection position between the conveyor line model 1 and the conveyor line model 3.

[0082] Step S102, in response to the operation of placing the sensor model on the third conveyor line model, placing the sensor model at an installable position of the third conveyor line model.

[0083] The third conveyor line model is the first conveyor line model or the second conveyor line model.

[0084] The user can drag the sensor model on the display interface to the top of the third conveyor line model and release it to place the sensor model at the corresponding position. Specifically, the user can drag a new sensor model from the toolbar to place it, or drag a sensor model that is already displayed on the display interface to place it.

[0085] The installable position of the conveyor line model may be the edge of the conveyor line model. When the electronic device detects that the user places the sensor model on the third conveyor line model, if the two brackets of the sensor model are not close to the edge of the third conveyor line model, the electronic device may adjust the position where the sensor model is placed so that the two brackets of the sensor model are close to the edge of the third conveyor line model. Figure 4 As shown in the above scenario, the user places the sensor model on the conveyor line model 1, but the two brackets of the sensor model are one outside the conveyor line model 1 and one in the middle of the conveyor line model 1, neither of which is close to the edge of the conveyor line model 1. The electronic device can adjust the position of the sensor model so that the two brackets of the sensor model are close to the edge of the conveyor line model 1. Figure 4 As shown in the following scenario.

[0086] Step S103, in response to the connection operation between the sensor model and the conveyor line interface, the connection between the sensor model and the conveyor line interface is rendered, and a material flow relationship between two conveyor line models corresponding to the conveyor line interfaces connected by the connection is established.

[0087] The user can perform a connection operation between the sensor model and the conveyor line interface displayed on the display interface. After the electronic device detects the user's connection operation of connecting the sensor model and the conveyor line interface, it renders the connection between the sensor model and the conveyor line interface according to the operation, so as to display it on the display interface. The electronic device also establishes a material flow relationship between the two conveyor line models corresponding to the conveyor line interface connected by the user's connection operation.

[0088] like Figure 5 As shown, the user drags the cursor on the display interface to connect from the sensor model to the conveyor line interface 1, and the electronic device renders the connection according to the user's connection operation, thereby displaying the connection between the sensor model and the conveyor line interface 1 on the display interface. The electronic device also establishes a material flow relationship between the conveyor line model 1 and the conveyor line model 3 corresponding to the conveyor line interface 1, that is, from the conveyor line model 1 to the conveyor line model 3.

[0089] Step S104, in response to the simulation instruction, performing flow control simulation based on the material flow relationship between the conveyor line models displayed on the display interface.

[0090] The above-mentioned simulation instruction may be sent by a user to the electronic device, or may be a simulation instruction generated according to a preset routine. The simulation instruction may include information such as the properties of the simulated material and the initial position of the simulated material entering the conveyor line system.

[0091] After receiving the simulation instruction, the electronic device can use the simulated conveyor line system constructed in the above steps S101 to S103 to control the flow direction of the simulated material in the simulated conveyor line system based on the material flow relationship between the conveyor line models displayed on the display interface.

[0092] In the technical solution provided by the embodiment of the present application, the simulation structure of the conveyor line system is visually displayed through the display interface, and in response to the user dragging the conveyor line model, sensor model and connection operations, the conveyor line interface is generated and displayed, and the connection line between the sensor and the conveyor line interface is rendered and displayed, and the material flow relationship between the conveyor line models corresponding to the conveyor line interface is established. Then, when receiving the simulation instruction, the electronic device can perform flow simulation based on the material flow relationship in the simulated conveyor line system displayed in the display interface, and realize the simulation verification of the flow control process of the conveyor line system conveying materials.

[0093] In addition, the above-mentioned visual simulation method is easy to use and does not require writing underlying logic code. It only requires simple interaction on the display interface, which reduces the ability requirements of testers for simulation verification.

[0094] If the user releases the dragged first conveyor line model, and the first conveyor line model is not connected to any conveyor line model displayed on the display interface, the electronic device can determine the second conveyor line model and adjust the position of the first conveyor line model so that the first conveyor line model is connected to the second conveyor line model. For this, the embodiment of the present application also provides a method for connecting the first conveyor line model and the second conveyor line model, such as Figure 6 As shown, the first conveyor line model and the second conveyor line model may be connected in the manner provided in steps S601-S602.

[0095] Step S601, in response to releasing the dragged first conveyor line model, based on the positional relationship between the conveyor line model and the first conveyor line model, determine a second conveyor line model from other conveyor line models other than the first conveyor line model displayed on the display interface.

[0096] The positional relationship between the conveyor line model and the first conveyor line model may include: the relationship between the placement direction of the conveyor line model and the placement direction of the first conveyor line model, and the distance between the conveyor line model and the first conveyor line model. The placement direction of the conveyor line model refers to the placement direction of the conveyor line model on the display interface, and specifically, it can be represented by the direction in which the conveyor line model can convey materials.

[0097] If the conveyor line models do not intersect, the distance between the conveyor line models is the distance between the closest boundary lines of the two conveyor line models. Figure 7As shown, the distance between the closest boundary lines of the conveyor line model 3 and the conveyor line model 1 is d1, that is, the distance between the conveyor line model 3 and the conveyor line model 1 is d1.

[0098] If the conveyor line models intersect, the distance between the conveyor line models can be considered as 0. Figure 7 If the conveyor line model 2 in the figure intersects with the conveyor line model 1, the electronic device can directly regard the distance between the conveyor line model 2 and the conveyor line model 1 as 0.

[0099] The electronic device can also calculate the angle between the placement direction of the conveyor line model and the placement direction of the first conveyor line model as the relationship between the placement direction of the conveyor line model and the placement direction of the first conveyor line model. When the angle between the two conveyor line models is less than the preset angle, it can be considered that the two conveyor line models are placed in parallel; when the angle between the two conveyor line models is greater than the preset angle, it can be considered that the two conveyor line models are not placed in parallel. The above preset angle can be 5 degrees, 10 degrees, etc., and can be set according to actual conditions.

[0100] When the electronic device detects that the user releases the dragged first conveyor line model, it can calculate the positional relationship between other conveyor line models other than the first conveyor line model displayed on the display interface and the first conveyor line model, and determine the second conveyor line model based on the positional relationship between the first conveyor line model and the first conveyor line model. The specific determination will be described later and will not be described here for the time being.

[0101] Step S602, controlling the first conveying line model to be adsorbed and connected to the second conveying line model.

[0102] After determining the second conveyor line model, the electronic device can adjust the position of the first conveyor line model and control the first conveyor line model to be adsorbed to the second conveyor line model. Figure 8 As shown, the second conveyor line model is conveyor line model 1. Figure 7 The distance between the conveyor line model 3 and the conveyor line model 1 is d1. The electronic device controls the conveyor line model 3 to move upward to intersect with the conveyor line model 1. That is, the electronic device controls the conveyor line model 3 to be adsorbed and connected to the conveyor line model 1. Figure 8 The scene shown.

[0103] In this way, when the user places the conveyor line model on the display interface, there is no need to accurately place the first conveyor line model at the position connected to the second conveyor line model. The electronic device can adsorb the first conveyor line model to the second conveyor line model, thereby reducing the complexity of the simulation method and improving the ease of use of the above simulation method.

[0104] The following describes a method for determining the second conveyor line model based on the positional relationship with the first conveyor line model.

[0105] In a possible implementation, an embodiment of the present application provides a method for determining a second conveyor line model as follows, where a conveyor line model that meets the following conditions is determined from other conveyor line models other than the first conveyor line model displayed on a display interface as the second conveyor line model: the distance between the model and the first conveyor line model is less than a first distance threshold; and the material conveying direction from the other conveyor line models to the material conveying direction of the first conveyor line model is a passable direction.

[0106] The first distance threshold is a preset distance value, which can be set according to actual needs and is not limited thereto.

[0107] The electronic device can obtain the position information of the first conveyor line model and other conveyor line models other than the first conveyor line model displayed on the display interface, thereby calculating the distance between the other conveyor line models other than the first conveyor line model displayed on the display interface and the first conveyor model, and the angle between the placement direction of the other conveyor line models other than the first conveyor line model displayed on the display interface and the placement direction of the first conveyor line model.

[0108] The electronic device can determine whether the material conveying direction from other conveying line models to the material conveying direction of the first conveying line model after adsorption is a passable direction based on the angle between the placement direction of the conveying line model and the placement direction of the first conveying line model. Specifically, when the angle between the placement direction of the conveying line model and the placement direction of the first conveying line model is less than a preset angle, it can be considered that the two conveying line models are placed in parallel, and the material conveying directions of the two conveying line models do not constitute a passable direction. When the angle between the placement direction of the conveying line model and the placement direction of the first conveying line model is greater than a preset angle, it can be considered that the two conveying line models are not placed in parallel, and the material conveying directions of the two conveying line models after adsorption can constitute a passable direction.

[0109] Furthermore, the electronic device can determine, based on the above-calculated distance and the judgment of the passable direction, a conveyor line model whose distance from the first conveyor line model is less than a first distance threshold and whose material conveying direction to the first conveyor line model is a passable direction, from other conveyor line models other than the first conveyor line model displayed on the display interface, as the second conveyor line model.

[0110] It should be noted that the second conveyor line model determined by the electronic device needs to simultaneously meet the two conditions of minimum distance and that the material conveying direction to the material conveying direction of the first conveyor line model is a passable direction. If only the distance is less than the first distance threshold, such as Figure 7The distance between the conveyor line model 2 and the conveyor line model 3 is d2, and the distance between the conveyor line model 1 and the conveyor line model 3 is d1. Both d1 and d2 are less than the first distance threshold, but the conveyor line model 2 and the conveyor line model 3 cannot form a passable direction. The electronic device will determine that the conveyor line model 1 that can form a passable direction with the conveyor line model 3 is the second conveyor line model.

[0111] In a possible implementation, an embodiment of the present application also provides a method for determining a second conveyor line model as follows, where a conveyor line model that meets the following conditions is determined from other conveyor line models other than the first conveyor line model displayed on the display interface as the second conveyor line model: intersecting with the first conveyor line model; and the material conveying direction from the other conveyor line models to the material conveying direction of the first conveyor line model is a passable direction.

[0112] After the electronic device obtains the position information of the first conveyor line model and other conveyor line models other than the first conveyor line model displayed on the display interface, it can first determine whether there is a conveyor line model that intersects with the first conveyor line model based on the above position information. Specifically, the electronic device can determine whether the conveyor line model overlaps with the first conveyor line model based on the above position information, and if there is an overlap, it means that the two conveyor line models intersect.

[0113] If there is a conveyor line model intersecting with the first conveyor line model, the electronic device can calculate the angle between the placement direction of the conveyor line model intersecting with the first conveyor line model and the placement direction of the first conveyor line model.

[0114] The electronic device can further determine whether the material conveying direction from the conveyor line model to the first conveyor line model after adsorption is a passable direction based on the angle. Specifically, the method of determining the passable direction based on the angle in the previous embodiment can be referred to, which will not be repeated here.

[0115] Furthermore, the electronic device can determine, based on the judgment of the intersection of the above-mentioned conveyor line models and the judgment of the passable direction, a conveyor line model that intersects with the first conveyor line model and whose material conveying direction to the first conveyor line model is a passable direction from other conveyor line models other than the first conveyor line model displayed on the display interface, as the second conveyor line model.

[0116] In addition, the second conveyor line model can also be multiple. Fig. 9 As shown, Fig. 9In the scene on the left, conveyor line model 1 and conveyor line model 4 are placed in parallel, and the user releases the dragged conveyor line model 3, which is the first conveyor line model, at the position shown in the figure. The distance between conveyor line model 3 and conveyor line model 1 is d3, and the distance between conveyor line model 3 and conveyor line model 4 is 0. Both d3 and 0 are less than the first distance threshold, and conveyor line model 3 and conveyor line model 1 and conveyor line model 4 can form a passable direction. The electronic device can determine that conveyor line model 1 and conveyor line model 4 are the second conveyor line models, and can subsequently adsorb the conveyor line models to conveyor line model 1 and conveyor line model 4 at the same time, such as Fig. 9 The scene on the right.

[0117] In a possible implementation, when determining multiple second conveyor line models, the second conveyor line model can be determined by combining the above two determination methods. That is, the method of determining the second conveyor line model is based on the calculated distance and the judgment of the passable direction; and the method of determining the second conveyor line model is based on the judgment of the intersection of the conveyor lines and the judgment of the passable direction.

[0118] The electronic device can first determine whether there is a conveyor line model that intersects with the first conveyor line model, and then determine the second conveyor line model according to the above two determination methods. For the conveyor line model that intersects with the first conveyor line model, the second conveyor line model is determined based on the judgment of the intersection of the conveyor lines and the judgment of the passable direction; for the conveyor line model that does not intersect with the first conveyor line model, the second conveyor line model is determined based on the calculated distance and the judgment of the passable direction.

[0119] Still Fig. 9 As shown, the electronic device determines that the conveyor line model 4 intersects with the conveyor line model 3, and judges that the conveyor line model 4 and the conveyor line model 3 constitute a passable direction based on the angle between the conveyor line model 4 and the conveyor line model 3, and then the electronic device can determine that the conveyor line model 4 is one of the second conveyor line models.

[0120] For other conveyor line models other than conveyor line model 3 and conveyor line model 4 displayed on the display interface, such as conveyor line model 1, the electronic device can calculate that the distance d3 between conveyor line model 1 and conveyor line model 3 is less than the first preset threshold, and the angle between conveyor line model 1 and conveyor line model 3 determines that a passable direction is formed between conveyor line model 1 and conveyor line model 3, and then the electronic device can also determine that conveyor line model 1 is one of the second conveyor line models.

[0121] Thus, the electronic device can determine two second conveyor line models, conveyor line model 1 and conveyor line model 4.

[0122] In this way, the electronic device can more accurately determine the second conveyor line model that needs to be adsorbed by the first conveyor line model without the need for repeated adjustments by the user, thereby further reducing the complexity of the simulation method and further improving the ease of use of the above-mentioned simulation method.

[0123] If the sensor model does not intersect with any of the conveyor line models displayed on the display interface when the user releases the dragged sensor model, the electronic device can determine the third conveyor line model and adjust the position of the sensor model so that the sensor model is adsorbed to the installable position of the third conveyor line model. For this, the embodiment of the present application provides the following implementation method of step S102, such as Fig.10 As shown, the method includes the following steps S1001-S1003.

[0124] Step S1001 , displaying the sensor model along the dragging track of the sensor model on the display interface.

[0125] The electronic device can detect the dragging track of the sensor model dragged by the user on the display interface. When the user drags the sensor model to any position, the electronic device can display the sensor model at that position.

[0126] Step S1002, in response to releasing the dragged sensor model, determining a third conveyor line model from conveyor line models displayed on the display interface that satisfy a preset positional relationship with the sensor model.

[0127] In a possible implementation manner, the preset position relationship may be: the conveyor line model intersects with the sensor model.

[0128] After the electronic device detects that the user releases the dragged sensor model, the position information of the sensor model and each conveyor line model displayed on the display interface can be obtained. The electronic device can determine whether each conveyor line model overlaps with the sensor model based on the acquired position information. If so, the electronic device can determine that the conveyor line model intersects with the sensor model, that is, the preset position relationship is satisfied, and then the electronic device can determine that the conveyor line model is the third conveyor line model.

[0129] In a possible implementation, the preset position relationship may be: the distance between the conveyor line model and the sensor model is less than a second distance threshold. The second distance threshold is a preset distance value, which may be set according to actual needs and is not limited thereto.

[0130] If the sensor model intersects with the conveyor line model, the distance between the sensor model and the conveyor line model can be regarded as 0, and the electronic device can directly use the conveyor line model intersecting with the sensor as the third conveyor line model.

[0131] If the sensor model and the conveyor line model do not intersect, the distance between the sensor model and the conveyor line model is the distance between the closest boundary points of the sensor model and the conveyor line model. Fig.11 As shown, the distance between the nearest boundary points between the sensor model and the conveyor line model 1 is d4, and the distance between the sensor model and the conveyor line model 1 is d4.

[0132] After the electronic device detects that the user releases the dragged sensor model, it obtains the position information of each conveyor line model and the sensor model displayed on the display interface, and calculates the distance between each conveyor line model displayed on the display interface and the sensor model based on the obtained position information. Then the electronic device determines the conveyor line model with the smallest distance from the sensor model as the third conveyor line model.

[0133] Step S1003, controlling the sensor model to be adsorbed to an installable position of the third conveyor line model.

[0134] After determining the third conveyor line model, the electronic device can adjust the position of the sensor model and control the sensor model to be adsorbed to the installable position of the third conveyor line model. Fig.11 As shown, the third conveyor line model is the conveyor line model 1. For the sensor model whose distance from the conveyor line model 1 is d4, the electronic device can control the sensor model to move downward to the edge where the two brackets are connected to the conveyor line model 1.

[0135] In this way, when the user places the sensor model on the display interface, there is no need to accurately place the sensor model at the installable position of the third conveyor line model. The electronic device can adsorb the sensor model to the third conveyor line model, further reducing the complexity of the simulation method and further improving the ease of use of the above simulation method.

[0136] After the sensor model is adsorbed and placed at the installable position of the third conveyor line model in the above manner, the user can also drag and adjust the position of the sensor on the third conveyor line model, and the electronic device responds to the user's operation of adjusting the sensor position in the following manner: in response to dragging the sensor model along the third conveyor line model, the position of the sensor model on the third conveyor line model is adjusted.

[0137] After the electronic device detects the user's operation of dragging the sensor model, it adjusts the position of the sensor model on the third conveyor line model along the dragging trajectory of the user and keeps the two brackets of the sensor model adsorbed on the installable position of the third conveyor line model.

[0138] In this way, it can be avoided that the sensor model is shaken during operation so as to leave the installable position of the third conveyor line model, and the user can more conveniently adjust the sensor model to the desired position.

[0139] The above operations such as dragging the first conveyor line model and the sensor model on the display interface can be performed multiple times and can be performed interspersed. Users can add multiple conveyor line models and multiple sensor models on the display interface as needed to build a simulated conveyor line system, and there is no limitation on this. After completing the construction of the simulated conveyor line system according to the above embodiment, Fig.12 As shown, the electronic device may perform control flow simulation in the following manner, that is, the above step S104 may include the following steps S1201-S1203.

[0140] Step S1201, in response to the simulation instruction, controlling the simulated material to move along the conveyor line model displayed on the display interface.

[0141] After receiving the simulation instruction, the electronic device places the simulated material at the specified initial position according to the properties of the simulated material carried in the simulation instruction, the initial position of the simulated material entering the conveyor line system and other information, and then controls the simulated material to move along the conveyor line model displayed on the display interface.

[0142] Step S1202 , in response to the simulated material moving into the detection range of the sensor model, obtaining identification features of the simulated material from the properties of the simulated material.

[0143] The electronic device can compare the position of the simulated material with the detection range of each sensor model in real time to determine whether the simulated material has moved into the detection range of the sensor model. If the electronic device determines that the simulated material has moved into the detection range of a certain sensor model, the identification feature of the simulated material is obtained from the properties of the simulated material.

[0144] The identification features of the simulated material can be stored in a designated server, and the electronic device can request the attribute information of the simulated material from the designated server to obtain the identification features of the simulated material. The identification features of the simulated material can also be carried in the simulation indication, and the electronic device can directly parse the identification features of the simulated material from the simulation indication.

[0145] Step S1203, performing flow control on the simulated material according to the identification features, the flow control strategy configured in the attributes of the sensor model, and the material flow relationship between the conveyor line models displayed on the display interface.

[0146] The flow direction control strategy can be a strategy for determining which conveyor line interface to flow to based on the identification features. The electronic device can combine the identification features, the flow direction control strategy configured in the properties of the sensor model, and the material flow relationship between the conveyor line models displayed on the display interface to determine which conveyor line interface to convey the simulated material to, and control the simulated material to move to the conveyor line interface to achieve flow direction control.

[0147] In this way, when receiving the simulation instruction, the electronic device can perform flow simulation based on the material flow relationship in the simulated conveyor line system displayed in the display interface, the identification characteristics of the simulated material, and the flow control strategy configured in the properties of the sensor model. Since the properties of the simulated material can be modified, that is, the identification characteristics can be modified, more verification scenarios can be covered by simply modifying the property information of the simulated material, thereby improving the verification efficiency of the flow control process simulation verification of the conveyor line system conveying materials.

[0148] In a possible implementation, the flow control strategy may include a material identification sub-strategy and a flow distribution sub-strategy.

[0149] The above step S1203 can also be implemented as follows: Fig.13 As shown, the above step S1203 includes the following steps S1301-S1303.

[0150] Step S1301, determine whether the identification feature matches the material identification sub-strategy.

[0151] Electronic devices can be used as follows Fig.14 The material identification sub-strategy shown determines the identification features of the simulated material to determine whether the simulated material needs to be diverted. Fig.14 Two condition groups included in a material identification sub-strategy are shown. The upper condition group targets the entity attributes, color, entity label, name and other information of the simulated material; the lower condition group targets the entity type, entity label, name and other information of the simulated material.

[0152] The electronic device can sequentially determine whether the identification characteristics of the simulated material match the condition group included in the material identification sub-strategy. Fig.14 For the above condition groups, the electronic device determines whether the entity attributes, color, entity label, name and other information of the simulated material match the condition group. If they match, the subsequent step S1302 is executed. If they do not match, the next condition group is determined. If all condition groups are determined to be unmatched, the simulated material is controlled to continue to be transported on the original conveyor line.

[0153] Step S1302: Based on the diversion allocation sub-strategy and the material flow relationship between the conveyor line models displayed on the display interface, a target conveyor line interface is selected from the conveyor line interfaces corresponding to the third conveyor line model.

[0154] The traffic distribution sub-strategies may include: random available distribution strategy, cyclic available distribution strategy, designated route distribution strategy, and custom logic distribution strategy. To facilitate distribution, the electronic device may number the connections between the sensor model and the interface and display them on the display interface. Fig.15The diagram shown is a schematic diagram of a conveyor line system displayed on a display interface after assigning numbers to the conveyor line interfaces. The electronic device assigns unique numbers 1, 2, and 4 to each connection and displays them on the display interface. For the third conveyor line model itself, in order to facilitate distinction, the electronic device can also generate a conveyor line interface at the diversion position, and generate a connection from the sensor model to the conveyor line interface, and then assign a unique number to the connection, such as Fig.15 The rightmost rectangular box represents the line connecting the conveyor line interface and the sensor model, which is numbered 3.

[0155] For the simulated material that matches the material identification sub-strategy, the electronic device further selects the target conveyor line interface from the conveyor line interfaces corresponding to the third conveyor line model based on the diversion allocation sub-strategy and the material flow relationship between the conveyor line models displayed on the display interface. Fig.15 Select the target conveyor line interface from the conveyor line interfaces 1, 2, and 4 shown.

[0156] Step S1303, controlling the simulated material to move toward the fourth conveyor line model.

[0157] The fourth conveyor line model is: a conveyor line model corresponding to the target conveyor line interface except the third conveyor line model.

[0158] After determining the fourth conveyor line model, the electronic device can control the simulated material to move toward the fourth conveyor line model. Fig.15 As shown, the target conveyor line interface is conveyor line interface 1, the corresponding conveyor line model includes conveyor line model 1 and conveyor line model 3, conveyor line model 1 is the third conveyor line model, and the conveyor line model is the fourth conveyor line model. The electronic device controls the simulated material to move to conveyor line model 3.

[0159] In this way, the flow direction control is carried out through two sub-strategies, namely the material identification sub-strategy and the diversion allocation sub-strategy, which decouples material identification and diversion, increases the flexibility of the flow direction control strategy, and provides a more flexible flow direction control strategy.

[0160] Corresponding to the above-mentioned flow direction control simulation method, the embodiment of the present application also provides a flow direction control simulation device, such as Fig.16 As shown, the device comprises:

[0161] A first response module 1601 is used for generating a conveyor line interface between the first conveyor line model and the second conveyor line model in response to dragging the first conveyor line model on the display interface, and displaying the generated conveyor line interface at the connection position between the first conveyor line model and the second conveyor line model if the first conveyor line model is connected to the second conveyor line model displayed on the display interface;

[0162] A second response module 1602 is used to place the sensor model at an installable position of the third conveyor line model in response to an operation of placing the sensor model on the third conveyor line model, wherein the third conveyor line model is the first conveyor line model or the second conveyor line model;

[0163] The third response module 1603 is used to respond to the connection operation between the sensor model and the conveyor line interface, render the connection between the sensor model and the first conveyor line interface, and establish a material flow relationship between the two conveyor line models corresponding to the conveyor line interfaces connected by the connection;

[0164] The fourth response module 1604 is used to respond to the simulation instruction and perform flow control simulation based on the material flow relationship between the conveyor line models displayed on the display interface.

[0165] In the technical solution provided by the embodiment of the present application, the simulation structure of the conveyor line system is visually displayed through the display interface, and in response to the user dragging the conveyor line model, sensor model and connection operations, the conveyor line interface is generated and displayed, and the connection line between the sensor and the conveyor line interface is rendered and displayed, and the material flow relationship between the conveyor line models corresponding to the conveyor line interface is established. Then, when receiving the simulation instruction, the electronic device can perform flow simulation based on the material flow relationship in the simulated conveyor line system displayed in the display interface, and realize the simulation verification of the flow control process of the conveyor line system conveying materials.

[0166] In addition, the above-mentioned visual simulation method is easy to use and does not require writing underlying logic code. It only requires simple interaction on the display interface, which reduces the ability requirements of testers for simulation verification.

[0167] In a possible implementation, the first conveyor line model and the second conveyor line model may be connected in the following manner: in response to releasing the dragged first conveyor line model, based on the positional relationship between the conveyor line model and the first conveyor line model, the second conveyor line model is determined from other conveyor line models other than the first conveyor line model displayed on the display interface; and the first conveyor line model is controlled to be adsorbed and connected to the second conveyor line model.

[0168] In a possible implementation, based on the positional relationship between the conveyor line model and the first conveyor line model, determining the second conveyor line model from other conveyor line models other than the first conveyor line model displayed on the display interface may include: determining a conveyor line model that meets the following conditions from other conveyor line models other than the first conveyor line model displayed on the display interface as the second conveyor line model: the distance between the conveyor line model and the first conveyor line model is less than a first distance threshold; the material conveying direction from the other conveyor line models to the material conveying direction of the first conveyor line model is a passable direction.

[0169] In a possible implementation, the second response module 1602 can be specifically used to: display the sensor model along the dragging trajectory of the sensor model on the display interface; in response to releasing the dragged sensor model, determine a third conveyor line model from the conveyor line models displayed on the display interface that satisfy a preset position relationship with the sensor model; and control the sensor model to be adsorbed to an installable position of the third conveyor line model.

[0170] In a possible implementation, the second response module 1602 may also be used to: after controlling the sensor model to be adsorbed to an installable position of the third conveyor line model, in response to dragging the sensor model along the third conveyor line model, adjust the position of the sensor model on the third conveyor line model.

[0171] In one possible implementation, the fourth response module 1604 can be specifically used to: in response to a simulation indication, control the movement of the simulated material along the conveyor line model displayed on the display interface; in response to the simulated material moving to the detection range of the sensor model, obtain the identification characteristics of the simulated material from the properties of the simulated material; and perform flow control on the simulated material according to the identification characteristics, the flow control strategy configured in the properties of the sensor model, and the material flow relationship between the conveyor line models displayed on the display interface.

[0172] In one possible implementation, the flow control strategy may include a material identification sub-strategy and a diversion allocation sub-strategy; the fourth response module 1604 may be specifically used to: determine whether the identification feature matches the material identification sub-strategy; if matched, based on the diversion allocation sub-strategy and the material flow relationship between the conveyor line models displayed on the display interface, select the target conveyor line interface from the conveyor line interfaces corresponding to the third conveyor line model; control the simulated material to move to the fourth conveyor line model, wherein the fourth conveyor line model is: the conveyor line model corresponding to the target conveyor line interface except the third conveyor line model.

[0173] The present application also provides an electronic device, such as Fig.17 As shown, including:

[0174] Memory 1701, used for storing computer programs;

[0175] The processor 1702 is used to implement any of the above-mentioned flow control simulation methods when executing the program stored in the memory 1701.

[0176] In addition, the electronic device may further include a communication bus and / or a communication interface, and the processor 1702, the communication interface, and the memory 1701 communicate with each other via the communication bus.

[0177] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0178] The communication interface is used for communication between the above electronic device and other devices.

[0179] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0180] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0181] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned flow control simulation methods are implemented.

[0182] In another embodiment provided in the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any flow control simulation method in the above embodiments.

[0183] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a solid-state hard disk (SSD), etc.

[0184] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0185] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, electronic device, computer-readable storage medium, and computer program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0186] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims

1. A flow direction control simulation method, characterized in that: The method comprises: In response to dragging a first conveyor line model on a display interface, if the first conveyor line model is connected to a second conveyor line model displayed on the display interface, a conveyor line interface between the first conveyor line model and the second conveyor line model is generated, and the generated conveyor line interface is displayed at a connection position between the first conveyor line model and the second conveyor line model; In response to an operation of placing a sensor model on a third conveyor line model, placing the sensor model at an installable position of the third conveyor line model, wherein the third conveyor line model is the first conveyor line model or the second conveyor line model; In response to the connection operation between the sensor model and the conveyor line interface, the connection between the sensor model and the conveyor line interface is rendered, and a material flow relationship between two conveyor line models corresponding to the conveyor line interfaces connected by the connection is established; In response to the simulation instruction, a flow control simulation is performed based on the material flow relationship between the conveyor line models displayed on the display interface.

2. The method according to claim 1, characterized in that The first conveyor line model and the second conveyor line model are connected in the following manner: In response to releasing the dragged first conveyor line model, determining a second conveyor line model from other conveyor line models other than the first conveyor line model displayed on the display interface based on a positional relationship between the conveyor line model and the first conveyor line model; The first conveying line model is controlled to be adsorbed and connected to the second conveying line model.

3. The method according to claim 2, characterized in that The determining, based on the positional relationship between the conveyor line model and the first conveyor line model, from other conveyor line models other than the first conveyor line model displayed on the display interface, a second conveyor line model comprises: From other conveyor line models other than the first conveyor line model displayed on the display interface, a conveyor line model that meets the following conditions is determined as the second conveyor line model: The distance between the first conveyor line model and the first conveyor line model is less than a first distance threshold; The material conveying direction from the other conveying line models to the material conveying direction of the first conveying line model is a passable direction.

4. The method according to claim 1, characterized in that: In response to the operation of placing the sensor model on the third conveyor line model, placing the sensor model at an installable position of the third conveyor line model comprises: Displaying the sensor model along the dragging trajectory of the sensor model on the display interface; In response to releasing the dragged sensor model, determining a third conveyor line model from conveyor line models displayed on the display interface that satisfy a preset positional relationship with the sensor model; The sensor model is controlled to be adsorbed to an installable position of the third conveyor line model.

5. The method according to claim 4, characterized in that After controlling the sensor model to be adsorbed to the installable position of the third conveyor line model, the method further includes: In response to dragging the sensor model along the third conveyor line model, adjusting a position of the sensor model on the third conveyor line model.

6. The method according to any one of claims 1 to 5, characterized in that The step of performing flow control simulation in response to the simulation instruction based on the material flow relationship between the conveyor line models displayed on the display interface includes: In response to the simulation instruction, controlling the simulated material to move along the conveyor line model displayed on the display interface; In response to the simulated material moving into the detection range of the sensor model, acquiring identification features of the simulated material from properties of the simulated material; Flow control is performed on the simulated material according to the identification features, the flow control strategy configured in the attributes of the sensor model, and the material flow relationship between the conveyor line models displayed on the display interface.

7. The method according to claim 6, characterized in that The flow control strategy includes a material identification sub-strategy and a flow distribution sub-strategy; The flow control for the simulated material is performed according to the identification feature, the flow control strategy configured in the attribute of the sensor model, and the material flow relationship between the conveyor line models displayed on the display interface, including: Determining whether the identification feature matches the material identification sub-strategy; If there is a match, based on the diversion allocation sub-strategy and the material flow relationship between the conveyor line models displayed on the display interface, a target conveyor line interface is selected from the conveyor line interfaces corresponding to the third conveyor line model; The simulated material is controlled to move toward a fourth conveyor line model, wherein the fourth conveyor line model is: a conveyor line model corresponding to the target conveyor line interface except the third conveyor line model.

8. A flow control simulation device, characterized in that: The device comprises: A first response module, configured to generate a conveyor line interface between the first conveyor line model and the second conveyor line model in response to dragging the first conveyor line model on the display interface, if the first conveyor line model is connected to the second conveyor line model displayed on the display interface, and display the generated conveyor line interface at the connection position between the first conveyor line model and the second conveyor line model; a second response module, configured to place the sensor model at an installable position of the third conveyor line model in response to an operation of placing the sensor model on the third conveyor line model, wherein the third conveyor line model is the first conveyor line model or the second conveyor line model; A third response module, for responding to the connection operation between the sensor model and the conveyor line interface, rendering the connection between the sensor model and the first conveyor line interface, and establishing a material flow relationship between two conveyor line models corresponding to the conveyor line interfaces connected by the connection; The fourth response module is used to respond to the simulation instruction and perform flow control simulation based on the material flow relationship between the conveyor line models displayed on the display interface.

9. The device according to claim 8, characterized in that The first conveyor line model and the second conveyor line model are connected in the following manner: in response to releasing the dragged first conveyor line model, based on the positional relationship between the conveyor line model and the first conveyor line model, a second conveyor line model is determined from other conveyor line models other than the first conveyor line model displayed on the display interface; the first conveyor line model is controlled to be adsorbed and connected to the second conveyor line model; and / or The method of determining a second conveyor line model from other conveyor line models other than the first conveyor line model displayed on the display interface based on the positional relationship between the conveyor line model and the first conveyor line model includes: determining a conveyor line model that meets the following conditions from other conveyor line models other than the first conveyor line model displayed on the display interface as the second conveyor line model: the distance between the conveyor line model and the first conveyor line model is less than a first distance threshold; the material conveying direction from the other conveyor line models to the material conveying direction of the first conveyor line model is a passable direction; and / or The second response module is specifically used to: display the sensor model along the dragging trajectory of the sensor model on the display interface; in response to releasing the dragged sensor model, determine a third conveyor line model from the conveyor line models displayed on the display interface that satisfy a preset position relationship with the sensor model; control the sensor model to be adsorbed to an installable position of the third conveyor line model; and / or The second response module is further used to: after controlling the sensor model to be adsorbed to the installable position of the third conveyor line model, in response to dragging the sensor model along the third conveyor line model, adjust the position of the sensor model on the third conveyor line model; and / or The fourth response module is specifically used to: in response to the simulation instruction, control the simulated material to move along the conveyor line model displayed on the display interface; in response to the simulated material moving to the detection range of the sensor model, obtain the identification characteristics of the simulated material from the properties of the simulated material; according to the identification characteristics, the flow control strategy configured in the properties of the sensor model, and the material flow relationship between the conveyor line models displayed on the display interface, control the flow direction of the simulated material; and / or The flow control strategy includes a material identification sub-strategy and a diversion allocation sub-strategy; the fourth response module is specifically used to: determine whether the identification feature matches the material identification sub-strategy; if matched, based on the diversion allocation sub-strategy and the material flow relationship between the conveyor line models displayed on the display interface, select the target conveyor line interface from the conveyor line interfaces corresponding to the third conveyor line model; control the simulated material to move to the fourth conveyor line model, wherein the fourth conveyor line model is: the conveyor line model corresponding to the target conveyor line interface except the third conveyor line model.

10. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, for implementing the method according to any one of claims 1 to 7 when executing a program stored in a memory.

11. 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 method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Simulation method for sorting line of logistics distribution center

    CN102508933A

  • Motion simulation method and device based on digital twinning and computer equipment

    CN117930677A