CN103692786A - Curve printing control method and device applied to paper recording instrument - Google Patents
Curve printing control method and device applied to paper recording instrument Download PDFInfo
- Publication number
- CN103692786A CN103692786A CN201310693000.XA CN201310693000A CN103692786A CN 103692786 A CN103692786 A CN 103692786A CN 201310693000 A CN201310693000 A CN 201310693000A CN 103692786 A CN103692786 A CN 103692786A
- Authority
- CN
- China
- Prior art keywords
- distance
- curve
- dead
- module
- 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.)
- Granted
Links
Images
Landscapes
- Record Information Processing For Printing (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
The invention discloses a curve printing control method and a curve printing control device applied to a paper recording instrument. The method comprises the following steps that when communication frames sent by a main processor of the paper recording instrument are received, the communication frames are analyzed, and the positions of curves to be printed are obtained; the positions of the curves to be printed are sequentially ranged in a sequence from large size to small size, and the first position, the second position to the Nth position are obtained, wherein N is an integer, the sequenced adjacent positions are subtracted to obtain (N-1) distances; the first position or the Nth position is used as the zero-point position; a printing module is driven to sequentially move the (N-1) distances from the zero-point position, and the curves to be printed are printed. When the method and the device provided by the invention are adopted, the curve printing by using the paper recording instrument can be realized.
Description
Technical field
The present invention relates to industrial control technology field, particularly a kind of curve printing control method and device that is applied to paper recorder.
Background technology
In the prior art, there is paper recorder can gather the data message of industry spot, and can gather data message be printed, thereby realize the record to industry spot data; Wherein, due in the prior art, there is paper recorder all with curve mode, to print image data.Therefore, in the prior art, as Poly is becoming study hotspot with there being paper recorder to print curve.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of curve printing control method and device that is applied to paper recorder, to realize utilizing, have paper recorder to print curve.
For achieving the above object, the invention provides following technical scheme:
A curve printing control method that is applied to paper recorder, comprising:
When receiving the communication frame that the primary processor of paper recorder sends, resolve described communication frame, obtain the position that needs to print curve;
The described position of printing curve that needs is arranged in order according to size order, obtains primary importance, the second place until N position; Wherein, described N is integer;
Adjacent position after sequence is poor, obtain N-1 distance;
Using described primary importance or N position as dead-center position;
Drive print module from described dead-center position, a mobile described N-1 distance, prints the described curve that needs to print successively.
Preferably, when by described position of need printing curve during according to ascending sequence, described dead-center position is primary importance.
Preferably, when described N-1 distance be respectively the first distance, second distance until N-1 apart from time, described driving print module is from described dead-center position, a mobile N-1 distance successively, prints the described printing curve that needs, and comprising:
Driving described print module to skip to described primary importance place prints;
Drive described print module to move described the first distance from described primary importance, arrive first object position and print;
Drive described print module to move described second distance from described first object position, arrive the second target location and print, the like, until mobile N-1 distance, till arrival N-1 target location prints.
Preferably, when the described position that need print curve is arranged according to descending order, described dead-center position is N position.
Preferably, when described N-1 distance be respectively the first distance, second distance until N-1 apart from time, described driving print module is from described dead-center position, a mobile described N-1 distance, prints and needs printing curve successively, comprising:
Driving described print module to skip to described N position prints;
Drive described print module to move described N-1 distance from described N position, arrive first object position and print;
Drive described print module to move N-2 distance from described first object position, arrive the second target location and print, the like, until move to the first distance, till arrival N-1 target location prints.
Preferably, the length of described communication frame and form are fixing.
A curve printing control device that is applied to paper recorder, comprising:
Parsing module is used for, and when receiving the communication frame that the primary processor of paper recorder sends, resolves described communication frame, obtains the position that needs to print curve;
Order module is used for, and the described position of printing curve that needs is arranged in order according to size order, obtains primary importance, the second place until N position; Wherein, described N is integer;
Do differential mode piece for, by sequence after adjacent position poor, obtain N-1 distance;
Dead-center position acquisition module is used for, using described primary importance or N position as dead-center position;
Driver module is used for, and drives print module from described dead-center position, and a mobile described N-1 distance, prints the described curve that needs to print successively.
Preferably, when sorted from small to large in the described position that need print curve, described dead-center position is primary importance.
Preferably, when sorted from big to small in the described position that need print curve, described dead-center position is N position.
Preferably, the length of described communication frame and form are fixing.
By above-mentioned technical scheme, can be found out, in embodiments of the present invention, when receiving the communication frame that the primary processor of paper recorder sends, first can resolve communication frame, obtain the position that needs to print curve; Then arrange according to size order the position that need can be printed to curve, obtains primary importance, the second place until N position, and wherein N is integer; Then the adjacent position after arranging is poor again, obtain N-1 distance and using primary importance or N position as dead-center position; Finally can drive print module from dead-center position, a mobile N-1 distance, prints and needs to print curve successively; Therefore, adopt method of the present invention and device, having realized utilization has paper recorder to print curve.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the disclosed curve printing control method flow chart that is applied to paper recorder of the embodiment of the present invention;
Fig. 2 is disclosed another flow chart that is applied to the curve printing control method of paper recorder of the embodiment of the present invention;
Fig. 3 is the disclosed another flow chart that is applied to the curve printing control method of paper recorder of the embodiment of the present invention;
Fig. 4 is the disclosed module map that is applied to the curve printing control device of paper recorder of the embodiment of the present invention.
The specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The invention discloses a kind of curve printing control method that is applied to paper recorder, as shown in Figure 1, the method at least comprises the following steps:
S11: default from processor when receiving the communication frame that the primary processor of paper recorder sends, resolve communication frame, obtain the position that needs to print curve;
Concrete, the length of communication frame and form are fixing; Because the form of communication frame of the prior art is unfixed, adopt so undoubtedly the communication frame of regular length can improve communication efficiency; And the position that now, can suppose obtained need printing curve is respectively 10,15,13,8 and 6;
S12: the position of need being printed to curve from processor is arranged in order according to size order, obtains primary importance, the second place until N position; Wherein, N is integer;
Concrete, still continue to use that above-mentioned order sequence is from small to large carried out in the position that above-mentioned 5 need are printed to curve for example, can obtain primary importance and be 6, the second place is that the 8, the 3rd position is that the 10, the 4th position is that the 13 and the 5th position is 15;
In like manner, above-mentioned 5 need are printed to the position of curve and carried out order sequence from large to small, can obtain primary importance and be 15, the second place is that the 13, the 3rd position is that the 10, the 4th position is that the 8 and the 5th position is 6;
S13: from processor, the adjacent position sequence is poor, obtain N-1 distance;
Concrete, still continue to use above-mentioned giving an example, when primary importance is 6, the second place is that the 8, the 3rd position is that the 10, the 4th position is that the 13 and the 5th position is while being 15, now that adjacent position is poor, 4 distances of acquisition can be respectively first apart from 2(8-6=2), second distance 2(10-8=2), the 3rd apart from 3(13-10=3) and the 4th apart from 2(15-13=2);
In like manner, when primary importance is 15, the second place is that the 13, the 3rd position is that the 10, the 4th position is that the 8 and the 5th position is while being 6, now that adjacent position is poor, 4 distances of acquisition can be respectively first apart from 2(15-13=2), second distance 3(13-10=3), the 3rd apart from 2(10-8=2) and the 4th apart from 2(8-6=2);
S14: from processor using primary importance or N position as dead-center position;
Concrete, when need being printed to the position of curve while sorting from small to large, dead-center position is primary importance; And when need being printed to the position of curve while sorting from big to small, dead-center position is N position;
S15: drive print module from dead-center position, a mobile N-1 distance, prints and need to print curve successively;
Therefore, in embodiments of the present invention, when receiving the communication frame that the primary processor of paper recorder sends, first can resolve communication frame, obtain the position that needs to print curve; Then need can be printed to curve location and arrange according to size order, obtain primary importance, the second place until N position; Then the adjacent position after arranging is poor again, obtain N-1 distance and using primary importance or N position as dead-center position; Finally can drive print module from dead-center position, a mobile N-1 distance, prints and needs to print curve successively; Therefore, adopt method of the present invention, having realized utilization has paper recorder to print curve.
In other embodiment of the present invention, when the position of need being printed to curve is during according to ascending arrangement, the dead-center position in above-mentioned all embodiment is primary importance; And corresponding with it, as shown in Figure 2, the step S15 in above-mentioned all embodiment can be specially:
S21: drive print module to skip to primary importance place and print;
Concrete, still continue to use above-mentioned giving an example, now primary importance is 6, therefore drives print module to skip to primary importance 6 places and prints;
S22: drive print module to move the first distance from primary importance, arrive first object position and print;
Concrete, still continue to use above-mentioned giving an example, now the first distance is 2, therefore drives print module to move the first distance 2 from primary importance 6, arrives 8 of first object positions and prints;
S23: drive print module to move second distance from first object position, arrive the second target location and print, the like, until move to N-1 distance, till arrival N-1 target location prints.
Concrete, this continues to use above-mentioned giving an example, and now N=5, and driving print module moves second distance 2 from first object position 8, and in the second target location, 10 places print; The like, until at 13 places, the 3rd target location, move the 4th distance 2, till arrival 15 places, the 4th target location print.
Therefore, method of the present invention, the position that directly drives print module to skip to required printing curve prints, and in prior art, is whether every driving print module takes a step forward, check once now to print; Therefore, adopt method of the present invention, improved undoubtedly print speed.
In other embodiment of the present invention, when arrange according to descending order the position of need being printed to curve, the dead-center position in above-mentioned all embodiment is N position; Corresponding with it, as shown in Figure 3, the step S15 in above-mentioned all embodiment can specifically comprise:
S31: drive print module to skip to N position and print;
Concrete, still continue to use above-mentioned for example, N=5 now, when the position of need being printed to curve is during according to descending order sequence, now N position is 6, directly drives print module to skip to 6 places, the 5th position and prints;
S32: drive print module to move N-1 distance from N position, arrive first object position and print;
Concrete, now can drive print module from the 5th position 6, to move the 4th distance 2, arrive 8 places, first object position and print;
S33: drive print module to move N-2 distance from first object position, arrive the second target location and print, the like, until move to the first distance, till arriving N-1 target location and printing.
Concrete, now can drive print module from first object position 8, to move the 3rd distance 2, arrive 10 places, the second target location and print, the like, until move to the first distance 2, till arrival the 4th target location prints.
Therefore, method of the present invention, the position that directly drives print module to skip to required printing curve prints, and in prior art, is whether every driving print module takes a step forward, check once now to print; Therefore, adopt method of the present invention, improved undoubtedly print speed.
The invention also discloses a kind of curve printing control device of being applied to paper recorder corresponding with said method, as shown in Figure 4, comprising:
Parsing module 41 for, when receiving the communication frame that the primary processor of paper recorder sends, resolve communication frame, obtain the position that needs to print curve;
Concrete, the length of above-mentioned communication frame and form are fixing;
Order module 42 for, need are printed to the position of curve and are sorted successively according to size order, obtain primary importance, the second place until N position; Wherein, N is integer;
Do differential mode piece 43 for, by sequence after adjacent position poor, obtain N-1 distance;
Dead-center position acquisition module 44 for, using primary importance or N position as dead-center position;
Concrete, when need being printed to the position of curve while arranging from small to large, above-mentioned dead-center position is primary importance; And when the position that need are printed curve is arranged from big to small, above-mentioned dead-center position is N position;
Driver module 45 for, drive print module from dead-center position, a mobile N-1 distance, prints and needs printing curve successively.
Therefore, in embodiments of the present invention, when receiving the communication frame that the primary processor of paper recorder sends, first can resolve communication frame, obtain the position that needs to print curve; Then need can be printed to curve location and arrange according to size order, obtain primary importance, the second place until N position; Then the adjacent position after arranging is poor again, obtain N-1 distance and using primary importance or N position as dead-center position; Finally can drive print module from dead-center position, a mobile N-1 distance, prints and needs to print curve successively; Therefore, adopt device of the present invention, having realized utilization has paper recorder to print curve.
It should be noted that, the above-mentioned function that is applied to the curve printing control device of paper recorder can be specifically in default realizing from processor; And will there be the original processor of paper recorder (primary processor) and the newly-increased task from processor to separate, its primary processor can mainly be responsible for external information acquisition and processing, the output of reporting to the police, button is caught and the task such as content demonstration, and can mainly be responsible for print out task from processor.And primary processor with from processor, can specifically by RS485 bus, be connected.
For parsing module 41, order module 42, each refinement function of making differential mode piece 43, dead-center position acquisition module 44 and driver module 45, can, referring to the record of said method, not repeat them here.
Above-mentioned explanation to the disclosed embodiments, makes professional and technical personnel in the field can realize or use the present invention.To the multiple modification of these embodiment, will be apparent for those skilled in the art, General Principle as defined herein can, in the situation that not departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.
Claims (10)
1. a curve printing control method that is applied to paper recorder, is characterized in that, comprising:
When receiving the communication frame that the primary processor of paper recorder sends, resolve described communication frame, obtain the position that needs to print curve;
The described position of printing curve that needs is arranged in order according to size order, obtains primary importance, the second place until N position; Wherein, described N is integer;
Adjacent position after sequence is poor, obtain N-1 distance;
Using described primary importance or N position as dead-center position;
Drive print module from described dead-center position, a mobile described N-1 distance, prints the described curve that needs to print successively.
2. method according to claim 1, is characterized in that, when by described position of need printing curve during according to ascending sequence, described dead-center position is primary importance.
3. method according to claim 2, is characterized in that, when described N-1 distance be respectively first distance, second distance until N-1 apart from time, described driving print module is from described dead-center position, a mobile N-1 distance, prints described need and prints curve successively, comprising:
Driving described print module to skip to described primary importance place prints;
Drive described print module to move described the first distance from described primary importance, arrive first object position and print;
Drive described print module to move described second distance from described first object position, arrive the second target location and print, the like, until mobile N-1 distance, till arrival N-1 target location prints.
4. method according to claim 1, is characterized in that, when the described position that need print curve is arranged according to descending order, described dead-center position is N position.
5. method according to claim 4, is characterized in that, when described N-1 distance be respectively first distance, second distance until N-1 apart from time, described driving print module is from described dead-center position, a mobile described N-1 distance, prints and needs to print curve successively, comprising:
Driving described print module to skip to described N position prints;
Drive described print module to move described N-1 distance from described N position, arrive first object position and print;
Drive described print module to move N-2 distance from described first object position, arrive the second target location and print, the like, until move to the first distance, till arrival N-1 target location prints.
6. method according to claim 1, is characterized in that, the length of described communication frame and form are fixing.
7. a curve printing control device that is applied to paper recorder, is characterized in that, comprising:
Parsing module is used for, and when receiving the communication frame that the primary processor of paper recorder sends, resolves described communication frame, obtains the position that needs to print curve;
Order module is used for, and the described position of printing curve that needs is arranged in order according to size order, obtains primary importance, the second place until N position; Wherein, described N is integer;
Do differential mode piece for, by sequence after adjacent position poor, obtain N-1 distance;
Dead-center position acquisition module is used for, using described primary importance or N position as dead-center position;
Driver module is used for, and drives print module from described dead-center position, and a mobile described N-1 distance, prints the described curve that needs to print successively.
8. device according to claim 7, is characterized in that, when sorted from small to large in the described position that need print curve, described dead-center position is primary importance.
9. device according to claim 7, is characterized in that, when sorted from big to small in the described position that need print curve, described dead-center position is N position.
10. device according to claim 7, is characterized in that, the length of described communication frame and form are fixing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310693000.XA CN103692786B (en) | 2013-12-17 | 2013-12-17 | Be applied to curve printing control method and the device of paper recorder |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310693000.XA CN103692786B (en) | 2013-12-17 | 2013-12-17 | Be applied to curve printing control method and the device of paper recorder |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103692786A true CN103692786A (en) | 2014-04-02 |
CN103692786B CN103692786B (en) | 2016-04-20 |
Family
ID=50354522
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310693000.XA Active CN103692786B (en) | 2013-12-17 | 2013-12-17 | Be applied to curve printing control method and the device of paper recorder |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103692786B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105346270A (en) * | 2015-12-22 | 2016-02-24 | 广东金赋信息科技有限公司 | Tax receipt printer provided with paper clamping blade position control device |
CN109743187A (en) * | 2018-11-23 | 2019-05-10 | 北京奇安信科技有限公司 | Industry control network method for detecting abnormality and device |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4540000A (en) * | 1983-12-15 | 1985-09-10 | Ocg Technology Inc. | Signal conditioner for biological signals |
JPH09192112A (en) * | 1996-01-23 | 1997-07-29 | Hitachi Medical Corp | Electrocardiogram waveform detection and display device for medical image diagnostic device |
JP2000326581A (en) * | 1999-05-20 | 2000-11-28 | Canon Inc | Printing apparatus control method therefor, recording medium readable by computer storing control program therefor, printing control device and method, and recording medium readable by computer storing the control program |
JP2003178271A (en) * | 2001-12-12 | 2003-06-27 | Canon Finetech Inc | Communication device, recorder, communication control method, storage medium and program |
CN1759805A (en) * | 2004-10-12 | 2006-04-19 | 戴路 | Portable analyzer of electrocardiogram in 12 tracks |
JP2006294064A (en) * | 2006-07-18 | 2006-10-26 | Seiko Epson Corp | Printing system, printing control device in printing system, printing device and printing cancellation control method |
CN1959572A (en) * | 2005-10-31 | 2007-05-09 | 雅马哈精密科技株式会社 | Processing device and processing method |
CN102555549A (en) * | 2010-12-02 | 2012-07-11 | 精工爱普生株式会社 | Printing device and control method therefor |
CN102579038A (en) * | 2012-03-28 | 2012-07-18 | 深圳市理邦精密仪器股份有限公司 | Method and device for automatically configuring electrocardiographic wave data |
-
2013
- 2013-12-17 CN CN201310693000.XA patent/CN103692786B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4540000A (en) * | 1983-12-15 | 1985-09-10 | Ocg Technology Inc. | Signal conditioner for biological signals |
JPH09192112A (en) * | 1996-01-23 | 1997-07-29 | Hitachi Medical Corp | Electrocardiogram waveform detection and display device for medical image diagnostic device |
JP2000326581A (en) * | 1999-05-20 | 2000-11-28 | Canon Inc | Printing apparatus control method therefor, recording medium readable by computer storing control program therefor, printing control device and method, and recording medium readable by computer storing the control program |
JP2003178271A (en) * | 2001-12-12 | 2003-06-27 | Canon Finetech Inc | Communication device, recorder, communication control method, storage medium and program |
CN1759805A (en) * | 2004-10-12 | 2006-04-19 | 戴路 | Portable analyzer of electrocardiogram in 12 tracks |
CN1959572A (en) * | 2005-10-31 | 2007-05-09 | 雅马哈精密科技株式会社 | Processing device and processing method |
JP2006294064A (en) * | 2006-07-18 | 2006-10-26 | Seiko Epson Corp | Printing system, printing control device in printing system, printing device and printing cancellation control method |
CN102555549A (en) * | 2010-12-02 | 2012-07-11 | 精工爱普生株式会社 | Printing device and control method therefor |
CN102579038A (en) * | 2012-03-28 | 2012-07-18 | 深圳市理邦精密仪器股份有限公司 | Method and device for automatically configuring electrocardiographic wave data |
Non-Patent Citations (1)
Title |
---|
荆楠: "《基于热敏打印的心电曲线平滑算法的研究及实现》", 《电子器件》, vol. 29, no. 4, 31 December 2006 (2006-12-31), pages 1196 - 1199 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105346270A (en) * | 2015-12-22 | 2016-02-24 | 广东金赋信息科技有限公司 | Tax receipt printer provided with paper clamping blade position control device |
CN105346270B (en) * | 2015-12-22 | 2017-12-29 | 广东金赋科技股份有限公司 | A kind of tax reciept printer provided with holding paper leaf position control device |
CN109743187A (en) * | 2018-11-23 | 2019-05-10 | 北京奇安信科技有限公司 | Industry control network method for detecting abnormality and device |
Also Published As
Publication number | Publication date |
---|---|
CN103692786B (en) | 2016-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106201191A (en) | The batch processing method of a kind of icon, device and mobile terminal | |
DE602006010998D1 (en) | PROVISION OF TRAFFIC INFORMATION IN RELATION TO THE PREDICTION OF SPEED ON CONNECTION AND USE OF THE SPEED | |
CN103345493B (en) | Method that content of text on mobile terminal shows, Apparatus and system | |
EP2741425A3 (en) | Method and apparatus to establish a communication connection | |
EP2775393A3 (en) | Mobile terminal device, and method and computer readable medium for the same | |
TW200712640A (en) | Apparatus for driving a flat panel display and repair flat panel display signal line | |
CN105991764A (en) | Apparatus and method for transmitting traffic-related data in road traffic | |
EP1916813A3 (en) | Gateway apparatus and data transfer control method | |
CN106254043A (en) | Method, base station and the target terminal of a kind of data transmission | |
CN103692786A (en) | Curve printing control method and device applied to paper recording instrument | |
DE602006007583D1 (en) | PROVISION OF TRANSPORT INFORMATION CONTAINING COMPOUND CONNECTIONS | |
CN101520907A (en) | System for uploading and downloading EduToHome data based on RFID | |
ATE509449T1 (en) | METHOD AND DEVICE FOR PLANNING DATA PACKET STREAMS | |
EP2582080A3 (en) | Adaptive traffic manager for wireless applications | |
EP2326014A3 (en) | Error detecting/correcting code generating circuit and method of controlling the same | |
CN203179473U (en) | LED cellular box body | |
CN103916488A (en) | Method and device for bidirectional address configuration of parallel display control system | |
CN201927187U (en) | Bus stop light emitting diode (LED) display screen system | |
JP2010537490A5 (en) | ||
WO2003073830A3 (en) | Method for allowing plug-in architecture for digital echocardiography lab image processing applications | |
CN203102607U (en) | Multifunctional electronic bus stop board | |
RU2017113070A (en) | METHOD, TERMINAL, AND SERVER FOR DISPLAYING INFORMATION | |
CN202243554U (en) | Station announcement and display screen for light rail train | |
US20120023474A1 (en) | Printed circuit board layout system and method for printed circuit board layout | |
CN106559533A (en) | A kind of handset remote controller, remote control systems and method |
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 |