A statistical method, device, equipment and medium for online products on a production line
By generating time slot encoding and matching relationships, the production cycle is determined, and the problem of statistics on the quantity of products on the production line is solved, dynamic statistics on the quantity of products on the production line is realized, and production efficiency and management optimization are improved.
Patent Information
- Application Number
- CN202411296379.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-18
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2044-09-18
AI Technical Summary
The prior art is difficult to count the number of products being processed on the production line in real time, resulting in the inability to achieve refined production planning and inventory management.
By obtaining the time interval between the head and tail ends of the production line, generating a slot code, and determining the production cycle according to the matching relationship, counting the number of products being processed on the production line.
It realizes dynamic statistics on the quantity of products on the production line, adapts to irregular feeding modes and production speed fluctuations, and improves production efficiency and management optimization.
Smart Images

Figure CN118820670B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of production management, and in particular to a statistical method, device, equipment and medium for online products on a production line. Background Art
[0002] Since its introduction, the assembly line system has been widely used in many industries due to its high-efficiency operation mode. The assembly line has become a common production line model for manufacturing companies today. In the production process of the production line, a problem often encountered is how to count the products produced.
[0003] At present, when counting the number of products being processed on the production line, the general method is to install electronic counters at the statistical points. This solution can count the number of products passing through the current statistical point, but it cannot count the number of products flowing on the production line, that is, the number of products being processed. As a result, it is impossible to obtain production data in real time, which is not conducive to the company's realization of more refined production planning and inventory management. Summary of the invention
[0004] The object of the present invention is to provide a method, device, equipment and medium for counting online products on a production line, which can realize the counting of the number of products being processed on the production line.
[0005] To solve the above technical problems, an embodiment of the present invention provides a method for counting online products on a production line, comprising the following steps:
[0006] In the process of feeding products into the production line, the first time interval between all adjacent products when the products fed into the production line pass through the head end of the production line, and the second time interval between all adjacent products when the products pass through the tail end of the production line are sequentially obtained;
[0007] All first time intervals and all second time intervals are stored in a first array and a second array of preset lengths in sequence; wherein the values in the first array and the second array change continuously with the storage order of the first time intervals and the second time intervals;
[0008] Generate a first time slot code and a second time slot code respectively by using a first time interval in the first array and a second time interval in the second array, and obtain a first time slot code and a second time slot code that have a matching relationship when a maximum value in the first array is greater than or equal to twice a minimum value therein;
[0009] Determine the current production cycle of the production line according to the time when a plurality of products corresponding to the first time slot code and the second time slot code having a matching relationship pass through the head end of the production line and the tail end of the production line;
[0010] Obtain the number of products put into the production line during the current production cycle of the production line, and count the number of products being processed on the production line.
[0011] In some optional embodiments, when the maximum value in the first array is greater than or equal to twice the minimum value thereof, the first time slot code and the second time slot code that have a matching relationship include:
[0012] Obtain the first time slot code and all second time slot codes when the maximum value in the first array is greater than or equal to twice the minimum value therein;
[0013] Based on the time slot allowable error preset for the second time slot code, the first time slot code and all second time slot codes when the maximum value in the first array is greater than or equal to twice the minimum value thereof are compared to obtain the first time slot code and the second time slot code that have a matching relationship.
[0014] In some optional embodiments, when the maximum value in the first array is greater than or equal to twice the minimum value thereof, the first time slot code and the second time slot code that have a matching relationship include:
[0015] Obtain the first time slot code and all second time slot codes when the maximum value in the first array is greater than or equal to twice the minimum value therein;
[0016] Compare the first time slot code and all the second time slot codes when the maximum value in the first array is greater than or equal to twice the minimum value thereof. If the first time slot code and the second time slot code are the same, it is confirmed that the first time slot code and the second time slot code have a matching relationship.
[0017] In some optional embodiments, sequentially acquiring the first time interval between all two adjacent products when the products put into the production line pass the head end of the production line, and the second time interval between all two adjacent products when the products pass the tail end of the production line, comprises:
[0018] By using sensors respectively arranged at the head and tail of the production line, the time when each product put into the production line passes through the head and tail of the production line is obtained in turn;
[0019] According to the time when each product passes through the head end of the production line and the time when each product passes through the tail end of the production line, obtain the first time interval between all two adjacent products when the product put into the production line passes through the head end of the production line, and the second time interval between all two adjacent products when the product passes through the tail end of the production line;
[0020] Among them, the sensors installed at the beginning and end of the production line are both OMRON E3JK-DP12 sensors.
[0021] In some optional embodiments, determining the current production cycle of the production line according to the time when a plurality of products corresponding to the first time slot code and the second time slot code having a matching relationship pass through the head end of the production line and the tail end of the production line includes:
[0022] Determine the production cycle of each product according to the time when a plurality of products corresponding to the first time slot code and the second time slot code having a matching relationship pass through the head end of the production line and the tail end of the production line;
[0023] The average value and variance of the production cycles of multiple products are obtained, and the current production cycle of the production line is determined according to the average value and variance of the production cycles of the multiple products.
[0024] In some optional embodiments, obtaining the number of products put into the production line in the current production cycle of the production line and counting the number of products being processed on the production line includes:
[0025] During the current production cycle of the production line, the number of products put into the production line is counted periodically, and the sum of the number of products put into the production line counted in all cycles is taken as the statistical result of the number of products being processed on the production line.
[0026] In some optional embodiments, obtaining the number of products put into the production line in the current production cycle of the production line and counting the number of products being processed on the production line includes:
[0027] The number of products put into the production line counted in each cycle of the current production cycle of the production line is stored in a preset queue in order; wherein the length of the preset queue is determined according to the current production cycle, and the value in the preset queue changes with the storage order of the number of products put into the production line counted in each cycle;
[0028] Calculate the sum of all values in the preset queue as a statistical result of the number of products being processed on the production line.
[0029] An embodiment of the present invention further provides a statistical device for online products on a production line, comprising:
[0030] A time acquisition module is used to sequentially acquire the first time interval between all two adjacent products when the products put into the production line pass the head end of the production line, and the second time interval between all two adjacent products when the products pass the tail end of the production line.
[0031] A time storage module, used for storing all first time intervals and all second time intervals in a first array and a second array of preset lengths in order; wherein the values in the first array and the second array change continuously with the order in which the first time intervals and the second time intervals are stored;
[0032] A time matching module, used to generate a first time slot code and a second time slot code respectively by using a first time interval in the first array and a second time interval in the second array, and to obtain a first time slot code and a second time slot code that have a matching relationship when a maximum value in the first array is greater than or equal to twice a minimum value therein;
[0033] A cycle determination module, used to determine the current production cycle of the production line according to the time when a plurality of products corresponding to the first time slot code and the second time slot code having a matching relationship pass through the head end of the production line and the tail end of the production line;
[0034] The product statistics module is used to obtain the number of products put into the production line during the current production cycle of the production line and to count the number of products being processed on the production line.
[0035] An embodiment of the present invention also provides a computer device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned statistical method for online products on the production line.
[0036] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the statistical method for online products on the production line.
[0037] The statistical method for online products on a production line provided by the present invention has at least the following beneficial effects:
[0038] The present invention specifically realizes the statistics of products flowing on the production line by obtaining the production cycle of the production line (i.e., the time required to produce a product) and counting the products input into the production line during the production cycle. Considering that when the production line is processing products, the processing speed of each processing equipment fluctuates between upper and lower limits, and the raw material input (i.e., the products input into the production line) may also have irregular pauses due to various reasons, which causes the production cycle of the production line to be constantly changing. At this time, it is necessary to measure the current production cycle of the production line in a timely manner. Therefore, the time interval of each product passing through the head end of the production line and the time interval of each product passing through the tail end of the production line are used to form the corresponding time slot code. If a time slot code is formed at the head end and a matching time slot code is detected at the tail end, the time difference can be used to timely measure the current production cycle of the production line, thereby ensuring the statistical accuracy of the products flowing on the subsequent production line.
[0039] In summary, the present invention can adapt to the irregular feeding pattern and fluctuation of product production speed on the production line without human intervention, and realizes dynamic statistics of products on the production line, thereby contributing to the optimization of production efficiency and management, such as increasing or decreasing manpower, adjusting equipment speed, and controlling output. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] One or more embodiments are exemplarily described by the pictures in the corresponding drawings, and these exemplary descriptions do not constitute limitations on the embodiments.
[0041] Figure 1 is a flow chart of a statistical method for online products on a production line provided according to an embodiment of the present invention;
[0042] Figure 2 is a schematic diagram of a generation and matching process of a time slot code provided according to an embodiment of the present invention;
[0043] Figure 3 is a schematic diagram of a statistical device for online products on a production line provided according to an embodiment of the present invention;
[0044] Figure 4 It is a structural schematic diagram of a computer device provided according to an embodiment of the present invention. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present invention. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present invention can be implemented. The division of the following embodiments is for the convenience of description and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction.
[0046] An embodiment of the present invention relates to a statistical method for online products on a production line. The implementation details of the statistical method for online products on the production line of this embodiment are specifically described below. The following content is only the implementation details provided for easy understanding and is not necessary for implementing this solution.
[0047] The specific process of the statistical method for online products on the production line of this embodiment can be as follows: Figure 1 As shown, including:
[0048] Step 101, in the process of feeding products into the production line, sequentially obtain the first time interval between all two adjacent products when the products fed into the production line pass the head end of the production line, and the second time interval between all two adjacent products when the products pass the tail end of the production line.
[0049] Specifically, a sensor is deployed at the head end and the tail end of the production line respectively, and then in the process of feeding products into the production line, the time when each product fed into the production line passes through the head end of the production line and the time when it passes through the tail end of the production line are obtained in turn through the two sensors. Then, through the time when each product passes through the head end of the production line and the time when it passes through the tail end of the production line, the time interval between all two adjacent products fed into the production line when passing through the head end of the production line (i.e., the first time interval) and the time interval between all two adjacent products when passing through the tail end of the production line (i.e., the second time interval) are obtained in turn. Among them, the sensors set at the head end and the tail end of the production line are OMRON E3JK-DP12 sensors.
[0050] Step 102, all first time intervals and all second time intervals are stored in a first array and a second array of preset lengths in sequence; wherein the values in the first array and the second array change continuously with the storage order of the first time intervals and the second time intervals.
[0051] Step 103, using the first time interval in the first array and the second time interval in the second array to generate the first time slot code and the second time slot code respectively, and obtaining the first time slot code and the second time slot code that have a matching relationship when the maximum value in the first array is greater than or equal to twice the minimum value thereof.
[0052] In one example, firstly, the first time slot code and all the second time slot codes when the maximum value in the first array is greater than or equal to twice the minimum value thereof are obtained, and then, based on the time slot allowable error preset for the second time slot code, the first time slot code and all the second time slot codes when the maximum value in the first array is greater than or equal to twice the minimum value thereof are compared to obtain the first time slot code and the second time slot code having a matching relationship. The time slot allowable error may be 1s.
[0053] In another example, after obtaining the first time slot code and all the second time slot codes when the maximum value in the first array is greater than or equal to twice the minimum value, the first time slot code and all the second time slot codes when the maximum value in the first array is greater than or equal to twice the minimum value are compared. If the first time slot code and the second time slot code are the same, it is confirmed that the first time slot code and the second time slot code are matched.
[0054] For ease of understanding, the generation process and matching process of the first time slot code and the second time slot code are illustrated below by way of example: Figure 2 As shown, taking 5 products as an example, assuming that the time interval between two adjacent products when these 5 products pass through the head end of the production line, that is, the first time interval is 5s, 5s, 10s, 5s, 15s, and the time interval between two adjacent products when passing through the tail end of the production line, that is, the second time interval is 5s±1, 5s±1, 10s±1, 5s±1, 15s±1. Define 5s as code 1, and the first time slot code 11213 can be generated through the first time interval. Assuming that the time slot allowable error is 1s, the second time slot code 11213 can be generated through the second time interval. At this time, the first time slot code is the same as the second time slot code, and it is determined that the first time interval matches the second time interval.
[0055] In another example, the first time slot code and the second time slot code that have a matching relationship when the maximum value in the first array is greater than or equal to twice the minimum value therein can also be obtained in the following manner. Assume that the first array is array a, and the values in array a (i.e., the first time interval) include a0, a1, a2, a3, a4, a5, and the second array is array b, and the values in array b (i.e., the second time interval) include b0, b1, b2, b3, b4, b5. A ratio coefficient is set to be x, and the value range of x is [0.01, 0.1]. When the maximum value in array a is greater than or equal to twice the minimum value in array a, array a and array b are compared by comparing the coefficient x, that is, the corresponding values in array a and array b are compared. When b0=a0±x×a0 and b1=a1±x×a1 and b2=a2±x×a2…, it is confirmed that each first time interval has a corresponding second time interval, so that after the first time interval in the first array and the second time interval in the second array are used to generate the first time slot code and the second time slot code respectively, the first time slot code and the second time slot code that have a matching relationship are obtained when the maximum value in the first array is greater than or equal to twice the minimum value thereof.
[0056] Step 104 , determining the current production cycle of the production line according to the time when a plurality of products corresponding to the first time slot code and the second time slot code having a matching relationship pass through the head end of the production line and the tail end of the production line.
[0057] Specifically, if the maximum value obtained in the first array is greater than or equal to twice the minimum value, the first time slot code and the second time slot code that have a matching relationship trigger the measurement of the current production cycle of the production line, that is, based on the time when multiple products corresponding to the first time slot code and the second time slot code that have a matching relationship pass through the head end of the production line and the time when they pass through the tail end of the production line, the production cycle of the production line when multiple products flow on the production line is determined.
[0058] In a specific implementation, when determining the production cycle of a production line when multiple products flow on the production line based on the time when multiple products corresponding to the first time slot code and the second time slot code pass through the head end of the production line and the time when they pass through the tail end of the production line, first determine the production cycle of each product based on the time when the multiple products corresponding to the first time slot code and the second time slot code pass through the head end of the production line and the time when they pass through the tail end of the production line, then obtain the average and variance of the production cycles of the multiple products, and determine the current production cycle of the production line based on the average and variance of the production cycles of the multiple products, thereby ensuring the accuracy of the production cycle measurement.
[0059] Step 105, obtaining the number of products put into the production line during the current production cycle of the production line, and counting the number of products being processed on the production line.
[0060] Specifically, during the current production cycle of the production line, the number of products put into the production line is periodically counted, and the sum of the number of products put into the production line counted in all cycles is taken as the statistical result of the number of products being processed on the production line.
[0061] In a specific implementation, the number of products put into the production line in each cycle of the current production cycle of the production line is stored in a preset queue in order, and then the sum of all values in the preset queue is calculated as the statistical result of the number of products being processed on the production line. Among them, the length of the preset queue is determined according to the current production cycle, and the values in the preset queue change with the storage order of the number of products put into the production line in each cycle. That is, the number of products put into the production line in each production cycle is taken as a parameter and stored in the preset queue, and then a mathematical formula is used to add the elements in the preset queue (that is, the number of products put into each cycle of the production cycle), and the statistical result of the number of products on the production line can be obtained, that is, the statistical result of the products being processed on the production line.
[0062] In an example, in order to ensure the timeliness and accuracy of the data in the preset queue, the preset queue should be updated regularly and in a timely manner, that is, the value in the preset queue is updated at preset intervals according to the time when the value enters the preset queue, and the update method is: when the preset queue is full, the oldest element in the preset queue (that is, the data of the earliest period) is removed, and the data of the latest period is added to the preset queue.
[0063] In this embodiment, by obtaining the production cycle of the production line (i.e., the time required to produce a product) and counting the products put into the production line during the production cycle, the statistics of the products flowing on the production line are realized. Considering that when the production line is processing products, the processing speed of each processing equipment fluctuates between the upper and lower limits, and the raw material input (i.e., the products put into the production line) may also have irregular pauses due to various reasons, which causes the production cycle of the production line to be constantly changing. At this time, it is necessary to measure the current production cycle of the production line in a timely manner. Therefore, the time interval of each product passing through the head end of the production line and the time interval of each product passing through the tail end of the production line are used to form the corresponding time slot code. If a time slot code is formed at the head end and a matching time slot code is detected at the tail end, the current production cycle of the production line can be measured in time using this time difference, ensuring the statistical accuracy of the products flowing on the subsequent production line. In other words, this embodiment can adapt to the irregular feeding mode and product production speed fluctuations on the production line without manual intervention, and realizes the dynamic statistics of products on the production line, thereby contributing to the optimization of production efficiency and management, such as increasing and decreasing manpower, adjusting equipment speed, and controlling output.
[0064] The step division of the various methods above is only for clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the protection scope of the present invention. Adding insignificant modifications or introducing insignificant designs to the algorithm or process without changing the core design of the algorithm and process are all within the protection scope of the invention.
[0065] Another embodiment of the present invention relates to a statistical device for online products on a production line. The implementation details of the statistical device for online products on the production line of this embodiment are specifically described below. The following content is only for the convenience of understanding the implementation details, and is not necessary for the implementation of this solution. The schematic diagram of the statistical device for online products on the production line of this embodiment can be as follows: Figure 3 As shown, it includes: a time collection module 301, a time storage module 302, a time matching module 303, a cycle determination module 304 and a product statistics module 305.
[0066] Specifically, the time acquisition module 301 is used to sequentially obtain the first time interval between all adjacent products when the products pass the head end of the production line, and the second time interval between all adjacent products when the products pass the tail end of the production line during the process of feeding products into the production line.
[0067] The time storage module 302 is used to store all first time intervals and all second time intervals in a first array and a second array of preset lengths in sequence; wherein the values in the first array and the second array change continuously with the storage order of the first time intervals and the second time intervals.
[0068] The time matching module 303 generates a first time slot code and a second time slot code respectively using the first time interval in the first array and the second time interval in the second array, and obtains the first time slot code and the second time slot code that have a matching relationship when the maximum value in the first array is greater than or equal to twice the minimum value therein.
[0069] The cycle determination module 304 is used to determine the current production cycle of the production line according to the time when multiple products corresponding to the first time slot code and the second time slot code that have a matching relationship pass through the head end of the production line and the tail end of the production line.
[0070] The product statistics module 305 is used to obtain the number of products put into the production line during the current production cycle of the production line and to count the number of products being processed on the production line.
[0071] It is not difficult to find that this embodiment is a device embodiment corresponding to the above method embodiment, and this embodiment can be implemented in conjunction with the above method embodiment. The relevant technical details and technical effects mentioned in the above embodiment are still valid in this embodiment, and in order to reduce repetition, they are not repeated here. Accordingly, the relevant technical details mentioned in this embodiment can also be applied in the above embodiment.
[0072] It is worth mentioning that all modules involved in this embodiment are logic modules. In practical applications, a logic unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, this embodiment does not introduce units that are not closely related to solving the technical problem proposed by the present invention, but this does not mean that there are no other units in this embodiment.
[0073] Another embodiment of the present invention relates to a computer device, such as Figure 4 As shown, it includes: at least one processor 401; and a memory 402 that is communicatively connected to the at least one processor 401; wherein the memory 402 stores instructions that can be executed by the at least one processor 401, and the instructions are executed by the at least one processor 401 so that the at least one processor 401 can execute the statistical method of online products on the production line in the above-mentioned embodiments.
[0074] Among them, the memory and the processor are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors and memories together. The bus can also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor is transmitted on a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processor.
[0075] The processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory can be used to store data used by the processor when performing operations.
[0076] Another embodiment of the present invention relates to a computer-readable storage medium storing a computer program, which implements the above method embodiment when executed by a processor.
[0077] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as: ROM), random access memory (Random Access Memory, referred to as: RAM), disk or optical disk and other media that can store program codes.
[0078] Those skilled in the art will appreciate that the above embodiments are specific embodiments for implementing the present invention, and in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present invention.
Claims
1. A statistical method for online products on a production line, characterized in that: The method comprises: In the process of feeding products into the production line, the first time interval between all adjacent products when the products fed into the production line pass through the head end of the production line, and the second time interval between all adjacent products when the products pass through the tail end of the production line are sequentially obtained; All the first time intervals and all the second time intervals are stored in a first array and a second array of preset lengths in order; wherein the values in the first array and the second array change continuously with the storage order of the first time intervals and the second time intervals; Generate a first time slot code and a second time slot code respectively by using a first time interval in the first array and a second time interval in the second array, and obtain a first time slot code and a second time slot code that have a matching relationship when a maximum value in the first array is greater than or equal to twice a minimum value therein; Determine the current production cycle of the production line according to the time when a plurality of products corresponding to the first time slot code and the second time slot code having a matching relationship pass through the head end of the production line and the tail end of the production line; Obtain the number of products put into the production line during the current production cycle of the production line, and count the number of products being processed on the production line; The step of acquiring the first time slot code and the second time slot code that have a matching relationship when the maximum value in the first array is greater than or equal to twice the minimum value thereof includes: Obtain the first time slot code and all second time slot codes when the maximum value in the first array is greater than or equal to twice the minimum value therein; Based on the time slot allowable error preset for the second time slot code, compare the first time slot code and all the second time slot codes when the maximum value in the first array is greater than or equal to twice the minimum value thereof, to obtain the first time slot code and the second time slot code that have a matching relationship; Alternatively, the first time slot code and all second time slot codes when the maximum value in the first array is greater than or equal to twice the minimum value are compared. If the first time slot code and the second time slot code are the same, it is confirmed that the first time slot code and the second time slot code are matched.
2. The statistical method for online products on a production line according to claim 1, characterized in that: The step of sequentially acquiring the first time interval between all two adjacent products when the products put into the production line pass the head end of the production line, and the second time interval between all two adjacent products when the products pass the tail end of the production line, comprises: By using sensors respectively arranged at the head and tail of the production line, the time when each product put into the production line passes through the head and tail of the production line is obtained in turn; According to the time when each product passes through the head end of the production line and the time when each product passes through the tail end of the production line, obtain the first time interval between all two adjacent products when the product put into the production line passes through the head end of the production line, and the second time interval between all two adjacent products when the product passes through the tail end of the production line; Among them, the sensors installed at the beginning and end of the production line are both OMRON E3JK-DP12 sensors.
3. The statistical method for online products on a production line according to claim 2, characterized in that: The method of determining the current production cycle of the production line according to the time when a plurality of products corresponding to the first time slot code and the second time slot code having a matching relationship pass through the head end of the production line and the tail end of the production line comprises: Determine the production cycle of each product according to the time when a plurality of products corresponding to the first time slot code and the second time slot code having a matching relationship pass through the head end of the production line and the tail end of the production line; The average value and variance of the production cycles of multiple products are obtained, and the current production cycle of the production line is determined according to the average value and variance of the production cycles of the multiple products.
4. The statistical method for online products on a production line according to claim 1, characterized in that: The obtaining of the number of products put into the production line in the current production cycle of the production line and counting the number of products being processed on the production line include: During the current production cycle of the production line, the number of products put into the production line is counted periodically, and the sum of the number of products put into the production line counted in all cycles is taken as the statistical result of the number of products being processed on the production line.
5. The statistical method for online products on a production line according to claim 4, characterized in that: The obtaining of the number of products put into the production line in the current production cycle of the production line and counting the number of products being processed on the production line include: The number of products put into the production line counted in each cycle of the current production cycle of the production line is stored in a preset queue in order; wherein the length of the preset queue is determined according to the current production cycle, and the value in the preset queue changes with the storage order of the number of products put into the production line counted in each cycle; Calculate the sum of all values in the preset queue as a statistical result of the number of products being processed on the production line.
6. A statistical device for online products on a production line, characterized in that: The device comprises: A time acquisition module is used to sequentially acquire the first time interval between all two adjacent products when the products put into the production line pass the head end of the production line, and the second time interval between all two adjacent products when the products pass the tail end of the production line. A time storage module, used for storing all first time intervals and all second time intervals in a first array and a second array of preset lengths in order; wherein the values in the first array and the second array change continuously with the order in which the first time intervals and the second time intervals are stored; A time matching module, used to generate a first time slot code and a second time slot code respectively by using a first time interval in the first array and a second time interval in the second array, and to obtain a first time slot code and a second time slot code that have a matching relationship when a maximum value in the first array is greater than or equal to twice a minimum value therein; A cycle determination module, used to determine the current production cycle of the production line according to the time when a plurality of products corresponding to the first time slot code and the second time slot code having a matching relationship pass through the head end of the production line and the tail end of the production line; The product statistics module is used to obtain the number of products put into the production line during the current production cycle of the production line and to count the number of products being processed on the production line; The time matching module is further used to obtain the first time slot code and all second time slot codes when the maximum value in the first array is greater than or equal to twice the minimum value therein; Based on the time slot allowable error preset for the second time slot code, compare the first time slot code and all the second time slot codes when the maximum value in the first array is greater than or equal to twice the minimum value thereof, to obtain the first time slot code and the second time slot code that have a matching relationship; Alternatively, the first time slot code and all second time slot codes when the maximum value in the first array is greater than or equal to twice the minimum value are compared. If the first time slot code and the second time slot code are the same, it is confirmed that the first time slot code and the second time slot code are matched.
7. A computer device, characterized in that: include: at least one processor; And, a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the statistical method for online products on the production line as described in any one of claims 1 to 5.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the statistical method for online products on a production line according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
High-order modulation coded cooperation method
CN102013947A
Time sequence integer data processing method and system, equipment and medium
CN113630124A