Production line scheduling method, scheduling control device, production line and electronic equipment
By obtaining information about each station in the production line, determining the scheduling method of processing actions and sending control instructions, the problem of multi-process and multi-station production line scheduling is solved, and a stable and efficient detection process is achieved.
Patent Information
- Application Number
- CN202311768601.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-20
- Publication Date
- 2025-06-20
AI Technical Summary
The prior art is difficult to effectively schedule multi-process and multi-station production lines, especially in multi-station detection scenarios, with complex scheduling logic and difficult to meet the increasing testing requirements.
A production line scheduling method is proposed. By obtaining information about the previous work station, the current work station and the subsequent work station, the current work station process the workpiece to be processed, and corresponding control instructions are sent according to the processing action to ensure the stable and orderly operation of the production line.
It realizes stable and orderly scheduling on the multi-process and multi-station production line, avoids chaos in the station operation, and improves detection efficiency and quality.
Smart Images

Figure CN120178799A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of production line control, and in particular to a scheduling method for a production line, a scheduling control device for a production line, a production line, an electronic device, and a non-transitory computer-readable storage medium. Background Art
[0002] A production line is the route through which a product passes during the production process, that is, starting from the raw materials entering the production site, passing through a series of production line activities such as processing, transportation, assembly, and inspection, and the production line is widely used in various fields and various processes.
[0003] Taking the quality inspection production line of a printed circuit board (PCB board, hereinafter referred to as PCB board) as an example, as the quality requirements of the PCB board increase, its quality is directly related to whether the equipment installed with this circuit board can operate normally. Before shipment, the PCB board has to go through inspection. The qualified PCB boards are arranged for packing and shipment, and the unqualified products are left in the factory for further processing. In order to improve the detection quality and detection efficiency of the PCB board, on the one hand, it is necessary to track and position the PCB boards on the detection production line, and on the other hand, the scheduling requirements for the detection production line are also higher. Especially with the increase in multi-process detection and multi-station detection, the scheduling difficulty is getting greater and greater.
[0004] See Figure 1 As shown, generally, after the PCB board is produced, a two-dimensional code will be pasted for identification, so as to track its detection results and flow direction at each subsequent detection station. When the PCB board enters the detection production line, in-circuit test (hereinafter referred to as ICT) and function check test (hereinafter referred to as FCT) will be carried out. Due to the large quantity of detection task items and detection quantities, more and more enterprises have started to develop automatic detection production lines. Refer to Figure 2 As shown, the PCB detection production line provided in the related technology is a series-connected linear structure, including a code scanning station (station 1), an ICT station (station 2), an FCT station (station 3), and a sorting station (station 4). The PCB board first passes through the code scanning station for code scanning to obtain the information of the PCB board, and then undergoes ICT detection and FCT detection in sequence, and finally is sorted according to the detection results (pass / fail).
[0005] With the increase in the number of stations designed in the PCB detection production line, especially after setting multiple stations with the same function, for example, considering the different beats of ICT detection and FCT detection, when one of the ICT stations and FCT stations is set multiple times, the increase in the number of ICT detection and FCT detection stations makes the scheduling logic more complex. The scheduling scheme for the multi-station detection production line is still not mature and has not been officially put into use in the workshop. Therefore, most detection production lines are inFigure 2 For a single-station inspection device that sets a single working station for each function shown, or a production line with multiple working stations for a single function, scheduling and control according to the scheduling logic of the single-station inspection device is difficult to meet the increasingly demanding inspection requirements. SUMMARY OF THE INVENTION
[0006] The present invention aims to solve at least one of the technical problems existing in the related art. To this end, the present invention proposes a scheduling method for a production line, which is suitable for scheduling with multiple processes and configurable multiple working stations, and controls the current working station by integrating the functions and states of all working stations to ensure that the entire scheduling process can proceed stably and orderly.
[0007] The present invention also proposes a scheduling control device for a production line.
[0008] The present invention also proposes a production line.
[0009] The present invention also proposes an electronic device.
[0010] The scheduling method for a production line according to an embodiment of the first aspect of the present invention includes:
[0011] Obtain the information of the previous working station of the previous working station in the production line, the information of the current working station of the current working station, and the information of the subsequent working station of the subsequent working station. Among them, the production line includes a series-connected previous working station, a current working station, and a subsequent working station. The previous working station includes all processing working stations before the current working station, the subsequent working station includes all processing working stations after the current working station, the previous working station information includes a previous processing function set and a previous processing result set. The previous processing function set is a set of processing functions of the previous working station, the previous processing result set is a set of corresponding relationships between the processing functions and processing results for the processed workpiece. The current working station information includes the current working station processing function and the current working station state. The subsequent working station information includes a subsequent processing function set and a subsequent working station state set. The subsequent processing function set is a set of processing functions of the subsequent working station, the subsequent working station state set is a set of states of the subsequent working station. Each processing function in the previous processing function set, each processing function in the subsequent processing function set, and the current working station processing function form a function set. The function set includes at least two different processing functions, and the function set includes at least two repeated processing functions;
[0012] Determine the processing action of the current working station on the processed workpiece according to the previous working station information, the current working station information, and the subsequent working station information, and send a corresponding control instruction according to the processing action. The processing action includes processing, directly passing through, and waiting.
[0013] The scheduling method of the production line according to the embodiment of the present invention is applicable to a production line with multiple functions and multiple workstations, and there are multiple workstations for at least one function, and each workstation is connected in series. In this case of workstation layout, combining the pre-processing result set of the previous workstation, the current workstation information of the current workstation, and the subsequent workstation information of the subsequent workstation, determine the processing action and control instruction of the current workstation, ensure that each function of the workpiece to be processed is processed in the production line without repeated processing, and can also ensure that each workstation can operate orderly and stably, avoiding the problem of chaotic operation of the workstation, and is applicable to production lines in various fields and with various functions.
[0014] According to an embodiment of the present invention, in the step of determining the processing action of the current workstation on the workpiece to be processed according to the previous workstation information, the current workstation information, and the subsequent workstation information, and sending a corresponding control instruction according to the processing action, it includes:
[0015] If it is determined that the pre-processing result set includes the processing result of the set function, then determine that the processing action is to directly pass through and send a pass instruction, and the pass instruction is used to schedule the workpiece to be processed to directly pass through the current workstation;
[0016] Or,
[0017] If it is determined that the pre-processing result set lacks the processing result of the set function, then determine the processing action according to the current workstation status and the subsequent workstation information and send a corresponding control instruction;
[0018] Wherein, the set function is the same function as the processing function of the current workstation.
[0019] According to an embodiment of the present invention, in the step of determining that the pre-processing result set lacks the processing result of the set function, and then determining the processing action according to the current workstation status and the subsequent workstation information, it includes:
[0020] If the current workstation status is obtained as a non-idle state, then determine the processing action according to the subsequent workstation information and send a corresponding control instruction;
[0021] Or,
[0022] If the current workstation status is obtained as an idle state, then determine that the processing action is to process and send a processing instruction, and the processing instruction is used to schedule the workpiece to be processed to move to the processing position of the current workstation and control the current workstation to process the workpiece to be processed.
[0023] According to an embodiment of the present invention, in the step of obtaining that the current workstation status is a non-idle state, then determining the processing action according to the subsequent workstation information and sending a corresponding control instruction, it includes:
[0024] If it is determined that the subsequent processing function set includes the set function, the station status of the subsequent station having the set function is obtained, and the processing action is determined according to the station status and the corresponding control instruction is sent;
[0025] Or,
[0026] If it is determined that the subsequent processing function set lacks the set function, it is determined that the processing action is to wait, and a hold instruction is sent, and the hold instruction is used to control the workpiece to be processed to remain at the previous station.
[0027] According to an embodiment of the present invention, in the step of obtaining the station status of the subsequent station having the set function, determining the processing action according to the station status, and sending the corresponding control instruction, it includes:
[0028] If it is obtained that all the station statuses are non-idle statuses, it is determined that the processing action is to wait and the hold instruction is sent;
[0029] Or,
[0030] If it is obtained that at least one of the station statuses is an idle status, it is determined that the processing action is to directly pass through and the pass instruction is sent.
[0031] According to an embodiment of the present invention, after the step of obtaining that all the station statuses are non-idle statuses, determining that the processing action is to wait and sending the hold instruction, it includes:
[0032] If it is obtained that the status of the current station is updated to an idle status, it is determined that the processing action is to process and the processing instruction is sent;
[0033] Or,
[0034] If it is obtained that the status of the station having the set function in the subsequent station is updated to an idle status, it is determined that the processing action is to directly pass through and the pass instruction is sent.
[0035] According to an embodiment of the present invention, the non-idle status of the current station includes a processing status and an abnormal status;
[0036] In the step of determining that the subsequent processing function set lacks the set function, determining that the processing action is to wait and sending the hold instruction, it includes:
[0037] If it is determined that the subsequent processing function set lacks the set function and the current station is in the processing status, it is determined that the processing action is to wait and the hold instruction is sent;
[0038] Or,
[0039] Determine that the subsequent processing function set lacks the set function, and the current station is in the abnormal state, then determine that the processing action is to wait, and send the hold instruction and the alarm instruction.
[0040] According to an embodiment of the present invention, in the step of determining that the subsequent processing function set lacks the set function, it includes: determining that the current station is the last processing station in the production line.
[0041] According to an embodiment of the present invention, in the step of determining that the previous processing result set lacks the processing result of the set function, it includes:
[0042] Determine that the current station is the first processing station of the production line.
[0043] According to an embodiment of the present invention, after the step of obtaining the previous station information of the previous station in the production line, the current station information of the current station, and the subsequent station information of the subsequent station, it further includes:
[0044] Determine that the previous processing result set includes the processing result of any function, and the processing result is not passed. Determine that the processing actions of the current station and the subsequent station on the workpiece to be processed are directly passed, and send a through instruction according to the processing action. The through instruction is used to schedule the workpiece to be processed to directly pass through the current station and the subsequent station.
[0045] According to an embodiment of the present invention, it further includes:
[0046] Obtain the identification code of the workpiece to be processed through the identification station, and the identification station is located before the previous station;
[0047] Mark the corresponding relationship between the station for processing the workpiece to be processed and the obtained identification code.
[0048] According to an embodiment of the present invention, after the step of obtaining the identification code of the workpiece to be processed through the identification station, it further includes:
[0049] Update the corresponding relationship between the obtained identification code and the processing result of the workpiece to be processed.
[0050] According to an embodiment of the present invention, the previous station, the current station, and the subsequent station are stations for circuit board detection, and the current station is an electrical performance test station or a function test station.
[0051] According to an embodiment of the second aspect of the present invention, there is provided a scheduling control device for a production line, including:
[0052] An information acquisition module, configured to acquire the information of the previous station, the information of the current station, and the information of the subsequent station in a production line. The production line includes a previous station, a current station, and a subsequent station connected in series. The previous station includes all processing stations before the current station, and the subsequent station includes all processing stations after the current station. The previous station information includes a previous processing function set and a previous processing result set. The previous processing function set is a set of processing functions of the previous station, and the previous processing result set is a set of corresponding relationships between the processing functions and the processing results of the workpiece to be processed. The current station information includes the current station processing function and the current station status. The subsequent station information includes a subsequent processing function set and a subsequent station status set. The subsequent processing function set is a set of processing functions of the subsequent station, and the subsequent station status set is a set of statuses of the subsequent station. Each processing function in the previous processing function set, each processing function in the subsequent processing function set, and the current station processing function form a function set. The function set includes at least two different processing functions, and the function set includes at least two repeated processing functions;
[0053] A determination module, configured to determine the processing action of the current station on the workpiece to be processed according to the previous station information, the current station information, and the subsequent station information, and send a corresponding control instruction according to the processing action. The processing action includes processing, directly passing through, and waiting.
[0054] According to an embodiment of the third aspect of the present invention, there is provided a production line for executing the production line scheduling method as described in any one of the above. The production line includes: a previous station, a current station, and a subsequent station connected in series and arranged in sequence. At least two stations in the previous stations, the subsequent stations, and the current station have the same function.
[0055] According to an embodiment of the fourth aspect of the present invention, there is provided an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the production line scheduling method as described in any one of the above is implemented.
[0056] According to an embodiment of the fifth aspect of the present invention, there is provided a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the production line scheduling method as described in any one of the above is implemented.
[0057] Additional aspects and advantages of the present invention will be given in part in the following description, become apparent in part from the following description, or be understood through the practice of the present invention. Description of the Drawings
[0058] To more clearly illustrate the technical solutions in the embodiments of the present invention or the related art, the following will briefly introduce the drawings required for use in the description of the embodiments or the related art. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0059] Figure 1 is a schematic diagram of the detection line of the PCB board provided in the prior art;
[0060] Figure 2 is a schematic diagram of the workstations in the detection line of the PCB board provided in the prior art;
[0061] Figure 3 is a schematic diagram of multiple processes and multiple workstations in the production line of the embodiment of the present invention;
[0062] Figure 4 is one of the flow schematic diagrams of the scheduling method of the production line of the embodiment of the present invention;
[0063] Figure 5 is the flow schematic diagram driven by events of the scheduling method of the production line of the embodiment of the present invention;
[0064] Figure 6 is the flow schematic diagram of the current workstation in the scheduling method of the production line of the embodiment of the present invention;
[0065] Figure 7 is the second flow schematic diagram of the scheduling method of the production line of the embodiment of the present invention;
[0066] Figure 8 is the schematic diagram of the current workstation in the scheduling method of the production line of the embodiment of the present invention;
[0067] Figure 9 is the schematic diagram of the thread in the scheduling method of the production line of the embodiment of the present invention;
[0068] Figure 10 is the flow schematic diagram when the set of previous processing results is empty in the scheduling method of the production line of the embodiment of the present invention;
[0069] Figure 11 is the flow schematic diagram when the set of previous processing results is passed in the scheduling method of the production line of the embodiment of the present invention;
[0070] Figure 12 is the flow schematic diagram when the set of previous processing results is not passed in the scheduling method of the production line of the embodiment of the present invention;
[0071] Figure 13It is a schematic diagram of the scheduling system corresponding to the scheduling method of the production line in the embodiment of the present invention;
[0072] Figure 14 It is a schematic diagram of the structure of the electronic device provided in the embodiment of the present invention. Detailed implementation manners
[0073] The following further describes the implementation manners of the present invention in detail with reference to the drawings and embodiments. The following embodiments are used to illustrate the present invention, but cannot be used to limit the scope of the present invention.
[0074] In the description of the embodiments of the present invention, it should be noted that the orientation or positional relationship indicated by the terms "center", "longitudinal", "transverse", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the embodiments of the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation to the embodiments of the present invention. In addition, the terms "first", "second", and "third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, the meanings of "multiple", "multiple roots", and "multiple groups" are two or more.
[0075] In the description of the embodiments of the present invention, it should be noted that unless otherwise clearly specified and limited, the terms "connected" and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium. For those of ordinary skill in the art, the specific meanings of the above terms in the embodiments of the present invention can be understood according to specific situations.
[0076] In the embodiments of the present invention, unless otherwise clearly specified and limited, the first feature being "on" or "under" the second feature may be that the first and second features are in direct contact, or the first and second features are indirectly in contact through an intermediate medium. Moreover, the first feature being "above", "over" and "on" the second feature may be that the first feature is directly above or obliquely above the second feature, or merely indicates that the first feature has a higher horizontal height than the second feature. The first feature being "under", "beneath" and "under" the second feature may be that the first feature is directly below or obliquely below the second feature, or merely indicates that the first feature has a lower horizontal height than the second feature.
[0077] In the description of this specification, the descriptions referring to terms such as "one embodiment", "some embodiments", "example", "specific example", or "some examples" mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the embodiments of the present invention. In this specification, the schematic expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. In addition, without contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.
[0078] An embodiment of the first aspect of the present invention provides a scheduling method for a production line, which can be applicable to various production lines such as processing production lines, assembly production lines, and inspection production lines in production, and can be used in various fields such as production lines for electronic parts, production lines for mechanical parts, and production lines for sealing parts. The function and field of the production line are not limited. The scheduling method for the production line in the embodiments of the present invention is applicable to a production line having multiple workstations, and at least two of the multiple workstations have the same function. The scheduling method for the production line in the embodiments of the present invention will be described by taking the inspection production line of a circuit board as an example. Refer to Figure 3 As shown, the inspection production line of the circuit board includes 2 ICT inspection workstations and 3 FCT inspection workstations.
[0079] Refer to Figure 4 As shown, the scheduling method for the production line in the embodiments of the present invention includes:
[0080] In step 100, obtain the pre-workstation information of the previous workstation in the production line, the current workstation information of the current workstation, and the post-workstation information of the subsequent workstation; wherein, the production line includes a series-connected previous workstation, current workstation, and subsequent workstation. The pre-workstation information includes a pre-processing function set and a pre-processing result set. The previous workstation includes all the processing workstations before the current workstation. The pre-processing function set is a set of the processing functions of the previous workstation. The pre-processing result set is a set of the corresponding relationships between the processing functions and processing results of the processed workpiece. The current workstation information includes the current workstation processing function and the current workstation status. The post-workstation information includes a post-processing function set and a post-workstation status set. The subsequent workstation includes all the processing workstations after the current workstation. The post-processing function set is a set of the processing functions of the subsequent workstation. The post-workstation status set is a set of the statuses of the subsequent workstation. Each processing function in the pre-processing function set, each processing function in the post-processing function set, and the current workstation processing function form a function set. The function set includes at least two different processing functions, and the function set includes at least two repeated processing functions;
[0081] The previous station is the station upstream of the current station. The number of previous stations can be one or more, without limitation; the subsequent station is the station downstream of the current station. The number of subsequent stations can be one or more, without limitation; the current station is a station with the processing function of the current station.
[0082] When the production line includes three or more stations, each station can be the current station. The set of all stations before the current station is the previous station, and the set of all stations after the current station is the subsequent station. In some cases, the current station can be the first station. If the current station is the first station, the previous station is empty; the current station can also be the last station. If the current station is the last station, the subsequent station is empty. It should be noted that the previous station, the current station, and the subsequent station are all stations with processing functions in the production line. The processing functions include processing, inspection, assembly, etc. The processing station is a function with a processing function, such as a processing station, an inspection station, an assembly station, etc.
[0083] The set of previous processing functions in the previous station information can be understood as the processing functions of each processing station in the previous stations among all stations upstream of the current station. The set of previous processing functions can include inspection functions, processing functions, assembly functions, etc. The set of previous processing functions can also include the first function, the second function, and the third function. The first function, the second function, and the third function are different. The first function, the second function, and the third function can be respectively one of the inspection functions, such as the above-mentioned ICT inspection or FCT inspection. When there is one previous station, the set of previous processing functions is one function. When there are multiple previous stations, the set of previous processing functions includes the corresponding number of processing functions.
[0084] The set of previous processing results in the previous station information can be understood as the set of the corresponding relationships between the processing results after the processing stations in the previous stations process the workpieces to be processed and the processing functions corresponding to the processing results. The set of previous processing results can include passing the first function processing and failing the second function processing. For example, passing the processing can be passing the inspection, completing the processing, completing the assembly, and failing the processing can be failing the inspection, failing the processing, failing the assembly, etc.
[0085] The current station processing function in the current station information is a definite function, such as ICT testing or FCT testing; the current station status of the current station can be understood as the status of the current station, and the current station status includes an idle state and a non-idle state. The idle state indicates that the current station is available and the workpiece to be processed can enter the current station for processing. The non-idle state indicates that the current station is unavailable and the workpiece to be processed cannot enter the current station for processing. The non-idle state can include a busy state and an abnormal state. Both the busy state and the abnormal state indicate that the current station is unavailable. The busy state can include processing a workpiece, the workpiece is entering, the workpiece is being sent out, etc.; the abnormal state can include a through state and an offline state. In the through state, the processing function of the current station fails, and the workpiece to be processed cannot be processed at the current station, but the workpiece to be processed can pass through the current station to enter the subsequent station; in the offline state, the current station is disconnected from the controller, and the controller cannot receive the information of the current station. The current station is unavailable and uncontrollable, and the workpiece to be processed cannot enter or pass through the current station. At this time, it can be understood that the production line has a fault.
[0086] The set of subsequent processing functions in the subsequent station information can be understood as the set of the processing functions of each station in the subsequent stations. The number of subsequent stations is the same as the number of processing functions in the set of subsequent processing functions. The set of subsequent processing functions can include at least one of ICT testing and FCT testing.
[0087] The set of subsequent station statuses in the subsequent station information can be understood as the set of the station statuses of one or more stations in the subsequent stations. The status of each station in the subsequent stations includes an idle state and a non-idle state. The idle state and the non-idle state can refer to the above explanations for the current station status.
[0088] Each processing function in the set of pre-processing functions, each processing function in the set of subsequent processing functions, and the current station processing function constitute a function set. The function set includes at least two different processing functions, and the function set includes at least two repeated processing functions, that is, the production line has at least two processing functions and the processing functions of at least two stations are the same. For example, the PCB board detection production line includes ICT testing and FCT testing. The current station processing function is ICT testing (or FCT testing). Each station in the previous stations and at least one station in each station in the subsequent stations have the FCT testing function, and at least one of the ICT testing stations and the FCT testing stations is set multiple times.
[0089] "The function set includes at least two repeated processing functions" can be understood as that at least two stations among each station in the previous stations, each station in the subsequent stations, and the current station have the same function.
[0090] Combining the above content, each of the previous station, the current station, and the subsequent station can be described in two dimensions: attribute and status. The attribute describes the static nature of the station, such as the station function (barcode scanning, ICT, FCT, etc.), and the station number (Scan, ICT1, ICT2, etc.); the status describes the dynamic nature of the station. Here, the status is divided into abnormal (the station is unavailable but can be directly passed through, such as maintenance, failure, etc.), busy (the station cannot be used but can be directly passed through, such as in the process of feeding the board, pressing down, etc.), offline (the station is unavailable and cannot communicate), and idle (the station is available).
[0091] When each of the previous station and the subsequent station includes one station, the production line includes three stations, and the three stations have two functions, where the functions of two stations are the same. For example, the production line has an ICT test station and an FCT test station. When at least one of the previous station and the subsequent station includes multiple stations, the production line includes four or more stations, and the functions of at least two stations are the same. For example, the production line has two or more ICT test stations and two or more FCT test stations. The production line includes two ICT test stations and three FCT test stations.
[0092] In step 200, according to the previous station information, the current station information, and the subsequent station information, determine the processing action of the current station on the workpiece to be processed and send a corresponding control instruction according to the processing action. The processing actions include processing, directly passing through, and waiting.
[0093] Combining the previous station information (previous processing function set and previous processing result set), the current station information (current station processing function and current station status), and the subsequent station information (subsequent processing function set and subsequent station status set), determine the processing action of the current station and send a corresponding control instruction. The processing action of the current station is associated with the previous processing result set of the previous station, the current station information of the current station, and the subsequent station information of the subsequent station, associating all the processing stations in the production line. According to the layout of the stations in the entire production line and the functions of each processing station, determine the processing action of the current station so that the entire production line can operate stably.
[0094] The processing actions include processing, passing directly, and waiting. Processing can be understood as performing processing at the current station. Passing directly can be understood as passing directly through the current station without performing processing at the current station. Waiting can be understood as waiting at the current position to enter the current station for processing or pass through the current station. The current position can be understood as the passing position of the previous station. Generally, the passing position here is the previous station of the current station. The workpiece to be processed enters the stations in the production line in sequence. Before entering the next station from the previous station, it is necessary to determine the processing action and then control the movement of the workpiece to be processed. Of course, in some cases, the current position can also be the passing position of a previous station that is several stations away from the current station.
[0095] Among them, different processing actions correspond to different control instructions. The control instructions are used to control the actions of various devices in the production line. If the processing action is processing, the control instruction is the processing instruction. If the processing action is passing directly, the control instruction is the passing instruction. If the processing action is waiting, the control instruction is the holding instruction.
[0096] When the processing action is processing, the processing instruction controls the workpiece to be processed to be transported to the processing position of the current station and controls the current station to perform processing. When the processing action is passing directly, the passing instruction controls the workpiece to be processed to pass through the passing position of the current station, such as transporting the workpiece to be processed through the action of the conveying device. When the processing action is waiting, the holding instruction controls the workpiece to be processed to remain stationary at the current position. If a scheduling instruction corresponding to the control of the conveying device is sent, the conveying device drives the workpiece to be processed to move, so that the workpiece to be processed is transported to the corresponding position. At this time, the current station can also perform the corresponding action accordingly. For example, if the workpiece to be processed is transported to the detection position of the current station, the device at the current station performs the detection function.
[0097] The processing action and control instruction of the current station are obtained through the joint action of the information of the previous station of the previous station, the information of the current station, and the information of the subsequent station of the subsequent station. It can determine whether to perform processing at the current station and how to schedule the workpiece to be processed. For reference, Figure 5 as shown.
[0098] All stations after the first station of the production line can be used as the current station, and the processing action and control instruction are determined according to the control logic of the current station. Each current station is judged to determine the decision-making and scheduling of each station, ensuring that each station can be accurately coordinated, improving the processing efficiency, being able to avoid the rhythm differences of each process, making full use of the detection functions of each station, and maintaining the stability of the processing quality.
[0099] The scheduling method of the production line in the embodiment of the present invention can be used for the detection line of PCB boards to improve the detection efficiency.
[0100] In some cases, referring to Figure 5 and Figure 6 As shown, the pre-stage station information of the previous station can form the process event of the previous station of the current station, which is called the previous event. The previous event contains all the previous station information. For example, the previous event includes the detection process, detection results, information of the workpiece to be processed (such as PCB board information), etc. When the workpiece to be processed is determined with the current station and the corresponding actions are executed, the process event of the current station is formed. The process event of the current station combined with the previous event is called the current event. The current event includes all the previous station information and the processing information of the current station, so as to drive the processing actions and scheduling behaviors of the subsequent stations through the current event of the current station.
[0101] Therefore, for the scheduling method of the production line in the embodiments of the present invention, according to the principle of the event-driven scheduling method, each station can be represented by its function and status. The status represents the current station status of the device at a certain moment (one of the status sets). For the current station, every time a new PCB board comes, a decision analysis of the current station will be carried out according to the status of the PCB board (scanned code record, continuously updated), the attributes (functions) and status of this station, and the attributes (functions) and status of the subsequent stations, and the result will be converted into an event. The event contains the actions of the previous station (PCB board), the actions of the current station, and the status of the associated stations in the subsequent stations, and is converted into an executable control instruction and sent to each execution device.
[0102] It can be understood that, referring to Figure 7 As shown, in step 200, that is, in the step of determining the processing action of the workpiece to be processed by the current station according to the previous station information, the current station information, and the subsequent station information and sending the corresponding control instruction according to the processing action, it includes:
[0103] Step 210, if it is determined that the previous processing result set includes the processing result of the set function, then determine that the processing action is to directly pass through and send a pass instruction. The pass instruction is used to schedule the workpiece to be processed to directly pass through the current station;
[0104] Or,
[0105] Step 220, if it is determined that the previous processing result set lacks the processing result of the set function, then determine the processing action according to the current station status and the subsequent station information;
[0106] Wherein, the set function is the same function as the processing function of the current station.
[0107] The setting function and the processing function of the current station are the same function. It can be understood that both the setting function and the processing function of the current station are ICT inspections, or both the setting function and the processing function of the current station are FCT inspections. In the production line applicable to the embodiments of the present invention, each function in the production line only needs to be executed once.
[0108] Obtain the previous processing result set, and then determine whether there is a processing result for the setting function in the previous processing result set. If it is determined that the previous processing result set includes the processing result for the setting function, the current station does not need to process again, and the processing action can be obtained. The processing action is to directly pass and send a pass instruction to enable the workpiece to pass through the current station. If it is determined that the previous processing result set does not include the processing result for the setting function, the processing action needs to be determined according to the current station status of the current station and the subsequent station information.
[0109] Among them, "determine that the previous processing result set includes the processing result for the setting function". Whether the processing result for the setting function in the previous processing result set is passed or not passed, it can be known that the previous station has processed the setting function and there is no need to process the setting function again. It can be judged that the processing action of the current station is a pass decision. "Determine that the previous processing result set lacks the processing result for the setting function", then it is determined that the previous station has not processed the setting function, and the setting function needs to be processed at the current station or subsequent stations. "Determine that the previous processing result set lacks the processing result for the setting function" also includes determining that the current station is the first processing station in the production line. At this time, both the obtained previous processing result set and the previous processing function set are empty sets.
[0110] It should be noted that the current station includes two positions, one is the processing position and the other is the passing position. The processing position and the passing position are independent. If the processing position is in the processing state, the passing position is in the unobstructed state, and the workpiece to be processed can pass through the current station from the passing position to enter the next station; if the processing position is in the idle state, the workpiece to be processed can be transported from the passing position to the processing position; after the workpiece to be processed at the processing position is processed, the workpiece to be processed is also transported to the passing position and can pass through the next station along the passing position, or the workpiece to be processed is directly transported from the processing position to the next station. Refer to Figure 3 As shown, taking the previous station, the current station and the subsequent station as the inspection stations of the circuit board as an example, the inspection stations are divided into ICT inspection stations and FCT inspection stations. Refer to Figure 8 As shown, the actions involved in each current station during the inspection process include board feeding, pressing down, inspection, lifting up, and board discharging.
[0111] Refer to Figure 8As shown in the figure, a conveying device is provided on one side of the processing position of the current work station. The conveying device transports the workpiece to be processed to the processing position, and the workpiece to be processed at the processing position can be transported onto the conveying device. When the conveying device includes a conveying track, the passing position can be set on the conveying track, and the workpiece to be processed can pass through the passing position by moving along the conveying track (or moving with the conveying track). Figure 8 As shown in the figure, in the case where the processing function at the current work station is a detection function, the processing position can be understood as a detection position with a detection function. The passing position is set above the processing position, and the workpiece to be processed switches between the processing position and the passing position through a lifting movement. The workpiece to be processed can pass through the passing position along the conveying track and enter the next work station.
[0112] It can be understood that with reference to Figure 7 As shown in the figure, in step 220, that is, when it is determined that the pre - processing result set lacks the processing result for the set function, in the step of determining the processing action according to the current work station state and the subsequent work station information, it includes:
[0113] Step 221, if it is obtained that the current work station state is a non - idle state, then determine the processing action according to the subsequent work station information and send the corresponding control instruction;
[0114] Or,
[0115] Step 222, if it is obtained that the current work station state is an idle state, then determine the processing action as processing and send a processing instruction. The processing instruction is used to schedule the workpiece to be processed to move to the processing position of the current work station and control the current work station to process the workpiece to be processed.
[0116] Based on the fact that the pre - processing result set lacks the processing result for the set function, it is considered that the previous work station did not perform the processing for the set function, and thus the processing for the set function needs to be performed at the current work station or the subsequent work station. At this time, first judge the state of the current work station. If the current work station is in an idle state, then process at the current work station. If the current work station is in a non - idle state, then it is necessary to obtain the subsequent work station information and determine the processing action according to the subsequent work station information.
[0117] Among them, the idle state and the non - idle state can refer to the above explanation of the current work station state, and will not be elaborated here.
[0118] It should be noted that step 221 and step 222 are in an alternative relationship. Under the condition of meeting the condition of step 220, according to the conditions of step 221 and step 222, one of them is executed.
[0119] It can be understood that with reference to Figure 7 As shown in the figure, in step 221, if it is obtained that the current work station state is a non - idle state, then in the step of determining the processing action according to the subsequent work station information, it includes:
[0120] Step 223, if it is determined that the subsequent processing function set includes the setting function, then obtain the station status of the subsequent stations with the setting function, determine the processing action according to the station status of the subsequent stations with the setting function, and send the corresponding control instruction;
[0121] Or,
[0122] Step 224, if it is determined that the subsequent processing function set lacks the setting function, then determine the processing action as waiting and send a holding instruction, and the holding instruction is used to control the workpiece to be processed to stay at the previous station.
[0123] When the current station status is not the idle state, the current station cannot perform processing. Then, it is necessary to determine whether there are stations with the setting function in the subsequent stations. If so, it is necessary to continue to determine the station status of the stations with the setting function. If not, the workpiece to be processed needs to wait until the workpiece to be processed can be processed at the current station.
[0124] It should be noted that "the holding instruction is used to control the workpiece to be processed to stay at the previous station" can be understood as that the workpiece to be processed cannot enter the current station and remains stationary. At this time, if the workpiece to be processed is at the previous station, it will wait at the previous station.
[0125] "Determining that the subsequent processing function set lacks the setting function" may include: determining that the current station is the last processing station in the production line. At this time, the subsequent processing function set is an empty set.
[0126] Step 223 and Step 224 are in an alternative relationship. Under the condition of meeting the conditions of Step 221, one of them is executed according to the conditions of Step 223 and Step 224.
[0127] It can be understood that, as shown in Figure 7 In Step 223, that is, in the step of obtaining the station status of the subsequent stations with the setting function, determining the processing action according to the station status of the subsequent stations with the setting function, and sending the corresponding control instruction, it includes:
[0128] Step 225; if it is obtained that the station status of all subsequent stations with the setting function is not the idle state, then determine the processing action as waiting and send a holding instruction;
[0129] Or,
[0130] Step 226, if it is obtained that the station status of at least one subsequent station with the setting function is the idle state, then determine the processing action as directly passing through and send a passing instruction.
[0131] If it is determined that the subsequent station includes a setting station with a set function, then the processing of the set function is not limited to the current station. It is necessary to determine the processing action of the current station on the workpiece to be processed in combination with the station status of the setting station. Different station statuses of the setting station correspond to different processing actions of the current station. Therefore, it is necessary to determine the processing power of the current station according to the station status of the setting station. The station status of each station includes an idle state and a non-idle state. When the setting station is in the idle state, the workpiece to be processed can pass through the current station and move to the setting station in the idle state for processing; when the setting station is in the non-idle state, neither the current station nor the setting station can process the workpiece to be processed at present. At this time, the workpiece to be processed can remain stationary.
[0132] It should be noted that in step 226, if it is obtained that the station status of at least one of the subsequent stations with the set function is the idle state, then it is determined that the processing action is to directly pass through and send a passing instruction. For the workpiece to be processed, in some cases, the workpiece to be processed directly passes through the current station and enters the next station of the current station (the first station of the subsequent stations). In the next station of the current station, the scheduling methods of steps 100 and 200 need to be re-executed; in some other cases, the workpiece to be processed directly passes through the current station and is scheduled to the setting station in the idle state.
[0133] Step 225 and step 226 are in an alternative relationship. Under the condition of meeting the condition of step 223, one of them is executed according to the conditions of step 225 and step 226.
[0134] It can be understood that, as shown in Figure 7 After the step of determining that the processing action is to wait and send a holding instruction when it is obtained that the station status of all the subsequent stations with the set function is the non-idle state in step 225, it includes:
[0135] If it is obtained that the status of the current station is updated to the idle state, then it is determined that the processing action is to process and send a processing instruction;
[0136] Or,
[0137] If it is obtained that the station status of the subsequent station with the set function is updated to the idle state, then it is determined that the processing action is to directly pass through and send a passing instruction.
[0138] Based on the fact that the workpiece to be processed waits at the previous station, if it is determined that one of the current station and the setting station updates its status to the idle state, then the processing action of the current station on the workpiece to be processed can be re-determined.
[0139] It should be noted that in this embodiment, the state change between the current station and the set station is used as the condition for re-determining the processing action. By monitoring the updated states of the current station and the set station, the data acquisition volume can be reduced, and the corresponding processing action can be obtained accurately and efficiently. In some other cases, the current station information and the subsequent station information are re-acquired at a preset time interval, and the updated current station information and subsequent station information are brought into step 200 for judgment to determine the processing action.
[0140] It can be understood that the non-idle state of the current station includes the processing state and the abnormal state. The processing state can be understood as that the current station is in a working state, such as a processing state, a detection state, an assembly state, etc.; the abnormal state can be understood as that the current station is not working but can pass, such as a fault state, a maintenance state, etc.
[0141] It can be understood that in step 224, when it is determined that the subsequent processing function set lacks the set function, the steps for determining the processing action as waiting and sending a hold instruction include:
[0142] When it is determined that the subsequent processing function set lacks the set function and the current station is in the detection state, the processing action is determined to be waiting and sending a hold instruction.
[0143] If the subsequent station lacks the set station with the set function, the workpiece to be processed can only be processed at the current station. Therefore, it is necessary to control the workpiece to be processed to remain stationary until the state of the current station switches to the idle state, and then control the workpiece to be processed to move to the processing position of the current station for processing to ensure that the workpiece to be processed performs the set function processing in the production line.
[0144] It can be understood that in step 224, when it is determined that the subsequent processing function set lacks the set function, the steps for determining the processing action as waiting and sending a hold instruction further include:
[0145] When it is determined that the subsequent processing function set lacks the set function and the current station is in the abnormal state, the processing action is determined to be waiting, sending a hold instruction and an alarm instruction.
[0146] If the subsequent station lacks the set station with the set function, the workpiece to be processed can only be processed at the current station. If the current station is in the abnormal state, the current station cannot perform the processing, and the workpiece to be processed cannot perform the set function processing in the subsequent station either. The processing of the workpiece to be processed is abnormal, and the workpiece to be processed remains stationary, that is, waits at the previous station and sends an alarm instruction.
[0147] The alarm instruction can be that the processor sends an alarm signal, or the current station or the previous station where the workpiece to be processed is located sends an alarm signal. The alarm signal can be a sound signal, a light signal, etc.
[0148] It can be understood that after step 100, that is, after the step of obtaining the pre-station information of the previous station in the production line, the current station information of the current station, and the subsequent station information of the subsequent station, it further includes:
[0149] Step 300, determining that the pre-processing result set includes the processing result of any one processing function and the processing result is not passed, determining that the processing actions of the current station and the subsequent station on the workpiece to be processed are directly passed, and sending a direct-pass instruction according to the processing action, where the direct-pass instruction is used to schedule the workpiece to be processed to directly pass through the current station and the subsequent station.
[0150] When the previous station processes the workpiece to be processed and the processing result of any one function is not passed, there is no need to process other functions, and the workpiece to be processed can be directly conveyed to the output end of the production line. For this workpiece to be processed, the decision-making steps of each station can be reduced, and the control process can be simplified.
[0151] Of course, if the processing result of any one function is not passed, it is also possible to control the workpiece to be processed to be removed from this station, such as manually removed or removed by other equipment.
[0152] It can also be understood that the scheduling method of the production line in the embodiment of the present invention further includes:
[0153] Step 400, obtaining the identification code of the workpiece to be processed through an identification station, where the identification station is located before the previous station;
[0154] The identification station includes one of a code-scanning station and a code-engraving station. The identification code can be obtained through the code-scanning station or the code-engraving station. The code-scanning station or the code-engraving station can be upstream of the previous station. The identification station is before the first processing station of the previous station. Each station in the previous station, each station in the subsequent station, and the current station are not independently provided with a code-scanning station, which can simplify the structure of each station and the debugging process. The identification code can be a two-dimensional code, a bar code, a digital code, etc., and the type of the identification code is not limited.
[0155] The processing station does not include the identification station in this embodiment.
[0156] Step 500, marking the corresponding relationship between the processing station for processing the workpiece to be processed and the obtained identification code.
[0157] To achieve traceability of the processing data of each workpiece to be processed, a unique identification code is required on the product. The processing station needs to obtain this identification code, and bind and store the processing station with the identification code. The corresponding relationship between the processing station and the identification code is realized through marking, without the need to scan the code at each station, and thus without the need to install a code scanning device at each station, which can simplify the structure of the production line and reduce the commissioning time of the equipment in the production line.
[0158] The processing station may include a previous station, a current station or a subsequent station.
[0159] It should also be noted that the step of marking the corresponding relationship between the processing station that processes the workpiece to be processed and the identification code can be after the workpiece to be processed enters the processing position of the processing station, during the process of the processing station processing the workpiece to be processed, or after the processing station completes the processing of the workpiece to be processed. The time of marking is not limited. Correspondingly, if a code scanning station is set up in the production line, the position of the code scanning station needs to be set before all processing stations, so that multiple processing stations after the code scanning station can associate the relationship between the workpiece to be processed and the processing station by allocating identification codes, which can reduce the number of code scanning stations, simplify the structure of the production line, and simplify the commissioning of the production line.
[0160] By scanning the code or engraving the code once, the identification code can be obtained. Multiple processing stations share one code scanning station or one code engraving station, which can reduce the commissioning time and floor area, improve the flexibility of the production line, only need to call parameters when changing the line, reduce the operation difficulty, and improve the line change efficiency. For example, an independent code scanning station is designed in front of the processing station, and the whole production line distributes the identification codes uniformly by the controller.
[0161] In a specific scenario, using the above scheduling method only requires one code scanning operation to achieve traceability, reducing the cost of the code scanning guns at the identification stations. At the same time, it can realize the scheduling of the automated production line, mark the scheduling process through the identification code and update the processing results corresponding to each identification code. Compared with the production line that requires one code scanning operation at each station, the cost can be reduced by reducing the number of code scanning guns. In some other cases, affected by the product model, the corresponding positions of the identification codes are different, and the positions of the code scanning guns need to be debugged, and the code scanning guns are configured and used according to different product models to ensure that the code scanning guns correspond to the identification codes of each product. The embodiment of the present invention only sets one identification station, which can reduce the procedures and time for debugging the code scanning guns due to different product models and improve the adjustment efficiency of the production line.
[0162] It can also be understood that after step 400, after the step of obtaining the identification code of the workpiece to be processed through the identification station, it further includes:
[0163] Updating the corresponding relationship between the obtained identification code and the processing result of the workpiece to be processed.
[0164] After the workpiece to be processed is processed and the corresponding processing result is obtained, the corresponding relationship between the acquired identification code and the processing result is updated in the database. For example, the ICT processing result of identification code A is updated to pass, and the FCT processing result of identification code A is updated to fail, etc.
[0165] The identification code is directly associated with the processing result and updated in real time. There is no need to collect the identification code again, which can simplify the structure of the production line, reduce the cost of the production line, and shorten the commissioning time of the production line.
[0166] It can also be understood that referring to Figure 9 As shown, the scheduling method of the production line according to the embodiment of the present invention further includes:
[0167] Step 600, recording the sequence relationship of the processing stations for processing the workpiece to be processed through a thread.
[0168] After the workpiece to be processed enters the production line, a thread of the workpiece to be processed is created to record the sequence relationship of the processing stations for processing the workpiece to be processed through the thread. Among them, the sequence relationship of the processing stations can be understood as the processing sequence of the workpiece to be processed is ICT2 and FCT3, or FCT2 and ICT1, etc.
[0169] Regarding the problem that the PCB board scanning code is only limited to recording its identification code and cannot track which station the PCB board is detected at, which items are detected, and cannot record the detection result, all information of the PCB board processing can be accurately recorded through the thread.
[0170] Combined with step 500, after the thread is created, the identification code can be assigned to each processing station.
[0171] Combined with Figure 9 As shown, taking one scanning code station and five detection stations (only two detection stations are marked in the figure, and the other three detection stations are omitted for simplicity) as an example, when the identification code information scanned by the scanning code station is received, a thread of a PCB board is created to follow the status of this PCB board. When the thread of the PCB board detects that the feeding of the scanning code station is completed and the discharging of the scanning code station is completed, the thread of the PCB board distributes the identification code corresponding to this thread to detection station 1; when the thread of the PCB board detects that the discharging of detection station 1 is completed and the feeding of detection station 2 is completed, the thread of the PCB board distributes the identification code to detection station 2, and so on, until detection station 5 (not shown in the figure) is the last station and the discharging is completed, then the recording of the thread is completed, and the information of the thread can be transmitted to the memory for storage, and this thread is deleted in the controller. There are multiple PCB threads at the same time, and the number is equal to the number of PCB boards existing in the current entire production line.
[0172] It can be understood that after step 600, that is, after the step of recording the sequence relationship of the processing stations for processing the workpiece to be processed through the thread, it includes:
[0173] If it is determined that the current processing station switches to an abnormal state and is updated to a normal state before the current processing station switches to an offline state, then the thread is retained.
[0174] Each station on the production line involves multiple states, such as an idle state and a non-idle state. The non-idle state includes a processing state, an abnormal state, and an offline state. Taking the processing state as the detection state, the detection state includes in detection, pressing down, lifting up, and waiting. The abnormal state includes faults, repairs, etc. The abnormal state can be switched to an idle state, a processing state, or an offline state through processing. The offline state is disconnected from the controller and the station cannot be controlled anymore, and the production line fails.
[0175] Before the state of the processing station switches from an abnormal state to an offline state, it is updated to a normal state. The normal state includes an idle state and a processing state. If the processing station can process normally, the thread can be retained and the workpiece to be processed can continue to be processed, such as continuing to execute the next action, improving the utilization efficiency of the equipment.
[0176] In some cases, the thread of the PCB board is responsible for monitoring the state of the corresponding PCB. It can be compared with the set process route through the thread to determine whether the PCB board has entered a suitable processing station. If the entered processing station is within the set process route, the identification code is distributed. If the entered processing station is not within the set process route, the identification code is not distributed, and the PCB board is controlled to be removed from the station.
[0177] It can also be understood that after step 600, that is, after the step of recording the sequence relationship of the processing stations for processing the workpiece to be processed through the thread, it includes:
[0178] If it is determined that the current processing station switches to an offline state, then the thread is deleted.
[0179] When the processing station switches to an offline state, the production line cannot continue to process, and the processing process of the workpiece to be processed is deleted so as to process the workpiece to be processed again.
[0180] In some other cases, if it is determined that the current processing station switches to an abnormal state, the thread is also deleted. At this time, the workpiece to be processed needs to be removed from its position on the production line. The workpiece to be processed can be reprocessed or discarded. If the state of the processing station returns to normal, it can be restored to the idle state to avoid incorrect distribution of the identification code.
[0181] In the above method, when the status of any work station changes, it is necessary to immediately publish and update the status information, and the data communication can be carried out by the publish-subscribe method.
[0182] Combined with the above content, the scheduling method of the production line according to the embodiment of the present invention can be used for a circuit board detection production line. The production line includes an electrical performance test station and a function test station, and at least one of the electrical performance test station and the function test station is provided with multiple stations. The current station can be an electrical performance test station or a function test station.
[0183] Taking the detection production line of a printed circuit board (hereinafter referred to as a PCB board) as an example, combined with Figures 10 to 12 as shown, the scheduling method of the production line will be described.
[0184] During the PCB board detection process, if the result of the ICT detection is passed, then it enters the FCT detection, and sorting processing is carried out according to the FCT detection result. If the ICT detection is not passed, then the PCB board needs to flow out of the production line, and there is no need to carry out the FCT detection. Finally, sorting is carried out according to the detection result; refer to Figure 3 as shown, taking the production line including two electrical performance test stations or three function test stations as an example, the two electrical performance test stations are simply referred to as ICT1 and ICT2, and the three function test stations are simply referred to as FCT1, FCT2, and FCT3, forming a 2(ICT)*3(FCT) detection line, which includes 7 stations, namely, barcode scanning, ICT1, ICT2, FCT1, FCT2, FCT3, and sorting; among them, the functions of the ICT1 and ICT2 stations are the same, and the functions of the FCT1, FCT2, and FCT3 stations are the same; if the PCB board passes the ICT1 detection, it does not need to be detected at ICT2 and directly enters the FCT process for detection.
[0185] Refer to Figures 10 to 12 as shown, obtain the previous processing result set of the previous station. The previous processing result set can be empty (refer to Figure 10 as shown), that is, the previous station has not processed the workpiece to be processed; the previous processing result set can be passed (refer to Figure 11 as shown), that is, the previous station processes ICT or FCT, and the detection result is passed; the previous processing result set can be not passed (refer to Figure 12 as shown), that is, the previous station processes ICT or FCT, and the detection result is not passed.
[0186] Refer to Figure 10As shown, assume that the current work station is the ICT inspection work station and the pre - processing result set is empty. According to the different current work station states of the current work station, the processing actions and control instructions are determined. If the current work station state is idle, the processing action is inspection, and the workpiece to be processed is scheduled to enter the processing position of the current work station. If the current work station state is non - idle (through or busy), the processing actions and control instructions are determined according to the subsequent work station information. If there is an ICT inspection work station in the subsequent work station and the ICT inspection work station is idle, the processing action is to pass directly, and the workpiece to be processed is controlled to pass directly through the passing position of the current work station. If there is an ICT inspection work station in the subsequent work station and the ICT inspection work station is non - idle, the workpiece to be processed remains at the previous work station. If there is no ICT inspection work station in the subsequent work station and the current work station is in the through state, the workpiece to be processed remains at the previous position and an alarm is given. At this time, an alarm is given to indicate that there is no available inspection work station. If there is no ICT inspection work station in the subsequent work station and the current work station is in the busy state, the workpiece to be processed waits at the previous work station.
[0187] Reference Figure 11 As shown, the pre - processing result set is that the ICT inspection is passed. According to the different current work station states of the current work station, the processing actions and control instructions are determined. Whether the current work station state is idle or non - idle, it is confirmed that the current work station is an ICT inspection work station (with the same function as the previously inspected function of the previous work station), and the workpiece to be processed passes directly through the current work station without the need to repeat the ICT inspection. If the current work station is an FCT inspection work station (with a different function from the previously inspected function of the previous work station) and the current work station state is idle, the workpiece to be processed enters the current work station for FCT inspection. If the current work station is an FCT inspection work station and the current work station state is non - idle (including the through state and the busy state), and it is confirmed that the subsequent work station includes an FCT inspection work station and is idle, the workpiece to be processed passes through the passing position of the current work station. If the current work station is an FCT inspection work station and the current work station state is non - idle (including the through state and the busy state), and it is confirmed that the subsequent work station includes an FCT inspection work station and is non - idle, the workpiece to be processed remains stationary and waits. If the current work station is an FCT inspection work station and the current work station state is non - idle (including the through state and the busy state), and it is confirmed that the subsequent work station does not include an FCT inspection work station, in the through state, an alarm is given, and in the busy state, the workpiece to be processed remains stationary and waits.
[0188] Reference Figure 12As shown, if the pre - processing result set is not passed, the workpiece to be processed directly passes through both the current station and the subsequent stations. It should be noted here that after the pre - processing result set gets a non - passing result, the subsequent stations (the current station and the subsequent stations) do not need to determine the processing actions anymore. Once the workpiece to be processed is identified, it directly passes through, or each subsequent station makes a separate judgment and only gets the instruction to directly pass through the current station.
[0189] Of course, the scheduling method of the above - mentioned production line can be extended to configure and expand the process stations according to actual detection requirements. For example, if there are two detection processes, ICT and FCT, and they are extended to three or more detection processes, the number of detection stations for each process can still be expanded and configured. For example, it can be extended from 2 (ICT) * 3 (FCT) to 4 (ICT) * 5 (FCT). At the same time, a barcode - scanning station is added before detection to be able to track the detection situation of the PCB in real - time and evaluate the usage of each detection device by referring to data.
[0190] The scheduling method of the production line in the embodiment of the present invention is executed by a scheduling system. Refer to Figure 13 As shown, the scheduling system architecture adopts a B / S architecture. The top layer is a centralized control center, where the control system of the scheduling method and the front - end control system are deployed. The control system of the scheduling method directly issues start / stop instructions and the information in the algorithm to the front - end control system through an interface. The middle layer is a status data monitoring layer, which is used to receive the status data of the PLCs of each station and issue the algorithm scheduling instructions to the PLCs of each station through the data monitoring layer to control the action execution of each station.
[0191] An embodiment of the third aspect of the present invention provides a scheduling control device for a production line, including:
[0192] An information acquisition module, configured to acquire the information of the previous station, the information of the current station, and the information of the subsequent station in a production line. The production line includes a previous station, a current station, and a subsequent station connected in series. The previous station includes all processing stations before the current station, and the subsequent station includes all processing stations after the current station. The information of the previous station includes the previous processing function set and the previous processing result set of the previous station for the workpiece to be processed. The previous processing function set is a set of processing functions of the previous station, and the previous processing result set is a set of corresponding relationships between the processing functions and the processing results for processing the workpiece to be processed. The information of the current station includes the current station processing function and the current station status. The information of the subsequent station includes the subsequent processing function set and the subsequent station status set. The subsequent processing function set is a set of processing functions of the subsequent station, and the subsequent station status set is a set of statuses of the subsequent station. Each processing function in the previous processing function set, each processing function in the subsequent processing function set, and the current station processing function form a function set. The function set includes at least two different processing functions and at least two repeated processing functions;
[0193] A determination module, configured to determine the processing action of the current station on the workpiece to be processed according to the information of the previous station, the information of the current station, and the information of the subsequent station, and send a corresponding control instruction according to the processing action. The processing actions include processing, directly passing through, and waiting.
[0194] The production line scheduling control device according to the embodiment of the present invention corresponds one-to-one to the above production line scheduling method, and has the above beneficial effects. For details, reference can be made to the above content and will not be elaborated here.
[0195] Wherein, the determination module can also be configured to execute the above steps 210, 220, 221, 222, 223, 224, 225, and 226.
[0196] The production line scheduling control device according to the embodiment of the present invention further includes:
[0197] An identification acquisition module, configured to acquire the identification code of the workpiece to be processed through an identification station, and the identification station is located before the previous station;
[0198] A marking module, configured to mark the corresponding relationship between the processing station for processing the workpiece to be processed and the acquired identification code.
[0199] The production line scheduling control device according to the embodiment of the present invention further includes:
[0200] A recording module that records, through a thread, the sequential relationship of the processing stations for processing the workpiece to be processed.
[0201] An embodiment of the third aspect of the present invention provides a production line for a scheduling method of a production line as described in any one of the above, including: a pre-stage station, a current station, and a subsequent station connected in series, and each station in the pre-stage station, each station in the subsequent station, and at least two stations in the current station have the same function.
[0202] It can be understood that each station in the pre-stage station, each station in the subsequent station, and the current station include inspection stations for circuit boards.
[0203] Each station in the pre-stage station, each station in the subsequent station, and the current station all include a processing position and a passing position, and the workpiece to be processed can move between the processing position and the passing position; before processing, the workpiece to be processed can be conveyed from the passing position to the processing position; after processing is completed, the workpiece to be processed can be conveyed from the processing position to the passing position; the workpiece to be processed can also move from the passing position of the previous station to the passing position of the current station, and can also move from the passing position of the current station to the passing position of the next station.
[0204] Figure 14 Illustrates a schematic physical structure diagram of an electronic device, as Figure 14 shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830, and a communication bus 840. Among them, the processor 810, the communication interface 820, and the memory 830 complete mutual communication through the communication bus 840. The processor 810 can call the logical instructions in the memory 830 to execute the above-mentioned scheduling method of the production line.
[0205] In addition, when the logical instructions in the above-mentioned memory 830 are implemented in the form of a software functional unit and sold or used as an independent product, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the related technology, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods of the various embodiments of the present invention. And the aforementioned storage medium includes: USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs, etc., which can store program codes.
[0206] Furthermore, an embodiment of the present invention discloses a computer program product. The computer program product includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the scheduling method of the production line provided by each of the above method embodiments.
[0207] On the other hand, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it is configured to execute the scheduling method of the production line provided by each of the above embodiments.
[0208] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative efforts.
[0209] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, also by hardware. Based on this understanding, the essence of the above technical solution, or the part that contributes to the related technology, can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disc, etc., and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiments.
[0210] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or equivalently replace some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A scheduling method for a production line, characterized in that, Including: Obtain the information of the previous station, the information of the current station, and the information of the subsequent station in the production line. The production line includes a series-connected previous station, a current station, and a subsequent station. The previous station includes all processing stations before the current station, and the subsequent station includes all processing stations after the current station. The previous station information includes a previous processing function set and a previous processing result set. The previous processing function set is a set of processing functions of the previous station, and the previous processing result set is a set of corresponding relationships between the processing functions and processing results of the processed workpiece. The current station information includes the current station processing function and the current station status. The subsequent station information includes a subsequent processing function set and a subsequent station status set. The subsequent processing function set is a set of processing functions of the subsequent station, and the subsequent station status set is a set of statuses of the subsequent station; Each processing function in the previous processing function set, each processing function in the subsequent processing function set, and the current station processing function form a function set. The function set includes at least two different processing functions, and the function set includes at least two repeated processing functions; According to the previous station information, the current station information, and the subsequent station information, determine the processing action of the current station on the processed workpiece and send a corresponding control instruction according to the processing action. The processing action includes processing, directly passing through, and waiting.
2. The scheduling method for a production line according to claim 1, characterized in that, In the step of determining the processing action of the current station on the processed workpiece according to the previous station information, the current station information, and the subsequent station information and sending a corresponding control instruction according to the processing action, it includes: If it is determined that the previous processing result set includes the processing result of the set function, then determine that the processing action is directly passing through and send a passing instruction. The passing instruction is used to schedule the processed workpiece to directly pass through the current station; Or, If it is determined that the previous processing result set lacks the processing result of the set function, then determine the processing action according to the current station status and the subsequent station information and send a corresponding control instruction; Wherein, the set function and the current station processing function are the same function.
3. The scheduling method for a production line according to claim 2, characterized in that, In the step of determining that the previous processing result set lacks the processing result of the set function and then determining the processing action according to the current station status and the subsequent station information, it includes: If it is obtained that the current station status is a non-idle state, then determine the processing action according to the subsequent station information and send a corresponding control instruction; Or, If it is obtained that the current station status is an idle state, then determine that the processing action is processing and send a processing instruction. The processing instruction is used to schedule the processed workpiece to move to the processing position of the current station and control the current station to process the processed workpiece.
4. The scheduling method for a production line according to claim 3, characterized in that, In the step of obtaining that the current station status is a non-idle state and then determining the processing action according to the subsequent station information and sending a corresponding control instruction, it includes: If it is determined that the subsequent processing function set includes the set function, obtain the station status of the stations in the subsequent stations that have the set function, determine the processing action according to the station status of the stations in the subsequent stations that have the set function, and send a corresponding control instruction; Or, If it is determined that the subsequent processing function set lacks the set function, determine that the processing action is to wait, and send a hold instruction, where the hold instruction is used to control the workpiece to be processed to stay at the previous station.
5. The scheduling method for a production line according to claim 4, characterized in that, In the step of obtaining the station status of the stations in the subsequent stations that have the set function, determining the processing action according to the station status, and sending a corresponding control instruction, it includes: If it is obtained that the station status of all stations in the subsequent stations that have the set function is non-idle, determine that the processing action is to wait and send the hold instruction; Or, If it is obtained that the station status of at least one station in the subsequent stations that have the set function is idle, determine that the processing action is to directly pass through and send the pass instruction.
6. The scheduling method for a production line according to claim 5, characterized in that, After the step of obtaining that the station status of all stations in the subsequent stations that have the set function is non-idle, determining that the processing action is to wait and send the hold instruction, it includes: If it is obtained that the current station status is updated to idle, determine that the processing action is to process and send the processing instruction; Or, If it is obtained that the station status of the stations in the subsequent stations that have the set function is updated to idle, determine that the processing action is to directly pass through and send the pass instruction.
7. The scheduling method for a production line according to claim 4, characterized in that, Based on the non-idle status of the current station including the processing status and the abnormal status; In the step of determining that the subsequent processing function set lacks the set function, determining that the processing action is to wait and send the hold instruction, it includes: Determine that the subsequent processing function set lacks the set function, and the current station is in the processing status, then determine that the processing action is to wait and send the hold instruction; Or, Determine that the subsequent processing function set lacks the set function, and the current station is in the abnormal status, then determine that the processing action is to wait, send the hold instruction and the alarm instruction.
8. The scheduling method for a production line according to claim 4, characterized in that, In the step of determining that the subsequent processing function set lacks the set function, it includes: Determine that the current station is the last processing station in the production line.
9. The scheduling method of the production line according to claim 2, wherein, In the step of determining that the previous processing result set lacks the processing result of the set function, it includes: Determine that the current station is the first processing station in the production line.
10. The scheduling method of the production line according to claim 1, wherein, After the step of obtaining the previous station information of the previous stations in the production line, the current station information of the current station, and the subsequent station information of the subsequent stations, it also includes: Determine that the previous processing result set includes the processing result of any function, and the processing result is not passed, determine that the processing actions of the current station and the subsequent stations on the workpiece to be processed are to directly pass through, and send a through instruction according to the processing action, where the through instruction is used to schedule the workpiece to be processed to directly pass through the current station and the subsequent stations.
11. The scheduling method of the production line according to any one of claims 1 to 10, wherein, It also includes: Obtain the identification code of the workpiece to be processed through the identification station, where the identification station is located before the previous station; Mark the corresponding relationship between the processing station for processing the workpiece to be processed and the obtained identification code.
12. The scheduling method of the production line according to claim 11, wherein, After the step of obtaining the identification code of the workpiece to be processed through the identification station, it further includes: Update the corresponding relationship between the obtained identification code and the processing result of the workpiece to be processed.
13. A scheduling control device for a production line, wherein, It includes: An information acquisition module, configured to acquire the previous station information of the previous station in the production line, the current station information of the current station, and the subsequent station information of the subsequent station. Among them, the production line includes a series-connected previous station, current station, and subsequent station. The previous station includes all processing stations before the current station. The subsequent station includes all processing stations after the current station. The previous station information includes the previous processing function set and the previous processing result set of the previous station for the workpiece to be processed. The previous processing function set is a set of processing functions of the previous station. The previous processing result set is a set of corresponding relationships between the processing functions and processing results for processing the workpiece to be processed. The current station information includes the current station processing function and the current station status. The subsequent station information includes the subsequent processing function set and the subsequent station status set. The subsequent processing function set is a set of processing functions of the subsequent station. The subsequent station status set is a set of statuses of the subsequent station. Each processing function in the previous processing function set, each processing function in the subsequent processing function set, and the current station processing function form a function set. The function set includes at least two different processing functions, and the function set includes at least two repeated processing functions; A determination module, according to the previous station information, the current station information, and the subsequent station information, is configured to determine the processing action of the current station on the workpiece to be processed and send a corresponding control instruction according to the processing action. The processing action includes processing, directly passing through, and waiting.
14. A production line for executing the scheduling method of the production line according to any one of claims 1 to 12, wherein, It includes: A previous station, a current station, and a subsequent station that are connected in series and arranged in sequence. Each station in the previous station, each station in the subsequent station, and at least two stations in the current station have the same function.
15. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein, When the processor executes the program, it implements the production line scheduling method according to any one of claims 1 to 12.
16. A non-transitory computer-readable storage medium, on which a computer program is stored, wherein, When the computer program is executed by the processor, it implements the production line scheduling method according to any one of claims 1 to 12.