PCB two-dimensional code processing method and device

文档序号:1621980 发布日期:2020-01-14 浏览:39次 中文

阅读说明:本技术 Pcb板二维码加工方法以及装置 (PCB two-dimensional code processing method and device ) 是由 韩轮成 袁绩 孟凡辉 常远 于 2018-07-05 设计创作,主要内容包括:本发明提供了一种PCB板二维码加工方法以及装置,公开了一种用于在PCB板上加工二维码的工艺,通过该工艺,可以在批量生产PCB板时生成不同的二维码,相同工程号不同批号、不同周期的PCB板或不同工程号之间的PCB板混料,在发生异常时,也便于追溯发生异常的环节。(The invention provides a method and a device for processing a two-dimension code of a PCB (printed Circuit Board), and discloses a process for processing the two-dimension code on the PCB.)

1. A PCB two-dimension code processing method is characterized in that the method is applied to a drilling machine and comprises the following steps:

acquiring two-dimensional code information of a PCB to be processed;

generating a common part of the two-dimensional code based on the two-dimensional code information;

generating a variable part of the two-dimensional code based on a pre-acquired initial value and a pre-acquired termination value, so that the two-dimensional codes on each PCB are different, and the initial value and the termination value belong to the same arithmetic progression;

and simultaneously drilling holes on the PCB to form the common part and the variable part, and generating a drilling program of the two-dimensional code into a directory file.

2. The method of claim 1, wherein generating a varying portion of the two-dimensional code so that the two-dimensional code on each PCB is different based on an initial value and a termination value acquired in advance comprises:

and when the variable part of the two-dimensional code is generated every time, adding a preset tolerance to the initial value to form a new initial value after the variable part is generated based on the initial value until the initial value is equal to the termination value.

3. The method according to claim 1, wherein the two-dimensional code information of the PCB to be processed is obtained, and the two-dimensional code information comprises version information of the PCB and number information of a drilling machine.

4. The method of claim 3, wherein the same drilling machine comprises a plurality of processing stations, each processing station corresponds to an axis number, and the two-dimensional code information comprises version information of the PCB, number information of the drilling machine and axis number information.

5. The method of claim 4, wherein the drilling machine further comprises a drill point, the two-dimensional code processed by each processing station comprises a blind hole, and the blind hole is used for distinguishing the sequence of the N superposed PCB boards on each processing station, and the method further comprises the following steps:

when the drill point is used for processing the two-dimensional code, M blind holes are drilled in the PCB which is located on the Mth layer from top to bottom at the edge position of the two-dimensional code, wherein M is not more than N.

6. The utility model provides a PCB board two-dimensional code processingequipment which characterized in that, the device is applied to the drilling machine, the device includes:

the acquisition module is used for acquiring two-dimensional code information of the PCB to be processed;

the generating module is used for generating a common part of the two-dimensional code based on the two-dimensional code information;

the generating module is further configured to generate a changing portion of the two-dimensional code based on a pre-obtained initial value and a pre-obtained end value, so that the two-dimensional codes on each PCB are different, and the initial value and the end value belong to the same arithmetic progression;

the generating module is further configured to drill holes on the PCB board to form the common portion and the variable portion, and generate a drilling program of the two-dimensional code into a directory file.

7. The apparatus of claim 6, wherein the generating module is configured to generate the varying portion of the two-dimensional code each time the varying portion is generated, add a preset tolerance to the initial value to form a new initial value until the initial value is equal to the end value after the varying portion is generated based on the initial value.

8. The apparatus of claim 6, wherein the two-dimensional code information comprises version information of the PCB board, and number information of a drilling machine.

9. The apparatus of claim 8, wherein the same drilling machine comprises a plurality of processing stations, each processing station corresponds to an axis number, and the two-dimensional code information comprises version information of the PCB, number information of the drilling machine and axis number information.

10. The apparatus of claim 9, wherein the drilling machine further comprises a drill point, the two-dimensional code processed by each processing station comprises a blind hole, and the blind hole is used for distinguishing the sequence of the N stacked PCB boards on each processing station, and the apparatus further comprises:

and the reading module is used for reading the drilling program, so that when the drill point processes the two-dimensional code, M blind holes are drilled in the PCB on the Mth layer from top to bottom at the edge position of the two-dimensional code, wherein M is less than or equal to N.

Technical Field

The invention relates to the field of machining, in particular to a PCB two-dimensional code machining method and device.

Background

In a PCB factory, a plurality of PCB circuit boards are produced in large batch, the PCB boards with the same engineering number are often fed with a plurality of batches of materials or even dozens of batches of materials to be produced together, the PCB boards are simultaneously processed on an assembly line, different batch numbers and periods are provided, and boards with different engineering numbers but similar appearances are also produced and processed on the assembly line. In the production process, the large batch of PCB boards are simultaneously processed to easily lead to the mixing of production sites, the work order is lost or misplaced to also lead to the mixing of PCB boards, a large amount of manpower and material resources are spent to distinguish after the mixing, even the mixing can not be distinguished, the period and the batch number which slightly lead to the PCB boards are inconsistent with the actual production and processing, and the serious processing error can be caused.

At present, a method for processing a two-dimensional code by drilling is proposed, but no research is made on methods and processes realized in actual production.

Disclosure of Invention

In view of the above, an object of the embodiments of the present invention is to provide a method and an apparatus for processing a two-dimensional code of a PCB, so as to alleviate the above problems.

In a first aspect, an embodiment of the present invention provides a method for processing a two-dimensional code of a PCB, where the method is applied to a drilling machine, and the method includes: acquiring two-dimensional code information of a PCB to be processed; generating a common part of the two-dimensional code based on the two-dimensional code information; generating a variable part of the two-dimensional code based on a pre-acquired initial value and a pre-acquired termination value, so that the two-dimensional codes on each PCB are different, and the initial value and the termination value belong to the same arithmetic progression; and simultaneously drilling holes on the PCB to form the common part and the variable part, and generating a drilling program of the two-dimensional code into a directory file.

In a second aspect, an embodiment of the present invention provides a PCB two-dimensional code processing apparatus, where the apparatus is applied to a drilling machine, and the apparatus includes: the acquisition module is used for acquiring two-dimensional code information of the PCB to be processed; the generating module is used for generating a common part of the two-dimensional code based on the two-dimensional code information; the generating module is further configured to generate a changing portion of the two-dimensional code based on a pre-obtained initial value and a pre-obtained end value, so that the two-dimensional codes on each PCB are different, and the initial value and the end value belong to the same arithmetic progression; the generating module is used for simultaneously drilling holes on the PCB to form the common part and the variable part and generating a drilling program of the two-dimensional code into a directory file.

Compared with the prior art, the PCB two-dimension code processing method and the PCB two-dimension code processing device provided by the embodiments of the invention provide a process for processing two-dimension codes on PCBs, through the process, different two-dimension codes can be generated during batch production of PCBs, the same engineering number and different batch numbers and different periods of mixed materials of PCBs can be generated, and when an abnormality occurs, the abnormal link can be traced conveniently.

In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.

Fig. 1 is a block diagram of a drilling machine according to an embodiment of the present invention;

fig. 2 is a flowchart of a PCB two-dimensional code processing method according to a first embodiment of the present invention;

fig. 3 is another flowchart of a PCB two-dimensional code processing method according to a first embodiment of the present invention;

fig. 4 is a block diagram of a two-dimensional code processing apparatus for a PCB according to a second embodiment of the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.

It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.

As shown in fig. 1, is a block schematic view of the drill rig 100. The drill 100 includes: the PCB two-dimensional code processing device comprises a PCB two-dimensional code processing device, a memory 110, a storage controller 120, a processor 130, an external interface 140, an input/output unit 150 and a drill point 160.

The memory 110, the memory controller 120, the processor 130, the peripheral interface 140, the input/output unit 150, and the drill point 160 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The PCB two-dimensional code processing apparatus includes at least one software function module which can be stored in the memory 110 in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the client device. The processor 130 is configured to execute an executable module stored in the memory 110, such as a software functional module or a computer program included in the PCB two-dimensional code processing apparatus.

The Memory 110 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 110 is used for storing a program, and the processor 130 executes the program after receiving an execution instruction, and the method defined by the flow disclosed in any of the foregoing embodiments of the present invention may be applied to the processor 130, or implemented by the processor 130.

The processor 130 may be an integrated circuit chip having signal processing capabilities. The Processor 130 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

The peripheral interface 140 couples various input/output devices to the processor 130 and to the memory 110. In some embodiments, peripheral interface 140, processor 130, and memory controller 120 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.

The input and output unit 150 is used to provide user input data to enable user interaction with the drill rig 100. The input/output unit 150 may be, but is not limited to, a mouse, a keyboard, and the like.

First embodiment

Referring to fig. 2, fig. 2 is a flowchart of a PCB two-dimensional code processing method according to a first embodiment of the present invention, where the method is applied to a drilling machine. The flow shown in fig. 2 will be described in detail below, and the method includes:

step S110: and acquiring the two-dimensional code information of the PCB to be processed.

The two-dimensional code information may include version information of the PCB board, a size of the two-dimensional code, cutter information of a drilling machine, and position coordinate information of the two-dimensional code.

Of course, the same drilling machine may comprise a plurality of processing stations, each of which may work in parallel. At the moment, each processing station corresponds to an axle number, and the two-dimensional code information to be processed at the processing station comprises version information of the PCB, number information of a drilling machine and axle number information.

Step S120: and generating a common part of the two-dimension codes based on the two-dimension code information.

Step S130: and generating a variable part of the two-dimensional code based on an initial value and a termination value which are acquired in advance, so that the two-dimensional code on each PCB is different, wherein the initial value and the termination value belong to the same arithmetic progression.

And when the variable part of the two-dimensional code is generated every time, adding a preset tolerance to the initial value to form a new initial value after the variable part is generated based on the initial value until the initial value is equal to the termination value.

For example, the initial value may be 0 and the end value may be 9, belonging to an arithmetic series with a tolerance of 1.

Then, when the variable part of the two-dimensional code is generated for the first time at the same station, 0 is used as an initial value for generation, after the first time is completed, the initial value is updated to 1, and when the variable part of the two-dimensional code is generated for the second time, 1 is used as the initial value for generation, so that the difference between a plurality of two-dimensional codes generated under the same station shaft number is ensured, and the two-dimensional codes are convenient to distinguish.

Step S140: and simultaneously drilling holes on the PCB to form the common part and the variable part, and generating a drilling program of the two-dimensional code into a directory file.

As an optional implementation manner, the drilling machine further comprises a drill point, the two-dimensional code processed by each processing station comprises a blind hole, and the blind hole is used for distinguishing the sequence of the N stacked PCB boards on each processing station. Referring to fig. 3, the method may further include:

step S150: when the drill point is used for processing the two-dimensional code, M blind holes are drilled in the PCB which is located on the Mth layer from top to bottom at the edge position of the two-dimensional code, wherein M is not more than N. .

Assuming that the two-dimensional codes of three PCBs are simultaneously processed at each station, at this time, the common part and the variable part of the two-dimensional codes of the three PCBs are the same, in order to achieve the purpose of distinguishing, the drill point can drill 1 blind hole on the PCB positioned on the first layer, 2 blind holes on the PCB positioned on the second layer, and 3 blind holes on the PCB positioned on the third layer to represent the distinguishing.

It is noted that the drill may be a drill bit with a diameter of 0.45 mm.

Second embodiment

Referring to fig. 4, fig. 4 is a block diagram illustrating a two-dimensional code processing apparatus 400 for a PCB according to a second embodiment of the present invention, wherein the apparatus is applied to a drilling machine. The block diagram of fig. 4 will be explained, and the apparatus shown comprises:

the obtaining module 410 is used for obtaining two-dimensional code information of a PCB to be processed;

a generating module 420, configured to generate a common part of the two-dimensional code based on the two-dimensional code information;

the generating module 420 is further configured to generate a changing portion of the two-dimensional code based on a pre-obtained initial value and a pre-obtained end value, so that the two-dimensional codes on each PCB are different, and the initial value and the end value belong to the same arithmetic progression;

the generating module 420 is further configured to drill holes on the PCB board to form the common portion and the variable portion, and generate a drilling program of the two-dimensional code into a directory file.

In an embodiment, the generating module 420 is specifically configured to, every time the varying portion of the two-dimensional code is generated, generate the varying portion based on the initial value, and add a preset tolerance to the initial value to form a new initial value until the initial value is equal to the end value.

As an implementation manner, the obtaining module 410 is specifically configured to obtain two-dimensional code information of a PCB to be processed, where the two-dimensional code information includes version information of the PCB and a number of a drilling machine.

As an implementation manner, the same drilling machine includes a plurality of processing stations, each of the processing stations corresponds to an axle number, and the obtaining module 410 is specifically configured to obtain two-dimensional code information of a PCB to be processed, where the two-dimensional code information includes version information of the PCB, number information of the drilling machine, and axle number information.

As an embodiment, the drilling machine further comprises a drill point, the two-dimensional code processed by each processing station comprises a blind hole, and the blind hole is used for distinguishing the sequence of the N stacked PCB boards on each processing station;

the device can further comprise a reading module for reading the drilling program to enable the drill point to drill M blind holes on the PCB on the Mth layer from top to bottom at the edge position of the two-dimensional code when the drill point processes the two-dimensional code, wherein M is less than or equal to N.

In this embodiment, please refer to the contents described in the embodiments shown in fig. 1 to fig. 3 for the process of implementing each function of each function module of the device 400 for processing a two-dimensional code of a PCB, which is not described herein again.

In summary, the PCB two-dimension code processing method and device provided by the embodiments of the present invention provide a process for processing a two-dimension code on a PCB, and through the process, different two-dimension codes, mixed materials of PCBs with the same engineering number and different batch numbers and different periods can be generated during mass production of PCBs, and when an abnormality occurs, it is also convenient to trace the link where the abnormality occurs.

In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.

The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种具孔边热合保守的双层充气薄膜的打孔机

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!