CN114296415A - Product quantity statistical method and product quantity statistical device in production process - Google Patents

Product quantity statistical method and product quantity statistical device in production process Download PDF

Info

Publication number
CN114296415A
CN114296415A CN202111643421.2A CN202111643421A CN114296415A CN 114296415 A CN114296415 A CN 114296415A CN 202111643421 A CN202111643421 A CN 202111643421A CN 114296415 A CN114296415 A CN 114296415A
Authority
CN
China
Prior art keywords
constraint
product
constraint condition
condition
batch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111643421.2A
Other languages
Chinese (zh)
Inventor
盛旺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Saimeite Software Technology Co ltd
Original Assignee
Shanghai Saimeite Software Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Saimeite Software Technology Co ltd filed Critical Shanghai Saimeite Software Technology Co ltd
Priority to CN202111643421.2A priority Critical patent/CN114296415A/en
Publication of CN114296415A publication Critical patent/CN114296415A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • General Factory Administration (AREA)

Abstract

The application provides a product quantity statistical method and a product quantity statistical device in a production process, which comprise the following steps: determining whether a second constraint condition corresponding to any first constraint condition of changed target equipment constraints of which the conditions are changed exists or not; if yes, comparing the first constraint condition with the second constraint condition to determine whether the first constraint condition meets a preset change condition; if at least one first constraint condition meeting a preset change condition exists in the target equipment constraint, setting a new counting key for the target equipment constraint; and determining at least one new counting value associated with the new counting key, and continuously recording the product quantity of the product batch corresponding to the new counting value after the condition change occurs in each new counting value. Therefore, the quantity counting efficiency can be improved, and the problems of product quantity counting errors and counting loss when the equipment constraint changes are solved.

Description

Product quantity statistical method and product quantity statistical device in production process
Technical Field
The present application relates to the field of production control technologies, and in particular, to a product quantity statistical method and a product quantity statistical apparatus in a production process.
Background
With the development of technology, in modern Manufacturing factories, Manufacturing Execution Systems (MES) are usually constructed to optimally manage the entire production process from order placement to product completion through information transfer. In manufacturing plants, because the manufacturing process for the product is often complex, equipment constraints are established for each piece of equipment in the MES system to make the production of the equipment meet the regulatory requirements. Wherein each device constraint comprises at least one constraint condition; each equipment constraint is used to allow or prohibit the target equipment from producing the product batch when the product batch meets each constraint included in the equipment constraint. Taking a semiconductor plant as an example, there are on average about 500 equipment constraints per equipment in the MES system, with as few as one, and as many as tens of constraints per equipment constraint. In the production process, the MES system needs to count the product quantity of each product batch produced by the target equipment under the constraint of each equipment so as to realize the information management of the production process.
Research shows that with the advance of the production process, the constraint conditions under the constraint of the equipment can be changed frequently due to various reasons such as equipment upgrading, version updating, production debugging and the like. The existing product quantity statistical method can not change the statistical value according to the change of the constraint condition, so that the MES system makes the statistics of the product quantity wrong, and the statistics is lost; the other quantity statistical method sets respective statistical values for each constraint condition, so that a large amount of repeated statistical data exist in the MES system, a large amount of storage and calculation resources are occupied, and the statistical efficiency is low. Therefore, the existing statistical method for the product quantity in the production process cannot meet the requirements of production and management.
Disclosure of Invention
In view of the above, an object of the present application is to provide a product quantity statistical method and a product quantity statistical apparatus in a production process, which can determine whether a new count key needs to be generated by comparing constraint conditions under the device constraints before and after a change when a device constraint occurrence condition is changed, and record the product quantity in a count value corresponding to the new count key after the occurrence condition is changed; therefore, the quantity counting efficiency can be improved, and the problems of product quantity counting errors and counting loss when the equipment constraint changes are solved.
The embodiment of the application provides a product quantity statistical method in a production process, which comprises the following steps:
determining whether a second constraint condition corresponding to any first constraint condition of changed target equipment constraints of which the conditions are changed exists or not; wherein the first constraint condition is obtained after the second constraint condition is changed; the target equipment constraint is used for allowing or forbidding the target equipment to produce the product batch when any product batch meets each constraint condition included by the target equipment constraint;
if a second constraint condition corresponding to the first constraint condition exists, comparing the first constraint condition with the second constraint condition, and determining whether the first constraint condition meets a preset change condition;
if at least one first constraint condition meeting the preset change condition exists in the target equipment constraint, setting a new counting key for the target equipment constraint; wherein, the counting key and the target device constraint respectively have an association relationship, and the counting key and at least one counting value respectively have an association relationship; the count key is a unique serial number that indexes the count value for the target device constraint; each counting value has an association relationship with one product batch and is used for recording the product quantity of the product batch produced by the target equipment under the constraint of the target equipment;
and determining at least one new counting value associated with the new counting key, and continuously recording the product quantity of the product batch corresponding to the new counting value after the condition change occurs in each new counting value.
Furthermore, each constraint condition comprises a product parameter and a value range of the product parameter; the product parameters in the first constraint condition and the second constraint condition corresponding to the first constraint condition are the same;
the comparing the first constraint condition with the second constraint condition to determine whether the first constraint condition satisfies a predetermined modification condition includes:
determining whether the first value range of the first constraint condition can completely include the second value range of the second constraint condition;
and if the first value range cannot completely include the second value range, determining that the first constraint condition meets the preset change condition.
Further, the determining at least one new count value associated with the new count key comprises:
determining whether each product batch produced by the target equipment under the constraint of the target equipment before the condition change meets each first constraint condition;
determining a product batch meeting each first constraint condition 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.
Further, the continuously recording the product quantity of the product batch corresponding to the new count value after the condition change occurs in each new count value includes:
determining whether the target product batch comprises the product batch to be counted;
if the target product batch comprises the product batch to be counted, continuously recording the product quantity of the product batch to be counted in a new counting value associated with the product batch to be counted;
if the target product batch does not comprise the product batch to be counted, establishing a new counting value and establishing the association relationship between the new counting value and the new counting key and between the new counting value and the product batch to be counted;
recording the product quantity of the product batch to be counted in the newly-built counting value; wherein, the initial value of the newly-built counting value is a set value.
Further, the constraint condition also comprises a product quantity limit; the product quantity statistical method further comprises the following steps:
when the target device produces any product batch under the constraint of the target device, if the sum of the count values indexed by the count key corresponding to the constraint of the target device exceeds the product quantity limit, the target device is prohibited from continuing to produce the product batch.
Further, the determining, for each product batch that the target device produces under the constraint of the target device before the condition change occurs, whether the product batch meets each of the first constraint conditions includes:
obtaining batch information of the product batch; the batch information comprises at least one product parameter and the value of each product parameter;
for each first constraint condition, searching a first product parameter in the first constraint condition and a value of the first product parameter in the batch information;
and if the value of the first product parameter in the batch information falls into a first value range in the first constraint condition, determining that the product batch meets the first constraint condition.
Further, the product parameter includes at least one of: processes, procedures, product manufacturing procedures, recipes, data collection plans, and customer information.
The embodiment of the present application further provides a product quantity statistics device in the production process, the product quantity statistics device includes:
the determining module is used for determining whether a second constraint condition corresponding to any first constraint condition of the changed target equipment constraint with changed conditions exists or not; wherein the first constraint condition is obtained after the second constraint condition is changed; the target equipment constraint is used for allowing or forbidding the target equipment to produce the product batch when any product batch meets each constraint condition included by the target equipment constraint;
the comparison module is used for comparing the first constraint condition with the second constraint condition when the second constraint condition corresponding to the first constraint condition exists, and determining whether the first constraint condition meets a preset change condition;
the setting module is used for setting a new counting key for the target equipment constraint when at least one first constraint condition meeting the preset change condition exists in the target equipment constraint; wherein, the counting key and the target device constraint respectively have an association relationship, and the counting key and at least one counting value respectively have an association relationship; the count key is a unique serial number that indexes the count value for the target device constraint; each counting value has an association relationship with one product batch and is used for recording the product quantity of the product batch produced by the target equipment under the constraint of the target equipment;
and the counting module is used for determining at least one new counting value associated with the new counting key and continuously recording the product quantity of the product batch corresponding to the new counting value after the condition change occurs in each new counting value.
Furthermore, each constraint condition comprises a product parameter and a value range of the product parameter; the product parameters in the first constraint condition and the second constraint condition corresponding to the first constraint condition are the same;
the comparing module is configured to, when the comparing module is configured to compare the first constraint condition with the second constraint condition and determine whether the first constraint condition satisfies a predetermined change condition, the comparing module is configured to:
determining whether the first value range of the first constraint condition can completely include the second value range of the second constraint condition;
and if the first value range cannot completely include the second value range, determining that the first constraint condition meets the preset change condition.
Further, the statistics module, when configured to determine at least one new count value associated with the new count key, is configured to:
determining whether each product batch produced by the target equipment under the constraint of the target equipment before the condition change meets each first constraint condition;
determining a product batch meeting each first constraint condition 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.
Further, when the counting module is configured to continuously record, in each new count value, the number of products in the product batch corresponding to the new count value after the condition is changed, the counting module is configured to:
determining whether the target product batch comprises the product batch to be counted;
if the target product batch comprises the product batch to be counted, continuously recording the product quantity of the product batch to be counted in a new counting value associated with the product batch to be counted;
if the target product batch does not comprise the product batch to be counted, establishing a new counting value and establishing the association relationship between the new counting value and the new counting key and between the new counting value and the product batch to be counted;
recording the product quantity of the product batch to be counted in the newly-built counting value; wherein, the initial value of the newly-built counting value is a set value.
Further, the constraint condition also comprises a product quantity limit; the product quantity counting device further comprises: a restriction module;
the limiting module is configured to prohibit the target device from continuing to produce any product batch if a sum of the count values indexed by the count key corresponding to the target device constraint exceeds the product quantity limit when the target device produces any product batch under the target device constraint.
Further, the product parameter includes at least one of: processes, procedures, product manufacturing procedures, recipes, data collection plans, and customer information.
An embodiment of the present application further provides an electronic device, including: a processor, a memory and a bus, the memory storing machine readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is operating, the machine readable instructions when executed by the processor performing the steps of the product quantity statistical method as described above.
Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program performs the steps of the product quantity statistical method as described above.
According to the product quantity statistical method and the product quantity statistical device in the production process, whether a second constraint condition corresponding to a first constraint condition exists or not is determined according to any changed first constraint condition in a target equipment constraint with changed conditions; wherein the first constraint condition is obtained after the second constraint condition is changed; the target equipment constraint is used for allowing or forbidding the target equipment to produce the product batch when any product batch meets each constraint condition included by the target equipment constraint; if a second constraint condition corresponding to the first constraint condition exists, comparing the first constraint condition with the second constraint condition, and determining whether the first constraint condition meets a preset change condition; if at least one first constraint condition meeting the preset change condition exists in the target equipment constraint, setting a new counting key for the target equipment constraint; wherein, the counting key and the target device constraint respectively have an association relationship, and the counting key and at least one counting value respectively have an association relationship; the count key is a unique serial number that indexes the count value for the target device constraint; each counting value has an association relationship with one product batch and is used for recording the product quantity of the product batch produced by the target equipment under the constraint of the target equipment; and determining at least one new counting value associated with the new counting key, and continuously recording the product quantity of the product batch corresponding to the new counting value after the condition change occurs in each new counting value.
By the method, when the equipment constraint occurrence condition is changed, whether a new counting key needs to be generated or not is determined by comparing constraint conditions under the equipment constraint before and after the change, and the product quantity is recorded in the counting value corresponding to the new counting key after the condition change occurs; therefore, the quantity counting efficiency can be improved, and the problems of product quantity counting errors and counting loss when the equipment constraint changes are solved.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
FIG. 1 is a flow chart illustrating a product quantity statistics method provided by an embodiment of the present application;
FIG. 2 is a schematic structural diagram of a product quantity counting apparatus according to an embodiment of the present disclosure;
fig. 3 is a second schematic structural diagram of a product quantity counting apparatus according to an embodiment of the present disclosure;
fig. 4 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. Every other embodiment that can be obtained by a person skilled in the art without making creative efforts based on the embodiments of the present application falls within the protection scope of the present application.
With the development of technology, in modern Manufacturing factories, Manufacturing Execution Systems (MES) are usually constructed to optimally manage the entire production process from order placement to product completion through information transfer. In manufacturing plants, because the manufacturing process for the product is often complex, equipment constraints are established for each piece of equipment in the MES system to make the production of the equipment meet the regulatory requirements. Wherein each device constraint comprises at least one constraint condition; each equipment constraint is used to allow or prohibit the target equipment from producing the product batch when the product batch meets each constraint included in the equipment constraint. During the production process, the MES system needs to count the product quantity of each product batch produced by the equipment under the constraint of each equipment so as to realize the information management of the production process.
Research shows that with the advance of the production process, the constraint conditions under the constraint of the equipment can be changed frequently due to various reasons such as equipment upgrading, version updating, production debugging and the like. The existing product quantity statistical method can not change the statistical value according to the change of the constraint condition, so that the MES system makes the statistics of the product quantity wrong, and the statistics is lost; the other quantity statistical method sets a statistical value for each constraint condition, so that a large amount of repeated statistical data exists in the MES system, a large amount of storage and calculation resources are occupied, and the statistical efficiency is low.
Therefore, the existing statistical method for the product quantity in the production process cannot meet the requirements of production and management.
Based on this, the embodiment of the application provides a product quantity statistical method and a product quantity statistical device in a production process, which can determine whether a new counting key needs to be generated or not by comparing constraint conditions under the equipment constraint before and after the change when the equipment constraint occurs, and record the product quantity in a counting value corresponding to the new counting key after the occurrence condition is changed; therefore, the quantity counting efficiency can be improved, and the problems of product quantity counting errors and counting loss when the equipment constraint changes are solved.
Referring to fig. 1, fig. 1 is a flowchart illustrating a product quantity statistical method according to an embodiment of the present disclosure. As shown in fig. 1, the product quantity statistical method provided in the embodiment of the present application includes:
s101, aiming at any first constraint condition changed in the target equipment constraint with changed conditions, determining whether a second constraint condition corresponding to the first constraint condition exists.
Wherein the first constraint condition is obtained after the second constraint condition is changed; the target device constraints are used to allow or prohibit the target device from producing any product lot when the product lot satisfies each constraint included in the target device constraints.
It should be noted that each equipment in the MES system includes at least one equipment constraint, each equipment constraint includes at least one constraint condition, and when a certain product batch satisfies each constraint condition under a certain equipment constraint, it is determined that the product batch satisfies the equipment constraint; if the equipment constraint is a forward equipment constraint, allowing the target equipment to produce the product batch; if the equipment constraint is a negative equipment constraint, the target equipment is prohibited from producing the product batch.
Each constraint condition comprises a product parameter and a value range of the product parameter; the product parameter includes at least one of: processes, working procedures, product manufacturing procedures, formulas, data acquisition plans and customer information; for example, the constraint may be "procedure 1 or 2" and "recipe K".
In one possible implementation, as the production process advances, conditional changes to target equipment constraints are required for many reasons, such as equipment upgrades, version updates, production commissioning, etc. At this time, the user may change the conditions of the target device constraints through the setting interface of the device constraints, for example, modify the parameter value range of any constraint condition in the target device constraints, add a new constraint condition in the target device constraints, or delete the original constraint condition in the target device constraints. After the user completes the setting, the modified constraint conditions can be saved in the MES system by clicking a 'save' or 'confirm' control so as to complete the change of the equipment constraint. The MES system can automatically determine whether the target equipment constraint has changed conditions, which constraint conditions in the target equipment constraint have changed, and obtain information such as a second constraint condition before change corresponding to the first constraint condition after each change by comparing the data of the target equipment constraint and the like.
In this step, it should be noted that the product parameters in the first constraint after the change and the second constraint before the change corresponding to the first constraint after the change are the same; that is to say, in the embodiment of the present application, only the parameter value range in a certain constraint condition is changed for the change of the constraint condition, and exemplarily, the "procedure of 1 or 2" of the constraint condition is modified to "procedure of 3"; if the second constraint condition corresponding to the first constraint condition does not exist, the product parameter in the first constraint condition is changed, for example, the constraint condition 'procedure is 1 or 2' is modified to 'formula is K', which is actually equivalent to deleting the original constraint condition and creating a new constraint condition; for another example, if a constraint condition "recipe is K" is added, it means that the constraint condition is not set for the product parameter "recipe" under the constraint of the target device before the condition is changed.
S102, if a second constraint condition corresponding to the first constraint condition exists, comparing the first constraint condition with the second constraint condition, and determining whether the first constraint condition meets a preset change condition.
In one possible implementation, step S102 may include the following steps:
and S1021, determining whether the first value range of the first constraint condition can completely comprise the second value range of the second constraint condition.
S1022, if the first value range cannot completely include the second value range, determining that the first constraint condition satisfies the predetermined change condition.
In a possible implementation manner, it is determined whether the first value range can completely include the second value range by comparing the first value range of the first constraint condition with the second value range of the second constraint condition. For example, if the constraint condition "procedure is 1" is modified to "procedure is 2", the first value range is 2, the second value range is 1, and at this time, the first value range cannot completely include the second value range; for another example, if the constraint condition "procedure is K or E" is modified to "procedure is K", the first value range is K, and the second value range is K or E, and at this time, the first value range cannot completely include the second value range. That is to say, the phrase "the first value range cannot completely include the second value range" in the embodiment 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 portion of the second value range.
S1022, if the first value range cannot completely include the second value range, determining that the first constraint condition satisfies the predetermined change condition.
S103, if at least one first constraint condition meeting the preset change condition exists in the target equipment constraint, setting a new counting key for the target equipment constraint.
Wherein, the counting key and the target device constraint respectively have an association relationship, and the counting key and at least one counting value respectively have an association relationship; the count key is a unique serial number that indexes the count value for the target device constraint; and each counting value has an association relationship with one product batch and is used for recording the product quantity of the product batch produced by the target equipment under the constraint of the target equipment.
In this step, if there are a plurality of first constraints in the target device constraint and there is at least one first constraint satisfying the predetermined change condition, a new count key is set for the target device constraint. The setting method of the count key may be time plus serial number, such as 20211221007, to ensure that the count key is a unique serial number under the constraint of the target device.
In one possible embodiment, the association relationship between the count key and the target device constraint may be established by a data structure of a data table; the counting key (key) and the at least one counting value (value) form a key value pair, so that the at least one counting value can be indexed through the counting key; when the product quantity of 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, so as to establish the association relationship between each count value and the product batch corresponding to the count value.
In specific implementation, when a certain product batch is to be put into the target equipment for production, the MES system first determines whether the target equipment can produce the product batch according to all equipment constraints under the target equipment; specifically, it may be arranged to allow the target equipment to produce the product lot if the product lot satisfies at least one forward equipment constraint and does not satisfy all reverse equipment constraints. Recording the batch number of the product batch in the process of producing the product of the product batch by the target equipment; meanwhile, each equipment constraint of the target equipment in the MES system is provided with a corresponding counting key, and each counting key is respectively associated with at least one counting value. For each equipment constraint satisfied by the product batch, when the target equipment produces the product of the product batch, the number of the product batch produced by the target equipment under the equipment constraint is recorded by the counting value.
S104, determining at least one new count value associated with the new count key, and continuously recording the product quantity of the product batch corresponding to the new count value after the condition change occurs in each new count value.
In a possible implementation, the determining at least one new count value associated with the new count key in step S104 includes:
s1041, determining whether each product batch produced by the target device under the constraint of the target device before the condition change meets each first constraint condition.
S1042, determining the product batch meeting each first constraint condition as a target product batch.
S1043, determining, for each target product batch, a count value associated with the target product batch before the condition change occurs.
S1044, determining the count value as a new count value associated with the new count key.
When the condition is changed, the product lot originally capable of being produced under the target equipment constraint may not meet the production requirement of the equipment constraint after the condition is changed. At this time, it is necessary to determine whether each product lot produced by the target device under the constraint of the target device before the condition change meets the constraint of the target device after the condition change, that is, whether each first constraint condition is met.
In one possible embodiment, it may be determined whether the product lot satisfies each of the first constraints by:
step 1, obtaining batch information of the product batch.
In one possible embodiment, during the process of producing the product of the product batch by the target device, the batch number of the product batch is recorded; the batch information of the product batch can be found through the batch number.
The batch information comprises at least one product parameter and the value of each product parameter;
and 2, aiming at each first constraint condition, searching a first product parameter in the first constraint condition and a value of the first product parameter in the batch information.
And 3, if the value of the first product parameter in the batch information falls into a first value range in the first constraint condition, determining that the product batch meets the first constraint condition.
Illustratively, if a certain first constraint condition "procedure" is 1 or 2 ", a first product parameter" procedure "is searched in the batch information; if the batch information includes information of "procedure ═ 1", it is described that the value of the first product parameter falls within the first value range in the first constraint condition, and it is determined that the product batch meets the first constraint condition.
Further, if the product batch meets each first constraint condition, determining the product batch as a target product batch; for each target product batch, determining an original count value associated with the target product batch before the condition change occurs, and inheriting the original count value into a new count value associated with a new count key to continue counting the number of products of the product batch.
Illustratively, the first constraint in the target equipment constraint after the condition change is "process is a". The corresponding second constraint condition is that the process is A or B, the batch information of a certain product batch a comprises the process is A, and the original count value corresponding to the product batch a is 50; then, after the condition is changed, inheriting the original count value 50 corresponding to the product batch a into a new count value, and continuously counting the product quantity of the product batch a from 50 by the new count value.
In one possible embodiment, the step S104 of continuously recording the product quantity of the product batch corresponding to the new count value after the condition change occurs in each new count value includes:
s1045, determining whether the target product batch comprises the product batch to be counted.
S1046, if the target product batch comprises the product batch to be counted, continuously recording the product quantity of the product batch to be counted in a new counting value associated with the product batch to be counted.
S1047, if the target product batch does not include the product batch to be counted, newly establishing a new counting value and establishing the association relationship between the new counting value and the new counting key and between the new counting value and the product batch to be counted.
S1048, recording the product quantity of the product batch to be counted in the newly-built counting value; wherein, the initial value of the newly-built counting value is a set value.
In one possible embodiment, when the target device is ready to produce a certain product batch after determining that the certain product batch meets the changed target device constraint, the number of products produced by the certain product batch to be counted under the target device constraint needs to be counted.
First, determining whether the product lot to be counted is the target product lot (i.e., the product lot to be counted is a product lot that has been produced under the constraint of the target device before the condition change, and the target device can still count the product lot after the condition change); if the product batch to be counted is the target product batch, determining a counting value corresponding to the product batch to be counted to continue counting according to the association relationship between the counting value and the product batch; if the product batch to be counted is not the target product batch, indicating that the target device does not produce the product batch under the constraint of the target device, at this time, a new count value needs to be newly established, and 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 is established; optionally, the set value is preset by a user according to production needs, for example, the set value may be 0, and then the product quantity of the product batch to be counted is counted from 0 in the newly-created count value.
In a possible embodiment, said constraint also comprises a product quantity limit; the product quantity statistical method further comprises the following steps:
when the target device produces any product batch under the constraint of the target device, if the sum of the count values indexed by the count key corresponding to the constraint of the target device exceeds the product quantity limit, the target device is prohibited from continuing to produce the product batch.
It should be noted that in some scenarios of industrial production, a small amount of products are often produced for testing or verification; in this case, the constraint may also include a product quantity limit, and the target equipment may be constrained by "a product with a formula of K, and the production quantity is less than 100 sheets". If the first product lot, the second product lot, and the third product lot all satisfy the target equipment constraint; the target device is constrained by the target device to produce the first product batch for 50 pieces, produce the second product batch for 30 pieces, and produce the third product batch for 20 pieces, and if the target device continues to produce under the constraint of the target device, the sum of the count values will exceed the product quantity limit for 100 pieces, so the target device is prohibited from continuing to produce the first product batch, the second product batch, and the third product batch.
Further, when the target device constraint changes the condition, the limit of the number of products in the constraint condition may also be changed, and corresponding to the above example, the constraint condition is modified to "the product with formula K and the number of produced products is less than 150", in which case, it is also not necessary to set a new count key, and the counting is continued in the count value associated with the original count key.
In a possible embodiment, if it is determined in step S101 that there is no second constraint condition corresponding to the first constraint condition, which indicates that the target device constraint does not limit the value range of the first product parameter included in the first constraint condition before the condition is changed to form the constraint condition, for example, the first constraint condition is "recipe K", and the target device constraint does not limit the product parameter of "recipe" before the condition is changed, the target device constraint may restrict the batch information of each product batch produced before the condition is changed to have multiple values with respect to the product parameter of "recipe"; after the condition is changed, a new count key may also be set for the target device constraint, the product batch meeting each of the first constraint conditions is determined as a target product batch, and the original count value associated with the target product batch is determined as a new count value to continue counting the number of products, for which, the specific implementation manner may be referred to the foregoing, and is not described herein again; corresponding to the foregoing example, this time corresponds to screening out a target product batch with a product parameter "K" of the batch information, which is "recipe", from each product batch produced before the condition is changed, and inheriting the count value of the target product batch.
According to the product quantity statistical method in the production process, whether a second constraint condition corresponding to a first constraint condition exists or not is determined according to any first constraint condition changed in the target equipment constraint with changed conditions; wherein the first constraint condition is obtained after the second constraint condition is changed; the target equipment constraint is used for allowing or forbidding the target equipment to produce the product batch when any product batch meets each constraint condition included by the target equipment constraint; if a second constraint condition corresponding to the first constraint condition exists, comparing the first constraint condition with the second constraint condition, and determining whether the first constraint condition meets a preset change condition; if at least one first constraint condition meeting the preset change condition exists in the target equipment constraint, setting a new counting key for the target equipment constraint; wherein, the counting key and the target device constraint respectively have an association relationship, and the counting key and at least one counting value respectively have an association relationship; the count key is a unique serial number that indexes the count value for the target device constraint; each counting value has an association relationship with one product batch and is used for recording the product quantity of the product batch produced by the target equipment under the constraint of the target equipment; and determining at least one new counting value associated with the new counting key, and continuously recording the product quantity of the product batch corresponding to the new counting value after the condition change occurs in each new counting value.
By the method, when the equipment constraint occurrence condition is changed, whether a new counting key needs to be generated or not is determined by comparing constraint conditions under the equipment constraint before and after the change, and the product quantity is recorded in the counting value corresponding to the new counting key after the condition change occurs; therefore, the quantity counting efficiency can be improved, and the problems of product quantity counting errors and counting loss when the equipment constraint changes are solved.
Referring to fig. 2 and fig. 3, fig. 2 is a schematic structural diagram of a product quantity counting device according to an embodiment of the present application, and fig. 3 is a second schematic structural diagram of a product quantity counting device according to an embodiment of the present application. As shown in fig. 2, the product quantity counting apparatus 200 includes:
a determining module 210, configured to determine, for any first constraint condition of changes in target device constraints in which a condition change occurs, whether a second constraint condition corresponding to the first constraint condition exists; wherein the first constraint condition is obtained after the second constraint condition is changed; the target equipment constraint is used for allowing or forbidding the target equipment to produce the product batch when any product batch meets each constraint condition included by the target equipment constraint;
a comparing module 220, configured to, when a second constraint condition corresponding to the first constraint condition exists, compare the first constraint condition with the second constraint condition, and determine whether the first constraint condition satisfies a predetermined change condition;
a setting module 230, configured to set a new count key for the target device constraint when at least one first constraint condition that satisfies the predetermined change condition exists in the target device constraint; wherein, the counting key and the target device constraint respectively have an association relationship, and the counting key and at least one counting value respectively have an association relationship; the count key is a unique serial number that indexes the count value for the target device constraint; each counting value has an association relationship with one product batch and is used for recording the product quantity of the product batch produced by the target equipment under the constraint of the target equipment;
and the counting module 240 is configured to determine at least one new count value associated with the new count key, and continuously 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.
Furthermore, each constraint condition comprises a product parameter and a value range of the product parameter; the product parameters in the first constraint condition and the second constraint condition corresponding to the first constraint condition are the same;
when the comparing module 220 is configured to compare the first constraint with the second constraint and determine whether the first constraint satisfies a predetermined change condition, the comparing module 220 is configured to:
determining whether the first value range of the first constraint condition can completely include the second value range of the second constraint condition;
and if the first value range cannot completely include the second value range, determining that the first constraint condition meets the preset change condition.
Further, when the statistics module 240 is configured to determine at least one new count value associated with the new count key, the statistics module 240 is configured to:
determining whether each product batch produced by the target equipment under the constraint of the target equipment before the condition change meets each first constraint condition;
determining a product batch meeting each first constraint condition 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.
Further, when the counting module 240 is configured to continuously record, in each new count value, the product quantity of the product batch corresponding to the new count value after the condition is changed, the counting module 240 is configured to:
determining whether the target product batch comprises the product batch to be counted;
if the target product batch comprises the product batch to be counted, continuously recording the product quantity of the product batch to be counted in a new counting value associated with the product batch to be counted;
if the target product batch does not comprise the product batch to be counted, establishing a new counting value and establishing the association relationship between the new counting value and the new counting key and between the new counting value and the product batch to be counted;
recording the product quantity of the product batch to be counted in the newly-built counting value; wherein, the initial value of the newly-built counting value is a set value.
Further, the constraint condition also comprises a product quantity limit; as shown in fig. 3, the product quantity counting apparatus further includes: a limit module 250;
the limiting module 250 is configured to, when the target device produces any product batch under the constraint of the target device, prohibit the target device from continuing to produce the product batch if a sum of the count values indexed by the count key corresponding to the constraint of the target device exceeds the product quantity limit.
Further, the product parameter includes at least one of: processes, procedures, product manufacturing procedures, recipes, data collection plans, and customer information.
According to the product quantity counting device in the production process, whether a second constraint condition corresponding to a first constraint condition exists or not is determined according to any first constraint condition changed in the target equipment constraint with changed conditions; wherein the first constraint condition is obtained after the second constraint condition is changed; the target equipment constraint is used for allowing or forbidding the target equipment to produce the product batch when any product batch meets each constraint condition included by the target equipment constraint; if a second constraint condition corresponding to the first constraint condition exists, comparing the first constraint condition with the second constraint condition, and determining whether the first constraint condition meets a preset change condition; if at least one first constraint condition meeting the preset change condition exists in the target equipment constraint, setting a new counting key for the target equipment constraint; wherein, the counting key and the target device constraint respectively have an association relationship, and the counting key and at least one counting value respectively have an association relationship; the count key is a unique serial number that indexes the count value for the target device constraint; each counting value has an association relationship with one product batch and is used for recording the product quantity of the product batch produced by the target equipment under the constraint of the target equipment; and determining at least one new counting value associated with the new counting key, and continuously recording the product quantity of the product batch corresponding to the new counting value after the condition change occurs in each new counting value.
By the method, when the equipment constraint occurrence condition is changed, whether a new counting key needs to be generated or not is determined by comparing constraint conditions under the equipment constraint before and after the change, and the product quantity is recorded in the counting value corresponding to the new counting key after the condition change occurs; therefore, the quantity counting efficiency can be improved, and the problems of product quantity counting errors and counting loss when the equipment constraint changes are solved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 4, the electronic device 400 includes a processor 410, a memory 420, and a bus 430.
The memory 420 stores machine-readable instructions executable by the processor 410, when the electronic device 400 runs, the processor 410 communicates with the memory 420 through the bus 430, and when the machine-readable instructions are executed by the processor 410, the steps of the product quantity statistical method in the method embodiment shown in fig. 1 may be performed.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the step of the product quantity statistical method in the method embodiment shown in fig. 1 may be executed.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the exemplary embodiments of the present application, and are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A product quantity statistical method in a production process is characterized by comprising the following steps:
determining whether a second constraint condition corresponding to any first constraint condition of changed target equipment constraints of which the conditions are changed exists or not; wherein the first constraint condition is obtained after the second constraint condition is changed; the target equipment constraint is used for allowing or forbidding the target equipment to produce the product batch when any product batch meets each constraint condition included by the target equipment constraint;
if a second constraint condition corresponding to the first constraint condition exists, comparing the first constraint condition with the second constraint condition, and determining whether the first constraint condition meets a preset change condition;
if at least one first constraint condition meeting the preset change condition exists in the target equipment constraint, setting a new counting key for the target equipment constraint; wherein, the counting key and the target device constraint respectively have an association relationship, and the counting key and at least one counting value respectively have an association relationship; the count key is a unique serial number that indexes the count value for the target device constraint; each counting value has an association relationship with one product batch and is used for recording the product quantity of the product batch produced by the target equipment under the constraint of the target equipment;
and determining at least one new counting value associated with the new counting key, and continuously recording the product quantity of the product batch corresponding to the new counting value after the condition change occurs in each new counting value.
2. The product quantity statistical method according to claim 1, wherein each of the constraints includes a product parameter and a value range of the product parameter; the product parameters in the first constraint condition and the second constraint condition corresponding to the first constraint condition are the same;
the comparing the first constraint condition with the second constraint condition to determine whether the first constraint condition satisfies a predetermined modification condition includes:
determining whether the first value range of the first constraint condition can completely include the second value range of the second constraint condition;
and if the first value range cannot completely include the second value range, determining that the first constraint condition meets the preset change condition.
3. The product quantity statistics method of claim 2, wherein the determining at least one new count value associated with the new count key comprises:
determining whether each product batch produced by the target equipment under the constraint of the target equipment before the condition change meets each first constraint condition;
determining a product batch meeting each first constraint condition 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 statistical method according to claim 3, wherein the step of continuously recording, in each new count value, the product quantity of the product batch corresponding to the new count value after the condition change occurs comprises:
determining whether the target product batch comprises the product batch to be counted;
if the target product batch comprises the product batch to be counted, continuously recording the product quantity of the product batch to be counted in a new counting value associated with the product batch to be counted;
if the target product batch does not comprise the product batch to be counted, establishing a new counting value and establishing the association relationship between the new counting value and the new counting key and between the new counting value and the product batch to be counted;
recording the product quantity of the product batch to be counted in the newly-built counting value; wherein, the initial value of the newly-built counting value is a set value.
5. The product quantity statistical method according to claim 2, wherein the constraint further includes a product quantity limit; the product quantity statistical method further comprises the following steps:
when the target device produces any product batch under the constraint of the target device, if the sum of the count values indexed by the count key corresponding to the constraint of the target device exceeds the product quantity limit, the target device is prohibited from continuing to produce the product batch.
6. The statistical method of claim 3, wherein said determining whether each product batch produced by the target device under the constraint of the target device before the condition change satisfies each first constraint condition comprises:
obtaining batch information of the product batch; the batch information comprises at least one product parameter and the value of each product parameter;
for each first constraint condition, searching a first product parameter in the first constraint condition and a value of the first product parameter in the batch information;
and if the value of the first product parameter in the batch information falls into a first value range in the first constraint condition, determining that the product batch meets the first constraint condition.
7. The product quantity statistical method according to claim 2, wherein the product parameter comprises at least one of: processes, procedures, product manufacturing procedures, recipes, data collection plans, and customer information.
8. A product quantity statistical apparatus in a production process, characterized by comprising:
the determining module is used for determining whether a second constraint condition corresponding to any first constraint condition of the changed target equipment constraint with changed conditions exists or not; wherein the first constraint condition is obtained after the second constraint condition is changed; the target equipment constraint is used for allowing or forbidding the target equipment to produce the product batch when any product batch meets each constraint condition included by the target equipment constraint;
the comparison module is used for comparing the first constraint condition with the second constraint condition when the second constraint condition corresponding to the first constraint condition exists, and determining whether the first constraint condition meets a preset change condition;
the setting module is used for setting a new counting key for the target equipment constraint when at least one first constraint condition meeting the preset change condition exists in the target equipment constraint; wherein, the counting key and the target device constraint respectively have an association relationship, and the counting key and at least one counting value respectively have an association relationship; the count key is a unique serial number that indexes the count value for the target device constraint; each counting value has an association relationship with one product batch and is used for recording the product quantity of the product batch produced by the target equipment under the constraint of the target equipment;
and the counting module is used for determining at least one new counting value associated with the new counting key and continuously recording the product quantity of the product batch corresponding to the new counting value after the condition change occurs in each new counting value.
9. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is operating, the machine-readable instructions when executed by the processor performing the steps of the product quantity counting method according to any one of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the product quantity statistical method according to one of claims 1 to 7.
CN202111643421.2A 2021-12-29 2021-12-29 Product quantity statistical method and product quantity statistical device in production process Pending CN114296415A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111643421.2A CN114296415A (en) 2021-12-29 2021-12-29 Product quantity statistical method and product quantity statistical device in production process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111643421.2A CN114296415A (en) 2021-12-29 2021-12-29 Product quantity statistical method and product quantity statistical device in production process

Publications (1)

Publication Number Publication Date
CN114296415A true CN114296415A (en) 2022-04-08

Family

ID=80971826

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111643421.2A Pending CN114296415A (en) 2021-12-29 2021-12-29 Product quantity statistical method and product quantity statistical device in production process

Country Status (1)

Country Link
CN (1) CN114296415A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050228526A1 (en) * 2004-04-05 2005-10-13 Gwo-Chiang Fang Wafer lot identity management system and method thereof
JP2007257050A (en) * 2006-03-20 2007-10-04 Nippon Steel Corp Lot planning method, lot planning device, and computer program
US20110029984A1 (en) * 2009-06-16 2011-02-03 David Everton Norman Counter and timer constraints
JP2011150379A (en) * 2010-01-19 2011-08-04 Panasonic Corp Production plan changing method and production plan changing device
CN105182916A (en) * 2014-06-18 2015-12-23 上海华力微电子有限公司 Semiconductor production constraint control method
CN107464123A (en) * 2017-07-21 2017-12-12 红云红河烟草(集团)有限责任公司 One kind formula batch tracking system and its operation method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050228526A1 (en) * 2004-04-05 2005-10-13 Gwo-Chiang Fang Wafer lot identity management system and method thereof
JP2007257050A (en) * 2006-03-20 2007-10-04 Nippon Steel Corp Lot planning method, lot planning device, and computer program
US20110029984A1 (en) * 2009-06-16 2011-02-03 David Everton Norman Counter and timer constraints
JP2011150379A (en) * 2010-01-19 2011-08-04 Panasonic Corp Production plan changing method and production plan changing device
CN105182916A (en) * 2014-06-18 2015-12-23 上海华力微电子有限公司 Semiconductor production constraint control method
CN107464123A (en) * 2017-07-21 2017-12-12 红云红河烟草(集团)有限责任公司 One kind formula batch tracking system and its operation method

Similar Documents

Publication Publication Date Title
US20170039214A1 (en) Data analysis using multiple systems
CN107832062B (en) Program updating method and terminal equipment
CN110795455A (en) Dependency relationship analysis method, electronic device, computer device and readable storage medium
CN110083475B (en) Abnormal data detection method and device
US8738966B2 (en) Change management system and method
CN108388509B (en) Software testing method, computer readable storage medium and terminal equipment
CN110245149B (en) Metadata version management method and device
EP3722945A1 (en) Program operation system and program operation method
CN110532559B (en) Rule processing method and device
CN117238433A (en) Method for automatically isolating document data based on Libreoffice
CN111125222A (en) Data testing method and device
CN112732242A (en) Wide table processing script generation method and device
CN114296415A (en) Product quantity statistical method and product quantity statistical device in production process
CN111399898A (en) Management method and device for multi-module system code version and computer equipment
CN108334333A (en) A kind of source code library update method and device
CN110362540B (en) Data storage and visitor number acquisition method and device
CN112988780A (en) Data checking method and device, storage medium and electronic equipment
US20160267172A1 (en) Constraint free model
CN115510828A (en) Table data processing method and device, electronic equipment and storage medium
EP3418913A1 (en) System and method for merging a source data from a source application into a target data of a target application
CN114860362A (en) Interface updating method and device
CN113535206B (en) Multi-version code upgrading method and system
CN109284128B (en) Method, device, storage medium and mobile terminal for converting data
CN112925804A (en) Database maintenance method and device
CN115495911B (en) Model renaming method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Country or region after: China

Address after: 200100, Room 101, 1st Floor, Building 7, No. 7001 Zhongchun Road, Minhang District, Shanghai

Applicant after: Saimet Information Group Co.,Ltd.

Address before: Room 299, building 6, Zhongchen Road, Songjiang District, Shanghai

Applicant before: SEMI-TECH (Shanghai) Co.,Ltd.

Country or region before: China

Country or region after: China

Address after: Room 299, building 6, Zhongchen Road, Songjiang District, Shanghai

Applicant after: SEMI-TECH (Shanghai) Co.,Ltd.

Address before: Room 299, building 6, Zhongchen Road, Songjiang District, Shanghai

Applicant before: Shanghai saimeite Software Technology Co.,Ltd.

Country or region before: China