JPS62135386A - Printer - Google Patents

Printer

Info

Publication number
JPS62135386A
JPS62135386A JP27606485A JP27606485A JPS62135386A JP S62135386 A JPS62135386 A JP S62135386A JP 27606485 A JP27606485 A JP 27606485A JP 27606485 A JP27606485 A JP 27606485A JP S62135386 A JPS62135386 A JP S62135386A
Authority
JP
Japan
Prior art keywords
run counter
counter
switch
frc
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.)
Pending
Application number
JP27606485A
Other languages
Japanese (ja)
Inventor
Osamu Kuramochi
倉持 治
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP27606485A priority Critical patent/JPS62135386A/en
Priority to GB8625965A priority patent/GB2182288B/en
Priority to FR868615248A priority patent/FR2589397B1/en
Priority to US06/925,155 priority patent/US4795284A/en
Publication of JPS62135386A publication Critical patent/JPS62135386A/en
Pending legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J19/00Character- or line-spacing mechanisms
    • B41J19/18Character-spacing or back-spacing mechanisms; Carriage return or release devices therefor
    • B41J19/20Positive-feed character-spacing mechanisms
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J19/00Character- or line-spacing mechanisms
    • B41J19/76Line-spacing mechanisms
    • B41J19/78Positive-feed mechanisms
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J29/00Details of, or accessories for, typewriters or selective printing mechanisms not otherwise provided for
    • B41J29/02Framework

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

PURPOSE:To use an interface-controlling timer in common for a plurality of processings, by providing a free-run counter the count of which is updated at a predetermined time interval. CONSTITUTION:Monitoring processings such as control of turning-ON of a display device and control of operation of a buzzer are performed by counting time by a free-run counter provided as a counting means which updates the count at a predetermined time interval by using predetermined addresses in an internal RAM in a microcomputer. For each processing, the count at the start of the counting is used as a reference, each required period of time is added thereto, and the count on the free-run counter after the lapse of the period of time is obtained. Therefore, the system can be used for any processing in which an accuracy on the order of milliseconds is required, and since a single free-fun counter can be used simultaneously for a plurality of processings, the cost is lowered.

Description

【発明の詳細な説明】 抜擢九児 この発明は、印字装置に関する。[Detailed description of the invention] Selected Kuji The present invention relates to a printing device.

死末改擢 一般に、活字型プリンタ、ドツトインパクトプリンタ、
サーマルプリンタ、サーマル転写プリンタ、インクジェ
ットプリンタ等の各種プリンタや電子タイプライタ等の
印字装置においては、リボンエンド等の各種エラーや操
作パネルに設けたポーズスイッチ等の各種スイッチの状
態を表示するLEDの点滅制御、ブザーの鳴動制御、操
作パネルやリアパネルに設けたスイッチあるいは検知ス
イッチ等の各種スイッチの状態の監視あるいはホスト側
からのデータ受信の監視等9時間に基づく制御、vi視
処理がある。
In general, type printers, dot impact printers,
In various printers such as thermal printers, thermal transfer printers, inkjet printers, and printing devices such as electronic typewriters, blinking LEDs indicate various errors such as ribbon end and the status of various switches such as the pause switch on the operation panel. Control, buzzer ringing control, monitoring of the status of various switches such as switches or detection switches provided on the operation panel or rear panel, monitoring of data reception from the host side, etc., and vi visual processing.

そこで、従来の印字装置においては、このような各種の
時間に基づく制御、監視等のインタフェース制御を行な
うために、インタフェース制御用の専用タイマを使用し
ている。
Therefore, in conventional printing apparatuses, a dedicated timer for interface control is used to perform interface control such as various time-based controls and monitoring.

しかしながら、このようにインタフェース制御用の専用
タイマを個々の制御毎に持つときには構成が複雑になり
、また?U数の制御で一個のタイマを使用するときには
、一つの制御でそのタイマを使用しているときに池の制
御で使用できなくなるという不都合がある。
However, when each individual control has a dedicated timer for interface control, the configuration becomes complicated. When one timer is used to control the number of U, there is an inconvenience that while the timer is being used for one control, it becomes unusable due to multiple control.

目的 この発明は上記の点に堰みてなされたものであり、タイ
マの共用化を図ることを目的とする。
Purpose This invention has been made in view of the above-mentioned points, and an object of the present invention is to achieve common use of timers.

且−底 この発明は上記の目的を達成するため、予め定めた一定
時間毎にカウント値を更新するカウント手段を備えたも
のである。
In order to achieve the above object, the present invention is provided with a counting means for updating a count value at predetermined fixed time intervals.

以下、この発明の一実施例に基づいて具体的に説明する
Hereinafter, a detailed explanation will be given based on one embodiment of the present invention.

第1図は、この発明を実施した活字ホイール型プリンタ
の一例を示す外観斜視図である。
FIG. 1 is an external perspective view showing an example of a type wheel type printer embodying the present invention.

このプリンタの外筐部は1機構部及び制御部を収納する
下ケース1及び上ケース2と、活字ホイールやリボンカ
セット等の交換等のための開閉自在なカバー3とからな
り、そのカバー3にはキャラクタスケール4を装着しで
ある。
The outer casing of this printer consists of a lower case 1 and an upper case 2 that house a mechanical section and a control section, and a cover 3 that can be opened and closed for replacing type wheels, ribbon cassettes, etc. is equipped with character scale 4.

また、上ケース2の前面に取付けたフロントパネル5に
は、ポーズ(PAUSE)スイッチ6及びこのポーズス
イッチ6の状態を表示するLEDからなるポーズ表示器
6 A I ラインフィード(L F)スイッチ7、L
EDからなるペーパエンド表示器8及びリボンエンド表
示器S、パワー表示器10を付設しである。
Further, on the front panel 5 attached to the front of the upper case 2, there is a pause indicator 6 consisting of a PAUSE switch 6 and an LED that displays the status of the PAUSE switch 6. L
A paper end indicator 8 consisting of an ED, a ribbon end indicator S, and a power indicator 10 are attached.

第2図及び第3図は、このプリンタの機構部の一例を示
す概略平面図及び正面図である。
FIGS. 2 and 3 are a schematic plan view and a front view showing an example of the mechanism of this printer.

この機構部は5図示しないサブフレームの両端部に固着
したフレーム21.21間に、印字する用紙を巻付けて
給送するプラテン22を回転自在に取付けである。
In this mechanical section, a platen 22 for wrapping and feeding paper to be printed is rotatably mounted between frames 21 and 21 fixed to both ends of a subframe (not shown).

このプラテン22は、左側のフレーム21に固着したス
テッピングモータからなるラインフィードモータ23に
よって、モータギヤ24.アイドルギヤ25.このアイ
ドルギヤ25に同動するアイドルギヤ26及びプラテン
ギヤ27を介して駆動されて、自動的に用紙を給送する
This platen 22 is moved by a motor gear 24. Idle gear 25. It is driven via an idle gear 26 and a platen gear 27 that move together with this idle gear 25, and automatically feeds the paper.

また、このプラテン22の両端部には、手動操作用ノブ
28.28を固着してあり、このノブ28.28を回す
ことによって手動で用紙装填や用紙抜き取りを行なうこ
とができる。
Further, manual operation knobs 28.28 are fixed to both ends of the platen 22, and by turning the knobs 28.28, paper can be manually loaded or removed.

また、このプラテン22の前方には、ペイルローラ30
を装着したペーパペイル31を、その両端部をペイルア
ーム:り2.!13に取付けて、図示しないペイル駆動
機構によってプラテン22側に付勢して揺動自在に配設
しである。
Further, in front of this platen 22, a pail roller 30 is provided.
2. The paper pail 31 with the ! 13 and is biased toward the platen 22 by a pail drive mechanism (not shown) so as to be swingable.

一方、フレーム21.21間に固着したロッド35及び
ロッド36上には、キャリッジ37をプラテン22に対
してその軸方向に平行移動可能に載置している。
On the other hand, a carriage 37 is mounted on a rod 35 and a rod 36 fixed between the frames 21 and 21 so as to be movable parallel to the platen 22 in its axial direction.

このキャリッジ37には、活字ホイール38を装着した
ステッピングモータからなるセレクションモータ3Sと
、活字ホイール38の活字を叩く印字ハンマ41と、リ
ボン(マルチストライクリボンあるいはワンタイムリボ
ン等)42を装着したリボンカセット(リボンカートリ
ッジ)43と。
This carriage 37 includes a selection motor 3S consisting of a stepping motor equipped with a type wheel 38, a printing hammer 41 that hits the type on the type wheel 38, and a ribbon cassette equipped with a ribbon (multi-strike ribbon, one-time ribbon, etc.) 42. (Ribbon cartridge) 43.

リボン42をフィードするリボンフィード機構等を装着
しである。
A ribbon feed mechanism etc. for feeding the ribbon 42 is installed.

そして、図示しないサブフレームに固着した取付板45
に、ステッピングモータからなるスペースモータ46を
装着し、そのスペースモータ46の回転軸に固着したモ
ータギヤ47に噛合するギヤ4日を有するスペースプー
リ4日を回転自在に軸支する一方、フレーム21.21
に固着した取付板50.51を回転自在に軸支している
A mounting plate 45 is fixed to a subframe (not shown).
A space motor 46 consisting of a stepping motor is attached to the frame 21.
Mounting plates 50 and 51 fixed to the shaft are rotatably supported.

これ等のスペースプーリ4S及びプーリ50゜51間に
はスペースワイヤ52を張装し、このスペースワイヤ5
2をキャリッジ37の前底面に固着して、スペースモー
タ46によってキャリッジ37をプラテン22に対して
平行に移動する。
A space wire 52 is stretched between these space pulleys 4S and pulleys 50 and 51, and this space wire 5
2 is fixed to the front bottom surface of the carriage 37, and the carriage 37 is moved parallel to the platen 22 by a space motor 46.

第4図は、このプリンタの制御部の一例を示すブロック
図である。
FIG. 4 is a block diagram showing an example of a control section of this printer.

メインコントローラ90は、マイクロコンピュータ(以
下「マイコン」と称す)91と、ROM92と、RAM
9tと、マイコンS1によって独立してタイマ時間を設
定可能なプログラマブルタイマである3個のタイマを内
蔵した1チツプタイマユニツト94と、パラレルインタ
フェース用T/○95と、l1096〜99等とからな
る。
The main controller 90 includes a microcomputer (hereinafter referred to as "microcomputer") 91, a ROM 92, and a RAM.
9t, a one-chip timer unit 94 containing three built-in timers which are programmable timers whose timer times can be independently set by the microcomputer S1, a T/○95 for parallel interface, I1096-99, etc.

マイコンS1は、CPU、ROM、RAM及びI/○等
を内蔵しており、このプリンタ全体の制御を司るカウン
ト手段を兼ねた回路である。
The microcomputer S1 has a built-in CPU, ROM, RAM, I/O, etc., and is a circuit that also serves as a counting means for controlling the entire printer.

このマイコンS1は3個の8ビツトタイマを内蔵してお
り、その各タイマの内の2個のタイマは各々スペース制
御、セレクション制御の専用タイマとして使用し、残り
1個のタイマは1ms毎に割り込みを発生するImsタ
イマとして使用する。
This microcontroller S1 has three built-in 8-bit timers, two of which are used as dedicated timers for space control and selection control, and the remaining timer generates an interrupt every 1 ms. Used as a generated Ims timer.

ROM92は、例えばこのプリンタの印字制御に係わる
コントロールプログラムを格納したプログラムエリアと
、文字コードを活字位置(ホイールアドレス)に変換す
る印圧テーブル、プロポーショナルスペース量に変換す
るプロポーショナルスペース量テーブル等のテーブルを
格納した変換テーブルエリアと、その他の固定情報1例
えば速度テーブル等を格納したその他のエリアを構成す
る。
The ROM 92 stores, for example, a program area that stores a control program related to printing control of this printer, a printing pressure table that converts a character code into a type position (wheel address), a proportional space amount table that converts into a proportional space amount, and other tables. It constitutes a conversion table area where it is stored and other areas where other fixed information 1 such as a speed table is stored.

RA M 93は、ホスト(例えばワードプロセッサ、
オフィスコンピュータ、パーソナルコンピュータ等)か
らの受信データを一旦格納する受信バッファと、ホスト
側からの各種ユーザデータをダウンロードするためのユ
ーザエリア及びプログラム実行のためのワーキングエリ
ア(データエリアを含む)等を構成する。
RAM 93 is a host (for example, a word processor,
It consists of a receive buffer that temporarily stores received data from an office computer, personal computer, etc.), a user area for downloading various user data from the host side, and a working area (including a data area) for program execution. do.

タイマユニットS4の3個のタイマは、各々ハンマ主励
磁用タイマ、ハンマ再励磁用タイマ及びボーレートジェ
ネレータ用タイマとして使用する。
The three timers of the timer unit S4 are used as a hammer main excitation timer, a hammer re-excitation timer, and a baud rate generator timer, respectively.

そして、マイコンS1は、ホスト側から自己のシリアル
インタフェース端子又はl1095に転送される文字コ
ード、スペース(s p)データ。
The microcomputer S1 then transfers character code and space (sp) data from the host side to its own serial interface terminal or l1095.

ラインフィード(LF)データ、キャリッジリターン(
CR)データ等の各種データを取込んで、その受信デー
タ等に基づく処理をする。
Line feed (LF) data, carriage return (
It takes in various data such as CR) data and performs processing based on the received data.

すなわち、このマイコンS1は、ラインフィードドライ
バ101にラインフィードドライブパルスを出力してラ
インフィードモータ23を駆動制御し、プラテン22を
回動して所定量用紙を送る。
That is, the microcomputer S1 outputs a line feed drive pulse to the line feed driver 101 to drive and control the line feed motor 23, rotates the platen 22, and feeds a predetermined amount of paper.

また、このマイコンS1は、スペースドライバ102に
スペースドライブパルスを出力してスペースモータ46
を駆動制御し、キャリッジ37を所定の方向に所定量移
動させて印字位置に位置させる。
The microcomputer S1 also outputs a space drive pulse to the space driver 102 to drive the space motor 46.
The carriage 37 is moved by a predetermined amount in a predetermined direction and positioned at the printing position.

さらに、このマイコンS1は、セレクションドライバ1
03にセレクションドライブパルスを出力してセレクシ
ョンモータ39を駆動¥1.lJ御し、活字ホイール3
8を回転させて所要の活字を印字ハンマ41によるイン
パクト位置に位置させる。
Furthermore, this microcomputer S1 has a selection driver 1.
Output the selection drive pulse to 03 to drive the selection motor 39\1. lJ control, type wheel 3
8 is rotated to position the desired type at the impact position by the printing hammer 41.

さらにまた、このマイコン91は、ハンマドライバ10
4にハンマドライブパルスを出方して印字ハンマ41を
構成するハンママグネット41Aを駆動させ、ハンマ4
1Bによって活字ホイール38の活字を叩かせる。
Furthermore, this microcomputer 91 also controls the hammer driver 10.
4 outputs a hammer drive pulse to drive the hammer magnet 41A that constitutes the printing hammer 41.
1B to strike the type on the type wheel 38.

また、このマイコン91は、リボンフィードドライバ1
05にリボンフィードドライブパルスを出力してステッ
ピングモータからなるリボンフィードモータ10Sを駆
動制御し、リボン42を所定量送る。
Further, this microcomputer 91 has a ribbon feed driver 1.
05, a ribbon feed drive pulse is output to drive and control the ribbon feed motor 10S, which is a stepping motor, to feed the ribbon 42 by a predetermined amount.

さらに、このマイコン91は、T1097を介してリボ
ンエンドセンサ107.カバーオープンスイッチ10日
、ホイールホームセンサ10日。
Furthermore, this microcomputer 91 connects the ribbon end sensor 107. Cover open switch 10 days, wheel home sensor 10 days.

図示しないペーパエンドセンサ及びキャリッジホームセ
ンサ等の各種センサからの検知信号を入力する。
Detection signals from various sensors such as a paper end sensor and a carriage home sensor (not shown) are input.

さらにまた、このマイコンS1は、l1099を介して
フロントパネル5に付設したポーズスイッチ6、ライン
フィードスイッチ7がらの操作信号を取込み、またポー
ズ表示器6A、ペーパエンド表示器7.リボンエンド表
示器8の点灯制御をする。
Furthermore, the microcomputer S1 receives operation signals from the pause switch 6 and line feed switch 7 attached to the front panel 5 via the l1099, and also receives operation signals from the pause indicator 6A, paper end indicator 7. Controls the lighting of the ribbon end indicator 8.

また、このマイコンS1は1図示しないリアパネル11
0に付設したボーレート、プロトコル。
In addition, this microcomputer S1 has a rear panel 11 (not shown).
Baud rate and protocol attached to 0.

コード体系等を設定するDIPスイッチからの各指定情
報を取込む。
Retrieve each specified information from the DIP switch to set the code system, etc.

次に、このように構成したこの実施例の作用について第
5図以降をも参照して説明する。
Next, the operation of this embodiment configured as described above will be explained with reference to FIG. 5 and subsequent figures.

このプリンタにおいては、マイコン91の内部RAMの
所定のアドレスを使用して一定時間毎にカウント値を更
新するカウンI一手段(以下「フリーランカウンタ」と
称す)をファームウェアで構成している。
In this printer, a counter I means (hereinafter referred to as a "free run counter") that updates a count value at regular intervals using a predetermined address in the internal RAM of the microcomputer 91 is configured by firmware.

すなわち、マイコン91の内蔵タイマの内の1つのタイ
マを使用して1n+s毎に割込みを発生させ。
That is, one of the built-in timers of the microcomputer 91 is used to generate an interrupt every 1n+s.

この割込み処理の中で内部RAMに割当てたフリーラン
カウンタのカラン1−値を更新する。
During this interrupt processing, the 1-value of the free run counter allocated to the internal RAM is updated.

この1ms割込み処理について第S図を参照して説明す
る。
This 1ms interrupt processing will be explained with reference to FIG.

マイコン91は、1ms毎の割込み要求が発生すると、
リボンフィード実行フラグが立っているか否かをチェッ
クしてリボンフィード(RF)処理が必要か否かを判別
する。
When the microcomputer 91 generates an interrupt request every 1 ms,
It is determined whether ribbon feed (RF) processing is necessary by checking whether the ribbon feed execution flag is set.

このとき、RF処理が必要であればRF処理を実行した
後、またRF処理が必要でなければそのまま、次にライ
ンフィード実行フラグが立っているか否かをチェックし
てラインフィード(L F)処理が必要か否かを判別す
る。
At this time, if RF processing is required, perform the RF processing, or if RF processing is not required, continue as is, then check whether the line feed execution flag is set and perform line feed (L F) processing. Determine whether or not it is necessary.

このとき、LF処理が必要であればLF処理を実行した
後、またLP処理が必要でなければそのまま1次にRA
Mの予め定めたアドレスの内容、すなわちフリーランカ
ウンタFRCのカウント値をインクリメント(+1)し
た後、リターンする。
At this time, if LF processing is necessary, perform the LF processing, or if LP processing is not necessary, proceed to the primary RA.
After incrementing (+1) the content of the predetermined address of M, that is, the count value of the free run counter FRC, the process returns.

したがって、フリーランカウンタFRCのカウント値は
、このプリンタの電源が投入されて割込み処理が可能に
なった時以後電源が切断されるまでの間、予め定めた一
定時間である111143毎に更新(+1)される。
Therefore, the count value of the free run counter FRC is updated every 111143 (+1 ) to be done.

そこで、フリーランカウンタとして8ビツトのRAM9
Bの所定のアドレスの内の2アドレスを割当てたとき、
っ、まりフリーランカウンタを2バイト(16ビツト)
としたときには、第6図に示すように第1ビン1〜から
第16ビツトまでの各ピッ1−の各々異なる数値的な重
み(第1ピッl−= 1 。
Therefore, 8-bit RAM 9 is used as a free run counter.
When assigning two of B's predetermined addresses,
-Mari free run counter 2 bytes (16 bits)
In this case, as shown in FIG. 6, each bit 1- from the 1st bin 1 to the 16th bit has a different numerical weight (1st bit 1-=1).

第2ビツト=2・・・・・・第16ビツト=32768
)があるので2バイトのフリーランカウンタFRCの場
合0から65535 (=1+2・・・・・・+327
68)までカウントをとることができる。
2nd bit = 2...16th bit = 32768
), so in the case of a 2-byte free run counter FRC, the number ranges from 0 to 65535 (=1+2...+327
It is possible to count up to 68).

したがって、上述のように1ms毎に実行する割込み処
理でフリーランカウンタFRCをインクリメンh(+1
)することにより、第7図(イ)に示すようにフリーラ
ンカウンタFRCのカランI−(直が「0」(全ピッド
0″)の時点から10秒経過したときのカウント値は同
図(ロ)に示すようにrloooOJとなり、さらに5
5.535秒経過したときのカウント値は同図(ハ)に
示すようにr65535J(全ピッド1″)となる。
Therefore, as mentioned above, the free run counter FRC is incremented by h(+1
), as shown in Figure 7 (a), the count value when 10 seconds have elapsed from the time when the free run counter FRC's run I- (direction is "0" (all pids 0'') is shown in the figure (a). As shown in b), rloooOJ becomes rloooOJ, and further 5
The count value after 5.535 seconds has passed is r65535J (all pits 1'') as shown in FIG.

そして、さらに1ms経過したときのフリーランカウン
タFRCのカウント値は同図(ニ)に示すように「0」
に戻り、再度時間の経過と共にカウント値のインクリメ
ント(+1)が繰り返される。
Then, when another 1 ms has passed, the count value of the free run counter FRC becomes "0" as shown in the same figure (d).
, and the count value is again incremented (+1) as time passes.

このように、2バイトのフリーランカウンタFRCの場
合、カウント値をIms毎にrOJがらr65535J
までインクリメント(+1)を繰り返すので、65.5
35秒までの時間を計測できることになる。
In this way, in the case of a 2-byte free run counter FRC, the count value is changed from rOJ to r65535J every Ims.
Since the increment (+1) is repeated until 65.5
This will allow you to measure time up to 35 seconds.

次に、このフリーランカウンタを使用して行なう各種の
制御について説明する。
Next, various controls performed using this free run counter will be explained.

このプリンタにおいては、例えばポーズランプ6A、ペ
ーパエンド表示器8.リボンエンド表示8F)9を点灯
時に所定の時間間隔で点滅制御する。
In this printer, for example, a pause lamp 6A, a paper end indicator 8. When the ribbon end display 8F) 9 is turned on, it is controlled to blink at predetermined time intervals.

また、フロントパネル5に付設したポーズスイッチ6、
ラインフィードスイッチ7の監視及びリアパネル110
に付設したボーレートスイッチ。
In addition, a pause switch 6 attached to the front panel 5,
Monitoring of line feed switch 7 and rear panel 110
Baud rate switch attached to.

プロトコルスイッチ、スペースピッチスイッチ。Protocol switch, space pitch switch.

オートラインスイッチ、ラインピッチスイッチ。Auto line switch, line pitch switch.

フオームレングススイッチ、ホイールスイッチ等の状態
を所定の時間間隔で監視する。このとき、スイッチの操
作状態を正確に判別するためにスイッチオンから所定時
間経過した後に判別する。
The status of the form length switch, wheel switch, etc. is monitored at predetermined time intervals. At this time, in order to accurately determine the operating state of the switch, the determination is made after a predetermined period of time has elapsed since the switch was turned on.

さらに5受信バツフアにスペースコードあるいはライン
フィードコードが連続して転送されてきた場合には、そ
れ以外のコードが入力された時にスペース動作あるいは
ラインフィード動作を行なうようにしているので、スペ
ースコードあるいはラインフィードコードが連続して転
送されてきた後に他のコードが入力されないときには、
所定時間データを受信しないかを監視して、所定時間経
過してもデータを受信しないときにはスペース動作ある
いはラインフィード動作を行なう(この処理を「オプテ
イマイザ−処理」と称す)。
Furthermore, if a space code or line feed code is continuously transferred to the 5 reception buffer, the space code or line feed operation will be performed when any other code is input. When no other code is input after the feed code is transferred continuously,
It monitors whether or not data is received for a predetermined period of time, and if no data is received after a predetermined period of time, a space operation or a line feed operation is performed (this process is referred to as "optimizer processing").

さらにまた1図示を省略したペーパペイルの開閉を検知
するマイクロスイッチからなるペイル開スイッチの状態
を判別するときは、スイッチオン又はオフの時の検知信
号のチャタリングを回避するため検知信号が安定するま
で待機した後判別する。
Furthermore, when determining the state of the pail open switch, which consists of a microswitch (not shown) that detects the opening and closing of the paper pail, wait until the detection signal becomes stable to avoid chattering of the detection signal when the switch is on or off. Then judge.

なお、この他時間に基づく制御としては1例えばオペレ
ータコール用あるいはエラー用のブザーの鳴動制御、給
紙装置(ASF、フオームトラクタ等)を搭載した場合
の給紙装置の給紙モータやソレノイドの駆動制御がある
In addition, other time-based controls include 1. For example, controlling the sound of a buzzer for operator calls or errors, and driving the paper feed motor or solenoid of the paper feed device when a paper feed device (ASF, form tractor, etc.) is installed. There is control.

ここでは、フリーランカウンタを使用してプリンタ監視
処理を行なう場合について第8図を参照して説明する。
Here, a case in which printer monitoring processing is performed using a free run counter will be described with reference to FIG.

このプリンタ監視処理では、まずリボンエンドセンサ1
07をチェックしてリボンエンドか否かを判別し、リボ
ンエンドであれば点滅開始フラグOFFか否かをチェッ
クして点滅を開始していない(点滅開始フラグ=OFF
)ときは、フリーランカウンタFRCのカウント値を終
了カウンタA1にセット(As←FRC)すると共に点
滅開始フラグをONする。
In this printer monitoring process, first the ribbon end sensor 1
07 to determine whether it is the ribbon end, and if it is the ribbon end, check whether the blinking start flag is OFF or not, and blinking has not started (blinking start flag = OFF).
), the count value of the free run counter FRC is set to the end counter A1 (As←FRC) and the blinking start flag is turned on.

次に1点灯フラグONか否かをチェックして現在リボン
エンド表示器9が点灯しているか否かを判別する。
Next, it is determined whether the ribbon end indicator 9 is currently lit by checking whether the 1 lighting flag is ON or not.

そして、リボンエンド表示器日が点灯していない(点灯
フラグ=OFF)ときには、終了カウンタA、とフリー
ランカウンタFRCとのカウント値とが一致した(A1
=FRC)か否かを判別する。
When the ribbon end indicator date is not lit (lighting flag = OFF), the count values of the end counter A and the free run counter FRC match (A1
=FRC).

このとき、A、=FRCでなければ消灯状態が1501
13経過していないので、そのままペーパエンド表示器
Sの消灯状態を継続する。
At this time, if A, = FRC, the light-off state is 1501
13 has not yet elapsed, the paper end indicator S continues to be turned off.

また、A、=FRCであれば、フリーランカウンタFR
Cのカウント値に200 (ms)を加算した値を終了
カウンタA1にセット(As←FRC+200)する。
Moreover, if A,=FRC, the free run counter FR
The value obtained by adding 200 (ms) to the count value of C is set in the end counter A1 (As←FRC+200).

その後、終了カウンタA!の内容がフリーランカウンタ
FRCがカウントできる最大値である65535より大
きい(A□>65535)か否かを判別し、A+>[3
5535であれば、終了カウンタA1から65535を
減算した値を終了カウンタA1にセット(A1−At 
 65535)し−As>65535でなければそのま
まにする。
After that, end counter A! is larger than 65535, which is the maximum value that the free run counter FRC can count (A□>65535), and determines whether A+>[3
If it is 5535, set the value obtained by subtracting 65535 from the end counter A1 to the end counter A1 (A1-At
65535) If -As > 65535, leave as is.

そして、リボンエンド表示器Sに点灯信号を出力した後
1点灯フラグをONにする。
Then, after outputting a lighting signal to the ribbon end indicator S, the 1 lighting flag is turned ON.

これに対して、リボンエンド表示器Sが点灯している(
点灯フラグ=ON)ときは、フリーランカウンタFRC
のカウント値が終了カウンタA1と一致した(At =
FRC)か否かを判別する。
In contrast, the ribbon end indicator S is lit (
When lighting flag = ON), free run counter FRC
The count value of matches the end counter A1 (At =
FRC).

このとき、A1=FRCでなければ点灯開始から200
m5経過していないので、そのままペーパエンド表示器
9の点灯状態を継続する。
At this time, if A1 = FRC, it will take 200 seconds from the start of lighting.
Since m5 has not yet elapsed, the paper end indicator 9 continues to be lit.

また、A、=FRCであれば、フリーランカウンタFR
Cのカウント値に150 (ms)加算した値を終了カ
ウンタA、にセット(At←FRC+150)する。
Moreover, if A,=FRC, the free run counter FR
The value obtained by adding 150 (ms) to the count value of C is set in the end counter A (At←FRC+150).

その後、終了カウンタA1の内容がフリーランカウンタ
FRCがカウントできる最大値である65535より大
きい(At>65535)か否かを判別し、A+ >6
5535であれば、終了カウンタA1から65535を
減算した値を終了カウンタA1にセット(A1−At−
65535)し、A+>65535でなければそのまま
にする。
After that, it is determined whether the content of the end counter A1 is larger than 65535, which is the maximum value that the free run counter FRC can count (At>65535), and A+>6
If it is 5535, set the value obtained by subtracting 65535 from the end counter A1 to the end counter A1 (A1-At-
65535) and leave it as is unless A+>65535.

そして、ペーパエンド表示器9への点灯信号の出力を停
止して消灯した後1点灯フラグをOFFにする。
After the output of the lighting signal to the paper end indicator 9 is stopped and the light is turned off, the 1 lighting flag is turned OFF.

このようにして、リボンエンドが発生したときには、リ
ボンエンド表示器Sを200m5点灯。
In this way, when a ribbon end occurs, the ribbon end indicator S is lit for 200m5.

150m5消灯して点滅させる。150m5 lights off and flashing.

このリボンエンド監視処理が終了した後、ペーパエンド
センサをチェックしてペーパエンドか否かを判別し、ペ
ーパエンドであれば上述したリボンエンドの場合と同様
にしてペーパエンド表示器8の点滅処理をする。
After this ribbon end monitoring process is completed, the paper end sensor is checked to determine whether or not the paper is at the end. do.

その後、ポーズスイッチ6がONか否かを判別して、ポ
ーズスイッチ6がONであれば、ポーズフラグONか否
かをチェックして既にポーズスイッチ6が押されている
か否かを判別する。
Thereafter, it is determined whether the pause switch 6 is ON or not, and if the pause switch 6 is ON, it is checked whether the pause flag is ON or not to determine whether the pause switch 6 has already been pressed.

このとき、ポーズフラグONでなければ、フリーランカ
ウンタFRCのカウント値に20(ms)を加算した値
を終了カウンタA2にセット(A2←FRC+20)す
る。
At this time, if the pause flag is not ON, a value obtained by adding 20 (ms) to the count value of the free run counter FRC is set in the end counter A2 (A2←FRC+20).

その後、終了カウンタA2の内容がフリーランカウンタ
FRCがカウントできる最大値である65535より大
きい(A2 >65535)か否かを判別し、A2>6
5535であれば終了カウンタA2から65535を減
算した値を終了カウンタA2にセット(A 2←A2 
65535)し。
After that, it is determined whether the content of the end counter A2 is larger than 65535, which is the maximum value that the free run counter FRC can count (A2 > 65535), and A2 > 6
If it is 5535, set the value obtained by subtracting 65535 from the end counter A2 to the end counter A2 (A 2 ← A2
65535).

A2>65535でなければそのままにして、ボ−ズフ
ラグをONする。
If A2>65535, leave it as is and turn on the Bose flag.

また、ポーズフラグがONでなければ、終了カウンタA
2の内容とフリーランカウンタFRCのカウント値が一
致(A2 =FRC) したか否かを判別する。
Also, if the pause flag is not ON, the end counter A
2 and the count value of the free run counter FRC match (A2 = FRC).

どのとき、A2=FRCでなければ、ポーズスイッチ6
が押された後20rns経過していないので、ポーズス
イッチ6の操作を未だ有効としない。
When A2=FRC, pause switch 6
Since 20 rns have not passed since the button was pressed, the operation of the pause switch 6 is not yet valid.

そして、A2=FRCになれば、ポーズスイッチ6が押
された後20IIls経過したので、ポーズスイッチ6
の操作を有効として、現状態がポーズ状態か否かを判別
し、現状態がポーズ状態であればノットポーズ状態に設
定し、現状態がポーズ状態でなければポーズ状態に設定
した後、ポーズフラグをOFFする。
Then, if A2=FRC, 20IIls have passed since the pause switch 6 was pressed, so the pause switch 6
With the operation enabled, determine whether the current state is in a pause state, if the current state is in a pose state, set it to a not-pause state, and if the current state is not in a pose state, set it to a pause state, and then set the pose flag. Turn off.

このようにポーズスイッチ6が20m5の間挿されてい
るときにのみその操作を有効とするのは正確を期すため
である。
The reason for making the operation valid only when the pause switch 6 is inserted 20 m5 in this way is to ensure accuracy.

なお、このようなスイッチの監視処理は、フロントパネ
ルやリアパネルに付設されるスイッチだけでなく、前述
したようにペイル開スイッチ等その他の検知スイッチの
状態監視にも同様に実施することができ、それによって
スイッチON又はOFF時の検知信号のチャタリングを
回避してより正確に検知結果を判別することができる。
Note that such switch monitoring processing can be performed not only for switches attached to the front panel or rear panel, but also for monitoring the status of other detection switches such as the pail open switch as described above. Accordingly, chattering of the detection signal when the switch is turned on or off can be avoided, and the detection result can be determined more accurately.

そして、このポーズスイッチ6の監視処理が終了した後
、ラインフィードスイッチ7についても同様にして監視
するLFスイッチ処理をする。
After the monitoring process for the pause switch 6 is completed, the LF switch process for monitoring the line feed switch 7 is performed in the same manner.

このプリンタ監視処理から分るように、フリーランカウ
ンタを使用し−て時間を計測する処理においては、各処
理毎に計測開始時点のカウント値を基準にし、各所用時
間を加算して時間経過後のフリーランカウンタのカラン
1−値を求める。
As can be seen from this printer monitoring process, in the process of measuring time using a free-run counter, the count value at the start of measurement is used as a reference for each process, and the required time is added up and calculated after the time elapses. Find the 1-value of the free run counter.

したがって、ミリ秒単位の精度まで要求されるあらゆる
処理に使用することができ5しかも複数の処理で同時に
1個のフリーランカウンタを共用することができ、コス
トも廉価になる。
Therefore, it can be used for all kinds of processing that requires accuracy down to the millisecond level, and moreover, one free-run counter can be shared by a plurality of processing at the same time, and the cost is low.

このように、このプリンタにおいては、予め定めた一定
時間毎にカウント値を更新するカウント手段を備えたの
で、複数の処理で一個のタイマ(計時手段)を共用する
ことができる。
In this way, since this printer is equipped with a counting means that updates the count value at predetermined fixed time intervals, one timer (time measuring means) can be shared by a plurality of processes.

なお、上記実施例においては、この発明を2バイトの領
域に実施し、最高65.535秒まで計測する例につい
て述べたが、フリーランカウンタのバイト数を増加する
ことによりさらに長時間の計測が可能になる。
In the above embodiment, an example was described in which the present invention is implemented in a 2-byte area and the measurement is performed up to a maximum of 65.535 seconds. However, by increasing the number of bytes of the free run counter, it is possible to measure an even longer time. It becomes possible.

また、上記実施例においては、コンピュータの内部RA
Mを使用した例について述べたが、その他の書換え可能
な記憶装置を使用することもできる。
In addition, in the above embodiment, the internal RA of the computer
Although an example using M is described, other rewritable storage devices can also be used.

さらに、上記実施例においては、この発明を活字ホイー
ル型プリンタに実施した例について述べたが、その他の
例え、ばドツトインパクトプリンタ。
Further, in the above embodiments, an example in which the present invention is applied to a type wheel type printer has been described, but other examples include a dot impact printer.

サーマルプリンタ、サーマル転写プリンタ、インクジェ
ットプリンタ、光プリンタ、発光ダイオードプリンタ等
の各種プリンタや電子タイプライタ等の印字装置にも同
様に実施することができる。
The present invention can be similarly applied to various printers such as thermal printers, thermal transfer printers, inkjet printers, optical printers, and light emitting diode printers, and printing devices such as electronic typewriters.

劾ニー釆− 以上説明したように、この発明によればタイマの共用化
を図ることができる。
As explained above, according to the present invention, the timer can be shared.

【図面の簡単な説明】[Brief explanation of drawings]

第1図はこの発明を実施したプリンタの一例を示す外観
斜視図。 第2図及び第3図は同じくその機構部の概略平面図及び
正面図、 第4図は同じくその制御部を示すブロック図、第5図は
同じくメインコントローラ内のRAMに確保したフリー
ランカウンタの説明に供する説明図。 第6図はメインコントローラのマイクロコンピュータが
1ミリ秒毎に実行する割込み処理を示すフロー図、 第7図は第6図のフリーランカウンタのカウント値と時
間経過の関係の説明に供する説明図。 第8図は同じくマイクロコンピュータが実行するプリン
タ監視処理の一例を示すフロー図である。 5・・・フロントパネル SO・・・メインコントローラ 91・・・マイクロコンピュータ 110・・・リアパネル 第1図 第5図 第6図 第7図
FIG. 1 is an external perspective view showing an example of a printer embodying the present invention. Figures 2 and 3 are a schematic plan view and a front view of the mechanism, Figure 4 is a block diagram showing the control unit, and Figure 5 is a diagram of the free run counter secured in the RAM in the main controller. An explanatory diagram for explanation. FIG. 6 is a flow diagram showing interrupt processing executed every millisecond by the microcomputer of the main controller, and FIG. 7 is an explanatory diagram for explaining the relationship between the count value of the free run counter in FIG. 6 and the passage of time. FIG. 8 is a flowchart showing an example of printer monitoring processing similarly executed by the microcomputer. 5...Front panel SO...Main controller 91...Microcomputer 110...Rear panel Fig. 1 Fig. 5 Fig. 6 Fig. 7

Claims (1)

【特許請求の範囲】 1 予め定めた一定の時間毎にカウンタ値を更新するカ
ウント手段を備えたことを特徴とする印字装置。 2 カウント手段のカウント値に基づいて表示器の点灯
制御、ブザーの鳴動制御、スイッチの監視、データ受信
の監視の内の少なくともいずれかの処理をする特許請求
の範囲第1項記載の印字装置。
[Scope of Claims] 1. A printing device characterized by comprising a counting means for updating a counter value at predetermined fixed time intervals. 2. The printing device according to claim 1, which performs at least one of the following: controlling lighting of a display, controlling sound of a buzzer, monitoring switches, and monitoring data reception based on the count value of the counting means.
JP27606485A 1985-11-01 1985-12-10 Printer Pending JPS62135386A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP27606485A JPS62135386A (en) 1985-12-10 1985-12-10 Printer
GB8625965A GB2182288B (en) 1985-11-01 1986-10-30 Printing device
FR868615248A FR2589397B1 (en) 1985-11-01 1986-10-31 PRINTING DEVICE
US06/925,155 US4795284A (en) 1985-11-01 1986-10-31 Printing device with carriage and carrier therefor each integrally press-formed from a respective metal sheet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27606485A JPS62135386A (en) 1985-12-10 1985-12-10 Printer

Publications (1)

Publication Number Publication Date
JPS62135386A true JPS62135386A (en) 1987-06-18

Family

ID=17564295

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27606485A Pending JPS62135386A (en) 1985-11-01 1985-12-10 Printer

Country Status (1)

Country Link
JP (1) JPS62135386A (en)

Similar Documents

Publication Publication Date Title
JPS62135386A (en) Printer
JPS6161051B2 (en)
JPS62187073A (en) Printer
JPS62170375A (en) Printer
US4843572A (en) Inking control method and apparatus for a mailing machine
JPS6221575A (en) Printer
JPS62198462A (en) Printer
JPS6163473A (en) Printer
JPS6266973A (en) Printer
JPH0139932B2 (en)
US4128887A (en) Microprocessor controlled photographic paper cutter
JPS60107350A (en) Printing system
JPS60245581A (en) Printer
JPS61206687A (en) Printer
JPS6225078A (en) Indicator
JPS6287381A (en) Printer
JPS6239268A (en) Printer
JPH05270114A (en) Detecting system for depletion of sheet feeding in printer
JPS6297874A (en) Printer
JPS61228549A (en) Data transfer method
JPS6361185B2 (en)
JPH021743B2 (en)
JPS6469376A (en) Printing history data storing circuit
JPS6283152A (en) Printer
JPH0331591B2 (en)