Method and device for detecting beat activation of circuit board and storage medium
By setting up two code readers on the production line, taking advantage of their different modes and locations, and configuring production logos with code reading information, the problem of low accuracy in circuit board production rate statistics is solved, and more efficient production line management is achieved.
Patent Information
- Application Number
- CN202411201261.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-12-20
AI Technical Summary
When calculating circuit board productivity, the prior art lacks effective methods to deal with the problem that the graphics code is not set or the graphics code exceeds the range of the reader, resulting in low accuracy and affecting production efficiency.
Two code readers use different modes and positions to scan the graphics code on the circuit board. By combining the two code reading information, the production identification information can be configured, thereby calculating the rhythm rate of the circuit board and improving the coverage of the code reading range. and accuracy.
It improves the accuracy of circuit board production rate statistics, ensures the normal operation of circuit board production, and enhances the efficiency and reliability of the production line.
Smart Images

Figure CN119167967A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of printed circuit board production, and in particular to a method, a device and a storage medium for detecting the beat utilization rate of a circuit board. Background Art
[0002] The manufacturing process of circuit boards includes a variety of processes, and each process relies on various production equipment. For the main production equipment, the utilization rate of the circuit boards is usually counted to evaluate the working time and production capacity of the production equipment.
[0003] At present, the main way to count the utilization rate of circuit boards is to set a one-dimensional code (barcode) or two-dimensional code or other graphic code on the circuit board, configure a code reader on the production line, and when the circuit board flows through the production line, the code reader reads the graphic code on the circuit board and labels it, so as to count the utilization rate of the circuit board based on the label.
[0004] However, some circuit boards are NPI (New Product Introduction) and do not have graphic codes. Some circuit boards are vertical, horizontal or rotated due to process requirements, and the graphic codes are beyond the reading range of the code reader. These factors will cause labeling failure, resulting in low accuracy in counting the utilization rate of circuit boards, which will have an adverse impact on circuit board production. Summary of the invention
[0005] In view of this, the present invention provides a method, device and storage medium for detecting the tact utilization rate of a circuit board, so as to improve the accuracy of counting the utilization rate of the circuit board.
[0006] A first aspect of the present invention provides a method for detecting the cycle utilization rate of a circuit board, wherein a first code reader and a second code reader are arranged above a production line, and the method comprises:
[0007] Determining that a plurality of circuit boards are conveyed on the production line;
[0008] Controlling the first code reader to scan the graphic code on the circuit board using a first mode to obtain first code reading information;
[0009] Controlling the second code reader to scan the graphic code on the circuit board using a second mode to obtain second code reading information;
[0010] Configuring production identification information for the circuit board according to the first code reading information and the second code reading information;
[0011] The cycle utilization rate of the circuit board is calculated according to the production identification information.
[0012] A second aspect of the present invention provides a device for detecting the cycle utilization rate of a circuit board, wherein a first code reader and a second code reader are arranged above the production line, and the device comprises:
[0013] A circuit board determination module, used for determining that a plurality of circuit boards are conveyed on the production line;
[0014] A first code reading control module, used for controlling the first code reader to scan the graphic code on the circuit board using a first mode to obtain first code reading information;
[0015] A second code reading control module, used for controlling the second code reader to scan the graphic code on the circuit board using a second mode to obtain second code reading information;
[0016] A production identification information configuration module, configured to configure production identification information for the circuit board according to the first code reading information and the second code reading information;
[0017] The cycle utilization rate calculation module is used to calculate the cycle utilization rate of the circuit board according to the production identification information.
[0018] A third aspect of the present invention provides an electronic device, the electronic device comprising:
[0019] at least one processor; and
[0020] a memory communicatively connected to the at least one processor; wherein,
[0021] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for detecting the cycle utilization rate of a circuit board as described in the first aspect above.
[0022] A fourth aspect of the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method for detecting the cycle utilization rate of a circuit board as described in the first aspect above.
[0023] A fifth aspect of the present invention provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the method for detecting the cycle utilization rate of a circuit board as described in the first aspect above.
[0024] In the present invention, it is determined that a plurality of circuit boards are conveyed on the production line; the first code reader is controlled to use the first mode to scan the graphic code on the circuit board to obtain the first code reading information; the second code reader is controlled to use the second mode to scan the graphic code on the circuit board to obtain the second code reading information; the production identification information is configured for the circuit board according to the first code reading information and the second code reading information; the beat utilization rate of the circuit board is calculated according to the production identification information. The present invention uses the first code reader and the second code reader to read the code simultaneously, which can improve the coverage rate of the code reading range. When the circuit boards are placed arbitrarily, the code reading range can cover the circuit boards on the production line. The first code reading information read by the first code reader and the second code reading information read by the second code reader are different due to different positions and modes. The production identification information can be configured for the circuit board according to these differences, and the confidence of the production identification information is improved, thereby improving the accuracy of the statistical beat utilization rate of the circuit board and ensuring the normal production of the circuit board.
[0025] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0027] Figure 1 The present invention provides a flowchart of a method for detecting the cycle utilization rate of a circuit board according to a first embodiment of the present invention.
[0028] Figure 2 It is a structural schematic diagram of a production line provided in Example 1 of the present invention.
[0029] Figure 3 This is a schematic diagram of the placement of a circuit board provided in Embodiment 1 of the present invention.
[0030] Figure 4 It is a structural schematic diagram of a device for detecting the beat utilization rate of a circuit board provided in the second embodiment of the present invention.
[0031] Figure 5 It is a structural schematic diagram of an electronic device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0032] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can cover sequential implementations other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0034] Embodiment 1
[0035] See also Figure 1 , shows a flow chart of a method for detecting the beat utilization rate of a circuit board provided by the first embodiment of the present invention. The method can be executed by a device for detecting the beat utilization rate of a circuit board. The device for detecting the beat utilization rate of a circuit board can be implemented in the form of hardware and / or software. The device for detecting the beat utilization rate of a circuit board can be configured in an electronic device, especially an EAP (Equipment Automation Programming) system. Figure 1 As shown, the method includes:
[0036] Step 101: Determine that a plurality of circuit boards are conveyed on a production line.
[0037] During the production process of circuit boards, the EAP system will generate a unique board number Pnlid for the circuit board, encode the board number Pnlid into a graphic code such as a one-dimensional code (barcode) or a two-dimensional code, and the engineer will use related production equipment to print the graphic code on the circuit board.
[0038] Among them, circuit boards include PCB (Printed Circuit Board), FPC (Flexible Printed Circuit) and other types.
[0039] Due to the existence of NPI factors, the circuit boards belonging to NPI do not have an EAP system, and these circuit boards are not configured with graphic codes such as one-dimensional codes (barcodes) or two-dimensional codes. Therefore, some or all of the circuit boards are configured with graphic codes such as one-dimensional codes (barcodes) or two-dimensional codes.
[0040] like Figure 2 As shown, a first code reader 2022 and a second code reader 2023 are arranged at different positions of the same bracket 2021 above the crawler 202 of the production line. The crawler 202 is connected to the production equipment 203, and the circuit board 201 is transported to the production equipment 203 via the crawler 202.
[0041] Among them, the first code reader and the second code reader are both code readers matching the graphic code. The first code reader and the second code reader are both advanced production lines, and can use images, infrared and other methods to read the graphic code on the circuit board.
[0042] In addition, the model of the first code reader and the model of the second code reader may be the same or different, and this embodiment does not limit this.
[0043] In actual applications, some circuit boards are placed vertically, horizontally or rotated due to process requirements. When the circuit boards are placed on the production line, the graphic code may be located in the front, back or edge (left or right) of the circuit board with the flow direction of the circuit board as the positive direction. The code reader is required to have a wider reading range, while the reading range of a code reader is relatively limited. In this embodiment, a code reader is added on the basis of the original code reader, that is, the first code reader and the second code reader are configured at the same time to increase the reading range.
[0044] The first code reader is arranged above the edge of the production line, and the second code reader is arranged above the middle of the production line. The edge of the production line of the first code reader corresponds to the edge of the graphic code on the circuit board.
[0045] So, if Figure 3 As shown, for the graphic code 303 located at the edge of the circuit board, the first code reader can basically read the code successfully. For the graphic code 301 located in front of the circuit board and the graphic code 302 located behind the circuit board, the first code reader can mostly read the code successfully, but there is a certain probability of reading failure. For the graphic code 301 located in front of the circuit board and the graphic code 302 located behind the circuit board, the second code reader can basically read the code successfully. For the graphic code 303 located at the edge of the circuit board, the second code reader can mostly read the code successfully, but there is a certain probability of reading failure.
[0046] Furthermore, the reading range of the first code reader partially overlaps with the reading range of the second code reader. For example, the reading range of a certain model of code reader is about 300 mm. When arranged in the above manner, the reading ranges of the two code readers overlap by 30 mm. Therefore, no matter whether the graphic code may be located in front of, behind or at the edge of the circuit board, at least one of the first code reader and the second code reader can basically successfully read the graphic code.
[0047] If it is determined that a plurality of circuit boards are being conveyed on the production line, the first code reader and the second code reader may be activated to read the codes simultaneously.
[0048] Step 102: Control the first code reader to scan the graphic code on the circuit board using the first mode to obtain first code reading information.
[0049] In this embodiment, the first code reader can be controlled to use a predetermined first mode to scan the graphic code on the circuit board to obtain the first code reading information.
[0050] In actual applications, the first mode is also called the crazy scanning mode, that is, the first code reader does not care about the position of the circuit board, and controls the first code reader to continuously read the graphic code on the circuit board within its reading range. When the graphic code on the circuit board enters the reading range of the first code reader, the first code reader successfully reads the graphic code; when the graphic code on the circuit board does not enter the reading range of the first code reader, the first code reader fails to read the graphic code.
[0051] If the first code reader has read the graphic code, the preset decoding algorithm can be called to transcode the graphic code into the first board number, the first timestamp can be queried from the local timer, and the first board number and the first timestamp can be recorded in the first code reading information. At this time, any data of the first code reading information (i.e., the first board number and the first timestamp) can be uploaded to the EAP system.
[0052] Furthermore, there is a certain amount of time from when the graphic code on the circuit board enters the reading range of the first code reader to when it leaves the reading range of the first code reader. The first code reader will generate a series of first code reading information. At this time, the first code reader can deduplicate the series of first code reading information and upload a valid first code reading information to the EAP system.
[0053] If the first code reader does not read the graphic code, it is determined that the first code reading information is empty, and at this time, no data is uploaded to the EAP system.
[0054] Step 103: Control the second code reader to scan the graphic code on the circuit board using the second mode to obtain second code reading information.
[0055] In this embodiment, the second code reader can be controlled to use a predetermined second mode to scan the graphic code on the circuit board to obtain the second code reading information.
[0056] In practical applications, the second mode is also called the trigger mode, that is, Figure 2 As shown, a trigger 2024 matching the second code reader 2023 is provided in the track 202 of the production line. The trigger 2024 is fixed within the reading range of the second code reader 2023. The trigger 2024 can be activated by infrared, pressure or the like, so as to detect whether there is a circuit board 201 entering the reading range of the second code reader 2023.
[0057] In the process of the circuit board triggering the trigger (i.e., the circuit board starts to trigger the trigger and stops triggering the trigger), the second code reader is controlled to read the graphic code on the circuit board within its code reading range. When the graphic code on the circuit board enters the code reading range of the second code reader, the second code reader successfully reads the graphic code; when the graphic code on the circuit board does not enter the code reading range of the second code reader, the second code reader fails to read the graphic code.
[0058] If the second barcode reader has read the graphic code, the preset decoding algorithm is called to convert the graphic code into a second board number, the second timestamp is queried, and the second board number and the second timestamp are recorded in the second barcode reading information. At this time, the second barcode reading information (i.e., the second board number and the second timestamp) can be uploaded to the EAP system.
[0059] Furthermore, in the process of the circuit board triggering the trigger (i.e., the circuit board starts triggering the trigger to stops triggering the trigger), there is a certain amount of time from the graphic code on the circuit board entering the reading range of the second code reader to leaving the reading range of the second code reader. The second code reader will generate a series of second code reading information (i.e., the second board number and the second timestamp). At this time, the second code reader can deduplicate the series of second code reading information and upload a valid second code reading information to the EAP system.
[0060] If the second code reader does not read the graphic code, an unread tag Noread is generated, which indicates that the graphic code is not read. The second timestamp is queried, and the unread tag and the second timestamp are recorded in the second code reading information. At this time, the second code reading information (i.e., the unread tag Noread and the second timestamp) can be uploaded to the EAP system.
[0061] Furthermore, in the process of the circuit board triggering the trigger (i.e., the circuit board starts triggering the trigger to stops triggering the trigger), the second barcode reader will generate a series of second barcode reading information (i.e., the unread label Noread and the second timestamp). At this time, the second barcode reader can deduplicate the series of second barcode reading information and upload a valid second barcode reading information to the EAP system.
[0062] In the process of the circuit board triggering the trigger (that is, the circuit board starts triggering the trigger to stops triggering the trigger), if the second code reading information contains both the second board number and the second timestamp, as well as the unread label Noread and the second timestamp, then the unread label Noread and the second timestamp are ignored, and the second board number and the second timestamp are kept valid.
[0063] Step 104: configuring production identification information for the circuit board according to the first code reading information and the second code reading information.
[0064] For the same circuit board, the first code reader uses the first mode to scan and obtain the first code reading information, and the second code reader uses the second mode to scan and obtain the second code reading information. The first code reader and the second code reader use different modes to scan at different positions, so that there is a certain difference between the first code reading information and the second code reading information.
[0065] In practical applications, the first queue can be used to store the first code reading information of the first code reader, and the second queue can be used to store the second code reading information of the second code reader. The first code reading information in the first queue and the second code reading information in the second queue are pieced together into a code reading combination. In the same combination, production identification information is configured for the circuit board based on the difference between the first code reading information and the second code reading information, wherein the production identification information is information for uniquely identifying the circuit board on the production line.
[0066] In one embodiment of the present invention, step 104 may include the following steps:
[0067] Step 1041: If the first code reading information includes a first board number and a first timestamp, and the second code reading information includes a second board number and a second timestamp, then compare the first board number with the second board number.
[0068] Step 1042: If the first board number is the same as the second board number, a combination of the first board number and the first timestamp or a combination of the second board number and the second timestamp is configured as production identification information of the circuit board.
[0069] If the first code reading information includes the first board number and the first timestamp, and the second code reading information includes the second board number and the second timestamp, it means that both the first code reader and the second code reader read the graphic code of the circuit board, and the first board number can be further compared with the second board number.
[0070] If the first board number is the same as the second board number, the difference between the first timestamp and the second timestamp can be ignored, and the combination of the first board number and the first timestamp, or the combination of the second board number and the second timestamp, meets the requirements of being the production identification information of the circuit board. Then the combination of the first board number and the first timestamp, or the combination of the second board number and the second timestamp, can be configured as the production identification information of the circuit board.
[0071] In a specific implementation, the timestamp read last may be used as the basis, and at this time, the first timestamp is compared with the second timestamp.
[0072] If the first timestamp is greater than the second timestamp, that is, the first timestamp is later than the second timestamp, the combination of the first board number and the first timestamp can be configured as the production identification information of the circuit board.
[0073] If the first timestamp is smaller than the second timestamp, that is, the second timestamp is later than the first timestamp, the combination of the second board number and the second timestamp can be configured as the production identification information of the circuit board.
[0074] Of course, in addition to taking the last read timestamp as the standard, the first read timestamp or the average value between the first timestamp and the second timestamp may also be taken as the standard, and this embodiment does not limit this.
[0075] Step 1043: If the first code reading information includes the first board number and the first timestamp, and the second code reading information includes the unread label and the second timestamp, filter out the combination of the unread label and the second timestamp, and configure the combination of the first board number and the first timestamp as the production identification information of the circuit board.
[0076] If the first code reading information includes the first board number and the first timestamp, and the second code reading information includes the unread label and the second timestamp, it means that the first code reader reads the graphic code of the circuit board and the second code reader does not read the graphic code of the circuit board. In this way, the combination of the unread label and the second timestamp can be filtered out, and the combination of the first board number and the first timestamp can be configured as the production identification information of the circuit board.
[0077] Furthermore, the graphic code may be located at the front, back, or edge (left or right) of the circuit board, and the difference between the first timestamp of the first board number and the second timestamp of the unread tag may be different.
[0078] When the graphic code is located in front of the circuit board, the second timestamp of the unread tag is later than the first timestamp of the first board number of the current circuit board by a standard period of the circuit board, and is close to the first timestamp of the first board code of the next circuit board.
[0079] When the graphic code is located behind the circuit board, the second timestamp of the unread tag is close to the first timestamp of the first board number of the current circuit board, and is later than the first timestamp of the first board code of the next circuit board by nearly a standard period of a circuit board.
[0080] When the graphic code is located at the edge of the circuit board, the second timestamp of the unread tag is nearly half a standard cycle of a circuit board later than the first timestamp of the first board number of the current circuit board, and is nearly half a standard cycle of a circuit board earlier than the first timestamp of the first board number of the current circuit board.
[0081] In the above three cases, the unread label and the second timestamp can be compared with the first board number and the first timestamp read from the current circuit board (within the group) and the next circuit board (outside the group).
[0082] At this time, you can query the standard cycle (also known as standard beat) set for the circuit board, where standard cycle = time / (standard line speed / (width of circuit board / 1000+standard spacing between circuit boards / 100)). For a certain type of circuit board, its width is 514.0960mm, the standard line speed is 2.1m / min, the standard spacing between circuit boards is 5cm, and the time is 60min. Then, the standard cycle of the circuit board = 60 / (2.1 / (514.096 / 1000+5 / 100)) = 16.12S.
[0083] The product of the standard period and a preset ratio (such as 0.5) is calculated as the threshold.
[0084] An absolute value of the difference between the second timestamp and the first timestamp is taken to obtain a time deviation value, and the time deviation value is compared with a threshold.
[0085] If the time deviation value is less than the threshold, it means that the first board number and the unread tag both represent the same circuit board. Then the combination of the unread tag and the second timestamp can be filtered out, and the combination of the first board number and the first timestamp can be configured as the production identification information of the circuit board.
[0086] Step 1044: If the first code reading information is empty and the second code reading information includes the second board number and the second timestamp, a combination of the second board number and the second timestamp is configured as production identification information of the circuit board.
[0087] If the first code reading information is empty (i.e., the first code reading information does not exist) and the second code reading information contains the second board number and the second timestamp, it means that the first code reader did not read the graphic code of the circuit board and the second code reader read the graphic code of the circuit board. Then, the combination of the second board number and the second timestamp can be configured as the production identification information of the circuit board.
[0088] Step 1045: If the first code reading information is empty and the second code reading information includes an unread label and a second timestamp, the unread label and the second timestamp are configured as production identification information of the circuit board.
[0089] If the first code reading information is empty (i.e., there is no first code reading information) and the second code reading information includes an unread label and a second timestamp, indicating that neither the first code reader nor the second code reader reads the graphic code of the circuit board, the unread label and the second timestamp can be configured as the production identification information of the circuit board.
[0090] In this embodiment, the above four situations can be summarized as follows:
[0091]
[0092] Among them, "√" means that the barcode on the circuit board is read successfully, "×" means that the barcode on the circuit board is read unsuccessfully, " / " means empty, Pnlid1 is the first board number, Pnlid2 is the second board number, T1 is the first timestamp, and T2 is the second timestamp.
[0093] Step 105: Calculate the cycle utilization rate of the circuit board according to the production identification information.
[0094] In this embodiment, the production status of the circuit boards on the production line can be measured according to the production identification information, so as to calculate the cycle utilization rate of the circuit boards on the production line.
[0095] Furthermore, the time utilization rate and first-time pass rate of the production equipment can be statistically analyzed separately, and the product of the time utilization rate, the cycle utilization rate and the first-time pass rate can be calculated as the comprehensive utilization rate of the production equipment, so as to comprehensively evaluate the efficiency of the production equipment from the perspectives of working time and production capacity and speed.
[0096] In the specific implementation, the calculation and derivation process of the cycle utilization rate of a single circuit board is as follows:
[0097]
[0098] Among them, standard production speed = standard line speed / (board width + spacing), board width is the width of the circuit board, spacing is the standard spacing between circuit boards, and when the model of the circuit board is determined, the standard production speed is a constant.
[0099] Then, when calculating the cycle utilization rate of a single circuit board, the number of production identification information can be accumulated to obtain the actual output of the circuit board.
[0100] The time stamps of two adjacent production identifications (including the first time stamp and the second time stamp) are arranged with a time period between them, and the time periods between two adjacent production identification information are accumulated to obtain the actual cycle of the circuit board.
[0101] The ratio between the actual output and the actual cycle is calculated as the actual production speed (the unit is Pnl / min, where Pnl represents circuit board).
[0102] The standard production speed (in Pnl / min) set for the circuit board is queried locally based on the model and other parameters of the circuit board.
[0103] The ratio between the actual production speed and the standard production speed is calculated as the cycle utilization rate of the circuit board (in Pnl / min).
[0104] In the present invention, it is determined that a plurality of circuit boards are conveyed on the production line; the first code reader is controlled to use the first mode to scan the graphic code on the circuit board to obtain the first code reading information; the second code reader is controlled to use the second mode to scan the graphic code on the circuit board to obtain the second code reading information; the production identification information is configured for the circuit board according to the first code reading information and the second code reading information; the beat utilization rate of the circuit board is calculated according to the production identification information. The present invention uses the first code reader and the second code reader to read the code simultaneously, which can improve the coverage rate of the code reading range. When the circuit boards are placed arbitrarily, the code reading range can cover the circuit boards on the production line. The first code reading information read by the first code reader and the second code reading information read by the second code reader are different due to different positions and modes. The production identification information can be configured for the circuit board according to these differences, and the confidence of the production identification information is improved, thereby improving the accuracy of the statistical beat utilization rate of the circuit board and ensuring the normal production of the circuit board.
[0105] Embodiment 2
[0106] See also Figure 4 , which shows a schematic diagram of the structure of a device for detecting the beat utilization rate of a circuit board provided by the second embodiment of the present invention. A first code reader and a second code reader are arranged above the production line, such as Figure 4 As shown, the device comprises:
[0107] A circuit board determination module 401 is used to determine that a plurality of circuit boards are conveyed on the production line;
[0108] A first code reading control module 402, used to control the first code reader to scan the graphic code on the circuit board using a first mode to obtain first code reading information;
[0109] A second code reading control module 403, used to control the second code reader to scan the graphic code on the circuit board using a second mode to obtain second code reading information;
[0110] A production identification information configuration module 404, configured to configure production identification information for the circuit board according to the first code reading information and the second code reading information;
[0111] The cycle utilization rate calculation module 405 is used to calculate the cycle utilization rate of the circuit board according to the production identification information.
[0112] In one embodiment of the present invention, the first code reader is arranged above the edge of the production line, and the second code reader is arranged above the middle of the production line;
[0113] The code reading range of the first code reader partially overlaps with the code reading range of the second code reader.
[0114] In one embodiment of the present invention, the first code reading control module 402 includes:
[0115] A continuous code reading control module, used for controlling the first code reader to read the graphic code on the circuit board;
[0116] A first numbering time recording module, configured to convert the graphic code into a first board number, query a first timestamp, and record the first board number and the first timestamp in first code reading information if the first code reader has read the graphic code;
[0117] The code reading information blanking module is used to determine that the first code reading information is blank if the first code reader does not read the graphic code.
[0118] In one embodiment of the present invention, a trigger matching the second barcode reader is provided in the production line, and the second barcode reading control module 403 includes:
[0119] A trigger code reading control module, used for controlling the second code reader to read the graphic code on the circuit board when the circuit board triggers the trigger;
[0120] A second numbering time recording module, for converting the graphic code into a second board number, querying a second timestamp, and recording the second board number and the second timestamp in the second code reading information if the second code reader has read the graphic code;
[0121] The unread time recording module is used to generate an unread label, query the second timestamp, and record the unread label and the second timestamp in the second code reading information if the second code reader fails to read the graphic code.
[0122] In one embodiment of the present invention, the production identification information configuration module 404 includes:
[0123] a board number comparison module, configured to compare the first board number with the second board number if the first code reading information includes the first board number and the first timestamp, and the second code reading information includes the second board number and the second timestamp;
[0124] a first numbering time configuration module, configured to configure a combination of the first board number and the first timestamp, or a combination of the second board number and the second timestamp as production identification information of the circuit board if the first board number is the same as the second board number;
[0125] a second numbering time configuration module, configured to filter out a combination of the unread label and the second timestamp if the first code reading information includes the first board number and the first timestamp, and the second code reading information includes the unread label and the second timestamp, and configure the combination of the first board number and the first timestamp as the production identification information of the circuit board;
[0126] a third numbering time configuration module, configured to configure a combination of the second board number and the second timestamp as production identification information of the circuit board if the first code reading information is empty and the second code reading information includes the second board number and the second timestamp;
[0127] The unread time configuration module is used to configure the unread label and the second time stamp as the production identification information of the circuit board if the first code reading information is empty and the second code reading information includes the unread label and the second time stamp.
[0128] In one embodiment of the present invention, the first numbering time configuration module includes:
[0129] A first new time configuration module, configured to configure a combination of the first board number and the first timestamp as production identification information of the circuit board if the first timestamp is greater than the second timestamp;
[0130] The second new time configuration module is configured to configure the combination of the second board number and the second timestamp as the production identification information of the circuit board if the first timestamp is smaller than the second timestamp.
[0131] In one embodiment of the present invention, the second numbering time configuration module includes:
[0132] A standard cycle query module, used for querying the standard cycle set for the circuit board;
[0133] A threshold calculation module, used to calculate the product between the standard period and a preset ratio as a threshold;
[0134] A time deviation value calculation module, used for taking an absolute value of a difference between the second timestamp and the first timestamp to obtain a time deviation value;
[0135] The unread time filtering module is used to filter out the combination of the unread tag and the second timestamp if the time deviation value is less than the threshold, and configure the combination of the first board number and the first timestamp as the production identification information of the circuit board.
[0136] In one embodiment of the present invention, the beat utilization rate calculation module 405 includes:
[0137] An actual production volume calculation module, used to accumulate the quantity of the production identification information to obtain the actual production volume of the circuit board;
[0138] An actual cycle calculation module, used for accumulating the time period between two adjacent production identification information to obtain the actual cycle of the circuit board;
[0139] An actual production speed calculation module, used to calculate the ratio between the actual output and the actual cycle as the actual production speed;
[0140] A standard production speed query module, used to query the standard production speed set for the circuit board;
[0141] The ratio calculation module is used to calculate the ratio between the actual production speed and the standard production speed as the cycle utilization rate of the circuit board.
[0142] The device for detecting the beat utilization rate of a circuit board provided in an embodiment of the present invention can execute the method for detecting the beat utilization rate of a circuit board provided in any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method for detecting the beat utilization rate of a circuit board.
[0143] Embodiment 3
[0144] See also Figure 5 , shows a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, blade servers, mainframe computers, and other suitable computers. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0145] like Figure 5As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0146] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0147] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a method for detecting the beat utilization rate of a circuit board.
[0148] In some embodiments, the method for detecting the beat utilization rate of a circuit board can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for detecting the beat utilization rate of the circuit board described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the method for detecting the beat utilization rate of the circuit board in any other appropriate manner (for example, by means of firmware).
[0149] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0150] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0151] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0152] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0153] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0154] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0155] Embodiment 4
[0156] An embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the method for detecting the cycle utilization rate of a circuit board as provided in any embodiment of the present invention is implemented.
[0157] In the process of implementation, the computer program product can be written in one or more programming languages or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0158] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0159] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for detecting the cycle utilization rate of a circuit board, characterized in that: A first code reader and a second code reader are arranged above the production line, and the method comprises: Determining that a plurality of circuit boards are conveyed on the production line; Controlling the first code reader to scan the graphic code on the circuit board using a first mode to obtain first code reading information; Controlling the second code reader to scan the graphic code on the circuit board using a second mode to obtain second code reading information; Configuring production identification information for the circuit board according to the first code reading information and the second code reading information; The cycle utilization rate of the circuit board is calculated according to the production identification information.
2. The method according to claim 1, characterized in that The first code reader is arranged above the edge of the production line, and the second code reader is arranged above the middle of the production line; The code reading range of the first code reader partially overlaps with the code reading range of the second code reader.
3. The method according to claim 1, characterized in that The controlling the first code reader to scan the graphic code on the circuit board using the first mode to obtain the first code reading information includes: Controlling the first code reader to read the graphic code on the circuit board; If the first code reader has read the graphic code, the graphic code is converted into a first board number, a first timestamp is queried, and the first board number and the first timestamp are recorded in the first code reading information; If the first code reader does not read the graphic code, it is determined that the first code reading information is empty.
4. The method according to claim 3, characterized in that A trigger matching the second code reader is provided in the production line, and the second code reader is controlled to scan the graphic code on the circuit board using the second mode to obtain the second code reading information, including: When the circuit board triggers the trigger, controlling the second code reader to read the graphic code on the circuit board; If the second code reader has read the graphic code, the graphic code is converted into a second board number, a second timestamp is queried, and the second board number and the second timestamp are recorded in the second code reading information; If the second code reader does not read the graphic code, an unread label is generated, a second timestamp is queried, and the unread label and the second timestamp are recorded in the second code reading information.
5. The method according to claim 4, characterized in that The configuring production identification information for the circuit board according to the first code reading information and the second code reading information includes: If the first code reading information includes the first board number and the first timestamp, and the second code reading information includes the second board number and the second timestamp, then comparing the first board number with the second board number; If the first board number is the same as the second board number, a combination of the first board number and the first timestamp, or a combination of the second board number and the second timestamp is configured as production identification information of the circuit board; If the first code reading information includes the first board number and the first timestamp, and the second code reading information includes the unread label and the second timestamp, filtering out the combination of the unread label and the second timestamp, and configuring the combination of the first board number and the first timestamp as the production identification information of the circuit board; If the first code reading information is empty and the second code reading information includes the second board number and the second timestamp, a combination of the second board number and the second timestamp is configured as the production identification information of the circuit board; If the first code reading information is empty and the second code reading information includes the unread label and the second timestamp, the unread label and the second timestamp are configured as production identification information of the circuit board.
6. The method according to claim 5, characterized in that The configuring a combination of the first board number and the first timestamp, or a combination of the second board number and the second timestamp as the production identification information of the circuit board includes: If the first timestamp is greater than the second timestamp, configuring a combination of the first board number and the first timestamp as production identification information of the circuit board; If the first timestamp is smaller than the second timestamp, a combination of the second board number and the second timestamp is configured as the production identification information of the circuit board.
7. The method according to claim 5, characterized in that The filtering out the combination of the unread tag and the second timestamp, and configuring the combination of the first board number and the first timestamp as the production identification information of the circuit board, includes: Querying a standard cycle set for the circuit board; Calculate the product of the standard period and the preset ratio as a threshold; Taking an absolute value of a difference between the second timestamp and the first timestamp to obtain a time deviation value; If the time deviation value is smaller than the threshold, the combination of the unread tag and the second timestamp is filtered out, and the combination of the first board number and the first timestamp is configured as the production identification information of the circuit board.
8. The method according to any one of claims 1 to 7, characterized in that The step of calculating the cycle utilization rate of the circuit board according to the production identification information includes: Accumulating the quantity of the production identification information to obtain the actual output of the circuit board; Accumulating the time periods between two adjacent production identification information to obtain the actual cycle of the circuit board; Calculating a ratio between the actual output and the actual cycle as the actual production speed; Querying the standard production speed set for the circuit board; The ratio between the actual production speed and the standard production speed is calculated as the cycle utilization rate of the circuit board.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for detecting the cycle utilization rate of a circuit board as described in any one of claims 1-8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for detecting the cycle utilization rate of a circuit board according to any one of claims 1 to 8 is implemented.
