WO2022001541A1 - Collaborative programming method, apparatus and system, electronic device, and storage medium - Google Patents

Collaborative programming method, apparatus and system, electronic device, and storage medium Download PDF

Info

Publication number
WO2022001541A1
WO2022001541A1 PCT/CN2021/097157 CN2021097157W WO2022001541A1 WO 2022001541 A1 WO2022001541 A1 WO 2022001541A1 CN 2021097157 W CN2021097157 W CN 2021097157W WO 2022001541 A1 WO2022001541 A1 WO 2022001541A1
Authority
WO
WIPO (PCT)
Prior art keywords
task
state value
initial state
read
imposition
Prior art date
Application number
PCT/CN2021/097157
Other languages
French (fr)
Chinese (zh)
Inventor
钱胜杰
刘继硕
刘华
刘丰收
Original Assignee
上海望友信息科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海望友信息科技有限公司 filed Critical 上海望友信息科技有限公司
Publication of WO2022001541A1 publication Critical patent/WO2022001541A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/39Circuit design at the physical level
    • G06F30/398Design verification or optimisation, e.g. using design rule check [DRC], layout versus schematics [LVS] or finite element methods [FEM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders
    • G06Q10/0875Itemisation or classification of parts, supplies or services, e.g. bill of materials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/101Collaborative creation, e.g. joint development of products or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2115/00Details relating to the type of the circuit
    • G06F2115/12Printed circuit boards [PCB] or multi-chip modules [MCM]

Definitions

  • the invention belongs to the technical field of printed circuit boards, and in particular relates to a collaborative programming method, device, system, electronic equipment, and storage medium.
  • SMT Surface Mounted Technology, Surface Mount Technology
  • PCB printed circuit Board
  • PCB printed Circuit Board
  • the 6 related nodes are: 1. Read the PCB (Printed Circuit Board, printed circuit board) design file; 2. BOM ( Bill of Material, Bill of Material) table data read; 3. Create imposition; 4. Create MARK (position identification) point; 5. Component library data query and placement parameter setting; 6. Program output, currently through industrial software according to The above nodes are executed sequentially. When executing the above nodes, when one of the nodes is abnormal, the execution task will be interrupted at this node. If there is a way to handle the abnormality, it needs to start from scratch or continue the operation manually.
  • the present invention provides a collaborative programming method, apparatus, system, electronic device, and storage medium.
  • the technical problem to be solved by the present invention is realized by the following technical solutions:
  • a co-programming approach that includes:
  • the collaborative programming task at least includes a PCB design file read-in task, a MARK point creation task, a component library data query, a placement parameter setting task, and a program output task;
  • the initial state value represents an unexecuted state or an executed state
  • the final state value represents an executed state
  • the initial state value of the PCB design file read-in task is updated according to the initial state value of the PCB design file read-in task Before being the final state value, also include:
  • the initial state value of the task of reading the PCB design file is detected, the initial state value of the task is read according to the PCB design file, and the initial state value of the PCB design file is read into the task Update to final state values, including:
  • Detect the initial state value of the PCB design file read-in task and determine whether the initial state value of the PCB design file read-in task represents an executed state or an unexecuted state. If the initial state value of the PCB design file read-in task represents Executed state, then the initial state value of the PCB design file read-in task is the final state value, if the initial state value of the PCB design file read-in task represents the unexecuted state, then execute the PCB design file read-in The task is to update the initial state value of the PCB design file reading task to a final state value after the execution of the PCB design file reading task is completed.
  • the task of reading in the PCB design file is executed, and after the task of reading in the PCB design file is completed, the initial state value read in the PCB design file is updated to a final state value, include:
  • Execute the task of reading in the PCB design file determine whether there is an abnormal situation during the execution of the task of reading the PCB design file. If there is no abnormal situation, then after the task of reading in the PCB design file is completed, the The initial state value read in the PCB design file is updated to the final state value. If there is an abnormal situation, the abnormal situation will be fed back to the manual processing client, and then the manual processing client will accept the processing within the first preset time. For the feedback of the abnormal situation, after receiving the feedback and after the PCB design file reading task is completed, the initial state value of the PCB design file reading task is updated to the final state value.
  • the initial state values of the BOM data reading task, the imposition creation task and the MARK point creation task are detected, and the BOM data reading task, the imposition creation task and the Create the initial state value of the MARK point task, and update the initial state value of the BOM data reading task, the creating imposition task, the creating MARK point task, the component library data query and the placement parameter setting task as Final state values, including:
  • the initial state value of the BOM data read-in task represents the executed state
  • the initial state value of the component library data query and placement parameter setting task is detected, and according to the component library data query and placement parameter setting
  • the initial state value of the task is to update the initial state value of the component library data query and placement parameter setting task to the final state value. If the initial state value of the BOM table data read-in task represents the unexecuted state, execute all the tasks.
  • Describe the BOM table data read-in task after the described BOM table data read-in task execution is completed, the initial state value of the described BOM table data read-in task is updated to the final state value, then detect the component library data query and paste The initial state value of the loading parameter setting task, and according to the component library data query and the initial state value of the mounting parameter setting task, the initial state value of the component library data query and the mounting parameter setting task is updated to the final state value ;
  • the initial state value of the imposition creation task is the final state value; If the initial state value of the imposition creation task represents the unexecuted state, the execution of the Create an imposition task, and after the execution of the imposition creation task is completed, update the initial state value of the imposition creation task to a final state value;
  • the initial state value of the MARK point creation task is the final state value; if the initial state value of the MARK point creation task represents the unexecuted state, then The task of creating a MARK point is executed, and after the task of creating a MARK point is completed, the initial state value of the task of creating a MARK point is updated to a final state value.
  • the BOM data read-in task is executed, and after the BOM data read-in task is executed, the initial state value of the BOM data read-in task is updated to a final state value ,include:
  • Execute the BOM data read-in task judge whether there is an abnormal situation in the execution process of the BOM data read-in task, if there is no abnormal situation, then the BOM data read-in task
  • the initial state value update of the task It is the final state value. If there is an abnormal situation, the abnormal situation will be fed back to the manual processing client, and then the manual processing client will accept the feedback that the abnormal situation has been processed within the second preset time. After the feedback, the initial state value of the BOM data read-in task is updated to the final state value.
  • executing the imposition creation task, and after the execution of the imposition creation task is completed, updating the initial state value of the imposition creation task to a final state value including:
  • Execute the task of creating the imposition and determine whether there is an abnormal situation during the execution of the task of creating the imposition. If there is no abnormal situation, update the initial state value of the task of creating the imposition to the final state value. If there is an abnormal situation , then the abnormal situation is reported to the manual processing client, and then the manual processing client receives the feedback that the abnormal situation has been processed within the third preset time, and after receiving the feedback, the task of creating imposition The initial state value of is updated to the final state value.
  • the task of creating a MARK point is executed, and after the task of creating a MARK point is executed, updating the initial state value of the task of creating a MARK point to a final state value, including:
  • Execute the task of creating a MARK point and judge whether there is an abnormal situation during the execution of the task of creating a MARK point. If there is no abnormal situation, then update the initial state value of the task of creating a MARK point to a final state value, if If there is an abnormal situation, the abnormal situation will be fed back to the manual processing client, and then the manual processing client will accept the feedback that the abnormal situation has been processed within the fourth preset time.
  • the initial state value of the Create MARK point task is updated to the final state value.
  • the initial state value of the component library data query and placement parameter setting task is updated to a final state value, include:
  • Detect the initial state value of the component library data query and placement parameter setting task and determine the initial state value of the component library data query and placement parameter setting task to represent the executed state or the unexecuted state. If the component library data The initial state value of the query and placement parameter setting task represents the executed state, then the initial state value of the component library data query and placement parameter setting task is the final state value. If the component library data query and placement parameter The initial state value of the setting task represents the unexecuted state, then the component library data query and the placement parameter setting task are executed. After the component library data query and the placement parameter setting task are executed, the component library data query is completed. And the initial state value of the placement parameter setting task is updated to the final state value.
  • the component library data query and placement parameter setting tasks are executed, and after the component library data query and placement parameter setting tasks are completed, the component library data query and placement tasks are completed.
  • the initial state value of the parameter setting task is updated to the final state value, including:
  • Execute the component library data query and placement parameter setting tasks and determine whether there is an abnormal situation during the execution of the component library data query and placement parameter setting tasks. After the query and placement parameter setting task is completed, the initial state value of the component library data query and placement parameter setting task is updated to the final state value. If there is an abnormal situation, the abnormal situation will be fed back to the manual processing client. Then, within the fifth preset time, accept the feedback that the manual processing client has handled the abnormal situation, after receiving the feedback, and after the component library data query and placement parameter setting tasks are completed, the The initial state value of the component library data query and the placement parameter setting task is updated to the final state value.
  • detecting the initial state value of the program output task, and updating the initial state value of the program output task to a final state value according to the initial state value of the program output task including:
  • the initial state value of the program output task is detected, and the judgment is made.
  • the initial state value of the program output task represents the executed state or the unexecuted state. If the initial state value of the program output task represents the executed state, the initial state value of the program output task is the final state value. If If the initial state value of the program output task represents an unexecuted state, the program output task is executed, and after the program output task is executed, the initial state value of the program output task is updated to a final state value.
  • executing the program output task, and after the program output task is executed, updating the initial state value of the program output task to a final state value including:
  • Execute the program output task determine whether there is an abnormal situation during the execution of the program output task, if there is no abnormal situation, update the initial state value of the program output task to the final state value, if there is an abnormal situation , then the abnormal situation is fed back to the manual processing client, and then the manual processing client receives the feedback that the abnormal situation has been processed within the sixth preset time, and after receiving the feedback, the program is output to the task
  • the initial state value of is updated to the final state value.
  • An embodiment of the present invention also provides a co-programming device, comprising:
  • the PCB task processing module is used for acquiring the task of reading the PCB design file, detecting the initial state value of the reading task of the PCB design file, reading the initial state value of the task according to the PCB design file, and reading the PCB design file.
  • the initial state value of the incoming task is updated to the final state value;
  • the parallel processing module is used to obtain the BOM data read-in task, create the imposition task, create the MARK point task, the component library data query and the placement parameter setting task, and detect the BOM data read-in task, create the imposition task and the above in parallel.
  • Create the initial state value of the MARK point task read the BOM data into the task, the create imposition task according to the BOM data read-in task, the create imposition task and the initial state value of the MARK point task.
  • the initial state value of the task, the task of creating a MARK point, the query of the component library data, and the setting task of the placement parameters are updated to the final state value;
  • a program output processing module configured to obtain a program output task, detect the initial state value of the program output task, and update the initial state value of the program output task to a final state value according to the initial state value of the program output task, output program;
  • the initial state value represents an unexecuted state or an executed state
  • the final state value represents an executed state
  • An embodiment of the present invention also provides a collaborative programming system, including a manual processing client and the collaborative programming device described in the above embodiment, wherein,
  • the manual processing client is used for sending the collaborative programming task to the collaborative programming device.
  • the manual processing client is also used for the task of reading the PCB design file and the task of reading the BOM table data.
  • the task of creating MARK point When an abnormal situation occurs during the execution of at least one of the task of creating imposition, the task of creating MARK point, the query of the component library data and the setting of the placement parameters, and the task of the program output, set the At least one designated person is assigned to handle the abnormal situation under the conditions of the number of times and the corresponding set time each time.
  • the manual processing client provides feedback to the SMT collaborative programming device.
  • An embodiment of the present invention also provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
  • the processor is configured to implement the steps of the collaborative programming method described in any one of the foregoing embodiments when executing the computer program.
  • An embodiment of the present invention further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program is executed by a processor, the steps of the collaborative programming method described in any one of the foregoing embodiments are implemented.
  • the collaborative programming method provided by the present invention can realize automatic push and task execution at any task node, and at the task node where the abnormality occurs, after the abnormal situation of the task node is resolved, the task continues to be executed, which improves the participation of the participants. Synergy. And because the processing personnel of each task are not required to participate in the entire operation process, after the PCB design file reading task is completed, the BOM table data reading task, the task of creating imposition and the task of creating MARK points are simultaneously operated, which greatly improves the task completion. efficiency, thereby reducing the cost of money and time for the enterprise.
  • FIG. 1 is a schematic flowchart of a collaborative programming method provided by an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a specific implementation framework of a collaborative programming method provided by an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a manual processing client according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a workflow of an exception handling group provided by an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a collaborative programming device provided by an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
  • An embodiment of the present invention provides a collaborative programming method, which may specifically include:
  • Step 1 Obtain collaborative programming tasks.
  • the collaborative programming tasks include at least the task of reading PCB design files, creating MARK points, querying component library data, setting parameters for placement, and outputting programs;
  • Step 2 Detect the initial state value of the PCB design file read-in task, update the initial state value of the PCB design file read-in task to the final state value according to the initial state value of the PCB design file read-in task;
  • Step 3 Detect the initial state values of the BOM data read-in task, the imposition task and the MARK point task in parallel, and the initial state values of the BOM data read-in task, the imposition task and the MARK point task, and the BOM data
  • the initial state value of reading task, creating imposition task, creating MARK point task, component library data query and placement parameter setting task is updated to the final state value
  • Step 4 detect the initial state value of the program output task, according to the initial state value of the program output task, update the initial state value of the program output task to the final state value, and output the program;
  • the initial state value represents the unexecuted state or the executed state
  • the final state value represents the executed state
  • the collaborative programming task should at least include the PCB design.
  • File reading task, creating MARK point task, component library data query and placement parameter setting task and program output task in addition, in some SMT programming process, it is also necessary to perform BOM table data reading task and/or create imposition task,
  • the collaborative programming task may also include a BOM data reading task and/or an imposition creation task, and the collaborative programming task is, for example, sent by a manual processing client.
  • the initial state value is set for the task of reading in the PCB design file, the task of reading the BOM table data, the task of creating the imposition, the task of creating the MARK point, the task of querying the data of the component library, the setting of the mounting parameters, and the task of the program output.
  • the initial state value of the PCB design file read-in task After obtaining the collaborative programming task, it is necessary to detect the initial state value of the PCB design file read-in task. When the initial state value represents the unexecuted state, execute the PCB design file read-in task. After the execution is completed, update the initial state value. It is the final state value.
  • the initial state value When the initial state value represents the executed state, the initial state value can be directly used as the final state value; after that, the initial state value of the task of reading the BOM table data, creating the imposition task and creating the MARK point task Detect, when any of the initial state values in the BOM data read-in task, the imposition task and the MARK point creation task is in the unexecuted state, the corresponding unexecuted task will be executed until the BOM data read-in task, create The initial state values of the imposition task and the MARK point creation task are all updated to the final state value; at the same time, in order to save time, after the initial state value of the BOM data reading task is updated to the final state value, the component library data query and The initial state value of the placement parameter setting task.
  • the component library data query and placement parameter setting task are executed. After the execution is completed, the initial state value is updated to the final state value.
  • the initial state value can be directly used as the final state value; the initial state of the task of reading BOM data, creating imposition task, creating MARK point task, component library data query and placement parameter setting task After the values are all updated to the final state value, the initial state value of the program output task is detected.
  • the program output task is executed. After the execution is completed, the initial state value is updated to the final state value.
  • the initial state value When When the initial state value represents the executed state, the initial state value can be directly used as the final state value, and then the program can be output, and the completion status can be fed back to the manual processing client to complete the SMT programming task, and the state value can be T1, T2, T3, T4, T5, T6 return to the default value NO.
  • a state value is set for each task node, so during the process of executing the task, the execution state of each task can be recorded by the state value, and after an abnormal situation occurs in a certain task and the processing of the abnormal situation is completed, the process can be continued.
  • Executing tasks avoids the need to re-execute all tasks due to abnormal conditions when a task is being executed, and improves the coordination of participants.
  • the BOM table data read-in task, the imposition task, and the MARK point task are simultaneously operated, and the BOM table data read task, the imposition task, and the MARK point task are created.
  • Component library data query and placement parameter setting tasks have all the initial state values updated to the final state values before executing the program output task, which can greatly improve the efficiency of task completion, thereby reducing the cost of money and time for the enterprise.
  • the co-programming task may not include the BOM data read-in task and/or the imposition creation task. Therefore, before detecting the PCB design file read-in task, it is necessary to first determine the needs of the co-programming task.
  • the content of the task performed namely:
  • step 2 can be performed, and step 2 can specifically include:
  • Detect the initial state value of the PCB design file read-in task and determine whether the initial state value of the PCB design file read-in task represents the executed state or the unexecuted state. If the initial state value of the PCB design file read-in task represents the executed state, then the PCB The initial state value of the design file read-in task is the final state value. If the initial state value of the PCB design file read-in task represents the unexecuted state, the PCB design file read-in task is executed. After the PCB design file read-in task is executed , to update the initial state value of the PCB design file read-in task to the final state value.
  • the initial state value of the PCB design file read-in task is updated to the final state value, wherein the first preset time is when the PCB design file read-in task is executed. The time to handle exceptions during the task.
  • the abnormal situation is that the PCB design files cannot be read as an example to illustrate:
  • the abnormal task is in an interrupted state in the processing of member 1. The processing of the interrupted abnormal situation can be saved and returned to the task pool.
  • the processing group sets countdown reminders of different durations and times according to the difficulty of the task. For example, for the abnormal situation that the PCB design file cannot be read, set up two countdown reminders after assigning to member 1, and the durations are set to 10 minutes and 5 respectively.
  • step 3 may specifically include:
  • the initial state value of the BOM data read-in task represents the executed state
  • the initial state value of the component library data query and placement parameter setting task is detected, and the initial state value of the task is set according to the component library data query and placement parameter setting. Update the initial state value of the component library data query and placement parameter setting task to the final state value.
  • the initial state value of the BOM data read task represents the unexecuted state
  • execute the BOM data read task and then execute the BOM data read task.
  • After the read-in task is executed, update the initial state value of the BOM data read-in task to the final state value, and then detect the initial state value of the component library data query and placement parameter setting task, and query and mount according to the component library data.
  • the initial state value of the parameter setting task, and the initial state value of the component library data query and the placement parameter setting task is updated to the final state value;
  • the initial state value of the created imposition task is the final state value. If the initial state value of the created imposition task represents the unexecuted state, then execute the created imposition task, and then execute the created imposition task. After the execution is completed, update the initial state value of the imposition task to the final state value;
  • the initial state value of the MARK point task is the final state value. If the initial state value of the MARK point task represents the unexecuted state, the MARK point task is executed. After the MARK point creation task is executed, the initial state value of the MARK point creation task is updated to the final state value.
  • the initial state values of the BOM data reading task, the imposition task and the MARK point creation task it is necessary to judge the initial state values of the BOM data reading task, the imposition task and the MARK point creation task at the same time.
  • the BOM data reading task after confirming that the initial state value represents the executed state , and then you can detect the initial state value of the component library data query and the placement parameter setting task, and this process can be executed in parallel with the process of detecting the initial state value of the imposition task and the MARK point task, and they do not conflict with each other. This saves programming time and improves work efficiency.
  • the initial state value of the component library data query and the placement parameter setting task represents the executed state or the unexecuted state.
  • the initial state value of the query and placement parameter setting task represents the executed state
  • the initial state value of the component library data query and placement parameter setting task is the final state value. If the initial state value of the component library data query and placement parameter setting task is The state value represents the unexecuted state, then execute the component library data query and placement parameter setting task. After the component library data query and placement parameter setting task is completed, the initial stage of the component library data query and placement parameter setting task is completed. The state value is updated to the final state value.
  • the BOM data read-in task needs to be executed, and during the execution process, there may be abnormal situations, such as failure to read the BOM table, failure to read the BOM table
  • failure to read the BOM table failure to read the BOM table
  • a kind of BOM table that this embodiment provides therefore also need to judge whether there is abnormal situation in the execution process of BOM table data read-in task, if there is no abnormal situation, then read in BOM table data
  • the initial state value of the BOM table data read-in task is updated to the final state value. If there is an abnormal situation, the abnormal situation will be fed back to the manual processing client, and then the manual processing will be accepted within the second preset time. Processing the feedback that the client has handled the abnormal situation, after receiving the feedback and after the BOM data reading task is completed, update the initial state value of the BOM data reading task to the final state value, wherein the second The preset time is the time for handling exceptions when executing the BOM data read task.
  • the abnormal situation is that the number of components and the bit numbers in the BOM table are found to be inconsistent during the BOM table reading process, and during the BOM table reading process Find the location of components in the BOM as an example to illustrate:
  • the BOM data exception handling team assigns these two tasks to such as member 3 and member 4 to process these two abnormal situations in parallel, and set the completion time For example, in 10 minutes, member 3 and member 4 start the countdown when receiving the task.
  • the BOM data exception handling group will be in an interrupted state according to the situation (according to the situation of the exception handling task, for example: The exception handling task is almost completed, but the countdown time is up. In this case, member 3 and/or member 4 can choose to continue processing until the exception handling task is completed.
  • the countdown can be set by the BOM data exception handling team according to the task. Set countdown reminders of different durations and times. For example, if the number of components and bit numbers in the BOM are found to be inconsistent during the reading of the BOM, set 2 countdowns after assigning them to member 3 and/or member 4.
  • the abnormal situation and related component information in the BOM table that the component positions cannot be found in the CAD design file will be fed back to manual processing.
  • Client manual processing
  • the client divides the abnormal situation and related component information in the BOM table that the component position cannot be found in the CAD design file into two types of tasks (the first type: whether there is an error in the related component information in the CAD file; The second type: Whether the relevant component information in the BOM table is wrong) is stored in the task pool of the BOM data exception handling group.
  • the BOM data exception handling team will again assign it to member 5 and/or member 6 or other members to continue processing the exception, and set the completion time.
  • the imposition creation task needs to be executed, and during the execution process, there may be abnormal situations, for example, the imposition information cannot be found when the imposition is created, and the imposition operation is completed.
  • the size of the rear board is too large. Therefore, it is necessary to judge whether there is any abnormality during the execution of the imposition task. If there is no abnormality, after the imposition task is created, update the initial state value of the imposition task to final.
  • the initial state value of the imposition task is updated to the final state value, wherein the third preset time is the time for handling abnormal situations when the imposition task is created.
  • the imposition exception handling group assigns such abnormal tasks to member 1 for processing, and sets the completion time. , Member 1 starts the countdown when receiving the task.
  • the task of creating a MARK point needs to be executed, and during the execution process, there may be abnormal situations, for example, a suitable MARK cannot be found when creating a MARK point
  • a suitable MARK cannot be found when creating a MARK point
  • the fourth preset time is the time for handling the abnormal situation when creating the MARK point task.
  • the abnormal situation is that a suitable MARK point cannot be found when creating a MARK point as an example to illustrate:
  • a suitable MARK point cannot be found when creating a MARK point, the abnormal situation that a suitable MARK point cannot be found and the opinions of manually creating a MARK point will be fed back to the manual processing client, and the manual processing client will not be able to find a suitable MARK point.
  • the abnormal situation of the MARK point and the opinions of manually creating the MARK point are stored in the task pool for creating the MARK point exception handling group. According to the situation, the MARK point exception handling group is created to assign such abnormal tasks to member 1 for processing, and set the completion time. , Member 1 starts the countdown when it receives the task.
  • the abnormal task is in an interrupted state in the processing of member 1.
  • the component library data query and the placement parameter setting task need to be executed, and during the execution process, there may be abnormal conditions, such as According to the part number (PartNumber), it is found that the downloaded data is incomplete when downloading from the component library. When downloading from the component library according to the part number, it is found that the relevant components cannot be found in the component library. According to the part number, the angle of finding components in the general component library During the offset and placement data information, it is found that the angle offset and/or placement data information of some components cannot be found. Therefore, it is necessary to judge whether there is any abnormality during the execution of the component library data query and placement parameter setting tasks.
  • PartNumber part number
  • the angle of finding components in the general component library During the offset and placement data information, it is found that the angle offset and/or placement data information of some components cannot be found. Therefore, it is necessary to judge whether there is any abnormality during the execution of the component library data query and placement parameter setting tasks.
  • the component library data query and placement parameter setting tasks after the component library data query and placement parameter setting tasks are completed, update the initial state value of the component library data query and placement parameter setting task to the final state value.
  • the abnormal situation is reported to the manual processing client, and then within the fifth preset time, the manual processing client receives the feedback that the abnormal situation has been processed.
  • the initial state value of the component library data query and placement parameter setting task is updated to the final state value, wherein the fifth preset time is for processing abnormal conditions when executing the component library data query and placement parameter setting task. time.
  • the downloaded data is found to be incomplete when downloading from the component library according to the part number, the component information with incomplete downloaded data and missing data (for example, N component data has not been downloaded)
  • the abnormal situation is fed back to the manual processing client, and the manual processing client splits the component information with incomplete downloaded data and missing data into multiple tasks (for example, N), and stores them in the component library maintenance and placement parameter settings.
  • the task of the exception processing group In the pool, according to the situation, the component maintenance and placement parameter setting exception handling group assigns these tasks to the corresponding members for parallel processing, and sets the completion time. The member starts the countdown when the task is received.
  • the processing status will be fed back to the component library data query and placement parameters.
  • the exception handling is not completed, repeat the above operations. For example, if there are 100 material numbers, 70 are ok and 30 are problematic, then these 30 can be divided into 30 exception tasks, which can be processed in parallel by 30 exception handling members.
  • step 4 may be specifically:
  • the imposition task and the MARK point creation task are all updated to the final state value
  • the initial state value of the program output task is detected, and the initial state value of the program output task is judged.
  • Executed state or unexecuted state if the initial state value of the program output task represents the executed state, then the initial state value of the program output task is the final state value, if the initial state value of the program output task represents the unexecuted state, then execute The program output task updates the initial state value of the program output task to the final state value after the execution of the program output task is completed.
  • the program output task when executing the program output task, there may be abnormal conditions, for example, the program cannot be output when executing the program output, etc. Therefore, it is necessary to judge whether there is an abnormal situation during the execution of the program output task. If there is no abnormal situation, After the program output task is completed, the initial state value of the program output task is updated to the final state value. If there is an abnormal situation, the abnormal situation will be fed back to the manual processing client, and then the manual processing will be accepted within the sixth preset time. Processing the feedback that the client has handled the abnormal situation, after receiving the feedback and after the program output task is completed, update the initial state value of the program output task to the final state value, wherein the sixth preset time is the execution time The time to handle exceptions when the program outputs tasks.
  • the abnormal situation is that the program cannot output when the program output is executed as an example to illustrate:
  • the interrupted exception processing status can be saved and returned to the task pool.
  • the collaborative programming method of this embodiment firstly determines whether there is a BOM data read-in task and/or an imposition creation task, and sets the initial state values of the BOM data read-in task and the creation of the imposition task according to the existing state, so that it can be Determine the execution of the BOM data read-in task and the imposition creation task; in addition, after the PCB design file read-in task is completed, the BOM data read-in task, the imposition task creation, and the MARK point task are simultaneously operated, and the required The initial state values of the BOM data reading task, the imposition task creation, the MARK point creation task, the component library data query and the placement parameter setting task are all updated to the final state value, and then the program output task is executed, which can improve the completion of the task. Efficiency, thereby reducing the cost of money and time for the business.
  • a state value is set for each task node, so during the process of executing the task, the execution state of each task can be recorded by the state value, and after an abnormal situation occurs in a certain task and the processing of the abnormal situation is completed, the process can be continued. Executing tasks avoids the need to re-execute all tasks due to abnormal conditions when a task is being executed, and improves the coordination of participants.
  • the abnormal situation when an abnormal situation occurs in each task node, the abnormal situation will be fed back to the manual processing client in time. After the manual processing client completes the processing of the abnormal situation, the corresponding task will continue to be executed, and when processing the abnormal situation, The manual processing client will designate corresponding professionals to solve the abnormal situation.
  • the personnel involved in each abnormal processing node only need to read the abnormal data of the relevant node, and do not need to read the data of the entire design file.
  • This embodiment can control the abnormal processing.
  • the data access rights of professionals participating in specific collaborative programming projects, that is, the data information that professionals can understand and process is very limited. Even if personnel leaks occur later in the project, the security of the entire project data can still be guaranteed to a high degree.
  • FIG. 5 is a schematic diagram of a cooperative programming apparatus provided by an embodiment of the present invention.
  • the co-programming device includes:
  • the PCB task processing module is used to obtain the PCB design file read-in task, detect the initial state value of the PCB design file read-in task, read the initial state value of the task according to the PCB design file, and read the PCB design file into the initial state value of the task update to the final state value;
  • the parallel processing module is used to obtain BOM data read-in tasks, create imposition tasks, create MARK point tasks, component library data query and placement parameter setting tasks, and detect BOM data read-in tasks, create imposition tasks, and create MARK in parallel.
  • the initial state value of the point task read the task, create the imposition task and create the initial state value of the MARK point task according to the BOM table data, read the BOM table data into the task, create the imposition task, create the MARK point task, the component library data query and
  • the initial state value of the placement parameter setting task is updated to the final state value;
  • the program output processing module is used to obtain the program output task, detect the initial state value of the program output task, update the initial state value of the program output task to the final state value according to the initial state value of the program output task, and output the program;
  • the initial state value represents an unexecuted state or an executed state
  • the final state value represents an executed state
  • the PCB task processing module can be specifically used to determine whether there is a BOM data read-in task and/or an imposition task in the collaborative programming task, if there is a BOM data read-in task in the collaborative programming task, Then maintain the initial state value of the BOM data read-in task. If there is no BOM data read-in task in the collaborative programming task, update the initial state value of the BOM data read-in task to represent the executed state. If an imposition task is created, the initial state value of the created imposition task is maintained. If there is no imposition created task in the collaborative programming task, the initial state value of the created imposition task is updated to represent the executed state.
  • the PCB task processing module is more specifically used to detect the initial state value of the PCB design file reading task, and determine that the initial state value of the PCB design file reading task represents the executed state or the unexecuted state. If the PCB design file reading task If the initial state value of the PCB design file read-in task represents the executed state, the initial state value of the PCB design file read-in task is the final state value. If the initial state value of the PCB design file read-in task represents the unexecuted state, the PCB design file read-in task is executed. , after the execution of the PCB design file read-in task is completed, the initial state value of the PCB design file read-in task is updated to the final state value.
  • the initial state value read in the PCB design file is updated to the final state value. If there is an abnormality If the abnormal situation is detected, the abnormal situation will be fed back to the manual processing client, and then the feedback that the abnormal situation has been processed by the manual processing client will be accepted within the first preset time. After receiving the feedback, read in the PCB design file.
  • the initial state value of the PCB design file read into the task is updated to the final state value.
  • the parallel processing module can be specifically used to judge the initial state value of the BOM data read-in task, the imposition task and the MARK point task; if the initial state value of the BOM data read-in task indicates that the In the execution state, the initial state value of the component library data query and the placement parameter setting task is detected, and the initial state value of the component library data query and the placement parameter setting task is based on the component library data query and the initial state value of the placement parameter setting task. The state value is updated to the final state value. If the initial state value of the BOM data read task represents the unexecuted state, the BOM data read task will be executed. After the BOM data read task is executed, the BOM data will be read in.
  • the initial state value of the task is updated to the final state value, and then the initial state value of the task is checked for component library data query and placement parameter setting, and the initial state value of the task is set according to the component library data query and placement parameters, and the component library data is queried. and the initial state value of the placement parameter setting task is updated to the final state value; if the initial state value of the imposition task represents the executed state, the initial state value of the imposition task is the final state value, if the initial state of the imposition task is created If the value represents the unexecuted state, execute the task of creating the imposition.
  • BOM table data read-in task after BOM table data read-in task execution is completed, the initial state value of BOM table data read-in task is updated to final state value, including: Execute BOM table data read-in task, in During the execution of the BOM data read-in task, it is judged whether there is an abnormal situation. If there is no abnormal situation, the initial state value of the BOM data read-in task is updated to the final state value. If there is an abnormal situation, the abnormal situation will be Give feedback to the manual processing client, and then accept the feedback that the manual processing client has handled the abnormal situation within the second preset time. After receiving the feedback, the initial state value of the BOM table data read-in task is updated to final Status value.
  • performing the task of creating the imposition, and after the task of creating the imposition is completed, updating the initial state value of the task of creating the imposition to the final state value including: executing the task of creating the imposition, and judging whether there is an abnormal situation during the execution of the task of creating the imposition , if there is no abnormal situation, the initial state value of the imposition task is updated to the final state value, if there is an abnormal situation, the abnormal situation is fed back to the manual processing client, and then the manual processing is accepted within the third preset time. Handle the feedback that the client has handled the exception, and after receiving the feedback, update the initial state value of the create imposition task to the final state value.
  • execute the task of creating a MARK point and after the task of creating a MARK point is completed, update the initial state value of the task of creating a MARK point to a final state value, including: executing the task of creating a MARK point, during the execution of the task of creating a MARK point Determine whether there is an abnormal situation. If there is no abnormal situation, update the initial state value of the MARK point task to the final state value. If there is an abnormal situation, then feed back the abnormal situation to the manual processing client. Accept the feedback that the abnormal situation has been handled by the manual processing client within a preset time, and after receiving the feedback, update the initial state value of the task of creating MARK points to the final state value.
  • the initial state value of the component library data query and the placement parameter setting task is updated to the final state value, including: Detecting component library data query and placement
  • the initial state value of the parameter setting task is used to judge the initial state value of the component library data query and placement parameter setting task to indicate whether it has been executed or not. state, the initial state value of the component library data query and placement parameter setting task is the final state value. If the initial state value of the component library data query and placement parameter setting task represents the unexecuted state, the component library data query and For the placement parameter setting task, after the component library data query and placement parameter setting tasks are completed, the initial state value of the component library data query and placement parameter setting task is updated to the final state value.
  • perform the task of querying the data of the component library and setting the mounting parameters and after the task of querying the data of the component library and setting the mounting parameters is completed, update the initial state value of the task of querying the data of the component library and setting the mounting parameters to the final state value.
  • performing component library data query and placement parameter setting tasks judging whether there is an abnormal situation during the execution of the component library data query and placement parameter setting tasks, if there is no abnormal situation, then in the component library data query and paste
  • update the initial state value of the component library data query and the installation parameter setting task to the final state value.
  • the component library data query and placement parameter setting tasks are completed.
  • the initial state value is updated to the final state value.
  • the program output processing module may be specifically configured to detect the detection after the initial state value of the component library data query and the placement parameter setting task, the imposition task and the MARK point creation task are all updated to the final state value.
  • the initial state value of the program output task to determine whether the initial state value of the program output task represents the executed state or the unexecuted state. If the initial state value of the program output task represents the executed state, the initial state value of the program output task is the final state. If the initial state value of the program output task represents an unexecuted state, the program output task is executed, and after the program output task is executed, the initial state value of the program output task is updated to the final state value.
  • executing the program output task after the execution of the program output task is completed, updating the initial state value of the program output task to the final state value, including: executing the program output task, and judging whether there is an abnormal situation during the execution of the program output task. , if there is no abnormal situation, the initial state value of the program output task is updated to the final state value, if there is an abnormal situation, the abnormal situation is fed back to the manual processing client, and then the manual processing is accepted within the sixth preset time. Handle the feedback that the client has handled the exception, and after receiving the feedback, update the initial state value of the program output task to the final state value.
  • the collaborative programming apparatus provided by the embodiments of the present invention can execute the above method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
  • an embodiment of the present invention further provides a collaborative programming system, where the collaborative programming system includes a manual processing client and the collaborative programming apparatus described in Embodiment 2, wherein the manual processing client uses It is used to send collaborative programming tasks to the collaborative programming device.
  • the manual processing client is also used for the task of reading PCB design files, BOM data reading tasks, creating imposition tasks, creating MARK point tasks, component library data query and placement.
  • the manual processing client will give feedback to the SMT collaborative programming device.
  • the set number of times is the number of times required to solve the abnormal situation
  • the set time is the time required for each abnormal situation.
  • the manual processing client can be based on Set the number of times and the set time for how difficult it is to handle each abnormal situation.
  • the manual processing client may include an initiating task group, a PCB data exception processing group, a BOM data exception processing group, an imposition exception processing group, a mark point exception processing group, a component library maintenance and placement parameter setting exception processing group and programs
  • the exception handling group is output, and the initiating task group is used to initiate tasks to the co-programming device.
  • the co-programming device is a kind of SMT automatic processing center.
  • the processing client is reassigned to other co-programming devices) to choose whether to accept the task initiated by the manual client.
  • the co-programming device When the co-programming device accepts the task, the co-programming device starts an independent SMT automatic programming;
  • the PCB data exception handling group is used for Handle exceptions that occur during the execution of the PCB design file read-in task;
  • BOM data exception handling group is used to handle exceptions that occur during the execution of the BOM data read-in task;
  • the imposition exception handling group is used to handle exceptions during execution Exceptions in the process of creating imposition tasks; creating MARK point exception handling groups to handle exceptions that occur during the execution of MARK point creation tasks;
  • component library maintenance and placement parameter settings exception handling groups are used to handle exceptions during execution Abnormal situation in the process of component library data query and placement parameter setting task;
  • the program output exception handling group is used to deal with the abnormal situation in the process of executing the program output task.
  • PCB data exception handling group BOM data exception handling group, imposition exception handling group, MARK point exception handling group, component library maintenance and placement parameter setting exception handling group and program output exception handling group all include multiple task pools , each exception processing group can assign the abnormal situation to a designated person for processing according to the situation.
  • each exception processing group can assign the abnormal situation to a designated person for processing according to the situation.
  • Embodiment 1 For the specific processing process, please refer to Embodiment 1, which will not be repeated here.
  • the abnormal situation when an abnormal situation occurs in each task node, the abnormal situation will be fed back to the manual processing client in time. After the manual processing client completes the processing of the abnormal situation, the corresponding task will continue to be executed, and when processing the abnormal situation, The manual processing client will designate personnel to solve the abnormal situation.
  • the personnel involved in each node only need to read the abnormal data of the relevant nodes, and do not need to read the data of the entire design file, so that the security of the entire project data has been improved.
  • FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • the electronic device 1100 includes: a processor 1101, a communication interface 1102, a memory 1103, and a communication bus 1104, wherein the processor 1101, the communication interface 1102, and the memory 1103 communicate with each other through the communication bus 1104;
  • memory 1103 for storing computer programs
  • the processor 1101 is configured to implement the above method steps when executing the computer program.
  • Step 1 Obtain collaborative programming tasks.
  • the collaborative programming tasks include at least the task of reading PCB design files, creating MARK points, querying component library data, setting parameters for placement, and outputting programs;
  • Step 2 Detect the initial state value of the PCB design file read-in task, update the initial state value of the PCB design file read-in task to the final state value according to the initial state value of the PCB design file read-in task;
  • Step 3 Detect the initial state values of the BOM data read-in task, the imposition task and the MARK point task in parallel, and the initial state values of the BOM data read-in task, the imposition task and the MARK point task, and the BOM data
  • the initial state value of reading task, creating imposition task, creating MARK point task, component library data query and placement parameter setting task is updated to the final state value
  • Step 4 Detect the initial state value of the program output task, update the initial state value of the program output task to the final state value according to the initial state value of the program output task, and output the program;
  • the initial state value represents the unexecuted state or the executed state
  • the final state value represents the executed state
  • the electronic device provided by the embodiments of the present invention can execute the above method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
  • Another embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
  • Step 1 Obtain collaborative programming tasks.
  • the collaborative programming tasks include at least the task of reading PCB design files, creating MARK points, querying component library data, setting parameters for placement, and outputting programs;
  • Step 2 Detect the initial state value of the PCB design file read-in task, update the initial state value of the PCB design file read-in task to the final state value according to the initial state value of the PCB design file read-in task;
  • Step 3 Detect the initial state values of the BOM data read-in task, the imposition task and the MARK point task in parallel, and the initial state values of the BOM data read-in task, the imposition task and the MARK point task, and the BOM data
  • the initial state value of reading task, creating imposition task, creating MARK point task, component library data query and placement parameter setting task is updated to the final state value
  • Step 4 Detect the initial state value of the program output task, update the initial state value of the program output task to the final state value according to the initial state value of the program output task, and output the program;
  • the initial state value represents the unexecuted state or the executed state
  • the final state value represents the executed state
  • the computer-readable storage medium provided by the embodiments of the present invention can execute the above-mentioned method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
  • the embodiments of the present application may be provided as a method, an apparatus (apparatus), or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects, all of which are collectively referred to herein as a "module” or “system.” Furthermore, the present application may take the form of a computer program product embodied on one or more computer-readable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein. The computer program is stored/distributed in a suitable medium, provided with or as part of other hardware, or may take other forms of distribution, such as over the Internet or other wired or wireless telecommunication systems.
  • first and second are only used for description purposes, and cannot be interpreted as indicating or implying relative importance or the number of indicated technical features. Thus, a feature defined as “first” or “second” may expressly or implicitly include one or more of that feature.
  • “plurality” means two or more, unless otherwise expressly and specifically defined.

Abstract

A collaborative programming method, apparatus and system, an electronic device, and a storage medium. The collaborative programming method comprises: obtaining a collaborative programming task; detecting an initial state value of a PCB design file reading task; detecting, in parallel, initial state values of a BOM table data reading task, a creation makeup task, and a creation MARK point task; detecting an initial state value of a program output task, according to the initial state value of the program output task, updating the initial state value of the program output task as a final state value, and outputting a program. The collaborative programming method provided in the method improves the collaboration of participants, improves the efficiency of task completion, reduces money costs and time costs of an enterprise, and ensures that data security of collaborative programming projects is highly guaranteed.

Description

一种协同编程方法、装置、系统及电子设备、存储介质A collaborative programming method, apparatus, system, electronic device, and storage medium 技术领域technical field
本发明属于印制电路板技术领域,具体涉及一种协同编程方法、装置、系统及电子设备、存储介质。The invention belongs to the technical field of printed circuit boards, and in particular relates to a collaborative programming method, device, system, electronic equipment, and storage medium.
背景技术Background technique
SMT(Surface Mounted Technology,表面贴装技术)是电子组装行业里最流行的一种技术和工艺。SMT是一种将无引脚或短引线表面组装元器件安装在印制电路板(Printed Circuit Board,PCB)的表面或其它基板的表面上,通过再流焊或浸焊等方法加以焊接组装的电路装连技术。SMT (Surface Mounted Technology, Surface Mount Technology) is the most popular technology and process in the electronic assembly industry. SMT is a kind of surface mount components without leads or short leads mounted on the surface of a printed circuit board (Printed Circuit Board, PCB) or the surface of other substrates, and then soldered and assembled by reflow soldering or dip soldering. circuit assembly technology.
目前,行业内的SMT编程软件无外乎有两种提供商,一种是设备商本身自带的软件系统,另一种是第三方开发的编程系统。其中,设备商提供的软件系统的方案侧重于设备的运作性能优化,即设备在生产时,在规定时间内的生产贴装效率,而这种软件系统忽视了离线时的编程效率;而另外一种是第三方软件公司提供的方案,其侧重于EDA(Electronic design automation电子设计自动化)CAD(Computer Aided Design,计算机辅助设计)设计研发数据和Gerber(光绘文件)数据的转换,由于设备的运作参数的不开放性,第三方方案无法很好的提升设备的运作性能,尤其是现在主流的模组化贴片机,该设备运作的参数无法得到。At present, there are only two providers of SMT programming software in the industry, one is the software system built by the equipment manufacturer itself, and the other is the programming system developed by a third party. Among them, the solution of the software system provided by the equipment manufacturer focuses on the optimization of the operation performance of the equipment, that is, the production and placement efficiency of the equipment within a specified time during production, and this software system ignores the programming efficiency when offline; One is a solution provided by a third-party software company, which focuses on the conversion of EDA (Electronic design automation) CAD (Computer Aided Design, computer-aided design) design and development data and Gerber (light drawing file) data, due to the operation of the equipment. Due to the non-openness of the parameters, the third-party solution cannot improve the operation performance of the equipment, especially the current mainstream modular placement machine, the operation parameters of the equipment cannot be obtained.
对于传统的模式,在整个SMT编程过程中,其包含6个相关节点,这6个相关节点分别为:1、读入PCB(Printed Circuit Board,印制电路板)设计文件的;2、BOM(Bill of Material,物料清单)表数据的读入;3、创建拼版;4、创建MARK(位置识别)点;5、元件库资料查询及贴装参数设置;6、程序输出,目前通过工业软件按照顺序执行上述节点。在执行上述节点时,当其中一个节点出现异常,则执行任务便在此节点中断,若是异常有处理方法,则需要重新从头开始或者人工继续操作。若是异常多的情况下,则需要一直重复,由此会让前边没有出错的流程重新再操作一遍,这样会大大的加长此阶段的生产周期,并且会影响整个过程中参与人员的协同性(本来某些节点没有错误,还要进行重复操作),这样会使相关参与人员容易出现负面情绪。For the traditional mode, in the whole SMT programming process, it contains 6 related nodes, the 6 related nodes are: 1. Read the PCB (Printed Circuit Board, printed circuit board) design file; 2. BOM ( Bill of Material, Bill of Material) table data read; 3. Create imposition; 4. Create MARK (position identification) point; 5. Component library data query and placement parameter setting; 6. Program output, currently through industrial software according to The above nodes are executed sequentially. When executing the above nodes, when one of the nodes is abnormal, the execution task will be interrupted at this node. If there is a way to handle the abnormality, it needs to start from scratch or continue the operation manually. If there are too many exceptions, it needs to be repeated all the time, which will make the previous process without error operate again, which will greatly lengthen the production cycle at this stage and affect the coordination of the participants in the whole process (original). Some nodes are error-free and repeat operations), which makes the relevant participants prone to negative emotions.
综上所述,传统的操作模式,非常耗时,参与人员的协同性差,由此大大的提高了企业在此阶段的金钱成本和时间成本。To sum up, the traditional operation mode is very time-consuming and the coordination of the participants is poor, which greatly increases the money cost and time cost of the enterprise at this stage.
发明内容SUMMARY OF THE INVENTION
为了解决现有技术中存在的上述问题,本发明提供了一种协同编程方 法、装置、系统及电子设备、存储介质。本发明要解决的技术问题通过以下技术方案实现:In order to solve the above problems existing in the prior art, the present invention provides a collaborative programming method, apparatus, system, electronic device, and storage medium. The technical problem to be solved by the present invention is realized by the following technical solutions:
一种协同编程方法,包括:A co-programming approach that includes:
获取协同编程任务,所述协同编程任务至少包括PCB设计文件读入任务、创建MARK点任务、元件库资料查询及贴装参数设置任务和程序输出任务;Obtaining a collaborative programming task, the collaborative programming task at least includes a PCB design file read-in task, a MARK point creation task, a component library data query, a placement parameter setting task, and a program output task;
检测所述PCB设计文件读入任务的初始状态值,根据所述PCB设计文件读入任务的初始状态值,将所述PCB设计文件读入任务的初始状态值更新为最终状态值;Detecting the initial state value of the read-in task of the PCB design file, and updating the initial state value of the read-in task of the PCB design file to a final state value according to the initial state value of the read-in task of the PCB design file;
并行检测BOM表数据读入任务、创建拼版任务及所述创建MARK点任务的初始状态值,根据所述BOM表数据读入任务、所述创建拼版任务及所述创建MARK点任务的初始状态值,将所述BOM表数据读入任务、所述创建拼版任务、所述创建MARK点任务、所述元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值;Parallel detection of the initial state value of the BOM table data read-in task, the creation of the imposition task and the described creation of the MARK point task, according to the initial state value of the BOM table data read-in task, the described creation of the imposition task and the described creation of the MARK point task , update the initial state value of the BOM table data read-in task, the creation imposition task, the creation MARK point task, the component library data query and the placement parameter setting task to the final state value;
检测所述程序输出任务的初始状态值,根据所述程序输出任务的初始状态值,将所述程序输出任务的初始状态值更新为最终状态值,输出程序;Detecting the initial state value of the program output task, updating the initial state value of the program output task to a final state value according to the initial state value of the program output task, and outputting the program;
其中,所述初始状态值表征未执行状态或者已执行状态,所述最终状态值表征已执行状态。The initial state value represents an unexecuted state or an executed state, and the final state value represents an executed state.
在本发明的一个实施例中,在检测PCB设计文件读入任务的初始状态值,根据所述PCB设计文件读入任务的初始状态值,将所述PCB设计文件读入任务的初始状态值更新为最终状态值之前,还包括:In one embodiment of the present invention, when detecting the initial state value of the PCB design file read-in task, the initial state value of the PCB design file read-in task is updated according to the initial state value of the PCB design file read-in task Before being the final state value, also include:
判断所述协同编程任务中是否存在所述BOM表数据读入任务和/或所述创建拼版任务,若所述协同编程任务中存在所述BOM表数据读入任务,则维持所述BOM表数据读入任务的初始状态值,若所述协同编程任务中不存在所述BOM表数据读入任务,则更新所述BOM表数据读入任务的初始状态值表征已执行状态,若所述协同编程任务中存在所述创建拼版任务,则维持所述创建拼版任务的初始状态值,若所述协同编程任务中不存在所述创建拼版任务,则更新所述创建拼版任务的初始状态值表征已执行状态。Determine whether there is the BOM data read-in task and/or the create imposition task in the collaborative programming task, if the BOM data read-in task exists in the collaborative programming task, then maintain the BOM data The initial state value of the read-in task, if the BOM table data read-in task does not exist in the co-programming task, then update the initial state value of the BOM table data read-in task to represent the executed state, if the cooperative programming task If the task of creating imposition exists in the task, the initial state value of the task of creating imposition is maintained. If the task of creating imposition does not exist in the collaborative programming task, the initial state value of the task of creating imposition is updated to indicate that the task has been executed. state.
在本发明的一个实施例中,检测所述PCB设计文件读入任务的初始状态值,根据所述PCB设计文件读入任务的初始状态值,将所述PCB设计文件读入任务的初始状态值更新为最终状态值,包括:In one embodiment of the present invention, the initial state value of the task of reading the PCB design file is detected, the initial state value of the task is read according to the PCB design file, and the initial state value of the PCB design file is read into the task Update to final state values, including:
检测所述PCB设计文件读入任务的初始状态值,判断所述PCB设计文件读入任务的初始状态值表征已执行状态还是未执行状态,若所述PCB设计文件读入任务的初始状态值表征已执行状态,则所述PCB设计文件读入任务的初始状态值即为最终状态值,若所述PCB设计文件读入任务的初始状态值表征未执行状态,则执行所述PCB设计文件读入任务,在所述PCB设计文件读 入任务执行完成后,将所述PCB设计文件读入任务的初始状态值更新为最终状态值。Detect the initial state value of the PCB design file read-in task, and determine whether the initial state value of the PCB design file read-in task represents an executed state or an unexecuted state. If the initial state value of the PCB design file read-in task represents Executed state, then the initial state value of the PCB design file read-in task is the final state value, if the initial state value of the PCB design file read-in task represents the unexecuted state, then execute the PCB design file read-in The task is to update the initial state value of the PCB design file reading task to a final state value after the execution of the PCB design file reading task is completed.
在本发明的一个实施例中,执行所述PCB设计文件读入任务,在所述PCB设计文件读入任务执行完成后,将所述PCB设计文件读入的初始状态值更新为最终状态值,包括:In one embodiment of the present invention, the task of reading in the PCB design file is executed, and after the task of reading in the PCB design file is completed, the initial state value read in the PCB design file is updated to a final state value, include:
执行所述PCB设计文件读入任务,在所述PCB设计文件读入任务的执行过程中判断是否存在异常情况,若不存在异常情况,则在所述PCB设计文件读入任务完成后将所述PCB设计文件读入的初始状态值更新为最终状态值,若存在异常情况,则将该异常情况向人工处理客户端进行反馈,之后在第一预设时间内接受所述人工处理客户端已处理该异常情况的反馈,在接收到该反馈后,且在所述PCB设计文件读入任务完成后,将所述PCB设计文件读入任务的初始状态值更新为最终状态值。Execute the task of reading in the PCB design file, and determine whether there is an abnormal situation during the execution of the task of reading the PCB design file. If there is no abnormal situation, then after the task of reading in the PCB design file is completed, the The initial state value read in the PCB design file is updated to the final state value. If there is an abnormal situation, the abnormal situation will be fed back to the manual processing client, and then the manual processing client will accept the processing within the first preset time. For the feedback of the abnormal situation, after receiving the feedback and after the PCB design file reading task is completed, the initial state value of the PCB design file reading task is updated to the final state value.
在本发明的一个实施例中,检测BOM表数据读入任务、创建拼版任务及所述创建MARK点任务的初始状态值,根据所述BOM表数据读入任务、所述创建拼版任务及所述创建MARK点任务的初始状态值,将所述BOM表数据读入任务、所述创建拼版任务、所述创建MARK点任务、所述元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值,包括:In an embodiment of the present invention, the initial state values of the BOM data reading task, the imposition creation task and the MARK point creation task are detected, and the BOM data reading task, the imposition creation task and the Create the initial state value of the MARK point task, and update the initial state value of the BOM data reading task, the creating imposition task, the creating MARK point task, the component library data query and the placement parameter setting task as Final state values, including:
判断所述BOM表数据读入任务、所述创建拼版任务及所述创建MARK点任务的初始状态值;Judging the initial state value of the BOM data read-in task, the creation imposition task and the creation MARK point task;
若所述BOM表数据读入任务的初始状态值表征已执行状态,则检测所述元件库资料查询及贴装参数设置任务的初始状态值,并根据所述元件库资料查询及贴装参数设置任务的初始状态值,将所述元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值,若所述BOM表数据读入任务的初始状态值表征未执行状态,则执行所述BOM表数据读入任务,在所述BOM表数据读入任务执行完成后,将所述BOM表数据读入任务的初始状态值更新为最终状态值,之后检测所述元件库资料查询及贴装参数设置任务的初始状态值,并根据所述元件库资料查询及贴装参数设置任务的初始状态值,将所述元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值;If the initial state value of the BOM data read-in task represents the executed state, the initial state value of the component library data query and placement parameter setting task is detected, and according to the component library data query and placement parameter setting The initial state value of the task is to update the initial state value of the component library data query and placement parameter setting task to the final state value. If the initial state value of the BOM table data read-in task represents the unexecuted state, execute all the tasks. Describe the BOM table data read-in task, after the described BOM table data read-in task execution is completed, the initial state value of the described BOM table data read-in task is updated to the final state value, then detect the component library data query and paste The initial state value of the loading parameter setting task, and according to the component library data query and the initial state value of the mounting parameter setting task, the initial state value of the component library data query and the mounting parameter setting task is updated to the final state value ;
若所述创建拼版任务的初始状态值表征已执行状态,则所述创建拼版任务的初始状态值即为最终状态值,若所述创建拼版任务的初始状态值表征未执行状态,则执行所述创建拼版任务,在所述创建拼版任务执行完成后,将所述创建拼版任务的初始状态值更新为最终状态值;If the initial state value of the imposition creation task represents the executed state, then the initial state value of the imposition creation task is the final state value; if the initial state value of the imposition creation task represents the unexecuted state, the execution of the Create an imposition task, and after the execution of the imposition creation task is completed, update the initial state value of the imposition creation task to a final state value;
若所述创建MARK点任务的初始状态值表征已执行状态,则所述创建MARK点任务的初始状态值即为最终状态值,若所述创建MARK点任务的 初始状态值表征未执行状态,则执行所述创建MARK点任务,在所述创建MARK点任务执行完成后,将所述创建MARK点任务的初始状态值更新为最终状态值。If the initial state value of the MARK point creation task represents the executed state, then the initial state value of the MARK point creation task is the final state value; if the initial state value of the MARK point creation task represents the unexecuted state, then The task of creating a MARK point is executed, and after the task of creating a MARK point is completed, the initial state value of the task of creating a MARK point is updated to a final state value.
在本发明的一个实施例中,执行所述BOM表数据读入任务,在所述BOM表数据读入任务执行完成后,将所述BOM表数据读入任务的初始状态值更新为最终状态值,包括:In an embodiment of the present invention, the BOM data read-in task is executed, and after the BOM data read-in task is executed, the initial state value of the BOM data read-in task is updated to a final state value ,include:
执行所述BOM表数据读入任务,在所述BOM表数据读入任务的执行过程中判断是否存在异常情况,若不存在异常情况,则将所述BOM表数据读入任务的初始状态值更新为最终状态值,若存在异常情况,则将该异常情况向人工处理客户端进行反馈,之后在第二预设时间内接受所述人工处理客户端已处理该异常情况的反馈,在接收到该反馈后,将所述BOM表数据读入任务的初始状态值更新为最终状态值。Execute the BOM data read-in task, judge whether there is an abnormal situation in the execution process of the BOM data read-in task, if there is no abnormal situation, then the BOM data read-in task The initial state value update of the task It is the final state value. If there is an abnormal situation, the abnormal situation will be fed back to the manual processing client, and then the manual processing client will accept the feedback that the abnormal situation has been processed within the second preset time. After the feedback, the initial state value of the BOM data read-in task is updated to the final state value.
在本发明的一个实施例中,执行所述创建拼版任务,在所述创建拼版任务执行完成后,将所述创建拼版任务的初始状态值更新为最终状态值,包括:In an embodiment of the present invention, executing the imposition creation task, and after the execution of the imposition creation task is completed, updating the initial state value of the imposition creation task to a final state value, including:
执行所述创建拼版任务,在所述创建拼版任务的执行过程中判断是否存在异常情况,若不存在异常情况,则将所述创建拼版任务的初始状态值更新为最终状态值,若存在异常情况,则将该异常情况向人工处理客户端进行反馈,之后在第三预设时间内接受所述人工处理客户端已处理该异常情况的反馈,在接收到该反馈后,将所述创建拼版任务的初始状态值更新为最终状态值。Execute the task of creating the imposition, and determine whether there is an abnormal situation during the execution of the task of creating the imposition. If there is no abnormal situation, update the initial state value of the task of creating the imposition to the final state value. If there is an abnormal situation , then the abnormal situation is reported to the manual processing client, and then the manual processing client receives the feedback that the abnormal situation has been processed within the third preset time, and after receiving the feedback, the task of creating imposition The initial state value of is updated to the final state value.
在本发明的一个实施例中,执行所述创建MARK点任务,在所述创建MARK点任务执行完成后,将所述创建MARK点任务的初始状态值更新为最终状态值,包括:In an embodiment of the present invention, the task of creating a MARK point is executed, and after the task of creating a MARK point is executed, updating the initial state value of the task of creating a MARK point to a final state value, including:
执行所述创建MARK点任务,在所述创建MARK点任务的执行过程中判断是否存在异常情况,若不存在异常情况,则将所述创建MARK点任务的初始状态值更新为最终状态值,若存在异常情况,则将该异常情况向人工处理客户端进行反馈,之后在第四预设时间内接受所述人工处理客户端已处理该异常情况的反馈,在接收到该反馈后,将所述创建MARK点任务的初始状态值更新为最终状态值。Execute the task of creating a MARK point, and judge whether there is an abnormal situation during the execution of the task of creating a MARK point. If there is no abnormal situation, then update the initial state value of the task of creating a MARK point to a final state value, if If there is an abnormal situation, the abnormal situation will be fed back to the manual processing client, and then the manual processing client will accept the feedback that the abnormal situation has been processed within the fourth preset time. The initial state value of the Create MARK point task is updated to the final state value.
在本发明的一个实施例中,根据所述元件库资料查询及贴装参数设置任务的初始状态值,将所述元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值,包括:In an embodiment of the present invention, according to the initial state value of the component library data query and placement parameter setting task, the initial state value of the component library data query and placement parameter setting task is updated to a final state value, include:
检测所述元件库资料查询及贴装参数设置任务的初始状态值,判断所述元件库资料查询及贴装参数设置任务的初始状态值表征已执行状态还是 未执行状态,若所述元件库资料查询及贴装参数设置任务的初始状态值表征已执行状态,则所述元件库资料查询及贴装参数设置任务的初始状态值即为最终状态值,若所述元件库资料查询及贴装参数设置任务的初始状态值表征未执行状态,则执行所述元件库资料查询及贴装参数设置任务,在所述元件库资料查询及贴装参数设置任务执行完成后,将所述元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值。Detect the initial state value of the component library data query and placement parameter setting task, and determine the initial state value of the component library data query and placement parameter setting task to represent the executed state or the unexecuted state. If the component library data The initial state value of the query and placement parameter setting task represents the executed state, then the initial state value of the component library data query and placement parameter setting task is the final state value. If the component library data query and placement parameter The initial state value of the setting task represents the unexecuted state, then the component library data query and the placement parameter setting task are executed. After the component library data query and the placement parameter setting task are executed, the component library data query is completed. And the initial state value of the placement parameter setting task is updated to the final state value.
在本发明的一个实施例中,执行所述元件库资料查询及贴装参数设置任务,在所述元件库资料查询及贴装参数设置任务执行完成后,将所述元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值,包括:In an embodiment of the present invention, the component library data query and placement parameter setting tasks are executed, and after the component library data query and placement parameter setting tasks are completed, the component library data query and placement tasks are completed. The initial state value of the parameter setting task is updated to the final state value, including:
执行所述元件库资料查询及贴装参数设置任务,在所述元件库资料查询及贴装参数设置任务的执行过程中判断是否存在异常情况,若不存在异常情况,则在所述元件库资料查询及贴装参数设置任务完成后将所述元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值,若存在异常情况,则将该异常情况向人工处理客户端进行反馈,之后在第五预设时间内接受所述人工处理客户端已处理该异常情况的反馈,在接收到该反馈后,且在所述元件库资料查询及贴装参数设置任务完成后,将所述元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值。Execute the component library data query and placement parameter setting tasks, and determine whether there is an abnormal situation during the execution of the component library data query and placement parameter setting tasks. After the query and placement parameter setting task is completed, the initial state value of the component library data query and placement parameter setting task is updated to the final state value. If there is an abnormal situation, the abnormal situation will be fed back to the manual processing client. Then, within the fifth preset time, accept the feedback that the manual processing client has handled the abnormal situation, after receiving the feedback, and after the component library data query and placement parameter setting tasks are completed, the The initial state value of the component library data query and the placement parameter setting task is updated to the final state value.
在本发明的一个实施例中,检测所述程序输出任务的初始状态值,根据所述程序输出任务的初始状态值,将所述程序输出任务的初始状态值更新为最终状态值,包括:In an embodiment of the present invention, detecting the initial state value of the program output task, and updating the initial state value of the program output task to a final state value according to the initial state value of the program output task, including:
在所述元件库资料查询及贴装参数设置任务、所述创建拼版任务和所述创建MARK点任务的初始状态值均更新为最终状态值之后,检测所述程序输出任务的初始状态值,判断所述程序输出任务的初始状态值表征已执行状态还是未执行状态,若所述程序输出任务的初始状态值表征已执行状态,则所述程序输出任务的初始状态值即为最终状态值,若所述程序输出任务的初始状态值表征未执行状态,则执行所述程序输出任务,在所述程序输出任务执行完成后,将所述程序输出任务的初始状态值更新为最终状态值。After the initial state values of the component library data query and the placement parameter setting task, the imposition creation task and the MARK point creation task are all updated to the final state value, the initial state value of the program output task is detected, and the judgment is made. The initial state value of the program output task represents the executed state or the unexecuted state. If the initial state value of the program output task represents the executed state, the initial state value of the program output task is the final state value. If If the initial state value of the program output task represents an unexecuted state, the program output task is executed, and after the program output task is executed, the initial state value of the program output task is updated to a final state value.
在本发明的一个实施例中,执行所述程序输出任务,在所述程序输出任务执行完成后,将所述程序输出任务的初始状态值更新为最终状态值,包括:In an embodiment of the present invention, executing the program output task, and after the program output task is executed, updating the initial state value of the program output task to a final state value, including:
执行所述程序输出任务,在所述程序输出任务的执行过程中判断是否存在异常情况,若不存在异常情况,则将所述程序输出任务的初始状态值更新为最终状态值,若存在异常情况,则将该异常情况向人工处理客户端进行反馈,之后在第六预设时间内接受所述人工处理客户端已处理该异常 情况的反馈,在接收到该反馈后,将所述程序输出任务的初始状态值更新为最终状态值。Execute the program output task, determine whether there is an abnormal situation during the execution of the program output task, if there is no abnormal situation, update the initial state value of the program output task to the final state value, if there is an abnormal situation , then the abnormal situation is fed back to the manual processing client, and then the manual processing client receives the feedback that the abnormal situation has been processed within the sixth preset time, and after receiving the feedback, the program is output to the task The initial state value of is updated to the final state value.
本发明的一个实施例还提供一种协同编程装置,包括:An embodiment of the present invention also provides a co-programming device, comprising:
PCB任务处理模块,用于获取PCB设计文件读入任务,检测所述PCB设计文件读入任务的初始状态值,根据所述PCB设计文件读入任务的初始状态值,将所述PCB设计文件读入任务的初始状态值更新为最终状态值;The PCB task processing module is used for acquiring the task of reading the PCB design file, detecting the initial state value of the reading task of the PCB design file, reading the initial state value of the task according to the PCB design file, and reading the PCB design file. The initial state value of the incoming task is updated to the final state value;
并行处理模块,用于分别获取BOM表数据读入任务、创建拼版任务、创建MARK点任务及元件库资料查询及贴装参数设置任务,并行检测BOM表数据读入任务、创建拼版任务及所述创建MARK点任务的初始状态值,根据所述BOM表数据读入任务、所述创建拼版任务及所述创建MARK点任务的初始状态值,将所述BOM表数据读入任务、所述创建拼版任务、所述创建MARK点任务、所述元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值;The parallel processing module is used to obtain the BOM data read-in task, create the imposition task, create the MARK point task, the component library data query and the placement parameter setting task, and detect the BOM data read-in task, create the imposition task and the above in parallel. Create the initial state value of the MARK point task, read the BOM data into the task, the create imposition task according to the BOM data read-in task, the create imposition task and the initial state value of the MARK point task The initial state value of the task, the task of creating a MARK point, the query of the component library data, and the setting task of the placement parameters are updated to the final state value;
程序输出处理模块,用于获取程序输出任务,检测所述程序输出任务的初始状态值,根据所述程序输出任务的初始状态值,将所述程序输出任务的初始状态值更新为最终状态值,输出程序;a program output processing module, configured to obtain a program output task, detect the initial state value of the program output task, and update the initial state value of the program output task to a final state value according to the initial state value of the program output task, output program;
其中,所述初始状态值表征未执行状态或者已执行状态,所述最终状态值表征已执行状态。The initial state value represents an unexecuted state or an executed state, and the final state value represents an executed state.
本发明的一个实施例还提供一种协同编程系统,包括人工处理客户端和上述实施例所述的协同编程装置,其中,An embodiment of the present invention also provides a collaborative programming system, including a manual processing client and the collaborative programming device described in the above embodiment, wherein,
所述人工处理客户端用于向所述协同编程装置发送所述协同编程任务,另外,所述人工处理客户端还用于在所述PCB设计文件读入任务、所述BOM表数据读入任务、所述创建拼版任务、所述创建MARK点任务、所述元件库资料查询及贴装参数设置任务及所述程序输出任务中的至少一项任务的执行过程中出现异常情况时,在设定次数及每次对应的设定时间条件下分配至少一个指定人员处理该异常情况,在处理完成该异常情况后,所述人工处理客户端向所述SMT协同编程装置进行反馈。The manual processing client is used for sending the collaborative programming task to the collaborative programming device. In addition, the manual processing client is also used for the task of reading the PCB design file and the task of reading the BOM table data. , When an abnormal situation occurs during the execution of at least one of the task of creating imposition, the task of creating MARK point, the query of the component library data and the setting of the placement parameters, and the task of the program output, set the At least one designated person is assigned to handle the abnormal situation under the conditions of the number of times and the corresponding set time each time. After the abnormal situation is processed, the manual processing client provides feedback to the SMT collaborative programming device.
本发明的一个实施例还提供一种电子设备,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;An embodiment of the present invention also provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
存储器,用于存储计算机程序;memory for storing computer programs;
处理器,用于执行所述计算机程序时,实现上述任一项实施例所述的协同编程方法步骤。The processor is configured to implement the steps of the collaborative programming method described in any one of the foregoing embodiments when executing the computer program.
本发明的一个实施例还提供一种存储介质,所述存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述任一项实施例所述的 协同编程方法步骤。An embodiment of the present invention further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program is executed by a processor, the steps of the collaborative programming method described in any one of the foregoing embodiments are implemented.
本发明的有益效果:Beneficial effects of the present invention:
本发明所提供协同编程方法,可以实现在任何任务节点实现自动推送和任务执行,并且在出现异常的任务节点处,在该任务节点的异常情况解决后,继续执行该任务,提高了参与人员的协同性。并且因为不需要各个任务的处理人员均参与整个操作过程,在PCB设计文件读入任务完成之后,同时对BOM表数据读入任务、创建拼版任务、创建MARK点任务进行操作,大大提高了任务完成的效率,由此降低了企业的金钱成本和时间成本。The collaborative programming method provided by the present invention can realize automatic push and task execution at any task node, and at the task node where the abnormality occurs, after the abnormal situation of the task node is resolved, the task continues to be executed, which improves the participation of the participants. Synergy. And because the processing personnel of each task are not required to participate in the entire operation process, after the PCB design file reading task is completed, the BOM table data reading task, the task of creating imposition and the task of creating MARK points are simultaneously operated, which greatly improves the task completion. efficiency, thereby reducing the cost of money and time for the enterprise.
以下将结合附图及实施例对本发明做进一步详细说明。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments.
附图说明Description of drawings
图1是本发明实施例提供的一种协同编程方法的流程示意图;1 is a schematic flowchart of a collaborative programming method provided by an embodiment of the present invention;
图2是本发明实施例提供的一种协同编程方法的具体实现框架的示意图;2 is a schematic diagram of a specific implementation framework of a collaborative programming method provided by an embodiment of the present invention;
图3是本发明实施例提供的一种人工处理客户端的示意图;3 is a schematic diagram of a manual processing client according to an embodiment of the present invention;
图4是本发明实施例提供的一种异常处理组工作流程的示意图;4 is a schematic diagram of a workflow of an exception handling group provided by an embodiment of the present invention;
图5是本发明实施例提供的一种协同编程装置的示意图;5 is a schematic diagram of a collaborative programming device provided by an embodiment of the present invention;
图6是本发明实施例提供的一种电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
具体实施方式detailed description
下面结合具体实施例对本发明做进一步详细的描述,但本发明的实施方式不限于此。The present invention will be described in further detail below with reference to specific embodiments, but the embodiments of the present invention are not limited thereto.
实施例一Example 1
请参见图1理解本实施例的技术方案。本发明实施例提供了一种协同编程方法,具体可以包括:Please refer to FIG. 1 to understand the technical solution of this embodiment. An embodiment of the present invention provides a collaborative programming method, which may specifically include:
步骤1、获取协同编程任务,协同编程任务至少包括PCB设计文件读入任务、创建MARK点任务、元件库资料查询及贴装参数设置任务和程序输出任务;Step 1. Obtain collaborative programming tasks. The collaborative programming tasks include at least the task of reading PCB design files, creating MARK points, querying component library data, setting parameters for placement, and outputting programs;
步骤2、检测PCB设计文件读入任务的初始状态值,根据PCB设计文件读入任务的初始状态值,将PCB设计文件读入任务的初始状态值更新为最终状态值; Step 2. Detect the initial state value of the PCB design file read-in task, update the initial state value of the PCB design file read-in task to the final state value according to the initial state value of the PCB design file read-in task;
步骤3、并行检测BOM表数据读入任务、创建拼版任务及创建MARK点任务的初始状态值,根据BOM表数据读入任务、创建拼版任务及创建MARK点任务的初始状态值,将BOM表数据读入任务、创建拼版任务、创建MARK点任务、元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值;Step 3. Detect the initial state values of the BOM data read-in task, the imposition task and the MARK point task in parallel, and the initial state values of the BOM data read-in task, the imposition task and the MARK point task, and the BOM data The initial state value of reading task, creating imposition task, creating MARK point task, component library data query and placement parameter setting task is updated to the final state value;
步骤4、检测程序输出任务的初始状态值,根据程序输出任务的初始状 态值,将程序输出任务的初始状态值更新为最终状态值,输出程序;Step 4, detect the initial state value of the program output task, according to the initial state value of the program output task, update the initial state value of the program output task to the final state value, and output the program;
其中,初始状态值表征未执行状态或者已执行状态,最终状态值表征已执行状态。The initial state value represents the unexecuted state or the executed state, and the final state value represents the executed state.
在本实施例中,因为在SMT编程过程中执行对PCB设计文件读入任务、创建MARK点任务、元件库资料查询及贴装参数设置任务和程序输出任务,因此协同编程任务应至少包括PCB设计文件读入任务、创建MARK点任务、元件库资料查询及贴装参数设置任务和程序输出任务,另外在某些SMT编程过程中,还需要执行BOM表数据读入任务和/或创建拼版任务,此时协同编程任务还可以包括BOM表数据读入任务和/或创建拼版任务,协同编程任务例如是通过人工处理客户端发送的。In this embodiment, since the task of reading in the PCB design file, creating the MARK point, querying the data of the component library, setting the mounting parameters, and outputting the program are performed during the SMT programming process, the collaborative programming task should at least include the PCB design. File reading task, creating MARK point task, component library data query and placement parameter setting task and program output task, in addition, in some SMT programming process, it is also necessary to perform BOM table data reading task and/or create imposition task, At this time, the collaborative programming task may also include a BOM data reading task and/or an imposition creation task, and the collaborative programming task is, for example, sent by a manual processing client.
本实施例对PCB设计文件读入任务、BOM表数据读入任务、创建拼版任务、创建MARK点任务、元件库资料查询及贴装参数设置任务和程序输出任务均设置了初始状态值,上述六项任务的初始状态值例如可以分别对应表征TI、T2、T3、T4、T5和T6,当初始状态值为YES时(如TI=YES、T2=YES、T3=YES、T4=YES、T5=YES、T6=YES)代表该任务的状态为已执行状态,当初始状态值为NO时(如TI=NO、T2=NO、T3=NO、T4=NO、T5=NO和T6=NO)代表该任务的状态为未执行状态,在执行任务之前默认值为T1=NO、T2=NO、T3=NO、T4=NO、T5=NO、T6=NO;最终状态值均为YES。In this embodiment, the initial state value is set for the task of reading in the PCB design file, the task of reading the BOM table data, the task of creating the imposition, the task of creating the MARK point, the task of querying the data of the component library, the setting of the mounting parameters, and the task of the program output. The initial state value of a task can, for example, represent TI, T2, T3, T4, T5 and T6 respectively, when the initial state value is YES (such as TI=YES, T2=YES, T3=YES, T4=YES, T5= YES, T6=YES) means that the status of the task is the executed state, when the initial state value is NO (such as TI=NO, T2=NO, T3=NO, T4=NO, T5=NO and T6=NO) The status of the task is unexecuted. Before executing the task, the default values are T1=NO, T2=NO, T3=NO, T4=NO, T5=NO, T6=NO; the final state values are all YES.
在获取协同编程任务之后,需先检测PCB设计文件读入任务的初始状态值,当初始状态值表征未执行状态时,则执行该PCB设计文件读入任务,执行完成后,将初始状态值更新为最终状态值,当初始状态值表征已执行状态时,则可以直接将初始状态值作为最终状态值;之后则同时对BOM表数据读入任务、创建拼版任务及创建MARK点任务的初始状态值进行检测,当BOM表数据读入任务、创建拼版任务及创建MARK点任务中的初始状态值任意一项为未执行状态时,则对应执行未执行的任务,直至BOM表数据读入任务、创建拼版任务及创建MARK点任务的初始状态值全部更新为最终状态值;同时,为了节省时间,在BOM表数据读入任务的初始状态值更新为最终状态值之后,可以直接检测元件库资料查询及贴装参数设置任务的初始状态值,当初始状态值表征未执行状态时,则执行该元件库资料查询及贴装参数设置任务,执行完成后,将初始状态值更新为最终状态值,当初始状态值表征已执行状态时,则可以直接将初始状态值作为最终状态值;在BOM表数据读入任务、创建拼版任务、创建MARK点任务、元件库资料查询及贴装参数设置任务的初始状态值全部更新为最终状态值之后,检测程序输出任务的初始状态值,当初始状态值表征未执行状态时,则执行该程序输出任务,执行完成后,将初始状态值更新为最终状态值,当初 始状态值表征已执行状态时,则可以直接将初始状态值作为最终状态值,之后便可将程序输出,并可以将完成情况反馈至人工处理客户端,以完成SMT编程任务,并将状态值T1、T2、T3、T4、T5、T6恢复为默认值NO。After obtaining the collaborative programming task, it is necessary to detect the initial state value of the PCB design file read-in task. When the initial state value represents the unexecuted state, execute the PCB design file read-in task. After the execution is completed, update the initial state value. It is the final state value. When the initial state value represents the executed state, the initial state value can be directly used as the final state value; after that, the initial state value of the task of reading the BOM table data, creating the imposition task and creating the MARK point task Detect, when any of the initial state values in the BOM data read-in task, the imposition task and the MARK point creation task is in the unexecuted state, the corresponding unexecuted task will be executed until the BOM data read-in task, create The initial state values of the imposition task and the MARK point creation task are all updated to the final state value; at the same time, in order to save time, after the initial state value of the BOM data reading task is updated to the final state value, the component library data query and The initial state value of the placement parameter setting task. When the initial state value represents the unexecuted state, the component library data query and placement parameter setting task are executed. After the execution is completed, the initial state value is updated to the final state value. When the state value represents the executed state, the initial state value can be directly used as the final state value; the initial state of the task of reading BOM data, creating imposition task, creating MARK point task, component library data query and placement parameter setting task After the values are all updated to the final state value, the initial state value of the program output task is detected. When the initial state value represents the unexecuted state, the program output task is executed. After the execution is completed, the initial state value is updated to the final state value. When When the initial state value represents the executed state, the initial state value can be directly used as the final state value, and then the program can be output, and the completion status can be fed back to the manual processing client to complete the SMT programming task, and the state value can be T1, T2, T3, T4, T5, T6 return to the default value NO.
本实施例通过对每个任务节点设置状态值,因此在执行任务的过程中,可以通过状态值记录每个任务的执行状态,可以在某个任务出现异常情况且异常情况处理完成之后,可以继续执行任务,避免了当某个任务在执行时因异常情况的产生导致的需要重新再将所有任务执行一遍的情况产生,提高了参与人员的协同性。另外,在PCB设计文件读入任务完成之后,通过同时对BOM表数据读入任务、创建拼版任务、创建MARK点任务进行操作,且在BOM表数据读入任务、创建拼版任务、创建MARK点任务、元件库资料查询及贴装参数设置任务的初始状态值全部更新为最终状态值,才执行程序输出任务,这样可以大大提高任务完成的效率,由此可以降低企业的金钱成本和时间成本。In this embodiment, a state value is set for each task node, so during the process of executing the task, the execution state of each task can be recorded by the state value, and after an abnormal situation occurs in a certain task and the processing of the abnormal situation is completed, the process can be continued. Executing tasks avoids the need to re-execute all tasks due to abnormal conditions when a task is being executed, and improves the coordination of participants. In addition, after the PCB design file read-in task is completed, the BOM table data read-in task, the imposition task, and the MARK point task are simultaneously operated, and the BOM table data read task, the imposition task, and the MARK point task are created. , Component library data query and placement parameter setting tasks have all the initial state values updated to the final state values before executing the program output task, which can greatly improve the efficiency of task completion, thereby reducing the cost of money and time for the enterprise.
另外,因为在获取到协同编程任务后,协同编程任务中可能未包括有BOM表数据读入任务和/或创建拼版任务,因此在检测PCB设计文件读入任务之前,首先需要确定协同编程任务需要执行的任务内容,即:In addition, after the co-programming task is acquired, the co-programming task may not include the BOM data read-in task and/or the imposition creation task. Therefore, before detecting the PCB design file read-in task, it is necessary to first determine the needs of the co-programming task. The content of the task performed, namely:
判断协同编程任务中是否存在BOM表数据读入任务和/或创建拼版任务,若协同编程任务中存在BOM表数据读入任务,则维持BOM表数据读入任务的初始状态值,若协同编程任务中不存在BOM表数据读入任务,则更新BOM表数据读入任务的初始状态值表征已执行状态,即使T2=YES,若协同编程任务中存在创建拼版任务,则维持创建拼版任务的初始状态值,若协同编程任务中不存在所述创建拼版任务,则更新所述创建拼版任务的初始状态值表征已执行状态,即使T3=YES。Determine whether there is a BOM data read task and/or create an imposition task in the collaborative programming task. If there is a BOM data read task in the collaborative programming task, the initial state value of the BOM data read task is maintained. If there is no BOM data read-in task, update the initial state value of the BOM data read-in task to represent the executed state, even if T2=YES, if there is an imposition creation task in the collaborative programming task, maintain the initial state of the created imposition task If the co-programming task does not have the imposition creation task, update the initial state value of the imposition creation task to represent the executed state, even if T3=YES.
之后,便可以执行步骤2,步骤2具体可以包括:After that, step 2 can be performed, and step 2 can specifically include:
检测PCB设计文件读入任务的初始状态值,判断PCB设计文件读入任务的初始状态值表征已执行状态还是未执行状态,若PCB设计文件读入任务的初始状态值表征已执行状态,则PCB设计文件读入任务的初始状态值即为最终状态值,若PCB设计文件读入任务的初始状态值表征未执行状态,则执行PCB设计文件读入任务,在PCB设计文件读入任务执行完成后,将PCB设计文件读入任务的初始状态值更新为最终状态值。Detect the initial state value of the PCB design file read-in task, and determine whether the initial state value of the PCB design file read-in task represents the executed state or the unexecuted state. If the initial state value of the PCB design file read-in task represents the executed state, then the PCB The initial state value of the design file read-in task is the final state value. If the initial state value of the PCB design file read-in task represents the unexecuted state, the PCB design file read-in task is executed. After the PCB design file read-in task is executed , to update the initial state value of the PCB design file read-in task to the final state value.
进一步地,在执行PCB设计文件读入任务时,可能存在异常情况,例如PCB设计文件无法读入、在PCB设计文件读取过程中有元件位号重复情况、在PCB设计文件读取过程中发现读取文件不完整等,因此在PCB设计文件读入任务的执行过程中还需判断是否存在异常情况,若不存在异常情况,则在PCB设计文件读入任务完成后,将PCB设计文件读入任务的初始状态值更 新为最终状态值,若存在异常情况,则将该异常情况向人工处理客户端进行反馈,之后在第一预设时间内接受人工处理客户端已处理该异常情况的反馈,在接收到该反馈后,且在PCB设计文件读入任务完成后,将PCB设计文件读入任务的初始状态值更新为最终状态值,其中,第一预设时间为在执行PCB设计文件读入任务时处理异常情况的时间。Further, when performing the task of reading the PCB design file, there may be abnormal situations, such as the PCB design file cannot be read in, the component tag number is repeated in the process of reading the PCB design file, and the PCB design file is found in the process of reading. The read file is incomplete, etc. Therefore, it is necessary to judge whether there is an abnormal situation during the execution of the PCB design file reading task. If there is no abnormal situation, after the PCB design file reading task is completed, read the PCB design file. The initial state value of the task is updated to the final state value. If there is an abnormal situation, the abnormal situation will be fed back to the manual processing client, and then the manual processing client will receive feedback within the first preset time that the abnormal situation has been processed. After receiving the feedback, and after the PCB design file read-in task is completed, the initial state value of the PCB design file read-in task is updated to the final state value, wherein the first preset time is when the PCB design file read-in task is executed. The time to handle exceptions during the task.
为了更清楚的说明在执行PCB设计文件读入任务时出现异常情况的处理过程,以异常情况为PCB设计文件无法读入为例举例说明:In order to more clearly explain the processing process of abnormal situations when executing the task of reading PCB design files, the abnormal situation is that the PCB design files cannot be read as an example to illustrate:
请参见图2、图3、图4,若出现PCB设计文件无法读入的异常情况,那么需将该异常情况和重新读入的意见反馈给人工处理客户端,人工处理客户端将PCB设计文件无法读入的异常情况和建议重新读入的意见存储到PCB数据异常处理组中的任务池中,根据情况(根据异常情况出现的问题,可以优先分给处理此类问题比较专业的成员),PCB数据异常处理组将此异常情况的处理任务分配给如成员1进行处理,并设置完成时间(例如10分钟),成员1在接收到任务时开始倒计时,若在规定时间内完成任务,则将处理情况反馈至PCB设计文件读入任务的节点处,完成PCB设计文件读入任务,并将PCB设计文件读入任务的初始状态值更新为最终状态值,即T1=YES;若在规定时间内未完成任务,则成员1可以选择放弃处理,该异常任务在成员1的处理则处于中断状态,该中断的异常情况的处理情况可以保存并返回到任务池中,PCB数据异常处理组根据情况(根据异常处理任务的情况,例如:异常处理任务已经快完成了,但是倒计时时间到了,这种情况就可以由成员1选择继续处理,直至完成该异常处理任务,该倒计时的设置可以由PCB数据异常处理组根据任务的难易程度,设置不同时长和不同次数的倒计时提醒,比如针对PCB设计文件无法读入的异常情况,分配给成员1后设置2次倒计时提醒,时长分别设置为10分钟和5分钟;若是该异常处理任务,成员1已经没有能力去处理,可以考虑换成其他成员来继续执行此异常处理任务),再次分配给成员1或者其他成员继续处理此异常(在之前处理异常的状态下继续处理),并设置完成时间(例如10分钟),成员接受到任务时开始倒计时,若在规定时间内完成任务,则将处理情况反馈至PCB设计文件读入任务的节点处,完成PCB设计文件读入任务,并将PCB设计文件读入任务的初始状态值更新为最终状态值,即完成此节点并设置状态值T1=YES,若没有完成此异常处理则重复以上操作。Please refer to Figure 2, Figure 3, and Figure 4. If there is an abnormal situation that the PCB design file cannot be read in, then the abnormal situation and re-reading opinions should be fed back to the manual processing client, and the manual processing client will transfer the PCB design file. Exceptions that cannot be read in and suggestions for re-reading are stored in the task pool in the PCB data exception handling group. According to the situation (problems arising from abnormal situations can be given priority to members who are more professional in handling such problems), The PCB data exception processing team assigns the processing task of this abnormal situation to member 1 for processing, and sets the completion time (for example, 10 minutes). Member 1 starts the countdown when receiving the task. If the task is completed within the specified time, it will be Feedback the processing situation to the node of the PCB design file read-in task, complete the PCB design file read-in task, and update the initial state value of the PCB design file read-in task to the final state value, that is, T1=YES; if within the specified time If the task is not completed, member 1 can choose to give up the processing. The abnormal task is in an interrupted state in the processing of member 1. The processing of the interrupted abnormal situation can be saved and returned to the task pool. According to the situation of the exception handling task, for example: the exception handling task is almost completed, but the countdown time is up, in this case, member 1 can choose to continue processing until the exception handling task is completed, the countdown setting can be determined by the PCB data exception The processing group sets countdown reminders of different durations and times according to the difficulty of the task. For example, for the abnormal situation that the PCB design file cannot be read, set up two countdown reminders after assigning to member 1, and the durations are set to 10 minutes and 5 respectively. minutes; if member 1 has no ability to handle the exception handling task, consider replacing it with other members to continue executing the exception handling task), and assign it to member 1 or other members to continue processing the exception (in the state of handling the exception before) continue processing), and set the completion time (for example, 10 minutes). The countdown starts when the member accepts the task. If the task is completed within the specified time, the processing situation will be fed back to the node where the PCB design file is read into the task to complete the PCB design. The file is read into the task, and the initial state value of the PCB design file read-in task is updated to the final state value, that is, the node is completed and the state value T1=YES is set. If the exception handling is not completed, the above operation is repeated.
同理,在执行PCB设计文件读入任务时,如果出现其他异常情况,也可以按照上述方式处理,针对不同的问题可以分配给不同的成员进行处理,以便高效率的完成任务。Similarly, when performing the task of reading the PCB design file, if there are other abnormal situations, it can also be handled in the above way, and different problems can be assigned to different members for processing, so as to complete the task efficiently.
在一个具体实施例中,步骤3具体可以包括:In a specific embodiment, step 3 may specifically include:
判断BOM表数据读入任务、创建拼版任务及创建MARK点任务的初始状态值;Determine the initial state value of BOM data read-in task, create imposition task and create MARK point task;
若BOM表数据读入任务的初始状态值表征已执行状态,则检测元件库资料查询及贴装参数设置任务的初始状态值,并根据元件库资料查询及贴装参数设置任务的初始状态值,将元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值,若BOM表数据读入任务的初始状态值表征未执行状态,则执行BOM表数据读入任务,在BOM表数据读入任务执行完成后,将BOM表数据读入任务的初始状态值更新为最终状态值,之后检测元件库资料查询及贴装参数设置任务的初始状态值,并根据元件库资料查询及贴装参数设置任务的初始状态值,将元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值;If the initial state value of the BOM data read-in task represents the executed state, the initial state value of the component library data query and placement parameter setting task is detected, and the initial state value of the task is set according to the component library data query and placement parameter setting. Update the initial state value of the component library data query and placement parameter setting task to the final state value. If the initial state value of the BOM data read task represents the unexecuted state, execute the BOM data read task, and then execute the BOM data read task. After the read-in task is executed, update the initial state value of the BOM data read-in task to the final state value, and then detect the initial state value of the component library data query and placement parameter setting task, and query and mount according to the component library data. The initial state value of the parameter setting task, and the initial state value of the component library data query and the placement parameter setting task is updated to the final state value;
若创建拼版任务的初始状态值表征已执行状态,则创建拼版任务的初始状态值即为最终状态值,若创建拼版任务的初始状态值表征未执行状态,则执行创建拼版任务,在创建拼版任务执行完成后,将创建拼版任务的初始状态值更新为最终状态值;If the initial state value of the created imposition task represents the executed state, then the initial state value of the created imposition task is the final state value. If the initial state value of the created imposition task represents the unexecuted state, then execute the created imposition task, and then execute the created imposition task. After the execution is completed, update the initial state value of the imposition task to the final state value;
若创建MARK点任务的初始状态值表征已执行状态,则创建MARK点任务的初始状态值即为最终状态值,若创建MARK点任务的初始状态值表征未执行状态,则执行创建MARK点任务,在创建MARK点任务执行完成后,将创建MARK点任务的初始状态值更新为最终状态值。If the initial state value of the MARK point task represents the executed state, the initial state value of the MARK point task is the final state value. If the initial state value of the MARK point task represents the unexecuted state, the MARK point task is executed. After the MARK point creation task is executed, the initial state value of the MARK point creation task is updated to the final state value.
具体地,本实施例需要同时判断BOM表数据读入任务、创建拼版任务及创建MARK点任务的初始状态值,对于BOM表数据读入任务而言,当确认其初始状态值表征已执行状态之后,接着便可以检测元件库资料查询及贴装参数设置任务的初始状态值,而这个过程是可以与检测创建拼版任务及创建MARK点任务的初始状态值的过程并行执行的,相互并不冲突,为由此可以节省编程时间,提高工作效率。Specifically, in this embodiment, it is necessary to judge the initial state values of the BOM data reading task, the imposition task and the MARK point creation task at the same time. For the BOM data reading task, after confirming that the initial state value represents the executed state , and then you can detect the initial state value of the component library data query and the placement parameter setting task, and this process can be executed in parallel with the process of detecting the initial state value of the imposition task and the MARK point task, and they do not conflict with each other. This saves programming time and improves work efficiency.
进一步地,当检测元件库资料查询及贴装参数设置任务的初始状态值时,可以判断元件库资料查询及贴装参数设置任务的初始状态值表征已执行状态还是未执行状态,若元件库资料查询及贴装参数设置任务的初始状态值表征已执行状态,则元件库资料查询及贴装参数设置任务的初始状态值即为最终状态值,若元件库资料查询及贴装参数设置任务的初始状态值表征未执行状态,则执行所述元件库资料查询及贴装参数设置任务,在元件库资料查询及贴装参数设置任务执行完成后,将元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值。Further, when detecting the initial state value of the component library data query and the placement parameter setting task, it can be judged that the initial state value of the component library data query and the placement parameter setting task represents the executed state or the unexecuted state. The initial state value of the query and placement parameter setting task represents the executed state, and the initial state value of the component library data query and placement parameter setting task is the final state value. If the initial state value of the component library data query and placement parameter setting task is The state value represents the unexecuted state, then execute the component library data query and placement parameter setting task. After the component library data query and placement parameter setting task is completed, the initial stage of the component library data query and placement parameter setting task is completed. The state value is updated to the final state value.
优选地,当BOM表数据读入任务的初始状态值表征未执行状态时,则需执行BOM表数据读入任务,而在执行过程中,可能存在异常情况,例如 BOM表读取失败、在BOM表读入过程中发现有元件重复、在BOM表读入过程中发现BOM表中元件数量和位号不一致、在BOM表读入过程中发现BOM表中元件位置在CAD设计文件中找不到等,如表1所示,为本实施例提供的一种BOM表,因此在BOM表数据读入任务的执行过程中还需判断是否存在异常情况,若不存在异常情况,则在BOM表数据读入任务完成后,将BOM表数据读入任务的初始状态值更新为最终状态值,若存在异常情况,则将该异常情况向人工处理客户端进行反馈,之后在第二预设时间内接受人工处理客户端已处理该异常情况的反馈,在接收到该反馈后,且在BOM表数据读入任务完成后,将BOM表数据读入任务的初始状态值更新为最终状态值,其中,第二预设时间为在执行BOM表数据读入任务时处理异常情况的时间。Preferably, when the initial state value of the BOM data read-in task represents an unexecuted state, the BOM data read-in task needs to be executed, and during the execution process, there may be abnormal situations, such as failure to read the BOM table, failure to read the BOM table In the process of reading the BOM, it is found that there are repeated components, the number of components and the bit number in the BOM are inconsistent during the reading of the BOM, and the position of the components in the BOM is found during the reading of the BOM. Can not be found in the CAD design file, etc. , as shown in table 1, a kind of BOM table that this embodiment provides, therefore also need to judge whether there is abnormal situation in the execution process of BOM table data read-in task, if there is no abnormal situation, then read in BOM table data After the input task is completed, the initial state value of the BOM table data read-in task is updated to the final state value. If there is an abnormal situation, the abnormal situation will be fed back to the manual processing client, and then the manual processing will be accepted within the second preset time. Processing the feedback that the client has handled the abnormal situation, after receiving the feedback and after the BOM data reading task is completed, update the initial state value of the BOM data reading task to the final state value, wherein the second The preset time is the time for handling exceptions when executing the BOM data read task.
表1 BOM表Table 1 BOM
位号Tag number 料号Part No 数量quantity 信息information
C1,C11C1,C11 E16359-001E16359-001 22 CAPC,X5R,0402,1UF,6.3V,10%,GRM155R60J1>CAPC,X5R,0402,1UF,6.3V,10%,GRM155R60J1>
C1M5,C2M1C1M5, C2M1 C83410-003C83410-003 22 CAPC,X5R,0201,0.100UF,6.300V,+/-10%CAPC, X5R, 0201, 0.100UF, 6.300V, +/-10%
为了更清楚的说明在执行BOM表数据读入任务时出现异常情况的处理过程,以异常情况为在BOM表读入过程中发现BOM表中元件数量和位号不一致、在BOM表读入过程中发现BOM表中元件位置为例举例说明:In order to more clearly explain the processing process of abnormal situations when executing the BOM data reading task, the abnormal situation is that the number of components and the bit numbers in the BOM table are found to be inconsistent during the BOM table reading process, and during the BOM table reading process Find the location of components in the BOM as an example to illustrate:
请参见图2、图3、图4,若在BOM表读入过程中发现BOM表中元件数量和位号不一致的异常情况,那么需将BOM表中有元件数量和位号不一致的异常情况和元件数量和位号不一致的元件信息反馈给人工处理客户端,人工处理客户端将BOM表中有元件数量和位号不一致的异常情况和元件数量和位号不一致的元件信息拆分成两类任务(第一种:检查反馈的元件信息中的元件数量是否有错误;第二种:检查反馈的元件信息的元件位号是否有错误)存储到BOM数据异常处理组的任务池中,根据情况(根据异常出现的问题,可以优先分给处理此类问题比较专业的成员),BOM数据异常处理组将此两种任务分配给如成员3和成员4并行处理此两种异常情况,并设置完成时间如10分钟,成员3和成员4在接收到任务时开始倒计时,若在规定时间内完成任务,则将处理情况反馈给BOM表数据读入任务的节点处,完成BOM表数据读入任务,并将BOM表数据读入任务的初始状态值更新为最终状态值,即T2=YES;若在规定时间内未完成此异常任务(有3中异常处理异常完成情况:第一种异常情况、第二种异常情况都没有完成;第一种异常情况完成,第二种异常情况没有完成;第一种异常情况没有完成,第二种异常情况完成。),则成员3和成员4可以选择放弃处理,该异常情况处理任务在成员3和成员4的处理即处于中断状态,该中断的异常处理情况可 以保存并返回到任务池中,BOM数据异常处理组根据情况(根据异常处理任务的情况,例如:异常处理任务已经快完成了,但是倒计时时间到了,这种情况就可以由成员3和/或成员4选择继续处理,直至完成该异常处理任务,该倒计时的设置可以由BOM数据异常处理组根据任务的难易程度,设置不同时长和不同次数的倒计时提醒,比如针对BOM表读取过程中发现BOM表中元件数量和位号不一致的异常,分配给成员3和/或成员4后设置2次倒计时提醒,时长分别设置为10分钟和5分钟;若是异常处理任务,成员3和/或成员4已经没有能力去处理,可以考虑换其他成员来继续执行此异常处理),再次分给成员3和/或成员4或者其他成员继续处理此异常(在之前处理异常的状态下,继续处理),并设置完成时间(例如10分钟),成员在接受到任务时开始倒计时,若在规定时间内完成任务,则将处理情况反馈BOM表数据读入任务的节点处,完成BOM表数据读入任务,并将BOM表数据读入任务的初始状态值更新为最终状态值,即完成此节点并设置状态值T2=YES,若是没有完成此异常处理则重复以上操作。Please refer to Figure 2, Figure 3, and Figure 4. If an abnormal situation is found that the number of components and the bit number in the BOM table are inconsistent during the reading process of the BOM table, then the abnormal situation in which the number of components and bit numbers in the BOM table are inconsistent should be corrected. The component information with inconsistent component quantity and tag number is fed back to the manual processing client, and the manual processing client divides the abnormal situation in the BOM table with inconsistent component quantity and tag number and the component information with inconsistent component quantity and tag number into two types of tasks. (The first: check whether the number of components in the feedback component information is wrong; the second: check whether the component bit number of the feedback component information is wrong) Store it in the task pool of the BOM data exception handling group, according to the situation ( According to the abnormal problem, it can be given priority to members who are more professional in handling such problems), the BOM data exception handling team assigns these two tasks to such as member 3 and member 4 to process these two abnormal situations in parallel, and set the completion time For example, in 10 minutes, member 3 and member 4 start the countdown when receiving the task. If the task is completed within the specified time, the processing situation will be fed back to the node of the BOM data read-in task to complete the BOM data read-in task, and Update the initial state value of the BOM table data read-in task to the final state value, that is, T2=YES; if the abnormal task is not completed within the specified time (there are 3 cases of abnormal completion of abnormal processing: the first abnormal situation, the second abnormal situation If the first exception is not completed, the second exception is not completed; the first exception is not completed, and the second exception is completed.), then member 3 and member 4 can choose to give up processing, The exception handling task is in an interrupted state when member 3 and member 4 are processed. The interrupted exception handling situation can be saved and returned to the task pool. The BOM data exception handling group will be in an interrupted state according to the situation (according to the situation of the exception handling task, for example: The exception handling task is almost completed, but the countdown time is up. In this case, member 3 and/or member 4 can choose to continue processing until the exception handling task is completed. The countdown can be set by the BOM data exception handling team according to the task. Set countdown reminders of different durations and times. For example, if the number of components and bit numbers in the BOM are found to be inconsistent during the reading of the BOM, set 2 countdowns after assigning them to member 3 and/or member 4. Reminder, the duration is set to 10 minutes and 5 minutes respectively; if member 3 and/or member 4 are no longer able to handle the exception handling task, you can consider changing other members to continue executing this exception handling), and assign it to member 3 and/or again. Or member 4 or other members continue to process this exception (continue processing in the state where the exception was previously handled), and set the completion time (for example, 10 minutes), the member starts the countdown when receiving the task, if the task is completed within the specified time, Then, the processing situation is fed back to the node where the BOM data is read into the task, the BOM data read task is completed, and the initial state value of the BOM data read task is updated to the final state value, that is, the node is completed and the state value T is set 2=YES, if the exception handling is not completed, repeat the above operations.
若在BOM表读入过程中发现BOM表中元件位置在CAD设计文件中找不到,那么将BOM表中有元件位置在CAD设计文件中找不到的异常情况和相关元件信息反馈给人工处理客户端,人工处理客户端将BOM表中有元件位置在CAD设计文件中找不到的异常情况和相关元件信息拆分成两类任务(第一种:CAD文件中相关元件信息是否有错误;第二种:BOM表中相关元件信息是否有错误)存储到BOM数据异常处理组的任务池中,根据情况,BOM数据异常处理组将这两种任务分配给成员5和成员6并行处理,并设置完成时间(例如10分钟),成员5和成员6在接收到任务时开始倒计时,若在规定时间内完成任务,则将处理情况反馈给BOM表数据读入任务的节点处,完成此节点并设置状态值T2=YES;若在规定时间内未完成此异常任务,则成员5和成员6可以选择放弃处理,该异常任务在成员5和成员6的处理即处于中断状态,该中断的异常处理情况可以保存并返回到任务池中,BOM数据异常处理组根据情况,再次分给成员5和/或成员6或者其他成员继续处理此异常,并设置完成时间,成员在接收到任务时开始倒计时,若在规定时间内完成任务,则将处理情况反馈至BOM表数据读入任务的节点处,完成此节点并设置状态值T2=YES,若是没有完成此异常处理则重复以上操作。If it is found that the component positions in the BOM table cannot be found in the CAD design file during the BOM table reading process, then the abnormal situation and related component information in the BOM table that the component positions cannot be found in the CAD design file will be fed back to manual processing. Client, manual processing The client divides the abnormal situation and related component information in the BOM table that the component position cannot be found in the CAD design file into two types of tasks (the first type: whether there is an error in the related component information in the CAD file; The second type: Whether the relevant component information in the BOM table is wrong) is stored in the task pool of the BOM data exception handling group. According to the situation, the BOM data exception handling group assigns these two tasks to member 5 and member 6 for parallel processing, and Set the completion time (for example, 10 minutes), and member 5 and member 6 start the countdown when receiving the task. If the task is completed within the specified time, the processing situation will be fed back to the node where the BOM data is read into the task, and the node will be completed and completed. Set the status value T2=YES; if the abnormal task is not completed within the specified time, then member 5 and member 6 can choose to give up processing, the abnormal task is in the interrupted state in the processing of member 5 and member 6, and the interrupted exception processing The situation can be saved and returned to the task pool. According to the situation, the BOM data exception handling team will again assign it to member 5 and/or member 6 or other members to continue processing the exception, and set the completion time. The member starts the countdown when the task is received, If the task is completed within the specified time, the processing situation is fed back to the node where the BOM data is read into the task, the node is completed and the state value T2=YES is set. If the exception processing is not completed, the above operations are repeated.
同理,在执行BOM表数据读入任务时,如果出现其他异常情况,也可以按照上述方式处理,针对不同的问题可以分配给不同的成员进行处理,以便高效率的完成任务。Similarly, when executing the BOM data read-in task, if there are other abnormal situations, it can also be handled in the above way, and different problems can be assigned to different members for processing, so as to complete the task efficiently.
优选地,当创建拼版任务的初始状态值表征未执行状态时,则需执行创建拼版任务,而在执行过程中,可能存在异常情况,例如在创建拼版的 时候找不到拼版信息、完成拼版操作后板子的尺寸太大等,因此在创建拼版任务的执行过程中还需判断是否存在异常情况,若不存在异常情况,则在创建拼版任务完成后,将创建拼版任务的初始状态值更新为最终状态值,若存在异常情况,则将该异常情况向人工处理客户端进行反馈,之后在第三预设时间内接受人工处理客户端已处理该异常情况的反馈,在接收到该反馈后,且在创建拼版任务完成后,将创建拼版任务的初始状态值更新为最终状态值,其中,第三预设时间为在创建拼版任务时处理异常情况的时间。Preferably, when the initial state value of the imposition creation task represents an unexecuted state, the imposition creation task needs to be executed, and during the execution process, there may be abnormal situations, for example, the imposition information cannot be found when the imposition is created, and the imposition operation is completed. The size of the rear board is too large. Therefore, it is necessary to judge whether there is any abnormality during the execution of the imposition task. If there is no abnormality, after the imposition task is created, update the initial state value of the imposition task to final. Status value, if there is an abnormal situation, the abnormal situation will be fed back to the manual processing client, and then within the third preset time, the manual processing client will accept the feedback that the abnormal situation has been processed, after receiving the feedback, and After the imposition task is created, the initial state value of the imposition task is updated to the final state value, wherein the third preset time is the time for handling abnormal situations when the imposition task is created.
为了更清楚的说明在执行创建拼版任务时出现异常情况的处理过程,以异常情况为在创建拼版的时候找不到拼版信息为例举例说明:In order to explain more clearly the processing process of abnormal situation when executing the task of creating imposition, take the abnormal situation that the imposition information cannot be found when creating the imposition as an example to illustrate:
请参见图2、图3、图4,若在创建拼版的时候找不到拼版信息,那么将找不到拼版信息的异常情况和建议补充拼版信息的意见反馈给人工处理客户端,人工处理客户端将找不到拼版信息的异常情况和建议补充拼版信息的意见存储到拼版异常处理组的任务池中,根据情况,拼版异常处理组将此类异常任务分配给成员1处理,并设置完成时间,成员1在接收到任务时开始倒计时,若在规定时间内完成任务,则将处理情况反馈给创建拼版任务的节点处,完成此节点并设置状态值T3=YES;若在规定时间内未完成任务,则成员1可以选择放弃处理,该异常任务在成员1的处理即处于中断状态,该中断的异常处理情况可以保存并返回到任务池中拼版异常处理组根据情况,再次分给成员1或者其他成员继续处理此异常,并设置完成时间,成员在接收到任务时开始倒计时,若在规定时间内完成任务,则将处理情况反馈至创建拼版任务的节点处,完成此节点并设置状态值T3=YES,若是没有完成此异常处理则重复以上操作。Please refer to Figure 2, Figure 3, and Figure 4. If the imposition information cannot be found when the imposition is created, the abnormal situation that the imposition information cannot be found and the suggestions for supplementing the imposition information will be fed back to the manual processing client, and the client will be manually processed. The terminal stores the abnormal situation that the imposition information cannot be found and the suggestion to supplement the imposition information in the task pool of the imposition exception handling group. According to the situation, the imposition exception handling group assigns such abnormal tasks to member 1 for processing, and sets the completion time. , Member 1 starts the countdown when receiving the task. If the task is completed within the specified time, it will feed back the processing situation to the node that created the imposition task, complete the node and set the status value T3=YES; if it is not completed within the specified time task, then member 1 can choose to give up the processing, the abnormal task is in the interrupted state in the processing of member 1, and the interrupted exception processing situation can be saved and returned to the task pool. Other members continue to process this exception and set the completion time. The member starts the countdown when receiving the task. If the task is completed within the specified time, it will feed back the processing situation to the node that created the imposition task, complete the node and set the status value T3 =YES, if the exception handling is not completed, repeat the above operations.
同理,在执行创建拼版任务时,如果出现其他异常情况,也可以按照上述方式处理,针对不同的问题可以分配给不同的成员进行处理,以便高效率的完成任务。Similarly, when performing the task of creating an imposition, if there are other abnormal situations, it can also be handled in the above manner, and different problems can be assigned to different members for processing, so as to complete the task efficiently.
优选地,当创建MARK点任务的初始状态值表征未执行状态时,则需执行创建MARK点任务,而在执行过程中,可能存在异常情况,例如在创建MARK点的时候找不到合适的MARK点、在创建MARK点的时候发现MARK点的数量不够、在创建MARK点的时候发现找到的超出板的大小等,因此在创建MARK点任务的执行过程中还需判断是否存在异常情况,若不存在异常情况,则在创建MARK点任务完成后,将创建MARK点任务的初始状态值更新为最终状态值,若存在异常情况,则将该异常情况向人工处理客户端进行反馈,之后在第四预设时间内接受人工处理客户端已处理该异常情况的反馈,在接收到该反馈后,且在创建MARK点任务完成后,将 创建MARK点任务的初始状态值更新为最终状态值,其中,第四预设时间为在创建MARK点任务时处理异常情况的时间。Preferably, when the initial state value of the task of creating a MARK point represents an unexecuted state, the task of creating a MARK point needs to be executed, and during the execution process, there may be abnormal situations, for example, a suitable MARK cannot be found when creating a MARK point When creating a MARK point, it is found that the number of MARK points is not enough, and when creating a MARK point, it is found that the size of the board found exceeds the size of the board. If there is an abnormal situation, after the task of creating the MARK point is completed, update the initial state value of the task of creating the MARK point to the final state value. Accept the feedback that the abnormal situation has been handled by the manual processing client within the preset time, after receiving the feedback, and after the task of creating the MARK point is completed, update the initial state value of the task of creating the MARK point to the final state value, among which, The fourth preset time is the time for handling the abnormal situation when creating the MARK point task.
为了更清楚的说明在执行创建MARK点任务时出现异常情况的处理过程,以异常情况为在创建MARK点的时候找不到合适的MARK点为例举例说明:In order to more clearly illustrate the processing process of abnormal situations when executing the task of creating MARK points, the abnormal situation is that a suitable MARK point cannot be found when creating a MARK point as an example to illustrate:
若在创建MARK点的时候找不到合适的MARK点,那么将找不到合适的MARK点的异常情况和人工创建MARK点的意见反馈给人工处理客户端,人工处理客户端将找不到合适的MARK点的异常情况和人工创建MARK点的意见存储到创建MARK点异常处理组的任务池中,根据情况,创建MARK点异常处理组将此类异常任务分配给成员1处理,并设置完成时间,成员1在接收到任务的时候开始倒计时,若在规定时间内完成任务,则将处理情况反馈给创建MARK点任务的节点处,完成此节点并设置状态值T4=YES;若在规定时间内未完成任务,则成员1可以选择放弃处理,该异常任务在成员1的处理即处于中断状态,该中断的异常处理情况可以保存并返回到任务池中,创建MARK点异常处理组根据情况,再次分给成员1或者其他成员继续处理此异常,并设置完成时间,成员在接收到任务时开始倒计时,若在规定时间内完成任务,则将处理情况反馈给创建MARK点任务的节点处,完成此节点并设置状态值T4=YES,若是没有完成此异常处理则重复以上操作。If a suitable MARK point cannot be found when creating a MARK point, the abnormal situation that a suitable MARK point cannot be found and the opinions of manually creating a MARK point will be fed back to the manual processing client, and the manual processing client will not be able to find a suitable MARK point. The abnormal situation of the MARK point and the opinions of manually creating the MARK point are stored in the task pool for creating the MARK point exception handling group. According to the situation, the MARK point exception handling group is created to assign such abnormal tasks to member 1 for processing, and set the completion time. , Member 1 starts the countdown when it receives the task. If the task is completed within the specified time, it will feed back the processing situation to the node that created the MARK point task, complete the node and set the status value T4=YES; if the task is completed within the specified time If the task is not completed, member 1 can choose to give up the processing. The abnormal task is in an interrupted state in the processing of member 1. The interrupted exception processing status can be saved and returned to the task pool, and the MARK point exception processing group is created. According to the situation, again Assign it to member 1 or other members to continue processing this exception, and set the completion time. The member starts the countdown when receiving the task. If the task is completed within the specified time, the processing situation will be fed back to the node that created the MARK point task to complete the process. node and set the status value T4 = YES, if the exception handling is not completed, repeat the above operations.
同理,在执行创建MARK点任务时,如果出现其他异常情况,也可以按照上述方式处理,针对不同的问题可以分配给不同的成员进行处理,以便高效率的完成任务。In the same way, when performing the task of creating a MARK point, if there are other abnormal situations, it can also be handled in the above way, and different problems can be assigned to different members for processing, so that the task can be completed efficiently.
优选地,当元件库资料查询及贴装参数设置任务的初始状态值表征未执行状态时,则需执行元件库资料查询及贴装参数设置任务,而在执行过程中,可能存在异常情况,例如根据料号(PartNumber)在元件库中下载时发现下载资料不完整、根据料号在元件库中下载时发现元件库中找不到相关元件、根据料号在总元件库中的找元件的角度偏移和贴装资料信息时发现找不到部分元件的角度偏移和/或贴装资料信息等,因此在元件库资料查询及贴装参数设置任务的执行过程中还需判断是否存在异常情况,若不存在异常情况,则在元件库资料查询及贴装参数设置任务完成后,将元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值,若存在异常情况,则将该异常情况向人工处理客户端进行反馈,之后在第五预设时间内接受人工处理客户端已处理该异常情况的反馈,在接收到该反馈后,且在元件库资料查询及贴装参数设置任务完成后,将元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值,其中,第五预设时间为在 执行元件库资料查询及贴装参数设置任务时处理异常情况的时间。Preferably, when the initial state value of the component library data query and the placement parameter setting task represents an unexecuted state, the component library data query and the placement parameter setting task need to be executed, and during the execution process, there may be abnormal conditions, such as According to the part number (PartNumber), it is found that the downloaded data is incomplete when downloading from the component library. When downloading from the component library according to the part number, it is found that the relevant components cannot be found in the component library. According to the part number, the angle of finding components in the general component library During the offset and placement data information, it is found that the angle offset and/or placement data information of some components cannot be found. Therefore, it is necessary to judge whether there is any abnormality during the execution of the component library data query and placement parameter setting tasks. , if there is no abnormality, after the component library data query and placement parameter setting tasks are completed, update the initial state value of the component library data query and placement parameter setting task to the final state value. The abnormal situation is reported to the manual processing client, and then within the fifth preset time, the manual processing client receives the feedback that the abnormal situation has been processed. After the task is completed, the initial state value of the component library data query and placement parameter setting task is updated to the final state value, wherein the fifth preset time is for processing abnormal conditions when executing the component library data query and placement parameter setting task. time.
为了更清楚的说明在执行元件库资料查询及贴装参数设置任务时出现异常情况的处理过程,以异常情况为根据料号在元件库中下载时发现下载资料不完整为例举例说明:In order to more clearly explain the processing process of abnormal situations when performing the task of querying the data of the component library and setting the mounting parameters, take the abnormal situation as an example of finding that the downloaded data is incomplete when downloading the component library according to the part number:
请参见图2、图3、图4,若根据料号在元件库中下载时发现下载资料不完整,那么将下载资料不完整和缺少资料的元件信息(例如N个元件资料没有下载下来)的异常情况反馈给人工处理客户端,人工处理客户端将下载资料不完整和缺少资料的元件信息拆分成多个任务(例如N个)存储到元件库维护及贴装参数设置异常处理组的任务池中,根据情况,元件维护及贴装参数设置异常处理组将这些任务分配给相应成员并行处理,并设置完成时间,成员在接收到任务的时候开始倒计时,若在规定的时间内完成任务则将处理情况反馈给元件库资料查询及贴装参数设置任务的节点处,完成此节点并设置状态值T5=YES;若在规定时间内未完成任务,则成员i(i为1-N中的任意数)可以选择放弃处理,该异常任务在成员i的处理即处于中断状态,该中断的异常处理情况可以保存并返回到任务池中,元件维护及贴装参数设置异常处理组根据情况,再次分给对应的成员i或者其他成员继续处理此异常,并设置完成时间,成员在接收到任务时开始倒计时,若在规定时间内完成任务,则将处理情况反馈给元件库资料查询及贴装参数设置任务的节点处,完成元件库资料查询及贴装参数设置任务,并完成此节点并设置状态值T5=YES,若没有完成此异常处理则重复以上操作。具体例如:假如有100个料号,查询到70个没问题,30个有问题,那么这30个可以拆分成30个异常任务,可以被30个异常处理成员并行进行异常处理。Please refer to Figure 2, Figure 3, and Figure 4. If the downloaded data is found to be incomplete when downloading from the component library according to the part number, the component information with incomplete downloaded data and missing data (for example, N component data has not been downloaded) The abnormal situation is fed back to the manual processing client, and the manual processing client splits the component information with incomplete downloaded data and missing data into multiple tasks (for example, N), and stores them in the component library maintenance and placement parameter settings. The task of the exception processing group In the pool, according to the situation, the component maintenance and placement parameter setting exception handling group assigns these tasks to the corresponding members for parallel processing, and sets the completion time. The member starts the countdown when the task is received. If the task is completed within the specified time, the Feedback the processing situation to the node of the component library data query and placement parameter setting task, complete this node and set the status value T5=YES; if the task is not completed within the specified time, the member i (i is one of 1-N) Any number) can choose to give up the processing, the abnormal task is in the interrupted state in the processing of member i, the interrupted abnormal processing situation can be saved and returned to the task pool, the component maintenance and placement parameters are set to abnormal processing group according to the situation, again Assign it to the corresponding member i or other members to continue processing this exception, and set the completion time. The member starts the countdown when receiving the task. If the task is completed within the specified time, the processing status will be fed back to the component library data query and placement parameters. At the node of the setting task, complete the task of querying the data of the component library and setting the mounting parameters, and complete the node and set the status value T5=YES. If the exception handling is not completed, repeat the above operations. For example, if there are 100 material numbers, 70 are ok and 30 are problematic, then these 30 can be divided into 30 exception tasks, which can be processed in parallel by 30 exception handling members.
同理,在执行元件库资料查询及贴装参数设置任务时,如果出现其他异常情况,也可以按照上述方式处理,针对不同的问题可以分配给不同的成员进行处理,以便高效率的完成任务。In the same way, when performing the task of querying the data of the component library and setting the mounting parameters, if there are other abnormal situations, it can also be handled in the above way, and different problems can be assigned to different members for processing, so as to complete the task efficiently.
在一个具体实施例中,步骤4可以具体为:In a specific embodiment, step 4 may be specifically:
在元件库资料查询及贴装参数设置任务、创建拼版任务和创建MARK点任务的初始状态值均更新为最终状态值之后,检测程序输出任务的初始状态值,判断程序输出任务的初始状态值表征已执行状态还是未执行状态,若程序输出任务的初始状态值表征已执行状态,则程序输出任务的初始状态值即为最终状态值,若程序输出任务的初始状态值表征未执行状态,则执行程序输出任务,在程序输出任务执行完成后,将程序输出任务的初始状态值更新为最终状态值。After the initial state value of the component library data query and the placement parameter setting task, the imposition task and the MARK point creation task are all updated to the final state value, the initial state value of the program output task is detected, and the initial state value of the program output task is judged. Executed state or unexecuted state, if the initial state value of the program output task represents the executed state, then the initial state value of the program output task is the final state value, if the initial state value of the program output task represents the unexecuted state, then execute The program output task updates the initial state value of the program output task to the final state value after the execution of the program output task is completed.
进一步地,在执行程序输出任务时,可能存在异常情况,例如在执行程序输出的时程序不能输出等,因此在程序输出任务的执行过程中还需判 断是否存在异常情况,若不存在异常情况,则在程序输出任务完成后,将程序输出任务的初始状态值更新为最终状态值,若存在异常情况,则将该异常情况向人工处理客户端进行反馈,之后在第六预设时间内接受人工处理客户端已处理该异常情况的反馈,在接收到该反馈后,且在程序输出任务完成后,将程序输出任务的初始状态值更新为最终状态值,其中,第六预设时间为在执行程序输出任务时处理异常情况的时间。Further, when executing the program output task, there may be abnormal conditions, for example, the program cannot be output when executing the program output, etc. Therefore, it is necessary to judge whether there is an abnormal situation during the execution of the program output task. If there is no abnormal situation, After the program output task is completed, the initial state value of the program output task is updated to the final state value. If there is an abnormal situation, the abnormal situation will be fed back to the manual processing client, and then the manual processing will be accepted within the sixth preset time. Processing the feedback that the client has handled the abnormal situation, after receiving the feedback and after the program output task is completed, update the initial state value of the program output task to the final state value, wherein the sixth preset time is the execution time The time to handle exceptions when the program outputs tasks.
为了更清楚的说明在执行程序输出任务时出现异常情况的处理过程,以异常情况为在执行程序输出的时程序不能输出为例举例说明:In order to explain more clearly the processing process of abnormal situation when executing the program output task, the abnormal situation is that the program cannot output when the program output is executed as an example to illustrate:
请参见图2、图3、图4,若在执行程序输出的时候,程序不能输出,那么将程序不能输出的异常和需要人工协助的建议反馈给人工出来客户端,人工处理客户端将程序不能输出的异常和需要人工协助的建议存储到程序输出异常处理组的任务池中,根据情况,程序输出异常处理组将此类任务分配给成员1,并设置完成时间,成员1在接收到任务的时候开始倒计时,若在规定时间内完成任务则将处理情况反馈给程序输出任务的节点处,完成此节点并设置状态值T6=YES;若在规定时间内未完成任务,则成员1可以选择放弃处理,该异常任务在成员1的处理即处于中断状态,该中断的异常处理情况可以保存并返回到任务池中,程序输出异常处理组根据情况,再次分给成员1或者其他成员继续处理此异常,并设置完成时间,成员在接收到任务时开始倒计时,若在规定时间内完成任务,则将处理情况反馈给程序输出任务的节点处,完成此节点并设置状态值T6=YES,若是没有完成此异常处理情况则重复以上操作。Please refer to Figure 2, Figure 3, and Figure 4. If the program cannot be output when the program output is executed, the abnormality that the program cannot output and the suggestion that requires manual assistance will be fed back to the manual output client. The output exceptions and suggestions requiring human assistance are stored in the task pool of the program output exception handling group. According to the situation, the program output exception handling group assigns such tasks to member 1 and sets the completion time. Member 1 receives the task. When the countdown starts, if the task is completed within the specified time, the processing situation will be fed back to the node where the program outputs the task, complete the node and set the status value T6=YES; if the task is not completed within the specified time, member 1 can choose to give up Processing, the exception task is in an interrupted state when processed by member 1. The interrupted exception processing status can be saved and returned to the task pool. The program outputs the exception processing group. According to the situation, it is again assigned to member 1 or other members to continue processing the exception. , and set the completion time. The member starts the countdown when receiving the task. If the task is completed within the specified time, it will feed back the processing status to the node where the program outputs the task, complete the node and set the status value T6=YES, if not completed For this exception handling case, repeat the above operations.
同理,在执行程序输出任务时,如果出现其他异常情况,也可以按照上述方式处理,针对不同的问题可以分配给不同的成员进行处理,以便高效率的完成任务。Similarly, when executing the program output task, if there are other abnormal situations, it can also be handled in the above way, and different problems can be assigned to different members for processing, so as to complete the task efficiently.
本实施例的协同编程方法,首先判断了是否存在BOM表数据读入任务和/或创建拼版任务,并根据其存在状态设置BOM表数据读入任务和创建拼版任务的初始状态值,由此可以确定BOM表数据读入任务和创建拼版任务的执行情况;另外,在PCB设计文件读入任务完成后,通过同时对BOM表数据读入任务、创建拼版任务、创建MARK点任务进行操作,且需在BOM表数据读入任务、创建拼版任务、创建MARK点任务、元件库资料查询及贴装参数设置任务的初始状态值全部更新为最终状态值,再执行程序输出任务,这样可以提高任务完成的效率,由此可以降低企业的金钱成本和时间成本。The collaborative programming method of this embodiment firstly determines whether there is a BOM data read-in task and/or an imposition creation task, and sets the initial state values of the BOM data read-in task and the creation of the imposition task according to the existing state, so that it can be Determine the execution of the BOM data read-in task and the imposition creation task; in addition, after the PCB design file read-in task is completed, the BOM data read-in task, the imposition task creation, and the MARK point task are simultaneously operated, and the required The initial state values of the BOM data reading task, the imposition task creation, the MARK point creation task, the component library data query and the placement parameter setting task are all updated to the final state value, and then the program output task is executed, which can improve the completion of the task. Efficiency, thereby reducing the cost of money and time for the business.
本实施例通过对每个任务节点设置状态值,因此在执行任务的过程中,可以通过状态值记录每个任务的执行状态,可以在某个任务出现异常情况 且异常情况处理完成之后,可以继续执行任务,避免了当某个任务在执行时因异常情况的产生导致的需要重新再将所有任务执行一遍的情况产生,提高了参与人员的协同性。In this embodiment, a state value is set for each task node, so during the process of executing the task, the execution state of each task can be recorded by the state value, and after an abnormal situation occurs in a certain task and the processing of the abnormal situation is completed, the process can be continued. Executing tasks avoids the need to re-execute all tasks due to abnormal conditions when a task is being executed, and improves the coordination of participants.
本实施例在每个任务节点出现异常情况时,会将异常情况及时反馈至人工处理客户端,在人工处理客户端处理完成异常情况后,才继续执行对应的任务,且在处理异常情况时,人工处理客户端会指定对应的专业人员去解决异常情况,参与各个异常处理节点的人员只需要读取相关节点有异常的数据,无需读取整个设计文件的数据,本实施例能够控制处理异常的专业人员在参与具体协同编程项目中的数据接触权限,即专业人员所能了解和处理的数据信息非常有限,即使项目后期发生人员泄密,仍旧可以确保整个项目数据的安全性得到较高的保障。In this embodiment, when an abnormal situation occurs in each task node, the abnormal situation will be fed back to the manual processing client in time. After the manual processing client completes the processing of the abnormal situation, the corresponding task will continue to be executed, and when processing the abnormal situation, The manual processing client will designate corresponding professionals to solve the abnormal situation. The personnel involved in each abnormal processing node only need to read the abnormal data of the relevant node, and do not need to read the data of the entire design file. This embodiment can control the abnormal processing. The data access rights of professionals participating in specific collaborative programming projects, that is, the data information that professionals can understand and process is very limited. Even if personnel leaks occur later in the project, the security of the entire project data can still be guaranteed to a high degree.
实施例二 Embodiment 2
请参见图5,5是本发明实施例提供的一种协同编程装置的示意图。该协同编程装置,包括:Please refer to FIG. 5, which is a schematic diagram of a cooperative programming apparatus provided by an embodiment of the present invention. The co-programming device includes:
PCB任务处理模块,用于获取PCB设计文件读入任务,检测PCB设计文件读入任务的初始状态值,根据PCB设计文件读入任务的初始状态值,将PCB设计文件读入任务的初始状态值更新为最终状态值;The PCB task processing module is used to obtain the PCB design file read-in task, detect the initial state value of the PCB design file read-in task, read the initial state value of the task according to the PCB design file, and read the PCB design file into the initial state value of the task update to the final state value;
并行处理模块,用于分别获取BOM表数据读入任务、创建拼版任务、创建MARK点任务及元件库资料查询及贴装参数设置任务,并行检测BOM表数据读入任务、创建拼版任务及创建MARK点任务的初始状态值,根据BOM表数据读入任务、创建拼版任务及创建MARK点任务的初始状态值,将BOM表数据读入任务、创建拼版任务、创建MARK点任务、元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值;The parallel processing module is used to obtain BOM data read-in tasks, create imposition tasks, create MARK point tasks, component library data query and placement parameter setting tasks, and detect BOM data read-in tasks, create imposition tasks, and create MARK in parallel. The initial state value of the point task, read the task, create the imposition task and create the initial state value of the MARK point task according to the BOM table data, read the BOM table data into the task, create the imposition task, create the MARK point task, the component library data query and The initial state value of the placement parameter setting task is updated to the final state value;
程序输出处理模块,用于获取程序输出任务,检测程序输出任务的初始状态值,根据程序输出任务的初始状态值,将程序输出任务的初始状态值更新为最终状态值,输出程序;The program output processing module is used to obtain the program output task, detect the initial state value of the program output task, update the initial state value of the program output task to the final state value according to the initial state value of the program output task, and output the program;
其中,初始状态值表征未执行状态或者已执行状态,所述最终状态值表征已执行状态。The initial state value represents an unexecuted state or an executed state, and the final state value represents an executed state.
在本发明的一个实施例中,PCB任务处理模块可以具体用于判断协同编程任务中是否存在BOM表数据读入任务和/或创建拼版任务,若协同编程任务中存在BOM表数据读入任务,则维持BOM表数据读入任务的初始状态值,若协同编程任务中不存在BOM表数据读入任务,则更新BOM表数据读入任务的初始状态值表征已执行状态,若协同编程任务中存在创建拼版任务,则维持创建拼版任务的初始状态值,若协同编程任务中不存在创建拼版任务,则更新创建拼版任务的初始状态值表征已执行状态。In one embodiment of the present invention, the PCB task processing module can be specifically used to determine whether there is a BOM data read-in task and/or an imposition task in the collaborative programming task, if there is a BOM data read-in task in the collaborative programming task, Then maintain the initial state value of the BOM data read-in task. If there is no BOM data read-in task in the collaborative programming task, update the initial state value of the BOM data read-in task to represent the executed state. If an imposition task is created, the initial state value of the created imposition task is maintained. If there is no imposition created task in the collaborative programming task, the initial state value of the created imposition task is updated to represent the executed state.
进一步地,PCB任务处理模块更具体用于检测PCB设计文件读入任务的初始状态值,判断PCB设计文件读入任务的初始状态值表征已执行状态还是未执行状态,若PCB设计文件读入任务的初始状态值表征已执行状态,则PCB设计文件读入任务的初始状态值即为最终状态值,若PCB设计文件读入任务的初始状态值表征未执行状态,则执行PCB设计文件读入任务,在PCB设计文件读入任务执行完成后,将PCB设计文件读入任务的初始状态值更新为最终状态值。Further, the PCB task processing module is more specifically used to detect the initial state value of the PCB design file reading task, and determine that the initial state value of the PCB design file reading task represents the executed state or the unexecuted state. If the PCB design file reading task If the initial state value of the PCB design file read-in task represents the executed state, the initial state value of the PCB design file read-in task is the final state value. If the initial state value of the PCB design file read-in task represents the unexecuted state, the PCB design file read-in task is executed. , after the execution of the PCB design file read-in task is completed, the initial state value of the PCB design file read-in task is updated to the final state value.
进一步地,执行PCB设计文件读入任务,在PCB设计文件读入任务执行完成后,将PCB设计文件读入的初始状态值更新为最终状态值,包括:执行PCB设计文件读入任务,在PCB设计文件读入任务的执行过程中判断是否存在异常情况,若不存在异常情况,则在PCB设计文件读入任务完成后将PCB设计文件读入的初始状态值更新为最终状态值,若存在异常情况,则将该异常情况向人工处理客户端进行反馈,之后在第一预设时间内接受人工处理客户端已处理该异常情况的反馈,在接收到该反馈后,且在PCB设计文件读入任务完成后,将PCB设计文件读入任务的初始状态值更新为最终状态值。Further, executing the task of reading in the PCB design file, and after the task of reading in the PCB design file is completed, updating the initial state value read in the PCB design file to the final state value, including: executing the task of reading in the PCB design file, on the PCB During the execution of the design file read-in task, it is judged whether there is an abnormal situation. If there is no abnormal situation, after the PCB design file read-in task is completed, the initial state value read in the PCB design file is updated to the final state value. If there is an abnormality If the abnormal situation is detected, the abnormal situation will be fed back to the manual processing client, and then the feedback that the abnormal situation has been processed by the manual processing client will be accepted within the first preset time. After receiving the feedback, read in the PCB design file. After the task is completed, the initial state value of the PCB design file read into the task is updated to the final state value.
在本发明的一个实施例中,并行处理模块可以具体用于判断BOM表数据读入任务、创建拼版任务及创建MARK点任务的初始状态值;若BOM表数据读入任务的初始状态值表征已执行状态,则检测元件库资料查询及贴装参数设置任务的初始状态值,并根据元件库资料查询及贴装参数设置任务的初始状态值,将元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值,若BOM表数据读入任务的初始状态值表征未执行状态,则执行BOM表数据读入任务,在BOM表数据读入任务执行完成后,将BOM表数据读入任务的初始状态值更新为最终状态值,之后检测元件库资料查询及贴装参数设置任务的初始状态值,并根据元件库资料查询及贴装参数设置任务的初始状态值,将元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值;若创建拼版任务的初始状态值表征已执行状态,则创建拼版任务的初始状态值即为最终状态值,若创建拼版任务的初始状态值表征未执行状态,则执行创建拼版任务,在创建拼版任务执行完成后,将创建拼版任务的初始状态值更新为最终状态值;若创建MARK点任务的初始状态值表征已执行状态,则创建MARK点任务的初始状态值即为最终状态值,若创建MARK点任务的初始状态值表征未执行状态,则执行创建MARK点任务,在创建MARK点任务执行完成后,将创建MARK点任务的初始状态值更新为最终状态值。In one embodiment of the present invention, the parallel processing module can be specifically used to judge the initial state value of the BOM data read-in task, the imposition task and the MARK point task; if the initial state value of the BOM data read-in task indicates that the In the execution state, the initial state value of the component library data query and the placement parameter setting task is detected, and the initial state value of the component library data query and the placement parameter setting task is based on the component library data query and the initial state value of the placement parameter setting task. The state value is updated to the final state value. If the initial state value of the BOM data read task represents the unexecuted state, the BOM data read task will be executed. After the BOM data read task is executed, the BOM data will be read in. The initial state value of the task is updated to the final state value, and then the initial state value of the task is checked for component library data query and placement parameter setting, and the initial state value of the task is set according to the component library data query and placement parameters, and the component library data is queried. and the initial state value of the placement parameter setting task is updated to the final state value; if the initial state value of the imposition task represents the executed state, the initial state value of the imposition task is the final state value, if the initial state of the imposition task is created If the value represents the unexecuted state, execute the task of creating the imposition. After the task of creating the imposition is completed, update the initial state value of the task of creating the imposition to the final state value; if the initial state value of the task of creating MARK points represents the state of being executed, create The initial state value of the MARK point task is the final state value. If the initial state value of the MARK point task represents the unexecuted state, the MARK point task will be executed. After the MARK point task is executed, the initial MARK point task will be created. The state value is updated to the final state value.
进一步地,执行BOM表数据读入任务,在BOM表数据读入任务执行完成后,将BOM表数据读入任务的初始状态值更新为最终状态值,包括:执 行BOM表数据读入任务,在BOM表数据读入任务的执行过程中判断是否存在异常情况,若不存在异常情况,则将BOM表数据读入任务的初始状态值更新为最终状态值,若存在异常情况,则将该异常情况向人工处理客户端进行反馈,之后在第二预设时间内接受人工处理客户端已处理该异常情况的反馈,在接收到该反馈后,将BOM表数据读入任务的初始状态值更新为最终状态值。Further, perform BOM table data read-in task, after BOM table data read-in task execution is completed, the initial state value of BOM table data read-in task is updated to final state value, including: Execute BOM table data read-in task, in During the execution of the BOM data read-in task, it is judged whether there is an abnormal situation. If there is no abnormal situation, the initial state value of the BOM data read-in task is updated to the final state value. If there is an abnormal situation, the abnormal situation will be Give feedback to the manual processing client, and then accept the feedback that the manual processing client has handled the abnormal situation within the second preset time. After receiving the feedback, the initial state value of the BOM table data read-in task is updated to final Status value.
进一步地,执行创建拼版任务,在创建拼版任务执行完成后,将创建拼版任务的初始状态值更新为最终状态值,包括:执行创建拼版任务,在创建拼版任务的执行过程中判断是否存在异常情况,若不存在异常情况,则将创建拼版任务的初始状态值更新为最终状态值,若存在异常情况,则将该异常情况向人工处理客户端进行反馈,之后在第三预设时间内接受人工处理客户端已处理该异常情况的反馈,在接收到该反馈后,将创建拼版任务的初始状态值更新为最终状态值。Further, performing the task of creating the imposition, and after the task of creating the imposition is completed, updating the initial state value of the task of creating the imposition to the final state value, including: executing the task of creating the imposition, and judging whether there is an abnormal situation during the execution of the task of creating the imposition , if there is no abnormal situation, the initial state value of the imposition task is updated to the final state value, if there is an abnormal situation, the abnormal situation is fed back to the manual processing client, and then the manual processing is accepted within the third preset time. Handle the feedback that the client has handled the exception, and after receiving the feedback, update the initial state value of the create imposition task to the final state value.
进一步地,执行创建MARK点任务,在创建MARK点任务执行完成后,将创建MARK点任务的初始状态值更新为最终状态值,包括:执行创建MARK点任务,在创建MARK点任务的执行过程中判断是否存在异常情况,若不存在异常情况,则将创建MARK点任务的初始状态值更新为最终状态值,若存在异常情况,则将该异常情况向人工处理客户端进行反馈,之后在第四预设时间内接受人工处理客户端已处理该异常情况的反馈,在接收到该反馈后,将创建MARK点任务的初始状态值更新为最终状态值。Further, execute the task of creating a MARK point, and after the task of creating a MARK point is completed, update the initial state value of the task of creating a MARK point to a final state value, including: executing the task of creating a MARK point, during the execution of the task of creating a MARK point Determine whether there is an abnormal situation. If there is no abnormal situation, update the initial state value of the MARK point task to the final state value. If there is an abnormal situation, then feed back the abnormal situation to the manual processing client. Accept the feedback that the abnormal situation has been handled by the manual processing client within a preset time, and after receiving the feedback, update the initial state value of the task of creating MARK points to the final state value.
进一步地,根据元件库资料查询及贴装参数设置任务的初始状态值,将元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值,包括:检测元件库资料查询及贴装参数设置任务的初始状态值,判断元件库资料查询及贴装参数设置任务的初始状态值表征已执行状态还是未执行状态,若元件库资料查询及贴装参数设置任务的初始状态值表征已执行状态,则元件库资料查询及贴装参数设置任务的初始状态值即为最终状态值,若元件库资料查询及贴装参数设置任务的初始状态值表征未执行状态,则执行元件库资料查询及贴装参数设置任务,在元件库资料查询及贴装参数设置任务执行完成后,将元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值。Further, according to the initial state value of the component library data query and the placement parameter setting task, the initial state value of the component library data query and the placement parameter setting task is updated to the final state value, including: Detecting component library data query and placement The initial state value of the parameter setting task is used to judge the initial state value of the component library data query and placement parameter setting task to indicate whether it has been executed or not. state, the initial state value of the component library data query and placement parameter setting task is the final state value. If the initial state value of the component library data query and placement parameter setting task represents the unexecuted state, the component library data query and For the placement parameter setting task, after the component library data query and placement parameter setting tasks are completed, the initial state value of the component library data query and placement parameter setting task is updated to the final state value.
进一步地,执行元件库资料查询及贴装参数设置任务,在元件库资料查询及贴装参数设置任务执行完成后,将元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值,包括:执行元件库资料查询及贴装参数设置任务,在元件库资料查询及贴装参数设置任务的执行过程中判断是否存在异常情况,若不存在异常情况,则在元件库资料查询及贴装参数 设置任务完成后将元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值,若存在异常情况,则将该异常情况向人工处理客户端进行反馈,之后在第五预设时间内接受人工处理客户端已处理该异常情况的反馈,在接收到该反馈后,且在元件库资料查询及贴装参数设置任务完成后,将元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值。Further, perform the task of querying the data of the component library and setting the mounting parameters, and after the task of querying the data of the component library and setting the mounting parameters is completed, update the initial state value of the task of querying the data of the component library and setting the mounting parameters to the final state value. , including: performing component library data query and placement parameter setting tasks, judging whether there is an abnormal situation during the execution of the component library data query and placement parameter setting tasks, if there is no abnormal situation, then in the component library data query and paste After the installation parameter setting task is completed, update the initial state value of the component library data query and the installation parameter setting task to the final state value. Accept the feedback that the abnormal situation has been handled manually by the client within the set time. After receiving the feedback, and after the component library data query and placement parameter setting tasks are completed, the component library data query and placement parameter setting tasks are completed. The initial state value is updated to the final state value.
在本发明的一个实施例中,程序输出处理模块可以具体用于在元件库资料查询及贴装参数设置任务、创建拼版任务和创建MARK点任务的初始状态值均更新为最终状态值之后,检测程序输出任务的初始状态值,判断程序输出任务的初始状态值表征已执行状态还是未执行状态,若程序输出任务的初始状态值表征已执行状态,则程序输出任务的初始状态值即为最终状态值,若程序输出任务的初始状态值表征未执行状态,则执行所述程序输出任务,在程序输出任务执行完成后,将程序输出任务的初始状态值更新为最终状态值。In an embodiment of the present invention, the program output processing module may be specifically configured to detect the detection after the initial state value of the component library data query and the placement parameter setting task, the imposition task and the MARK point creation task are all updated to the final state value. The initial state value of the program output task, to determine whether the initial state value of the program output task represents the executed state or the unexecuted state. If the initial state value of the program output task represents the executed state, the initial state value of the program output task is the final state. If the initial state value of the program output task represents an unexecuted state, the program output task is executed, and after the program output task is executed, the initial state value of the program output task is updated to the final state value.
进一步地,执行程序输出任务,在程序输出任务执行完成后,将程序输出任务的初始状态值更新为最终状态值,包括:执行程序输出任务,在程序输出任务的执行过程中判断是否存在异常情况,若不存在异常情况,则将程序输出任务的初始状态值更新为最终状态值,若存在异常情况,则将该异常情况向人工处理客户端进行反馈,之后在第六预设时间内接受人工处理客户端已处理该异常情况的反馈,在接收到该反馈后,将程序输出任务的初始状态值更新为最终状态值。Further, executing the program output task, after the execution of the program output task is completed, updating the initial state value of the program output task to the final state value, including: executing the program output task, and judging whether there is an abnormal situation during the execution of the program output task. , if there is no abnormal situation, the initial state value of the program output task is updated to the final state value, if there is an abnormal situation, the abnormal situation is fed back to the manual processing client, and then the manual processing is accepted within the sixth preset time. Handle the feedback that the client has handled the exception, and after receiving the feedback, update the initial state value of the program output task to the final state value.
本发明实施例提供的协同编程装置,可以执行上述方法实施例,其实现原理和技术效果类似,在此不再赘述。The collaborative programming apparatus provided by the embodiments of the present invention can execute the above method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
实施例三Embodiment 3
请参见图2、图3、图4,本发明实施例还提供一种协同编程系统,该协同编程系统包括人工处理客户端和实施例二所述的协同编程装置,其中,人工处理客户端用于向协同编程装置发送协同编程任务,另外,人工处理客户端还用于在PCB设计文件读入任务、BOM表数据读入任务、创建拼版任务、创建MARK点任务、元件库资料查询及贴装参数设置任务及程序输出任务中的至少一项任务的执行过程中出现异常情况时,在设定次数及每次对应的设定时间条件下分配至少一个指定人员处理该异常情况,在处理完成该异常情况后,人工处理客户端向SMT协同编程装置进行反馈,设定次数为解决异常情况所需要的次数,设定时间是每次在处理异常情况时所需要的时间,人工处理客户端可以根据处理每个异常情况的难以程度对设定次数和设定时间进行设定。Referring to FIG. 2, FIG. 3, and FIG. 4, an embodiment of the present invention further provides a collaborative programming system, where the collaborative programming system includes a manual processing client and the collaborative programming apparatus described in Embodiment 2, wherein the manual processing client uses It is used to send collaborative programming tasks to the collaborative programming device. In addition, the manual processing client is also used for the task of reading PCB design files, BOM data reading tasks, creating imposition tasks, creating MARK point tasks, component library data query and placement. When an abnormal situation occurs during the execution of at least one of the parameter setting task and the program output task, assign at least one designated person to handle the abnormal situation under the conditions of the set number of times and the set time corresponding to each time. After the abnormal situation, the manual processing client will give feedback to the SMT collaborative programming device. The set number of times is the number of times required to solve the abnormal situation, and the set time is the time required for each abnormal situation. The manual processing client can be based on Set the number of times and the set time for how difficult it is to handle each abnormal situation.
具体地,人工处理客户端可以包括发起任务组、PCB数据异常处理组、 BOM数据异常处理组、拼版异常处理组、创建MARK点异常处理组、元件库维护及贴装参数设置异常处理组及程序输出异常处理组,发起任务组用于向协同编程装置发起任务,协同编程装置为一种SMT自动化处理中心,协同编程装置根据情况(例如:此协同编程装置正在接受其他的项目,可能就要人工处理客户端重新分派给其他的协同编程装置)选择是否要接受人工客户端发起的任务,当协同编程装置接受任务,协同编程装置即开始一项独立的SMT自动化编程;PCB数据异常处理组用于处理在执行PCB设计文件读入任务的过程中出现的异常情况;BOM数据异常处理组用于处理在执行BOM表数据读入任务的过程中出现的异常情况;拼版异常处理组用于处理在执行创建拼版任务的过程中出现的异常情况;创建MARK点异常处理组用于处理在执行创建MARK点任务的过程中出现的异常情况;元件库维护及贴装参数设置异常处理组用于处理在执行元件库资料查询及贴装参数设置任务的过程中出现的异常情况;程序输出异常处理组用于处理在执行程序输出任务的过程中出现的异常情况。Specifically, the manual processing client may include an initiating task group, a PCB data exception processing group, a BOM data exception processing group, an imposition exception processing group, a mark point exception processing group, a component library maintenance and placement parameter setting exception processing group and programs The exception handling group is output, and the initiating task group is used to initiate tasks to the co-programming device. The co-programming device is a kind of SMT automatic processing center. The processing client is reassigned to other co-programming devices) to choose whether to accept the task initiated by the manual client. When the co-programming device accepts the task, the co-programming device starts an independent SMT automatic programming; the PCB data exception handling group is used for Handle exceptions that occur during the execution of the PCB design file read-in task; BOM data exception handling group is used to handle exceptions that occur during the execution of the BOM data read-in task; the imposition exception handling group is used to handle exceptions during execution Exceptions in the process of creating imposition tasks; creating MARK point exception handling groups to handle exceptions that occur during the execution of MARK point creation tasks; component library maintenance and placement parameter settings exception handling groups are used to handle exceptions during execution Abnormal situation in the process of component library data query and placement parameter setting task; the program output exception handling group is used to deal with the abnormal situation in the process of executing the program output task.
进一步地,PCB数据异常处理组、BOM数据异常处理组、拼版异常处理组、创建MARK点异常处理组、元件库维护及贴装参数设置异常处理组及程序输出异常处理组均包括多个任务池,每个异常处理组可以根据情况将异常情况分配给指定人员进行处理,其具体处理过程请参考实施例一,再此不再赘述。Further, the PCB data exception handling group, BOM data exception handling group, imposition exception handling group, MARK point exception handling group, component library maintenance and placement parameter setting exception handling group and program output exception handling group all include multiple task pools , each exception processing group can assign the abnormal situation to a designated person for processing according to the situation. For the specific processing process, please refer to Embodiment 1, which will not be repeated here.
本实施例在每个任务节点出现异常情况时,会将异常情况及时反馈至人工处理客户端,在人工处理客户端处理完成异常情况后,才继续执行对应的任务,且在处理异常情况时,人工处理客户端会指定人员去解决异常情况,参与各个节点的人员只需要读取相关节点有异常的数据,无需读取整个设计文件的数据,这样整个项目数据的安全性得到了提高。In this embodiment, when an abnormal situation occurs in each task node, the abnormal situation will be fed back to the manual processing client in time. After the manual processing client completes the processing of the abnormal situation, the corresponding task will continue to be executed, and when processing the abnormal situation, The manual processing client will designate personnel to solve the abnormal situation. The personnel involved in each node only need to read the abnormal data of the relevant nodes, and do not need to read the data of the entire design file, so that the security of the entire project data has been improved.
实施例四Embodiment 4
请参见图6,图6是本发明实施例提供的一种电子设备的结构示意图。该电子设备1100,包括:处理器1101、通信接口1102、存储器1103和通信总线1104,其中,处理器1101,通信接口1102,存储器1103通过通信总线1104完成相互间的通信;Please refer to FIG. 6 , which is a schematic structural diagram of an electronic device according to an embodiment of the present invention. The electronic device 1100 includes: a processor 1101, a communication interface 1102, a memory 1103, and a communication bus 1104, wherein the processor 1101, the communication interface 1102, and the memory 1103 communicate with each other through the communication bus 1104;
存储器1103,用于存储计算机程序;memory 1103 for storing computer programs;
处理器1101,用于执行计算机程序时,实现上述方法步骤。The processor 1101 is configured to implement the above method steps when executing the computer program.
处理器1101执行计算机程序时实现如下步骤:When the processor 1101 executes the computer program, the following steps are implemented:
步骤1、获取协同编程任务,协同编程任务至少包括PCB设计文件读入任务、创建MARK点任务、元件库资料查询及贴装参数设置任务和程序输出任务;Step 1. Obtain collaborative programming tasks. The collaborative programming tasks include at least the task of reading PCB design files, creating MARK points, querying component library data, setting parameters for placement, and outputting programs;
步骤2、检测PCB设计文件读入任务的初始状态值,根据PCB设计文件读入任务的初始状态值,将PCB设计文件读入任务的初始状态值更新为最终状态值; Step 2. Detect the initial state value of the PCB design file read-in task, update the initial state value of the PCB design file read-in task to the final state value according to the initial state value of the PCB design file read-in task;
步骤3、并行检测BOM表数据读入任务、创建拼版任务及创建MARK点任务的初始状态值,根据BOM表数据读入任务、创建拼版任务及创建MARK点任务的初始状态值,将BOM表数据读入任务、创建拼版任务、创建MARK点任务、元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值;Step 3. Detect the initial state values of the BOM data read-in task, the imposition task and the MARK point task in parallel, and the initial state values of the BOM data read-in task, the imposition task and the MARK point task, and the BOM data The initial state value of reading task, creating imposition task, creating MARK point task, component library data query and placement parameter setting task is updated to the final state value;
步骤4、检测程序输出任务的初始状态值,根据程序输出任务的初始状态值,将程序输出任务的初始状态值更新为最终状态值,输出程序;Step 4. Detect the initial state value of the program output task, update the initial state value of the program output task to the final state value according to the initial state value of the program output task, and output the program;
其中,初始状态值表征未执行状态或者已执行状态,最终状态值表征已执行状态。The initial state value represents the unexecuted state or the executed state, and the final state value represents the executed state.
本发明实施例提供的电子设备,可以执行上述方法实施例,其实现原理和技术效果类似,在此不再赘述。The electronic device provided by the embodiments of the present invention can execute the above method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
实施例四Embodiment 4
本发明的又一个实施例提供了一种计算机可读存储介质,其上存储有计算机程序,上述计算机程序被处理器执行时实现以下步骤:Another embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
步骤1、获取协同编程任务,协同编程任务至少包括PCB设计文件读入任务、创建MARK点任务、元件库资料查询及贴装参数设置任务和程序输出任务;Step 1. Obtain collaborative programming tasks. The collaborative programming tasks include at least the task of reading PCB design files, creating MARK points, querying component library data, setting parameters for placement, and outputting programs;
步骤2、检测PCB设计文件读入任务的初始状态值,根据PCB设计文件读入任务的初始状态值,将PCB设计文件读入任务的初始状态值更新为最终状态值; Step 2. Detect the initial state value of the PCB design file read-in task, update the initial state value of the PCB design file read-in task to the final state value according to the initial state value of the PCB design file read-in task;
步骤3、并行检测BOM表数据读入任务、创建拼版任务及创建MARK点任务的初始状态值,根据BOM表数据读入任务、创建拼版任务及创建MARK点任务的初始状态值,将BOM表数据读入任务、创建拼版任务、创建MARK点任务、元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值;Step 3. Detect the initial state values of the BOM data read-in task, the imposition task and the MARK point task in parallel, and the initial state values of the BOM data read-in task, the imposition task and the MARK point task, and the BOM data The initial state value of reading task, creating imposition task, creating MARK point task, component library data query and placement parameter setting task is updated to the final state value;
步骤4、检测程序输出任务的初始状态值,根据程序输出任务的初始状态值,将程序输出任务的初始状态值更新为最终状态值,输出程序;Step 4. Detect the initial state value of the program output task, update the initial state value of the program output task to the final state value according to the initial state value of the program output task, and output the program;
其中,初始状态值表征未执行状态或者已执行状态,最终状态值表征已执行状态。The initial state value represents the unexecuted state or the executed state, and the final state value represents the executed state.
本发明实施例提供的计算机可读存储介质,可以执行上述方法实施例,其实现原理和技术效果类似,在此不再赘述。The computer-readable storage medium provided by the embodiments of the present invention can execute the above-mentioned method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
本领域技术人员应明白,本申请的实施例可提供为方法、装置(设备)、 或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式,这里将它们都统称为“模块”或“系统”。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可读存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机程序存储/分布在合适的介质中,与其它硬件一起提供或作为硬件的一部分,也可以采用其他分布形式,如通过Internet或其它有线或无线电信系统。It should be understood by those skilled in the art that the embodiments of the present application may be provided as a method, an apparatus (apparatus), or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects, all of which are collectively referred to herein as a "module" or "system." Furthermore, the present application may take the form of a computer program product embodied on one or more computer-readable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein. The computer program is stored/distributed in a suitable medium, provided with or as part of other hardware, or may take other forms of distribution, such as over the Internet or other wired or wireless telecommunication systems.
在本发明的描述中,需要理解的是,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本发明的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。In the description of the present invention, it should be understood that the terms "first" and "second" are only used for description purposes, and cannot be interpreted as indicating or implying relative importance or the number of indicated technical features. Thus, a feature defined as "first" or "second" may expressly or implicitly include one or more of that feature. In the description of the present invention, "plurality" means two or more, unless otherwise expressly and specifically defined.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。此外,本领域的技术人员可以将本说明书中描述的不同实施例或示例进行接合和组合。In the description of this specification, description with reference to the terms "one embodiment," "some embodiments," "example," "specific example," or "some examples", etc., mean specific features described in connection with the embodiment or example , structure, material or feature is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, those skilled in the art may combine and combine the different embodiments or examples described in this specification.
以上内容是结合具体的优选实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。The above content is a further detailed description of the present invention in combination with specific preferred embodiments, and it cannot be considered that the specific implementation of the present invention is limited to these descriptions. For those of ordinary skill in the technical field of the present invention, without departing from the concept of the present invention, some simple deductions or substitutions can be made, which should be regarded as belonging to the protection scope of the present invention.

Claims (16)

  1. 一种协同编程方法,其特征在于,包括:A collaborative programming method, comprising:
    获取协同编程任务,所述协同编程任务至少包括PCB设计文件读入任务、创建MARK点任务、元件库资料查询及贴装参数设置任务和程序输出任务;Obtaining a collaborative programming task, the collaborative programming task at least includes a PCB design file read-in task, a MARK point creation task, a component library data query, a placement parameter setting task, and a program output task;
    检测所述PCB设计文件读入任务的初始状态值,根据所述PCB设计文件读入任务的初始状态值,将所述PCB设计文件读入任务的初始状态值更新为最终状态值;Detecting the initial state value of the read-in task of the PCB design file, and updating the initial state value of the read-in task of the PCB design file to a final state value according to the initial state value of the read-in task of the PCB design file;
    并行检测BOM表数据读入任务、创建拼版任务及所述创建MARK点任务的初始状态值,根据所述BOM表数据读入任务、所述创建拼版任务及所述创建MARK点任务的初始状态值,将所述BOM表数据读入任务、所述创建拼版任务、所述创建MARK点任务、所述元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值;Parallel detection of the initial state value of the BOM table data read-in task, the creation of the imposition task and the described creation of the MARK point task, according to the initial state value of the BOM table data read-in task, the described creation of the imposition task and the described creation of the MARK point task , update the initial state value of the BOM table data read-in task, the creation imposition task, the creation MARK point task, the component library data query and the placement parameter setting task to the final state value;
    检测所述程序输出任务的初始状态值,根据所述程序输出任务的初始状态值,将所述程序输出任务的初始状态值更新为最终状态值,输出程序;Detecting the initial state value of the program output task, updating the initial state value of the program output task to a final state value according to the initial state value of the program output task, and outputting the program;
    其中,所述初始状态值表征未执行状态或者已执行状态,所述最终状态值表征已执行状态。The initial state value represents an unexecuted state or an executed state, and the final state value represents an executed state.
  2. 根据权利要求1所述的协同编程方法,其特征在于,在检测PCB设计文件读入任务的初始状态值,根据所述PCB设计文件读入任务的初始状态值,将所述PCB设计文件读入任务的初始状态值更新为最终状态值之前,还包括:The collaborative programming method according to claim 1, wherein, when detecting the initial state value of the PCB design file read-in task, the initial state value of the read-in task according to the PCB design file is read, and the PCB design file is read into Before the initial state value of the task is updated to the final state value, it also includes:
    判断所述协同编程任务中是否存在所述BOM表数据读入任务和/或所述创建拼版任务,若所述协同编程任务中存在所述BOM表数据读入任务,则维持所述BOM表数据读入任务的初始状态值,若所述协同编程任务中不存在所述BOM表数据读入任务,则更新所述BOM表数据读入任务的初始状态值表征已执行状态,若所述协同编程任务中存在所述创建拼版任务,则维持所述创建拼版任务的初始状态值,若所述协同编程任务中不存在所述创建拼版任务,则更新所述创建拼版任务的初始状态值表征已执行状态。Determine whether there is the BOM data read-in task and/or the create imposition task in the collaborative programming task, if the BOM data read-in task exists in the collaborative programming task, then maintain the BOM data The initial state value of the read-in task, if the BOM table data read-in task does not exist in the co-programming task, then update the initial state value of the BOM table data read-in task to represent the executed state, if the cooperative programming task If the task of creating imposition exists in the task, the initial state value of the task of creating imposition is maintained. If the task of creating imposition does not exist in the collaborative programming task, the initial state value of the task of creating imposition is updated to indicate that the task has been executed. state.
  3. 根据权利要求1或2所述的协同编程方法,其特征在于,检测所述PCB设计文件读入任务的初始状态值,根据所述PCB设计文件读入任务的初始状态值,将所述PCB设计文件读入任务的初始状态值更新为最终状态值,包括:The collaborative programming method according to claim 1 or 2, wherein the initial state value of the read-in task of the PCB design file is detected, the initial state value of the read-in task according to the PCB design file is read, and the PCB design file is read in the initial state value of the task. The initial state value of the file read task is updated to the final state value, including:
    检测所述PCB设计文件读入任务的初始状态值,判断所述PCB设计文件读入任务的初始状态值表征已执行状态还是未执行状态,若所述PCB设计文件读入任务的初始状态值表征已执行状态,则所述PCB设计文件读入任务的初始状态值即为最终状态值,若所述PCB设计文件读入任务的初始状态值表征未执行状态,则执行所述PCB设计文件读入任务,在所述PCB设计文件读入任务执行完成后,将所述PCB设计文件读入任务的初始状态值更新为最终状态值。Detect the initial state value of the PCB design file read-in task, and determine whether the initial state value of the PCB design file read-in task represents an executed state or an unexecuted state. If the initial state value of the PCB design file read-in task represents Executed state, then the initial state value of the PCB design file read-in task is the final state value, if the initial state value of the PCB design file read-in task represents the unexecuted state, then execute the PCB design file read-in The task is to update the initial state value of the PCB design file reading task to a final state value after the execution of the PCB design file reading task is completed.
  4. 根据权利要求3所述的协同编程方法,其特征在于,执行所述PCB设计文件读入任务,在所述PCB设计文件读入任务执行完成后,将所述PCB设计文件读入的初始状态值更新为最终状态值,包括:The collaborative programming method according to claim 3, wherein the PCB design file read-in task is executed, and after the PCB design file read-in task is executed, an initial state value of the PCB design file is read in Update to final state values, including:
    执行所述PCB设计文件读入任务,在所述PCB设计文件读入任务的执行过程中判断是否存在异常情况,若不存在异常情况,则在所述PCB设计文件读入任务完成后将所述PCB设计文件读入的初始状态值更新为最终状态值,若存在异常情况,则将该异常情况向人工处理客户端进行反馈,之后在第一预设时间内接受所述人工处理客户端已处理该异常情况的反馈,在接收到该反馈后,且在所述PCB设计文件读入任务完成后,将所述PCB设计文件读入任务的初始状态值更新为最终状态值。Execute the task of reading in the PCB design file, and determine whether there is an abnormal situation during the execution of the task of reading the PCB design file. If there is no abnormal situation, then after the task of reading in the PCB design file is completed, the The initial state value read in the PCB design file is updated to the final state value. If there is an abnormal situation, the abnormal situation will be fed back to the manual processing client, and then the manual processing client will accept the processing within the first preset time. For the feedback of the abnormal situation, after receiving the feedback and after the PCB design file reading task is completed, the initial state value of the PCB design file reading task is updated to the final state value.
  5. 根据权利要求1或2所述的协同编程方法,其特征在于,检测BOM表数据读入任务、创建拼版任务及所述创建MARK点任务的初始状态值,根据所述BOM表数据读入任务、所述创建拼版任务及所述创建MARK点任务的初始状态值,将所述BOM表数据读入任务、所述创建拼版任务、所述创建MARK点任务、所述元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值,包括:The collaborative programming method according to claim 1 or 2, characterized in that, detecting the initial state value of the BOM data read-in task, the creation of the imposition task and the creation of the MARK point task, and the read-in task according to the BOM data, The initial state value of the task of creating the imposition and the task of creating the MARK point, reading the BOM data into the task, the task of creating the imposition, the task of creating the MARK point, the query of the component library data and the placement parameters The initial state value of the set task is updated to the final state value, including:
    判断所述BOM表数据读入任务、所述创建拼版任务及所述创建MARK点任务的初始状态值;Judging the initial state value of the BOM data read-in task, the creation imposition task and the creation MARK point task;
    若所述BOM表数据读入任务的初始状态值表征已执行状态,则检测所述元件库资料查询及贴装参数设置任务的初始状态值,并根据所述元件库资料查询及贴装参数设置任务的初始状态值,将所述元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值,若所述BOM表数据读入任务的初始状态值表征未执行状态,则执行所述BOM表数据读入任务,在所述BOM表数据读入任务执行完成后,将所述BOM表数据读入任务的初始状态值更新为最终状态值,之后检测所述元件库资料查询及贴装参数设置任务的初始状态值,并根据所述元件库资料查询及贴装参数设置任务的初始状态值,将所述元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值;If the initial state value of the BOM data read-in task represents the executed state, the initial state value of the component library data query and placement parameter setting task is detected, and according to the component library data query and placement parameter setting The initial state value of the task is to update the initial state value of the component library data query and placement parameter setting task to the final state value. If the initial state value of the BOM table data read-in task represents the unexecuted state, execute all the tasks. Describe the BOM table data read-in task, after the described BOM table data read-in task execution is completed, the initial state value of the described BOM table data read-in task is updated to the final state value, then detect the component library data query and paste The initial state value of the loading parameter setting task, and according to the component library data query and the initial state value of the mounting parameter setting task, the initial state value of the component library data query and the mounting parameter setting task is updated to the final state value ;
    若所述创建拼版任务的初始状态值表征已执行状态,则所述创建拼版任务的初始状态值即为最终状态值,若所述创建拼版任务的初始状态值表征未执行状态,则执行所述创建拼版任务,在所述创建拼版任务执行完成后,将所述创建拼版任务的初始状态值更新为最终状态值;If the initial state value of the imposition creation task represents the executed state, then the initial state value of the imposition creation task is the final state value; if the initial state value of the imposition creation task represents the unexecuted state, the execution of the Create an imposition task, and after the execution of the imposition creation task is completed, update the initial state value of the imposition creation task to a final state value;
    若所述创建MARK点任务的初始状态值表征已执行状态,则所述创建MARK点任务的初始状态值即为最终状态值,若所述创建MARK点任务的初始状态值表征未执行状态,则执行所述创建MARK点任务,在所述创建 MARK点任务执行完成后,将所述创建MARK点任务的初始状态值更新为最终状态值。If the initial state value of the MARK point creation task represents the executed state, then the initial state value of the MARK point creation task is the final state value; if the initial state value of the MARK point creation task represents the unexecuted state, then The task of creating a MARK point is executed, and after the task of creating a MARK point is completed, the initial state value of the task of creating a MARK point is updated to a final state value.
  6. 根据权利要求5所述的协同编程方法,其特征在于,执行所述BOM表数据读入任务,在所述BOM表数据读入任务执行完成后,将所述BOM表数据读入任务的初始状态值更新为最终状态值,包括:The collaborative programming method according to claim 5, wherein the BOM data read-in task is executed, and after the BOM data read-in task is executed, the BOM data is read into the initial state of the task Values are updated to final state values, including:
    执行所述BOM表数据读入任务,在所述BOM表数据读入任务的执行过程中判断是否存在异常情况,若不存在异常情况,则将所述BOM表数据读入任务的初始状态值更新为最终状态值,若存在异常情况,则将该异常情况向人工处理客户端进行反馈,之后在第二预设时间内接受所述人工处理客户端已处理该异常情况的反馈,在接收到该反馈后,将所述BOM表数据读入任务的初始状态值更新为最终状态值。Execute the BOM data read-in task, judge whether there is an abnormal situation in the execution process of the BOM data read-in task, if there is no abnormal situation, then the BOM data read-in task The initial state value update of the task It is the final state value. If there is an abnormal situation, the abnormal situation will be fed back to the manual processing client, and then the manual processing client will accept the feedback that the abnormal situation has been processed within the second preset time. After the feedback, the initial state value of the BOM data read-in task is updated to the final state value.
  7. 根据权利要求5所述的协同编程方法,其特征在于,执行所述创建拼版任务,在所述创建拼版任务执行完成后,将所述创建拼版任务的初始状态值更新为最终状态值,包括:The collaborative programming method according to claim 5, wherein, executing the imposition creation task, and after the execution of the imposition creation task is completed, updating the initial state value of the imposition creation task to a final state value, comprising:
    执行所述创建拼版任务,在所述创建拼版任务的执行过程中判断是否存在异常情况,若不存在异常情况,则将所述创建拼版任务的初始状态值更新为最终状态值,若存在异常情况,则将该异常情况向人工处理客户端进行反馈,之后在第三预设时间内接受所述人工处理客户端已处理该异常情况的反馈,在接收到该反馈后,将所述创建拼版任务的初始状态值更新为最终状态值。Execute the task of creating the imposition, and determine whether there is an abnormal situation during the execution of the task of creating the imposition. If there is no abnormal situation, update the initial state value of the task of creating the imposition to the final state value. If there is an abnormal situation , then the abnormal situation is reported to the manual processing client, and then the manual processing client receives the feedback that the abnormal situation has been processed within the third preset time, and after receiving the feedback, the task of creating imposition The initial state value of is updated to the final state value.
  8. 根据权利要求5所述的协同编程方法,其特征在于,执行所述创建MARK点任务,在所述创建MARK点任务执行完成后,将所述创建MARK点任务的初始状态值更新为最终状态值,包括:The collaborative programming method according to claim 5, wherein the task of creating a MARK point is executed, and after the task of creating a MARK point is executed, an initial state value of the task of creating a MARK point is updated to a final state value ,include:
    执行所述创建MARK点任务,在所述创建MARK点任务的执行过程中判断是否存在异常情况,若不存在异常情况,则将所述创建MARK点任务的初始状态值更新为最终状态值,若存在异常情况,则将该异常情况向人工处理客户端进行反馈,之后在第四预设时间内接受所述人工处理客户端已处理该异常情况的反馈,在接收到该反馈后,将所述创建MARK点任务的初始状态值更新为最终状态值。Execute the task of creating a MARK point, and judge whether there is an abnormal situation during the execution of the task of creating a MARK point. If there is no abnormal situation, then update the initial state value of the task of creating a MARK point to a final state value, if If there is an abnormal situation, the abnormal situation will be fed back to the manual processing client, and then the manual processing client will accept the feedback that the abnormal situation has been processed within the fourth preset time. The initial state value of the Create MARK point task is updated to the final state value.
  9. 根据权利要求5所述的协同编程方法,其特征在于,根据所述元件库资料查询及贴装参数设置任务的初始状态值,将所述元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值,包括:The collaborative programming method according to claim 5, wherein the initial state value of the component library data query and the placement parameter setting task is set according to the component library data query and the initial state value of the placement parameter setting task. Update to final state values, including:
    检测所述元件库资料查询及贴装参数设置任务的初始状态值,判断所述元件库资料查询及贴装参数设置任务的初始状态值表征已执行状态还是未执行状态,若所述元件库资料查询及贴装参数设置任务的初始状态值表 征已执行状态,则所述元件库资料查询及贴装参数设置任务的初始状态值即为最终状态值,若所述元件库资料查询及贴装参数设置任务的初始状态值表征未执行状态,则执行所述元件库资料查询及贴装参数设置任务,在所述元件库资料查询及贴装参数设置任务执行完成后,将所述元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值。Detect the initial state value of the component library data query and placement parameter setting task, and determine the initial state value of the component library data query and placement parameter setting task to represent the executed state or the unexecuted state. If the component library data The initial state value of the query and placement parameter setting task represents the executed state, then the initial state value of the component library data query and placement parameter setting task is the final state value. If the component library data query and placement parameter The initial state value of the setting task represents the unexecuted state, then the component library data query and the placement parameter setting task are executed. After the component library data query and the placement parameter setting task are executed, the component library data query is completed. And the initial state value of the placement parameter setting task is updated to the final state value.
  10. 根据权利要求9所述的协同编程方法,其特征在于,执行所述元件库资料查询及贴装参数设置任务,在所述元件库资料查询及贴装参数设置任务执行完成后,将所述元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值,包括:The collaborative programming method according to claim 9, wherein the component library data query and placement parameter setting tasks are executed, and after the component library data query and placement parameter setting tasks are completed, the components The initial state value of the library data query and placement parameter setting task is updated to the final state value, including:
    执行所述元件库资料查询及贴装参数设置任务,在所述元件库资料查询及贴装参数设置任务的执行过程中判断是否存在异常情况,若不存在异常情况,则在所述元件库资料查询及贴装参数设置任务完成后将所述元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值,若存在异常情况,则将该异常情况向人工处理客户端进行反馈,之后在第五预设时间内接受所述人工处理客户端已处理该异常情况的反馈,在接收到该反馈后,且在所述元件库资料查询及贴装参数设置任务完成后,将所述元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值。Execute the component library data query and placement parameter setting tasks, and determine whether there is an abnormal situation during the execution of the component library data query and placement parameter setting tasks. After the query and placement parameter setting task is completed, the initial state value of the component library data query and placement parameter setting task is updated to the final state value. If there is an abnormal situation, the abnormal situation will be fed back to the manual processing client. Then, within the fifth preset time, accept the feedback that the manual processing client has handled the abnormal situation, after receiving the feedback, and after the component library data query and placement parameter setting tasks are completed, the The initial state value of the component library data query and the placement parameter setting task is updated to the final state value.
  11. 根据权利要求1或2所述的协同编程方法,其特征在于,检测所述程序输出任务的初始状态值,根据所述程序输出任务的初始状态值,将所述程序输出任务的初始状态值更新为最终状态值,包括:The collaborative programming method according to claim 1 or 2, wherein the initial state value of the program output task is detected, and the initial state value of the program output task is updated according to the initial state value of the program output task is the final state value, including:
    在所述元件库资料查询及贴装参数设置任务、所述创建拼版任务和所述创建MARK点任务的初始状态值均更新为最终状态值之后,检测所述程序输出任务的初始状态值,判断所述程序输出任务的初始状态值表征已执行状态还是未执行状态,若所述程序输出任务的初始状态值表征已执行状态,则所述程序输出任务的初始状态值即为最终状态值,若所述程序输出任务的初始状态值表征未执行状态,则执行所述程序输出任务,在所述程序输出任务执行完成后,将所述程序输出任务的初始状态值更新为最终状态值。After the initial state values of the component library data query and the placement parameter setting task, the imposition creation task and the MARK point creation task are all updated to the final state value, the initial state value of the program output task is detected, and the judgment is made. The initial state value of the program output task represents the executed state or the unexecuted state. If the initial state value of the program output task represents the executed state, the initial state value of the program output task is the final state value. If If the initial state value of the program output task represents an unexecuted state, the program output task is executed, and after the program output task is executed, the initial state value of the program output task is updated to a final state value.
  12. 根据权利要求11所述的协同编程方法,其特征在于,执行所述程序输出任务,在所述程序输出任务执行完成后,将所述程序输出任务的初始状态值更新为最终状态值,包括:The collaborative programming method according to claim 11, wherein, executing the program output task, and after the program output task is executed, updating the initial state value of the program output task to a final state value, comprising:
    执行所述程序输出任务,在所述程序输出任务的执行过程中判断是否存在异常情况,若不存在异常情况,则将所述程序输出任务的初始状态值更新为最终状态值,若存在异常情况,则将该异常情况向人工处理客户端进行反馈,之后在第六预设时间内接受所述人工处理客户端已处理该异常 情况的反馈,在接收到该反馈后,将所述程序输出任务的初始状态值更新为最终状态值。Execute the program output task, determine whether there is an abnormal situation during the execution of the program output task, if there is no abnormal situation, update the initial state value of the program output task to the final state value, if there is an abnormal situation , then the abnormal situation is fed back to the manual processing client, and then the manual processing client receives the feedback that the abnormal situation has been processed within the sixth preset time, and after receiving the feedback, the program is output to the task The initial state value of is updated to the final state value.
  13. 一种协同编程装置,其特征在于,包括:A collaborative programming device, comprising:
    PCB任务处理模块,用于获取PCB设计文件读入任务,检测所述PCB设计文件读入任务的初始状态值,根据所述PCB设计文件读入任务的初始状态值,将所述PCB设计文件读入任务的初始状态值更新为最终状态值;The PCB task processing module is used for acquiring the task of reading the PCB design file, detecting the initial state value of the reading task of the PCB design file, reading the initial state value of the task according to the PCB design file, and reading the PCB design file. The initial state value of the incoming task is updated to the final state value;
    并行处理模块,用于分别获取BOM表数据读入任务、创建拼版任务、创建MARK点任务及元件库资料查询及贴装参数设置任务,并行检测BOM表数据读入任务、创建拼版任务及所述创建MARK点任务的初始状态值,根据所述BOM表数据读入任务、所述创建拼版任务及所述创建MARK点任务的初始状态值,将所述BOM表数据读入任务、所述创建拼版任务、所述创建MARK点任务、所述元件库资料查询及贴装参数设置任务的初始状态值更新为最终状态值;The parallel processing module is used to obtain the BOM data read-in task, create the imposition task, create the MARK point task, the component library data query and the placement parameter setting task, and detect the BOM data read-in task, create the imposition task and the above in parallel. Create the initial state value of the MARK point task, read the BOM data into the task, the create imposition task according to the BOM data read-in task, the create imposition task and the initial state value of the MARK point task The initial state value of the task, the task of creating a MARK point, the query of the component library data, and the setting task of the placement parameters are updated to the final state value;
    程序输出处理模块,用于获取程序输出任务,检测所述程序输出任务的初始状态值,根据所述程序输出任务的初始状态值,将所述程序输出任务的初始状态值更新为最终状态值,输出程序;a program output processing module, configured to obtain a program output task, detect the initial state value of the program output task, and update the initial state value of the program output task to a final state value according to the initial state value of the program output task, output program;
    其中,所述初始状态值表征未执行状态或者已执行状态,所述最终状态值表征已执行状态。The initial state value represents an unexecuted state or an executed state, and the final state value represents an executed state.
  14. 一种协同编程系统,其特征在于,包括人工处理客户端和权利要求11所述的协同编程装置,其中,A collaborative programming system, characterized in that it comprises a manual processing client and the collaborative programming device of claim 11 , wherein,
    所述人工处理客户端用于向所述协同编程装置发送所述协同编程任务,另外,所述人工处理客户端还用于在所述PCB设计文件读入任务、所述BOM表数据读入任务、所述创建拼版任务、所述创建MARK点任务、所述元件库资料查询及贴装参数设置任务及所述程序输出任务中的至少一项任务的执行过程中出现异常情况时,在设定次数及每次对应的设定时间条件下分配至少一个指定人员处理该异常情况,在处理完成该异常情况后,所述人工处理客户端向所述SMT协同编程装置进行反馈。The manual processing client is used for sending the collaborative programming task to the collaborative programming device. In addition, the manual processing client is also used for the task of reading the PCB design file and the task of reading the BOM table data. , When an abnormal situation occurs during the execution of at least one of the task of creating imposition, the task of creating MARK point, the query of the component library data and the setting of the placement parameters, and the task of the program output, set the At least one designated person is assigned to handle the abnormal situation under the conditions of the number of times and the corresponding set time each time. After the abnormal situation is processed, the manual processing client provides feedback to the SMT collaborative programming device.
  15. 一种电子设备,其特征在于,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;An electronic device, characterized in that it includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
    存储器,用于存储计算机程序;memory for storing computer programs;
    处理器,用于执行所述计算机程序时,实现权利要求1-12任一项所述的方法步骤。The processor is configured to implement the method steps of any one of claims 1-12 when executing the computer program.
  16. 一种存储介质,其特征在于,所述存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-12任一项所述的方法步骤。A storage medium, characterized in that a computer program is stored in the storage medium, and when the computer program is executed by a processor, the method steps of any one of claims 1-12 are implemented.
PCT/CN2021/097157 2020-06-28 2021-05-31 Collaborative programming method, apparatus and system, electronic device, and storage medium WO2022001541A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010599673.9A CN113850045A (en) 2020-06-28 2020-06-28 Collaborative programming method, device and system, electronic equipment and storage medium
CN202010599673.9 2020-06-28

Publications (1)

Publication Number Publication Date
WO2022001541A1 true WO2022001541A1 (en) 2022-01-06

Family

ID=78972632

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/097157 WO2022001541A1 (en) 2020-06-28 2021-05-31 Collaborative programming method, apparatus and system, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN113850045A (en)
WO (1) WO2022001541A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102024075A (en) * 2009-09-17 2011-04-20 艾默生网络能源-嵌入式计算有限公司 Hardware description language (hdl) generation systems and methods for custom circuit boards
US20110307688A1 (en) * 2010-06-10 2011-12-15 Carnegie Mellon University Synthesis system for pipelined digital circuits
CN103093020A (en) * 2011-10-31 2013-05-08 台湾积体电路制造股份有限公司 Method, system and software for accessing design rules and library of design features
CN104200316A (en) * 2014-08-26 2014-12-10 华南理工大学 SMT ((Surface Mount Technology) closed-loop integrated optimization system and optimization method thereof
CN106547613A (en) * 2016-10-20 2017-03-29 西北工业大学 The scheduling of task handling process and fault recovery method
CN110991127A (en) * 2019-10-17 2020-04-10 广东高云半导体科技股份有限公司 Task execution method and device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102024075A (en) * 2009-09-17 2011-04-20 艾默生网络能源-嵌入式计算有限公司 Hardware description language (hdl) generation systems and methods for custom circuit boards
US20110307688A1 (en) * 2010-06-10 2011-12-15 Carnegie Mellon University Synthesis system for pipelined digital circuits
CN103093020A (en) * 2011-10-31 2013-05-08 台湾积体电路制造股份有限公司 Method, system and software for accessing design rules and library of design features
CN104200316A (en) * 2014-08-26 2014-12-10 华南理工大学 SMT ((Surface Mount Technology) closed-loop integrated optimization system and optimization method thereof
CN106547613A (en) * 2016-10-20 2017-03-29 西北工业大学 The scheduling of task handling process and fault recovery method
CN110991127A (en) * 2019-10-17 2020-04-10 广东高云半导体科技股份有限公司 Task execution method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN113850045A (en) 2021-12-28

Similar Documents

Publication Publication Date Title
JP6297591B2 (en) Data update method for circuit board working system and circuit board working system
EP2899605B1 (en) Production system and program switching method used for same
US7937176B2 (en) Hybrid part installation process combining mass part installation techniques with discrete part number assembly activities
WO2022001541A1 (en) Collaborative programming method, apparatus and system, electronic device, and storage medium
JP5700694B2 (en) Manufacturing support system
CN110570158A (en) power grid standing book electronic transfer method and system and computer readable storage medium
CN109688783B (en) Method for preparing installation kit for mounter
CN109885921B (en) Method, system, medium and equipment for transferring mounting data based on three-dimensional component library
CN1945586A (en) Automatic construction system and method for electronic circuit design
CN113159674B (en) Material information creation method, material management device and storage medium
CN110852035B (en) PCB design platform capable of self-learning
JP2006201887A (en) Work written instruction preparation system
JP2013161370A (en) Edition and verification system for whole product electric specification
CN110659042A (en) Server firmware management method and device
JPS6080299A (en) Printed board assemling production system
CN116560722B (en) Operation and maintenance flow processing method and device, electronic equipment and storage medium
DODU et al. A TABU SEARCH FOR TIME MINIMIZATION IN PRINTED CIRCUIT BOARD ASSEMBLY
CN112329375A (en) Design method and device of mounting program ECN, electronic equipment and storage medium
CN117632221A (en) Software supply chain management method, device, medium and equipment
JPH0635518A (en) Production of nc data for split substrate assembly
CN115968127A (en) Steel mesh opening generation method and device, electronic equipment and storage medium
CN116126913A (en) Feedback type data management method, device, equipment and computer readable storage medium
CN113190970A (en) Modelica-based hybrid flow shop system model base construction method and device
CN113254462A (en) Automatic data processing method, system and medium based on task assignment
TW201426577A (en) Processing system capable of automatically resetting operation process according to event conditions

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21831630

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21831630

Country of ref document: EP

Kind code of ref document: A1