A method, device and storage medium for processing analog high and low character production numbers

The method and device for processing analog high and low character production numbers enhance data accuracy by identifying bit types and comparing values, addressing limitations in existing equipment to improve OEE and mechanical efficiency calculations.

CN113867702BActive Publication Date: 2024-12-20QINGDAO AOLIPU AUTOMATIC CONTROL SYST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110991448.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-26
Publication Date
2024-12-20
Estimated Expiration
2041-08-26

AI Technical Summary

Technical Problem

Existing production equipment limits production values to 9999, causing inaccuracies in calculating OEE and mechanical efficiency due to prenatal examinations and production resets, necessitating the use of collected values that may not reflect the actual situation.

Method used

A method and device for processing analog high and low character production numbers by determining the bit type (high or low) using a code, comparing values with the last stored production number, and discarding or storing values based on these comparisons to ensure accuracy.

Benefits of technology

Improves the validity of collected production data by eliminating values that do not conform to actual rules, enhancing the reliability of production number calculations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113867702B_ABST
    Figure CN113867702B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device and storage medium for processing analog high and low character production numbers, the method comprising: judging whether the corresponding collected value belongs to a high character bit or a low character bit according to the code; if it is a high character bit, comparing a first value obtained by multiplying the value by 10000 with the actual value of the production number stored last time, if it is greater than the actual value, storing the first value, and discarding it if it is less than the actual value; if it is a low character bit, comparing a second value obtained by multiplying the value by 10000 by the ten thousandth digit of the actual value of the production number stored last time, and storing the second value if it is greater than the actual value, and discarding it if it is less than the actual value. The method, device and storage medium for processing analog high and low character production numbers provided by the present invention can realize the selection and rejection of the collected production numbers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a method, a device and a storage medium for processing analog high and low character production numbers. Background Art

[0002] Existing production equipment (such as filling machines) all provide production values, but the production value of some equipment can only reach 9999, so the equipment is composed of two signal points. When the low character reaches 9999, the high character will change from 0 to 1, and the low character will change from 9999 to 0, and so on. When it is necessary to calculate the OEE efficiency and mechanical efficiency of the equipment, the actual production number is needed for calculation. Because there will be prenatal examinations in production, and the production will be reset after the examination, the actual production number at each time point is needed for further calculation. However, due to the frequency of collection, some collected values ​​will have no effect on the actual situation, so these values ​​need to be traded off. Summary of the invention

[0003] The present invention provides a method, a device and a storage medium for processing analog high and low character production numbers, which can realize the selection of collected production numbers and improve the validity of data.

[0004] In order to solve the above technical problems, the embodiments of the present invention provide the following technical solutions:

[0005] In a first aspect, an embodiment of the present invention provides a method for processing analog high and low character production numbers, comprising the following steps:

[0006] According to the code, determine whether the corresponding collected value belongs to the high character bit or the low character bit;

[0007] If it is a high character bit, the first value obtained by multiplying the value by 10000 is compared with the actual value of the production number stored last time, and if it is greater than the actual value, the first value is stored, and if it is less than the actual value, it is discarded;

[0008] If it is a low character bit, add the value to the ten thousandth digit of the actual value of the production number stored last time and multiply it by 10000 to obtain a second value, and compare it with the actual value of the production number stored last time. If it is greater than the actual value, store the second value; if it is less than the actual value, discard it.

[0009] Preferably, the code includes a factory code, an equipment code and a point code, and the point code is used to determine whether the collected value belongs to a high character position or a low character position.

[0010] Preferably, judging according to the code whether the corresponding collected value belongs to the high character position or the low character position is specifically: judging according to a preset point coding rule whether the collected value belongs to the high character position or the low character position.

[0011] Preferably, the method further comprises the step of: if the actual value of the production number stored last time is not obtained, setting it to zero for comparison.

[0012] In a second aspect, an embodiment of the present invention provides an analog high and low character production number processing device, comprising:

[0013] A judgment module is used to judge whether the corresponding collected value belongs to a high character position or a low character position according to the code;

[0014] A processing module, for comparing a first value obtained by multiplying the value by 10000 with the actual value of the production number stored last time, if it is a high character bit, storing the first value if it is greater than the actual value, and discarding it if it is less than the actual value;

[0015] If it is a low character bit, add the value to the ten thousandth digit of the actual value of the production number stored last time and multiply it by 10000 to obtain a second value, and compare it with the actual value of the production number stored last time. If it is greater than the actual value, store the second value; if it is less than the actual value, discard it.

[0016] Preferably, in the judgment module, the code includes a factory code, an equipment code and a point code, and the point code is used to judge whether the collected value belongs to a high character position or a low character position.

[0017] Preferably, the processing module is also used to set the actual value of the production number stored last time to zero for comparison if it is not obtained.

[0018] In a third aspect, an embodiment of the present invention provides an electronic device, including: a memory and a processor;

[0019] The memory is used to store computer programs;

[0020] The processor is coupled to the memory, and is configured to execute the steps of any one of the above methods.

[0021] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes at least one section of code, and the at least one section of code can be executed by a processor to implement a method as described in any one of the first aspects.

[0022] In a fifth aspect, an embodiment of the present invention provides a computer program product, which, when executed by a processor, implements the method as described in any one of the first aspects.

[0023] Using the above technical solution, first determine whether the corresponding collected value belongs to the high character bit or the low character bit according to the code; if it is a high character bit, compare the first value obtained by multiplying the value by 10000 with the actual value of the production number stored last time, if it is greater than the actual value, store the first value, if it is less than the actual value, discard it; if it is a low character bit, compare the second value obtained by adding the value to the ten thousandth digit of the actual value of the production number stored last time and multiplying it by 10000 with the actual value of the production number stored last time, if it is greater than the actual value, store the second value, if it is less than the actual value, discard it. In this way, the collected values ​​that do not conform to the actual rules can be eliminated, thereby improving the effectiveness of the collected production numbers. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 A flowchart of a method for processing analog high and low character production numbers provided by an embodiment of the present invention;

[0025] Figure 2 A specific example diagram of the high character position of a method for processing the high and low character production numbers of an analog value provided by an embodiment of the present invention;

[0026] Figure 3 A specific example diagram of the low character bit of a method for processing the high and low character production numbers of an analog value provided by an embodiment of the present invention;

[0027] Figure 4 A specific example diagram of the production number of a method for processing the production number of high and low characters of an analog quantity provided by an embodiment of the present invention;

[0028] Figure 5 A framework diagram of an analog high and low character production number processing device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0029] The specific embodiments of the present invention are further described below in conjunction with the accompanying drawings. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0030] In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0031] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0032] In a first aspect, an embodiment of the present invention provides a method for processing analog high and low character production numbers, such as Figure 1 As shown, the following steps are included:

[0033] Step S101, judging whether the corresponding collected value belongs to the high character bit or the low character bit according to the code;

[0034] First, the collected data includes both codes and values, and the codes and values ​​correspond one to one. According to the code part, it is determined whether the corresponding collected value belongs to the high character bit or the low character bit.

[0035] Step S102, if it is a high character bit, compare the first value obtained by multiplying the value by 10000 with the actual value of the production number stored last time, and if it is greater than the actual value, store the first value, and if it is less than the actual value, discard it;

[0036] If it is a low character bit, add the value to the ten thousandth digit of the actual value of the production number stored last time and multiply it by 10000 to get the second value and compare it with the actual value of the production number stored last time. If it is greater than the actual value, store the second value; if it is less than the actual value, discard it.

[0037] Among them, the "second value obtained by adding the value to the ten thousandth digit of the actual value of the production number stored last time multiplied by 10000" here specifically means: the second value is obtained by multiplying the ten thousandth digit of the actual value of the production number stored last time by 10000 and then adding the value of the collected low character bit.

[0038] Using the above technical solution, first determine whether the corresponding collected value belongs to the high character bit or the low character bit according to the code; if it is a high character bit, compare the first value obtained by multiplying the value by 10000 with the actual value of the production number stored last time, if it is greater than the actual value, store the first value, if it is less than the actual value, discard it; if it is a low character bit, compare the second value obtained by adding the value to the ten thousandth digit of the actual value of the production number stored last time and multiplying it by 10000 with the actual value of the production number stored last time, if it is greater than the actual value, store the second value, if it is less than the actual value, discard it. In this way, the collected values ​​that do not conform to the actual rules can be eliminated, thereby improving the effectiveness of the collected production numbers.

[0039] As a preferred implementation, the code includes a factory code, a device code and a point code, and the point code is used to determine whether the collected value belongs to a high character position or a low character position.

[0040] The code can be composed in such a way that it can identify which factory corresponds to which equipment's production number.

[0041] Specific as Figure 2 As shown, D4390 represents the factory, E000000062 represents the equipment code, and 00008 represents the point code.

[0042] As a preferred implementation, in step S101: judging whether the corresponding collected value belongs to a high character position or a low character position according to the encoding, specifically: judging whether the collected value belongs to a high character position or a low character position according to a preset point encoding rule.

[0043] Specific as Figure 2-Figure 4 As shown, if the preset point encoding rule is 00008 for the low character bit and 00009 for the high character bit, after the code is collected, the point code is matched with these two strings. If it is 00008, it is the low character bit, and if it is 00009, it is the high character bit.

[0044] The following will be combined Figure 2-Figure 4 , give a specific example to illustrate:

[0045] Figure 3 The middle is the high character bit of the collection. Assuming the collection time is 2021-08-04 10:42:26.361, the collection value is 1, multiply 1 by 10000 to get the first value of 10000, and then compare it with the actual value of the production number stored last time. The actual value of the production number stored last time corresponds to Figure 4 The value 9999 with the time of 2021-08-04 10:42:25.010 is judged whether the first value 10000 is greater than 9999. If so, the first value is stored in the database, that is, 10000 is stored in the database, and the collected time and code are stored one by one.

[0046] Figure 2 is the low character bit of the collection. Assume that the collection time is 2021-08-04 10:42:30.043 and the collected value is 3. Add this value to the ten thousandth digit of the actual value of the last stored production number. Figure 4The collection time is 2021-08-04 10:42:26.361 multiplied by 10000 to get the second value, that is, 3 plus (10000's ten thousandth digit 1 multiplied by 10000) equals 10003. 10003 is compared with the actual value of the last stored production number, that is, 10000. If it is greater than the number, it is stored, and if it is less than the number, it is discarded. Because 10003 is greater than 10000, it is stored. That is, 10003 is stored in the database, corresponding to the collection time and code.

[0047] Such judgment and storage are performed in sequence according to the collection time, which ultimately greatly improves the effectiveness of the actual production data obtained.

[0048] The following is the specific code implementation part:

[0049]

[0050]

[0051]

[0052]

[0053] As a preferred embodiment, the method further includes the following steps: if it is determined through judgment that the second value is smaller than the actual value of the production number stored last time, the second value is discarded and 0 is stored.

[0054] This is because, under normal production conditions, the value calculated by the low character will not be less than the actual value of the production number stored last time. Therefore, when the low character is received, if the calculated value is less than the actual value of the production number stored last time, there is only one possibility, which is manual clearing during the production process. At this time, the actual production number also needs to be cleared to keep the two consistent.

[0055] As a preferred implementation, the method further includes the step of: if the actual value of the production number stored last time is not obtained, setting it to zero for comparison, that is, setting the actual value of the production number stored last time to 0 for comparison.

[0056] In a second aspect, an embodiment of the present invention provides a device for processing analog high and low character production numbers, such as Figure 5 As shown, including:

[0057] A judgment module 21 is used to judge whether the corresponding collected value belongs to a high character position or a low character position according to the code;

[0058] Processing module 22, for comparing a first value obtained by multiplying the value by 10000 with the actual value of the production number stored last time, if it is a high character bit, storing the first value if it is greater than the actual value, and discarding it if it is less than the actual value;

[0059] If it is a low character bit, add the value to the ten thousandth digit of the actual value of the production number stored last time and multiply it by 10000 to get the second value and compare it with the actual value of the production number stored last time. If it is greater than the actual value, store the second value; if it is less than the actual value, discard it.

[0060] As a preferred implementation, in the judgment module 21, the code includes a factory code, a device code and a point code, and the point code is used to judge whether the collected value belongs to a high character position or a low character position.

[0061] As a preferred implementation, the processing module 22 is further configured to set the actual value of the production number stored last time to zero for comparison if it is not obtained.

[0062] The analog high and low character production number processing device described above in this embodiment can be used to execute the technical solutions in the above-mentioned corresponding method embodiments, and its implementation principles and technical effects are similar. The functions of each module can refer to the corresponding description in the method embodiment and will not be repeated here.

[0063] In a third aspect, an embodiment of the present invention provides an electronic device, including: a memory and a processor;

[0064] The memory is used to store computer programs;

[0065] The processor is coupled to the memory, and is configured to execute the steps of any one of the above methods.

[0066] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes at least one section of code, and the at least one section of code can be executed by a processor to implement a method as described in any one of the first aspects.

[0067] In a fifth aspect, an embodiment of the present invention provides a computer program product, which, when executed by a processor, implements the method as described in any one of the first aspects.

[0068] The memory includes, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or portable read-only memory (CD-ROM), which is used for related instructions and data. The processor can be a central processing unit (CPU).

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

[0070] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0071] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the described embodiments. For those skilled in the art, various changes, modifications, substitutions and variations of these embodiments are made without departing from the principles and spirit of the present invention, and still fall within the scope of protection of the present invention.

Claims

1. A method for processing analog high and low character production numbers, characterized in that: The following steps are involved: Determining whether the corresponding collected value belongs to a high character position or a low character position according to the code, wherein the code includes a factory code, an equipment code, and a point code, and determining whether the corresponding collected value belongs to a high character position or a low character position according to the code is specifically: determining whether the collected value belongs to a high character position or a low character position according to a preset point coding rule; If it is a high character bit, the first value obtained by multiplying the value by 10000 is compared with the actual value of the production number stored last time, and if it is greater than the actual value, the first value is stored, and if it is less than the actual value, it is discarded; If it is a low character bit, add the value to the ten thousandth digit of the actual value of the production number stored last time and multiply it by 10000 to obtain a second value, and compare it with the actual value of the production number stored last time. If it is greater than the actual value, store the second value; if it is less than the actual value, discard it.

2. The method for processing analog high and low character production numbers according to claim 1, characterized in that: It also includes the steps of: if the actual value of the production number stored last time is not obtained, setting it to zero for comparison.

3. A device for processing analog high and low character production numbers, characterized in that: include: A judgment module, used to judge whether the corresponding collected value belongs to a high character position or a low character position according to the code, wherein the code includes a factory code, an equipment code and a point code, and the judgment module is specifically used to: judge whether the collected value belongs to a high character position or a low character position according to a preset point coding rule; A processing module, for comparing a first value obtained by multiplying the value by 10000 with the actual value of the production number stored last time, if it is a high character bit, storing the first value if it is greater than the actual value, and discarding it if it is less than the actual value; If it is a low character bit, add the value to the ten thousandth digit of the actual value of the production number stored last time and multiply it by 10000 to obtain a second value, and compare it with the actual value of the production number stored last time. If it is greater than the actual value, store the second value; if it is less than the actual value, discard it.

4. The analog high and low character production number processing device according to claim 3 is characterized in that: The processing module is also used to set the actual value of the production number stored last time to zero for comparison if it is not obtained.

5. An electronic device, characterized in that: including memory and processor; The memory is used to store computer programs; The processor is coupled to the memory, and is configured to execute the steps in the method according to any one of claims 1 to 2.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes at least one section of code, and the at least one section of code can be executed by a processor to implement the method according to any one of claims 1 to 2.

7. A computer program product, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 2 is implemented.