Instruction generation method and device based on material putting and storage medium
By determining the material type and delivery volume from the target material list, and generating and sending target instructions to the target equipment, the problems of low accuracy and poor adaptability during the material delivery process are solved, and precise control of the material delivery volume and improvement of delivery accuracy are achieved.
Patent Information
- Application Number
- CN202411696640.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-25
- Publication Date
- 2025-03-14
AI Technical Summary
In the prior art, there are problems such as long time consumption and low material accuracy during the material delivery process, and it is unable to adapt to the characteristics of different materials, resulting in inaccurate delivery.
By determining the material type and delivery quantity from the target bill of materials, determining the operation indicator parameters and target operation parameters based on this information, and generating and sending target instructions to the target device to control the material delivery operation.
Accurate control of the amount of material delivery is achieved, the delivery accuracy and efficiency are improved, the characteristics of different materials are adapted to the problem of inaccurate delivery is solved.
Smart Images

Figure CN119612093A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of material delivery, and specifically, to a method and device for generating instructions based on material delivery, and a storage medium. Background Art
[0002] In the related art, in the process of material delivery, manual configuration is often used. Since a work order contains many types of materials and the actual required weight of each material is different, the manual configuration of materials will result in problems such as long time consumption and low material accuracy.
[0003] In the related art, when using a machine to configure and place materials, there is a problem that the machine cannot adapt to the characteristics of different materials, resulting in inaccurate material placement. Summary of the invention
[0004] The embodiments of the present application provide a method and device for generating instructions based on material delivery, and a storage medium, so as to at least solve the problem in the related art that the material delivery amount cannot be accurately controlled.
[0005] According to one embodiment of the present application, a method for generating instructions based on material delivery is provided, including: determining the material type and target delivery amount of the target material from an acquired target material list; determining the operation indication parameters of the target material according to the material type and the target delivery amount, wherein the operation indication parameters are parameters for controlling the target device to switch the operation mode, and the target device is a device for performing delivery operations on the target material; determining the target operation parameters of the target device using the target delivery amount and the operation indication parameters; generating a first target instruction based on the target operation parameters, and sending the first target instruction to the target device to instruct the target device to perform the delivery operation according to the first target instruction.
[0006] In an exemplary embodiment, before determining the material type and target delivery quantity of the target material from the acquired target bill of materials, the method further includes: extracting the target bill of materials from a bill of materials library, wherein the target bill of materials is a bill of materials in a pending state in the bill of materials library; identifying the material names included in the target bill of materials, and determining the material type of the target material based on the material names; identifying the material requirements included in the target bill of materials, and determining the target delivery quantity based on the material requirements.
[0007] In an exemplary embodiment, the operation indication parameters of the target material are determined according to the material type and the target delivery amount, including: determining the type of delivery equipment for delivering the target material based on the material type; selecting equipment that matches the type of the delivery equipment to determine the target equipment; acquiring the operation parameters of the target equipment; and determining the operation indication parameters using the material type of the target material, the operation parameters and the target delivery amount.
[0008] In an exemplary embodiment, the target delivery amount and the operation indication parameters are used to determine the target operation parameters of the target device, including: when the target delivery amount is greater than or equal to the operation indication parameters, setting the first operation parameters of the target device according to the target delivery amount; when the target delivery amount is less than the operation indication parameters, setting the second operation parameters of the target device according to the operation indication parameters; wherein the target operation parameters include the first operation parameters and the second operation parameters, and the first delivery speed of the target device delivering the target material according to the first operation parameters is greater than the second delivery speed of the target device delivering the target material according to the second operation parameters.
[0009] In an exemplary embodiment, a first target instruction is generated based on the target operating parameters, including at least one of the following: when the target material is a first material type, the first target instruction is generated according to the vibration frequency and the roller rotation speed of the target device included in the target operating parameters, wherein the first material type includes materials with a volume within a first preset volume range and a weight within a first preset weight range; when the target material is a second material type, the first target instruction is generated according to the vibration frequency, the roller rotation speed and the screw transfer frequency of the target device included in the target operating parameters, wherein the second material type includes materials with a volume within a second preset volume range and a weight within a second preset weight range; when the target material is a third material type, the first target instruction is generated according to the roller rotation speed of the target device included in the target operating parameters, wherein the third material type includes materials with a volume within a third preset volume range and a weight within a third preset weight range.
[0010] In an exemplary embodiment, after generating a first target instruction based on the target operating parameters and sending the first target instruction to the target device to instruct the target device to perform a delivery operation according to the first target instruction, the method further includes: calculating the total time for the target device to operate according to the target operating parameters and deliver the target material, and calculating the average delivery amount of the target material delivered by the target device per unit time, wherein the unit time is the time in the total time; when the target device performs the delivery operation, detecting the first delivery amount of the target material actually delivered by the target device per unit time; when the difference between the first delivery amount and the average delivery amount is less than a first preset threshold, controlling the target device to continue delivering the target material; when the difference between the first delivery amount and the average delivery amount is greater than the first preset threshold, controlling the target device to stop delivering the target material; and adjusting the target operating parameters based on the difference between the first delivery amount and the average delivery amount to obtain adjusted operating parameters.
[0011] In an exemplary embodiment, after determining the target operating parameters of the target device using the target delivery amount and the operating indication parameters, the method further includes: determining the coordinate information of the target material in the material bin based on the material code of the target material; generating a search path for the target material based on the coordinate information; determining the delivery order of the target material from the material sequence obtained from the target material list; generating a second target instruction using the search path and the delivery order; and sending the second target instruction to the target device to instruct the target device to search for the target material in the material bin according to the second target instruction and deliver the target material according to the delivery order.
[0012] According to another embodiment of the present application, there is provided an instruction generation device based on material delivery, comprising: a first determination module, used to determine the material type and target delivery amount of the target material from the acquired target material list; a second determination module, used to determine the operation indication parameters of the above-mentioned target material according to the above-mentioned material type and the above-mentioned target delivery amount, wherein the above-mentioned operation indication parameters are parameters for controlling the target device to switch the operation mode, and the above-mentioned target device is a device for performing the delivery operation of the above-mentioned target material; a third determination module, used to determine the target operation parameters of the above-mentioned target device using the above-mentioned target delivery amount and the above-mentioned operation indication parameters; a first sending module, used to generate a first target instruction based on the above-mentioned target operation parameters, and send the above-mentioned first target instruction to the above-mentioned target device, so as to instruct the above-mentioned target device to perform the delivery operation according to the above-mentioned first target instruction.
[0013] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0014] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when running.
[0015] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0016] Through this application, a bill of materials in a processing state is obtained from the bill of materials library, and then the target material is confirmed according to the bill of materials, and the corresponding delivery device is confirmed according to the type of the target material, and the operation instruction parameters of the target material are determined according to the target delivery amount, and then the target operation parameters of the target device and its corresponding target instructions are determined to control the delivery operation of the target device to the material. Therefore, the problem that the material delivery amount cannot be accurately controlled in the related technology can be solved, and the effect of accurately controlling the material delivery amount based on the generated instructions can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a hardware environment schematic diagram of a method for generating instructions based on material delivery according to an embodiment of the present application;
[0018] Figure 2 is a flow chart of a method for generating instructions based on material delivery according to an embodiment of the present application;
[0019] Figure 3 It is a flow chart of a method for generating instructions based on decoction pieces delivery according to an embodiment of the present application;
[0020] Figure 4 It is a structural block diagram of an instruction generation device based on material delivery according to an embodiment of the present application. DETAILED DESCRIPTION
[0021] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0023] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 Schematic diagram of the hardware environment of a method for generating instructions based on material delivery according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0024] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the instruction generation method based on material delivery in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0025] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0026] In this embodiment, a method for generating instructions based on material delivery is provided. Figure 2 is a flow chart of a method for generating instructions based on material delivery according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:
[0027] Step S202, determining the material type and target delivery amount of the target material from the acquired target material list;
[0028] Step S204, determining the operation indication parameter of the target material according to the material type and the target delivery amount, wherein the operation indication parameter is a parameter for controlling the target device to switch the operation mode, and the target device is a device for performing the delivery operation of the target material;
[0029] Step S206, determining the target operating parameters of the target device using the target delivery amount and the operating indication parameters;
[0030] Step S208: Generate a first target instruction based on the target operation parameters, and send the first target instruction to the target device to instruct the target device to perform a delivery operation according to the first target instruction.
[0031] Optionally, this embodiment can be applied in scenarios where material delivery is required, for example, material delivery in a construction scenario, or drug delivery in the medical field.
[0032] Optionally, the switching operation mode in this embodiment is a switching mark for different material delivery processes, and the relevant parameters of the target device are changed when the material delivery process is switched, including but not limited to: stage switching of material delivery speed change, stage switching of vibration amplitude change during material delivery, material delivery stop, etc.
[0033] Optionally, the bill of materials in this embodiment is a list specified based on actual needs, and the bill of materials includes but is not limited to: the type of material, the density of the material, the weight of the material, the manufacturer of the material, the production date of the material, the shelf life of the material, etc. For example, in the scenario of decocting medicine in the medical field, the bill of materials is a list obtained based on the doctor's prescription, and the list includes but is not limited to: drug data, water addition data, decoction data, soaking time, circulation route, prescription information, logistics information, etc. In this scenario, the target material can be various Chinese herbal medicine pieces, for example, the types of Chinese herbal medicine pieces include rhizomes, flowers and leaves, fruits, etc.
[0034] Optionally, the operation indication parameter in this embodiment refers to the advance stop amount for controlling the target device to switch the operation mode, which is determined according to the type of target material. That is, in order to minimize the accuracy of the material delivery amount caused by the delay in the execution of the target device instruction, the parameters used to control the target device to switch the operation mode are set. Under the set operation indication parameters, the actual delivery amount of the target device is closer to the target delivery amount.
[0035] Optionally, the target operating parameters of the target device in this embodiment are parameters required during operation set according to the type of the target device, including but not limited to: the vibration frequency of the target device, the roller rotation speed of the target device, whether the screw feeding rotation of the target device is turned on, the large-volume roller rotation speed of the target device, the small-volume roller rotation speed of the target device, etc.
[0036] For example, in the scenario of decocting Chinese medicine, when it is determined from the acquired target material list that the herbal medicine is Pinellia ternata, the target dosage of the herbal medicine is 5g, and the herbal medicine is a rhizome, it is determined that the device for feeding the herbal medicine is a vibrating feeder, and the corresponding operation indication parameter is 3; using the target dosage of 5g and the operation indication parameter 3, it is determined in the preset database that the vibration frequency of the target device is 120Hz and the rotation speed of the drum is 100rpm, and the operation parameters of the target device are obtained; based on the target operation parameters, a first target instruction is generated, and the first target instruction is sent to the vibrating feeder, and the vibrating feeder performs the feeding operation of Pinellia ternata according to the parameters in the first target instruction.
[0037] Through the above steps, the target material is confirmed according to the target material list, the corresponding delivery equipment is confirmed according to the type of the target material, the operation instruction parameters of the target material are determined according to the target delivery amount and the material type, and then the target operation parameters of the target equipment and its corresponding target instructions are determined to control the delivery operation of the material by the target equipment, which solves the problem that the material delivery amount cannot be accurately controlled in the related technology and improves the accuracy of the material delivery amount.
[0038] In an exemplary embodiment, before determining the material type and target delivery quantity of the target material from the acquired target bill of materials, the method further includes: extracting the target bill of materials from a bill of materials library, wherein the target bill of materials is a bill of materials in a pending state in the bill of materials library; identifying the material names included in the target bill of materials, and determining the material type of the target material based on the material names; identifying the material requirements included in the target bill of materials, and determining the target delivery quantity based on the material requirements.
[0039] Optionally, in this embodiment, a plurality of bills of materials are stored in the bill of materials library, and the status of the bills of materials in the bill of materials library is divided into a pending state and a processed state. For example, when materials are delivered in a construction scenario, the materials included in the target bill of materials may include: cement, sand, stone, wood, limestone, etc. In the scenario of drug delivery in the medical field, the materials included in the target bill of materials may include: white peony root, scutellaria, coptis root, wolfberry, ginseng, angelica, chuanxiong, tsaoko, etc.
[0040] Optionally, in this embodiment, the method of determining the material type of the target material based on the material name includes but is not limited to: searching a preset database for the material type corresponding to the material name; inputting the material name into a trained model to obtain the material type corresponding to the material, etc.
[0041] Optionally, in this embodiment, the method for determining the target delivery quantity based on material demand may be: extracting the target delivery quantity of the corresponding material from the bill of materials; obtaining the target delivery quantity corresponding to the material in the target bill of materials based on the material demand and the processing data of the previous bill of materials, etc.
[0042] For example, in the scenario of boiling Chinese medicine, the process of extracting and processing the bill of materials can be carried out as follows:
[0043] S1, extract the target material list:
[0044] Access the BOM library, which contains the BOM information of all Chinese herbal medicines. By setting the filter condition to "pending status", extract the BOMs in this status from the library. These BOMs are about to be used for decoction.
[0045] S2, identify the material name and determine the material type:
[0046] From the extracted target material list, identify the material names included. These names may include various Chinese medicinal materials, such as Angelica sinensis, Astragalus membranaceus, etc. Based on the material name, determine the type of each material, such as roots, leaves, flowers, etc.
[0047] S3, identify material requirements and determine the quantity to be put into use:
[0048] In the target material list, check the demand for each material, which is usually given in the form of weight or quantity. Based on the material demand, determine the target amount of each material. This amount needs to be determined based on the decoction formula and the desired efficacy.
[0049] Assume that there is a bill of materials to be processed, which includes the following Chinese medicinal materials and requirements: Angelica: 50 grams; Astragalus: 30 grams; Lycium barbarum: 20 grams.
[0050] Extracting and processing the bill of materials includes: Extracting the bill of materials: Extract the bill of materials to be processed from the bill of materials library, and find that the above-mentioned Chinese medicinal materials need to be decocted. Identify the material name and type: Material name: Angelica, Astragalus, Lycium barbarum. Material type: Angelica (root), Astragalus (root), Lycium barbarum (fruit). Determine the release amount: According to the material requirements, determine the release amount of each material: Angelica: 50 grams; Astragalus: 30 grams; Lycium barbarum: 20 grams.
[0051] Through the above steps, the list in the pending state is obtained from the bill of materials library, and the material name and material type are obtained based on the list identification, thereby confirming the target delivery quantity and material type of the target material, and further accurately obtaining the required target material data, which is convenient for subsequent parameter determination operations.
[0052] In an exemplary embodiment, the operation indication parameters of the target material are determined according to the material type and the target delivery amount, including: determining the type of delivery equipment for delivering the target material based on the material type; selecting equipment that matches the type of the delivery equipment to determine the target equipment; acquiring the operation parameters of the target equipment; and determining the operation indication parameters using the material type of the target material, the operation parameters and the target delivery amount.
[0053] Optionally, in this embodiment, the types of delivery equipment for delivering the target material include, but are not limited to: a screw conveyor, a bucket elevator, a vibrating feeder, and the like.
[0054] Optionally, in this embodiment, the operating parameters of the target device include but are not limited to the maximum rotation speed, maximum vibration level, maximum delivery amount, etc. of the target device.
[0055] Optionally, in this embodiment, the method of determining the operation indication parameters using the material type, operating parameters and target delivery amount of the target material includes but is not limited to: based on the material type, operating parameters and target delivery amount of the target material, searching for the most suitable parameters from a preset database to determine the operation indication parameters.
[0056] For example, in the scenario of drug delivery in the pharmaceutical field, when the operation indication parameter is a parameter for controlling the target device to switch the operation mode in advance, the method for determining the operation indication parameter is to use the material type, operation parameters and target delivery amount of the target material. Specifically, when the target material is white peony root, find the relevant data table in the preset database, as shown in Table 1, and select the corresponding operation indication parameter based on the target delivery amount of white peony root, that is, the early stop amount in Table 1.
[0057] For example, when the target material is white peony, the target amount is 5g, the maximum rotation speed is 100, and the maximum vibration level is 600, it is more appropriate to find from Table 1 that the early stop amount is 3g, that is, the operation indication parameter is determined to be 3.
[0058] Table 1:
[0059]
[0060] For another example, in the scenario of Chinese medicine decoction, when the operation indication parameter is the guidance parameter for decoction of Chinese medicine, it is assumed that the target material is astragalus and the target amount is 100 grams. Astragalus is a herbal medicine that needs to be decocted to extract its medicinal ingredients. Therefore, the device for determining the astragalus is a decoction pot. The operation parameters of the decoction pot include: temperature control range (e.g., 80℃-100℃), decoction time (e.g., 30-60 minutes), and power (e.g., 500W-1000W). According to the material type of astragalus and the above operation parameters, it is necessary to determine the temperature and time suitable for decoction of astragalus. Assume that the optimal decoction temperature of astragalus is 90℃ and the decoction time is 45 minutes. It is also necessary to consider the density of astragalus and the volume change during decoction to ensure that 100 grams of astragalus can be completely covered by the water in the decoction pot. Assuming that the density of astragalus is 0.7 g / ml, the volume of 100 grams of astragalus is approximately 143 ml (100 g / 0.7 g / ml). Based on this information, the operating indication parameters can be determined as follows: temperature: 90°C; time: 45 minutes; power: 750W to ensure sufficient energy supply during the decocting process.
[0061] Through the above steps, the type of delivery equipment suitable for the characteristics of the target material is determined based on the type of the target material and the target equipment is selected. The operating indication parameters of the target equipment are determined based on the operating parameters of the target equipment and the material type and operating parameters of the target material. This realizes the comprehensive determination of the operating indication parameters corresponding to the target equipment by combining multiple factors, thereby improving the accuracy of the material delivery amount.
[0062] In an exemplary embodiment, the target delivery amount and the operation indication parameters are used to determine the target operation parameters of the target device, including: when the target delivery amount is greater than or equal to the operation indication parameters, setting the first operation parameters of the target device according to the target delivery amount; when the target delivery amount is less than the operation indication parameters, setting the second operation parameters of the target device according to the operation indication parameters; wherein the target operation parameters include the first operation parameters and the second operation parameters, and the first delivery speed of the target device delivering the target material according to the first operation parameters is greater than the second delivery speed of the target device delivering the target material according to the second operation parameters.
[0063] Optionally, the target operating parameters of the target device in this embodiment are parameters required by the target device during operation and are set according to the type of the target device. The included parameters have been described above and will not be repeated here.
[0064] For example, in the scene of Chinese medicine decoction, Figure 3As shown, it is a flow chart of an instruction generation method based on the release of medicinal pieces according to an embodiment of the present application, the target material is the medicinal piece, the first material type is rhizomes, the second material type is flowers and leaves, and the third material type is fruits. The target release amount is the amount of medicine, and the operation indication parameter is the early stop amount. The operation parameters are determined according to the relationship between the medicinal piece type and the amount of medicine and the early stop amount. When the type of the medicinal piece does not belong to the above types, the operation parameters will be set based on its amount of medicine and the early stop amount.
[0065] In this embodiment, regardless of the type of medicinal material, the operating parameters of the target device will be set according to the relationship between the amount of medicine and the early stop amount. If the amount of medicine exceeds the early stop amount, the first operating parameter of the target device is set; if the amount of medicine does not exceed the early stop amount, the second operating parameter of the target device is set.
[0066] For example, when the target device is a drug mixing device, its operating parameters include stirring speed (rpm) and mixing time (minutes). First operating parameter (when the drug amount exceeds the early stop amount): stirring speed: 1500 rpm; mixing time: 30 minutes. Second operating parameter (when the drug amount does not exceed the early stop amount): stirring speed: 1200 rpm; mixing time: 20 minutes.
[0067] The parameter setting logic includes: the amount of medicine M: this is the amount of medicine added by the formula or operator as needed. The early stop amount S: this is a pre-set amount used to determine whether the operating parameters need to be adjusted. The control logic includes: judging the relationship between the amount of medicine and the early stop amount: if M>S, execute the first operating parameter. If M≤S, execute the second operating parameter.
[0068] For example, suppose the early stop amount S is set to 500 grams, and the operator adds 600 grams of the drug (M = 600 grams). Because 600 grams > 500 grams, M > S. According to the control logic, the first operating parameter of the target device is set, that is, the stirring speed is set to 1500 rpm and the mixing time is 30 minutes. If the operator only adds 400 grams of the drug (M = 400 grams), then: because 400 grams ≤ 500 grams, M ≤ S. According to the control logic, the second operating parameter of the target device is set, that is, the stirring speed is set to 1200 rpm and the mixing time is 20 minutes.
[0069] Through the above steps, the operating parameters of the target equipment are determined according to the target delivery amount and the operating indication parameters. The setting of the operating parameters is more objective and reasonable and conforms to the characteristics of the target material.
[0070] In an exemplary embodiment, a first target instruction is generated based on the target operating parameters, including at least one of the following: when the target material is a first material type, the first target instruction is generated according to the vibration frequency and the roller rotation speed of the target device included in the target operating parameters, wherein the first material type includes materials with a volume within a first preset volume range and a weight within a first preset weight range; when the target material is a second material type, the first target instruction is generated according to the vibration frequency, the roller rotation speed and the screw transfer frequency of the target device included in the target operating parameters, wherein the second material type includes materials with a volume within a second preset volume range and a weight within a second preset weight range; when the target material is a third material type, the first target instruction is generated according to the roller rotation speed of the target device included in the target operating parameters, wherein the third material type includes materials with a volume within a third preset volume range and a weight within a third preset weight range.
[0071] Optionally, in this embodiment, when the target material type does not belong to the first, second, or third material type, the delivery device for delivering the target material will be set to a preset device, and the set target operating parameters include the vibration feeding frequency of the target device, and then the first target instruction is generated according to the target operating parameters.
[0072] Alternatively, if Figure 3 As shown, in the scenario of drug delivery in the pharmaceutical field, the target material is a herbal piece, the first material type is rhizomes, the second material type is flowers and leaves, and the third material type is fruits. The target delivery amount is the amount of medicine delivered, and the operation indication parameter is the early stop amount.
[0073] For example, Figure 3 As shown, when the medicinal pieces are roots and rhizomes, the first target instruction is generated according to the vibration frequency of the target device and the drum rotation speed included in the set target operating parameters; when the medicinal pieces are flowers and leaves, the first target instruction is generated according to the vibration frequency of the target device, the drum rotation speed and the screw transfer frequency included in the set target operating parameters; when the medicinal pieces are fruits, the first target instruction is generated according to the drum rotation speed of the target device included in the set target operating parameters; when the medicinal pieces are other types, the first target instruction is generated according to the vibration feeding frequency of the target device included in the set target operating parameters.
[0074] Through the above steps, the first target instruction is generated according to the type of target material and the content included in the target operating parameters, which improves the speed and accuracy of material delivery, reduces material waste, and ensures the reliability of subsequent material delivery.
[0075] In an exemplary embodiment, after generating a first target instruction based on the target operating parameters and sending the first target instruction to the target device to instruct the target device to perform a delivery operation according to the first target instruction, the method further includes: calculating the total time for the target device to operate according to the target operating parameters and deliver the target material, and calculating the average delivery amount of the target material delivered by the target device per unit time, wherein the unit time is the time in the total time; when the target device performs the delivery operation, detecting the first delivery amount of the target material actually delivered by the target device per unit time; when the difference between the first delivery amount and the average delivery amount is less than a first preset threshold, controlling the target device to continue delivering the target material; when the difference between the first delivery amount and the average delivery amount is greater than the first preset threshold, controlling the target device to stop delivering the target material; and adjusting the target operating parameters based on the difference between the first delivery amount and the average delivery amount to obtain adjusted operating parameters.
[0076] Optionally, in this embodiment, the total time for the target device to release the target material in the target amount can be determined based on historical material release records.
[0077] Optionally, in this embodiment, the average amount of target material delivered to the target device per unit time can be calculated by the following formula:
[0078] Optionally, in this embodiment, when the target device performs the above-mentioned delivery operation, the weight detector detects the weight of the target material and obtains a first delivery amount. When the difference between the first delivery amount and the average delivery amount is less than a first preset threshold, the target device continues to deliver the target material until the delivery time reaches the total time of the target material.
[0079] Optionally, in this embodiment, the first preset threshold is determined according to an actual usage scenario. For example, in a scenario of drug delivery in the medical field, the first threshold is set to [target delivery amount of decoction pieces - target delivery amount of decoction pieces × 5%, target delivery amount of decoction pieces + target delivery amount of decoction pieces × 5%] according to conventional usage settings in the field.
[0080] Optionally, in this embodiment, when the difference between the first delivery amount and the average delivery amount is greater than a first preset threshold value, the target device stops delivering the target material and adjusts the target operating parameters according to the difference. If the difference is a positive number, the target operating parameters are adjusted to smaller parameters, and then a new first target instruction is generated based on the adjusted parameters to perform the delivery operation; if the difference is a negative number, the target operating parameters are adjusted to larger parameters, and then a new first target instruction is generated based on the adjusted parameters to perform the delivery operation.
[0081] Through the above steps, based on the calculated total time for releasing the target material, the average release amount of the target material released by the target device per unit time is obtained, and then the adjustment strategy of the target operating parameters is determined by comparing the average release amount of the target material released by the target device per unit time with the first release amount of the target material actually released by the target device per unit time detected, so as to adjust the release amount of the target material in real time according to the actual release results, and ensure the accurate amount of the released material when the release speed of the target material is faster.
[0082] In an exemplary embodiment, after determining the target operating parameters of the target device using the target delivery amount and the operating indication parameters, the method further includes: determining the coordinate information of the target material in the material bin based on the material code of the target material; generating a search path for the target material based on the coordinate information; determining the delivery order of the target material from the material sequence obtained from the target material list; generating a second target instruction using the search path and the delivery order; and sending the second target instruction to the target device to instruct the target device to search for the target material in the material bin according to the second target instruction and deliver the target material according to the delivery order.
[0083] Optionally, in this embodiment, the coordinate information of the target material in the material bin is determined based on the material code of the target material. This can be achieved in the following ways: searching for the material code of the target material in the material location database to obtain the coordinate information of the target material in the material bin; or, inputting the material code of the target material into the material identification model, and outputting the coordinate information of the target material in the material bin.
[0084] Optionally, in this embodiment, the search path for the target material is generated based on the coordinate information, which can be implemented using a path planning algorithm, and the algorithms used include but are not limited to using an A* algorithm, a Dijkstra algorithm, and a greedy algorithm.
[0085] Optionally, in this embodiment, the second target instruction is generated based on the search path and the delivery order, and the second target instruction includes the path for the target device to obtain the target material, when or after which material the target material is delivered.
[0086] For example, in a construction scenario, cement needs to be made, and limestone and clay need to be placed. The code corresponding to limestone is A01, and the code corresponding to clay is A21. According to the code A01, the coordinates of A01 in the material bin are found in the building material location database as (11, 3), and according to the code A21, the coordinates of A21 in the material bin are found in the building material location database as (23, 3); based on the coordinate information, the paths for finding limestone and clay from the position (0, 0) are (0, 0)→(11, 0)→(11, 3) and (0, 0)→(23, 0)→(23, 3), respectively; then, according to the order of materials in the target material list, it is determined that limestone needs to be placed first, and then clay; the second target instruction is generated using the search path and placement order.
[0087] For example, in the scenario of decocting Chinese medicine, it is necessary to release Rehmannia glutinosa and Paeonia lactiflora. The code corresponding to Rehmannia glutinosa is B67, and the code corresponding to clay is B45. According to the code B67, the coordinates of B67 in the material bin are found in the drug material location database as (198, 11), and according to the code B45, the coordinates of B45 in the material bin are found in the building material location database as (211, 11); based on the coordinate information, the paths for finding Rehmannia glutinosa and Paeonia lactiflora from the position (0, 0) are (0, 0)→(198, 0)→(198, 11) and (0, 0)→(211, 0)→(211, 11), respectively; then, according to the order of materials in the target material list, it is determined that Rehmannia glutinosa needs to be released first, and then Paeonia lactiflora; the second target instruction is generated using the search path and the release order, wherein the drug release data in this example is only for illustrating the process of generating the second target instruction, and the actual application may not be the order in this example.
[0088] Through the above steps, the search path of the target material is determined based on the material code of the target material, and the material sequence is obtained according to the target material list. The second target instruction is generated based on the search path and the delivery sequence, and the delivery path and delivery time of the target material are reasonably planned.
[0089] It should be noted that, through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the relevant technology, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), including a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0090] In this embodiment, a device for generating instructions based on material delivery is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0091] Figure 4 is a structural block diagram of a device for generating instructions based on material delivery according to an embodiment of the present application, such as Figure 4 As shown, the device comprises:
[0092] A first determination module 42 is used to determine the material type and target delivery amount of the target material from the acquired target material list;
[0093] A second determination module 44 is used to determine the operation indication parameter of the target material according to the material type and the target delivery amount, wherein the operation indication parameter is a parameter used to control the target device to switch the operation mode, and the target device is a device used to perform the delivery operation of the target material;
[0094] A third determination module 46 is used to determine the target operation parameters of the target device using the target delivery amount and the operation indication parameters;
[0095] The first sending module 48 is used to generate a first target instruction based on the target operation parameters, and send the first target instruction to the target device to instruct the target device to perform the delivery operation according to the first target instruction.
[0096] In an exemplary embodiment, the first determination module 42 includes: a first extraction unit, used to extract the target bill of materials from the bill of materials library, wherein the target bill of materials is a bill of materials in the bill of materials library that is in a pending state; a first determination unit, used to identify the material name included in the target bill of materials, and determine the material type of the target material based on the material name; a second determination unit, used to identify the material requirement included in the target bill of materials, and determine the target delivery quantity based on the material requirement.
[0097] In an exemplary embodiment, the second determination module 44 includes: a third determination unit, used to determine the type of delivery equipment for delivering the target material based on the material type; a first selection unit, used to select equipment that matches the type of the delivery equipment to determine the target equipment; a first acquisition unit, used to acquire the operating parameters of the target equipment; and a fourth determination unit, used to determine the operating indication parameters using the material type of the target material, the operating parameters and the target delivery amount.
[0098] In an exemplary embodiment, the third determination module 46 comprises: a first setting unit for setting the first operating parameter of the target device according to the target delivery amount when the target delivery amount is greater than or equal to the operating indication parameter; a second setting unit for setting the second operating parameter of the target device according to the operating indication parameter when the target delivery amount is less than the operating indication parameter, wherein the target operating parameters include the first operating parameters and the second operating parameters, and the first delivery speed of the target device delivering the target material according to the first operating parameters is greater than the second delivery speed of the target device delivering the target material according to the second operating parameters.
[0099] In an exemplary embodiment, the first sending module 48 includes: a first calculation unit, used to calculate the total time for the target device to operate according to the target operating parameters and release the target material, and calculate the average release amount of the target material released by the target device per unit time, wherein the unit time is the time in the total time; a first detection unit, used to detect the first release amount of the target material actually released by the target device per unit time when the target device performs the release operation; a first control unit, used to control the target device to continue releasing the target material when the difference between the first release amount and the average release amount is less than a first preset threshold; a second control unit, used to control the target device to stop releasing the target material when the difference between the first release amount and the average release amount is greater than a first preset threshold; a first adjustment unit, used to adjust the target operating parameters based on the difference between the first release amount and the average release amount to obtain the adjusted operating parameters.
[0100] In an exemplary embodiment, the first sending module 48 further includes: a fifth determination unit, used to determine the coordinate information of the target material in the material bin based on the material code of the target material; a first generation unit, used to generate a search path for the target material based on the coordinate information; a sixth determination unit, used to determine the delivery order of the target material from the material sequence obtained from the target material list; a second generation unit, used to generate a second target instruction using the search path and the delivery order; and a second sending unit, used to send the second target instruction to the target device, so as to instruct the target device to search for the target material in the material bin according to the second target instruction, and deliver the target material according to the delivery order.
[0101] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0102] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0103] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0104] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0105] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0106] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.
[0107] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0108] The embodiments of the present application also provide a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps of any one of the above method embodiments.
[0109] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0110] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0111] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for generating instructions based on material delivery, characterized in that: include: Determine the material type and target delivery amount of the target material from the acquired target material list; Determining an operation indication parameter of the target material according to the material type and the target delivery amount, wherein the operation indication parameter is a parameter used to control the target device to switch the operation mode, and the target device is a device used to perform a delivery operation on the target material; Determining a target operating parameter of the target device using the target delivery amount and the operating indication parameter; A first target instruction is generated based on the target operation parameter, and the first target instruction is sent to the target device to instruct the target device to perform a delivery operation according to the first target instruction.
2. The method according to claim 1, characterized in that Before determining the material type and target delivery amount of the target material from the acquired target material list, the method further includes: Extracting the target bill of materials from a bill of materials library, wherein the target bill of materials is a bill of materials in the bill of materials library that is in a pending state; Identifying a material name included in the target material list, and determining a material type of the target material based on the material name; The material requirements included in the target material list are identified, and the target delivery quantity is determined based on the material requirements.
3. The method according to claim 1, characterized in that Determining the operation indication parameters of the target material according to the material type and the target delivery amount includes: Determining the type of delivery equipment for delivering the target material based on the material type; Selecting a device that matches the type of the delivery device to determine the target device; Obtaining operating parameters of the target device; The operation indication parameter is determined by using the material type of the target material, the operation parameter and the target delivery amount.
4. The method according to claim 1, characterized in that: Determining the target operating parameter of the target device by using the target delivery amount and the operating indication parameter includes: When the target delivery amount is greater than or equal to the operation indication parameter, setting the first operation parameter of the target device according to the target delivery amount; When the target delivery amount is less than the operation indication parameter, setting the second operation parameter of the target device according to the operation indication parameter; The target operating parameters include the first operating parameters and the second operating parameters, and a first delivery speed of the target device delivering the target material according to the first operating parameters is greater than a second delivery speed of the target device delivering the target material according to the second operating parameters.
5. The method according to claim 1, characterized in that Generating a first target instruction based on the target operating parameter includes at least one of the following: In the case where the target material is a first material type, generating the first target instruction according to the vibration frequency and the drum rotation speed of the target device included in the target operation parameters, wherein the first material type includes materials with a volume within a first preset volume range and a weight within a first preset weight range; In the case where the target material is a second material type, the first target instruction is generated according to the vibration frequency, the drum rotation speed, and the screw transfer frequency of the target device included in the target operating parameters, wherein the second material type includes materials with a volume within a second preset volume range and a weight within a second preset weight range; When the target material is a third material type, the first target instruction is generated according to the drum rotation speed of the target device included in the target operating parameters, wherein the third material type includes materials with a volume within a third preset volume range and a weight within a third preset weight range.
6. The method according to claim 1, characterized in that After generating a first target instruction based on the target operation parameter and sending the first target instruction to the target device to instruct the target device to perform the delivery operation according to the first target instruction, the method further includes: Calculating the total time for the target device to operate according to the target operating parameters and release the target material, and calculating the average release amount of the target material released by the target device per unit time, wherein the unit time is the time within the total time; When the target device performs the delivery operation, detecting a first delivery amount of the target material actually delivered by the target device within the unit time; When the difference between the first delivery amount and the average delivery amount is less than a first preset threshold, controlling the target device to continue delivering the target material; When the difference between the first delivery amount and the average delivery amount is greater than a first preset threshold, controlling the target device to stop delivering the target material; Based on the difference between the first delivery amount and the average delivery amount, the target operating parameter is adjusted to obtain an adjusted operating parameter.
7. The method according to claim 1, characterized in that After determining the target operating parameter of the target device using the target delivery amount and the operating indication parameter, the method further includes: Determine the coordinate information of the target material in the material bin based on the material code of the target material; Generate a search path for the target material based on the coordinate information; Determine the order of placing the target materials from the order of materials obtained from the target material list; Generate a second target instruction using the search path and the delivery sequence; The second target instruction is sent to the target device to instruct the target device to search for the target material in the material bin according to the second target instruction and to deliver the target material in the delivery order.
8. A device for generating instructions based on material delivery, characterized in that: include: A first determination module is used to determine the material type and target delivery amount of the target material from the acquired target material list; A second determination module is used to determine the operation indication parameter of the target material according to the material type and the target delivery amount, wherein the operation indication parameter is a parameter used to control the target device to switch the operation mode, and the target device is a device used to perform the delivery operation of the target material; A third determination module, configured to determine a target operating parameter of the target device using the target delivery amount and the operating indication parameter; The first sending module is used to generate a first target instruction based on the target operation parameter, and send the first target instruction to the target device to instruct the target device to perform a delivery operation according to the first target instruction.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 7 when executed by a processor.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 7 are implemented.