JPS62219023A - Command converter - Google Patents

Command converter

Info

Publication number
JPS62219023A
JPS62219023A JP61059557A JP5955786A JPS62219023A JP S62219023 A JPS62219023 A JP S62219023A JP 61059557 A JP61059557 A JP 61059557A JP 5955786 A JP5955786 A JP 5955786A JP S62219023 A JPS62219023 A JP S62219023A
Authority
JP
Japan
Prior art keywords
switch
image data
command
host computer
printer
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
JP61059557A
Other languages
Japanese (ja)
Inventor
Kimitoshi Terasaki
寺崎 規美敏
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP61059557A priority Critical patent/JPS62219023A/en
Publication of JPS62219023A publication Critical patent/JPS62219023A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To expand and reduce image data without changing image data itself transmitted from the host computer side by providing a selecting switch which instructs the expansion magnification of image data. CONSTITUTION:The command system of a host computer 1 and that of a printer 2 are different from each other, and a command converter 3 is provided with a CPU 4, a ROM 5, a RAM 6, and a switch 7. The switch 7 can be switched to positions 1-3, and the expansion magnification of image data is controlled in accordance with the set position of this switch 7. The CPU 4 reads and writes data from and in the RAM 6 in accordance with procedures preliminarily programmed in the ROM 5 and converts the signal from the host computer 1 in accordance with the command system of the printer. that is, at the time of receiving an image mode selecting command from the host computer, the CPU 4 performs the command conversion in accordance with the set position of the switch 7 and expands succeeding image data to the magnification designated by the switch 7 and sends this data to the printer 2.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、所定のコマンド体系に従った信号列を導入し
、所望のコマンド体系に適合した信号列に変換するコマ
ンド変換装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a command conversion device that introduces a signal train according to a predetermined command system and converts it into a signal train that conforms to a desired command system. .

更に詳述すれば、本発明は、例えばホストコンピュータ
のコマンド体系と異なるコマンド体系を有するプリンタ
等の画像形成装置に対して、当該ホストコンピュータ側
より送出されるコマンドを当該プリンタ等のコマンド体
系に変換して送出する、コマンド変換装置に関するもの
である。
More specifically, the present invention converts commands sent from the host computer to an image forming apparatus such as a printer that has a command system different from that of the host computer into the command system of the printer. This relates to a command conversion device that sends commands.

〔従来の技術〕[Conventional technology]

従来から知られているこの種の装置は、ホストコンピュ
ータ側の送出するコマンドをプリンタ側のコマンド体系
に合致させる機能のみを備えていた。
Conventionally known devices of this type have only the function of matching commands sent from the host computer to the command system of the printer.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従って、イメージデータの拡大・縮小という簡単な編集
を行う際にも、当該ホストコンピュータ側の送信コマン
ド自体を変更しなければならず、ソフトウェアもしくは
ハードウェア上の変更を余儀なくされるという欠点があ
った。
Therefore, even when performing simple editing such as enlarging or reducing image data, it is necessary to change the transmission command itself on the host computer side, which has the disadvantage of requiring software or hardware changes. .

よって本発明の目的は、上述の点に鑑み、ホストコンピ
ュータ側から送出されるイメージデータ自体を変更する
ことなしに、当該イメージデータの拡大・縮小を行い得
るよう構成したコマンド変換装置を提供することにある
Therefore, in view of the above-mentioned points, an object of the present invention is to provide a command conversion device configured to enlarge or reduce image data sent from a host computer without changing the image data itself. It is in.

〔問題点を解決するための手段〕[Means for solving problems]

かかる目的を達成するために、本発明では、所定のコマ
ンド体系に従った信号列を導入し、所望のコマンド体系
に適合した信号列に変換するコマンド変換装置において
、イメージデータの拡大倍率を指示する選択スイッチを
具備するものである。
In order to achieve such an object, the present invention introduces a signal train according to a predetermined command system and instructs an enlargement factor of image data in a command conversion device that converts the signal train into a signal train compatible with the desired command system. It is equipped with a selection switch.

〔実施例〕〔Example〕

以下、実施例に基づいて本発明の詳細な説明する。 Hereinafter, the present invention will be described in detail based on examples.

第1図は、本発明の一実施例全体を示すブロック図であ
る。本実施例は、ホストコンピュータより送られてくる
イメージデータをスイッチの設定状態に応じて1倍、2
倍あるいは3倍に拡大すると共に、プリンタのコマンド
体系に変換して送出するコマンド変換器である。
FIG. 1 is a block diagram showing an entire embodiment of the present invention. In this embodiment, the image data sent from the host computer is multiplied by 1 or 2 times depending on the setting state of the switch.
This is a command converter that magnifies the image twice or three times, converts it into a printer command system, and sends it out.

本図において、1はホストコンピュータ、2はプリンタ
、3は本実施例によるコマンド変換装置、4はCPU 
(中央処理装置)、5は後に詳述するIJaOプログラ
ムを格納しであるROM (リードオンリーメモリ)、
6はRAM(ランダムアクセスメモリ)、7はイメージ
データ(画素データ)の拡大倍率を指示するスイッチで
ある。
In this figure, 1 is a host computer, 2 is a printer, 3 is a command conversion device according to this embodiment, and 4 is a CPU.
(Central Processing Unit), 5 is a ROM (Read Only Memory) which stores the IJaO program which will be detailed later;
6 is a RAM (random access memory), and 7 is a switch for instructing the magnification of image data (pixel data).

ここで、ホストコンピュータ1のコマンド体系とプリン
タ2のコマンド体系は異なるものである。また、本コマ
ンド変換装置3は、CPU4.ROM5゜RAM6およ
びスイッチ7を備えている。スイッチ7は1.2.3の
位置を設定することが可能であり、後に詳述するとおり
、この設定位置に応じてイメージデータの拡大倍率を制
御する。
Here, the command system of the host computer 1 and the command system of the printer 2 are different. Further, the present command conversion device 3 includes a CPU 4. It is equipped with ROM 5° RAM 6 and switch 7. The switch 7 can be set to the positions 1, 2, and 3, and as will be described in detail later, the magnification of the image data is controlled according to this setting position.

CPII4は、予めROM5にプログラムされた手順に
従い、RAM6に対してデータの読み/書きを行うと共
に、ホストコンピュータ1から送られる信号をプリンタ
のコマンド体系に合わせて変換する。すなわち、CPU
4はホストコンピュータ1から「イメージモード選択コ
マンド」を受信すると、スイッチ7の設定位置に応じた
コマンド変換を行い、それら後続するイメージデータを
スイッチ7により指定された倍率に拡大し、プリンタ2
に送出するものである。
The CPII 4 reads/writes data to/from the RAM 6 according to a procedure programmed in the ROM 5 in advance, and also converts signals sent from the host computer 1 in accordance with the command system of the printer. That is, the CPU
When the printer 4 receives the "image mode selection command" from the host computer 1, it converts the command according to the setting position of the switch 7, enlarges the subsequent image data to the magnification specified by the switch 7, and sends it to the printer 2.
It is sent to

第2図は、ROM5に格納された(:PO2の制御プロ
グラムを示すフローチャートである。
FIG. 2 is a flowchart showing the control program of (:PO2) stored in the ROM 5.

ステップS1においては、ホストコンピュータ1からf
信号を受信したか否かを判定する。
In step S1, from the host computer 1
Determine whether a signal has been received.

ステップS2においては、ホストコンピュータ1から転
送された信号が「イメージモード選択コマンド」である
か否かを判定する。その結果、「イメージモード選択コ
マンド」でなければ、ステップS3においてプリンタ2
のコマンド体系に合わせて変換を行い、ステップ4にお
いてプリンタ2に転送し、再びステップ51へ戻る。
In step S2, it is determined whether the signal transferred from the host computer 1 is an "image mode selection command". As a result, if it is not an "image mode selection command", the printer 2
It is converted in accordance with the command system of , is transferred to the printer 2 in step 4, and returns to step 51 again.

ステップS2において「イメージモード選択コマンド」
であると判定された場合には、ステップS5においてス
イッチ7の設定位置を読み取り、拡大倍率の選択を行う
In step S2, "Image mode selection command"
If it is determined that this is the case, the set position of the switch 7 is read in step S5, and the enlargement magnification is selected.

ステップ56−1においては、24ドツトのプリントヘ
ッド(図示せず)を8ドツト分のみ付勢するため、8ド
ツトのビットイメージを指定する。すなわち、拡大倍率
1倍に合わせた「イメージモード選択コマンド」をプリ
ンタ2のコマンド体系に合わせて変換し、プリンタ2に
転送する。
In step 56-1, an 8-dot bit image is specified in order to energize a 24-dot print head (not shown) by 8 dots. That is, the "image mode selection command" corresponding to the magnification factor of 1 is converted according to the command system of the printer 2 and is transferred to the printer 2.

その後のステップ57−1においては、イメージデータ
を1倍に拡大すると共に、プリンタ2のコマンド体系に
合わせた変換を行う。そして、ステップ58−1におい
てプリンタ2に転送し、再びステップSlへ戻る。
In the subsequent step 57-1, the image data is enlarged by a factor of 1 and converted to match the command system of the printer 2. Then, in step 58-1, the data is transferred to the printer 2, and the process returns to step Sl.

同様に、ステップ56−2.57−2.S8−2では拡
大倍率が2倍である場合の処理を、ステップ56−3゜
57−3.58−3では拡大倍率が3倍である場合の処
理を行う。
Similarly, step 56-2.57-2. In step S8-2, processing is performed when the magnification is 2x, and in steps 56-3, 57-3, and 58-3, processing is performed when the magnification is 3x.

このようにして、ホストコンピュータ1から転送される
イメージデータを、コマンド変換装置土のスイッチ7に
より1倍、2倍、3倍に拡大することができる。
In this way, the image data transferred from the host computer 1 can be enlarged by 1, 2, or 3 times by the switch 7 of the command conversion device.

第3図は、本実施例によるイメージデータの拡大例を示
す。
FIG. 3 shows an example of expanding image data according to this embodiment.

ここで、Aはホストコンピュータ1より転送された18
ドツト・ビットイメージのデータ(16進表示しである
)である。同様に、Bは2倍に拡大された16ドツト・
ビットイメージのデータ、Cは3倍に拡大された24ド
ツト・ビットイメージのデータである。
Here, A is 18 transferred from host computer 1.
This is dot/bit image data (expressed in hexadecimal). Similarly, B is a 16-dot image enlarged twice.
Bit image data C is 24-dot bit image data enlarged three times.

また、これら図面の右側に示すドツトパターンは、プリ
ンタ2により印字を行った場合の拡大図である。
Further, the dot patterns shown on the right side of these drawings are enlarged views when printed by the printer 2.

なお、上述した実施例では、イメージデータの拡大倍率
を1以上としたが、拡大倍率を1以下にする場合(すな
わち、縮小する場合)にも、公知の技術(例えば、ドツ
トの間引きなど)を用いて本発明を実施することができ
る。
In the above-described embodiment, the magnification factor of the image data is set to 1 or more, but even when the magnification factor is set to 1 or less (i.e., when reducing), known techniques (such as dot thinning) can be used. The present invention can be carried out using the following methods.

〔発明の効果) 以上説明したとおり本発明によれば、ホストコンピュー
タ側から送出される信号自体には何ら変更を加えること
なく、コマンド変換装置にスイッチを設けるという簡単
な構成のみによって、容易にイメージデータの拡大・縮
小を行うことができる。
[Effects of the Invention] As explained above, according to the present invention, images can be easily converted without making any changes to the signals sent from the host computer, and only by providing a switch in the command conversion device. Data can be expanded or reduced.

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

第1図は本発明を適用したコマンド変換装置の一実施例
を示すブロック図、 第2図は本実施例の制御手順を示すフローチャート、 第3図はイメージデータの拡大例を示す図である。 l・・・ホストコンピュータ、 2・・・プリンタ、 3・・・コマンド変換装置、 4・−cpu。 5・−ROM。 6−RAM 。 7・・・拡大倍率を選択するスイッチ。 第2図
FIG. 1 is a block diagram showing an embodiment of a command conversion device to which the present invention is applied, FIG. 2 is a flowchart showing a control procedure of this embodiment, and FIG. 3 is a diagram showing an example of expanding image data. l...Host computer, 2...Printer, 3...Command conversion device, 4...-cpu. 5.-ROM. 6-RAM. 7...Switch for selecting magnification. Figure 2

Claims (1)

【特許請求の範囲】 1)所定のコマンド体系に従った信号列を導入し、所望
のコマンド体系に適合した信号列に変換するコマンド変
換装置において、 イメージデータの拡大倍率を指示する選択スイッチを具
備したことを特徴とするコマンド変換装置。
[Claims] 1) A command conversion device that introduces a signal train according to a predetermined command system and converts it into a signal train that conforms to the desired command system, comprising a selection switch that instructs the magnification of image data. A command conversion device characterized by:
JP61059557A 1986-03-19 1986-03-19 Command converter Pending JPS62219023A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61059557A JPS62219023A (en) 1986-03-19 1986-03-19 Command converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61059557A JPS62219023A (en) 1986-03-19 1986-03-19 Command converter

Publications (1)

Publication Number Publication Date
JPS62219023A true JPS62219023A (en) 1987-09-26

Family

ID=13116673

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61059557A Pending JPS62219023A (en) 1986-03-19 1986-03-19 Command converter

Country Status (1)

Country Link
JP (1) JPS62219023A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02184481A (en) * 1989-01-11 1990-07-18 Nec Corp Printer
JPH02277660A (en) * 1989-04-20 1990-11-14 Fuji Xerox Co Ltd Image printing apparatus
US5427459A (en) * 1992-10-30 1995-06-27 Star Micronics Co., Ltd. Printer with command inhibitor
JPH07168677A (en) * 1991-10-14 1995-07-04 Eastern Graphics Technol Co Ltd Chinese character-type or graphic generation device on printer post

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02184481A (en) * 1989-01-11 1990-07-18 Nec Corp Printer
JPH02277660A (en) * 1989-04-20 1990-11-14 Fuji Xerox Co Ltd Image printing apparatus
JPH07168677A (en) * 1991-10-14 1995-07-04 Eastern Graphics Technol Co Ltd Chinese character-type or graphic generation device on printer post
US5427459A (en) * 1992-10-30 1995-06-27 Star Micronics Co., Ltd. Printer with command inhibitor

Similar Documents

Publication Publication Date Title
JPS62219023A (en) Command converter
JPH05342314A (en) Picture processor
JPH0284364A (en) Printer
JP2716087B2 (en) Output device
JP2711860B2 (en) Output control method and device
JPS63288562A (en) Image processor
JPH0421472A (en) Printer controller
JPS62219024A (en) Command converter
JPH0462080A (en) Printing device
JPS62191973A (en) Bit pattern editing processor in bit map memory
JPH0247078A (en) Printer
JP3581400B2 (en) Image processing apparatus and method
JPH06243261A (en) Picture processor
JPH01282662A (en) Information processor
JPH0499657A (en) Image supplying device
JPS61140273A (en) Image magnifying and reducing device
JPH0464462A (en) Multicolor recorder
JPS61290526A (en) Output device
JP2004074786A (en) Printer
JPH10322543A (en) Image processor
JPH04169254A (en) Method for developing printing pattern
JPS6359575A (en) Test printing system
JPH04223770A (en) Picture output interface device
JPH07152512A (en) Printing device
JPH0334868A (en) Printer control apparatus