Print control program, device and storage medium towards pcb board
Technical field
The present invention relates to printing technique field more particularly to a kind of print control programs towards pcb board, device and calculating
Machine readable storage medium storing program for executing.
Background technique
Printed circuit board (PCB, printed circuit board), also known as printed circuit board or printed wiring board are
Using insulation board as substrate, it is cut into certain size, print some routes, pad/via hole, welding resistance, character on it and some is led
Electrograph shape, to realize the interconnection between electronic component.
Need to be coated with ink on the substrate made of insulating materials during the printing of pcb board at present, then will be on substrate
Ink is dried, then line pattern to be produced, soldering-resistant pattern, character pattern etc. are covered on to the substrate for being coated with ink
On be exposed, finally by after exposure substrate carry out development treatment, complete pcb board on route printing.
Existing production pcb board needs manually or automatically to be coated with ink, and needs using screen printer, dryer, exposure machine, shows
The set of more instruments such as shadow machine can just complete the printing of pcb board, print the process complexity of pcb board, period length, expend
Human and material resources is more.
Summary of the invention
It is a primary object of the present invention to propose a kind of print control program towards pcb board, device and storage medium, purport
The technical issues of solving existing pcb board route printing complex procedures, period length, low efficiency.
To achieve the above object, one aspect of the present invention provides a kind of print control program towards pcb board, the method packet
It includes:
Obtain the image file to be printed on pcb board and print control parameter;
Obtain pcb board calibration parameter;
Described image file generated printing interface, which is parsed, according to the pcb board calibration parameter identifies file;
The printing interface, which is printed, according to the print control parameter identifies file.
Further, the acquisition image file to be printed on pcb board includes:
Obtain the Gerber file to be printed on pcb board;
The acquisition print control parameter includes:
Obtain printing model, the character layer data file of the first printing surface and alignment layers data file, the second printing surface
Character layer data file and alignment layers data file;
Wherein, the pcb board includes the first printing surface and opposite with first printing surface is set to the pcb board other side
The second printing surface.
Further, the printing model includes: only to print the first printing surface, only print the second printing surface, the first printing
Face and the circulation printing of the second printing surface.
Further, the pcb board calibration parameter includes: the rotation angle of printable character image, scaling, translates partially
Shifting amount;
Further, the acquisition pcb board calibration parameter includes:
Control printing trolley finds the mark point on pcb board;
Rotation angle, scaling, the translational offsets of this printable character image are obtained according to print image data for the first time
Amount.
Further, the print image data for the first time obtains in the following way:
Printing trolley is moved on print platform;
Adjust the center that the position of printing trolley makes the mark point on pcb board be located at shooting visual angle;
It shoots the mark point and obtains print image data for the first time.
Further, described that described image file generated printing interface identification text is parsed according to the pcb board calibration parameter
Part includes:
The pcb board calibration parameter is inputted into the Gerber file to be printed on pcb board;
Data parsing is carried out to the Gerber file and generates BMP bitmap file;
The BMP bitmap file is converted into printing interface identification file.
Further, described to include: according to the print control parameter printing printing interface identification file
Inquire the corresponding image data of the printing interface identification file and print parameters;
Described image data include the original image and printing coordinate of image to be printed, which includes printing temperature
Degree, printing voltage, waveform parameter, grey parameter, printing coordinate;
It is printed according to described image data, the print parameters and the print control driving parameter spray head.
Further, the method also includes: control UV lamp dries the pcb board.
Another aspect of the present invention also provides a kind of print control unit towards pcb board, comprising:
First obtains module, for obtaining the image file to be printed on pcb board and print control parameter;
Second obtains module, for obtaining pcb board calibration parameter;
Parsing module, for parsing described image file generated printing interface identification text according to the pcb board calibration parameter
Part;
Print module identifies file for printing the printing interface according to the print control parameter.
Another aspect of the present invention also provides a kind of computer readable storage medium, the computer-readable recording medium storage
There is one or more program, one or more of programs can be executed by one or more processor, above-mentioned to realize
Each step of any print control program towards pcb board.
A kind of print control program towards pcb board, device and storage medium provided by the invention, it is to be printed by obtaining
The image data file and print control parameter of soldering-resistant pattern, character pattern on pcb board, by these image data files into
Row calibration is parsed into the printing interface identification file that ink-jet printer can identify, then by printing interface identification file input
Ink-jet printer carries out parsing printing.Soldering-resistant pattern or character pattern are once printed upon on pcb board by the present invention, can once at
Type does not need repeatedly to print repeatedly, and accurate, high-efficient using inkjet printing precision height, pattern.In addition, the present invention is according to beating
Print control parameter not only can once print the first printing surface of pcb board, but also can carry out the first printing surface and the second printing
The printing alternate in face carries out the printing of different mode by the way that different printing model is arranged, when needing to print large batch of PCB
It can continuously single side be printed when plate, carry out all the second printing surfaces of pcb board again after the completion of the printing of all the first printing surfaces of pcb board
Printing;When only there was only one piece of pcb board, it can be printed with the first printing surface and followed by carry out quickly beating for the second printing surface
Print.
Detailed description of the invention
Fig. 1 is a kind of print control program flow chart towards pcb board that the embodiment of the present invention one provides;
Fig. 2 is the setting schematic diagram of ink jet printing device of the present invention;
Fig. 3 is the setting schematic diagram of print control parameter of the present invention;
Fig. 4 is that schematic diagram is arranged in the temperature of spray head of the present invention and voltage;
Fig. 5 is that schematic diagram is arranged in print image of the present invention;
Fig. 6 is a kind of print control unit schematic diagram towards pcb board that the embodiment of the present invention three provides.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element
Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
Embodiment one
The embodiment of the present invention one provides a kind of print control program towards pcb board, as shown in Figure 1, which comprises
S101, the image file and print control parameter to be printed on pcb board is obtained;Here image file can be
Image file including the soldering-resistant pattern to be printed on pcb board and/or character pattern;
Wherein, described image file includes but is not limited to soldering-resistant pattern, the character pattern etc. on PCB.In the present embodiment, institute
State printing interface identification file (such as PRN file) that image file is Gerber file or Preliminary Analysis.Wherein, Gerber text
Part is a kind of 2 d vector images file format.It is in industry of printed circuit boards software for describing printed wiring board image
Reference format, digital-code printer realize that the Gerber file first step of printing vector is exactly to turn the File Format Analysis of polar plot
Turn to the PRN bitmap file format of dot matrix.Printer could use PRN bitmap file to be printed in this way.
In the present embodiment, print control parameter includes printing model, the character layer data file of the first printing surface and positioning
The character layer data file and alignment layers data file of layer data file, the second printing surface.Wherein, the pcb board includes first
Printing surface and the second printing surface for being set to the pcb board other side opposite with first printing surface, that is, on pcb board just
Face and reverse side.
Specifically, the acquisition image file to be printed on pcb board includes:
Obtain the Gerber file of pcb board to be printed;
For example, passing through the Gerber file of system introducing pcb board to be printed.
The acquisition print control parameter includes:
Obtain printing model, the character layer data file of the first printing surface and alignment layers data file, the second printing surface
Character layer data file and alignment layers data file;
Wherein, printing model includes: only to print the first printing surface, only print the second printing surface, the first printing surface and second
Printing surface circulation printing.
There are incidence relations between character layer data file and alignment layers data file, according to the character layer of the first printing surface
Data file can obtain the alignment layers data file of the first printing surface by incidence relation between the two.According to the second printing surface
Character layer data file the alignment layers data file of the second printing surface can be obtained by incidence relation between the two.
In the present embodiment, Gerber file includes the calibration parameter of precision, positional parameter etc., and system can be according to calibration parameter
Before automatic to carry out precision, positional parameter setting and as shown in Figure 2 includes spray head selection, print speed, Print direction, print
The setting of the ink jet printing devices such as flare, automatic cleaning, page orientation.
Above-mentioned print control parameter can specifically pass through the parameter of acquisition print control parameter setting page as shown in Figure 3
It obtains.Particular user can manually type in print control parameter options shown in Fig. 3.
S102, pcb board calibration parameter is obtained;
The pcb board calibration parameter includes: rotation angle, scaling, the translational offsets amount of printable character image;
The acquisition pcb board calibration parameter includes:
S1021, control printing trolley find the mark point on pcb board;
Specifically, this step control starting calibration procedure, prints the mark point on trolley Automatic-searching pcb board, counts below
For Mark point.
S1022, it the rotation angle that this printable character image is obtained according to print image data for the first time, scaling, puts down
Move offset.
Wherein, the print image data for the first time obtains in the following way:
Printing trolley is moved on print platform;
Adjust the center that the position of printing trolley makes the mark point on pcb board be located at shooting visual angle;
It shoots the mark point and obtains print image data for the first time.
Illustratively, when printing first time, by the way that manually printing trolley is moved on print platform, then lead to
The Mark point on the camera shooting pcb board being mounted on beside spray head is crossed, the position of constantly adjustment printing trolley makes when shooting
Mark point is located at the center at the visual angle camera FOV, and the Mark point of shooting is obtained print image data for the first time, will be printed for the first time
Image data is saved into the database of ink-jet printer, and the host computer that can be specifically saved in computer is locally stored.
When carrying out second of printing and subsequent printing, start calibration procedure, prints trolley Automatic-searching Mark point foundation
Print image data calculates the calibration such as the rotation angle for obtaining this printable character image, scaling, translational offsets amount for the first time
Parameter.Wherein, translational offsets amount is specially to print X, the parameter of Y white edge.
S103, described image file generated printing interface identification file is parsed according to the pcb board calibration parameter;
Wherein, the format of none fixation of printing interface identification file, it is actually the print command by printer
Composition, the printing interface identification file that different printer drivers generates is different.When using printer mimeograph documents, if
In print setup interface select " being output to file ", then be output to specified directory file default be using .prn as extension name, this
A file is exactly so-called " printing interface identification file ".Although printing interface identifies that file extension name is all .prn, for
The printer of different brands, be saved on hard disk printing interface identification file content format be not be completely fixed with it is consistent
's.This is because each printing interface identification file is inherently made of the print command of certain specific printer,
I.e. printing interface identification file is equivalent to a kind of driver file for particular printer.So different printers drives
The raw file of movable property is not fully identical.
Specifically, this step includes:
S1031, the pcb board calibration parameter is inputted in the Gerber file to be printed on pcb board;Become in this way
A part of Gerber file, convenient for parsing together below.
S1032, data parsing generation BMP bitmap file is carried out to the Gerber file;
Wherein, BMP bitmap file is the image file format that Windows operating system is recommended and supported.It is a kind of incite somebody to action
The image data of memory or display file format of directly step-by-step deposit without overcompression.
S1033, the BMP bitmap file is converted into printing interface identification file.
S104, the printing interface identification file is printed according to the print control parameter.
Specifically, this step includes:
S1041, the corresponding image data of the inquiry printing interface identification file and print parameters;
Wherein, described image data include the original image and printing coordinate of image to be printed, which includes beating
Print temperature, printing voltage, waveform parameter, grey parameter, printing coordinate;
S1042, it is beaten according to described image data, the print parameters and the print control driving parameter spray head
Print.
Embodiment two
Second embodiment of the present invention provides a kind of print control programs towards pcb board, comprising:
S201, the image file and print control parameter to be printed on pcb board is obtained;
S202, pcb board calibration parameter is obtained;
S203, described image file generated printing interface identification file is parsed according to the pcb board calibration parameter;
Wherein, step S201~S203 is identical as step S101~S103 in embodiment one respectively, and details are not described herein.
S204, the printing interface identification file is printed according to the print control parameter.
Specifically, this step includes:
S2041, spray printing control panel receive the spray printing order with watermark image to be painted index.
Wherein, spray printing control panel is based on ARM (full name in English: Advanced RISC Machines) platform, operation
One end of embedded Linux system, nozzle control panel is connect by gigabit Ethernet with industrial personal computer, and the other end is connect with spray head.
Spray control panel may include MPU (full name in English: Microprocessor Unit, Chinese name: microprocessor),
MCU (full name in English: Micro Control Unit, Chinese name: micro-control unit), FPGA (full name in English: Field-
Programmable Gate Array, Chinese name: field programmable gate array), DDR3SDRAM, EMMC (full name in English:
Embedded Multi Media Card, Chinese name: built-in multimedia controller), spray head Voltag driving circuit, temperature
Control circuit, power circuit etc., MPU and MCU pass through 16 parallel-by-bit bus communications, spray head electricity by serial communication, MPU and FPGA
Driving circuit and temperature-control circuit is pressed to be controlled by MCU by DAC (Chinese name: digital analog converter).
In specific implementation, MPU receives the image data and spray printing parameter for the image to be stored that industrial personal computer is sent, and by institute
It states image data and spray printing parameter is stored into DDR3SDRAM.
In specific implementation, spray printing control panel receives the spray printing order with watermark image to be painted index.The purpose of this step
It is to determine the index of watermark image to be painted, so that subsequent step is joined according to the image data and spray printing of search index watermark image to be painted
Number.
S2042, the corresponding image data of the watermark image to be painted according to described image search index and spray printing parameter.
Wherein, described image data and the spray printing parameter are stored in the memory in spray printing control panel.Described image
Data include the original image and spray printing coordinate of watermark image to be painted, and the spray printing parameter includes but is not limited to spray printing temperature, spray printing
Voltage, waveform parameter, grey parameter, spray printing coordinate and spray printing mode etc.;
S2043, according to described image data, the spray printing parameter and the print control driving parameter spray head will it is described to
Spray printing image spray printing is on pcb board.
After spray printing control panel inquires original image and the related spray printing parameter of watermark image to be painted, by the original image and
Print control parameter is sent to spray head, and temperature and the voltage etc. of spray head are arranged according to the correlation values of spray printing parameter, such as Fig. 4 institute
Show, printing model is set, as shown in Figure 3.Spray head spray printing original image is driven, as shown in Figure 5.
Wherein, print control parameter includes printing model, and the printing model includes: only to print the first printing surface, only beat
Print the second printing surface, the first printing surface and the circulation printing of the second printing surface.It can control spray head by this step and carry out different moulds
The printing of formula can continuously single side be printed when needing to print large batch of pcb board, when all the first printing surfaces of pcb board print
Carry out the printing of all the second printing surfaces of pcb board again after the completion;When only there was only one piece of pcb board, can be beaten with the first printing surface
The printing speed for followed by carrying out the second printing surface is printed.
S205, control UV lamp dry the pcb board.
A kind of print control program towards pcb board provided by the invention passes through acquisition PCB pattern to be printed, character figure
The image data file and print control parameter of case, these image data files are calibrated, are parsed into inkjet printing function
Then printing interface identification file input ink-jet printer is carried out parsing printing by the printing interface identification file enough identified.This
Soldering-resistant pattern or character pattern are once printed upon on pcb board by invention, can one-pass molding, do not need repeatedly to print repeatedly, and adopt
It is accurate, high-efficient with inkjet printing precision height, pattern.In addition, the present invention not only can be printed once according to print control parameter
First printing surface of pcb board, and the printing alternate of the first printing surface and the second printing surface can be carried out, it is different by being arranged
Printing model carries out the printing of different mode, can continuously single side print when needing to print large batch of pcb board, when all
The printing of all the second printing surfaces of pcb board is carried out after the completion of the printing of the first printing surface of pcb board again;When only only have one piece of pcb board
When, the printing speed for followed by carrying out the second printing surface can have been printed with the first printing surface.
Embodiment three
The embodiment of the present invention three provides a kind of print control unit towards pcb board, as shown in fig. 6, should be towards pcb board
Print control unit 6 includes:
First obtains module 61, for obtaining the image file to be printed on pcb board and print control parameter;
Second obtains module 62, for obtaining pcb board calibration parameter;
Parsing module 63, for parsing the identification of described image file generated printing interface according to the pcb board calibration parameter
File;
Print module 64 identifies file for printing the printing interface according to the print control parameter.
Control module 65 is dried, dries the pcb board for controlling UV lamp.
In a specific embodiment, the first acquisition module 41 includes:
Gerber file acquisition module, for obtaining the Gerber file to be printed on pcb board;
Print control parameter acquisition module, for obtaining the character layer data file of printing model, the first printing surface and determining
The character layer data file and alignment layers data file of position layer data file, the second printing surface;
Wherein, the pcb board includes the first printing surface and the second printing surface.
The printing model includes: only to carry out the first printing surface printing, only carry out the second printing surface printing, the first printing surface
It recycles and prints with the second printing surface.
Described second, which obtains module, includes:
Search module, for controlling the mark point on printing trolley searching pcb board;
Computing module, for obtaining rotation angle, the scaling of this printable character image according to print image data for the first time
Ratio, translational offsets amount.
Wherein, the pcb board calibration parameter includes: rotation angle, scaling, the translational offsets of printable character image
Amount;
Further, the computing module includes:
Mobile module is moved to print platform for that will print trolley;
Module is adjusted, the center that the position for adjusting printing trolley makes the mark point on pcb board be located at shooting visual angle;
Shooting module obtains print image data for the first time for shooting the mark point.
The parsing module includes:
Input module, for the pcb board calibration parameter to be inputted the Gerber file to be printed on pcb board;
Generation module generates BMP bitmap file for carrying out data parsing to the Gerber file;
Conversion module, for the BMP bitmap file to be converted into printing interface identification file.
The print module includes:
Enquiry module, for inquiring the corresponding image data of the printing interface identification file and print parameters;
Wherein, described image data include the original image and printing coordinate of image to be printed, which includes beating
Print temperature, printing voltage, waveform parameter, grey parameter, printing coordinate;
Drive module, for according to described image data, the print parameters and the print control driving parameter spray head
It is printed.
Example IV
The embodiment of the present invention four provides a kind of print controlling apparatus and computer readable storage medium towards pcb board.
The above-mentioned print controlling apparatus towards pcb board includes processor and memory, and wherein memory is stored with computer program instructions,
The processor calls the computer program instructions stored in the memory to realize embodiment one or embodiment two by bus
Each step of any print control program towards pcb board.
The computer-readable recording medium storage has one or more program, and one or more of programs can quilt
One or more processor executes, to realize embodiment one or any print control towards pcb board of embodiment two
Each step of method.
A kind of print control program towards pcb board, device, equipment and computer-readable storage medium provided by the invention
Matter, by acquisition PCB pattern to be printed, the image data file and print control parameter of character pattern, by these image datas
File is calibrated, is parsed into the printing interface identification file that ink-jet printer can identify, printing interface is then identified text
Part input ink-jet printer carries out parsing printing.Soldering-resistant pattern or character pattern are once printed upon on pcb board by the present invention, can one
Secondary molding does not need repeatedly to print repeatedly, and accurate, high-efficient using inkjet printing precision height, pattern.In addition, root of the present invention
PCB classes of the first printing surface not only can be once printed according to print control parameter, but also can carry out the first printing surface and second
The printing alternate of printing surface carries out the printing of different mode by the different printing model of setting, large batch of when needing to print
It can continuously single side be printed when pcb board, carry out all pcb boards second again after the completion of the printing of all the first printing surfaces of pcb board and beat
The printing in print face;When only there was only one piece of pcb board, it can be printed with the first printing surface and followed by carry out the fast of the second printing surface
Speed printing.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form, all of these belong to the protection of the present invention.