JPS6050154B2 - printer control device - Google Patents

printer control device

Info

Publication number
JPS6050154B2
JPS6050154B2 JP6011279A JP6011279A JPS6050154B2 JP S6050154 B2 JPS6050154 B2 JP S6050154B2 JP 6011279 A JP6011279 A JP 6011279A JP 6011279 A JP6011279 A JP 6011279A JP S6050154 B2 JPS6050154 B2 JP S6050154B2
Authority
JP
Japan
Prior art keywords
timing
printer
circuit
signal
motor
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
Application number
JP6011279A
Other languages
Japanese (ja)
Other versions
JPS55153081A (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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP6011279A priority Critical patent/JPS6050154B2/en
Publication of JPS55153081A publication Critical patent/JPS55153081A/en
Publication of JPS6050154B2 publication Critical patent/JPS6050154B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Handling Of Sheets (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Description

【発明の詳細な説明】 本発明は、簡易なドットマトリクスプリンタの制御をマ
イクロの中央処理装置(centralPrOcess
()にunit:以下CPUという)等て制御する場合
に、その制御のためのプログラムが簡単になる制御装置
を提供するものてある。
DETAILED DESCRIPTION OF THE INVENTION The present invention provides control of a simple dot matrix printer using a micro central processing unit (centralPrOcess).
The present invention provides a control device that simplifies a program for controlling a unit (hereinafter referred to as a CPU) in parentheses.

キャッシュレジスタやPOSまたは計測器等用として、
簡易なドットマトリクスプリンタがある。
For use in cash registers, POS, measuring instruments, etc.
There is a simple dot matrix printer.

この種プリンタは、低価格、小形であることが特長てあ
るが、制御の立場からみると、かえつて難しいものがあ
る。すなわち、プリンタから得られる情報としては、1
印字周期に1回のみ発生する信号Iと、プリンタのモー
タの回転に比例する周波数てでる信号■のみしかなく、
またプリンタの印字サイクルは一つのモータの伝達機構
で、すべて桟械的に行われる。したがつて制御するには
、前記信号Iと■から印字に必要なすべてのタイミング
を判定し、そのタイミングで必要であれば信号を出し、
所定の動作を行わせる。違うタイミングで信号を出して
も、プリンタ側は機械的なシーケンスて動作しているた
め無視されるか、またはプリンタ異常の原因となる。す
なわち、プリンタの印字、紙送り、赤印字か黒印字か、
1行印字後モータの電源を切るか、または次行も連続し
て印字するか、更には紙送りも1行のみか、または数行
の送りをするか等のすべての動作はタイミングが決めら
れていて、上記タイミング信号1、■より判定して行わ
なければならない。以上のようにして制御するより具体
的な例を示しているのが第1図てある。
Although this type of printer is characterized by its low cost and small size, it is rather difficult to control. In other words, the information obtained from the printer is 1
There are only the signal I, which occurs only once per printing cycle, and the signal ■, which has a frequency proportional to the rotation of the printer's motor.
Furthermore, the printer's printing cycle is performed mechanically using a single motor transmission mechanism. Therefore, in order to control, determine all the timings necessary for printing from the signals I and ■, issue a signal if necessary at that timing,
Make the user perform a predetermined action. Even if a signal is issued at a different timing, the printer operates in a mechanical sequence, so it will be ignored or cause a printer error. In other words, printer printing, paper feed, red printing or black printing,
Timing is determined for all operations, such as whether to turn off the motor after printing one line, whether to print the next line continuously, and whether to feed the paper only one line or several lines. Therefore, it must be determined based on the timing signals 1 and 2 above. FIG. 1 shows a more specific example of controlling as described above.

第1図の動作を説明すれば次のようになる。プリンタか
らのタイミング信号1、■はCPUに取り込まれる。C
PUのメモリ部には、信号Iと信号Πから、タイミング
を検出するプログラムと、検出したタイミングに対し、
例えば紙送りをするか、あるいはしないのか・のシーケ
ンスがプログラムされている。例えば紙送りをする場合
には、CPUが紙送りの信号を出力し、プリンタに伝え
られる。このようにして紙送りが実行される。以上の方
法ての制御は、回路が簡単になるという特長はあるが、
次のような欠、点がある。(1)CPUがプリンタ専用
に使える場合にはよいが、他の機器の制御もする場合に
、タイミングを見逃すことが起り得る。
The operation shown in FIG. 1 will be explained as follows. Timing signals 1 and 2 from the printer are taken into the CPU. C
The memory section of the PU contains a program that detects timing from signal I and signal Π, and a program that detects timing from signal I and signal Π.
For example, a sequence is programmed to determine whether paper should be fed or not. For example, when feeding paper, the CPU outputs a paper feeding signal, which is transmitted to the printer. Paper feeding is performed in this manner. Although the control method described above has the advantage of simplifying the circuit,
It has the following shortcomings and points. (1) This is fine if the CPU can be used exclusively for the printer, but if the CPU is also used to control other devices, timing may be missed.

すなわち、キーボードの制御も一緒に行う場合、プリン
タの所定のタイミングの時に、キーも押された場合、プ
ログラムによつては、キーの方を受付け、プリンタのタ
イミングを見逃す。(2)プリンタの1印字サイクルが
終了するまで、常にプリンタからのタイミング信号を監
視しなければならない。
That is, when controlling the keyboard at the same time, if a key is also pressed at a predetermined printer timing, depending on the program, the key will be accepted and the printer timing will be missed. (2) Timing signals from the printer must be constantly monitored until one printing cycle of the printer is completed.

このためCPUの使用効率が悪くなる。(3)上記(1
)てあげた問題点をさけようとすれば、プログラムが困
難になる。
As a result, the CPU usage efficiency deteriorates. (3) Above (1)
) If you try to avoid the problems listed above, it will become difficult to program.

またプログラムが長くなるため、メモリ量が多くなり、
価格が高くなるおそれがある。本発明は、上記のような
欠点を解消せんとするものてある。
Also, as the program becomes longer, the amount of memory increases.
There is a risk that the price will increase. The present invention aims to overcome the above-mentioned drawbacks.

以下その一実施例について第2図の図面とともに説明す
る。
One embodiment will be described below with reference to the drawing of FIG. 2.

なお、第3図は第2図の動作の説明に必要なタイミング
図である。第2図において、1はCPU,2はそのCP
Ulからのデータを保持するラッチ回路、3はモータを
駆動源としその伝達機構により機械的に1印字サイクル
のシーケンスが決められ、かつ1印字サイクル中に1回
発生する信号1とモータの回転に比例する周波数となる
信号■とを発生するプリンタ、4はタイミング前処理回
路、5はタイミング回路、6,7,8,9はそのタイミ
ング回路5の出力信号とラッチ回路2の出力信号との論
理積をとるアンド回路、10はアンド回路6の出力信号
とアンド回路7の出力信号との論理和をとるオア回路で
あり、図示のように結線されている。
Note that FIG. 3 is a timing diagram necessary for explaining the operation of FIG. 2. In Figure 2, 1 is the CPU, 2 is its CPU
A latch circuit 3 that holds data from Ul uses a motor as a drive source, and its transmission mechanism mechanically determines the sequence of one printing cycle, and also connects the signal 1 generated once during one printing cycle to the rotation of the motor. 4 is a timing preprocessing circuit, 5 is a timing circuit, and 6, 7, 8, 9 are logics between the output signal of the timing circuit 5 and the output signal of the latch circuit 2; An AND circuit 10 which takes the product is an OR circuit which takes the logical sum of the output signal of the AND circuit 6 and the output signal of the AND circuit 7, and is connected as shown.

そして、プリンタ3からの信号1,■は、タイミング前
処理回路4に入る。信号1,■のうちIは第3図に示す
ように1印字サイクルで1回のみ発生する。一方、信号
■はプリンタ3のモータが回つている間はモータの回転
速度に比例した周波数の信号である。またプリンタ3の
印字サイクルはモータの回転を歯車、カム等で機械的に
伝達す!ることで行われるから、制御のためのタイミン
グを得るには、前記信号■から得ればよいが、その信号
■の基準が明らかでない。そこで信号1を利用して、タ
イミング前処理回路4の中でTl,T2・・と番号付け
をする。したがつてタイミングT1といえば、印字ヘッ
ドの位置がどこにあるか一義的に決まることになる。こ
の前処理回路4の出力を主としてカウンタとエンコーダ
より構成されるタイミング回路5に入力する。タイミン
グ回路5は第3図のT1からカウントを開始し、そのカ
ウント値をエンコードして、プリンタ3によつて決まつ
ている各動作タイミングを出力する。すなわち第3図に
示したように赤印字ソレノイドを引くタイミング、フィ
ードするタイミング(フィードタイミングにI,■と2
つあるのは、フィード11フィード■ともに実行すれば
2行フィード、どちらか一方だけでは1行というように
、早送り機能を代用しているものてある)、それからノ
電源オフタイミングが出力される。これらのタイミング
は、プリンタ3が起動し、モータが回れば必す発生する
。CPUlはプリンタ3のモータを0Nした後1印字サ
イクルに関する情報、すなわち赤印字か、黒印字か、印
字後のフィードはする・かしないか、フィードするとす
れば1行か2行か、1印字サイクル終了後、モータをオ
フにするかまたは続けて次の印字サイクルを続けるか等
の情報を送り出し、4ビットのラッチ回路2に記憶させ
る。そしてラッチ回路2の各ビットの出力゜は、タイミ
ング回路5の各タイミング出力と同じ機能が一対となつ
てアンド回路6,7,8,9に入る。タイミング回路5
の出力は所定のタイミングで必ず信号が出るから、ラッ
チ回路2の出力が“゜1゛であるビットはその出力がプ
リンタ3に伝えられ所定の動作を行う。以上のように印
字サイクルの始めに、CPUはその印字サイクルに関す
る動作モードを1回出力しておけば、次の印字サイクル
の始めまてCPUlは、プリンタ3の動作モードに関し
てタイミングを監視する必要はなくなる。以上のような
構成よりなる本発明のプリンタ制御装置によれば、次の
ような利点がある。
Then, the signals 1 and 2 from the printer 3 enter the timing preprocessing circuit 4. Of the signals 1 and 2, I occurs only once in one print cycle, as shown in FIG. On the other hand, the signal (2) is a signal whose frequency is proportional to the rotational speed of the motor while the motor of the printer 3 is rotating. In addition, the printing cycle of the printer 3 is mechanically transmitted through gears, cams, etc.! Therefore, the timing for control can be obtained from the signal (2), but the reference for that signal (2) is not clear. Therefore, using the signal 1, the timing preprocessing circuit 4 numbers them as Tl, T2, . . . . Therefore, timing T1 uniquely determines where the print head is located. The output of this preprocessing circuit 4 is input to a timing circuit 5 mainly composed of a counter and an encoder. The timing circuit 5 starts counting from T1 in FIG. 3, encodes the count value, and outputs each operation timing determined by the printer 3. In other words, as shown in Figure 3, the timing to pull the red printing solenoid and the timing to feed (I, ■ and 2 in the feed timing)
There is one that substitutes a fast-forward function, such as feeding 2 lines if both feeds and 11 feeds are executed, and 1 line if only one of them is executed), and then outputting the power off timing. These timings always occur when the printer 3 starts up and the motor rotates. CPUl is information about one printing cycle after turning the motor of the printer 3 to 0N, that is, whether to print red or black, whether to feed after printing or not, and if feeding, 1 or 2 lines, after one printing cycle is completed. , information such as whether to turn off the motor or continue with the next printing cycle is stored in the 4-bit latch circuit 2. The output of each bit of the latch circuit 2 is paired with the same function as each timing output of the timing circuit 5 and input to AND circuits 6, 7, 8, and 9. timing circuit 5
Since a signal is always output at a predetermined timing, the bit whose output from the latch circuit 2 is "゜1" is transmitted to the printer 3 and performs a predetermined operation.As described above, at the beginning of the print cycle , if the CPU outputs the operation mode related to the print cycle once, the CPU 1 does not need to monitor the timing regarding the operation mode of the printer 3 at the start of the next print cycle. According to the printer control device of the present invention, there are the following advantages.

(1)CPUは動作モードを1度出すだけてよいから、
プログラムが簡単になる。
(1) The CPU only needs to issue the operating mode once, so
Programming becomes easier.

(2)それにともなつて、CPUの空時間が生じ、他の
機器の制御に利用できる。
(2) As a result, idle time of the CPU occurs, which can be used to control other devices.

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

第1図は従来のプリンタ制御装置のブロック図、第2図
は本発明によるプリンタ制御装置の一実施例のブロック
図、第3図は同装置におけるタイミング図である。 1・・・・・・中央処理装置(CPU),2・・・・・
ラッチ回路、3・・・・・プリンタ、4・・・・・タイ
ミング前処理回路、5・・・・・・タイミング回路、6
,7,8,9・・・アンド回路、10・・・・オア回路
FIG. 1 is a block diagram of a conventional printer control device, FIG. 2 is a block diagram of an embodiment of the printer control device according to the present invention, and FIG. 3 is a timing diagram of the same device. 1...Central processing unit (CPU), 2...
Latch circuit, 3... Printer, 4... Timing preprocessing circuit, 5... Timing circuit, 6
, 7, 8, 9...AND circuit, 10...OR circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 中央処理装置と、その中央処理装置からのデータを
保持するラッチ回路と、モータを駆動源としその伝達機
構により機械的に1印字サイクルのシーケンスが決めら
れかつ1印字サイクル中に1回発生する信号 I と前記
モータの回転に比例する周波数となる信号IIとを発生す
るプリンタと、前記信号 I とIIとを入力としモータオ
フ、フィード、赤印字等のタイミング信号を出力するタ
イミング回路と、そのタイミング回路の出力信号と前記
ラッチ回路の出力信号との論理積をとるアンド回路とを
具備してなることを特徴とするプリンタ制御装置。
1 The sequence of one print cycle is mechanically determined by a central processing unit, a latch circuit that holds data from the central processing unit, and a transmission mechanism using a motor as a drive source, and occurs once during one print cycle. A printer that generates a signal I and a signal II having a frequency proportional to the rotation of the motor, a timing circuit that receives the signals I and II as input and outputs timing signals such as motor off, feed, red printing, etc., and the timing thereof. 1. A printer control device comprising: an AND circuit that performs a logical product of an output signal of the circuit and an output signal of the latch circuit.
JP6011279A 1979-05-15 1979-05-15 printer control device Expired JPS6050154B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6011279A JPS6050154B2 (en) 1979-05-15 1979-05-15 printer control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6011279A JPS6050154B2 (en) 1979-05-15 1979-05-15 printer control device

Publications (2)

Publication Number Publication Date
JPS55153081A JPS55153081A (en) 1980-11-28
JPS6050154B2 true JPS6050154B2 (en) 1985-11-07

Family

ID=13132696

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6011279A Expired JPS6050154B2 (en) 1979-05-15 1979-05-15 printer control device

Country Status (1)

Country Link
JP (1) JPS6050154B2 (en)

Also Published As

Publication number Publication date
JPS55153081A (en) 1980-11-28

Similar Documents

Publication Publication Date Title
US4096578A (en) Data system with microprocessor featuring multiplexed data transfer and repeat cycle driving arrangement
JPS6050154B2 (en) printer control device
US4175488A (en) Printer
US4328746A (en) Weighted modulus numbering apparatus
JPS5845980A (en) Electronic device with printer
JP3182789B2 (en) Printer control device, printer and control method therefor
JPS6043528B2 (en) electronic typewriter
JP2570334B2 (en) Dial-selectable tape printer
JP2823415B2 (en) Stepping motor control device
JPS5829237B2 (en) serial printer
JPH0313077B2 (en)
US3680480A (en) Chain printer hammer control
JPH0753461B2 (en) Printer
JPS61279576A (en) Electronic typewriter
JPS6131882B2 (en)
JPS62104783A (en) Printing apparatus
SU964676A2 (en) Printing device
JPS61109134A (en) Transfer system of print data
JPH06233591A (en) Cum operation controller
JP2756269B2 (en) Printer device
JPH0461376B2 (en)
JPS6049432A (en) Printer device
JPS59855B2 (en) electronic cash register
JPS5938081A (en) Page shift control system
JPS6019823B2 (en) information processing equipment