JPH027092B2 - - Google Patents

Info

Publication number
JPH027092B2
JPH027092B2 JP55176228A JP17622880A JPH027092B2 JP H027092 B2 JPH027092 B2 JP H027092B2 JP 55176228 A JP55176228 A JP 55176228A JP 17622880 A JP17622880 A JP 17622880A JP H027092 B2 JPH027092 B2 JP H027092B2
Authority
JP
Japan
Prior art keywords
font
printer
input port
data bus
terminal
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
Application number
JP55176228A
Other languages
Japanese (ja)
Other versions
JPS57100579A (en
Inventor
Kyobumi Nosaka
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.)
PFU Ltd
Original Assignee
PFU 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 PFU Ltd filed Critical PFU Ltd
Priority to JP55176228A priority Critical patent/JPS57100579A/en
Publication of JPS57100579A publication Critical patent/JPS57100579A/en
Publication of JPH027092B2 publication Critical patent/JPH027092B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K15/00Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
    • G06K15/02Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers

Description

【発明の詳細な説明】 本発明は、所望の書体で以て印字を行い得るよ
うにしたプリンタの制御方式に関するものであ
る。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a printer control system that enables printing in a desired font.

従来の漢字プリンタ装置においては電源投入時
又は1行印字開始時点における漢字の字体は各メ
ーカによつて一義的に決定されることが普通であ
つた。しかし、ユーザによつてはメーカによつて
一義的に規定された書体が不都合であるため、1
行印字開始時にオーダ又はコマンドによつて書体
を変更するように本体系装置の処理プログラムを
作成する必要があつた。
In conventional kanji printers, the font of kanji characters when the power is turned on or when one line of printing starts is usually uniquely determined by each manufacturer. However, some users find it inconvenient to use a typeface that is uniquely defined by the manufacturer.
It was necessary to create a processing program for the main system device to change the font according to an order or command when starting line printing.

本発明は、上記に考察に基づくものであつて、
本体系装置の処理プログラムで以て1行印字を開
始する度に書体に関するオーダもしくはコマンド
を発行する必要がなく、プリンタ装置側の設定に
よつて希望する書体の印字を行い得るようにした
プリンタ装置の制御方式を提供することを目的と
している。そしてそのため、本発明のプリンタ装
置の制御方式は、 プロセツサおよび記憶装置を持つプリンタ制御
装置と、 該プリンタ制御装置に接続されたデータ・バス
と、 上記データ・バスに接続された入力ポートと、 上記データ・バスに接続された出力ポートと を備え、 上記データ・バス上のデータを上記出力ポート
を介してプリンタ機構部側に送り得ると共に、 上記プリンタ機構部側からのデータを上記入力
ポートを介して上記データ・バス上にのせ得るよ
うになつてプリンタ装置において、 上記入力ポートの入力側に印字文字の書体の種
類を設定できる書体設定用端子を設け、 電源投入時または1行印字開始時に上記設定端
子の状態情報を読取り、当該状態情報によつて指
定された書体の文字を印字するための設定を行う
イニシヤル書体決定処理手段を上記プリンタ制御
装置に設け、 上記イニシヤル書体処理決定手段によつて生成
された変換指令信号に従つて、ドツト・パルス発
生装置から出力されたドツト・パルスを周波数変
換し、周波数変換されたドツト・パルスを上記入
力ポートに入力する周波数変換回路を設けたこと
を特徴とするものである。以下、本発明を図面を
参照しつつ説明する。
The present invention is based on the above considerations, and includes:
A printer device in which there is no need to issue an order or command regarding the font each time a line of printing is started using the processing program of the main system device, and the desired font can be printed by setting the printer device side. The purpose is to provide a control method for Therefore, the printer control method of the present invention includes: a printer control device having a processor and a storage device; a data bus connected to the printer control device; an input port connected to the data bus; and an output port connected to a data bus, the data on the data bus can be sent to the printer mechanism side through the output port, and the data from the printer mechanism side can be sent through the input port. In the printer device, which can be placed on the above-mentioned data bus, a font setting terminal is provided on the input side of the above-mentioned input port to set the type of font of printed characters, and the above-mentioned type is set when the power is turned on or when printing one line starts. Initial font determining processing means is provided in the printer control device for reading status information of the setting terminal and making settings for printing characters in a font designated by the status information, and the initial font processing determining means A frequency conversion circuit is provided which converts the frequency of the dot pulse output from the dot pulse generator according to the generated conversion command signal and inputs the frequency-converted dot pulse to the input port. That is. Hereinafter, the present invention will be explained with reference to the drawings.

第1図は本発明で使用されるプリンタ装置の1
例のブロツク図、第2図および第3図は本発明の
書体設定方式の1実施例を説明する図、第4図お
よび第5図は本発明による書体設定方式の他の実
施例を説明する図、第6図は第2図および第3図
の書体設定方式を採用した場合におけるイニシヤ
ル書体決定ルーチンを示す図、第7図は書体とド
ツト・パルスとの関係を説明するための図、第8
図はドツト・パルスの生成を説明する図である。
Figure 1 shows one of the printer devices used in the present invention.
Example block diagrams, FIGS. 2 and 3 are diagrams for explaining one embodiment of the font setting method according to the present invention, and FIGS. 4 and 5 are diagrams for explaining another embodiment of the font setting method according to the present invention. 6 is a diagram showing the initial font determination routine when the font setting method shown in FIGS. 2 and 3 is adopted. FIG. 7 is a diagram for explaining the relationship between the font and dot pulse. 8
The figure is a diagram explaining the generation of dot pulses.

第1図において、1は入出力制御部、2は
RAM、3はマイクロプロセツサ、4はROM、
5ないし7はデータ・レジスタ、8はアドレス・
デコーダ、9は出力ポート、10は入力ポート、
11は設定端子、12はライン・ドライバ、13
はライン・レシーバ、14は印字ヘツド駆動部、
15はキヤリア・モータ駆動部、16はセンサ、
17はプリンタ機構部をそれぞれ示している。入
出力制御部1は上位計算機との間の通信を行うも
のであり、RAM2には印字データなどの各種の
データが格納されている。マイクロプロセツサ3
は、ROM4に格納されているマイクロプログラ
ムを実行するものである。ROM4には各種のマ
イクロプログラムが格納され、また、この中に文
字発生器が形成されている。アドレス・デコーダ
8はアドレス・バス上のアドレスをデコードして
出力ポート9又は入力ポート10を制御するもの
である。出力ポート9は、アドレス・デコーダの
指示にしたがつて、データを出力すべき出力端子
を決定し、この出力端子からデータを出力する。
入力ポート10は、アドレス・デコーダの指示に
したがつて入力端子を選択し、この入力端子から
のデータをデータ・バス上にのせる。設定端子1
1は印字文字の書体を設定するものである。ライ
ン・ドライバ12は出力ポート9からの信号を増
幅するものであり、ライン・レシーバ13はセン
サ16からの信号を増幅するものである。印字ヘ
ツド駆動部14は印字データに基づき印字ヘツド
を駆動するものであり、キヤリア・モータ駆動部
15はキヤリアを移動させるものである。センサ
16は、タイミングフエンス・センサやページ・
エンド・センサなどの各種のセンサから構成され
ている。
In Fig. 1, 1 is an input/output control unit, and 2 is an input/output control unit.
RAM, 3 is microprocessor, 4 is ROM,
5 to 7 are data registers, 8 is address register.
decoder, 9 is the output port, 10 is the input port,
11 is a setting terminal, 12 is a line driver, 13
14 is a line receiver, 14 is a print head drive unit,
15 is a carrier motor drive unit, 16 is a sensor,
Reference numeral 17 indicates a printer mechanism section. The input/output control unit 1 performs communication with the host computer, and the RAM 2 stores various data such as print data. Microprocessor 3
executes a microprogram stored in the ROM 4. Various microprograms are stored in the ROM 4, and a character generator is formed therein. Address decoder 8 decodes addresses on the address bus to control output port 9 or input port 10. The output port 9 determines an output terminal to which data should be output in accordance with instructions from the address decoder, and outputs the data from this output terminal.
Input port 10 selects an input terminal according to instructions from the address decoder, and puts data from this input terminal on the data bus. Setting terminal 1
1 is for setting the font of printed characters. The line driver 12 amplifies the signal from the output port 9, and the line receiver 13 amplifies the signal from the sensor 16. The print head drive section 14 drives the print head based on print data, and the carrier motor drive section 15 moves the carrier. The sensor 16 is a timing fence sensor or a page sensor.
It consists of various sensors such as end sensors.

第2図および第3図は本発明による書体設定方
式の実施例を示すものである。第2図において1
2はトライ・ステート・ゲート、S1ないしS3
は端子をそれぞれ示している。端子S1,S2,
S3の状態は、対応するアドレス・デコード信号
がオンのとき読取られ、この状態信号は入力ポー
トの出力端子およびゲート12を経由してデー
タ・バス上に送出される。設定端子11のスイツ
チの状態は後述するイニシヤル書体決定ルーチン
によつて読取られる。
FIGS. 2 and 3 show an embodiment of the font setting method according to the present invention. In Figure 2, 1
2 is a tri-state gate, S1 to S3
indicate the respective terminals. Terminals S1, S2,
The state of S3 is read when the corresponding address decode signal is on, and this state signal is sent onto the data bus via the output terminal of the input port and gate 12. The state of the switch at the setting terminal 11 is read by an initial font determination routine to be described later.

第3図は設定端子11の端子S1,S2,S3
の状態と書体との関係を示すものである。端子S
1が低レベル(論理「0」)であると、文字ピツ
チおよび文字サイズが共に24/120インチの書体
が選択され、端子S2が低レベルであると、文字
ピツチが24/120インチ、文字サイズが15〜120イ
ンチの書体が選択され、端子S3が低レベルであ
ると、文字ピツチが18/120インチ、文字サイズ
が15/120インチの書体が選択される。
Figure 3 shows terminals S1, S2, and S3 of setting terminal 11.
This shows the relationship between the state of the font and the typeface. terminal S
When 1 is low level (logic "0"), a font with both character pitch and character size of 24/120 inches is selected, and when terminal S2 is low level, character pitch is 24/120 inches and character size is selected. If the terminal S3 is at a low level, a font with a character pitch of 18/120 inches and a character size of 15/120 inches is selected.

第4図および第5図は本発明による書体設定方
式の他の実施例を示すものである。第4図の端子
S1,S2,S3は第5図に示すような機能を有
している。即ち、端子S1は文字ピツチ選択端子
であり、高レベル(論理「1」)のときは24/120
インチ間隔を選択し、論理「0」のときには18/
120インチの間隔を選択する。端子S2は文字サ
イズ選択端子であつて、論理「1」のときには文
字サイズは24/120インチとなり、論理「0」の
ときは文字サシズは15/120インチとなる。端子
S3は縦・横選択端子であつて、論理「1」のと
きは縦文字を示し、論理「0」のときには横文字
を指定する。
FIGS. 4 and 5 show other embodiments of the font setting method according to the present invention. Terminals S1, S2, and S3 in FIG. 4 have functions as shown in FIG. 5. That is, the terminal S1 is a character pitch selection terminal, and when it is at a high level (logic "1"), it selects 24/120.
Select inch spacing, 18/18 when logical “0”
Select 120 inch spacing. The terminal S2 is a character size selection terminal, and when the logic is "1", the character size is 24/120 inches, and when the logic is "0", the character size is 15/120 inches. The terminal S3 is a vertical/horizontal selection terminal, and when the logic is "1", it indicates a vertical character, and when the logic is "0", it designates a horizontal character.

第6図は第2図および第3図の書体設定方式を
用いた場合におけるイニシヤル書体決定ルーチン
を示すものである。このイニシヤル書体決定ルー
チンは、電源投入時および1行印字開始時に実行
されるものである。イニシヤル書体決定ルーチン
が実行されると、先ず端子S1が論理「0」か否
かが調べられ、論理「0」のときには、文字ピツ
チおよび文字サイズが共に24/120インチに設定
される。端子S1が「0」でない場合には端子S
2が論理「0」であるか否かが調べられ、端子S
2が論理「0」であるときは、文字ピツチが24/
120インチに設定され、文字サイズが15/120イン
チに設定される。端子S2が「0」でないときに
は、端子S3が調べられ、「0」のときには文字
ピツチが18/120インチに設定され、文字サイズ
が15/120インチに設定される。端子S1,S2,
S3の全てが「0」でないときには、エラー・ル
ーチンが実行される。文字ピツチおよび文字サイ
ズが設定された後、印字ルーチンが実行される。
FIG. 6 shows an initial font determination routine when the font setting methods of FIGS. 2 and 3 are used. This initial font determination routine is executed when the power is turned on and when printing one line starts. When the initial font determination routine is executed, it is first checked whether the terminal S1 is at logic "0" or not, and when it is at logic "0", both the character pitch and the character size are set to 24/120 inches. If terminal S1 is not “0”, terminal S
2 is logic "0" or not, and the terminal S
When 2 is logical “0”, the character pitch is 24/
It is set to 120 inches, and the font size is set to 15/120 inches. When the terminal S2 is not "0", the terminal S3 is checked, and when it is "0", the character pitch is set to 18/120 inches, and the character size is set to 15/120 inches. Terminals S1, S2,
If all of S3 are not "0", an error routine is executed. After the character pitch and character size are set, the print routine is executed.

第7図は書体とドツト・パルスとの関係を説明
する図である。第7図aは文字サイズが15/120
インチの場合のドツト・パルス、第7図bは文字
サイズが24/120インチの場合のドツト・パルス
である。周期t2は1.5t1である。例えば、1文字
16×16ビツト・マトリツクス構成の場合、文字サ
イズが24/120インチのときにはそのドツト・パ
ルス間隔は1/80インチであり、文字サイズが
15/120インチのときにはドツト・パルス間隔は
1/120インチとなる。タイミング・フエンス・
センサが1/120インチ毎にパルスを発生するも
のとすれば、このパルスをドツト・パルスとして
用い、ドツト・パルス毎に印字パルスを駆動すれ
ば文字サイズが15/120インチである文字が印字
される。文字サイズが24/120インチの文字を印
字する場合には、タイミング・センサから3個の
パルスが生成される度に2個のパルスが生成され
るようにし、このパルスをドツト・パルスとして
用いれば良い。
FIG. 7 is a diagram illustrating the relationship between typefaces and dot pulses. In Figure 7 a, the font size is 15/120
Dot pulses for inch characters, FIG. 7b shows dot pulses for character sizes of 24/120 inches. The period t2 is 1.5t1. For example, one character
In the case of a 16 x 16 bit matrix configuration, when the character size is 24/120 inches, the dot pulse interval is 1/80 inch;
At 15/120 inch, the dot pulse interval is 1/120 inch. Timing/Fence/
Assuming that the sensor generates a pulse every 1/120 inch, if this pulse is used as a dot pulse and a print pulse is driven for each dot pulse, a character with a character size of 15/120 inch will be printed. Ru. When printing characters with a character size of 24/120 inches, you can generate two pulses every time the timing sensor generates three pulses, and use these pulses as dot pulses. good.

第8図はドツト・パルスの生成を説明する図で
あつて、13はパルス周波数変換回路を示してい
る。この周波数変換回路13は、例えば第1図の
入力ポート10とライン・レシーバ13との間に
存在する。変換指令信号は、イニシヤル書体決定
ルーチンによつて読取られた書体情報によつて生
成されるものであり、文字サイズが15/120イン
チの場合には変換指令信号はタイミング・フエン
ス・センサからのパルスをスルーで通すことを周
波数変換回路13に対して指令し、文字サイズが
24/120インチの場合にはパルス周波数を2/3
倍すべきことを周波数変換回路13に対して指令
する。
FIG. 8 is a diagram for explaining the generation of dot pulses, and numeral 13 indicates a pulse frequency conversion circuit. This frequency conversion circuit 13 is present, for example, between the input port 10 and the line receiver 13 in FIG. The conversion command signal is generated based on the font information read by the initial font determination routine, and when the character size is 15/120 inches, the conversion command signal is a pulse from the timing fence sensor. The frequency conversion circuit 13 is instructed to pass through the text, and the character size is changed.
In the case of 24/120 inches, reduce the pulse frequency to 2/3
A command is given to the frequency conversion circuit 13 to multiply the frequency.

以上の説明から明らかなように、本発明によれ
ば、入力ポートに書体設定のための設定端子を設
け、電源投入時および1行印字開始時に上記設定
端子の状態を読取り、設定端子の状態で指定され
る書体で以つて印字を行つているので、本体装置
の処理プログラムで印字の書体を指定する必要が
なく、簡単に書体制御を行うことが出来る。
As is clear from the above description, according to the present invention, a setting terminal for setting the font is provided in the input port, and the state of the setting terminal is read when the power is turned on and when printing one line starts, and the state of the setting terminal is checked. Since the specified font is used for printing, there is no need to specify the printing font in the processing program of the main unit, and the font can be easily controlled.

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

第1図は本発明で使用されるプリンタ装置の1
例のブロツク図、第2図および第3図は本発明の
書体設定方式の1実施例を説明する図、第4図お
よび第5図は本発明による書体設定方式の他の実
施例を説明する図、第6図は第2図および第3図
の書体設定方式を採用した場合におけるイニシヤ
ル書体決定ルーチンを示す図、第7図は書体とド
ツト・パルスとの関係を説明するための図、第8
図はドツト・パルスの生成を説明する図である。 1…入出力制御部、2…RAM、3…マイクロ
プロセツサ、4…ROM、5ないし7…データ・
レジスタ、8…アドレス・デコーダ、9…出力ポ
ート、10…入力ポート、11…設定端子、12
…ライン・ドライバ、13…ライン・レシーバ、
14…印字ヘツド駆動部、15…キヤリア・モー
タ駆動部、16…センサ、17…プリンタ機構
部。
Figure 1 shows one of the printer devices used in the present invention.
Example block diagrams, FIGS. 2 and 3 are diagrams for explaining one embodiment of the font setting method according to the present invention, and FIGS. 4 and 5 are diagrams for explaining another embodiment of the font setting method according to the present invention. 6 is a diagram showing the initial font determination routine when the font setting method shown in FIGS. 2 and 3 is adopted. FIG. 7 is a diagram for explaining the relationship between the font and dot pulse. 8
The figure is a diagram explaining the generation of dot pulses. 1...I/O control unit, 2...RAM, 3...microprocessor, 4...ROM, 5 to 7...data/
Register, 8... Address decoder, 9... Output port, 10... Input port, 11... Setting terminal, 12
...Line driver, 13...Line receiver,
14... Print head drive section, 15... Carrier motor drive section, 16... Sensor, 17... Printer mechanism section.

Claims (1)

【特許請求の範囲】 1 プロセツサおよび記憶装置を持つプリンタ制
御装置と、 該プリンタ制御装置に接続されたデータ・バス
と、 上記データ・バスに接続された入力ポートと、 上記データ・バスに接続された出力ポートと を備え、 上記データ・バス上のデータを上記出力ポート
を介してプリンタ機構部側に送り得ると共に、 上記プリンタ機構部側からのデータを上記入力
ポートを介して上記データ・バス上にのせ得るよ
うになつたプリンタ装置において、 上記入力ポートの入力側に印字文字の書体の種
類を設定できる書体設定用端子を設け、 電源投入時または1行印字開始時に上記設定端
子の状態情報を読取り、当該状態情報によつて指
定された書体の文字を印字するための設定を行う
イニシヤル書体決定処理手段を上記プリンタ制御
装置に設け、 上記イニシヤル書体決定処理手段によつて生成
された変換指令信号に従つて、ドツト・パルス発
生装置から出力されたドツト・パルスを周波数変
換し、周波数変換されたドツト・パルスを上記入
力ポートに入力する周波数変換回路を設けた ことを特徴とするプリンタ装置の制御方式。
[Scope of Claims] 1. A printer control device having a processor and a storage device, a data bus connected to the printer control device, an input port connected to the data bus, and an input port connected to the data bus. and an output port, the data on the data bus can be sent to the printer mechanism side through the output port, and the data from the printer mechanism side can be transmitted onto the data bus through the input port. In printer devices that can now be mounted on printers, a font setting terminal is provided on the input side of the input port to set the font type of printed characters, and the status information of the setting terminal is sent when the power is turned on or when one line of printing starts. The printer control device is provided with an initial font determination processing means for reading and setting for printing characters in a font designated by the status information, and a conversion command signal generated by the initial font determination processing means. Accordingly, the control of a printer device is characterized in that it is provided with a frequency conversion circuit that converts the frequency of the dot pulses output from the dot pulse generator and inputs the frequency-converted dot pulses to the input port. method.
JP55176228A 1980-12-13 1980-12-13 Control system of printer Granted JPS57100579A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP55176228A JPS57100579A (en) 1980-12-13 1980-12-13 Control system of printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP55176228A JPS57100579A (en) 1980-12-13 1980-12-13 Control system of printer

Publications (2)

Publication Number Publication Date
JPS57100579A JPS57100579A (en) 1982-06-22
JPH027092B2 true JPH027092B2 (en) 1990-02-15

Family

ID=16009865

Family Applications (1)

Application Number Title Priority Date Filing Date
JP55176228A Granted JPS57100579A (en) 1980-12-13 1980-12-13 Control system of printer

Country Status (1)

Country Link
JP (1) JPS57100579A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5911272A (en) * 1982-07-09 1984-01-20 Tokyo Electric Co Ltd Receive printer
JPH01225562A (en) * 1988-03-07 1989-09-08 Nippon Typewriter Co Ltd Character data output method and apparatus

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4932719A (en) * 1972-07-27 1974-03-26
JPS5578334A (en) * 1978-12-08 1980-06-12 Hitachi Ltd Printer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4932719A (en) * 1972-07-27 1974-03-26
JPS5578334A (en) * 1978-12-08 1980-06-12 Hitachi Ltd Printer

Also Published As

Publication number Publication date
JPS57100579A (en) 1982-06-22

Similar Documents

Publication Publication Date Title
JPH0578427B2 (en)
JPH027092B2 (en)
JPH0630910B2 (en) Printing method
JP2907600B2 (en) Thermal printer
JPH04292B2 (en)
JPH0655524B2 (en) Serial dot printer
JPS62184874A (en) Printer
JP2550997B2 (en) Printer
JP3150396B2 (en) Printer control method
JP2791716B2 (en) Character printing method
JPS61193864A (en) Controlling system for dot printer
JP2758277B2 (en) DPI print control circuit in serial printer
JPH0753461B2 (en) Printer
JP2597709B2 (en) Character processing apparatus and method
JPS60229780A (en) Electronic typewriter
JP2564513B2 (en) Printer control device
JPH06293171A (en) Printing device
JPS5936314B2 (en) Display device control method
JPH0439434B2 (en)
JPH057192B2 (en)
JPH0639181B2 (en) Bar code printing controller
JPH0229024B2 (en)
EP0230896A2 (en) Microprocessor control unit for serial dot matrix printer
JPH0818686A (en) Printer
JPH01180358A (en) Printer