A method and device for counting the number of products in a production process

By comparing changes in equipment constraints, new counting keys are generated and product quantities are recorded, which solves the problems of statistical errors and leaks in the existing technology, improves statistical efficiency, and meets the needs of production and management.

CN114296415BActive Publication Date: 2024-08-30赛美特信息集团股份有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111643421.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-29
Publication Date
2024-08-30
Estimated Expiration
2041-12-29

AI Technical Summary

Technical Problem

Existing product quantity counting methods cannot update statistical values ​​in time when equipment constraints change, resulting in statistical errors and leaks. Moreover, due to the existence of duplicate statistical data, they occupy a large amount of storage and computing resources, resulting in low statistical efficiency.

Method used

By comparing the equipment constraints before and after the change, determine whether a new counting key needs to be generated, and record the product quantity in the counting value corresponding to the new counting key to ensure the accuracy and efficiency of statistical data.

Benefits of technology

It improves the efficiency of product quantity statistics, solves the problem of statistical errors and leaks when equipment constraints change, and reduces the occupation of storage and computing resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114296415B
    Figure CN114296415B
Patent Text Reader

Abstract

The present application provides a method and device for counting the number of products in a production process, including: for any first constraint condition that is changed in the target device constraint where the condition is changed, determining whether there is a second constraint condition corresponding to the first constraint condition; if so, comparing the first constraint condition with the second constraint condition to determine whether the first constraint condition satisfies the predetermined change condition; if there is at least one first constraint condition that satisfies the predetermined change condition in the target device constraint, setting a new counting key for the target device constraint; determining at least one new counting value associated with the new counting key, and continuing to record the number of products in the product batch corresponding to the new counting value after the condition is changed in each new counting value. In this way, the efficiency of quantity counting can be improved, and the problems of product quantity counting errors and statistical omissions that occur when the device constraints change can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of production control, and in particular to a method and device for counting the number of products in a production process. Background Art

[0002] With the development of science and technology, in modern manufacturing plants, a manufacturing execution system (MES) is usually built to optimize the management of the entire production process from order placement to product completion through information transmission. In manufacturing plants, because the manufacturing method of products is often more complicated, it is necessary to establish equipment constraints for each device in the MES system to make the equipment production meet the management requirements. Among them, each equipment constraint includes at least one constraint condition; each equipment constraint is used to allow or prohibit the target device from producing the product batch when the product batch meets each constraint condition included in the equipment constraint. Taking a semiconductor factory as an example, there are about 500 equipment constraints on each device in the MES system on average, and each equipment constraint is set with as few as one and as many as dozens of constraints. During the production process, the MES system needs to count the number of products of each product batch produced by the target device under each equipment constraint to realize the information management of the production process.

[0003] According to research, as the production process progresses, the constraints under the equipment constraints will often change due to many reasons such as equipment upgrades, version updates, and production debugging. The existing product quantity statistics method cannot change the statistical value according to the changes in the constraints, which makes the MES system's statistics on the number of products incorrect and leads to statistical omissions; some quantity statistics methods set their own statistical values ​​for each constraint, resulting in a large number of repeated statistical data in the MES system, occupying a large amount of storage and computing resources, resulting in low statistical efficiency. Therefore, the existing product quantity statistics method in the production process can no longer meet the needs of production and management. Summary of the invention

[0004] In view of this, the purpose of the present application is to provide a method and a device for counting the number of products in a production process, which can determine whether it is necessary to generate a new counting key by comparing the constraint conditions under the equipment constraints before and after the change when the equipment constraints change, and record the number of products in the count value corresponding to the new counting key after the condition change occurs; in this way, the efficiency of quantity counting can be improved and the problems of product quantity counting errors and statistical omissions that occur when the equipment constraints change can be solved.

[0005] The present application provides a method for counting the number of products in a production process, the method comprising:

[0006] For any first constraint condition that is changed in the target device constraint that has undergone a condition change, determine whether there is a second constraint condition corresponding to the first constraint condition; wherein the first constraint condition is obtained after the second constraint condition is changed; the target device constraint is used to allow or prohibit the target device from producing the product batch when any product batch satisfies each constraint condition included therein;

[0007] If there is a second constraint condition corresponding to the first constraint condition, the first constraint condition is compared with the second constraint condition to determine whether the first constraint condition satisfies a predetermined change condition;

[0008] If there is at least one first constraint condition satisfying the predetermined change condition in the target device constraint, a new counting key is set for the target device constraint; wherein the counting key is associated with the target device constraint and the counting key is associated with at least one counting value; the counting key is a unique serial number for indexing the counting value for the target device constraint; each counting value is associated with a product batch and is used to record the number of products of the product batch produced by the target device under the target device constraint;

[0009] At least one new count value associated with the new count key is determined, and the number of products in the product batch corresponding to the new count value after the condition change continues to be recorded in each new count value.

[0010] Further, each of the constraint conditions includes a product parameter and a value range of the product parameter; the product parameter in the first constraint condition and the second constraint condition corresponding to the first constraint condition are the same;

[0011] The comparing the first constraint condition with the second constraint condition to determine whether the first constraint condition satisfies a predetermined change condition includes:

[0012] Determine whether the first value range of the first constraint condition can completely include the second value range of the second constraint condition;

[0013] If the first value range cannot completely include the second value range, it is determined that the first constraint condition satisfies the predetermined change condition.

[0014] Further, the determining at least one new count value associated with the new count key includes:

[0015] For each product batch produced by the target device under the constraint of the target device before the condition change occurs, determining whether the product batch satisfies each of the first constraint conditions;

[0016] Determine a product batch that satisfies each of the first constraint conditions as a target product batch;

[0017] For each target product batch, determining a count value associated with the target product batch before the condition change occurs;

[0018] The count value is determined as a new count value associated with the new count key.

[0019] Furthermore, the step of continuing to record in each new count value the number of products in the product batch corresponding to the new count value after the condition change occurs includes:

[0020] Determining whether the target product batch includes the product batch to be counted;

[0021] If the target product batch includes the product batch to be counted, the number of products in the product batch to be counted continues to be recorded at the new count value associated with the product batch to be counted;

[0022] If the target product batch does not include the product batch to be counted, a new count value is created and an association relationship is established between the new count value and the new count key, and between the new count value and the product batch to be counted;

[0023] The number of products in the product batch to be counted is recorded in the newly created count value; wherein the initial value of the newly created count value is a set value.

[0024] Furthermore, the constraint condition also includes a product quantity restriction; and the product quantity counting method also includes:

[0025] When the target device produces any product batch under the target device constraint, if the sum of the count values ​​indexed by the count key corresponding to the target device constraint exceeds the product quantity limit, the target device is prohibited from continuing to produce the product batch.

[0026] Furthermore, for each product batch produced by the target device under the constraint of the target device before the condition change occurs, determining whether the product batch satisfies each of the first constraint conditions includes:

[0027] Obtaining batch information of the product batch; the batch information includes at least one product parameter and the value of each product parameter;

[0028] For each first constraint condition, searching the batch information for the first product parameter in the first constraint condition and the value of the first product parameter;

[0029] If the value of the first product parameter in the batch information falls within the first value range in the first constraint condition, it is determined that the product batch meets the first constraint condition.

[0030] Furthermore, the product parameters include at least one of the following: process, procedure, product manufacturing process, formula, data collection plan and customer information.

[0031] The embodiment of the present application further provides a device for counting the number of products in a production process, the device for counting the number of products comprising:

[0032] A determination module, for determining, for any first constraint condition changed in the target device constraint that has undergone a condition change, whether there is a second constraint condition corresponding to the first constraint condition; wherein the first constraint condition is obtained after the second constraint condition is changed; the target device constraint is used to allow or prohibit the target device from producing the product batch when any product batch satisfies each constraint condition included therein;

[0033] A comparison module, configured to compare the first constraint condition with the second constraint condition when there is a second constraint condition corresponding to the first constraint condition, to determine whether the first constraint condition satisfies a predetermined change condition;

[0034] A setting module, configured to set a new counting key for the target device constraint when there is at least one first constraint condition satisfying the predetermined change condition in the target device constraint; wherein the counting key and the target device constraint, and the counting key and at least one counting value are associated with each other; the counting key is a unique serial number for indexing the counting value for the target device constraint; each counting value is associated with a product batch, and is configured to record the number of products of the product batch produced by the target device under the target device constraint;

[0035] The statistics module is used to determine at least one new count value associated with the new count key, and continue to record in each new count value the number of products in the product batch corresponding to the new count value after the condition change occurs.

[0036] Further, each of the constraint conditions includes a product parameter and a value range of the product parameter; the product parameter in the first constraint condition and the second constraint condition corresponding to the first constraint condition are the same;

[0037] When the comparison module is used to compare the first constraint condition with the second constraint condition to determine whether the first constraint condition satisfies the predetermined change condition, the comparison module is used to:

[0038] Determine whether the first value range of the first constraint condition can completely include the second value range of the second constraint condition;

[0039] If the first value range cannot completely include the second value range, it is determined that the first constraint condition satisfies the predetermined change condition.

[0040] Furthermore, when the statistical module is used to determine at least one new count value associated with the new count key, the statistical module is used to:

[0041] For each product batch produced by the target device under the constraint of the target device before the condition change occurs, determining whether the product batch satisfies each of the first constraint conditions;

[0042] Determine a product batch that satisfies each of the first constraint conditions as a target product batch;

[0043] For each target product batch, determining a count value associated with the target product batch before the condition change occurs;

[0044] The count value is determined as a new count value associated with the new count key.

[0045] Furthermore, when the statistical module is used to continue recording the number of products in the product batch corresponding to the new count value after the condition change occurs in each new count value, the statistical module is used to:

[0046] Determining whether the target product batch includes the product batch to be counted;

[0047] If the target product batch includes the product batch to be counted, the number of products in the product batch to be counted continues to be recorded at the new count value associated with the product batch to be counted;

[0048] If the target product batch does not include the product batch to be counted, a new count value is created and an association relationship is established between the new count value and the new count key, and between the new count value and the product batch to be counted;

[0049] The number of products in the product batch to be counted is recorded in the newly created count value; wherein the initial value of the newly created count value is a set value.

[0050] Furthermore, the constraint conditions also include product quantity restrictions; the product quantity statistics device also includes: a restriction module;

[0051] The restriction module is used to prohibit the target device from continuing to produce any product batch under the target device constraint if the sum of the count values ​​indexed by the count key corresponding to the target device constraint exceeds the product quantity limit.

[0052] Furthermore, the product parameters include at least one of the following: process, procedure, product manufacturing process, formula, data collection plan and customer information.

[0053] An embodiment of the present application also provides an electronic device, including: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the product quantity counting method as described above are performed.

[0054] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the product quantity counting method as described above are executed.

[0055] The embodiment of the present application provides a method and device for counting the number of products in a production process. For any first constraint condition that is changed in the target device constraint that has a condition change, it is determined whether there is a second constraint condition corresponding to the first constraint condition; wherein the first constraint condition is obtained after the second constraint condition is changed; the target device constraint is used to allow or prohibit the target device from producing the product batch when any product batch satisfies each constraint condition included therein; if there is a second constraint condition corresponding to the first constraint condition, the first constraint condition is compared with the second constraint condition to determine whether the first constraint condition satisfies a predetermined change condition; if there is a second constraint condition corresponding to the first constraint condition, the first constraint condition is compared with the second constraint condition to determine whether the first constraint condition satisfies a predetermined change condition; If at least one first constraint condition satisfies the predetermined change condition, a new counting key is set for the target device constraint; wherein the counting key is associated with the target device constraint and the counting key is associated with at least one counting value; the counting key is a unique serial number that indexes the counting value for the target device constraint; each counting value is associated with a product batch and is used to record the number of products in the product batch produced by the target device under the target device constraint; at least one new counting value associated with the new counting key is determined, and the number of products in the product batch corresponding to the new counting value after the condition change occurs continues to be recorded in each new counting value.

[0056] Through the above method, when the equipment constraint conditions change, it is possible to determine whether it is necessary to generate a new counting key by comparing the constraint conditions under the equipment constraint before and after the change, and record the product quantity in the count value corresponding to the new counting key after the condition change occurs; in this way, the efficiency of quantity counting can be improved, and the problems of product quantity counting errors and statistical omissions that occur when the equipment constraints change can be solved.

[0057] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0059] Figure 1 A flow chart of a method for counting product quantities provided in an embodiment of the present application is shown;

[0060] Figure 2 One of the structural schematic diagrams of a product quantity counting device provided in an embodiment of the present application is shown;

[0061] Figure 3 A second structural schematic diagram of a product quantity counting device provided in an embodiment of the present application is shown;

[0062] Figure 4 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0063] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, each other embodiment obtained by those skilled in the art without making creative work belongs to the scope of protection of the present application.

[0064] With the development of science and technology, in modern manufacturing plants, a Manufacturing Execution System (MES) is usually built to optimize the management of the entire production process from order placement to product completion through information transmission. In manufacturing plants, because the manufacturing methods of products are often more complicated, it is necessary to establish equipment constraints for each device in the MES system to ensure that equipment production meets management requirements. Each equipment constraint includes at least one constraint condition; each equipment constraint is used to allow or prohibit the target device from producing the product batch when the product batch meets each constraint condition included in the equipment constraint. During the production process, the MES system needs to count the number of products in each product batch produced by the equipment under each equipment constraint to achieve information management of the production process.

[0065] Research has found that as the production process progresses, the constraints under the equipment constraints will often change due to many reasons such as equipment upgrades, version updates, production debugging, etc. The existing product quantity statistics method cannot change the statistical value according to the changes in the constraints, which makes the MES system's statistics on the number of products incorrect and leads to statistical omissions; some quantity statistics methods set statistical values ​​for each constraint, resulting in a large number of repeated statistical data in the MES system, occupying a large amount of storage and computing resources, resulting in low statistical efficiency.

[0066] Therefore, the existing product quantity statistics method in the production process can no longer meet the needs of production and management.

[0067] Based on this, an embodiment of the present application provides a method and a device for counting the number of products in a production process, which can determine whether it is necessary to generate a new counting key by comparing the constraint conditions under the equipment constraints before and after the change when the equipment constraints change, and record the number of products in the count value corresponding to the new counting key after the condition change occurs; in this way, the efficiency of quantity counting can be improved, and the problems of product quantity counting errors and statistical omissions that occur when the equipment constraints change can be solved.

[0068] See also Figure 1 , Figure 1 This is a flow chart of a product quantity statistics method provided in an embodiment of the present application. Figure 1 As shown in , the product quantity counting method provided in the embodiment of the present application includes:

[0069] S101. For any first constraint condition that has been changed in the target device constraint whose condition has been changed, determine whether there is a second constraint condition that corresponds to the first constraint condition.

[0070] The first constraint condition is obtained after the second constraint condition is changed; the target device constraint is used to allow or prohibit the target device from producing the product batch when any product batch satisfies each constraint condition included therein.

[0071] It should be noted that each device in the MES system includes at least one device constraint, and each device constraint includes at least one constraint condition. When a product batch satisfies each constraint condition under a device constraint, it is determined that the product batch satisfies the device constraint; if the device constraint is a positive device constraint, the target device is allowed to produce the product batch; if the device constraint is a negative device constraint, the target device is prohibited from producing the product batch.

[0072] Among them, each constraint condition includes a product parameter and the value range of the product parameter; the product parameter includes at least one of the following items: process, process, product process, formula, data collection plan and customer information; illustratively, the constraint condition can be "process is 1 or 2" and "formula is K".

[0073] In one possible implementation, as the production process progresses, the target device constraints need to be conditionally changed due to equipment upgrades, version updates, production debugging, and many other reasons. At this time, the user can make conditional changes to the target device constraints through the device constraint setting interface, for example, modify the parameter value range of any constraint condition in the target device constraints, add new constraint conditions in the target device constraints, or delete the original constraint conditions in the target device constraints. After the user completes the settings, the user can save the modified constraint conditions to the MES system by clicking the "Save" or "Confirm" control to complete the change of the device constraints. The MES system can automatically determine whether the target device constraints have undergone conditional changes, which constraint conditions in the target device constraints have changed, and each first constraint condition obtained after the change corresponds to the second constraint condition before the change, and other information by comparing the data of the target device constraints.

[0074] In this step, it should be noted that the product parameters in the first constraint after the change and the corresponding second constraint before the change are the same; that is, in the embodiment of the present application, the change to a certain constraint only changes the parameter value range in the constraint. For example, the constraint "process is 1 or 2" is changed to "process is 3"; if there is no second constraint corresponding to the first constraint, it means that the product parameters in the first constraint are changed. For example, the constraint "process is 1 or 2" is changed to "formula is K", which is actually equivalent to deleting the original constraint and creating a new constraint; for another example, a new constraint "formula is K" is added, which means that no constraint is set for the product parameter "formula" under the target device constraint before the condition is changed.

[0075] S102: If there is a second constraint condition corresponding to the first constraint condition, compare the first constraint condition with the second constraint condition to determine whether the first constraint condition satisfies a predetermined change condition.

[0076] In a possible implementation, step S102 may include the following steps:

[0077] S1021. Determine whether the first value range of the first constraint condition can completely include the second value range of the second constraint condition.

[0078] S1022: If the first value range cannot completely include the second value range, determine that the first constraint condition satisfies the predetermined change condition.

[0079] In a possible implementation, by comparing the first value range of the first constraint condition with the second value range of the second constraint condition, it is determined whether the first value range can completely include the second value range. For example, if the constraint condition "process is 1" is modified to "process is 2", the first value range is 2 and the second value range is 1. At this time, the first value range cannot completely include the second value range; for another example, if the constraint condition "process is K or E" is modified to "process is K", the first value range is K and the second value range is K or E. At this time, the first value range cannot completely include the second value range. In other words, "the first value range cannot completely include the second value range" in the embodiments of the present application includes: the first value range does not include the second value range at all and the first value range can only include a part of the second value range.

[0080] S1022: If the first value range cannot completely include the second value range, determine that the first constraint condition satisfies the predetermined change condition.

[0081] S103: If there is at least one first constraint condition satisfying the predetermined change condition in the target device constraint, a new counting key is set for the target device constraint.

[0082] Among them, there is an association relationship between the counting key and the target device constraint, and between the counting key and at least one counting value respectively; the counting key is a unique serial number that indexes the counting value for the target device constraint; each counting value is associated with a product batch, which is used to record the number of products in the product batch produced by the target device under the target device constraint.

[0083] In this step, if there are multiple first constraints in the target device constraint, and there is at least one first constraint that satisfies the first constraint of the predetermined change condition, a new counting key is set for the target device constraint. The counting key can be set by time plus a serial number, such as 20211221007, to ensure that the counting key is a unique serial number under the target device constraint.

[0084] In a possible implementation, the association relationship between the count key and the target device constraint can be established through the data structure of a data table; a key-value pair is formed between the count key (key) and at least one count value (value), so that at least one count value can be indexed through the count key; when the number of products in a certain product batch is recorded in the count value, the batch number of the product batch can be recorded in the data table at the same time to establish an association relationship between each count value and the product batch corresponding to the count value.

[0085] In specific implementation, when a certain product batch is about to be put into production on the target device, the MES system will first determine whether the target device can produce the product batch based on all the equipment constraints under the target device; specifically, it can be set that if the product batch satisfies at least one positive equipment constraint and does not satisfy all reverse equipment constraints, the target device is allowed to produce the product batch. In the process of the target device producing the products of the product batch, the batch number of the product batch will be recorded; at the same time, each equipment constraint of the target device in the MES system is set with a corresponding counting key, and each counting key is associated with at least one counting value. For each equipment constraint satisfied by the product batch, when the target device produces the products of the product batch, the number of products of the product batch produced by the target device under the equipment constraint will be recorded through the counting value.

[0086] S104: Determine at least one new count value associated with the new count key, and continue to record in each new count value the number of products in the product batch corresponding to the new count value after the condition change occurs.

[0087] In a possible implementation, determining at least one new count value associated with the new count key in step S104 includes:

[0088] S1041. For each product batch produced by the target device under the constraint of the target device before the condition change occurs, determine whether the product batch satisfies each of the first constraint conditions.

[0089] S1042: Determine a product batch that satisfies each of the first constraint conditions as a target product batch.

[0090] S1043. For each target product batch, determine a count value associated with the target product batch before the condition change occurs.

[0091] S1044: Determine the count value as a new count value associated with the new count key.

[0092] It should be noted that, when a condition change occurs, the product batch that could originally be produced under the target device constraint may no longer meet the production requirements of the device constraint after the condition change. At this time, it is necessary to determine whether each product batch produced by the target device under the target device constraint before the condition change meets the target device constraint after the condition change, that is, whether each of the first constraints is met.

[0093] In a possible implementation, whether the product batch satisfies each of the first constraints may be determined by the following steps:

[0094] Step 1: Get the batch information of the product batch.

[0095] In a possible implementation, during the process of the target device producing the products of the product batch, the batch number of the product batch will be recorded; the batch information of the product batch can be found through the batch number.

[0096] Wherein, the batch information includes at least one product parameter and the value of each product parameter;

[0097] Step 2: for each first constraint condition, search the batch information for the first product parameter in the first constraint condition and the value of the first product parameter.

[0098] Step 3: If the value of the first product parameter in the batch information falls within the first value range in the first constraint condition, it is determined that the product batch satisfies the first constraint condition.

[0099] For example, for a first constraint condition "the process is 1 or 2", the first product parameter "process" is searched in the batch information; if the batch information includes the information "process = 1", it means that the value of the first product parameter falls within the first value range of the first constraint condition, and it is determined that the product batch meets the first constraint condition.

[0100] Furthermore, if a product batch satisfies each first constraint condition, it is determined as a target product batch; for each target product batch, the original count value associated with the target product batch before the condition change occurs is determined, and the original count value is inherited to the new count value associated with the new count key to continue counting the number of products in the product batch.

[0101] For example, the first constraint in the target device constraint after the condition change is "process is A". The corresponding second constraint is "process is A or B", the batch information of a certain product batch a includes "process is A", and the original count value corresponding to product batch a is 50; after the condition change occurs, the original count value 50 corresponding to product batch a is inherited to the new count value, and the new count value starts from 50 to continue counting the number of products in product batch a.

[0102] In a possible implementation, in step S104, continuing to record in each new count value the number of products in the product batch corresponding to the new count value after the condition change occurs includes:

[0103] S1045: Determine whether the target product batch includes the product batch to be counted.

[0104] S1046: If the target product batch includes the product batch to be counted, continue to record the number of products in the product batch to be counted at a new count value associated with the product batch to be counted.

[0105] S1047: If the target product batch does not include the product batch to be counted, create a new count value and establish an association relationship between the new count value and the new count key, and between the new count value and the product batch to be counted.

[0106] S1048. Record the number of products in the product batch to be counted in the newly created count value; wherein the initial value of the newly created count value is a set value.

[0107] In a possible implementation, when it is determined that a certain product batch meets the changed target device constraint and the target device is ready to produce the product batch, the number of products produced by the to-be-counted product batch under the target device constraint needs to be counted.

[0108] First, determine whether the product batch to be counted is the aforementioned target product batch (that is, the product batch to be counted is a product batch that has been produced under the constraints of the target device before the condition is changed, and the target device can still produce the product batch to be counted after the condition is changed); if the product batch to be counted is the aforementioned target product batch, then the count value corresponding to the product batch to be counted is determined through the association between the count value and the product batch to continue counting; if the product batch to be counted is not the aforementioned target product batch, it means that the target device has not produced the product batch under the constraints of the target device. At this time, it is necessary to create a new count value and establish an association between the new count value and the new count key, and between the new count value and the product batch to be counted; optionally, the set value is pre-set by the user according to production needs. For example, the set value can be 0, and the number of products in the product batch to be counted is counted from 0 in the newly created count value.

[0109] In a possible implementation, the constraint condition further includes a product quantity restriction; and the product quantity counting method further includes:

[0110] When the target device produces any product batch under the target device constraint, if the sum of the count values ​​indexed by the count key corresponding to the target device constraint exceeds the product quantity limit, the target device is prohibited from continuing to produce the product batch.

[0111] It should be noted that in some industrial production scenarios, a small amount of products often need to be produced first for testing or verification; at this time, the constraint condition also includes a product quantity limit. For example, a constraint condition under the target device constraint is "the production quantity of the product with formula K is less than 100 pieces". If the first product batch, the second product batch and the third product batch all meet the target device constraint; the target device produces 50 pieces of the first product batch and 30 pieces of the second product batch under the target device constraint, and then produces 20 pieces of the third product batch, if the target device continues to produce under the target device constraint, the sum of the count values ​​will exceed the product quantity limit of 100 pieces. Therefore, the target device is prohibited from continuing to produce the first product batch, the second product batch and the third product batch through the target device constraint.

[0112] Furthermore, when the target device constraint is changed, the product quantity limit in the constraint condition can also be changed. Corresponding to the above example, the constraint condition is modified to "the product with formula K has a production quantity of less than 150 pieces". In this case, there is no need to set a new counting key, and counting can continue in the count value associated with the original counting key.

[0113] In a possible implementation, if it is determined in step S101 that there is no second constraint condition corresponding to the first constraint condition, it means that the target device constraint did not restrict the value range of the first product parameter included in the first constraint condition to constitute a constraint condition before the condition was changed. For example, the first constraint condition is "the formula is K", and the target device constraint did not restrict the product parameter "formula" before the condition was changed. Then, the batch information of each product batch produced by the target device constraint before the condition was changed can have multiple values ​​for the product parameter "formula"; after the condition is changed, a new counting key can also be set for the target device constraint, and the product batch that meets each of the first constraint conditions is determined as the target product batch, and the original count value associated with the target product batch is determined as the new count value to continue to count the number of products. The specific implementation method can be referred to the above content and will not be repeated here; corresponding to the above example, at this time, it is equivalent to screening out the target product batch whose product parameter "formula" in the batch information has a value of "K" from each product batch produced before the condition is changed, and inheriting the count value of the target product batch.

[0114] The embodiment of the present application provides a method for counting the number of products in a production process. For any first constraint condition that is changed in a target device constraint that has a condition change, it is determined whether there is a second constraint condition corresponding to the first constraint condition; wherein the first constraint condition is obtained after the second constraint condition is changed; the target device constraint is used to allow or prohibit the target device from producing the product batch when any product batch satisfies each constraint condition included therein; if there is a second constraint condition corresponding to the first constraint condition, the first constraint condition is compared with the second constraint condition to determine whether the first constraint condition satisfies a predetermined change condition; if at least one of the target device constraints exists If the first constraint condition of the predetermined change condition is satisfied, a new counting key is set for the target device constraint; wherein the counting key is associated with the target device constraint and the counting key is associated with at least one counting value; the counting key is a unique serial number that indexes the counting value for the target device constraint; each counting value is associated with a product batch and is used to record the number of products of the product batch produced by the target device under the target device constraint; at least one new counting value associated with the new counting key is determined, and the number of products of the product batch corresponding to the new counting value after the condition change occurs continues to be recorded in each new counting value.

[0115] Through the above method, when the equipment constraint conditions change, it is possible to determine whether it is necessary to generate a new counting key by comparing the constraint conditions under the equipment constraint before and after the change, and record the product quantity in the count value corresponding to the new counting key after the condition change occurs; in this way, the efficiency of quantity counting can be improved, and the problems of product quantity counting errors and statistical omissions that occur when the equipment constraints change can be solved.

[0116] See also Figure 2 , Figure 3 , Figure 2 This is one of the structural schematic diagrams of a product quantity counting device provided in an embodiment of the present application. Figure 3 This is a second structural diagram of a product quantity counting device provided in an embodiment of the present application. Figure 2 As shown in , the product quantity counting device 200 includes:

[0117] The determination module 210 is used to determine whether there is a second constraint condition corresponding to any first constraint condition in the target device constraint that has undergone a condition change, wherein the first constraint condition is obtained after the second constraint condition is changed; the target device constraint is used to allow or prohibit the target device from producing the product batch when any product batch satisfies each constraint condition included therein;

[0118] A comparison module 220, configured to compare the first constraint condition with the second constraint condition when there is a second constraint condition corresponding to the first constraint condition, to determine whether the first constraint condition satisfies a predetermined change condition;

[0119] A setting module 230 is used to set a new counting key for the target device constraint when there is at least one first constraint condition satisfying the predetermined change condition in the target device constraint; wherein the counting key is associated with the target device constraint and the counting key is associated with at least one counting value; the counting key is a unique serial number for indexing the counting value for the target device constraint; each counting value is associated with a product batch and is used to record the number of products of the product batch produced by the target device under the target device constraint;

[0120] The statistics module 240 is used to determine at least one new count value associated with the new count key, and continue to record in each new count value the number of products in the product batch corresponding to the new count value after the condition change occurs.

[0121] Further, each of the constraint conditions includes a product parameter and a value range of the product parameter; the product parameter in the first constraint condition and the second constraint condition corresponding to the first constraint condition are the same;

[0122] When the comparison module 220 is used to compare the first constraint condition with the second constraint condition to determine whether the first constraint condition satisfies a predetermined change condition, the comparison module 220 is used to:

[0123] Determine whether the first value range of the first constraint condition can completely include the second value range of the second constraint condition;

[0124] If the first value range cannot completely include the second value range, it is determined that the first constraint condition satisfies the predetermined change condition.

[0125] Furthermore, when the statistical module 240 is used to determine at least one new count value associated with the new count key, the statistical module 240 is used to:

[0126] For each product batch produced by the target device under the constraint of the target device before the condition change occurs, determining whether the product batch satisfies each of the first constraint conditions;

[0127] Determine a product batch that satisfies each of the first constraint conditions as a target product batch;

[0128] For each target product batch, determining a count value associated with the target product batch before the condition change occurs;

[0129] The count value is determined as a new count value associated with the new count key.

[0130] Furthermore, when the statistical module 240 is used to continue recording the number of products in the product batch corresponding to the new count value after the condition change occurs in each new count value, the statistical module 240 is used to:

[0131] Determining whether the target product batch includes the product batch to be counted;

[0132] If the target product batch includes the product batch to be counted, the number of products in the product batch to be counted continues to be recorded at the new count value associated with the product batch to be counted;

[0133] If the target product batch does not include the product batch to be counted, a new count value is created and an association relationship is established between the new count value and the new count key, and between the new count value and the product batch to be counted;

[0134] The number of products in the product batch to be counted is recorded in the newly created count value; wherein the initial value of the newly created count value is a set value.

[0135] Furthermore, the constraints also include product quantity restrictions; Figure 3 As shown, the product quantity counting device further includes: a limiting module 250;

[0136] The restriction module 250 is used to prohibit the target device from continuing to produce any product batch under the target device constraint if the sum of the count values ​​indexed by the count key corresponding to the target device constraint exceeds the product quantity limit.

[0137] Furthermore, the product parameters include at least one of the following: process, procedure, product manufacturing process, formula, data collection plan and customer information.

[0138] An embodiment of the present application provides a device for counting the number of products in a production process. For any first constraint condition that is changed in a target device constraint that has a condition change, it is determined whether there is a second constraint condition corresponding to the first constraint condition; wherein the first constraint condition is obtained after the second constraint condition is changed; the target device constraint is used to allow or prohibit the target device from producing the product batch when any product batch satisfies each constraint condition included therein; if there is a second constraint condition corresponding to the first constraint condition, the first constraint condition is compared with the second constraint condition to determine whether the first constraint condition satisfies a predetermined change condition; if at least one of the target device constraints exists If the first constraint condition of the predetermined change condition is satisfied, a new counting key is set for the target device constraint; wherein the counting key is associated with the target device constraint and the counting key is associated with at least one counting value; the counting key is a unique serial number that indexes the counting value for the target device constraint; each counting value is associated with a product batch and is used to record the number of products of the product batch produced by the target device under the target device constraint; at least one new counting value associated with the new counting key is determined, and the number of products of the product batch corresponding to the new counting value after the condition change occurs continues to be recorded in each new counting value.

[0139] Through the above method, when the equipment constraint conditions change, it is possible to determine whether it is necessary to generate a new counting key by comparing the constraint conditions under the equipment constraint before and after the change, and record the product quantity in the count value corresponding to the new counting key after the condition change occurs; in this way, the efficiency of quantity counting can be improved, and the problems of product quantity counting errors and statistical omissions that occur when the equipment constraints change can be solved.

[0140] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 4As shown in , the electronic device 400 includes a processor 410 , a memory 420 and a bus 430 .

[0141] The memory 420 stores machine-readable instructions executable by the processor 410. When the electronic device 400 is running, the processor 410 communicates with the memory 420 via the bus 430. When the machine-readable instructions are executed by the processor 410, the above-mentioned Figure 1 The steps of the product quantity counting method in the method embodiment shown, the specific implementation method can be found in the method embodiment, and will not be repeated here.

[0142] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figure 1 The steps of the product quantity counting method in the method embodiment shown, the specific implementation method can be found in the method embodiment, and will not be repeated here.

[0143] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0144] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0145] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0146] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0147] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0148] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for counting the number of products in a production process, characterized in that: The product quantity counting method comprises: For any first constraint condition that is changed in the target device constraint that has undergone a condition change, determine whether there is a second constraint condition corresponding to the first constraint condition; wherein the first constraint condition is obtained after the second constraint condition is changed; the target device constraint is used to allow or prohibit the target device from producing the product batch when any product batch satisfies each constraint condition included therein; If there is a second constraint condition corresponding to the first constraint condition, the first constraint condition is compared with the second constraint condition to determine whether the first constraint condition satisfies a predetermined change condition; If there is at least one first constraint condition satisfying the predetermined change condition in the target device constraint, a new counting key is set for the target device constraint; wherein the counting key is associated with the target device constraint and the counting key is associated with at least one counting value; the counting key is a unique serial number for indexing the counting value for the target device constraint; each counting value is associated with a product batch and is used to record the number of products of the product batch produced by the target device under the target device constraint; At least one new count value associated with the new count key is determined, and the number of products in the product batch corresponding to the new count value after the condition change continues to be recorded in each new count value.

2. The product quantity counting method according to claim 1, characterized in that: Each of the constraint conditions includes a product parameter and a value range of the product parameter; the product parameter in the first constraint condition is the same as the product parameter in the second constraint condition corresponding to the first constraint condition; The comparing the first constraint condition with the second constraint condition to determine whether the first constraint condition satisfies a predetermined change condition includes: Determine whether the first value range of the first constraint condition can completely include the second value range of the second constraint condition; If the first value range cannot completely include the second value range, it is determined that the first constraint condition satisfies the predetermined change condition.

3. The product quantity counting method according to claim 2, characterized in that: The determining of at least one new count value associated with the new count key comprises: For each product batch produced by the target device under the constraint of the target device before the condition change occurs, determining whether the product batch satisfies each of the first constraint conditions; Determine a product batch that satisfies each of the first constraint conditions as a target product batch; For each target product batch, determining a count value associated with the target product batch before the condition change occurs; The count value is determined as a new count value associated with the new count key.

4. The product quantity counting method according to claim 3, characterized in that: The step of continuing to record in each new count value the number of products in the product batch corresponding to the new count value after the condition change occurs includes: Determining whether the target product batch includes a product batch to be counted; If the target product batch includes the product batch to be counted, determine the original count value associated with the product batch to be counted before the condition change occurs, inherit the original count value to the new count value associated with the new count key, and continue to record the number of products in the product batch to be counted in the new count value associated with the product batch to be counted; If the target product batch does not include the product batch to be counted, a new count value is created and an association relationship is established between the new count value and the new count key, and between the new count value and the product batch to be counted; The number of products in the product batch to be counted is recorded in the newly created count value; wherein the initial value of the newly created count value is a set value.

5. The product quantity counting method according to claim 2, characterized in that: The constraint conditions also include product quantity restrictions; the product quantity statistics method also includes: When the target device produces any product batch under the target device constraint, if the sum of the count values ​​indexed by the count key corresponding to the target device constraint exceeds the product quantity limit, the target device is prohibited from continuing to produce the product batch.

6. The product quantity counting method according to claim 3, characterized in that: The determining, for each product batch produced by the target device under the constraint of the target device before the condition change occurs, whether the product batch satisfies each of the first constraint conditions comprises: Obtaining batch information of the product batch; the batch information includes at least one product parameter and the value of each product parameter; For each first constraint condition, searching the batch information for the first product parameter in the first constraint condition and the value of the first product parameter; If the value of the first product parameter in the batch information falls within the first value range in the first constraint condition, it is determined that the product batch meets the first constraint condition.

7. The product quantity counting method according to claim 2, characterized in that: The product parameters include at least one of the following: process, procedure, product manufacturing process, formula, data collection plan and customer information.

8. A device for counting the number of products in a production process, characterized in that: The product quantity counting device comprises: A determination module, for determining, for any first constraint condition changed in the target device constraint that has undergone a condition change, whether there is a second constraint condition corresponding to the first constraint condition; wherein the first constraint condition is obtained after the second constraint condition is changed; the target device constraint is used to allow or prohibit the target device from producing the product batch when any product batch satisfies each constraint condition included therein; A comparison module, configured to compare the first constraint condition with the second constraint condition when there is a second constraint condition corresponding to the first constraint condition, to determine whether the first constraint condition satisfies a predetermined change condition; A setting module, configured to set a new counting key for the target device constraint when there is at least one first constraint condition satisfying the predetermined change condition in the target device constraint; wherein the counting key and the target device constraint, and the counting key and at least one counting value are associated with each other; the counting key is a unique serial number for indexing the counting value for the target device constraint; each counting value is associated with a product batch, and is configured to record the number of products of the product batch produced by the target device under the target device constraint; The statistics module is used to determine at least one new count value associated with the new count key, and continue to record in each new count value the number of products in the product batch corresponding to the new count value after the condition change occurs.

9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and the machine-readable instructions are executed by the processor to execute the product quantity counting method as described in any one of claims 1 to 7.

10. 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 product quantity counting method according to any one of claims 1 to 7 is executed.

Citation Information

Patent Citations

  • Semiconductor production constraint control method

    CN105182916A

  • A formula batch tracking system and an operating method thereof

    CN107464123A