JPH0753456B2 - Printer device - Google Patents
Printer deviceInfo
- Publication number
- JPH0753456B2 JPH0753456B2 JP7422388A JP7422388A JPH0753456B2 JP H0753456 B2 JPH0753456 B2 JP H0753456B2 JP 7422388 A JP7422388 A JP 7422388A JP 7422388 A JP7422388 A JP 7422388A JP H0753456 B2 JPH0753456 B2 JP H0753456B2
- Authority
- JP
- Japan
- Prior art keywords
- timing
- timing signal
- printer
- instruction data
- operation instruction
- 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 - Lifetime
Links
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B41—PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
- B41J—TYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
- B41J2/00—Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
- B41J2/485—Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by the process of building-up characters or image elements applicable to two or more kinds of printing or marking processes
Landscapes
- Character Spaces And Line Spaces In Printers (AREA)
Description
【発明の詳細な説明】 〔概要〕 プリンタ装置の改良に関し、 タイミング信号に同期して各種の動作を実行するプリン
タ装置において、タイミング動作処理を迅速に且つ簡単
に行うプリンタ装置を提供することを目的とし、 複数の動作指示データのそれぞれが複数のタイミング信
号計数値のそれぞれと1対1に対応するようにして複数
の動作指示データが予め書き込まれているタイミング・
フラグ・テーブルを設け、タイミング信号が生成された
時、タイミング信号計数値の更新を行い、更新された計
数値に対応する動作指示データをタイミング・フラグ・
テーブルから読み出し、読み出された動作指示データで
指定されている動作をプリンタ機構部に行わせることを
構成要件としている。The present invention relates to an improvement of a printer device, and an object of the present invention is to provide a printer device that performs various timing operations in a quick and simple manner in a printer apparatus that executes various operations in synchronization with a timing signal. The timings at which the plurality of operation instruction data are written in advance so that each of the plurality of operation instruction data has a one-to-one correspondence with each of the plurality of timing signal count values.
A flag table is provided, and when the timing signal is generated, the timing signal count value is updated, and the operation instruction data corresponding to the updated count value is set in the timing flag
The configuration requirement is that the printer mechanism unit be read from the table and the operation specified by the read operation instruction data be performed.
本発明はプリンタ装置の改良に関するものである。 The present invention relates to an improvement of a printer device.
ドット・マトリックス形式のプリンタ装置においては、
キャリア駆動モータの軸にスリット付円板を取り付け、
スリット付円板を挟むようにして発光素子と受光素子を
配置し、受光素子から出力される信号をタイミング信号
として利用している。プリンタ装置の印字や改行等の処
理において、タイミング信号と同期してヘッド・インパ
クトや改行ソレノイド通電、過電流チェック等を行う
が、個々のタイミングで何れの動作を行うかは、タイミ
ング信号同期プログラムでタイミング信号の数を計数
し、その数により条件分岐を行い決定されていた。In the dot matrix type printer device,
Attach a disc with a slit to the shaft of the carrier drive motor,
A light emitting element and a light receiving element are arranged so as to sandwich a disk with slits, and a signal output from the light receiving element is used as a timing signal. In the processing such as printing and line feed of the printer device, head impact, line feed solenoid energization, overcurrent check, etc. are performed in synchronization with the timing signal, but the timing signal synchronization program determines which operation is performed at each timing. The number of timing signals is counted, and conditional branching is performed according to the number.
第7図は左端センサ出力、右端センサ出力及びタイミン
グ信号を示す図である。プリンタ装置には左端センサ及
び右端センサが設けられている。キャリアが左端に存在
すると左端センサがオンし、キャリアが右端に存在する
と右端センサがオンする。左端センサの出力が立下って
から右端センサの出力が立上がるまでの期間および右端
センサの出力が立下がってから左端センサの出力が立上
がるまでの期間において印字が行われる。左端センサの
出力が立下った後の最初のタイミング信号に同期してA
(メモリ番地又はレジスタ)に1を設定し、これ以後は
タイミング信号が生成される度にAの値を+1する。FIG. 7 is a diagram showing a left end sensor output, a right end sensor output, and a timing signal. The printer device is provided with a left end sensor and a right end sensor. When the carrier is at the left end, the left end sensor is turned on, and when the carrier is at the right end, the right end sensor is turned on. Printing is performed during the period from the fall of the output of the left edge sensor to the rise of the output of the right edge sensor and the period from the fall of the output of the right edge sensor to the rise of the output of the left edge sensor. A in synchronization with the first timing signal after the output of the left edge sensor falls
(Memory address or register) is set to 1, and thereafter, the value of A is incremented by 1 every time a timing signal is generated.
第6図は従来のプリンタ装置におけるタイミング信号同
期プログラムのフローチャートを示す図である。タイミ
ング信号が生成されると、割込みが発生し、タイミング
信号同期プログラムが実行される。タイミング信号同期
プログラムによって下記のような処理が行われる。FIG. 6 is a diagram showing a flow chart of a timing signal synchronization program in a conventional printer device. When the timing signal is generated, an interrupt occurs and the timing signal synchronization program is executed. The following processing is performed by the timing signal synchronization program.
Aに格納されているタイミング信号計数値を+1
し、Aに書き込む。+1 the timing signal count value stored in A
And write to A.
Aの値が2≦A≦5であるか否かを調べる。Yesで
あればに進み、Noであればに進む。It is checked whether or not the value of A is 2 ≦ A ≦ 5. If yes, go to, if no, go to.
ヘッド・インパクトを開始する。次にに進む。 Start head impact. Continue to the next.
Aの値が1か否かを調べる。Yesのときはに進
み、Noであればに進む。Check whether the value of A is 1 or not. If yes, go to and if no, go to.
改行ソレノイドを通電する。次にに進む。 Energize the line feed solenoid. Continue to the next.
Aの値が5であるか否かを調べる。Yesのときは
に進み、Noのときはに進む。Check whether the value of A is 5. If yes, go to and if no, go to.
Aの値が1であるか否かを調べる。Yesのときは
に進み、Noのときはに進む。Check whether the value of A is 1. If yes, go to and if no, go to.
過電流チェックを行う。次にに進む。 Perform overcurrent check. Continue to the next.
Aの値が6≦A≦9か否かを調べる。Yesのときは
に進み、Noのときはに進む。It is checked whether or not the value of A is 6 ≦ A ≦ 9. If yes, go to and if no, go to.
Aの値がnであるか否かを調べる。Yesのときは
に進み、Noのときはに進む。Check whether the value of A is n. If yes, go to and if no, go to.
Aの値がnか否かを調べる。Yesのときはに進
み、NoのときはENDとする。Check whether the value of A is n. If yes, go to and if no, end.
終了処理を行う。 Perform termination processing.
上述したような従来の技術においては、条件分岐が多く
なるにつれてプログラムが複雑になり、処理を開始する
までの時間が長くなるという欠点があった。また、例え
ば第6図においてA=1の場合の過電流チェック・タイ
ミングとA=nの場合の過電流チェック・タイミングと
がずれると言う欠点があった。The conventional technique as described above has a drawback that the program becomes complicated as the number of conditional branches increases, and the time required to start the processing becomes long. Further, for example, in FIG. 6, there is a drawback that the overcurrent check timing when A = 1 and the overcurrent check timing when A = n are deviated.
本発明は、この点に鑑みて創作されたものであって、タ
イミング信号に同期してソレノイドのオン/オフ等の各
種の動作を実行するプリンタ装置において、タイミング
動作処理を簡単かつ迅速に行い得るようになったプリン
タ装置を提供することを目的としている。The present invention has been made in view of this point, and the timing operation process can be easily and quickly performed in a printer device that executes various operations such as turning on / off of a solenoid in synchronization with a timing signal. It is an object of the present invention to provide a printer device having such a structure.
第1図は本発明の原理図である。本発明は、プリンタ機
構部100と、プリンタ機構部100によって生成されたタイ
ミング信号に同期してプリンタ機構部100を動作させる
ための制御信号を生成するプリンタ制御部200とを具備
するプリンタ装置を前提としている。FIG. 1 is a principle diagram of the present invention. The present invention is premised on a printer device including a printer mechanism unit 100 and a printer control unit 200 that generates a control signal for operating the printer mechanism unit 100 in synchronization with a timing signal generated by the printer mechanism unit 100. I am trying.
タイミング・フラグ・テーブル210の中には、タイミン
グ信号計数値と1対1に対応する動作指示データの複数
個が予め書き込まれている。In the timing flag table 210, a plurality of operation instruction data corresponding to the timing signal count value and one-to-one are written in advance.
プリンタ制御部200の中には、タイミング信号を計数す
るタイミング信号計数手段220と、タイミング信号計数
値に対応する動作指示データをタイミング・フラグ・テ
ーブル210から読み出すタイミング・フラグ読出手段
と、読み出された動作指示データで指示される動作を実
行するための処理を行う処理手段240とが設けられてい
る。The printer control unit 200 includes a timing signal counting unit 220 for counting timing signals, a timing flag reading unit for reading operation instruction data corresponding to the timing signal count value from the timing flag table 210, and a reading unit. And a processing unit 240 that performs processing for executing the operation instructed by the operation instruction data.
タイミング信号が生成されると、タイミング信号計数値
が更新される。更新されたタイミング信号計数値に対応
する動作指示データがタイミング・フラグ・テーブル21
0から読み出される。プリンタ制御部200は、読み出され
た動作指示データで指示される動作を実行するための処
理を行う。When the timing signal is generated, the timing signal count value is updated. The operation flag data corresponding to the updated timing signal count value is the timing flag table 21.
Read from 0. The printer control unit 200 performs processing for executing the operation instructed by the read operation instruction data.
第2図はプリンタ装置の構成例のブロック図である。同
図において、100はプリンタ機構部、200はプリンタ制御
部、201はMPU、202はROM、203はRAM、204は出力ポー
ト、205はドライバ、206はバスをそれぞれ示している。FIG. 2 is a block diagram of a configuration example of the printer device. In the figure, 100 is a printer mechanism unit, 200 is a printer control unit, 201 is an MPU, 202 is a ROM, 203 is a RAM, 204 is an output port, 205 is a driver, and 206 is a bus.
プリンタ装置は、ドット・マトリックス形式のプリンタ
装置であり、プリンタ機構部100とプリンタ制御部200か
ら構成されている。プリンタ機構部100は、印字ヘッド
やキャリア駆動モータ、改行ソレノイド、タイミング信
号発生部等を有している。MPU201は、ROM202のプログラ
ムを実行する。ROM202には、タイミング・フラグ・テー
ブルや各種の制御プログラムが格納されている。RAM203
の中には、各種の作業領域などが存在する。MPU201から
プリンタ機構部100に対して各種の信号が送られるが、
これらの信号は出力ポート204及びドライバ205を介して
プリンタ機構部100に送られる。プリンタ機構部200によ
ってタイミング信号が生成されると、MPU201に対して割
込みがかけられ、後述のタイミング信号同期プログラム
が実行される。The printer device is a dot-matrix type printer device and includes a printer mechanism unit 100 and a printer control unit 200. The printer mechanism unit 100 has a print head, a carrier drive motor, a line feed solenoid, a timing signal generation unit, and the like. The MPU 201 executes the program in the ROM 202. The ROM 202 stores a timing flag table and various control programs. RAM203
Inside, there are various work areas. Various signals are sent from the MPU201 to the printer mechanism 100,
These signals are sent to the printer mechanism unit 100 via the output port 204 and the driver 205. When the timing signal is generated by the printer mechanism unit 200, the MPU 201 is interrupted and the timing signal synchronization program described later is executed.
第3図はシャトル・プリンタのタイミング動作図を示
し、第4図はシャトル・プリンタに対するタイミング・
フラグ・テーブルの構成例を示す図である。FIG. 3 shows the timing operation diagram of the shuttle printer, and FIG. 4 shows the timing operation diagram for the shuttle printer.
It is a figure which shows the structural example of a flag table.
シャトル・プリンタは、複数個の印字ピンを有してい
る。1印字ピン当たりの印字領域は、例えば4ドットで
ある。シャトル・プリンタで印字を行う場合、各印字ピ
ンは、先頭ドット行に属する4個のドットを順番に印字
する。その後、1ドット分だけ改行される。次に、各印
字ピンは、次ドット行に属する4個のドットを順番に印
字する。その後、1ドット分だけ改行される。以下、同
様な動作が繰り返される。The shuttle printer has a plurality of print pins. The print area per print pin is, for example, 4 dots. When printing with a shuttle printer, each print pin sequentially prints four dots belonging to the first dot row. After that, a line feed is made for one dot. Next, each print pin sequentially prints four dots belonging to the next dot row. After that, a line feed is made for one dot. Hereinafter, the same operation is repeated.
タイミング・フラグ・テーブルにおけるフラグ番号B1,B
2,…,Bnは、タイミング信号計数値=1,タイミング信号
計数値=2,…,タイミング信号計数値=nにそれぞれ対
応している。各タイミング信号計数値に対応して1バイ
トの動作指示データが設けられている。動作指示データ
のビット7はインパクト・オンするか否かを指示し、ビ
ット6は改行ソレノイドをオンするか否かを指示し、ビ
ット5は過電流チェックを行うか否かを指示し、ビット
4は1行実行終了処理を行うか否かを指示する。ビット
が「1」の場合には動作実行、「0」の場合には動作実
行せずを表す。タイミング・フラグ・テーブルはメモリ
に格納される。B1の動作指示データはテーブルの0番地
(先頭番地)に格納され、B2の動作指示データは1番地
に格納され、Bn動作指示データはn−1番地に格納され
る。Flag number in timing flag table B 1 , B
2 , ..., B n correspond to timing signal count value = 1, timing signal count value = 2, ..., Timing signal count value = n, respectively. One byte of operation instruction data is provided corresponding to each timing signal count value. Bit 7 of the operation instruction data indicates whether or not the impact is turned on, bit 6 indicates whether or not the line feed solenoid is turned on, bit 5 indicates whether or not an overcurrent check is performed, and bit 4 Indicates whether to execute the one-line execution end processing. When the bit is "1", the operation is executed, and when the bit is "0", the operation is not executed. The timing flag table is stored in memory. The operation instruction data of B 1 is stored in the address 0 (head address) of the table, the operation instruction data of B 2 is stored in the address 1, and the B n operation instruction data is stored in the address n−1.
タイミング信号が生成されると、タイミング信号計数値
が更新される。更新された計数値とタイミング・フラグ
・テーブルの先頭番地とにより、動作指示データが格納
されている番地を求め、この番地に基づいて、タイミン
グ・フラグ・テーブルから動作指示データを読み出し、
読み出された動作指示データによって指示された動作を
プリンタ機構部200に行わせる。例えば、タイミング信
号が印字実行開始から5番目のものである場合には、B5
の動作指示データが読み出される。B5の動作指示データ
は、インパクト・オン及び改行ソレノイド・オンを指示
しているので、インパクト・オンと改行ソレノイド・オ
ンのみが行われる。When the timing signal is generated, the timing signal count value is updated. The address in which the operation instruction data is stored is obtained from the updated count value and the start address of the timing flag table, and the operation instruction data is read from the timing flag table based on this address,
The printer mechanism unit 200 is caused to perform the operation instructed by the read operation instruction data. For example, if the timing signal is the fifth one from the start of printing, B 5
The operation instruction data of is read. Since the operation instruction data of B 5 indicates impact on and line feed solenoid on, only impact on and line feed solenoid on are performed.
大5図は本発明のタイミング信号同期プログラムのフロ
ーチャートを示す図である。タイミング信号割込みが発
生すると、タイミング信号同期プログラムの実行が開始
され、下記のような処理が行われる。FIG. 5 is a diagram showing a flow chart of the timing signal synchronization program of the present invention. When a timing signal interrupt occurs, execution of the timing signal synchronization program is started and the following processing is performed.
Aに格納されているタイミング信号計数値を+1
し、Aに書き込む。+1 the timing signal count value stored in A
And write to A.
Aの値とタイミング・フラグ・テーブルの先頭番地
とにより、Aの値(xとする)に対応する動作指示デー
タBxを読み出す。Based on the value of A and the start address of the timing flag table, the operation instruction data B x corresponding to the value of A (denoted as x) is read.
動作指示データBxがインパクト・オンを指示してい
るか否かを調べる。1のとき(指示しているとき)には
に進み、0のとき(指示していないとき)にはに進
む。It is checked whether or not the operation instruction data B x indicates impact on. When it is 1 (when instructing), it proceeds to, and when it is 0 (when not instructing), it proceeds to.
ヘッド・インパクトを開始する。に進む。 Start head impact. Proceed to.
動作指示データBxが改行ソレノイドオンンを指示し
ているか否かを調べる。1のときにはに進み、0のと
きにはに進む。Check whether the operation instruction data B x indicates a line feed solenoid on. When it is 1, the process proceeds to, and when it is 0, the process proceeds to.
改行ソレノイドをオンする。に進む。 Turn on the line feed solenoid. Proceed to.
改行ソレノイドをオフする。 Turn off the line feed solenoid.
動作指示データBxが過電流チェックを指示している
か否かを調べる。1のときにはに進み、0のときには
に進む。It is checked whether or not the operation instruction data B x instructs the overcurrent check. When it is 1, the process proceeds to, and when it is 0, the process proceeds to.
過電流チェックを行う。に進む。 Perform overcurrent check. Proceed to.
動作指示データBxが終了処理を指示しているか否か
を調べる。1のときにはに進み、0のときにはENDと
する。It is checked whether or not the operation instruction data B x indicates the end processing. When it is 1, it advances, and when it is 0, it is END.
終了処理を行い、ENDとする。 Perform end processing and set to END.
以上の説明から明らかなように、本発明によれば、プリ
ンタ制御部がタイミング・フラグ・テーブルを参照とい
う簡単な構成となるので、同期動作の要素が多くても、
実行開始までの時間は長くかからず、タイミング動作処
理を迅速且つ簡単に行うことが出来る。また、テーブル
構成であるからメンテナンスの際、タイミング・フラグ
・テーブルの内容の変更が極めて容易である。As is clear from the above description, according to the present invention, the printer control unit has a simple structure of referring to the timing flag table, so that even if there are many synchronous operation elements,
It does not take a long time to start the execution, and the timing operation process can be performed quickly and easily. Further, because of the table configuration, it is extremely easy to change the contents of the timing flag table during maintenance.
第1図は本発明の原理図、第2図はプリンタ装置の構成
例を示すブロック図、第3図はタイミング動作を示す
図、第4図はタイミング・フラグ・テーブルの構成例を
示す図、第5図は本発明のタイミング信号同期プログラ
ムのフローチャートを示す図、第6図は従来のタイミン
グ信号同期プログラムのフローチャートを示す図、第7
図は左端センサ出力と右端センサ出力とタイミング信号
とを示す図である。 100……プリンタ機構部、200……プリンタ制御部、201
……MPU、202……ROM、203……RAM、204……出力ポー
ト、205……ドライバ、206……バス、210……タイミン
グ・フラグ・テーブル。1 is a principle diagram of the present invention, FIG. 2 is a block diagram showing a configuration example of a printer device, FIG. 3 is a diagram showing a timing operation, FIG. 4 is a diagram showing a configuration example of a timing flag table, FIG. 5 is a diagram showing a flowchart of a timing signal synchronization program of the present invention, FIG. 6 is a diagram showing a flowchart of a conventional timing signal synchronization program, and FIG.
The figure is a diagram showing a left end sensor output, a right end sensor output, and a timing signal. 100 …… Printer mechanism section, 200 …… Printer control section, 201
... MPU, 202 ... ROM, 203 ... RAM, 204 ... output port, 205 ... driver, 206 ... bus, 210 ... timing flag table.
Claims (1)
信号に同期してプリンタ機構部(100)を動作させるた
めの制御信号を生成するプリンタ制御部(200)と を具備するプリンタ装置であって、 タイミング信号計数値に1対1に対応する動作指示デー
タの複数個が予め書き込まれているタイミング・フラグ
・テーブル(210)を設けると共に、 プリンタ制御部(200)の中に、タイミング信号を計数
するタイミング信号計数手段(220)と、タイミング信
号計数値に対応する動作指示データをタイミング・フラ
グ・テーブル(210)から読み出すタイミング・フラグ
読出手段(230)と、読み出された動作指示データで指
示される動作を実行するための処理を行う処理手段(24
0)とを設けた ことを特徴とするプリンタ装置。1. A printer mechanism section (100) and a printer control section (200) for generating a control signal for operating the printer mechanism section (100) in synchronization with a timing signal generated by the printer mechanism section (100). ) And a timing flag table (210) in which a plurality of operation instruction data corresponding to the timing signal count value in a one-to-one correspondence are written in advance, and a printer control unit ( 200), timing signal counting means (220) for counting timing signals, and timing flag reading means (230) for reading operation instruction data corresponding to the timing signal count value from the timing flag table (210). , Processing means (24) for performing processing for executing an operation instructed by the read operation instruction data.
0) and are provided in the printer device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7422388A JPH0753456B2 (en) | 1988-03-28 | 1988-03-28 | Printer device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7422388A JPH0753456B2 (en) | 1988-03-28 | 1988-03-28 | Printer device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH01244866A JPH01244866A (en) | 1989-09-29 |
| JPH0753456B2 true JPH0753456B2 (en) | 1995-06-07 |
Family
ID=13540970
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP7422388A Expired - Lifetime JPH0753456B2 (en) | 1988-03-28 | 1988-03-28 | Printer device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0753456B2 (en) |
-
1988
- 1988-03-28 JP JP7422388A patent/JPH0753456B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH01244866A (en) | 1989-09-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| GB1586589A (en) | Printing systems | |
| EP0150038B1 (en) | Dot printing device | |
| EP0149472B1 (en) | Dot printing device | |
| JPH0753456B2 (en) | Printer device | |
| US4248147A (en) | Control system for dot matrix line printer using one print element per character | |
| JP2552830B2 (en) | Printer device with bar code printing function | |
| US4825389A (en) | Print data editing circuit in serial printer | |
| JPS6133711B2 (en) | ||
| CA1145055A (en) | Head image generator for a matrix printer | |
| JPS59119440A (en) | Print control system | |
| JPH0632953B2 (en) | Dot printer printing method | |
| JP4038639B2 (en) | Printer and its image data transfer method | |
| JPH0514619B2 (en) | ||
| JP2817221B2 (en) | Printing method of thermal printer | |
| JPH03226885A (en) | Barcode printing control method | |
| JP2537394B2 (en) | Print control method of serial dot printer | |
| JP2582349B2 (en) | Thermal printer | |
| JPH0326558A (en) | Smooth printing system in printer | |
| JPH02301452A (en) | Printing system | |
| JPH0647301B2 (en) | Charactor pattern generator | |
| JPH0698790B2 (en) | Serial donut tomato printer | |
| JPS6160121A (en) | Graphic print processing system | |
| JPH0588675B2 (en) | ||
| JPH0432749B2 (en) | ||
| JPH01110969A (en) | Thermal printer |