CN103692786B - Be applied to curve printing control method and the device of paper recorder - Google Patents

Be applied to curve printing control method and the device of paper recorder Download PDF

Info

Publication number
CN103692786B
CN103692786B CN201310693000.XA CN201310693000A CN103692786B CN 103692786 B CN103692786 B CN 103692786B CN 201310693000 A CN201310693000 A CN 201310693000A CN 103692786 B CN103692786 B CN 103692786B
Authority
CN
China
Prior art keywords
print
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.)
Active
Application number
CN201310693000.XA
Other languages
Chinese (zh)
Other versions
CN103692786A (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.)
Chongqing Chuanyi Automation Co Ltd
Original Assignee
Chongqing Chuanyi Automation 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 Chongqing Chuanyi Automation Co Ltd filed Critical Chongqing Chuanyi Automation Co Ltd
Priority to CN201310693000.XA priority Critical patent/CN103692786B/en
Publication of CN103692786A publication Critical patent/CN103692786A/en
Application granted granted Critical
Publication of CN103692786B publication Critical patent/CN103692786B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Record Information Processing For Printing (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The invention discloses a kind of the curve printing control method and the device that are applied to paper recorder, the method comprises: when the communication frame that the primary processor receiving paper recorder sends, and resolves communication frame, obtains the position that need print curve; The position that need print curve is arranged in order according to size order, obtains primary importance, the second place until N position; Wherein, N is integer; By poor for the adjacent position after sequence, obtain N-1 distance; Using primary importance or N position as dead-center position; Drive print module from dead-center position, move N-1 distance successively, printing need print curve; Adopt method of the present invention and device, can realize utilization has paper recorder to print curve.

Description

Be applied to curve printing control method and the device of paper recorder
Technical field
The present invention relates to technical field of industrial control, particularly a kind of curve printing control method and device being 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, thus realize the record to industrial field data; Wherein, due in the prior art, paper recorder is had all to print image data with curve mode.Therefore, in the prior art, how to utilize paper recorder to print curve and become study hotspot.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of the curve printing control method and the device that are applied to paper recorder, have paper recorder to print curve to realize utilization.
For achieving the above object, the invention provides following technical scheme:
Be applied to a curve printing control method for paper recorder, comprise:
When the communication frame that the primary processor receiving paper recorder sends, resolve described communication frame, obtain the position that need print curve;
The described position that need print curve is arranged in order according to size order, obtains primary importance, the second place until N position; Wherein, described N is integer;
By poor for the adjacent position after sequence, obtain N-1 distance;
Using described primary importance or N position as dead-center position;
Drive print module from described dead-center position, move a described N-1 distance successively, print and describedly need print curve.
Preferably, when by the described position that need print curve according to ascending sequence time, described dead-center position is primary importance.
Preferably, when a described N-1 distance be respectively the first distance, second distance until N-1 distance time, described driving print module, from described dead-center position, moves N-1 distance successively, prints describedly need print curve, comprising:
Drive described print module to skip to described first position to print;
Drive described print module to move described 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, arrive till N-1 target location prints.
Preferably, when being arranged according to descending order the described position that need print curve, described dead-center position is N position.
Preferably, when a described N-1 distance be respectively first distance, second distance until N-1 distance time, described driving print module is from described dead-center position, and move a described N-1 distance successively, printing need print curve, comprising:
Drive described print module to skip to described N position to print;
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, arrive till N-1 target location prints.
Preferably, the length of described communication frame and form are fixing.
Be applied to a curve printing control device for paper recorder, comprise:
Parsing module is used for, and when the communication frame that the primary processor receiving paper recorder sends, resolves described communication frame, obtains the position that need print curve;
Order module is used for, and is arranged in order the described position that need print curve according to size order, obtains primary importance, the second place until N position; Wherein, described N is integer;
Do differential mode block 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, moves a described N-1 distance successively, print and describedly need print curve.
Preferably, when being sorted from small to large the described position that need print curve, described dead-center position is primary importance.
Preferably, when being sorted from big to small 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.
As can be seen from above-mentioned technical scheme, in embodiments of the present invention, when the communication frame that the primary processor receiving paper recorder sends, first can resolve communication frame, obtain the position that need print curve; Then the position that need print curve can be arranged according to size order, obtain primary importance, the second place until N position, wherein N is integer; Subsequently by poor for the adjacent position after arrangement, obtain N-1 Distance geometry using primary importance or N position as dead-center position; Finally can drive print module from dead-center position, move N-1 distance successively, printing need print curve; Therefore adopt method of the present invention and device, achieving 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, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the curve printing control method flow chart being applied to paper recorder disclosed in the embodiment of the present invention;
Fig. 2 is another flow chart being applied to the curve printing control method of paper recorder disclosed in the embodiment of the present invention;
Fig. 3 is the another flow chart being applied to the curve printing control method of paper recorder disclosed in the embodiment of the present invention;
Fig. 4 is the module map being applied to the curve printing control device of paper recorder disclosed in the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The invention discloses a kind of curve printing control method being applied to paper recorder, as shown in Figure 1, the method at least comprises the following steps:
S11: default from processor when the communication frame that the primary processor receiving paper recorder sends, resolve communication frame, obtain the position that need print curve;
Concrete, the length of communication frame and form are fixing; Form due to communication frame of the prior art is unfixed, adopts the communication frame of regular length to improve communication efficiency so undoubtedly; And now, can suppose that the position of obtained need printing curve is respectively 10,15,13,8 and 6;
S12: the position that need print 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 above-mentioned citing, order sequence is from small to large carried out in the position printing curve to above-mentioned 5 need, can obtain that primary importance is 6, the second place be the 8, the 3rd position to be the 10, the 4th position be 13 and the 5th position be 15;
In like manner, order sequence is from large to small carried out in the position above-mentioned 5 need being printed curve, can obtain that primary importance is 15, the second place be the 13, the 3rd position to be the 10, the 4th position be 8 and the 5th position be 6;
S13: from processor by poor for the adjacent position after sequence, obtain N-1 distance;
Concrete, still continue to use above-mentioned citing, when primary importance be 6, the second place be the 8, the 3rd position to be the 10, the 4th position be 13 and the 5th position be 15 time, now that adjacent position is poor, 4 distances of acquisition can be respectively the first distance 2 (8-6=2), second distance 2 (10-8=2), the 3rd distance 3 (13-10=3) and the 4th distance 2 (15-13=2);
In like manner, when primary importance be 15, the second place be the 13, the 3rd position to be the 10, the 4th position be 8 and the 5th position be 6 time, now that adjacent position is poor, 4 distances of acquisition can be respectively the first distance 2 (15-13=2), second distance 3 (13-10=3), the 3rd distance 2 (10-8=2) and the 4th distance 2 (8-6=2);
S14: from processor using primary importance or N position as dead-center position;
Concrete, when sorting from small to large in the position that need print curve, dead-center position is primary importance; And when sorting from big to small in the position that need print curve, dead-center position is N position;
S15: drive print module from dead-center position, move N-1 distance successively, printing need print curve;
Therefore, in embodiments of the present invention, when the communication frame that the primary processor receiving paper recorder sends, first can resolve communication frame, obtain the position that need print curve; Then can arrange printing curve location according to size order, obtain primary importance, the second place until N position; Subsequently by poor for the adjacent position after arrangement, obtain N-1 Distance geometry using primary importance or N position as dead-center position; Finally can drive print module from dead-center position, move N-1 distance successively, printing need print curve; Therefore adopt method of the present invention, achieving utilization has paper recorder to print curve.
In other embodiments of the present invention, when the position that need print curve is according to ascending arrangement, the dead-center position in above-mentioned all embodiments is primary importance; And corresponding with it, as shown in Figure 2, the step S15 in above-mentioned all embodiments can be specially:
S21: drive print module to skip to first position and print;
Concrete, still continue to use above-mentioned citing, now primary importance is 6, therefore drives print module to skip to primary importance 6 place and carries out printing;
S22: drive print module to move the first distance from primary importance, arrives first object position and prints;
Concrete, still continue to use above-mentioned citing, now the first distance is 2, therefore drives print module to move the first distance 2 from primary importance 6, arrives 8, first object position and print;
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, arrive till N-1 target location prints.
Concrete, this continues to use above-mentioned citing, now N=5, and drives print module to move second distance 2 from first object position 8, prints at the second target location 10 place; The like, until move the 4th distance 2 at the 3rd target location 13 place, till arrival the 4th target location 15 place prints.
Therefore, method of the present invention, Direct driver print module skips to the required position printing curve and prints, and is often drive print module to take a step forward in prior art, namely checks once now whether print; Therefore, adopt method of the present invention, improve print speed undoubtedly.
In other embodiments of the present invention, when the position that need print curve arranges according to descending order, the dead-center position in above-mentioned all embodiments is N position; Corresponding with it, as shown in Figure 3, the step S15 in above-mentioned all embodiments can specifically comprise:
S31: drive print module to skip to N position and print;
Concrete, still continue to use above-mentioned citing, now N=5, when sorting according to descending order in the position that need print curve, now N position is 6, then Direct driver print module skips to the 5th position 6 place and carries out printing;
S32: drive print module to move N-1 distance from N position, arrives first object position and prints;
Concrete, print module now can be driven from the 5th position 6 to move the 4th distance 2, arrive first object position 8 place and carry out printing;
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, arrive till N-1 target location print.
Concrete, print module now can be driven from first object position 8 to move the 3rd distance 2, arrive the second target location 10 place and print, the like, until move to the first distance 2, till arrival the 4th target location prints.
Therefore, method of the present invention, Direct driver print module skips to the required position printing curve and prints, and is often drive print module to take a step forward in prior art, namely checks once now whether print; Therefore, adopt method of the present invention, improve print speed undoubtedly.
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 the communication frame that the primary processor receiving paper recorder sends, resolve communication frame, obtain and need print the position of curve;
Concrete, the length of above-mentioned communication frame and form are fixing;
Order module 42 for, sorting successively according to size order in the position that need print curve, obtains primary importance, the second place is until N position; Wherein, N is integer;
Do differential mode block 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 the position that need print curve arranges from small to large, above-mentioned dead-center position is primary importance; And the position that need print curve is when arranging from big to small, above-mentioned dead-center position is N position;
Driver module 45 for, drive print module from dead-center position, move N-1 distance successively, printing need print curve.
Therefore, in embodiments of the present invention, when the communication frame that the primary processor receiving paper recorder sends, first can resolve communication frame, obtain the position that need print curve; Then can arrange printing curve location according to size order, obtain primary importance, the second place until N position; Subsequently by poor for the adjacent position after arrangement, obtain N-1 Distance geometry using primary importance or N position as dead-center position; Finally can drive print module from dead-center position, move N-1 distance successively, printing need print curve; Therefore adopt device of the present invention, achieving utilization has paper recorder to print curve.
It should be noted that, the above-mentioned function being applied to the curve printing control device of paper recorder can specifically realizing of presetting from processor; And the original processor of paper recorder (primary processor) and the newly-increased task from processor will be had separately, its primary processor can primary responsibility external information acquisition and processing, report to the police export, button catches and the task such as content display, and can primary responsibility print out task from processor.And primary processor can be connected especially by RS485 bus with from processor.
Parsing module 41, order module 42, each refinement function of making differential mode block 43, dead-center position acquisition module 44 and driver module 45 see the record of said method, can not repeated them here.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (6)

1. be applied to a curve printing control method for paper recorder, it is characterized in that, comprising:
When the communication frame that the primary processor receiving paper recorder sends, resolve described communication frame, obtain the position that need print curve;
The described position that need print curve is arranged in order according to size order, obtains primary importance, the second place until N position; Wherein, described N is integer;
By poor for the adjacent position after sequence, obtain N-1 distance;
Using described primary importance or N position as dead-center position;
Drive print module from described dead-center position, move a described N-1 distance successively, print and describedly need print curve;
Wherein, when by the described position that need print curve according to ascending sequence time, described dead-center position is primary importance;
When a described N-1 distance be respectively the first distance, second distance until N-1 distance time, described driving print module, from described dead-center position, moves N-1 distance successively, prints describedly need print curve, comprising:
Drive described print module to skip to described first position to print;
Drive described print module to move described 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, arrive till N-1 target location prints;
Or
When being arranged according to descending order the described position that need print curve, described dead-center position is N position;
When a described N-1 distance be respectively first distance, second distance until N-1 distance time, described driving print module is from described dead-center position, and move a described N-1 distance successively, printing need print curve, comprising:
Drive described print module to skip to described N position to print;
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, arrive till N-1 target location prints.
2. method according to claim 1, is characterized in that, the length of described communication frame and form are fixing.
3. be applied to a curve printing control device for paper recorder, it is characterized in that, comprising:
Parsing module is used for, and when the communication frame that the primary processor receiving paper recorder sends, resolves described communication frame, obtains the position that need print curve;
Order module is used for, and is arranged in order the described position that need print curve according to size order, obtains primary importance, the second place until N position; Wherein, described N is integer;
Do differential mode block 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, moves a described N-1 distance successively, print and describedly need print curve.
4. device according to claim 3, is characterized in that, when being sorted from small to large the described position that need print curve, described dead-center position is primary importance.
5. device according to claim 3, is characterized in that, when being sorted from big to small the described position that need print curve, described dead-center position is N position.
6. device according to claim 3, is characterized in that, the length of described communication frame and form are fixing.
CN201310693000.XA 2013-12-17 2013-12-17 Be applied to curve printing control method and the device of paper recorder Active CN103692786B (en)

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 CN103692786A (en) 2014-04-02
CN103692786B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105346270B (en) * 2015-12-22 2017-12-29 广东金赋科技股份有限公司 A kind of tax reciept printer provided with holding paper leaf position control device
CN109743187B (en) * 2018-11-23 2021-11-16 奇安信科技集团股份有限公司 Industrial control network anomaly detection method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4540000A (en) * 1983-12-15 1985-09-10 Ocg Technology Inc. Signal conditioner for biological signals
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
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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4540000A (en) * 1983-12-15 1985-09-10 Ocg Technology Inc. Signal conditioner for biological signals
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
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)

* Cited by examiner, † Cited by third party
Title
《基于热敏打印的心电曲线平滑算法的研究及实现》;荆楠;《电子器件》;20061231;第29卷(第4期);第1197页第1栏倒数第7行至第1198页第2栏倒数第1行及附图3-6 *

Also Published As

Publication number Publication date
CN103692786A (en) 2014-04-02

Similar Documents

Publication Publication Date Title
TW200511822A (en) Image display system with light pen
CN204480603U (en) Rimless display screen
WO2009140085A3 (en) Method and apparatus for utilizing social network information for showing reviews
CN101819755A (en) Monitor joined screen with function of displaying multi-channel video signals and realization method thereof
CN103692786B (en) Be applied to curve printing control method and the device of paper recorder
EP2741425A3 (en) Method and apparatus to establish a communication connection
CN105991764A (en) Apparatus and method for transmitting traffic-related data in road traffic
CN102368202A (en) Webpage selectable printing method for mobile terminal based on local area network
CN104317444A (en) Full-transparent frameless touch screen
CN204229781U (en) Platform board and system thereof
CN202331560U (en) Electronic price tag system for supermarkets
CN103916488A (en) Method and device for bidirectional address configuration of parallel display control system
KR101183455B1 (en) Smart led sign board system
CN205193768U (en) Touch frame of double-screen display system
CN104639242B (en) Road lamp identifies acquisition system and method
CN201927187U (en) Bus stop light emitting diode (LED) display screen system
US20120023474A1 (en) Printed circuit board layout system and method for printed circuit board layout
ITMI20121441A1 (en) NOTEBOOK AND METHOD TO DIGITIZE NOTES
CN204416255U (en) A kind of logistics warehouse goods sorting management information system
CN103149735A (en) Liquid crystal display
CN204189402U (en) A kind of sun power public transport stop board with wireless router
CN203102094U (en) Display system
CN103699629A (en) Method and device for processing chart
CN103945018A (en) Parallel display system and bi-directional address configuration method thereof
CN103179289B (en) Telecommunication service order system 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