CN104553382B - Printing precision processing method and device - Google Patents

Printing precision processing method and device Download PDF

Info

Publication number
CN104553382B
CN104553382B CN201310499632.2A CN201310499632A CN104553382B CN 104553382 B CN104553382 B CN 104553382B CN 201310499632 A CN201310499632 A CN 201310499632A CN 104553382 B CN104553382 B CN 104553382B
Authority
CN
China
Prior art keywords
value
pulse signal
reference value
sampling clock
count
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
CN201310499632.2A
Other languages
Chinese (zh)
Other versions
CN104553382A (en
Inventor
方应龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New Founder Holdings Development Co ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
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 Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN201310499632.2A priority Critical patent/CN104553382B/en
Publication of CN104553382A publication Critical patent/CN104553382A/en
Application granted granted Critical
Publication of CN104553382B publication Critical patent/CN104553382B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Ink Jet (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The invention provides a printing precision processing method and device. The method comprises steps as follows: obtaining a first count reference value P through a formula N=K*D/M according to a set frequency division value D, a frequency doubling value M and an obtained first interval count value K at a current moment, wherein the first count reference value P is an integer part of N, the first interval count value is larger than or equal to a preset threshold value, the preset threshold value is set according to a precision requirement, and a pulse signal is output according to the first count reference value P.

Description

The treating method and apparatus of printing precision
Technical field
The present invention relates to computer technology, more particularly, to a kind for the treatment of method and apparatus of printing precision.
Background technology
At present, in ink jet printing numerical control system, encoder without exception serve as important role.Concrete In application, according to installation site and structure, encoder can be divided into pinch roller encoder, with shaft encoder and encoded servo device etc.. In addition, in all applications, the effect of encoder is:The displacement of correctly reflection printing stock.Specifically, numeral spray Ink print is dot matrix printing:It is referred to as transverse precision in the ink dot spacing perpendicular to stock direction, by ink jet-print head Physical characteristics determine;Ink dot spacing on stock moving direction is referred to as Longitudinal precision, ink jet printing numerical control system By the process of encoder pulse signal is controlled with the precision of longitudinally printing.
But, once encoder and its installing mechanism Selection and Design complete, the coded pulse signal of this encoder output is just It is fixed up, but it is variable that general user requires Longitudinal precision;In addition, the installing mechanism of encoder can exist in structure Certain trueness error, for example:Circularity, concentricity, therefore, existing coded pulse signal may off-design mark Standard, thus reducing longitudinal printing precision, and longitudinal printing precision cannot be variable, cannot meet the demand of user.
Content of the invention
The present invention provides a kind for the treatment of method and apparatus of printing precision, is used for being effectively improved printing precision, and energy Meet user's request.
The first aspect of the invention is to provide a kind of processing method of printing precision, including:
Frequency division value D according to setting and frequency multiplication value M, and the first gap count value K of the current time obtaining, using public affairs Formula N=K × D ÷ M, obtains the first counting reference value P, and wherein, described first counting reference value P is the integer part of described N;Institute State the first gap count value and be more than or equal to predetermined threshold value;Described predetermined threshold value is according to required precision setting;
According to the described first counting reference value P, output pulse signal.
Another aspect of the present invention is to provide a kind of processing meanss of printing precision, including:
Count reference value acquisition module, for the frequency division value D according to setting and frequency multiplication value M, and the gap count obtaining Value K, using formula N=K × D ÷ M, obtains and counts reference value P, wherein, described P is the integer part of described N;Between described first It is more than or equal to predetermined threshold value every count value;Described predetermined threshold value is according to required precision setting;
Output of pulse signal module, for according to described counting reference value P, output pulse signal.
The solution have the advantages that:Frequency division value D according to setting and frequency multiplication value M, and gap count value K obtaining, Using formula N=K × D ÷ M, obtain and count reference value P, wherein, this P is the integer part of this N;And according to this counting reference value P, output pulse signal.Because the first gap count value is more than or equal to predetermined threshold value, and predetermined threshold value is according to accuracy requirement Setting, therefore, carrying out remainder process, that is, after referring to the integer part of acquisition N, error can reduced, thus effectively improving Printing precision.In addition, algorithm actually uses the ratio of D and M, therefore, the numerical values recited of D and M is not limited, point The degree of regulation of frequency and frequency multiplication can be as accurate as a system sampling clock cycle, far beyond the demand of printing precision, and no Process the difficulty of remainder, therefore, it is possible to the problem of the circularity of correct reflection coder structure, concentricity, and user can be met Demand.
Brief description
Fig. 1 is the flow chart of an embodiment of processing method of printing precision of the present invention;
Fig. 2 is the flow chart of another embodiment of processing method of printing precision of the present invention;
Fig. 3 is the flow chart of another embodiment of processing method of printing precision of the present invention;
Fig. 4 is the structural representation of an embodiment of processing meanss of printing precision of the present invention;
Fig. 5 is the structural representation of another embodiment of processing meanss of printing precision of the present invention.
Specific embodiment
Fig. 1 is the flow chart of an embodiment of processing method of printing precision of the present invention, as shown in figure 1, the present embodiment Method executive agent be numerical control system, then the method include:
Step 101, the frequency division value D according to setting and frequency multiplication value M, and gap count value K of the current time obtaining, adopt With formula (1):
N=K × D ÷ M (1)
Obtain and count reference value P, wherein, this P is the integer part of this N.
In the present embodiment, this first gap count value is more than or equal to predetermined threshold value;This predetermined threshold value is according to precision Require setting.For example, when required precision one thousandth, predetermined threshold value can be 1000.
Step 102, according to this counting reference value P, output pulse signal.
In the present embodiment, when output count down to P, export a pulse signal, and again start counting up.
In the present embodiment, the frequency division value D according to setting and frequency multiplication value M, and gap count value K obtaining, using public affairs Formula N=K × D ÷ M, obtains and counts reference value P, wherein, this P is the integer part of this N;And according to this counting reference value P, export Pulse signal.Because the first gap count value is more than or equal to predetermined threshold value, and predetermined threshold value is according to accuracy requirement setting, Therefore, carrying out remainder process, that is, after referring to the integer part of acquisition N, error can reduced, thus being effectively improved printing essence Degree.In addition, algorithm actually uses the ratio of D and M, therefore, the numerical values recited of D and M is not limited, divide and frequency multiplication Degree of regulation can be as accurate as a system sampling clock cycle, far beyond the demand of printing precision, and no process remainder Difficulty, therefore, it is possible to the circularity of correct reflection coder structure, the problem of concentricity, and user's request can be met.
Fig. 2 is the flow chart of another embodiment of processing method of printing precision of the present invention, as shown in Fig. 2 the method Executive agent be numerical control system, then the method include:
Step 201, calculating obtain the interval between current time the first input pulse signal and the second input pulse signal Count value K, this first input pulse signal is the previous pulse signal of this second input pulse signal.
Step 202, the frequency division value D according to setting and frequency multiplication value M, and this gap count value K, using formula (1):
N=K × D ÷ M (1)
Obtain and count reference value P, wherein, this P is the integer part of this N.
In the present embodiment, this first gap count value is more than or equal to predetermined threshold value;This predetermined threshold value is according to precision Require setting.
Step 203, according to this counting reference value P, output pulse signal.
In the present embodiment, for example, when gap count value is followed successively by 5000,4500,3500,3000 it is assumed that dividing Frequency times frequency ratio is 1/2, then using formula (1), the counting reference value obtaining is followed successively by 2500,2250,1750,1500, thus Understand, this output pulse signal follows the change of gap count value completely.
Fig. 3 is the flow chart of another embodiment of processing method of printing precision of the present invention, as shown in figure 3, the method Executive agent be numerical control system, then the method include:
Step 301, ready-to-print.
Step 302, calculating obtain the interval between current time the first input pulse signal and the second input pulse signal Count value K, this first input pulse signal is the previous pulse signal of this second input pulse signal.
Step 303, the frequency division value D according to setting and frequency multiplication value M, and this gap count value K, using formula (1):
N=K × D ÷ M (1)
Obtain and count reference value P, wherein, this P is the integer part of this N.
In the present embodiment, this first gap count value is more than or equal to predetermined threshold value;This predetermined threshold value is according to precision Require setting.
After step 304, printing enable, start and counted using clock counter.
Step 305, judge that whether the numerical value of sampling clock rolling counters forward be more than or equal to this counting reference value P;If big In or be equal to, then execution step 306;If being less than, wait this sampling clock rolling counters forward cumulative after execution step again 305.
Step 306, output pulse signal, and this sampling clock is counted with device clearing.
Whether step 307, judge to print and terminate;If being not over, execution step 304.If terminating, flow process stops.
In the present embodiment, for example, assume the pulse interval of encoder input to be counted, between obtaining Be K=3000 every count value, and assume that encoder input signal is ideal, output needs to do 2 frequencys multiplication, then divide/times Frequency can be set to 1/2,100/200 or 1000/2000, then using formula (1), and counting reference value P obtaining is 1500.
If the encoder input signal cycle is less than normal compared with theoretical value, can arrange frequency dividing/frequency multiplication is 1000/1998, that Adopt formula (1), counting reference value P obtaining is 1501.Again assume that frequency dividing/frequency multiplication is set to 1000/1997, then adopt Formula (1), counting reference value P obtaining is 1502.It follows that by arranging frequency dividing/frequency multiplication, entering to the pulse signal of output Row adjustment, can reach a sampling clock cycle, such precision just can meet the requirement of printing precision.
In the same manner, if encoder input signal is bigger than normal compared with theoretical value, can also be by arranging frequency dividing/frequency multiplication so that P is 1499th, 1498,1497 etc., thus also disclosure satisfy that the requirement of printing precision.
In addition, in the case that a frequency dividing times frequency ratio is not integer, such as P=1501 or 1499, then corresponding, is defeated Enter encoder pulse interval (i.e. gap count value) nor corresponding integer output pulse signal, but the pulse signal of output To count reference value for strict reference, that is, more than or equal to P, then output pulse signal is laid equal stress on New count;Then continue to count less than P, The response of the pulse signal of the output pulse signal to input coding device with the continuous real-time update of K and P, can be fully achieved With follow it is ensured that printing precision.
Further, in another embodiment of the present invention, on the basis of example shown in above-mentioned Fig. 3, the method is also Including:
When this first gap count value is updated to the second gap count value, according to this second gap count value, this frequency dividing Value D and frequency multiplication value M, using this formula, obtain the second counting reference value.
Then step 305 replaces with:
The numerical value judging this sampling clock rolling counters forward whether more than or equal to this second counting reference value, if more than or It is equal to, then execution step 306;If being less than, wait this sampling clock rolling counters forward cumulative after execution step 305 again.
In the present embodiment, because the speed of service of stock is variable, therefore, K is likely to changing always, because , can there are two kinds of special situations of comparison in this:The first situation, the numerical value of sampling clock rolling counters forward are less than or equal to first When counting reference value, this first gap count value is updated to the second gap count value, then the numerical value of sampling clock rolling counters forward Can be compared with the second counting reference value.The number of times that second situation, sampling clock count device stored count has been over First gap count value, but the first gap count value does not also update, then the numerical value of sampling clock rolling counters forward still can be with First counting reference value is compared, until first counts reference value renewal.
One of ordinary skill in the art will appreciate that:The all or part of step realizing above-mentioned each method embodiment can be led to Cross the related hardware of programmed instruction to complete.Aforesaid program can be stored in a computer read/write memory medium.This journey Sequence upon execution, executes the step including above-mentioned each method embodiment;And aforesaid storage medium includes:ROM, RAM, magnetic disc or Person's CD etc. is various can be with the medium of store program codes.
Fig. 4 is the structural representation of an embodiment of processing meanss of printing precision of the present invention, as shown in figure 4, this reality The device applying example includes:Count reference value acquisition module 11 and output of pulse signal module 12;Wherein, count reference value and obtain mould Block 11 is used for the frequency division value D and frequency multiplication value M according to setting, and gap count value K obtaining, using formula N=K × D ÷ M, Obtain and count reference value P, wherein, described P is the integer part of described N;This first gap count value is more than or equal to default threshold Value;This predetermined threshold value is according to required precision setting.Output of pulse signal module 12, for counting reference value P according to described, Output pulse signal.
The processing meanss of the printing precision of the present embodiment can execute the technical scheme of embodiment of the method shown in Fig. 1, in fact Existing principle is similar, and here is omitted.
In the present embodiment, the frequency division value D according to setting and frequency multiplication value M, and gap count value K obtaining, using public affairs Formula N=K × D ÷ M, obtains and counts reference value P, wherein, this P is the integer part of this N;And according to this counting reference value P, export Pulse signal.Because the first gap count value is more than or equal to predetermined threshold value, and predetermined threshold value is according to accuracy requirement setting, Therefore, carrying out remainder process, that is, after referring to the integer part of acquisition N, error can reduced, thus being effectively improved printing essence Degree.In addition, algorithm actually uses the ratio of D and M, therefore, the numerical values recited of D and M is not limited, divide and frequency multiplication Degree of regulation can be as accurate as a system sampling clock cycle, far beyond the demand of printing precision, and no process remainder Difficulty, therefore, it is possible to the circularity of correct reflection coder structure, the problem of concentricity, and user's request can be met.
Fig. 5 is the structural representation of another embodiment of processing meanss of printing precision of the present invention, shown in above-mentioned Fig. 4 On the basis of embodiment, as shown in figure 5, this device can also include:Gap count value acquisition module 13, works as calculating to obtain Gap count value K between front moment the first input pulse signal and the second input pulse signal, this first input pulse signal Previous pulse signal for this second input pulse signal.
Preferably, output of pulse signal module 12 includes:Enabling unit 121, judging unit 122 and output unit 123;Make Unit 121 can be used for printing enable, and start sampling clock counting device and counted;When judging unit 122 is used for judging sampling Whether the numerical value of clock rolling counters forward is more than or equal to this counting reference value P;Output unit 123, if should for this judging unit The numerical value of sampling clock rolling counters forward is more than or equal to this counting reference value P, then output pulse signal, and to this sampling clock Counter O reset.
Preferably, if this first gap count value is updated to the second gap count value by this gap count value acquisition module 13 When, then flip-flop number reference value acquisition module 11 is according to this second gap count value, this frequency division value D and frequency multiplication value M, using this public affairs Formula, obtains the second counting reference value;
Then this judging unit 122 be additionally operable to judge the numerical value of this sampling clock rolling counters forward whether more than or equal to this Two counting reference values;
If this output unit 123 is additionally operable to this judging unit judge to be more than or equal to, output pulse signal, and to this Sampling clock counts device and resets.
Finally it should be noted that:Various embodiments above only in order to technical scheme to be described, is not intended to limit;To the greatest extent Pipe has been described in detail to the present invention with reference to foregoing embodiments, it will be understood by those within the art that:Its according to So the technical scheme described in foregoing embodiments can be modified, or wherein some or all of technical characteristic is entered Row equivalent;And these modifications or replacement, do not make the essence of appropriate technical solution depart from various embodiments of the present invention technology The scope of scheme.

Claims (4)

1. a kind of processing method of printing precision is it is characterised in that include:
Frequency division value D according to setting and frequency multiplication value M, and the first gap count value K of the current time obtaining, using formula N =K × D ÷ M, obtains the first counting reference value P, and wherein, described first counting reference value P is the integer part of described N;Described First gap count value is more than or equal to predetermined threshold value;Described predetermined threshold value is according to required precision setting;
According to the described first counting reference value P, output pulse signal;
The acquisition modes of described gap count value are:
Calculate the first gap count value K obtaining between current time the first input pulse signal and the second input pulse signal, Described first input pulse signal is the previous pulse signal of described second input pulse signal.
2. the processing method of printing precision according to claim 1 is it is characterised in that described count ginseng according to described first Examine value P, output pulse signal, including:
When printing enable, start sampling clock counting device and counted;
If the numerical value of described sampling clock rolling counters forward is more than or equal to described first counting reference value P, output pulse letter Number, and described sampling clock is counted with device clearing.
3. a kind of processing meanss of printing precision are it is characterised in that include:
Count reference value acquisition module, for the frequency division value D according to setting and frequency multiplication value M, and gap count value K obtaining, Using formula N=K × D ÷ M, obtain and count reference value P, wherein, described P is the integer part of described N;Described gap count value More than or equal to predetermined threshold value;Described predetermined threshold value is according to required precision setting;
Output of pulse signal module, for according to described counting reference value P, output pulse signal;
Gap count value acquisition module, obtains current time the first input pulse signal and the second input pulse signal for calculating Between gap count value K, described first input pulse signal is the previous pulse signal of described second input pulse signal.
4. the processing meanss of printing precision according to claim 3 are it is characterised in that described output of pulse signal module bag Include:
Enabling unit, for print enable, and start sampling clock count device counted;
Whether judging unit, for judging the numerical value of sampling clock rolling counters forward more than or equal to described counting reference value P;
Output unit, if the numerical value for described judging unit described sampling clock rolling counters forward is more than or equal to described counting Reference value P, then output pulse signal, and described sampling clock is counted with device clearing.
CN201310499632.2A 2013-10-22 2013-10-22 Printing precision processing method and device Expired - Fee Related CN104553382B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310499632.2A CN104553382B (en) 2013-10-22 2013-10-22 Printing precision processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310499632.2A CN104553382B (en) 2013-10-22 2013-10-22 Printing precision processing method and device

Publications (2)

Publication Number Publication Date
CN104553382A CN104553382A (en) 2015-04-29
CN104553382B true CN104553382B (en) 2017-02-15

Family

ID=53070887

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310499632.2A Expired - Fee Related CN104553382B (en) 2013-10-22 2013-10-22 Printing precision processing method and device

Country Status (1)

Country Link
CN (1) CN104553382B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109572216B (en) * 2018-12-24 2020-01-03 北京美科艺数码科技发展有限公司 Printing method of ink-jet printer
CN114347679B (en) * 2021-12-31 2022-11-29 东莞市启思达智能技术有限公司 Variable-precision signal processing method and system

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100353669C (en) * 2002-04-17 2007-12-05 湖南科技大学 Virtual signal generator for generating square wave by remainder interpolation comparision
CN100441413C (en) * 2007-03-07 2008-12-10 深圳市润天智图像技术有限公司 Printing device capable of adjusting output resolution ratio
CN101508201B (en) * 2009-03-18 2011-03-30 黄进 Ink droplet falling-point control method in ink jet printing
JP5644091B2 (en) * 2009-11-11 2014-12-24 セイコーエプソン株式会社 RECORDING CONTROL DEVICE, RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND PROGRAM
CN102035472B (en) * 2010-10-29 2013-02-06 中国兵器工业集团第二一四研究所苏州研发中心 Programmable digital frequency multiplier
CN102173200A (en) * 2011-01-10 2011-09-07 西安电子科技大学 Ink droplet droppoint deviation compensation method in bidirectional printing of inkjet printer
JP2012223947A (en) * 2011-04-18 2012-11-15 Canon Inc Print control apparatus, and control method thereof
CN103182864B (en) * 2011-12-31 2015-05-20 北大方正集团有限公司 Digital printing synchronous control device and control method
CN202904429U (en) * 2012-11-19 2013-04-24 四川和芯微电子股份有限公司 Circuit for producing universal serial bus (USB) peripheral clock
CN103248356B (en) * 2013-05-20 2016-01-20 上海理工大学 A kind of counter and implementation method based on adopting phase-locked loop pulse interpolation technology

Also Published As

Publication number Publication date
CN104553382A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
CN104553382B (en) Printing precision processing method and device
CN101934358B (en) Casting flow tracking system of continuous casting machine
CN102298359A (en) Method for controlling acceleration and deceleration in numerical control system to transit smoothly
Yuan et al. Research on the energy-saving effect of energy policies in China: 1982–2006
CN100549979C (en) The CPU usage detection method and the system of system task
CN101794299B (en) Method for increment definition and processing of historical data management
CN106020122B (en) Digital controlled tracing control method based on Newton iteration
CN112667613B (en) Flue gas NOx prediction method and system based on multi-delay characteristic multivariable correction
CN102244554A (en) Blind recognition method of punctured Turbo coding parameters
JP6050634B2 (en) Machining time prediction device taking into account the processing capacity of the numerical controller
CN107422995A (en) A kind of solid state disk write bandwidth adjusting method and device
CN111815973B (en) Signalized intersection analysis method and related equipment
CN106033345A (en) Method and device for controlling CPU utilization rate
JP5056853B2 (en) Speed detection method and motor control apparatus using the same
CN101561766A (en) Low-expense block synchronous method supporting multi-core assisting thread
CN102368076B (en) Card feeding speed testing method and device
CN107368041B (en) A kind of S curve Acceleration-deceleration Control Method based on rolling average algorithm
CN103217197A (en) Flow meter device and method of operation
NL7906969A (en) POINT MATRIX SIGN PRINTER WITH VARIABLE SPEED CONTROL.
CN114279483A (en) Low-power-consumption multi-turn encoder turn number error correction method
CN105523210B (en) A kind of Intelligent counting method of flow bottle placer and the device for realizing this method
CN103178832B (en) A kind of number of turns recording method utilizing incremental encoder
CN203366138U (en) A flow control system
CN101369130B (en) Pulse output function for programmable logic controller
CN102244555A (en) Blind identification method for coding parameter of Turbo code

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220621

Address after: 3007, Hengqin international financial center building, No. 58, Huajin street, Hengqin new area, Zhuhai, Guangdong 519031

Patentee after: New founder holdings development Co.,Ltd.

Patentee after: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

Address before: 100871, Beijing, Haidian District, Cheng Fu Road, No. 298, Zhongguancun Fangzheng building, 9 floor

Patentee before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee before: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170215