JPS61176265A - Picture processing system - Google Patents

Picture processing system

Info

Publication number
JPS61176265A
JPS61176265A JP60017010A JP1701085A JPS61176265A JP S61176265 A JPS61176265 A JP S61176265A JP 60017010 A JP60017010 A JP 60017010A JP 1701085 A JP1701085 A JP 1701085A JP S61176265 A JPS61176265 A JP S61176265A
Authority
JP
Japan
Prior art keywords
image
signal
memory
printer
rmu
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
JP60017010A
Other languages
Japanese (ja)
Inventor
Shinobu Arimoto
有本 忍
Masanori Muramatsu
村松 正憲
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 JP60017010A priority Critical patent/JPS61176265A/en
Priority to GB08602221A priority patent/GB2172767B/en
Publication of JPS61176265A publication Critical patent/JPS61176265A/en
Priority to US07/319,921 priority patent/US4884147A/en
Pending legal-status Critical Current

Links

Landscapes

  • Storing Facsimile Image Data (AREA)

Abstract

PURPOSE:To give the highly efficient compression even to a dither processed CONSTITUTION:The dither-processed picture signals are supplied from a reader as shown by 16-1.

Description

【発明の詳細な説明】 本発明は画像を電気的な画像信号として処理する画像処
理システムに関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an image processing system that processes images as electrical image signals.

従来より画像を電気信号に変換し、これを伝送したり或
いは蓄積する等の画像処理が提案されている。
Image processing such as converting an image into an electrical signal and transmitting or storing the electrical signal has been proposed.

ところで、400dpiの解像度によりA3サイズの画
像を2 (1m信号で表わすためには、約4Mbyte
の画像信号が用いられる。従って、この画像信号を記憶
するためには少なくとも同じbyt e数の記憶容量を
持ったメモリを必要とする。
By the way, with a resolution of 400 dpi, an A3 size image requires approximately 4 Mbytes to represent 2 (1 m signal).
image signals are used. Therefore, in order to store this image signal, a memory having a storage capacity of at least the same number of bytes is required.

そこで、画像の記憶に際し、画像をランレングス符号化
により圧縮することが考えられる。これによると一般的
な画像のデータ量は1/10程度に減少でき、比較的小
容量のメモリを用いればよいことになる。ところが、画
像の中間調を疑似的に再現するためのディザ処理がなさ
れた画像信号は同一の画信号が連続量が小さく、これを
例えばランレングス符号化により圧縮した場合には原画
像信号よりも圧縮後の信号の方がデータ量が大きくなっ
てしまうこともあり、これを記憶するための記憶容量も
多大となってしすう。
Therefore, it is conceivable to compress the image by run-length encoding when storing the image. According to this, the data amount of a typical image can be reduced to about 1/10, and a relatively small capacity memory can be used. However, an image signal that has been dithered to simulate the halftones of an image has a small number of consecutive identical image signals, and if this is compressed by run-length encoding, for example, it will be smaller than the original image signal. The compressed signal may have a larger amount of data, and the storage capacity to store it will also be large.

本発明は以上の点に鑑みてなされたもので、画像の中間
調を疑似的に表現するためにディザ処理された画像信号
をも、効率良く圧縮することを目的とし、詳しくは、デ
ィザ処理された画像信号を記憶する手段と、上記記憶手
段に対する画像信号の記憶及び読み出しを制御する手段
と、上記記憶手段から読み出された画像信号を圧縮する
手段とを有し、上記制御手段はディザパターンの周期性
と画像情報のサイズに基づいて上記記憶手段に対する画
像信号の記憶制御及び読み出し制御を行う画像処理シス
テムを提供するものである。
The present invention has been made in view of the above points, and an object of the present invention is to efficiently compress an image signal that has been dithered to express halftones of an image in a pseudo manner. means for storing an image signal read out from the storage means; means for controlling storage and readout of the image signal in the storage means; and means for compressing the image signal read from the storage means; The present invention provides an image processing system that performs storage control and readout control of image signals in the storage means based on the periodicity of the image information and the size of the image information.

以下、本発明を図面を用いて詳細に説明する。Hereinafter, the present invention will be explained in detail using the drawings.

第1図は本発明を適用した画像処理システムであり、画
像読取り装置(以下リーダーと記す)1−1、画像記憶
装置(以下R,MUと記す)■−2、画像形成装置(以
下プリンタと記す)1−3から構成されている。
FIG. 1 shows an image processing system to which the present invention is applied, including an image reading device (hereinafter referred to as reader) 1-1, an image storage device (hereinafter referred to as R and MU) -2, and an image forming device (hereinafter referred to as printer). It is composed of 1-3.

主な機能としてリーダー1−1で読み取った画像信号を
プリンタ1−3で像形成するコピー機能、リーダー1−
1で読み取った画信号をRMUl−2に記憶するメモリ
入力機能、RMUI、−2のメモリ内に記憶されている
画信号をプリンタ1−3において像形成するメモリプリ
ントアウト機能がある。
The main functions are a copy function that forms an image on the printer 1-3 from the image signal read by the reader 1-1;
There is a memory input function for storing the image signal read in RMUI1-2 in the memory of RMUI1-2, and a memory printout function for forming an image in the printer 1-3 from the image signal stored in the memory of RMUI1-2.

各装置は後述するビデオインターフェースによって接続
されている。
Each device is connected by a video interface, which will be described later.

リーダー1−1は第2図、第3図に示すように、例えば
約5000ビツトの受光素子を有するCCDラインセン
サ3−1により原稿台2−1上の原稿を複数画素に分解
してライン毎に読取り、原稿画像の濃淡を示すビットシ
リアルな2値化画像信号VDA、VDBを出力する。第
2図において、CCD3−1による1ラインの読取りが
主走査読取り2−2であり、主走査読取りラインの主走
査方向にほぼ垂直な方向への移動が副走査2−3である
As shown in FIGS. 2 and 3, the reader 1-1 uses a CCD line sensor 3-1 having a light-receiving element of about 5,000 bits, for example, to separate the document on the document table 2-1 into a plurality of pixels, line by line. bit serial binary image signals VDA and VDB indicating the density of the original image are output. In FIG. 2, the reading of one line by the CCD 3-1 is main scanning reading 2-2, and the movement of the main scanning reading line in a direction substantially perpendicular to the main scanning direction is sub-scanning 2-3.

第3図はリーダーの簡単々構成図であり、原稿台2−1
の原稿から図示していない照明系により得られる反射光
をCCDライセンサ3−1により1主走査ライン分のビ
ットシリアルな画像電気信号に変換する。CCD3−1
による原稿から反射光の強さに応じたアナログ画像電気
信号はA/Dコンバータ3−2により各画素毎の複数ビ
ットのディジタル画信号にディジタル化される。そのデ
ィジタル化された画信号は2値化コンパレータ3−3.
3−4により、閾値ジェネレータ3−5.3−6から発
生される2値化閾価値号と夫々比較され、2系統の1か
Oの2値化画像信号VDA、VDBとして出力される。
Figure 3 is a simple configuration diagram of the reader.
A CCD licensor 3-1 converts reflected light obtained from an original by an illumination system (not shown) into a bit-serial image electrical signal for one main scanning line. CCD3-1
An analog image electrical signal corresponding to the intensity of reflected light from the original document is digitized by the A/D converter 3-2 into a multi-bit digital image signal for each pixel. The digitized image signal is sent to a binarization comparator 3-3.
3-4, they are compared with the binarized threshold values generated from the threshold generators 3-5 and 3-6, respectively, and output as two systems of 1 or O binarized image signals VDA and VDB.

仮すに、A/Dコンバータ3−2により入力するアナロ
グ画像信号を6ビツトのディジタル画信号に変換したと
すると、0〜63の値をもつ64の濃度レベルが得られ
る。例えば閾値ジェネレータA3−5からの閾値を42
、閾値ジェネレータB5−6からの閾値を21とすると
2値化コンパレータ3−3.3’−4からの2値化画像
信号VDAとVDBは以下のようになる。
Assuming that the input analog image signal is converted into a 6-bit digital image signal by the A/D converter 3-2, 64 density levels having values from 0 to 63 are obtained. For example, set the threshold value from the threshold value generator A3-5 to 42
, if the threshold from the threshold generator B5-6 is 21, then the binarized image signals VDA and VDB from the binarization comparator 3-3, 3'-4 are as follows.

すなわち、A/Dコンバータ3−2からの出力がO〜2
0の場合はvDA−0,vDB−0、A/Dコンバータ
3−2からの出力が21〜41(il) 場合1’j:
 V D A ” 0 、 V D B = l、A/
Dコンバータ3−2からの出力が42〜63の場合はV
DA=1.VDB=1となり、原稿からの画像信号はそ
の反射濃度に応じて3つの状態VDA=o、VDB、=
0、VDA=O,VDB=1、VDA=1.VDB=1
で表わされる。従って、・画像信号は各画素毎に3値で
リーダーから出力される。尚、閾値ジェネレータA、閾
値ジェネレータBからの閾値を等しくすることも可能で
、これにより2値の画像信号が出力される。また、fd
l 値コンパレータ3−5.3−6は従来公知の組織的
ディザ法によるディザマトリクス閾値を発生することも
出来、これによりVDA、VDBの3値化画像信号で中
間調を表現することも可能である。
That is, the output from the A/D converter 3-2 is O~2
If it is 0, then vDA-0, vDB-0, and if the output from A/D converter 3-2 is 21 to 41 (il), then 1'j:
V D A ” 0, V D B = l, A/
When the output from D converter 3-2 is 42 to 63, V
DA=1. VDB=1, and the image signal from the original has three states depending on its reflection density: VDA=o, VDB,=
0, VDA=O, VDB=1, VDA=1. VDB=1
It is expressed as Therefore, the image signal is output from the reader in three values for each pixel. Note that it is also possible to make the threshold values from the threshold value generator A and the threshold value generator B equal, thereby outputting a binary image signal. Also, fd
The value comparators 3-5 and 3-6 can also generate a dither matrix threshold using a conventionally known systematic dither method, and thereby it is also possible to express halftones with ternary image signals of VDA and VDB. be.

第1図中のRMUI−2は前述の如く画像記憶装置であ
る。その内部はリーダーからの画像信号を符号化により
圧縮処理する圧縮回路1−2−1と、符号化された画像
信号を記憶する圧縮画像メモIJ 1.−2−2と、圧
縮画像メモリ1−2−2の圧縮画像信号を読出し、復号
化処理してビットシリアルな画像信号に伸長する伸長回
路1−:2−.3で構成されている。
RMUI-2 in FIG. 1 is an image storage device as described above. Inside, there is a compression circuit 1-2-1 that encodes and compresses the image signal from the reader, and a compressed image memo IJ that stores the encoded image signal.1. -2-2, and an expansion circuit 1-: 2-. which reads the compressed image signal from the compressed image memory 1-2-2, decodes it, and expands it into a bit-serial image signal. It consists of 3.

1−3のプリンタは従来から良く知られている静電記録
プロセスによるレーザービームプリンタであり第4図に
概略図を示す。第4図において、4−1は所定軸に関し
て回転する感光ドラム、4−2は画像信号をレーザー光
の0N−OF’Fに変換するレーザードライバー14−
3はレーザードライバー4−2から発せられたレーザー
光を感光ドラム4−1の軸方向に走査するポリゴンスキ
ャナー、4−4はレーザー光の走査により形成された感
光ドラム4−1の静電潜像をトナー現像する現像ユニツ
)、4−5はプリント用紙カセット、4−6はプリント
用紙カセット4−5よりプリント用紙を1枚ずつ引き出
すプリント用紙ピックアップローラー、4−7はプリン
ト用紙を感光ドラム4−1の回転に同期して送り出すレ
ジストローラー、4−8は感光ドラム4−1上のトナー
像をプリント用紙に転写する転写ユニツ)、4−9はプ
リント用紙に転写されたトナー像をプリント用紙に定着
させる定着ユニツ)、4−10はトナー像の定着された
プリント用紙が排出される排紙トレーである。
The printer 1-3 is a laser beam printer using a well-known electrostatic recording process, and a schematic diagram thereof is shown in FIG. In FIG. 4, 4-1 is a photosensitive drum that rotates about a predetermined axis, and 4-2 is a laser driver 14- that converts an image signal into ON-OF'F laser light.
3 is a polygon scanner that scans a laser beam emitted from a laser driver 4-2 in the axial direction of the photosensitive drum 4-1, and 4-4 is an electrostatic latent image formed on the photosensitive drum 4-1 by scanning the laser beam. 4-5 is a print paper cassette, 4-6 is a print paper pickup roller that pulls out the print paper one by one from the print paper cassette 4-5, and 4-7 is a photosensitive drum 4-7 that carries the print paper. 4-8 is a transfer unit that transfers the toner image on the photosensitive drum 4-1 onto the print paper, and 4-9 is a transfer unit that transfers the toner image transferred to the print paper onto the print paper. 4-10 is a paper discharge tray from which the print paper with the toner image fixed thereon is discharged.

プリンタにおいて電気信号である画像信号が、プリント
用紙上に具現化される動作を第5図を参照して説明する
。ビデオインターフェース5−11から入力される2系
統の2値化画像信号VDA、VDBは、合成回路5−1
0で3値(VD信号)に合成されレーザ・ドライバ5−
3に入力され、半導体レーザ5−4でVD信号に基づい
だレーザ光に変換される。レーザ光は、コリメータ・レ
ンズ5−5で集束され、ポリゴン・ミラー5−6で所定
回転している感光ドラム5−2の回転軸に対し略平行方
向にスキャンされる。スキャンされたレーザ光は、f−
θレンズ5−7で走査位置の補正を受け、感光ドラム5
−2上に照射されVD信号による潜像を形成する。
The operation in which an image signal, which is an electrical signal, is realized on print paper in a printer will be described with reference to FIG. The two systems of binary image signals VDA and VDB input from the video interface 5-11 are sent to the synthesis circuit 5-1.
0, it is synthesized into three values (VD signal) and the laser driver 5-
3 and is converted into laser light by a semiconductor laser 5-4 based on the VD signal. The laser beam is focused by a collimator lens 5-5, and scanned by a polygon mirror 5-6 in a direction substantially parallel to the rotation axis of the photosensitive drum 5-2, which is rotated by a predetermined amount. The scanned laser beam is f-
The scanning position is corrected by the θ lens 5-7, and the photosensitive drum 5
-2 to form a latent image based on the VD signal.

プリンタの像形成はいわゆる静電記録方式を使用してお
沙、感光ドラム5−2上に印加された電荷をレーザ光で
必要部分を除去し、これに現像剤を用いて現像処理を行
い、プリント用紙に転写、定着をすることにより行う。
Image formation in the printer uses a so-called electrostatic recording method, in which a necessary portion of the charge applied to the photosensitive drum 5-2 is removed using a laser beam, and then a developing process is performed using a developer. This is done by transferring and fixing onto printing paper.

静電記録方式は、周知の技術であるので、詳細々説明は
省略する。
Since the electrostatic recording method is a well-known technique, detailed explanation will be omitted.

さて、ポリゴン・ミラー5−6によってスキャンされた
レーザ光は、感光ドラム5−2に照射される前に光ファ
イバー5−8に入射され、光検知器5−9はその入射を
検知すると電気信号(BD倍信号を出力する。
Now, the laser beam scanned by the polygon mirror 5-6 is incident on the optical fiber 5-8 before being irradiated onto the photosensitive drum 5-2, and when the photodetector 5-9 detects the incident, an electric signal ( Outputs BD double signal.

画信号出力装置はBT)信号が発生してからレーザ光が
感光ドラム2−2に到達するまでの時間待ってからV’
D信号を出力すれば、感光ドラム2−2上の適切な位置
に潜像が形成されることになる。
The image signal output device waits the time from when the BT) signal is generated until the laser beam reaches the photosensitive drum 2-2, and then outputs V'.
If the D signal is output, a latent image will be formed at an appropriate position on the photosensitive drum 2-2.

第1図の各装置を結合するインターフェースをビデオイ
ンターフェースと呼び、第6図にその概略図を示す。
The interface that connects the devices shown in FIG. 1 is called a video interface, and FIG. 6 shows its schematic diagram.

ビデオ・インターフェースは画像出力装置6−1と画像
受信装置6−2を結合するインターフェースであり、画
像出力装置の代表例とじて前述のリーダーがあジ、画像
受信装置としてはプリンタがある。第1図の画像記憶装
置(RMU)1−2はリーダー1−1に対しては画像受
信装置として位置づけられ、プリンタ1−3に対しては
画像出力装置として位置づけられる。
The video interface is an interface that connects the image output device 6-1 and the image receiving device 6-2, and the above-mentioned reader is a typical example of the image output device, and a printer is the image receiving device. The image storage unit (RMU) 1-2 in FIG. 1 is positioned as an image receiving device for the reader 1-1, and as an image output device for the printer 1-3.

ビデオインターフェースは前述のようにビットシリアル
な画像信号VDA、VDBを伝送するとともに、画像信
号を制御する信号としての画像受信装置からのライン同
期信号BD、画像出力装置からの出力画像信号1ページ
分の区間信号であるVSYNC11ラインの区間信号で
あるビデオイネプル(VE )、画像クロック■CLK
からなる同期信号が伝送される。
As mentioned above, the video interface transmits the bit-serial image signals VDA and VDB, as well as the line synchronization signal BD from the image receiving device as a signal that controls the image signal, and the output image signal for one page from the image output device. Video input signal (VE), which is a section signal of VSYNC11 line, which is a section signal, image clock ■CLK
A synchronization signal consisting of

これらの画像/画像同期信号は第7図に示す位相関係に
あり画像出力装置はBD白信号受信すると第5図のBD
信号発生位置である光ファイバ5−8の受光端から感光
ドラム5−2の画像有効領域までの時間(レフトマージ
ン)をカウントした後、1247分の画像信号VDA。
These image/image synchronization signals have the phase relationship shown in FIG. 7, and when the image output device receives the BD white signal, the BD white signal shown in FIG.
After counting the time (left margin) from the light receiving end of the optical fiber 5-8, which is the signal generation position, to the image effective area of the photosensitive drum 5-2, an image signal VDA of 1247 minutes is obtained.

VDB及び区間信号■Eを出力する。信号VB。Outputs VDB and section signal ■E. Signal VB.

VDA、VDBidiifi像りoツクVcLKに同期
しており、プリンタにおいてVDAとVDBはクロック
VCLKに同期して記録画像VDとして三値合成され、
レーザードライバに伝達される。
The VDA and VDB images are synchronized with the clock VcLK, and in the printer, the VDA and VDB are ternary synthesized as a recorded image VD in synchronization with the clock VCLK.
transmitted to the laser driver.

さらにビデオインターフェースには、制御情報を表わす
制御信号として各装置のコネクト信号(DCNCT )
、各装置の制御部が正常に動作していることを示すパワ
ーレディ信号(T)PR,DY)、画像受信装置の出力
用紙給紙可能状態を示す信号(PREQ)、画像出力装
置からの出力用紙給紙信号(PRINT)、画像受信装
置からの画像要求信号(VSREQ)が伝送される。ま
た、制御信号としてはプリンタの給紙段の紙サイズ情報
や各種装置の接続状態や詳細なエラー情報等も含1れる
Furthermore, the video interface has a connect signal (DCNCT) for each device as a control signal representing control information.
, a power ready signal (T) PR, DY) indicating that the control unit of each device is operating normally, a signal (PREQ) indicating that the output paper can be fed from the image receiving device, and an output from the image output device. A paper feed signal (PRINT) and an image request signal (VSREQ) from the image receiving device are transmitted. The control signals also include paper size information of the paper feed stage of the printer, connection status of various devices, detailed error information, and the like.

第8図にビデオインターフェースを伝送される各種信号
の名称、略称、伝送方向、信号の分類及び内容を一覧表
として示す。
FIG. 8 shows a list of names, abbreviations, transmission directions, signal classifications, and contents of various signals transmitted through the video interface.

本実施例における構成要素の概略の説明は以上であるが
、それを踏まえてRMU 1−2における画像符号化の
説明を行う。
The outline of the components in this embodiment has been described above, and image encoding in RMU 1-2 will be explained based on the above.

リーダーからの画像信号はビットシリアルな画情報であ
るので400 dpi (1インチ当り400ドツト)
の解像度で読み取られた画情報は、A31ページで3.
7Mバイトのメモリ容量となる。これは64にビットの
DRAMで574コ相当の画情報であり実装面でも、価
格面でも非現実的であるので、画像を圧縮符号化してメ
モリ1−2−2に言己憶する。
The image signal from the reader is bit serial image information, so it is 400 dpi (400 dots per inch).
Image information read at a resolution of 3. on an A31 page.
The memory capacity is 7MB. This is image information equivalent to 574 images in a 64-bit DRAM, which is impractical both in terms of implementation and price, so the image is compressed and encoded and stored in the memory 1-2-2.

リーダーからの画情報は画像圧縮部1−2−2にて圧縮
符号化処理されるが、本実施例では符号化としてランレ
ングス法を用いている。ランレングス法は画像信号の1
″′の状態あるいはII OIIの状態の連続数をカウ
ンタにて計数した結果を画像信号として取扱うものであ
シ、本実施例ランレングス符号化の形式を第9図に示す
The image information from the reader is compressed and encoded by the image compression section 1-2-2, and in this embodiment, the run-length method is used for encoding. The run-length method uses 1 of the image signal.
The result of counting the number of consecutive states of ``'' or II OII using a counter is handled as an image signal, and the format of run-length encoding in this embodiment is shown in FIG.

本実施例におけるランレングスコードのフォーマットは
(9−1)K示す如く1バイト(8ビツト)で構成され
画像の符号化データはI) i t6〜bit Qに7
ビツトの2進形式で表わされる。
The format of the run-length code in this embodiment is (9-1) K as shown in 1 byte (8 bits), and the encoded data of the image is 7 in bit 6 to bit Q.
It is expressed in binary form of bits.

また、7ビツトの2進形式ではランレングス(110の
連続数)は0ビツトから127ビツトまでしか表わすこ
とができないので、128ビツト以上のランレングスの
場合は、2バイト構成で表わす。この場合2バイトの一
方は128ビツトの整数倍のランレングスを表わすメイ
クアップコード(以下Mコードと記す)となり、残る1
バイトはOビットから127ビツトまでの端数を表わす
ターミネートコード(以下Tコードと記す)となる。こ
のメークアップコードとターミネートコードを区別する
ために(9−1)に示す如(bit 7を識別フラグと
して用い、1がMコード、0がTコードを示す。
Furthermore, in the 7-bit binary format, run lengths (consecutive numbers of 110) can only be represented from 0 bits to 127 bits, so run lengths of 128 bits or more are represented using a 2-byte structure. In this case, one of the two bytes becomes a make-up code (hereinafter referred to as M code) representing a run length that is an integral multiple of 128 bits, and the remaining one
The byte becomes a termination code (hereinafter referred to as T code) representing a fraction from O bit to 127 bits. In order to distinguish between the makeup code and the termination code, bit 7 is used as an identification flag, as shown in (9-1), where 1 indicates the M code and 0 indicates the T code.

本実施例のランレングス符号化をA3サイズの原稿の主
走査長297 mm分の1ラインの画像信号4677ビ
ツトが白信号5ビツト連続と黒信号4672ビツト連続
の白・黒パターンで構成された場合を例にとって説明す
る。
The run-length encoding of this embodiment is performed when the 4677-bit image signal of one line corresponding to the main scanning length of 297 mm of an A3-sized document is composed of a white/black pattern of 5 consecutive bits of the white signal and 4672 consecutive bits of the black signal. will be explained using an example.

本実施例におけるランレングス法では最初に表われる白
5ビットは(9−3)のようにTコードを用いて符号化
される。次に表われる黒4672ビットは128以上な
のでMコードとTコードから構成され、Mコードとして
は(9−4)のように、36が2進化表現され、Tコー
ドとしては(9−5)のように、64が2進化表現され
る。すなわち、Mコード(128X36)+Tコード(
64)=4672と符号化されることになる。以上説明
したように、上述した4677ビツトの1ラインの画像
信号は(9−3)、 (9−4)、 (9−5)の3バ
イトで表現される。
In the run-length method in this embodiment, the first 5 white bits appearing are encoded using a T code as in (9-3). The next 4,672 black bits are 128 or more, so they are composed of an M code and a T code. The M code is a binary representation of 36, such as (9-4), and the T code is (9-5). 64 is expressed in binary form as follows. In other words, M code (128X36) + T code (
64)=4672. As explained above, the above-mentioned 4677-bit one-line image signal is expressed by three bytes (9-3), (9-4), and (9-5).

また、1ラインの区切りの信号として(9−2)に示す
E OL :I−ド(End of Line コード
)を用いている。このEOLコードはbit 7が1で
あるだめ、Mコードのようであるが、Mコードでbit
 6からblt □が全て1である場合は、16256
ビツトの画像信号の連続を意味することになる。本実施
例において1ラインのデータ長は最大4677ビツトで
あり、Mコードでは必らずbit 5が0になるため、
通常のランレングス符号化で全てのビットが1になるM
コードが発生することはなく、EOLコードとMコード
は明確に区別される。
Furthermore, the EOL:I code (End of Line code) shown in (9-2) is used as a signal to separate one line. This EOL code is like an M code because bit 7 is 1, but in the M code, bit
If 6 to blt □ are all 1, then 16256
This means a series of bit image signals. In this embodiment, the maximum data length of one line is 4677 bits, and bit 5 is always 0 in the M code, so
M where all bits are 1 in normal run-length encoding
No code is generated, and EOL codes and M codes are clearly distinguished.

このEOLコードを加えて前述の白5ビット黒4672
ビットの4677ビツトの1ラインの画像信号は原信号
の約17146の量に当る4バイトデータでメモリに書
き込まれることに々る。尚、本符号化方法は白か黒かを
示すデータを符号中に持っていない。そのかわりに、1
ラインのデータは必らず白コードで初まることとしてい
る。そして、Tコードを白から黒、黒から白へのデータ
の変化を示すコードとして兼用している。もし1ライン
が黒から初まる場合は白Oを表わすTコードOを黒コー
ドの前に付ける。また、画像の連続がちょうど128の
整数倍で、Mコードのみで符号化できる場合にも、色が
変化するという意味で白0を表わすTコード0を付ける
Add this EOL code to the above white 5 bit black 4672
One line of an image signal of 4,677 bits is often written into memory as 4-byte data, which corresponds to about 17,146 of the original signal. Note that this encoding method does not have data indicating whether it is white or black in the code. Instead, 1
Line data always begins with a white code. The T code is also used as a code indicating data change from white to black and from black to white. If one line starts from black, a T code O representing white O is added in front of the black code. Furthermore, even if the sequence of images is exactly an integer multiple of 128 and can be encoded using only the M code, a T code 0 representing white 0 is added to indicate that the color changes.

第10図を参照して、本実施例の詳細な説明を行う。This embodiment will be described in detail with reference to FIG. 10.

第10図は第1表の詳細な構成を示す図であυ10−1
のリーダーが第1図における1−1のリーダーに、10
−3のプリンタが1−3のプリンタに、lo  4の圧
縮回路が1−2−1に、10−5の圧縮画像メモリが1
−2−2に、10−6の伸長回路が1−2−3におのお
の対応している。1o−2はコントローラーでありマイ
クロプロセッサ及び周辺I10ポートデバイスから構成
されており、リーダー10−1、プリンタ10−3との
シリアル通信、各種ビデオインターフェース制御信号の
入出力、RMU内部のセレクタの制御、カウンタ、コン
パレータ等への定数のセット、各種タイミング信号の発
生、RMU内部状態の取り込み等の機能を有する。
Figure 10 is a diagram showing the detailed structure of Table 1.
The leader of 10 becomes the leader of 1-1 in Figure 1.
-3 printer is connected to 1-3 printer, lo 4 compression circuit is connected to 1-2-1, and 10-5 compressed image memory is connected to 1-3 printer.
-2-2 and 10-6 expansion circuits correspond to 1-2-3, respectively. 1o-2 is a controller, which is composed of a microprocessor and peripheral I10 port devices, and is responsible for serial communication with the reader 10-1 and printer 10-3, input/output of various video interface control signals, control of selectors inside the RMU, It has functions such as setting constants to counters, comparators, etc., generating various timing signals, and capturing the internal state of the RMU.

10−4の圧縮回路はリーダー10−1からの画像信号
を前述のランレングス法で、1ラインずつ圧縮する回路
である。
The compression circuit 10-4 is a circuit that compresses the image signal from the reader 10-1 line by line using the run-length method described above.

10−5は圧縮画像メモリで圧縮回路1〇−4で生成さ
れるランレングスコードを書き込み、また、10−6の
伸長回路に読み出されたコードを供給する。
A compressed image memory 10-5 writes the run-length code generated by the compression circuit 10-4, and also supplies the read code to the decompression circuit 10-6.

伸長回路10−6は圧縮画像メモI710−5からのラ
ンレングスコードをビットシリアルナ画像データに伸長
する回路である。
The decompression circuit 10-6 is a circuit that decompresses the run length code from the compressed image memo I710-5 into bit serial image data.

10−7はEOLコード検出回路で伸長中に起こるEO
Lエラーの検出、EOLエラーの修復、EOLコードの
読み飛ばしによる伸長時の画像の副走査方向の縮小を行
う。また、EOL検出回路はコントローラー10−2か
らの副走査伸長区間信号V−DECがアサートされた時
のみ動作する回路であり、信号■・DECがネゲートさ
れている時にはBOL検出回路10−7の出力信号であ
るバッファチェンジイネーブyv (Buff CHG
 ENB )信号とデータイネープ/l/ (Data
 ENB )信号はハイ(H)レベルに固定され、DR
P2信号はロー(L)レベルニ固定される。
10-7 is an EOL code detection circuit that detects EO that occurs during decompression.
Detects L errors, repairs EOL errors, and reduces images in the sub-scanning direction during decompression by skipping EOL codes. Further, the EOL detection circuit is a circuit that operates only when the sub-scanning expansion section signal V-DEC from the controller 10-2 is asserted, and when the signal ①/DEC is negated, the output of the BOL detection circuit 10-7 is The buffer change enable signal yv (Buff CHG
ENB ) signal and data enable /l/ (Data
ENB) signal is fixed at high (H) level, and the DR
The P2 signal is fixed at low (L) level.

10−8はメモリアドレスカウンタでアップカウント動
作をし、圧縮画像メモリ10−5のアドレッシングを行
う。このカウンタはコントローラー10−2で書き込み
読み出し開始アドレスの設定が可能で、さらにカウンタ
出力がコントローラー10−2により読み込むことが可
能な構成である。このカウンタ10−8のカウントクロ
ックとしては圧縮回路10−4.伸長回路10−6、E
OL検出回路10−7からのDWP信号、DRP1信号
、DR,P2信号がNORゲー) 10−29を通して
与えられる。
A memory address counter 10-8 performs an up-count operation to address the compressed image memory 10-5. This counter is configured such that a write/read start address can be set by the controller 10-2, and further, the counter output can be read by the controller 10-2. The count clock for this counter 10-8 is the compression circuit 10-4. Extension circuit 10-6, E
The DWP signal, DRP1 signal, DR, and P2 signals from the OL detection circuit 10-7 are applied through the NOR gate 10-29.

10−10はディザカウンタであり第11図の構成を持
つ。本実施例におけるディザカウンタは13−1の3ビ
ツトダウンカウンタと11−2の10ビツトダウンカウ
ンタと、13−3の10ピツトコンパレータから構成さ
れている。
10-10 is a dither counter having the configuration shown in FIG. The dither counter in this embodiment is composed of a 3-bit down counter 13-1, a 10-bit down counter 11-2, and a 10-pit comparator 13-3.

11−3と13−2の2つのダウンカウンタで合計13
ビツトのアドレス信号DADRをダブルバッファメモI
J 10−15に供給する。
Two down counters, 11-3 and 13-2, totaling 13.
Bit address signal DADR to double buffer memory I
Supply to J 10-15.

10−11はラインカウンタで、コントローラー10−
2にて設定されたライン数を計数し、計数が終了すると
コントローラー10−2に信号を発生する。
10-11 is a line counter, controller 10-
2, and when the counting is completed, a signal is generated to the controller 10-2.

10−12は主走査カウンタ、デコーダで1ライン毎の
圧縮、伸長の区間信号H−A RE Aを発生したり、
ディザカウンタ10−10のスタート信号DC8TAR
Tを発生したり、ダブルバッファメモIJIO−’15
へのアドレス(■1ADR)を発生したり、ダブルバッ
ファメモリ10−15からの画像信号をトリミングする
信号(TRM)を発生する。第12図に主走査カウンタ
、デコーダ10−12の詳細な構成を示す。
10-12 is a main scanning counter and a decoder that generates a compression/expansion section signal H-A RE A for each line;
Start signal DC8TAR of dither counter 10-10
Generate T or double buffer memo IJIO-'15
1ADR) and a signal (TRM) for trimming the image signal from the double buffer memory 10-15. FIG. 12 shows a detailed configuration of the main scanning counter and decoder 10-12.

第12図において14−1は13ビツトのダウンカウン
タでカウントスタート値はコントローラ10−2により
設定され、STA、RT信号入力でカウントを開始する
。14−2から14−8は夫々13ビツトのコンパレー
タで、カウンタ14−1の値がコントローラにより夫々
設定された値と等しく々つだ時にA=B出力を発生する
。14−10から1’4−12はフリップフロップで1
4−2から14−7のコンパレータの出力によりセット
、リセットされる。
In FIG. 12, 14-1 is a 13-bit down counter whose count start value is set by the controller 10-2 and starts counting upon input of the STA and RT signals. 14-2 to 14-8 are 13-bit comparators, each of which generates an A=B output when the value of the counter 14-1 is equal to the value set by the controller. 14-10 to 1'4-12 is 1 with flip-flop
It is set and reset by the outputs of comparators 4-2 to 14-7.

10−14はコンパレータでありメモリアドレスカウン
タ10−8のアップカウント出力M−ADRとコントロ
ーラ10−2からの設定値を比較する。コンパレータ1
0−’14のA≦B出力である信号MOVER,により
コントローラー10−2はメモリアドレスカウンタ10
−8がコンパレータ10−14の八人力値に達しだこと
を検出する。またこの状態でMOVER信号が論理状態
1(以下Hレベルと記す)になることによりメモリアド
レスカウンタ10−8のCLK入力は、NORゲー)1
0−30により禁止されメモリアドレスカウンタ10−
8のカウントアツプ動作は停止する。
A comparator 10-14 compares the up-count output M-ADR of the memory address counter 10-8 with the set value from the controller 10-2. Comparator 1
The controller 10-2 controls the memory address counter 10 by the signal MOVER, which is A≦B output of 0-'14.
It is detected that -8 has reached the eight force value of comparator 10-14. In addition, in this state, the MOVER signal becomes logic state 1 (hereinafter referred to as H level), so that the CLK input of the memory address counter 10-8 becomes NOR gate) 1.
0-30 inhibited by memory address counter 10-
The count-up operation of 8 is stopped.

10−15はメモリX、メモリYの各々1ライン分ずつ
のメモリからなるダブルバッファメモリであり、メモリ
XとメモリYは読出し動作と書き込み動作が互いに逆に
なる。またこのバッファの切り換えはBuffCHG信
号の入力により行なわれ、リードアドレス信号、ライト
アドレス信号はディザカウンタ10’−10からのD’
ADH,と主走査カウンタ・デコーダ1o−12からの
HADRを適時用いている。
Reference numeral 10-15 is a double buffer memory consisting of memory X and memory Y each having one line worth of memory, and the memories X and Y have reverse read and write operations. This buffer switching is performed by inputting the BuffCHG signal, and the read address signal and write address signal are input from the dither counter 10'-10.
ADH and HADR from the main scanning counter decoder 1o-12 are used as appropriate.

10−16は伸長した画像信号をプリンタに出力するビ
デオクロックを発生する内部クロック発生部でありH8
YNC信号に同期してクロックICLKを発生する。
10-16 is an internal clock generator that generates a video clock for outputting the expanded image signal to the printer;
A clock ICLK is generated in synchronization with the YNC signal.

10−1.7は水平同期信号発生部でありビデオインタ
ーフェースを介してプリンタから入力されるBDと略同
周波数のIBD信号を出力する。プリンタ10−3から
ビデオインターフェースで規定されたBD倍信P−BD
が入力され々い場合、とのIBD信号をセレクタ5EL
510−22で選択することによりRMU内部の主走査
同期信号H8YNC,IJ−グーへのBD倍信R−BD
として用いる。
Reference numeral 10-1.7 is a horizontal synchronizing signal generating section which outputs an IBD signal having approximately the same frequency as that of the BD input from the printer via the video interface. BD double copy P-BD specified by the video interface from the printer 10-3
If the IBD signal is not input, selector 5EL
By selecting with 510-22, main scanning synchronization signal H8YNC inside RMU, BD double R-BD to IJ-Goo
used as

10−18はφsYsクロックのセレクタであり、リー
ダーからのビデオクロックR−VCLKと、内部クロッ
ク発生部10−16からのI−CLKをコントローラー
10−2からの指示によシ選択する。
10-18 is a φsYs clock selector, which selects the video clock R-VCLK from the reader and I-CLK from the internal clock generator 10-16 according to instructions from the controller 10-2.

10−19はダブルバッファメモリ10−15への書き
込みデータのセレクタであり、リーダーからの画像信号
R,−VDAと伸長回路10−6からの伸長画像信号D
VDOをコントローラ−10−2からの指示により選択
する。
10-19 is a selector for writing data to the double buffer memory 10-15, which selects the image signals R, -VDA from the reader and the expanded image signal D from the expansion circuit 10-6.
VDO is selected according to instructions from controller-10-2.

10−20は主走査カウンタデコーダ10−12のカウ
ント開始信号及びラインカウンタ10−11のクロック
入力として用いられるLN−8T信号のセレクタであり
セレクタ5EL510−22からのH8YNC信号とリ
ーダーからのR−VB倍信号コントローラー10−2か
らの指示により選択する。
10-20 is a selector for the LN-8T signal used as a count start signal for the main scanning counter decoder 10-12 and a clock input for the line counter 10-11, and selector 5 selects the H8YNC signal from EL510-22 and the R-VB from the reader. The selection is made according to instructions from the double signal controller 10-2.

10−21はプリ7タニ行< VE倍信号−VEのセレ
クタで、主走査カウンタ・デコーダからのVEに相当す
るOVE信号とリーダーからの■E倍信R−VBをコン
トローラー10−2からの指示により選択する。
10-21 is a selector for pre-7tani line < VE double signal - VE, and the OVE signal corresponding to VE from the main scanning counter decoder and ■E double signal R-VB from the reader are specified by the controller 10-2. Select by.

10−22は前述の如< HS Y N Cのセレクタ
であり、コントローラー10−2からの指示によシ選択
される。
10-22 is a selector for HSYNC as described above, and is selected according to an instruction from the controller 10-2.

10−23はプリンタ10−3に出力する画像信号P−
VDAとP−VDBのセレクタでコントローラ10−2
により制御される。ビデオセレクタ10−23のAO,
BO大入力はり−ダーからの画像信号R−VDAが接続
され、とのAO,BO大入力セレクトすることによりプ
IJ ンタへの画像信号P−VDA、P−VDBの両方
にリーダーからのR−VDAが接続されることになり、
プリンタに出力される記録画像VDは第7図から明らか
々ように、2値画像となる。
10-23 is an image signal P- output to the printer 10-3.
Controller 10-2 with VDA and P-VDB selectors
controlled by AO of video selector 10-23,
The image signal R-VDA from the reader is connected to the BO large input beam, and by selecting the AO and BO large inputs, the image signal R-VDA and P-VDB from the reader are connected to both the image signals P-VDA and P-VDB to the IJ printer. VDA will be connected,
As is clear from FIG. 7, the recorded image VD output to the printer is a binary image.

また、ビデオセレクタ10−23でA1人力とB1人力
が選択されると、プリンタへ行く画像信号P−VDAに
は、リーダーからの画像信号R−V D A カ出力す
レ、P−VDBKは、リーダからの画像信号R−VDB
をさらにANDゲー)10−34を通した信号が出力さ
れる。
Further, when A1 manual power and B1 manual power are selected by the video selector 10-23, the image signal R-VDA from the reader is output as the image signal P-VDA going to the printer, and the image signal R-VDA is outputted as P-VDBK. Image signal R-VDB from reader
(further AND game) 10-34, the signal is output.

このANDゲー)10−34のもう一方の入力信号R−
HA L Fはコントローラー10−2からの信号であ
る。このR,−HALFがHレベルであればプリンタに
行く画像信号P−VDBはリーダーからの画像信号R−
■DBと同じ信号に々リプリンタに出力される記録画像
VDは第7図に示すようにリーダーからの画像信号R−
VDA、R−VDBを合成した画像となる。
The other input signal R- of this AND game) 10-34
HA L F is a signal from controller 10-2. If this R, -HALF is at H level, the image signal P-VDB going to the printer is the image signal R- from the reader.
■The recorded image VD output to the reprinter with the same signal as DB is the image signal R- from the reader as shown in Figure 7.
The image is a composite of VDA and R-VDB.

R−HALF信号が論理状態O(以下II Lレベル”
と記す)であればプリンタに行く画像信号P−VDBは
Lレベルに固定される。このため第7図かられかるよう
にプリンタに出力される画像信号VDは1画素(1ビデ
オクロツク)区間に対して約50%のデユーティのVD
A信号が出力紙に記録される。これはR−HALF信号
がLレベルの場合はHレベルの場合に対してレーザーユ
ニット5−4から発せられるレーザー光の点灯時間が約
半分になることを意味し、R−HALF信号をLレベル
にすることによりリーダーからの画像信号の約50%の
出力画像濃度が得られる。
The R-HALF signal is in logic state O (hereinafter referred to as "II L level")
), the image signal P-VDB going to the printer is fixed at L level. Therefore, as shown in Fig. 7, the image signal VD output to the printer has a duty of about 50% for one pixel (one video clock) section.
The A signal is recorded on the output paper. This means that when the R-HALF signal is at L level, the lighting time of the laser beam emitted from the laser unit 5-4 is approximately half that of when it is at H level, and the R-HALF signal is at L level. By doing so, an output image density of approximately 50% of the image signal from the reader can be obtained.

ビデオセレクタ10−23でA2人力とB2人力が選択
されると、プリンタへ行く画像信号P−VDAはダブル
バッファメモリ10−15からの出力をANDゲート1
0−27.10−28を通した信号RMU−VDとなる
。またプリンタへ行く画像信号P−VDBは信号RMU
−VDをさらにANDゲート10−32を通しだ信号と
なる。このANDゲート10−23のもう一方の入力R
MU−HALFはコントローラ10−2からの信号であ
り、このRMU−HALF信号がHレベルであればプリ
ンタに行く画像信号P−VDBはP−VDAと同じ信号
となυプリンタに出力される記録画像VDは第7図から
れかるように画像信号RMU−VDによる2値画像にな
る。RMU、−HALF信号がLレベルであればプリン
タに行く画像信号P−VDBはLレベルに固定される。
When A2 manual power and B2 manual power are selected by the video selector 10-23, the image signal P-VDA going to the printer is output from the double buffer memory 10-15 by AND gate 1.
The signal RMU-VD is passed through 0-27.10-28. Also, the image signal P-VDB going to the printer is the signal RMU.
-VD is further passed through an AND gate 10-32 to become a signal. The other input R of this AND gate 10-23
MU-HALF is a signal from the controller 10-2, and if this RMU-HALF signal is at H level, the image signal P-VDB going to the printer is the same signal as P-VDA. As shown in FIG. 7, VD becomes a binary image based on the image signal RMU-VD. If the RMU and -HALF signals are at L level, the image signal P-VDB going to the printer is fixed at L level.

すなわちP−VDAにはダブルバッファメモリ10−1
5からの画像信号RMU−VDが伝送されるが、P−V
DBはLレベルのままであるのでプリンタに出力される
画像信号VDは第7図かられかるように、1画素(1ビ
デオクロツク)区間に対して約50%のデユーティの画
像信号として出力紙に記録される。これはRMU−HA
LF信号がLレベルの場合はHレベルの場合に対してレ
ーザーユニット5−4から発せられるレーザー光のON
時間が約半分になることを意味し、RMU−HALF信
号をLレベルにすることにより約50%の出力画像濃度
が得られる。
In other words, the P-VDA has a double buffer memory 10-1.
The image signal RMU-VD from 5 is transmitted, but the image signal RMU-VD from P-V
Since DB remains at the L level, the image signal VD output to the printer is output as an image signal with a duty of approximately 50% for one pixel (one video clock) interval, as shown in Figure 7. recorded in This is RMU-HA
When the LF signal is at L level, the laser light emitted from the laser unit 5-4 is turned on compared to when it is at H level.
This means that the time is about half, and by setting the RMU-HALF signal to L level, an output image density of about 50% can be obtained.

ビデオセレクタ10−23でA3人力と83人力が選択
されると、ORゲー) 10−31. 。
When A3 human power and 83 human power are selected with video selector 10-23, OR game) 10-31. .

10−32の働きによりプリンタに行く画像信号P−V
 DA、 P−VDB[IJ −グーかラノ画像信号R
−VDA、R−VDBとダブルバッファメモリ10−1
5よりの画像信号RMU−VDを合成したものと々る。
The image signal P-V goes to the printer by the function of 10-32.
DA, P-VDB[IJ-Gooka Rano image signal R
-VDA, R-VDB and double buffer memory 10-1
It is a composite of the image signals RMU-VD from 5.

ここで前述のR−HALF信号、RMU−)(ALF信
号を任意に組み合わせることによりプリンタに出力され
る画像信号VDは表1のようになる。
Here, the image signal VD output to the printer by arbitrarily combining the R-HALF signal, RMU-) (ALF signal) described above is as shown in Table 1.

10=25はEOL検出回路10−7からのBuff 
CHG  ENB信号(ダブルバッファ切り換え許可)
によりLN−8T信号をゲートしてダブルバッファメモ
リ10−15のリードバッファ、ライトバッファの切り
換え信号BuffCHGを発生する3人力ANT)ゲー
トである。
10=25 is the Buff from the EOL detection circuit 10-7
CHG ENB signal (double buffer switching permission)
This is a three-manpower ANT) gate that gates the LN-8T signal to generate a switching signal BuffCHG for the read buffer and write buffer of the double buffer memory 10-15.

10−35は伸長エラーカウンタであり10−6の伸長
回路による伸長エラーのライン数を計数する。
10-35 is an expansion error counter that counts the number of lines in which the expansion circuit 10-6 has an expansion error.

以上のように構成された本実施例の基本的左様能は以下
の4つである。゛ (1)(2値圧縮) リーダー10−1からの固定閾値による画像信号R−V
l)Aの任意の部分を2値圧縮処理し、圧縮画像メモ!
JIO−5に書き込む機能。尚、原稿全域の画像信号を
メモIJ 10−5に書込む場合もこれの応用である。
The basic functions of this embodiment configured as described above are the following four.゛(1) (binary compression) Image signal R-V with fixed threshold from reader 10-1
l) Perform binary compression processing on any part of A and create a compressed image memo!
A function to write to JIO-5. Incidentally, this is also applied to the case where the image signal of the entire area of the document is written to the memo IJ 10-5.

(2)(ディザ圧縮) リーダー10−1からのディザマトリクス閾値による画
像信号R= V D Aの任意の部分をディザ圧縮処理
し圧縮画像メモ!JIO−5に書き込む機能。
(2) (Dither compression) An arbitrary part of the image signal R=VDA from the reader 10-1 is subjected to dither compression processing using the dither matrix threshold value to create a compressed image memo! A function to write to JIO-5.

(3)(2値伸長) 圧縮画像メモIJ l O−5に記憶されている2値圧
縮画像を読み出し2値伸長処理をして、ブリンク10−
3に出力する機能。
(3) (Binary decompression) The binary compressed image stored in the compressed image memo IJ l O-5 is read out, subjected to binary decompression processing, and then
Function to output to 3.

(4)(ディザ伸長) 圧縮画像メモリ10−5に記憶されているディザ圧縮画
像を読み出しディザ伸長処理をして、プリンタ10−3
に出力する機能。
(4) (Dither expansion) The dither compressed image stored in the compressed image memory 10-5 is read out, subjected to dither expansion processing, and then sent to the printer 10-3.
Function to output to.

以下、順に具体的な動作を説明する。Hereinafter, specific operations will be explained in order.

(]) 2値圧縮の機能 リーダーから入力される画像信号は第7図のように主走
査1ラインを表わす■E倍信号同期信号として伝送され
て来る。そしてV’5YNC信号により1ペ一ジ分の副
走査区間□が表わされる。このvE倍信号第10図にお
いてはR−VE倍信号表現されている。
(]) Binary compression function The image signal input from the reader is transmitted as an E-times signal synchronizing signal representing one main scanning line as shown in FIG. Then, the sub-scanning section □ for one page is expressed by the V'5YNC signal. The vE multiplied signal in FIG. 10 is expressed as an R-VE multiplied signal.

本実施例における画像圧縮方法は主走査方向のみの画像
データの符号化であり副走査方向には画像圧縮を行わな
い。
The image compression method in this embodiment encodes image data only in the main scanning direction, and does not perform image compression in the sub-scanning direction.

以下第13図に示すようなリーダーから伝送されて来る
4 00 dot/1nch (4Q Q dpi )
の分解塵のA3サイズ(主走査297 mm(4677
ビツトに対応)、副走査420mm)の画像情報Aから
主走査方向に7 Q mm 、副走査方向に100 m
m経過した点から140 mm X 210mmの画像
情報Bをトリミングして2値圧縮する場合を例に取って
説明を行う。
400 dots/1nch (4Q Q dpi) transmitted from the reader as shown in Figure 13 below.
A3 size (main scan 297 mm (4677 mm) of decomposed dust
7 Q mm in the main scanning direction and 100 m in the sub-scanning direction from the image information A of
An example will be explained in which image information B of 140 mm x 210 mm is trimmed and binary compressed from a point where m has elapsed.

リーダー10−1から上記の画像データを受信する前に
コントローラー10−2はR,MU内部の各部のモード
設定を行う。
Before receiving the above-mentioned image data from the reader 10-1, the controller 10-2 sets the mode of each section inside the R and MU.

リーダー10−1から送られて来る画像信号R−VDA
を圧縮処理するだめにRMU内部で用いるクロック+J
sysとしてリーダー10−1からのクロックR−V 
CT、 Kを選択すべく1O−18SBL1を設定する
Image signal R-VDA sent from reader 10-1
Clock +J used inside RMU to compress
Clock R-V from reader 10-1 as sys
Set 1O-18SBL1 to select CT and K.

リーダー10−1から入力された画像信号R−VDAl
d−担ダプルノくラフアメモリ10−15にライン毎に
蓄えられ、その出力は圧縮回路10−4に入力される。
Image signal R-VDA1 input from reader 10-1
The data is stored line by line in the d-carrier memory 10-15, and its output is input to the compression circuit 10-4.

そのため、ダブルバッファメモリ10−15に入力され
る画像データをR−VDAにすべく 10−19SEL
2を設定する。
Therefore, in order to convert the image data input to the double buffer memory 10-15 into R-VDA, 10-19SEL
Set 2.

次に1ライン毎の同期信号Ll’1−8Tを設定するが
、これは、リーダー10−1からのR−vE倍信号用い
るべく1O−20SEL3を設定する。また、リーダー
10−1はR−VEを発生するだめの同期信号として、
R−BD倍信号必要とすることはビデオインターフェー
スの説明で述べたが、とのR,−BD倍信号して水平同
期信号発生部10−17からのIBD信号を出力すべく
 10−22SEL5を設定する。
Next, a synchronization signal Ll'1-8T for each line is set, and 1O-20SEL3 is set to use the R-vE multiplied signal from the reader 10-1. In addition, the reader 10-1 uses as a synchronization signal to generate R-VE.
As mentioned in the explanation of the video interface that the R-BD double signal is required, 10-22SEL5 is set to output the IBD signal from the horizontal synchronization signal generator 10-17 as the R, -BD double signal. do.

次に主走査カウンタ・デコーダ10−12のダウンカウ
ンタ14−1には1ライン分の画像データ4677ビツ
トを制御できるようにカウント開始値4677を設定す
る。
Next, a count start value of 4677 is set in the down counter 14-1 of the main scanning counter/decoder 10-12 so that 4677 bits of image data for one line can be controlled.

第13図のB領域の主走査方向の設定をコンパレータ1
4−4.14−5に行う。すなわち、この2つのコンパ
レータの出力でセット、リセットされるフリップフロッ
プ14−11からのH−AREA信号が圧縮回路10−
4に与えられ、圧縮回路10−4はこの信号がHレベル
の主走査区間中の画像データをランレングス符号化処理
し、圧縮画像メモIJiO−5に書き込む。
Comparator 1 sets the main scanning direction of area B in Figure 13.
Perform on 4-4.14-5. That is, the H-AREA signal from the flip-flop 14-11, which is set and reset by the outputs of these two comparators, is sent to the compression circuit 10-
4, and the compression circuit 10-4 performs run-length encoding processing on the image data during the main scanning period in which this signal is at H level, and writes it into the compressed image memo IJiO-5.

このためコンパレータ14−4には第13図B領域まで
の主走査方向余白70mm分に相当する1102ビツト
を4677から引いた値3575をセットする。またコ
ンパレータ14−5には、B領域の主走査中140mm
分に相当する2204ビツトをさらに3575から引い
た値1371をセットする。
Therefore, the comparator 14-4 is set to a value 3575, which is obtained by subtracting 1102 bits, which corresponds to a margin of 70 mm in the main scanning direction up to the area B in FIG. 13, from 4677. In addition, the comparator 14-5 has 140mm during main scanning of area B.
The value 1371 is set by subtracting 2204 bits corresponding to the minute from 3575.

コンパレータ14−8からの出力DC8TARTにより
ディザカウンタ10−10が動き出すわけであるが、1
4−1のダウンカウンタとディザカウンタ10−10を
同時に動作させるべく、コンパレータ14−8にば46
77ヲセツトスる。
The dither counter 10-10 starts to operate based on the output DC8TART from the comparator 14-8.
In order to operate the down counter 4-1 and the dither counter 10-10 at the same time, the comparator 14-8 is
I set 77.

ディザカウンタ1.0−10には、以下の定数設定を行
う。すなわちカウンタ13−1.13−2にはカウント
開始値4677をセットし、まだ2値圧縮を行うために
Di fheの信号をLレベルにする。これによりディ
ザカウンタ1〇−10はダウンカウンタ14−1と同様
の動作を行う。
The following constants are set for dither counters 1.0-10. That is, a count start value of 4677 is set in the counters 13-1 and 13-2, and the Difhe signal is set to L level in order to perform binary compression. As a result, the dither counter 10-10 performs the same operation as the down counter 14-1.

以上の定数設定によりダブルバッファメモリ10−15
に与えられる2つのアドレスDADR。
With the above constant settings, double buffer memory 10-15
Two addresses DADR given to DADR.

HAD Rは共に11%−VB倍信号立ち上りにより4
677からカウントダウンすることに々る。
HADR is both 11%-VB times 4 due to signal rise
It often counts down from 677.

すなわち、ダブルバッファ10−15より圧縮回路10
−4に与えられる画像信号EVDOはリーダーからの画
像信号R−VDAからちょうど1ライン遅れた信号にな
る。
That is, the compression circuit 10 from the double buffer 10-15
The image signal EVDO given to -4 is a signal delayed by exactly one line from the image signal R-VDA from the reader.

伸長回路10−6.、EOL検出回路10−7に与えら
れる伸長開始信号■−DECはLレベルであるので、D
’RPI信号D倍信2信号はLレベルテあり、Buff
 CHG BNB信号、 DataENB信号はHレベ
ルとなり伸長回路10−6゜EOL検出回路10−7は
、圧縮動作に影響を与え々いように構成されている。
Expansion circuit 10-6. , since the expansion start signal -DEC given to the EOL detection circuit 10-7 is at L level, D
'RPI signal D double signal 2 signal has L level, Buff
The CHG BNB signal and the DataENB signal go to H level, and the expansion circuit 10-6°EOL detection circuit 10-7 is configured so as not to affect the compression operation.

さらにメモリアドレスカウンタ10−8に圧縮画像メモ
IJIO−5への書き込み開始アドレスをセットする。
Further, a write start address to the compressed image memo IJIO-5 is set in the memory address counter 10-8.

この状態でコントローラー10−2はリーダーからのV
SYNCが入力されるのを待つ。VSYNCが入力され
ると、コントローラー10−2は、第13図のB領域寸
での副走査長100mmを計数すべく100mmに相当
する1574ラインをラインカウンタ10−11に設定
する。
In this state, controller 10-2 receives V from the leader.
Wait for SYNC to be input. When VSYNC is input, the controller 10-2 sets 1574 lines corresponding to 100 mm in the line counter 10-11 in order to count the sub-scanning length of 100 mm in the area B shown in FIG.

ラインカウンタ1. n −11はLN−8’l”信号
によりカウントダウンし、すなわち、リーダーからの主
走査区間信号R,−VBが1574回入力されると、ラ
インカウンタ10−11はカウントup信号をコントロ
ーラー10−2に発し、コントローラーはリーダーから
の画像信号がB領域に入ったことを検出する。それによ
りコントローラーは圧縮回路10−4に画像圧縮を開始
させるべく V−ENCをLレベルからHレベルにする
とともに、B領域の副走査長210mmを測定するため
、ラインカウンタ10−11に21、 Omm分に相当
する3307をセットする。
Line counter 1. n-11 counts down by the LN-8'l'' signal, that is, when the main scanning section signals R, -VB from the reader are input 1574 times, the line counter 10-11 sends the count up signal to the controller 10-2. The controller detects that the image signal from the reader has entered area B.Therefore, the controller changes V-ENC from L level to H level in order to cause the compression circuit 10-4 to start image compression. In order to measure the sub-scan length of 210 mm in area B, set 21 in the line counter 10-11 and 3307, which corresponds to 0 mm.

リーダーからB領域外の3307ラインのR−VE倍信
号入力されるとラインカウンタ1〇−11は再度カウン
トアツプし、コントローラー10−2はこれを検出して
V−ENC信号をHレベルからLレベルにして、圧縮回
路10−4の画像データ圧縮動作を停止させる。
When the R-VE multiplied signal of the 3307th line outside the B area is input from the reader, the line counter 10-11 counts up again, and the controller 10-2 detects this and changes the V-ENC signal from the H level to the L level. to stop the image data compression operation of the compression circuit 10-4.

このように、リーダー10−1から連続的に入力される
画像信号R−VDAは主走査方向には主走査カウンタデ
コーダ10−12から発せられるH = A RE A
がHレベルの任意の区間、まだ副走査方向にはコントロ
ーラー10−2が発スるV−ENCがHレベルの任意の
区間にトリミングされつつ圧縮回路10−4により符号
化され、圧縮画像メモIJIO−5に書き込まれる。
In this way, the image signal R-VDA continuously inputted from the reader 10-1 is output from the main scanning counter decoder 10-12 in the main scanning direction.
V-ENC generated by the controller 10-2 in the sub-scanning direction is trimmed to an arbitrary section of H level and encoded by the compression circuit 10-4, and the compressed image memo IJIO -5 is written.

この様子を第14図に示す。第14図におけるR−VD
Aは、ある1ラインの画像信号の入力の例であるがある
ラインのトリミング領域における画像信号として白2ビ
ット、黒2204ピット、白5ビットと入力された場合
を示している。このR−VDA入カにょシ圧縮回路1゜
−4において5バイトのランレングスコードが生成され
る。すなわち、最初の白2により2HのTコード、次に
黒22o4によりMコード91H,Tコード15H1最
後の白5により5HのTコード、さらにG H−A R
E Aの終了にょるEOLコードが生成され、圧縮回路
10−4からの書込み要求DWPパルスにょシ圧縮画像
メモリ10−5に書き込まれる。
This situation is shown in FIG. R-VD in Figure 14
A shows an example of inputting an image signal of one line, in which 2 bits of white, 2204 pits of black, and 5 bits of white are input as image signals in the trimming area of a certain line. A 5-byte run length code is generated in this R-VDA input compression circuit 1-4. That is, the first white 2 creates a 2H T code, then the black 22o4 creates an M code 91H, the T code 15H1, the last white 5 creates a 5H T code, and then G H-A R
An EOL code at the end of EA is generated and written into the compressed image memory 10-5 according to the write request DWP pulse from the compression circuit 10-4.

圧縮画像メモリ10−5をアドレッシングするのがメモ
リアドレスカウンタ1o−8であり、DWPパルスカゲ
ー)10−29.10−30を通った信号によυカウン
トアツプする。
A memory address counter 1o-8 is used to address the compressed image memory 10-5, and is incremented by the signal passed through the DWP pulse counter 10-29, 10-30.

仮りにリーダーからの画像信号R−VDAの変化が激し
く多量の圧縮コードMWコードが発生すると、圧縮画像
メモIJIO−5に全ての圧縮コードMWコードが書き
きれない状況が生ずる。さらに第15図のように圧縮画
゛像メモリ1゜−5に複数ページの圧縮画像データを書
き込む場合に、前に書きこんでおいた圧縮画像データT
の一部が新らたに書き込まれた圧縮画像データUによっ
て損われてしまう状況が生ずる。本実施例では圧縮画像
データ書き込み時に、書き込み可能空領域を越えてしま
ったことを検出し、他の圧縮データを保護するだめにコ
ンパレータ10−14を用い、メモリの使用状況をモニ
タしている。
If the image signal R-VDA from the reader changes rapidly and a large amount of compressed codes MW codes are generated, a situation arises in which all the compressed codes MW codes cannot be written in the compressed image memo IJIO-5. Furthermore, when writing multiple pages of compressed image data to the compressed image memory 1-5 as shown in FIG. 15, the previously written compressed image data T
A situation arises in which a part of the data is damaged by the newly written compressed image data U. In this embodiment, when writing compressed image data, it is detected that the writable free area has been exceeded, and in order to protect other compressed data, comparators 10-14 are used to monitor the memory usage status.

第15図において圧縮画像メモリ中に圧縮画像S(エン
ドアドレスSE)と圧縮画像T(スタートアドレスTS
)が記憶されている状態でアドレスSEとアドレスTS
の間に圧縮画像Uを書き込む場合コントローラー10−
2は書き込み開始アドレスUSを圧縮画像Sのエンドア
ドレスSBに基づいてメモリアドレスカウンタ10−8
に設定し、アドレスリミッタとして圧縮画像Tの開始ア
ドレスTSをコンパレータ1〇−14に設定する。書き
込みが進行してアドレスカウンタ10−8のカウント出
力が、コンパレータ10−14のTS値に達するとコン
パレ−タのA≦B出力が発生し、ゲー)10−30にお
いて新らたな書き込み要求パルスDWPはゲートされメ
モリアドレスカウンタは停止し更なる書込み動作が禁止
される。これにより圧縮画像Tは保護される。才だコン
トローラ1〇−2はコンパレータ10−14からのA≦
B出力であるMOVER信号を受けて圧縮画像がメモリ
10−5に書ききれなかったことを検出し、画像圧縮エ
ラーとし、画像データの書ききれ々かったメモリ領域を
空領域として、その画像のメモリからの出力を禁止する
とともに、リーダー表示部にてその旨を表示する。
In FIG. 15, compressed image S (end address SE) and compressed image T (start address TS) are stored in compressed image memory.
) is stored, address SE and address TS
When writing the compressed image U between the controller 10-
2 is a memory address counter 10-8 which calculates the write start address US based on the end address SB of the compressed image S.
, and the start address TS of the compressed image T is set in the comparators 10-14 as an address limiter. When the write progresses and the count output of the address counter 10-8 reaches the TS value of the comparator 10-14, the comparator outputs A≦B, and a new write request pulse is generated at 10-30. DWP is gated, the memory address counter is stopped, and further write operations are inhibited. This protects the compressed image T. The controller 10-2 has A≦ from the comparator 10-14.
Upon receiving the MOVER signal which is the B output, it is detected that the compressed image could not be completely written to the memory 10-5, an image compression error is detected, and the memory area where the image data was completely written is set as an empty area and the image is stored in the memory. output is prohibited, and a message to that effect is displayed on the reader display section.

コントローラー10−2は画像圧縮終了時にMOver
信号を判定し、Mover信号が発生されていないこと
を検出した場合、画像圧縮書き込みが成功したと判別し
、メモリアドレスカウンタ10−8からのアドレス出力
MADRを読み込み、今回書き込んだ圧縮画像の終了ア
ドレスとしてコントローラーの内部メモリに保持し、次
回の圧縮画像の書き込み開始アドレスの設定に用いる。
The controller 10-2 moves the MOver at the end of image compression.
If the signal is determined and it is detected that the Mover signal is not generated, it is determined that the image compression writing has been successful, and the address output MADR from the memory address counter 10-8 is read, and the end address of the compressed image written this time is determined. It is stored in the controller's internal memory as a file name and used to set the start address for writing the next compressed image.

まだ同様にメモリアドレスカウンタ10−8に設定した
書き込み開始、終了アドレスもコントローラーは保持し
て、圧縮画像データの伸長出力時に用いる。
Similarly, the controller also retains the write start and end addresses set in the memory address counter 10-8 and uses them when decompressing and outputting compressed image data.

尚、原稿全域の画像を符号化してメモリに格納する場合
にはトリミング領域を原稿サイズとすればよい。
Note that when the image of the entire document is encoded and stored in the memory, the trimming area may be set to the document size.

(2)  ディザ圧縮の機能 リーダー10−1から入力される画像信号が組織的ディ
ザ法による中間調表現されたものの場合、画像の変化が
激しくなり、本実施例で用いているような主走査方向に
おける画像の連続性をコード化する画像圧縮方法では効
果的な画像圧縮を行うことが困難と々る。
(2) Function of dither compression When the image signal input from the reader 10-1 is expressed in halftones by systematic dithering, the image changes drastically, and in the main scanning direction as used in this embodiment. It is difficult to perform effective image compression using image compression methods that encode the continuity of images.

本実施例ではデイザノくターンの周期性を利用してディ
ザ処理された画像信号を効果的に圧縮する。
In this embodiment, the periodicity of dithered turns is utilized to effectively compress the dithered image signal.

第16図においてディザ処理された画像信号は(1,6
−1)のようにリーダー10−1力)ら入力される。本
実施例では、1ブロック当り8×8のデイザマ) IJ
クスを用いておりその詳細1(16−2)図aブロック
に示す。仮りに、リーダーから読み取られた画像信号が
均一に32レベルのものであった場合、ディザマトリク
スの閾値の値が32以上のところに黒信号が出力され、
(16−2)のディザマトリクスにより(16−1)に
模式的に示すような画像を得る。
In FIG. 16, the dithered image signal is (1,6
-1) is input from the leader 10-1). In this embodiment, one block has 8×8 dithers) IJ
The details are shown in block a of Figure 1 (16-2). If the image signal read from the reader is uniformly of 32 levels, a black signal will be output where the threshold value of the dither matrix is 32 or more.
An image as schematically shown in (16-1) is obtained using the dither matrix (16-2).

(16−1)の画像信号で主走査方向の4ブロツクのみ
を拡大したものが(16−2)である。
(16-2) is an image signal obtained by enlarging only four blocks in the main scanning direction from the image signal (16-1).

ここでHで示す主走査ラインの信号が(16−4)のR
VDA信号と々す、4ブロツクの間で8回の状態変化が
発生している。この状態変化の回数は、ブロック数に比
例し、A4巾297mmでは1168回の状態変化が発
生することに々シランレングス符号化により1170バ
イトの符号化データ量となってしまう。この1170バ
イトは原画像量4677ビツトの約2倍のデータ量であ
りかえって画像情報量が増えてしまうことになる。
Here, the main scanning line signal indicated by H is R of (16-4)
Eight state changes occur between four blocks of the VDA signal. The number of state changes is proportional to the number of blocks, and for A4 size 297 mm, 1168 state changes occur, resulting in an encoded data amount of 1170 bytes due to silan length encoding. This 1170 bytes is about twice the amount of data of the original image, which is 4677 bits, and the amount of image information increases.

そこで(16−2)のHラインから得られる画像信号を
(16−3)のように同じ閾値で処理された画像信号を
抽出してブロック順に並らべ変えることにより4ブロツ
ク間で、(16−4)のEVDOに示すように、2回の
状態変化と々る。す々わち(16−3)のように、各ブ
ロックの同じ閾値による信号は黒か白かの状態のばらつ
きが少ないので、これらを連続するように並らべること
により画像の連続性を伸ばすことになる。
Therefore, by extracting the image signal obtained from the H line of (16-2) and the image signal processed with the same threshold value as shown in (16-3) and rearranging it in the order of the blocks, (16 -4) As shown in EVDO, two state changes occur. As shown in (16-3), signals based on the same threshold for each block have little variation in black or white status, so by arranging them consecutively, the continuity of the image can be maintained. It will be extended.

本実施例では、この画像信号のディザマトリクスに応じ
た並らひかえをディザカウンタ10−10を用いてダブ
ルバッファメモリ10−15の読出しを制御することに
より行う。
In this embodiment, the arrangement of the image signal is changed according to the dither matrix by controlling the reading of the double buffer memory 10-15 using the dither counter 10-10.

リーダーからのディザ画像信号FLVDAは、主走査カ
ウンタ・デコーダ10−12のアドレス制御によりダブ
ルバッファメモリ10−15にリーダーらの入力順に書
き込まれる。
The dithered image signal FLVDA from the readers is written into the double buffer memory 10-15 in the order of input by the readers under address control of the main scanning counter/decoder 10-12.

本実施例ではディザパターンの主走査の繰り返しが8ビ
ット間隔なので、デイザカウンタ10−10は、ダブル
バッファメモリ10−15から画像データを読み出す時
に8ビット間隔にダウンカウントして読み出す。この8
ビット間隔の読み出しは第11図に示されるコントロー
ラー10−2からの])i ther  信号によって
なされる。まだコントローラー10−2は(16−1)
に示す主走査圧縮ブロック数Nにより、13−20カウ
ンタ設定値からN−1を引いた値をコンパレータ13−
3に設定する。この圧縮ブロック数Nは圧縮回路10−
4に与えられる主走査圧縮データ長を示すH−AREA
信号の長さに対応しており(H−AR,EA信号ビット
長)=N×8となる。
In this embodiment, since the main scanning of the dither pattern is repeated at 8-bit intervals, the dither counter 10-10 counts down to 8-bit intervals when reading image data from the double buffer memory 10-15. This 8
Reading of the bit interval is done by the ])i ther signal from controller 10-2 shown in FIG. Controller 10-2 is still (16-1)
The comparator 13-20 calculates the value obtained by subtracting N-1 from the 13-20 counter setting value based on the main scanning compression block number N shown in
Set to 3. This number of compressed blocks N is the compression circuit 10-
H-AREA indicating the main scanning compressed data length given to 4.
It corresponds to the length of the signal (H-AR, EA signal bit length)=N×8.

第11図の])i ther 信号がHレベルに々るこ
とで3ビットカウンタ13−1と10ビットカウンタ1
3−2は分離され、13−2のカウンタがカウントダウ
ンしてコンパレータ13−3に設定されたブロック数N
だけカウントすると、コンパレータ13−3のA=B出
力が発生し、カウンタ13−2は最初の設定値に再ロー
ドされ、1:3−1のカウンタは1だけカウントダウン
する。
In FIG. 11, when the i ther signal reaches the H level, the 3-bit counter 13-1 and the 10-bit counter 1
3-2 is separated, and the counter 13-2 counts down to the number N of blocks set in the comparator 13-3.
, the A=B output of the comparator 13-3 is generated, the counter 13-2 is reloaded to the initial set value, and the 1:3-1 counter counts down by one.

すなわち、カウンタ】3−2でブロック数Nをカウント
し、カウンタ13−1で、各ブロック内の何番目の閾値
による画像信号かを指定する。このように、ディザマト
リクスの主走査ブロック長はコンパレータ13−3によ
って任意のNを選捩することが可能であり主走査方向に
任意の長さの画像信号のディザ圧縮に対応することがで
きる。
That is, the counter 3-2 counts the number of blocks N, and the counter 13-1 specifies which threshold value in each block the image signal is based on. In this way, the main scanning block length of the dither matrix can be arbitrarily selected N by the comparator 13-3, and can correspond to dither compression of an image signal having an arbitrary length in the main scanning direction.

(3)2値画像伸長の機能 (1)において述べだ2値圧縮画像を伸長処理してプリ
ンタ10−3に出力する機能であり、これにより伸長画
像のトリミング、移動処理をすることができる。
(3) Binary image decompression function This is a function of decompressing the binary compressed image mentioned in (1) and outputting it to the printer 10-3, which allows the decompressed image to be trimmed and moved.

まず基本的な2値画像伸長を説明するために、トリミン
グ、移動の各処理を行わない場合として、2値画像圧縮
により第13図のB領域からの圧縮画像信号が圧縮画像
メモ!J 10−5に記憶されているものとし、その圧
縮画像をA領域の大きさのA3の出力用紙のB領域の場
所に画像出力する場合を例に取る。
First, in order to explain basic binary image decompression, we will assume that no trimming or movement processing is performed, and the compressed image signal from area B in Figure 13 is converted into a compressed image memo! by binary image compression. For example, assume that the compressed image is stored in J10-5 and that the compressed image is to be output to a location in area B of an A3 output sheet having the size of area A.

コントローラー10−2ばB領域の画像伸長出力に先だ
ち、副走査方向の先端100mmの余白を作るためにプ
リンタ10−3にA3の出力用紙を先行給紙させる。す
なわち、第4図においてプリンタは感光ドラムの転写位
置すからレーザー露光される点aiでの距離と、bから
レジスト給紙点ciでの距離が等しくなるように構成さ
れているため4−7のレジストローラーでA3の出力用
紙を送り出して、100mmの副走査紙送りの後に伸長
動作を開始し、第13図の8画像を出力する。そのだめ
、コントローラー10−2はプリンタにレジスト給紙信
号VSYNCを出力した後、ラインカウンタ1〇−11
にlQQmmに相当するライン数をセットする。この値
は400 dpiの解像度で1574ラインとなる。
The controller 10-2 causes the printer 10-3 to feed A3 output paper in advance in order to create a margin of 100 mm at the leading edge in the sub-scanning direction prior to outputting the expanded image of area B. That is, in FIG. 4, the printer is configured so that the distance from the transfer position of the photosensitive drum to the laser-exposed point ai is equal to the distance from b to the registration paper feeding point ci. The A3 output paper is sent out using the registration rollers, and after the sub-scanning paper is fed by 100 mm, the expansion operation is started, and the 8 images shown in FIG. 13 are output. Instead, the controller 10-2 outputs the registration paper feed signal VSYNC to the printer, and then outputs the line counter 10-11.
Set the number of lines corresponding to lQQmm to . This value is 1574 lines at a resolution of 400 dpi.

画像伸長時のライン同期信号LN−8Tは10−20の
5EL3.10−22の5EL5によってプリンタから
のBD倍信P−BDが選択される。また内部クロック0
8YSは、10−22のS E L 5により選択され
たH S Y N Cに同期して内部クロック発生部1
0−16で発生されるI −CL Kを10−18の5
ELIで選択する。
For the line synchronization signal LN-8T during image expansion, the BD double P-BD from the printer is selected by 5EL3 of 10-20 and 5EL5 of 10-22. Also, internal clock 0
8YS is the internal clock generator 1 in synchronization with HSYNC selected by SEL5 of 10-22.
I-CL K generated at 0-16 is 5 at 10-18
Select with ELI.

さて、前述のラインカウンタ10−11で副走査余白1
00mm相当の1574ラインのカウントを終了すると
、コントローラーは画像伸長信号V−DECを出力し、
B領域の伸長動作を開始するが、それに先だち、画像圧
縮記憶時にメモリアドレスカウンタ10−8に設定した
アドレス値を、コンパレータ10−14には圧縮時の最
終のMADR値をセットする。
Now, with the line counter 10-11 mentioned above, the sub-scanning margin is 1.
After counting 1574 lines equivalent to 00mm, the controller outputs the image expansion signal V-DEC,
Before starting the decompression operation of area B, the address value set in the memory address counter 10-8 at the time of compressing and storing the image is set, and the final MADR value at the time of compression is set in the comparator 10-14.

コントローラ10−2からの■DEC信号によシ伸長回
路10−6は1ラインずつ画像伸長をし、伸長された画
像信号DVDOはダブルバッファメモリ10−15に書
き込まれ、1ライン後に、プリンタに出力される。この
時ディザカウンタ10−10はダブルバッファメモリ1
0−15に対する書き込みアドレスカウンタとして働き
、主走査カウンタデコーダは読み出しアドレスカウンタ
として働く。
The expansion circuit 10-6 expands the image line by line according to the DEC signal from the controller 10-2, and the expanded image signal DVDO is written into the double buffer memory 10-15, and after one line, is output to the printer. be done. At this time, dither counter 10-10 is double buffer memory 1.
It works as a write address counter for 0-15, and the main scanning counter decoder works as a read address counter.

以下1ラインの画像伸長動作を第17図により説明する
。HA D R値がAのときにプリンタに対するビデオ
イネーブル信号としてのOvE信号がHレベルになるも
のとして、主走査カウンタテコーダ−1,0−11のグ
ランカウンタ14−1には前述のレフトマージン量に対
応した値LMG(1,73ビツト)を考慮しだA+LM
G。
The image expansion operation for one line will be explained below with reference to FIG. Assuming that the OvE signal as a video enable signal for the printer becomes H level when the HA D R value is A, the above-mentioned left margin amount is applied to the grand counter 14-1 of the main scanning counter encoder-1, 0-11. Considering the value LMG (1,73 bits) corresponding to A+LM
G.

コンパレータ14−2にはAをセットする。コンパレー
タ14−3にはA、−4676、コンパレータ14−4
にはA、コンパレータ14−5にはA−2203,コン
パレータ14−6にはB、コンパレータ14−7にはB
−2203゜カウンタ14−1がAK々つだ時にディザ
カウンタ13−1.13−2が動き出すようにコンパレ
ータ14−8にはAをセットする。またディザカウンタ
13−1.13−2はカウンタ14−1と同じカウント
動作をする様に、ロード値としてAをセットする。
A is set in the comparator 14-2. A, -4676 for comparator 14-3, comparator 14-4
A to the comparator 14-5, A-2203 to the comparator 14-5, B to the comparator 14-6, and B to the comparator 14-7.
A is set in the comparator 14-8 so that the dither counters 13-1 and 13-2 start operating when the -2203° counter 14-1 reaches AK. Further, the dither counters 13-1 and 13-2 are set to A as a load value so that they perform the same counting operation as the counter 14-1.

プリンタ10−3からPBD信号が入力されるとL N
−8T信号が発生し、主走査カウンタデコーダ10−1
2のHADT%il:A+LMGからカウントダウンし
、クロックをL M Gカウントし、HA D R,が
AになるとOVE信号、HAR,EA倍信号DC8TA
RT信号が発生する。
When the PBD signal is input from the printer 10-3, LN
-8T signal is generated and the main scanning counter decoder 10-1
2 HADT%il: Count down from A+LMG, count the clock LMG, and when HADR becomes A, OVE signal, HAR, EA double signal DC8TA
An RT signal is generated.

このL M GはプリンタのBDセンサから感光ドラム
の画像有効部1での主走査長に相当するクロック数であ
シ、0■E信号がHレベル区間にプリンタに出力された
画像信号が出力用紙上にプリントされる。
This L M G is the number of clocks corresponding to the main scanning length from the printer's BD sensor to the image effective area 1 of the photosensitive drum. printed on top.

HADRがAになってから、第13図のB領域までの7
Qmm分の余白に相当する1102クロツクをカウント
してHADRがBになると、TRM信号がI(レベルに
なりダブルバッファメモリからの出力画像信号がゲー)
10−27により有効になり、さらにHA D RがB
−22,03に々ると、プリンタにはB領域の主走査中
140mmに相当する2204画素が出力されて、TR
M信号がLレベルになり、それ以降のプリンタに行く画
像信号はゲー)10−27により無効に々る。このよう
にダブルバッファメモリに蓄えられた伸長画像信号はプ
リンタに出力されルカ、ダブルバッファメモリ10−1
5への伸長画像DVDOの書き込みは以下のようになる
7 from HADR to A to area B in Figure 13
When HADR reaches B after counting 1102 clocks corresponding to the margin of Qmm, the TRM signal becomes I (level and the output image signal from the double buffer memory becomes G).
10-27, and HA D R becomes B
-22,03, the printer outputs 2204 pixels corresponding to 140mm during main scanning of area B, and TR
The M signal becomes L level, and the subsequent image signals sent to the printer are invalidated by game) 10-27. The expanded image signal stored in the double buffer memory in this way is output to the printer, and the double buffer memory 10-1
Writing an expanded image DVD to DVD 5 is as follows.

0■Eの立ち上りと同時に伸長回路10−6゜EOL検
出回路10−7に与えられるH−AREA信号がHレベ
ルになり伸長回路10−6による圧縮画像MRコードの
伸長が開始される。
Simultaneously with the rising edge of 0■E, the H-AREA signal applied to the decompression circuit 10-6°EOL detection circuit 10-7 becomes H level, and the decompression circuit 10-6 starts decompression of the compressed image MR code.

伸長回路10−6は副走査伸長区間信号V−DEC,主
走査伸長区間信号H−AREAがHレベルの区間圧縮画
像メモIJ 10−5から圧縮画像MR,コードを読み
取りコードを図示しないデコードカウンタに取り込み、
yIsYs クロックによってカウントダウンして伸長
画像DVDOを発生する。すなわち第17図に示すよう
にMRコードのTコード2Hを取り込み5sys  2
クロツク分白信号のDVDOを出力する。osys  
2クロツクによシブコードカウンタはカウントアツプし
て、圧縮画像要求信号DRP 1を発生し、圧縮画像メ
モリ10−5より次のMRコードを読み出し、DVDO
の出力を反転させる。
The decompression circuit 10-6 reads the compressed image MR and the code from the compressed image memo IJ 10-5 in which the sub-scanning decompression period signal V-DEC and the main-scanning decompression period signal H-AREA are at H level, and sends the code to a decoding counter (not shown). Intake,
A decompressed image DVD is generated by counting down with the yIsYs clock. That is, as shown in FIG. 17, the T code 2H of the MR code is taken in and 5sys 2
Outputs a DVD of the clock white signal. osys
Every 2 clocks, the digital code counter counts up, generates the compressed image request signal DRP1, reads the next MR code from the compressed image memory 10-5, and outputs the DVD.
inverts the output of

次に入力されるMRコードは91■(でMコードである
ので〆sYsクロックを2176クロツク計数してDR
PIを発生する。七かし、MコードとTコードはペアな
のでこの時点でDVDOは反転させ々いで次のTコード
15HのカウントアツプによりDVDOを反転させる。
The next MR code to be input is 91■ (because it is an M code, count the sYs clocks by 2176 clocks and then write the DR code.
Generate PI. However, since the M code and T code are a pair, the DVD is inverted at this point, and the DVD is inverted when the next T code 15H is counted up.

このように、HAREAがHレベルの区間に画像の伸長
が行われディザカウンタ10−10よりのDADRによ
ってダブルバッファメモリ10−15に伸長画像DVD
Oが書き込まれる。そして、このDVDO信号が次のラ
インにおいてHADRのアビレフ8点から読み出される
ように、ディザカウンタのカウント開始値はBが設定さ
れる。まだ、第11図のディザカウンタは2値伸長のだ
め1)ither 信号はLレベルが設定される。
In this way, the image is expanded during the period in which HAREA is at H level, and the expanded image DVD is stored in the double buffer memory 10-15 by DADR from the dither counter 10-10.
O is written. Then, the count start value of the dither counter is set to B so that this DVD signal is read out from the eight points of the HADR in the next line. However, the dither counter in FIG. 11 is not capable of binary expansion. 1) The ither signal is set to L level.

画像伸長時のHAREAAREA信号、B領域の画像圧
縮時に用いたH−AREAと同じりロック数出力される
ように、コンパレータ14−4.14−5は設定される
が、このHAR,EA倍信号立ち下り時に、現ラインの
伸長動作の成功、不成功をE O’L検出回路1o−7
にて判定される。
The comparators 14-4 and 14-5 are set so that the HAREAAREA signal during image expansion and the same number of locks as the H-AREA used when compressing the B area image are output, but this HAR, EA multiplication signal When descending, the success or failure of the extension operation of the current line is detected by the E O'L detection circuit 1o-7.
Judgment will be made.

伸長動作の成功の判定は、I−I A、 RE A信号
の立ち下りと、次のMR,コードがEOLであることと
、その時点で伸長回路10−6のテコードカウンタがカ
ウントアツプしてDRPI信号が発生していることの3
つの状態がそろっていることで行う。とれは圧縮回路か
らのMWコード信号を圧縮画像メモ!J 10−5に書
き込む時あるいはMRコードを圧縮画像メモリから読み
出す時にコードに誤りが含捷れる可能性があるからであ
り、MRコードに誤りがある場合は外部からの正確な区
間信号HA R,E Aの終了と、1コードの伸長動作
の終了であるDRPIパルスの発生と、ラインi了コー
ドEOLが一致しなくなるのである。ここで上記3つの
状態が一致し、伸長エラーがなかったことを判定してE
OL検出回路10−7は、次のラインのために次ライン
の先頭のMRコードを読み出すように、DR,P2を発
生する。
The success of the decompression operation is determined by the falling edge of the I-I A and REA signals, the fact that the next MR code is EOL, and the decode counter of the decompression circuit 10-6 counting up at that point. 3. DRPI signal is generated
This is done when two conditions are in place. Tore is a compressed image memo of the MW code signal from the compression circuit! This is because there is a possibility that an error may be included in the code when writing it to J10-5 or reading the MR code from the compressed image memory.If there is an error in the MR code, an accurate interval signal HA R, The end of EA and the generation of the DRPI pulse, which is the end of the expansion operation of one code, do not coincide with the line i completion code EOL. At this point, it is determined that the above three conditions match and there was no decompression error, and E
The OL detection circuit 10-7 generates DR, P2 so as to read out the first MR code of the next line for the next line.

以下、伸長エラーが発生した場合のライン単位の動作を
第18図により説明する。
The line-by-line operation when an expansion error occurs will be explained below with reference to FIG.

第18図においてプリンタ10−3より入力されるライ
ン同期信号PBDにより主走査アドレスカウンタ・デコ
ーダ10−12より主走査伸長区間信号がV−DECに
かかわらず発生している。コントローラー10−2から
の副走査伸長区間信号V−DECがLレベルの時はEO
L検出回路からのDECENB信号とBuffCHGE
NB信号はHレベルでありダブルバッファメモリの切り
替えを行うBuffCHG信号は常に発生する。壕だD
ata ENB信号はこの時Lレベルでありプリンタに
出力される画像信号RMU−VDはANDゲート10−
28によりLレベルに固定される。
In FIG. 18, the line synchronization signal PBD input from the printer 10-3 causes the main scanning address counter/decoder 10-12 to generate a main scanning expansion period signal regardless of V-DEC. EO when the sub-scanning expansion section signal V-DEC from the controller 10-2 is at L level.
DECENB signal from L detection circuit and BuffCHGE
The NB signal is at H level, and the BuffCHG signal for switching the double buffer memory is always generated. It's a trench D
The ata ENB signal is at L level at this time, and the image signal RMU-VD output to the printer is output from the AND gate 10-.
28, it is fixed at L level.

コントローラ10=21d画像伸長を行うべくV−DE
C信号をHレベルにし、以下HAREA1、HAR,E
A  2.・・・・・・HA RE A  9  と順
にライン単位の画像伸長動作が行われる。画像伸長時に
ばHAREA領域は3つの状態に分かれる。すなわち、
正常の伸長動作を行うXの状態と、伸長エラーの発生し
たyの状態と、EOL検出回路からのDECENBがL
レベルの伸長エラーリカバー状態2である。
Controller 10 = 21d V-DE to perform image expansion
Set the C signal to H level, and then HAREA1, HAR, E
A2. . . . The line-by-line image expansion operation is performed in the order of HA RE A 9 . During image expansion, the HAREA area is divided into three states. That is,
The state of the
This is level decompression error recovery state 2.

V−DEC信号がHレベルになった次のラインHARE
A1から伸長回路10−6において画像伸長が開始され
る。第18図のように最初のHAREAIで伸長エラー
が発生(yの状態)とすると、EOL検出回路10−7
はHAREAlの後端テBu’f f CHG ENB
信号とDECENBi号をLレベルにして、次のライン
HA REA2ではダブルバッファメモリの切り替えと
イi長回路10−6の伸長動作を停止させて、伸長エラ
ーリカバーのためのEOL検出処理を行う(2の状態)
The next line HARE where the V-DEC signal becomes H level
Image expansion is started in the expansion circuit 10-6 from A1. As shown in FIG. 18, if an expansion error occurs in the first HAREAI (state y), the EOL detection circuit 10-7
is the rear end of HAREAL Bu'f CHG ENB
The signal and the DECENBi signal are set to L level, and in the next line HA REA2, the double buffer memory is switched and the expansion operation of the i-length circuit 10-6 is stopped, and EOL detection processing for expansion error recovery is performed (2 condition)
.

EOL検出回路10−7は、伸長エラーリカバーとして
HAREAがHの区間MRコードとしてEOLコードF
FHを検出するまでDRP2信号を繰り返し発生させる
。EOLコードを検出することにより圧縮画像データと
Hl(、EA倍信号の同期関係が回復したことになり次
のHAREA3における画像伸長のための先頭MRコー
ドを読み出し、DECENDをHレベルに復帰させて伸
長エラーリカバー動作を終了する。
The EOL detection circuit 10-7 outputs an EOL code F as an MR code for the section where HAREA is H for decompression error recovery.
The DRP2 signal is repeatedly generated until FH is detected. By detecting the EOL code, the synchronization between the compressed image data and the Hl (and EA double signal) is restored, and the first MR code for image decompression in the next HAREA3 is read, DECEND is returned to H level, and decompression is performed. Terminates error recovery operation.

次のHAR,EA3において正常に画像伸長動作が終了
すると(Xの状態)’、EOL検出回路qHAREA4
のだめの先頭MRコードを読み出すだめにI)RP2を
1クロック発生させ、Buff CHG ENB信号を
Hレベルにするとともに、その後に入力されるLNST
信号によりDa t a ENBをHレベルにする。
When the image decompression operation is normally completed in the next HAR, EA3 (state of X)', the EOL detection circuit qHAREA4
To read the first MR code of Nodame, I) Generate one clock of RP2, set the Buff CHG ENB signal to H level, and then output the LNST input after that.
The signal sets Data ENB to H level.

HAREA4.HAREA5の2ラインでは共に画像伸
長動作が正常に終了しているのでBuff CHG E
NB信号はHレベルのままであるが、HAREA6では
HAREAlと同様に伸長エラーが発生している。この
状態によ#)EOL検出回路は、HARE’A6におい
て、ダブルバソファメモリのメモIJ Yに書き込壕れ
た、伸長エラーを含んだ伸長画像データがプリンタに出
力されないようにBuff CHG ENB信号をI−
I AREA6の後端でLレベルにし、次にHA 11
. EA8において画像伸長を成功する壕でダブルバッ
ファメモリの切り替えを禁止する。このため、HARE
A7でエラーリカバーしている区間とHAREA8で、
次の伸長動作を行っている区間は、HA RE A 5
において伸長した伸長成効の画像データが繰り返しプリ
ンタにRMU−VD信号として出力される。
HAREA4. Since the image expansion operation has completed normally on both lines of HAREA5, Buff CHG E
Although the NB signal remains at the H level, an expansion error has occurred in HAREA6 as in HAREA1. In this state, the EOL detection circuit sends the Buff CHG ENB signal in HARE'A6 so that the decompressed image data containing the decompression error written in the memo IJY of the double bass sofa memory is not output to the printer. I-
Set to L level at the rear end of I AREA6, then HA11
.. In EA8, double buffer memory switching is prohibited when image decompression is successful. For this reason, HARE
In the section where the error is recovered in A7 and in HAREA8,
The section where the next expansion operation is performed is HA RE A 5
The image data with the expansion effect expanded in is repeatedly output to the printer as an RMU-VD signal.

このように、Buff CHG ENB信号により伸長
エラー発生ラインと、エラーリカバーラインの後はLN
STによるBuff CHG信号が発生しないだめ第2
2図のRMU−VD信号に示すように伸長成功ライン(
Xの状態)における伸長画像データだけがRMU−VD
信号としてプリンタ10−3に出力される。
In this way, the Buff CHG ENB signal causes the LN to be output after the expansion error occurrence line and the error recovery line.
If the Buff CHG signal is not generated by ST, the second
As shown in the RMU-VD signal in Figure 2, the extension success line (
Only the expanded image data in
It is output as a signal to the printer 10-3.

またData ENB信号は前述のように、伸長成功ラ
インが発生した後、初めてHレベルになる信号であり、
この信号によりV−DEC信号がI−(レベルになって
から、伸長成功ラインが発生するまでの間、エラーを含
んだ伸長画像データがプリンタに出力され々いようにな
る。
Furthermore, as mentioned above, the Data ENB signal is a signal that becomes H level for the first time after the successful extension line is generated.
This signal prevents decompressed image data containing errors from being output to the printer after the V-DEC signal becomes I-(level) until the decompression success line occurs.

さらにDataENB信号はV−DEC信号がLレベル
になってから1ライン遅れてLレベルに々るように構成
されておシ、最後のHAFtEA9ラインにおける伸長
画像も、正常にプリンタに出力される。
Further, the DataENB signal is configured to reach the L level one line later than the V-DEC signal becomes L level, and the expanded image in the last 9 lines of HAFtEA is also normally output to the printer.

コントローラー10−2は、伸長エラーカウンタ10−
35にオイて、Buff CHG BNB信号がLレベ
ル中に発生したLNST信号をカウントして、伸長エラ
ーが発生したラインと、エラーリカバーを行ったライン
の合計をカウントする。すなわちこのカウント値は、伸
長成功しなかったライン数を表わし、コントローラー1
0−2は伸長が成功しなかったライン数が8ラインを越
えた場合は、伸長エラーミスプリントとして直に、■D
ECDEC信号ベルにし伸長動作を停止する等の処理す
る。これにより、伸長エラーの検出が、1ペ一ジ分の画
像の伸長を待たずして行なわれるので、伸長エラーに対
する迅速な処理が可能と々る。
The controller 10-2 has an expansion error counter 10-2.
At step 35, the LNST signals generated while the Buff CHG BNB signal is at L level are counted, and the total number of lines in which an expansion error has occurred and lines in which error recovery has been performed is counted. In other words, this count value represents the number of lines for which decompression was not successful, and controller 1
For 0-2, if the number of lines for which decompression was not successful exceeds 8 lines, it will be immediately marked as a decompression error misprint.■D
Perform processing such as setting the ECDEC signal to a bell and stopping the expansion operation. As a result, decompression errors are detected without waiting for one page of images to be decompressed, so that decompression errors can be quickly processed.

伸長時に、コントローラー10−2が出力する副走査伸
長区間信号V−D、 E Cは、圧縮時にV−ENC信
号を出力した時と同じライン数をラインカウンタ10−
11において計数して出力する。
During expansion, the sub-scanning expansion section signals V-D and EC output by the controller 10-2 are set to the same number of lines as when outputting the V-ENC signal during compression to the line counter 10-2.
11, it is counted and output.

したがって、画像伸長中に伸長エラーが発生しなければ
、コントローラー10−2がラインカウンタ10−11
からの所定副走査ライン計数完了出力を受けて■DEC
DEC信号ベルに戻すタイミングで、メモリアドレスカ
ウンタ10−8からのアドレス出力M−ADHは、伸長
画像を圧縮した時の最終M−ADRの値と同じになる。
Therefore, if no decompression error occurs during image decompression, the controller 10-2 controls the line counter 10-11.
■DEC upon receiving the specified sub-scanning line count completion output from
At the timing when the DEC signal returns to bell, the address output M-ADH from the memory address counter 10-8 becomes the same as the final value of M-ADR when the decompressed image is compressed.

コンパレータ1o−i4には、圧縮時の最終M−4L)
R値をセットしているのでコントローラー10−2はV
DECDEC信号ベルにした時点で、MOVER信号を
検出するはずである。
Comparator 1o-i4 contains the final M-4L during compression.
Since the R value is set, the controller 10-2 is set to V.
The MOVER signal should be detected when the DECDEC signal is set to bell.

ところで伸長動作中に、前述のように伸長エラーが発生
すると、伸長エラーリカバーのためにEOL検出回路1
0−7がEOLコードをさかすべ(、MRコードを読み
とばすため、MOVER信号が発生した時には、ライン
カウンタ10−11にはカウント残りが発生する。この
カウント残りを全てカウントするだめに、V−DEC信
号を出しつづけても、MOVER信号のだめに、すでに
メモリアドレスカウンタ10−8はカウントを停止して
いるのでメモリアドレスカウンタ10−8の停止した時
点のカウント値のアドレスの画像データが繰返し伸長回
路10−6に取込まれることになシ、残りのラインは全
て伸長エラーラインとなってしまう。
By the way, if a decompression error occurs during the decompression operation as described above, the EOL detection circuit 1 is activated to recover the decompression error.
0-7 should increment the EOL code (to skip the MR code, when the MOVER signal is generated, a remaining count is generated in the line counters 10-11. In order to count all the remaining counts, V- Even if the DEC signal continues to be output, the memory address counter 10-8 has already stopped counting due to the failure of the MOVER signal, so the image data at the address corresponding to the count value at the time when the memory address counter 10-8 stopped is repeatedly stored in the decompression circuit. 10-6, all remaining lines become decompression error lines.

そこで、この状態を防ぐだめに、コントローラー10−
2は、■DECDEC信号ベルにしてラインカウンタ1
0−11からのカウントアツプを待っている間% MO
VER信号を定期的に調べて、V−DECがHレベルの
時にMOVERを検出しだら、直ちにV−DEC信号を
Lレベルにして、画像伸長動作を停止させて、余分な伸
長エラーラインのカウントをしないようにする。
Therefore, in order to prevent this situation, controller 10-
2 is ■DECDEC signal bell and line counter 1
% MO while waiting for count up from 0-11
Check the VER signal periodically, and if MOVER is detected when V-DEC is at H level, immediately set the V-DEC signal to L level, stop the image expansion operation, and count the extra expansion error lines. Try not to.

このように、メモリアドレスカウンタが、画像圧縮時の
最大アドレスに一致したことで、画像伸長動作を停止す
ることで、意図し々い余分な画像信号がプリンタ1o−
3に記録されることを防ぐことも可能と々る。
In this way, when the memory address counter matches the maximum address at the time of image compression, the image decompression operation is stopped, and unintentional extra image signals are sent to the printer 1o.
It is also possible to prevent it from being recorded in 3.

次に、伸長した画像信号の一部分をトリミングして出力
用紙の任意の箇所に出力する場合を説明する。
Next, a case will be described in which a portion of the expanded image signal is trimmed and outputted to an arbitrary location on the output paper.

第19図は、A4サイズの伸長画像UのS1点から、主
走査方向にH1ビット、副走査方向にV1ラインの点t
1を基準点として主走査サイズF■2ビット、副走査サ
イズv2ビットの画像Tをトリミングして、A4のコピ
ー用紙に、Vl、Hlの位置を変えずに出力する例であ
る。
FIG. 19 shows a point t from point S1 of an expanded image U of A4 size, H1 bit in the main scanning direction and V1 line in the sub-scanning direction.
This is an example in which an image T having a main scanning size F1 of 2 bits and a sub-scanning size V2 bits is trimmed using 1 as a reference point and outputted on A4 copy paper without changing the positions of Vl and Hl.

前述のように1ラインの伸長動作はプリンタからのPB
D信号によるLN−8T信号を同期信号として開始され
るが、第19図では、主走査アドレスカウンタ・デコー
ダ104−12からのHA D Rが4677になった
ところから1ラインの伸長動作が始まる。すなわちI−
(A D Rが4677でI−J −A RE AがH
レベルになるようにコンパレータ14−4に14467
7ヲセツトする。壕だ、A4巾4677ビツトで伸長を
終了するように、コンパレータ14−5には0をセット
して、14 A RE Aの長さを4677ビツトとす
る。また、伸長回路10−6により伸長された伸長画像
信号DVDOをダブルバッファメモリ10−15に書き
込むDADR,読み出すHADRが同じ動作をするよう
にDC5TART信号の出るタイミングを作るコンパレ
ータ14−8には4677をセットし、ディザカウンタ
10−10のカウンタ13−1.13−2のLD値も4
677をセットする。これにより、前述のようにUで圧
縮された画像信号がそのま寸伸長される。
As mentioned above, the expansion operation of one line is performed using the PB from the printer.
The operation is started using the LN-8T signal by the D signal as a synchronizing signal, and in FIG. 19, the expansion operation of one line starts when the HA D R from the main scanning address counter/decoder 104-12 becomes 4677. That is, I-
(ADR is 4677 and I-J-ARE A is H
14467 to comparator 14-4 so that the level is
Set 7. In order to finish the expansion at the A4 width of 4677 bits, comparator 14-5 is set to 0, and the length of 14 A RE A is set to 4677 bits. In addition, 4677 is installed in the comparator 14-8 that sets the output timing of the DC5TART signal so that the DADR that writes the expanded image signal DVD expanded by the expansion circuit 10-6 to the double buffer memory 10-15 and the HADR that reads it operate in the same manner. The LD value of counter 13-1.13-2 of dither counter 10-10 is also 4.
Set 677. As a result, the image signal compressed by U as described above is directly expanded.

コントローラー10−2は第20図に示すようにプリン
タ10−3にA4のコピー用紙レジスト給紙信号VSY
NCを出すと同時に副走査伸長区間信号V−DECを出
力する。これによりプリンタの紙送りと同時に画像伸長
出力が始まり、もしととでトリミングを行う必要がなけ
しば、■−DECをPvsYNcと同じ時間l]に渡っ
て出力せしめることにより、UのA4の伸長画像の全て
がA4のコピー用紙にそのまま出力される。ここで前述
の如くのトリミングを行なうべくコントローラー10−
2は%V1  ラインの画像信号を消去するために、V
−DEC信号を出力してからv1ラインの間はTRM信
号をLレベルに固定し、ダブルバッファメモリから読み
出し画像信号をゲー)10−27でLレベルに固定する
。このために、■1ラインヲカウント中のTRM信号を
出力するコンパレータ14−6にはI FFFH,コン
パレータ14−7には4677(1245I()をセッ
トすることにより、フリップフロップ1.4−12には
、リセットしかかから々いようにする。
As shown in FIG. 20, the controller 10-2 sends an A4 copy paper registration paper feed signal VSY to the printer 10-3.
At the same time as outputting NC, a sub-scanning expansion section signal V-DEC is outputted. As a result, the image expansion output starts at the same time as the printer feeds the paper, and if there is no need to perform trimming, by outputting ■-DEC for the same time as PvsYNc, the A4 size of U can be expanded. All images are output as is on A4 copy paper. Here, in order to perform the trimming as described above, the controller 10-
2 is %V1 In order to erase the image signal of the line, V
The TRM signal is fixed at the L level during the v1 line after outputting the -DEC signal, and the image signal read from the double buffer memory is fixed at the L level at 10-27. For this purpose, by setting IFFFH to the comparator 14-6 that outputs the TRM signal during one line count and 4677 (1245I()) to the comparator 14-7, , it takes only a reset.

■1ラインのカウントをライフカ6ンタ1〇−11でカ
ウントした後に、tl の位置から副走査中v2ライン
、主走査中H2ビットのT領域のトリミングを行う。そ
のために、ラインカウンタI O−11にv2ラインを
セットし、副走査V2ラインを計算するとともに、その
間の主走査トリミング領域のt点からH2ビット巾を表
わすTRM信号を発生させるべく、コンパレータ14−
6に(4677−Hl)をセットし、コンパレータ14
−7には(4677−(H1+H2))をセットする。
(2) After counting one line using life counters 10-11, trimming of the T area of the V2 line during sub-scanning and the H2 bit during main scanning is performed from the tl position. For this purpose, the line counter IO-11 is set to the v2 line, the sub-scanning V2 line is calculated, and the comparator 14-1 is set to the line counter IO-11 to calculate the sub-scanning V2 line.
(4677-Hl) to 6, comparator 14
-7 is set to (4677-(H1+H2)).

これにより、第19図のT RM (V2)を得る。As a result, TRM (V2) in FIG. 19 is obtained.

以上のよう々定数セットによりiz点からV2ラインの
間のT領域のトリミングが実現される。
By setting the constants as described above, trimming of the T area between the iz point and the V2 line is realized.

T領域の画像信号が全てプリンタに出力された時点で、
ラインカウンタto−iiからコントローラ10−2に
%V2 ラインのカウント終了信号が出力される。この
時点で圧縮画像メモリ10−5には、第19図の斜線で
示された部分の圧縮画像コードが読み出されずに残って
いるが、所望のT領域の画像出力はすでに完了している
ので、コントローラー10−2はこの斜線部の圧縮画像
コードの伸長を行う必要は々く、VDECDEC信号で
Lレベルにし、伸長動作を停止させる。VDECDEC
信号ベルになったため、EOL検出回路からのData
 END信号はLレベルになりこれ以降の■Rラインは
、プリンタに画像信号は白信号(Lレベル)となり、T
領域のトリミング出力が完了する。このように、余分々
圧縮画像コードを伸長しないようにすることにより、伸
長エラーの発生量が下がり、それにより伸長画像にエラ
ーが含まれることに起因するミスプリントの発生率が低
下し、コピー動作の信頼性が向上する。
When all the image signals in the T area are output to the printer,
A count end signal for the %V2 line is output from the line counter to-ii to the controller 10-2. At this point, the compressed image code of the shaded portion in FIG. 19 remains in the compressed image memory 10-5 without being read out, but since the image output of the desired T area has already been completed, The controller 10-2 often needs to decompress the compressed image code in the shaded area, so it sets the VDECDEC signal to L level and stops the decompression operation. VDECDEC
Data from the EOL detection circuit is
The END signal becomes L level, and the image signal for the subsequent ■R line becomes a white signal (L level) to the printer, and T
Region trimming output is completed. In this way, by not expanding the compressed image code excessively, the number of decompression errors is reduced, which reduces the incidence of misprints caused by errors in the decompressed image, and improves copy operation. reliability is improved.

次に以上の様にして第19図でトリミングした画像信号
Tを主走査方向に紙端よりH3画素の位置に移動してプ
リンタ10−3に出力する場合を第21図により説明す
る。
Next, the case where the image signal T trimmed as described above in FIG. 19 is moved to a position H3 pixels from the paper edge in the main scanning direction and output to the printer 10-3 will be described with reference to FIG.

この場合、伸長画像をダブルバッファメモリに書き込む
時に1ラインの伸長画像の移動を行い、ダブルバッファ
メモリから移動した画像を読み出す時に、所望のTの部
分をトリミングする。この伸長画像の移動及びトリミン
グは全て1、(A D Rを基準として行われる。すな
わち、第21図(a)においてI(A、DR(4677
−H,)からHA D R(4678(II+ + H
2) )のアドレス範囲で伸長回路10−6で伸長され
たTの部分が、DADRによりダブルバッファメモリに
書き込寸れ、第21図(1))において、ダブルバッフ
ァメモリからHA、 D Rにより読み出される時にH
3−H、ビットだけ移動されて、HADR(4677−
Ha)からHADR(4678−(H2十H3))の範
囲で読み出されることになる。この画像移動はD A、
 D Rのアドレス制御によって実行され、第21図(
a)でダブルバッファメモリに伸長画像のTの部分が書
き込まれる時(HADRが4677−I−T、の時)に
発生した画素を、Ha−Hlだけ移動した4677−H
aのアドレスにDADR,で書き込めばよい。すなわち
第21図(a)から明らかなように、HADR= 46
77におけるDADRのカウント開始値を主走査移動ビ
ット数I]3−H1により4677−(Ha−Hz)と
すればよい。このHaは画像移動方向が主走査の基準点
(HADR=4677 )から離れる場合には正の値と
々す、逆に近づく場合には負の値となる。
In this case, when writing the expanded image into the double buffer memory, the expanded image is moved by one line, and when the moved image is read out from the double buffer memory, the desired T portion is trimmed. The movement and trimming of this expanded image are all performed using 1, (ADR) as a reference. That is, in FIG.
-H,) to HA D R (4678 (II+ + H
2) The part of T expanded by the expansion circuit 10-6 in the address range of ) is written to the double buffer memory by DADR, and in (1)) of FIG. H when read
3-H, bits moved and HADR (4677-
The data will be read in the range from HA) to HADR (4678-(H2 + H3)). This image movement is DA,
It is executed by the address control of DR, and is executed as shown in FIG.
4677-H, which moves the pixels generated when the T part of the expanded image is written to the double buffer memory in a) (when HADR is 4677-IT) by Ha-Hl.
All you have to do is write to address a using DADR. That is, as is clear from FIG. 21(a), HADR=46
The count start value of DADR in 77 may be set to 4677-(Ha-Hz) by the number of main scanning movement bits I]3-H1. This Ha takes a positive value when the image movement direction moves away from the main scanning reference point (HADR=4677), and takes a negative value when it approaches.

ダブルバッファメモリから読み出された画像信号は、T
RM信号によってトリミングされるが、このTRM信号
も第21図(b)のように、移動量H3−H□を考慮し
て、HA D Rが4677−Haから4678−(H
2+N2)の間でHレベルになるように、コンパレータ
14−6には4677〜H3をセットシ、コンパレータ
14−7には4677−(H2+N2)をセットする。
The image signal read out from the double buffer memory is T
This TRM signal is also trimmed by the RM signal, but as shown in FIG. 21(b), considering the movement amount H3-H
2+N2), 4677 to H3 are set in the comparator 14-6, and 4677-(H2+N2) is set in the comparator 14-7.

次に、伸長した画像信号を出力用紙上の副走査方向(紙
送り方向)に移動する場合を第22図で説明する。
Next, a case in which the expanded image signal is moved in the sub-scanning direction (paper feeding direction) on the output paper will be explained with reference to FIG.

第22図(a)のような伸長画像Uの中のTの部分をト
リミングして出力用紙の副走査方向の任意の位置に出力
するのだが、Tの部分のトリミングのしかたや、主走査
方向の画像の移動は、前述したので、ここではコピー用
紙をレジスト給紙させるタイミングと、伸長画像Uの伸
長開始の副走査方向のタイミングについて述べる。
The part T in the expanded image U as shown in Fig. 22(a) is trimmed and output to an arbitrary position in the sub-scanning direction of the output paper. The movement of the image has been described above, so here we will discuss the timing of registration feeding of the copy paper and the timing of the start of expansion of the expanded image U in the sub-scanning direction.

第22図(b)は、コピー用紙の副走査方向(紙送り方
向)の後方に伸長画像Uを移動するとともにトリミング
を行い、紙端から■3ラインのところに、トリミング画
像のtl  点を記録する例である。
In Fig. 22(b), the expanded image U is moved backward in the sub-scanning direction (paper feeding direction) of the copy paper and trimmed, and the tl point of the trimmed image is recorded at line ■3 from the edge of the paper. This is an example.

コピー用紙と、伸長画像Uの副走査方向のずれは、■2
−■1ラインであるので、コントローラー10−2は、
プリンタ10−3に対するコピー用紙のレジスト給紙信
号P−VSYNCを出力した後、ラインカウンタ10−
11でV3−■1ラインを計数した後に副走査伸長区間
信号VDECをHレベルにし、伸長画像Uの伸長動作を
開始する。ここでTRM信号でT領域の画像を出力する
のは、V−DEC信号をI]レベルにしてから、さらに
■1 ライン経過した時である。そして、T領域の副走
査分の■2ラインをラインカウンタで計数したところで
V−DEC信号をLレベルにして、伸長動作を終了する
The misalignment between the copy paper and the expanded image U in the sub-scanning direction is ■2
-■ Since it is one line, the controller 10-2 is
After outputting the copy paper registration paper feed signal P-VSYNC to the printer 10-3, the line counter 10-
After counting V3-1 line in step 11, the sub-scanning expansion section signal VDEC is set to H level, and the expansion operation of the expanded image U is started. Here, the image of the T area is outputted using the TRM signal when one additional line has elapsed after the V-DEC signal is set to the I] level. Then, when the line counter counts 2 lines corresponding to the sub-scanning of the T area, the V-DEC signal is set to L level, and the expansion operation is completed.

第22図(りば、コピー用紙をレジスト給紙する前に伸
長画像Uを伸長行い、紙端から■3ラインのところに、
トリミング画像のP点を出力する例であり、ti 点が
コピー用紙上に来る場合は■3は正の値、コピー用紙外
に出る場合は負の値をとる。
Figure 22 (At the pick-up point, before register-feeding the copy paper, the expanded image U is expanded, and at line ■3 from the edge of the paper,
This is an example of outputting point P of a trimmed image, and when point ti is on the copy paper, ■3 takes a positive value, and when it goes outside the copy paper, it takes a negative value.

第22図(C)では、プリンタに対するレジスト給紙信
号PVSYNCを出力する前にvl−73247分の画
像伸長を前もってやっておく必要がある。そこでコント
ローラー10−2はラインカウンタ10−11にて、■
1−v3ライン分の画像伸長を行ったら、−担VDEC
信号をLレベルにして画像伸長動作を中断してPVSY
NCを出力するタイミングを待つ。PVSYNCを出力
するタイミングで再度V−DEC信号をHレベルにして
、中断していた画像伸張動作を継続させ、V、−732
47分の画像の移動が行われる。
In FIG. 22(C), it is necessary to perform image expansion for vl-73247 in advance before outputting the registration paper feed signal PVSYNC to the printer. Therefore, the controller 10-2 uses the line counter 10-11 to
After decompressing the image for 1-v3 lines, -VDEC
The signal is set to L level, the image expansion operation is interrupted, and the PVSY
Wait for the timing to output NC. At the timing of outputting PVSYNC, the V-DEC signal is set to H level again to continue the interrupted image expansion operation, and V, -732
47 minutes of image movement is performed.

T領域のトリミングは前述のとおりであるが、もしP点
が紙端から■3ラインはみ出る場合には、コピー用紙に
出力されるT領域はその分生なくなる。PVSYNC信
号を出力する前に、Vl−V3ラインの画像伸長を行い
、−担V−DEC信号をLレベルに戻しているが、これ
はPVSYNCとしてリーダーからのRvSYNCを用
いる場合を考慮している。す々わち、RMUで伸長した
画像と、リーダーからの画像をオーバーレイしてプリン
タに出力する場合、2つの画像のオーバレイ位置を正確
に合わせるためには、共通のVSYNC信号を用いなけ
れば々らない。しかし、RMUからリーダーにVSYN
Cを知らせる手段がないので、PVSYNCfd、IJ
−グーからのVsYNc (R,VSYNC)を用いな
ければ々らない。リーダーと非同期のコントローラー1
0−2にとっては、RvsyNCがいつ入力されるかの
詳しいタイミングを取ることは困難である。それでコン
トローラー10−2は、IJ−グー力ら(7)VSYN
C(RVSYNC)を入力するより充分前に、V、−V
3ラインの画像の伸長を終えてコピー用紙に出力される
伸長画像のMRコードを圧縮画像メモリから頭出しして
おき、RvSYNCに合わせて再度伸長動作を開始させ
々ければならない。すaわち、RvSYNCを待ってい
る間v−DECをLレベルにして、伸長動作を中断して
いるのである。
Trimming of the T area is as described above, but if point P protrudes from the edge of the paper by 3 lines, the T area to be output on the copy paper will not be produced accordingly. Before outputting the PVSYNC signal, the image of the Vl-V3 line is expanded and the -carrier V-DEC signal is returned to the L level, but this is done in consideration of the case where RvSYNC from the reader is used as the PVSYNC. In other words, when overlaying an image decompressed by RMU with an image from a reader and outputting it to a printer, a common VSYNC signal must be used in order to accurately align the overlay position of the two images. do not have. However, VSYN from RMU to leader
Since there is no way to notify C, PVSYNCfd, IJ
- It is necessary to use VsYNc (R, VSYNC) from Goo. Reader and asynchronous controller 1
For 0-2, it is difficult to determine the detailed timing of when RvsyNC is input. Therefore, the controller 10-2 controls IJ-Guru et al. (7) VSYN
Sufficiently before inputting C (RVSYNC), V, -V
After the three-line image has been expanded, the MR code of the expanded image to be output on copy paper must be located at the beginning of the compressed image memory, and the expansion operation must be restarted in time with RvSYNC. That is, while waiting for RvSYNC, v-DEC is set to L level and the decompression operation is interrupted.

尚、オーバレイ動作を行々わない場合にけり−ダCの同
期を取る必要が々く、PVSYNC信号の出力制御をV
−DEC信号の出力制御と同様にラインカウンタ10−
11で行うこともできる。従って、VDECDEC信号
Lレベルに落とさずに、PVSYNCを即に出力し、伸
長動作が中断せずに実行可能となる。
Note that when overlay operation is not performed, it is necessary to synchronize the breaker C, so the output control of the PVSYNC signal is
-Line counter 10 as well as output control of DEC signal-
It can also be done with 11. Therefore, PVSYNC is immediately output without lowering the VDECDEC signal to the L level, and the decompression operation can be executed without interruption.

(4)  ディザ画像伸長の機能 (2)のディザ圧縮による圧縮画像をそのまま伸長処理
しただけでは、ディザ圧縮時のディザカウンタ10−1
0による主走査画像の並らび替えにより、それをそのま
ま伸長したのでは原稿画像とは異るコピー出力と々って
し捷う。そこでディザ画像伸長処理では(3)の2値伸
長処理と同一のプロセスにより伸長回路10−6から得
られるディザ並らび替えをされた伸長画像信号DVDO
をダブルバッファメモリ10−15に書き込む時に、も
とのリーダーからのディザ画像の順に並らび替え直す。
(4) Function of dithered image expansion If the compressed image by dither compression in (2) is simply expanded, the dither counter 10-1 at the time of dither compression
If the main scanning image is rearranged by 0 and expanded as it is, the copy output will be different from the original image. Therefore, in the dither image expansion process, the dither rearranged expanded image signal DVDO obtained from the expansion circuit 10-6 is processed in the same process as the binary expansion process in (3).
When writing the images into the double buffer memory 10-15, the images are rearranged in the order of the dithered images from the original reader.

この並らび替えはダブルバッファメモリ1〇−15の伸
長時の書き込みアドレスカウンタDADRの発生順を変
えることで実現される。
This rearrangement is realized by changing the order in which the write address counters DADR are generated when the double buffer memories 10-15 are expanded.

すなわち、第16図の20−3の如く並らび替えられた
画像を(16−2)の順になるよう、8ビット間隔に並
らび替え直すのであるが、これは第11図示のディザカ
ウンタのDi ther 信号をHレベルとして、ディ
ザ圧縮時と同様にカウンタ1.3−1.13−2を動作
させることに “なる。
In other words, the images that have been rearranged as shown in 20-3 in Figure 16 are rearranged at 8-bit intervals so that they are in the order (16-2), but this is done using the dither counter shown in Figure 11. The Dither signal is set to H level, and the counters 1.3-1.13-2 are operated in the same way as during dither compression.

この場合、カウンタ13−1.13−2にコントローラ
10−2が設定するカウンタロード値は伸長画像の移動
によって、2値画像伸長処理と同様に、任意の値を設定
できるが、13−1のカウンタのロード値は、ディザ圧
縮時に用いた値と同じ値にし々ければならない。そうし
ないと、ダブルバッファメモリから読み出された画像信
号のディザパターン1ブロツク内の画素の並らびが狂う
ことになる。またコンパレータ13−3には、ディザ圧
縮処理時に用いたブロック数Nを用いて、13−2のカ
ウンタのロード値から(N−1)を引いた値をセットす
る。
In this case, the counter load value set by the controller 10-2 in the counter 13-1. The load value of the counter must be the same as the value used during dither compression. Otherwise, the arrangement of pixels within one block of the dither pattern of the image signal read out from the double buffer memory will be out of order. Further, the comparator 13-3 is set to a value obtained by subtracting (N-1) from the load value of the counter 13-2 using the number N of blocks used during the dither compression processing.

以上説明した本システムの構成における、リーダ、RM
U間及びRMU・プリンタ間のシリアル通信と、画像処
理動作の詳細な手順を以下に説明する。尚、以下の説明
に用いるフローチャートに示されたプログラムはリーダ
、プリンタ及びn、 M Uの制御部を構成するマイク
ロコンピュータのメモリROMに予しめ格納され、これ
を適宜読出すことにより制御動作するものである。
In the configuration of this system explained above, the reader, RM
The detailed procedures of serial communication between the U and between the RMU and the printer and the image processing operation will be explained below. Note that the programs shown in the flowcharts used in the following explanation are stored in advance in the memory ROM of the microcomputer that constitutes the control unit of the reader, printer, n, and MU, and are controlled by reading the programs as appropriate. It is.

第6図に示したシリアル通信は第8図の1)HvIOE
 Connect+DgvIcE、 POWERR+e
ady。
The serial communication shown in Figure 6 is 1) HvIOE in Figure 8.
Connect+DgvIcE, POWERR+e
ady.

Controller Power Ready信号に
よってRMUを含む全ユニットがシリアル通信可能にな
ったときに、リーダ側ユニットからプリンタ側ユニツ)
 (RMUを含む)に命令(以下コマンドと記す)を出
力することで開始される。コマンドがプリンタに到達し
たならばプリンタはコマンドに対する応答(以下ステー
タスと記す)をリーダ側ユニット(RMUを含む)に出
力する。RMUは基本的にはリーダからコマンドを入力
したならば、同一コマンドをプリンタへ出力し、プリン
タからステータスを入力したならば同一ステータスをリ
ーダへ出力する。
When all units including the RMU become capable of serial communication due to the Controller Power Ready signal, the printer side unit (from the reader side unit)
It is started by outputting an instruction (hereinafter referred to as a command) to (including the RMU). When the command reaches the printer, the printer outputs a response to the command (hereinafter referred to as status) to the reader side unit (including the RMU). Basically, when a command is input from the reader, the RMU outputs the same command to the printer, and when a status is input from the printer, the same status is output to the reader.

リーダ側ユニットとプリンタ側ユニット間のシリアル通
信は8ビツト構成のコマンドとステータスのやりとりに
よって行なわれ、このとき一つのコマンドに対して必ず
一つのステータスが返され、ステータスはコマンドに先
じて返されることはない。
Serial communication between the reader side unit and printer side unit is performed by exchanging 8-bit commands and statuses, and at this time, one status is always returned in response to one command, and the status is returned before the command. Never.

第23図ごRMUのコマンドに対する処理を示す。FIG. 23 shows processing for RMU commands.

RMUはリーダからコマンドを入力する。このコマンド
が後述第1表の100−7から100−12のRMUモ
ード指示コマンド、RMUメモリ指示コマンド、RMU
 )リミング指示1コマンド、RMU)リミング指示2
コマンド。
The RMU receives commands from the reader. This command is the RMU mode instruction command, RMU memory instruction command, and RMU
) Rimming instruction 1 command, RMU) Rimming instruction 2
command.

RMU )リミング指示3コマンド、R,MU)リミン
グ指示4コマンド、RMU )リミング指示5コマン)
 、RMU )リミング指示6コマンド(これら8コマ
ンドをまとめてRMU指示コマンドという。)のいずれ
かである場合には(S−1,00−1,)、それぞれの
コマンド1バイトについて後述第10表金体ステータス
をリーダに返送する(S−1,0O−5)。R,MUは
入力したコマンドがRMU指示コマンドのいずれかでな
い場合には後述第1表100−1のプリンタスタートコ
マンドであるかの判定を行う(S−100−2)。
RMU) Rimming instruction 3 commands, R,MU) Rimming instruction 4 commands, RMU) Rimming instruction 5 commands)
, RMU) If it is any of the 6 rimming instruction commands (these 8 commands are collectively referred to as RMU instruction commands) (S-1, 00-1,), the 10th table below for 1 byte of each command. The body status is returned to the reader (S-1, 0O-5). If the input command is not one of the RMU instruction commands, R, MU determines whether it is a printer start command as shown in Table 1 100-1 (described later) (S-100-2).

プリンタスタートコマンドはシステム[RMUが接続さ
れている場合には前述RMU指示コマンドがリーダから
出力後、リーダから出力されるので、この時点で後述R
MUモードはすでに決定している。このRMUモードが
後述の“インプットモードllの場合には、プリンタは
コピー動作を行なわないのでこのプリンタスタートコマ
ンドをRMUはプリンタへ出力せずリーダに第10表の
全体ステータスを出力する(S−100−3、S−10
0−5)。またRMUの動作上必要な情報を含むコマン
ド例えば紙サイズ指示コマンドはコマンドの内容を記憶
し、そのあとでプリンタに出力する(S−100−4)
The printer start command is issued by the system [If RMU is connected, the reader outputs the above-mentioned RMU instruction command after the reader outputs it, so at this point,
The MU mode has already been determined. If this RMU mode is "input mode II" described later, the printer does not perform a copy operation, so the RMU does not output this printer start command to the printer, but outputs the overall status shown in Table 10 to the reader (S-100 -3, S-10
0-5). In addition, for commands that include information necessary for RMU operation, such as paper size instruction commands, the contents of the commands are memorized and then output to the printer (S-100-4)
.

続いて第24図を用いてRM Uのステータスに対する
処理を説明する。プリンタはR,MUよりリーダから出
力されたコマンドを入力すると、一定時間内に入力した
コマンドに対してステータスをR,MUへ出力する。
Next, processing for the RMU status will be explained using FIG. 24. When the printer inputs a command output from the reader through R and MU, it outputs the status to R and MU for the command input within a certain period of time.

RMUはプリンタからステータスを入力するとこのステ
ータスがどのコマンドに対してのものかを判定し、第9
表の1.08−7のアプリケーションステータス要求コ
マンドに対しての第15表のアプリケーションステータ
スであるかどうかをチェックする(S−1,0l−1)
。入力したステータスがアプリケーションステータスで
ある場合には、RMU接続の情報を付加後(S−101
−2)、リーダへアプリケーションステータスとして出
力する。
When the RMU inputs the status from the printer, it determines which command this status corresponds to, and
Check whether the application status is in Table 15 for the application status request command in Table 1.08-7 (S-1, 0l-1)
. If the input status is an application status, after adding RMU connection information (S-101
-2) Output to the reader as an application status.

また、同様にプリンタからのステータスが第11表エラ
ー発生ユニットステータスであるかどうか判定を行い(
S−101−3)、後述圧縮失敗フラグがセットされて
いる場合には圧縮失敗の情報(RMUメモリオーバーフ
ロー)を付加したエラー発生ユニットステータスをリー
ダに返し、圧縮失敗フラグがリセットされている場合に
はプリンタからのエラー発生ユニットステータスをその
ままリーダに返す。またプリンタからのステータスが第
10表の全体ステータスまたは第16表のミスプリント
詳細ステータスであるかどうか判定を行い(S−101
−6,5−101−9)、後述伸長エラーフラグがセッ
トされている場合には伸長エラーの情報を全体ステータ
スまだはミスプリント詳細ステータスに付加しくS−1
01−8,S−101−11)、伸長エラーフラグがリ
セットされている場合にはプリンタからの全体ステータ
スまたはミスプリント詳細ステータスをそのままリーダ
へ返す。
Similarly, it is determined whether the status from the printer is the error occurrence unit status in Table 11 (
S-101-3), if the compression failure flag described below is set, the error unit status with compression failure information (RMU memory overflow) is returned to the reader, and if the compression failure flag is reset, returns the error unit status from the printer to the reader as is. It is also determined whether the status from the printer is the overall status in Table 10 or the misprint detailed status in Table 16 (S-101
-6, 5-101-9), if the decompression error flag described below is set, decompression error information should be added to the overall status or misprint detailed status S-1
01-8, S-101-11), if the decompression error flag is reset, the overall status or misprint detailed status from the printer is returned as is to the reader.

RMUはリーダからのコマンド入力し対して、プリンタ
へのコマンド転送またはリーダへの全体ステータスの返
送を行い、プリンタからのステータス入力に対してはリ
ーダへのステータス転送またはステータスに情報付加加
工後、転送することを交互に繰り返す。
In response to a command input from the reader, the RMU transfers the command to the printer or returns the overall status to the reader, and in response to the status input from the printer, it transfers the status to the reader or adds information to the status and then transfers it. Repeat what you do alternately.

このようにR,MUが接続されたシステムにおいて、R
MUは必要な情報のみ取り込みを行い、その他の情報は
素通しするという通信を行う。
In a system where R and MU are connected in this way, R
The MU communicates by capturing only necessary information and passing other information through.

このことにより情報のやりとりの時間短縮や通信の監視
をリーダが行うことになり、通信プロトコルの簡略化を
計ることができる。
This allows the leader to shorten the time for exchanging information and monitor communication, making it possible to simplify the communication protocol.

以下第23図、第24図に示しだリーダ、RMU。The reader and RMU are shown in FIGS. 23 and 24 below.

プリンタ間でのシリアル通信に用いられるコマンドまだ
はステータスの詳細な説明を行う。
This section provides a detailed explanation of the command statuses used for serial communication between printers.

第1表にRMUまたはプリンタに実行をうながす実行コ
マンドを示す。この実行コマンドがリーダから出力され
た場合、RMUまたはプリンタは第10表に示した全体
ステータスを返送する。第1表の100−1はプリンタ
にコピー動作開始を要求するプリンタ・スタートコマン
ド。
Table 1 shows execution commands that prompt the RMU or printer to execute. When this execution command is output from the reader, the RMU or printer returns the overall status shown in Table 10. 100-1 in Table 1 is a printer start command that requests the printer to start copying.

1’00−2はプリンタにコピー動作停止を要求するプ
リンタストップコマンド100−3 、100−4は給
紙カセットを指定する給紙指示コマンド100−5は紙
サイズを指示する紙サイズ指示コマンドで、このコマン
ドの2バイト目(第2表)にはビット1からビット6を
用いてA4.A3゜B4 、B5 、A4−R5B5−
R等の紙サイズをコード化し格納している。100−6
は枚数指示コマンドで、このコマンドの2バイト目には
ビット1からビット6までの6ビツトを用いて最大64
枚のコピ一枚数の設定ができる。10〇−7はRMU指
示コマンドの1つであるRMUモード指示コマンドで2
バイト目にRMUモードの情報を第5表のように格納し
ている。10〇−8はRMUのメモリ領域の指示を行う
RMUメモリ指示コマンドで2バイト目(第6表)に指
示するメモリ領域の内容を格納し、対応する1ケ所のメ
モリ領域のビットのみセット(” 1 ” )される。
1'00-2 is a printer stop command 100-3 that requests the printer to stop copying, 100-4 is a paper feed instruction command that specifies a paper feed cassette, and 100-5 is a paper size instruction command that specifies the paper size. The second byte of this command (Table 2) uses bits 1 to 6 to A4. A3゜B4, B5, A4-R5B5-
Paper sizes such as R are encoded and stored. 100-6
is a number of sheets instruction command, and the second byte of this command uses 6 bits from bit 1 to bit 6 to specify a maximum of 64 sheets.
You can set the number of copies per sheet. 100-7 is the RMU mode instruction command, which is one of the RMU instruction commands.
Information on the RMU mode is stored in the byte as shown in Table 5. 100-8 is an RMU memory instruction command that specifies the memory area of the RMU, and stores the contents of the specified memory area in the second byte (Table 6), and sets only one bit of the corresponding memory area (" 1”).

1.00−9,100−10,100−11 。1.00-9, 100-10, 100-11.

100−12,100−13,100−14はRMU 
)リミング指示コマンドで2バイト目(第7表)。
100-12, 100-13, 100-14 are RMU
) 2nd byte of rimming instruction command (Table 7).

3バイト目(第8表)にトリミング量をミリメートル単
位で0ミリから512ミリまで表現できる。
The trimming amount can be expressed in millimeters from 0 mm to 512 mm in the third byte (Table 8).

第9表にRMUまたはプリンタの情報を要求するステー
タス要求コマンドを示す。このコマンドをプリンタが受
信したならば第10表から第16表にあるステータスを
RMUを通じてリーグへ返送する。このときRMUは後
述メモリオーバフローや伸長エラーの情報を付加してリ
ーグへ返送することもある。
Table 9 shows status request commands that request RMU or printer information. When the printer receives this command, it returns the statuses shown in Tables 10 to 16 to the league via the RMU. At this time, the RMU may add information about memory overflow or decompression error, which will be described later, and send it back to the league.

以下順に要10表から第16表について説明する。第1
0表は全体ステータスで主にプリンタやRMUの大まか
な状態についての情報を格納している。ビット5はプリ
ンタが紙搬送中であればセラ) (” 1°゛)される
。同様にビット4はミスプリントがあったとき、ビット
3はウェイト中、ビット1はオペレータコールエラー、
サービスマンコールエラーがあったときにそれぞれセッ
トされる。第11表のエラー発生ユニットステータスは
どのユニットにエラーが発生したかの情報を格納し、第
12表のオペレータコールエラーステータス、第13表
のサービスコールエラーステータスはエラーの具体的内
容の情報、同様に第14表のカセット紙ナイズステータ
スはA4.B5.B4等の紙サイズの情報、第15表の
アプリケーションステータスはシステムにどのようなユ
ニットが接続されているかの情報、第16表のミスプリ
ント詳細ステータスはミスプリントについての情報がそ
れぞれ格納されている。
Below, Tables 10 to 16 will be explained in order. 1st
The 0 table is the overall status and mainly stores information about the general status of the printer and RMU. Bit 5 is set when the printer is transporting paper ("1°゛). Similarly, bit 4 is set when there is a misprint, bit 3 is set to wait, bit 1 is set to operator call error,
Each is set when there is a serviceman call error. The error occurrence unit status in Table 11 stores information on which unit an error has occurred, and the operator call error status in Table 12 and the service call error status in Table 13 contain information on the specific content of the error. The cassette paper size status in Table 14 is A4. B5. Information on the paper size such as B4, application status in Table 15 stores information on what kind of unit is connected to the system, and misprint detailed status in Table 16 stores information on misprints.

これらのステータスをリーグは集めることにより、シス
テム全体の状況エラー発生の原因を知ることができ、シ
ステムの管理を容易にしている。
By collecting these statuses, the league can learn the cause of errors in the overall system status, making system management easier.

前述したコマンド、ステータスによるコピーシーケンス
実行中でないシリアル通信について第25図の70チヤ
ートを用いて説明する。
Serial communication when the copy sequence is not being executed according to the command and status described above will be explained using chart 70 in FIG. 25.

リーグは第9表の108−7のアプリケーションステニ
タス要求コマンドの出力による第15表アプリケーショ
ンステータスによりRMU接続の情報を得る(S−10
2−1)。また第9表の108−5の下カセツト紙サイ
ズ要求コマンド、第9表の108−6の上カセツト紙サ
イズ要求コマンド出力による第14表カセット紙サイズ
ステータスによりプリンタの上、下カセットの紙サイズ
の情報を得る(S−102−2)。このあと第9表の1
08−1の全体ステータス要求コマンド第9表の108
−2のエラー発生ユニットステータス要求コマンド出力
による第10表の全体ステータス、第11表エラー発生
ユニットステータスによりプリンタ、RMUでエラーが
あるかどうかの情報を得る(S−102−3,S−40
2−4)。このあとでエラーがあるかどうかのチェック
をする(S−102−5)。このときエラーがある場合
にはもつと詳しい情報を得るため第108−3表、tベ
レータコールエラーステータス要求コマンY、第108
−4表サービスコールエラーステータス要求コマンドを
出力し、それぞれのステータス入力によりエラーの詳細
な情報を得て(S−102−6、S−102−7)、必
要な情報例えば紙無、RMUメモリオーバフローがある
ことをオペレータに知らせることができる。
The league obtains RMU connection information from the application status in Table 15, which is output from the application status request command 108-7 in Table 9 (S-10
2-1). In addition, the paper size of the upper and lower cassettes of the printer can be determined by the cassette paper size status in Table 14, which is based on the output of the lower cassette paper size request command in 108-5 in Table 9 and the upper cassette paper size request command in 108-6 in Table 9. Obtain information (S-102-2). After this, 1 of Table 9
08-1 overall status request command 108 in Table 9
Obtain information on whether there is an error in the printer or RMU by outputting the error occurrence unit status request command in Table 10 and the error occurrence unit status in Table 11 (S-102-3, S-40
2-4). After this, it is checked whether there is an error (S-102-5). If there is an error at this time, please refer to Table 108-3, t Bellator Call Error Status Request Command Y, and Chapter 108 to obtain more detailed information.
- Output the service call error status request command in table 4, obtain detailed error information by inputting each status (S-102-6, S-102-7), and obtain necessary information such as paper out, RMU memory overflow. It is possible to notify the operator that there is a

エラーがなかった場合にはコピースタートキーが押され
たかどうかをチェック(S−102−8)し、押された
場合にはコピー実行中のシリアル通信(表116)を行
う。コピースタートキーが押されていない場合はコピー
キーが押されるまで説明した動作を繰り返す。
If there is no error, it is checked whether the copy start key has been pressed (S-102-8), and if it has been pressed, serial communication is performed during copy execution (Table 116). If the copy start key is not pressed, the described operation is repeated until the copy key is pressed.

コピー動作中のシリアル通信、各ユニットノ動作、信号
について第17表を用いて説明する。
Serial communication, operation of each unit, and signals during the copy operation will be explained using Table 17.

リーグにおいて紙サイズ選択(A−■)、コピ一枚数設
定(八−■)9画像読取モード(A−■)、RMUモー
ド、トリミングデータ、RMUメモリ指示等のRMU使
用条件(八−■)がオペレータによりリーグの操作部か
ら入力されてコピーキーが押下(八−■)されると、リ
ーグはシリアル通信においてRMU指示コマンド(R,
M U モー t’ 指示コマンド、RMUメモリ指示
コマンドRMU)リミング指示コマンド)(B−■)を
出力する。RMUはRMU指示コマンドを入力すると第
10図セレクタ1.セレクタ2.セレクタ3.セレクタ
4.セレクタ5゜ビデオセレクタ等のセレクタ設定を行
う(C−■)。リーグはRMU指示コマンドに続いて、
枚数指示コマンド(B−■)、上下給紙コマン1’ (
B 7■)2紙サイズ指示コマンド(B−■)を出力す
る。RMUは紙サイズ指示コマンドを人カスる(C−■
)と第10図コンパレータ。
In the league, RMU usage conditions (8-■) such as paper size selection (A-■), copy number setting (8-■), 9 image reading mode (A-■), RMU mode, trimming data, and RMU memory instruction are When the operator inputs an input from the league's operation panel and presses the copy key (8-■), the league sends an RMU instruction command (R,
MUMO t' instruction command, RMU memory instruction command (RMU) rimming instruction command) (B-■) is output. When the RMU inputs the RMU instruction command, the RMU selector 1 in FIG. Selector 2. Selector 3. Selector 4. Selector 5° Perform selector settings such as the video selector (C-■). Following the RMU instruction command, the league
Number of sheets command (B-■), upper/lower paper feed command 1' (
B7■) Outputs the 2 paper size instruction command (B-■). RMU manually edits the paper size instruction command (C-■
) and Figure 10 comparator.

ディザカウンタ主走査カウンタ等の設定を行う(C−■
)。RMUモードが“メモリインプットモード゛である
場合にはプリンタへプリンタスタートコマンドをRMU
は流していないのでプリンタは出力用紙可能信号(以下
PREQと略す)をRMUに対して出力しないのでRM
Uはプリンタの代りにPREQをリーダへ出カスる(B
−■)。RMU使用モードがメモリインプットモードで
ないときはプリンタへプリンタスタートコマンドが到達
し、プリンタは給紙可能状態になったときにPREQを
RMUに対して出力しくD−■)、RMUはPREQを
リーダに対して出力する(B−■)。リーダはRMUか
ら(プリンタから)のPREQを入力すると対応して出
力用紙給紙信号(以下PRINTと略す)をRMUへ出
力する。(B−■)。
Setting the dither counter, main scanning counter, etc. (C-■
). If the RMU mode is “memory input mode”, the RMU sends a printer start command to the printer.
RM is not flowing, so the printer does not output an output paper ready signal (hereinafter abbreviated as PREQ) to the RMU.
U sends PREQ to the reader instead of the printer (B
−■). When the RMU usage mode is not memory input mode, the printer start command reaches the printer, and the printer outputs PREQ to the RMU when it becomes ready to feed paper (D-■), and the RMU sends PREQ to the reader. and output it (B-■). When the reader receives PREQ from the RMU (from the printer), it outputs an output paper feed signal (hereinafter abbreviated as PRINT) to the RMU. (B-■).

RMUモードが“メモリインプットモード°であるとき
はPRINTをプリンタに出力せず(D−■)あたかも
プリンタがPR,INTを入力しそれに対して画像要求
信号(以下VSREQ)を出力したかのようにRMUが
VSREQをリーダに対して出力してやる(B−■)。
When the RMU mode is "memory input mode°", PRINT is not output to the printer (D-■), as if the printer had input PR and INT and outputted an image request signal (hereinafter referred to as VSREQ) in response. The RMU outputs VSREQ to the reader (B-■).

RMUからのVSREQをリーダが入力すると画像出力
するために、VSYNCを出力(B−■)する。リーダ
はコピー動作中に全体ステータス要求コマンド、エラー
発生ユニット要求コマンドを一定時間ごとに出力し、エ
ラーのチェックやRMUのメモリオーバーフロー等を常
にチェックしている(B−[相])。枚数管理はリーダ
が行っているのでリーダからプリンタストップコマンド
を入力したときにRMUはモードリセットを(C−■)
行い、コピーが終了する。
When the reader inputs VSREQ from RMU, it outputs VSYNC (B-■) to output an image. The reader outputs an overall status request command and an error occurrence unit request command at regular intervals during the copy operation, and constantly checks for errors, RMU memory overflow, etc. (B-[phase]). The number of sheets is managed by the reader, so when a printer stop command is input from the reader, the RMU resets the mode (C-■)
and copying is completed.

RMUはリーダ10−2からのRMU指示コマンドによ
り4つの画像入出力モードに分類される。
The RMU is classified into four image input/output modes by RMU instruction commands from the reader 10-2.

1つ目は「メモリパスモード」と呼ばれるモードであり
、RMUはリーダ10−1から入力される3値を表わす
2本の画像信号RVDAと11、VDBをそのままプリ
ンタ10−3に出力し、リーダ10−1とプリンタ10
−3が直に接続されているように動作する。したがって
このモードにおいてRMUはビデオインターフェースを
通じてリーダ10−1から入力される信号はそのままプ
リンタ10−3に出力し、プリンタ10−3から入力さ
れる信号はそのままリーダ10−1に出力する。
The first is a mode called "memory path mode", in which the RMU outputs two image signals RVDA, 11 and VDB representing three values input from the reader 10-1 as they are to the printer 10-3, and the reader 10-1 and printer 10
-3 operates as if it were directly connected. Therefore, in this mode, the RMU outputs signals input from the reader 10-1 through the video interface to the printer 10-3 as they are, and outputs signals input from the printer 10-3 as they are to the reader 10-1.

2つ目は「メモリハイスビードモード」と呼ばれるモー
ドでありRMUはリーダ10−1からの画像信号RV’
DAを一担、圧縮画像メモリに圧縮記憶し、その後連続
してその圧縮画像データを読み出し、プリンタに出力す
る。
The second mode is called "memory high speed mode", and the RMU receives the image signal RV' from the reader 10-1.
The DA is compressed and stored in a compressed image memory, and then the compressed image data is continuously read out and output to a printer.

すなわち機械的な往復運動を必要とするり−ダ10−1
の原稿スキャンによるコピーは一回ですみ、2枚目以降
のコピーは機械的な往復運動をともなわないでRMUの
圧縮画像メモリに記憶されている圧縮画像データを繰り
返しプリンタ10−3に伸長出力して得られるため大量
コピーの高速処理が可能となる。
In other words, the rider 10-1 requires mechanical reciprocating motion.
Copying by scanning the original is only required once, and the second and subsequent copies do not require mechanical reciprocating movement, but the compressed image data stored in the compressed image memory of the RMU is repeatedly decompressed and output to the printer 10-3. This enables high-speed processing of large-volume copies.

3つ目は「メモリインプットモード」と呼ばれるモード
であり、プリンタ10−3を動作させることなく、RM
Uはリーダ10−1から入力される画像信号を圧縮処理
し、圧縮画像メモリに記憶する。
The third mode is called "memory input mode," which allows the RM to be input without operating the printer 10-3.
U compresses the image signal input from the reader 10-1 and stores it in a compressed image memory.

4つ目は「メモリオーバーレイモード」ト呼ばれるモー
ドであり、RMUは圧縮画像メモリに記憶されている圧
縮画像データを伸長処理すると同時にリーダから入力さ
れる画像信号と合成してプリンタ10−2に出力する。
The fourth mode is called "memory overlay mode", in which the RMU decompresses the compressed image data stored in the compressed image memory, combines it with the image signal input from the reader, and outputs it to the printer 10-2. do.

この機能によりリーダ10−1で読み取った原稿とRM
Uのメモリに記憶されている画像のオーバーレイ処理さ
れたコピーが得られる。
With this function, the original read by reader 10-1 and the RM
An overlaid copy of the image stored in U's memory is obtained.

′“メモリハイスピードモード゛はRM U 内部で3
つのモード“リテンションモード、′アウトプットモー
ド“、“スルーアウトモード゛に区別される。“′リテ
ンションモード゛は“′メモリハイスピードの1枚目で
原稿からの画像情報(信号)をメモリに圧縮しながらプ
リンタへ素通しをするものである。“′リテンションモ
ード゛の実行によってメモリへの圧縮の成功。
``Memory high speed mode'' is set to 3 inside RMU.
There are three modes: ``retention mode'', ``output mode'', and ``through-out mode''. The data can be passed through to the printer while the data is being compressed into memory successfully by executing the ``retention mode''.

不成功(R,MUメモリオーバフロー)が判断できる。Failure (R, MU memory overflow) can be determined.

リーダはコピー動作中のエラー発生ユニット要求コマン
ドによりメモリへの圧縮の成功。
The reader successfully compressed the memory into memory due to the error unit request command during the copy operation.

不成功の情報(RMUメモリオーバフロー)を得ること
ができ、メモリへの圧縮が成功した場合、次のコピー(
2枚目以降)からメモリからの伸長画像により像形成(
コピー)ができるのでリーダは原稿スキャンを停止する
。RMUは次のコピーからメモリの伸長ができるように
セレクタの再設定を行う。例えば第10図のビデオセレ
クタ10−23はRMUのメモリからの伸長画像をプリ
ンタへ出力するように再設定する。
If you can get the failure information (RMU memory overflow) and the compression to memory is successful, then the next copy (
Image formation (from the second image onward) is performed using the expanded image from the memory.
copy), the reader stops scanning the document. The RMU resets the selector so that the memory can be expanded from the next copy. For example, the video selector 10-23 in FIG. 10 is reset to output the decompressed image from the RMU's memory to the printer.

このようにセレクタの再設定を行ったモードを“アウト
プットモード゛と呼ぶ逆にメモリへの圧縮が失敗したと
きは、゛リテンションモード゛のままではメモリへの圧
縮をしながら画像の素通しをしてしまうのでメモリへの
圧縮を行なわないような動作が必要となる。このモード
を“スルーアウトモードという。“スルーアウトモード
゛は″メモリパスモード゛とRMUでのセレクタの設定
は同じであるが、リーダからの画像情報が前者は閾値ジ
ェネレータA、Hの値を同じにした2値画像であるのに
対し、後者はVDA 、VDB独立の3値画像であるの
で名称をかえた。このRMU内部モードの変更よりRM
Uは“メモリハイスピード″ゝにおいてメモリへの画像
圧縮の成功、不成功にかかわらず2値画像を出力し、1
枚目と2枚目以降の画像の差をなくすことが可能となる
。第18表にRMUモードとl’l、MU内部モードの
対応を示しておく。
The mode in which the selector is reset in this way is called "output mode." Conversely, if compression to memory fails, if you remain in "retention mode," the image will be passed through while being compressed to memory. Therefore, an operation that does not compress data into memory is required. This mode is called "through-out mode.""Through-outmode" has the same selector settings in the RMU as "memory pass mode," but the image information from the reader is a binary image with the same values for threshold generators A and H in the former. On the other hand, the latter is a ternary image with VDA and VDB independent, so the name has been changed. This change in RMU internal mode causes RM
U outputs a binary image regardless of the success or failure of image compression to memory at "memory high speed", and 1
It becomes possible to eliminate the difference between the first image and the second and subsequent images. Table 18 shows the correspondence between RMU mode, l'l, and MU internal mode.

リーダ動作を第26図のフロチャートを用いて説明する
The reader operation will be explained using the flowchart of FIG. 26.

まず、コピーキーがオペレータにより押されるとリーダ
はR,MUとプリンタに対してRMU指示コマンド(S
−103−1)、枚数指示コマンド(S−103−2)
、上下給紙コマンド(S−103−3)2紙サイズ指示
コマンド(S−103−4)。
First, when the copy key is pressed by the operator, the reader issues an RMU instruction command (S
-103-1), number of sheets command (S-103-2)
, upper and lower paper feed commands (S-103-3), 2 paper size instruction commands (S-103-4).

プリンタスタートコマンド(S−103−4)を出力し
、コピー動作に必要な初期設定を行い、リーダはRMU
からのPREQを入力した後(S−103−10)、P
RINTt14LMUに対し出力する(S−103−1
’0)。更に、タイマをスタートさせ(S−103−1
1,) 、このタイマアウトまで一定時間待機しくS−
103−12)、RMU内部モードが“アウトプットモ
ード゛のときには光学系をスタートさせず(S−103
−14)、枚数カウントダウンを行い、枚数が0である
かを調べ(S−103−20)、Oである場合にはプリ
ンタストップコマンドを出カスる(S−103−21)
Outputs the printer start command (S-103-4), performs the initial settings necessary for the copy operation, and then the reader
After inputting PREQ from (S-103-10), P
Output to RINTt14LMU (S-103-1
'0). Furthermore, start the timer (S-103-1
1,), wait for a certain period of time until this timer runs out.
103-12), the optical system is not started when the RMU internal mode is "output mode" (S-103
-14), counts down the number of sheets, checks whether the number is 0 (S-103-20), and if it is O, issues a printer stop command (S-103-21)
.

RMU内部モードが“アウトプットモード゛以外である
ときには、光学系をスキャンさせて(S−103−15
)、原稿の読み取りを開始し、(S−103−16,)
画像をRMUへ出方する。読み取りの終了をチェックし
たあと(,9−103−17)、メモリインプットモー
ドである場合は枚数をチェックせず(1枚の原稿の読み
取りしが受けつけない)。RMUに対してプリンタスト
ップコマンドを出力(S−103−21)する。
When the RMU internal mode is other than "output mode", scan the optical system (S-103-15
), starts reading the original, (S-103-16,)
Send the image to RMU. After checking the completion of reading (, 9-103-17), if it is in memory input mode, the number of sheets is not checked (reading of one original is not accepted). A printer stop command is output to the RMU (S-103-21).

“メモリインプットモード、“アウトプットモード゛以
外の場合には枚数をカウントダウンし、(S−103−
19)枚数がOである場合にはプリンタストップコマン
ドを出力し、Oでない場合にはPREQ入力持入力状態
にし枚数Oになるまで前述の動作を繰り返す。
In cases other than “memory input mode” and “output mode”, count down the number of sheets (S-103-
19) When the number of sheets is O, a printer stop command is output, and when it is not O, the PREQ input is set to an input state and the above operation is repeated until the number of sheets is O.

プリンタ動作を第27図のフロチャートを用いて説明す
る。
The printer operation will be explained using the flowchart of FIG. 27.

プリンタはリーダ側(RMUを含む)からプリンタスタ
ートコマンドを入力すると(S−104−1)ドラム帯
電等の各部動作を開始する(S−104−2)。プリン
タが給紙可能な状態になったならば(S−104−3)
、リーダ側へpH’tEQを出力する(S−104−4
)、リーダ側からPREQに対応してPR,I NTを
入力したならば(s−1o4−5)、給紙(8−105
−6)を行う。
When a printer start command is input from the reader side (including the RMU) (S-104-1), the printer starts various operations such as drum charging (S-104-2). When the printer is ready to feed paper (S-104-3)
, output pH'tEQ to the reader side (S-104-4
), if PR, I NT are input in response to PREQ from the reader side (s-1o4-5), paper feed (8-105
-6).

給紙を行い画像受信可能になると(S−104−7)、
vSREQをリーダへ出力する(S−1048) o 
V S RE Q K 対応L テV S Y N C
ヲ!J −ダは出力し画像信号を出力する(S−1,0
4−9)。
When paper is fed and images can be received (S-104-7),
Output vSREQ to reader (S-1048) o
V S RE Q K Corresponding L Te V S Y N C
Wo! J-da outputs and outputs an image signal (S-1,0
4-9).

プリンタはコピー処理を行い(S−104−10)。The printer performs copy processing (S-104-10).

エラーがあるかとうかチェックし、(S−104−11
)、エラーがあった場合にはエラーをシリアル通信にの
せる( S−104−1,2)。上記動作をコピ一枚数
分繰り返すとリーダはプリンタストップを出力するので
プリンタストップを受信したかチェックしくS−1o4
−13.)プリンタはこれを受けてプリンタの各部を停
止する(S−1,04−14)。
Check if there are any errors and (S-104-11
), and if there is an error, the error is posted on the serial communication (S-104-1, 2). If the above operation is repeated for one copy, the reader will output a printer stop signal, so check whether the printer stop signal has been received.S-1o4
-13. ) The printer receives this and stops each part of the printer (S-1, 04-14).

RMUの動作についての説明を行う前に、RMUのメモ
リアドレス管理について第28図を用いて説明を行う。
Before explaining the operation of the RMU, memory address management of the RMU will be explained using FIG. 28.

RMUは圧縮画像情報をメモリに蓄積するときにメモリ
上の任意のアドレスを圧縮画像の書き込み開始アドレス
(MSと以下略す)と圧縮画像の最犬書き込みアドレス
(MEと以下略す)を設定できる。RMUはMSとME
の設定により圧縮画像のメモリ書き込みの成功、失敗を
判断でき、以前書き込んだ画像情報の保護も可能となる
When storing compressed image information in the memory, the RMU can set arbitrary addresses on the memory as a compressed image write start address (hereinafter abbreviated as MS) and a compressed image most significant write address (hereinafter abbreviated as ME). RMU is MS and ME
Depending on the settings, it is possible to determine the success or failure of writing a compressed image to memory, and it is also possible to protect previously written image information.

メモリは有限であるためこの最大値をM L M Tと
する。第28図(1)はRMUに何も画像書き込みが行
なわれていない状態を示している。このときにMS←O
,ME4−MLMTを設定しておく。このことはメモリ
の持つ最大の空領域を示していることにもなる。RMU
メモリ指示コマンドによりメモリAが選択されディザメ
モリハイスピードモードでA4サイズのコピーが行なわ
れたときに、11.MUは(2)の如くメモリAに格納
された画像はRM Uのどのモードで圧縮されたかの情
報(MA−VIDEO)、圧縮した画像の原稿サイズ(
MA−PSZ)、リーダの読み取りモード(MA−ME
THOD)、メモリAの画像書き込みスタートアドレス
(MAS)、メモリAの画像書き込みエンドアドレス(
MAE)を記憶する。これらの情報はメモリB、メモリ
Cへの書き込みが行なわれたときも同様に行い、何も画
像書き込みが行なわれていない場合には、それに対応す
る情報が書き込まれているものとする。
Since memory is limited, this maximum value is set as M L MT. FIG. 28(1) shows a state in which no image is written to the RMU. At this time, MS←O
, ME4-MLMT are set in advance. This also indicates the maximum free space available in memory. R.M.U.
When memory A is selected by the memory instruction command and A4 size copy is performed in dither memory high speed mode, 11. As shown in (2), the MU contains information on which mode the RMU compressed the image stored in memory A (MA-VIDEO), and the document size of the compressed image (
MA-PSZ), reader read mode (MA-ME
THOD), memory A image write start address (MAS), memory A image write end address (
MAE). These pieces of information are written in the same way when writing to memory B and memory C, and if no image has been written, it is assumed that the corresponding information has been written.

(2)の状態においてメモIJ B 、メモリCの書き
込みが行われた状態が(3)である。(2)の状態でメ
モIJ BまたはメモIJ Cへの書き込みが指示され
ると、最大空領域である(2)の状態゛の領域■をMS
4−MA、E +1 、ME4−MLMTとして設定す
る。このときに再びメモIJ Aが指定されたらメモリ
Aの上下の空領域を含む領域を新しいMS、←O、ME
4−MLMTとして設定する。このように設定すること
により(1)の状態においてメモIJ Aが指定された
場合と同じとなり有効にメモリを使用できる(3)の状
態においてメモリAが指定された場合、(3)の状態で
はメモIJ Aに連続する空領域はなく、メモリAのメ
モリ量と(3)の状態′における空領域■のメモリ量の
比較をし、メモリ量の大きい方を新しいメモリA領域と
する。(3)の状態においては空領域■の方が大きいた
め、MS4−MBE+ 1.、ME←M L M Tと
設定し、古いメモIJ A領域は空領域と設定する。
The state (3) is when the memo IJ B and the memory C are written in the state (2). When writing to the memo IJB or memo IJC is instructed in the state (2), the area in the state (2), which is the maximum empty area, is stored in the MS.
Set as 4-MA, E +1, ME4-MLMT. At this time, if memo IJ A is specified again, the area including the upper and lower empty areas of memory A is set to a new MS, ←O, ME.
4-Set as MLMT. With this setting, it is the same as when memo IJ A is specified in state (1), and the memory can be used effectively.If memory A is specified in state (3), Since there is no continuous empty area in memo IJ A, the memory amount of memory A is compared with the memory amount of empty area (2) in state (3), and the one with the larger memory amount is set as the new memory A area. In the state (3), the empty area ■ is larger, so MS4-MBE+1. , ME←MLMT, and the old memo IJA area is set as an empty area.

(3)の状態における空領域■に画像情報を書き込んだ
状態が(4)の状態である。この状態でメモリBに書き
込み指示があった場合(4)の状態におけるメモリB領
域に連続する空領域はなく、メモIJ B領域、空領域
■、空領域■のうちで最も大きなメモリ量を持つ領域を
新しいメモリB領域とする。このとき空領域■が最も大
きなメモリ量を有していた場合、MS←O,ME←MC
8−1を設定し、古いメモIJ B領域は空領域として
設定する。この設定後新しいメモIJ B領域に画像書
き込みが成功した場合が(5)の状態であり、また、画
像書き込みが失敗した場合が(6)の状態であり、メモ
リへの圧縮が失敗した場合、その書き込んだメモリ領域
は空領域となる。  。
The state (4) is the state in which image information has been written in the empty area (3) in the state (3). If there is a write instruction to memory B in this state, there is no continuous free space in the memory B area in state (4), and the memo IJ has the largest amount of memory among the B area, empty area ■, and empty area ■. The area is set as the new memory B area. At this time, if the empty area ■ has the largest amount of memory, then MS←O, ME←MC
8-1, and the old memo IJB area is set as an empty area. After this setting, if the image writing to the new memo IJ B area is successful, the state is (5), if the image writing fails, the state is (6), and if the compression to the memory fails, The written memory area becomes an empty area. .

(5)及び(6)の状態において、それぞれメモIJA
In the states of (5) and (6), the memo IJA
.

メモリB、メモリCを指定した場合のMs、mE決定の
だめのメモリ量比較について第118表に示しておく。
Table 118 shows a comparison of the memory amounts for determining Ms and mE when memory B and memory C are specified.

このように空領域はメモリ指示ができる領域数と最大同
数発生する。この空領域についてのyt モIJ量t−
MAs 、MBS 、MC8、MAR。
In this way, the maximum number of empty areas generated is the same as the number of areas that can be specified by memory. yt moIJ amount t- for this empty area
MAs, MBS, MC8, MAR.

MBB、MCEから計算することによって合理的なメモ
リ管理を行うことができる。たとえMS。
Rational memory management can be performed by calculating from MBB and MCE. Even if MS.

MEで設定した新領域への画像の書き込みが失敗(画像
圧縮エラー)になってもMA−VIDEO。
MA-VIDEO even if writing an image to the new area set in ME fails (image compression error).

MB−VIDEO,MC−VIDEO(7)内容ti:
 画像情報なしの意に設定することによって空領域とし
て認識することにより、これも合理的なメモリ管理を行
うことができる。本実施例ではメモリ指定領域数を′3
゛としたがメモリ量に応じたメモリ指定領域数“′N°
°でも実現できる。
MB-VIDEO, MC-VIDEO (7) Contents:
By setting this to no image information and recognizing it as an empty area, rational memory management can also be performed. In this example, the number of memory specified areas is
However, the number of memory specified areas according to the amount of memory is ``'N°
It can also be achieved in °.

[14MUモードの“リテンションモード゛についての
説明を第13図に示す如く第29図のフローチャートを
参照しつつA3サイス(主走査297mm、副走査42
0mm)の画像情報Aから主走査方向70 m m 、
副走査方向100mm経過した点から140mmx 2
10mmの画像情報Bをトリミングして出力する場合を
例にとって説明する。R,M UはRMUモード指示コ
マンド2バイト目として第20表を入力する。ビット6
、ビット5はそれぞれリーグ画像、 R,MU伸長画像
の出力濃度を約50%にするだめのビットであり、両方
とも1”がセットされ、RMUモードとして第5表の1
04−2のようにビット4.ビット3.ビット2.ビッ
ト1はセットされる。メモリ指示としてメモリAが指示
され、RMUメモリ指示コマンドとして第21表を入力
する。RMU)リミング指示コマンド1のトリミングデ
ータとして主走査圧縮開始位置Hp (70mm) 、
 RM U l・リミング指示コマンド2のトリミング
データとして副走査圧縮開始位置Vp(100mm)、
RMU )リミング指示コマンド3のトリミングデータ
として主走査圧縮中Hw(140mm)、RMU)リミ
ング指示ml?ンド4のトリミングデータとして副走査
圧縮中Vw(2]、Omm)がセットされたものがリー
ダからミリメータ単位で出力される( S−106−A
−1)。
[An explanation of the "retention mode" of the 14MU mode is shown in FIG. 13, while referring to the flowchart in FIG. 29.
0 mm) from image information A in the main scanning direction,
140mm x 2 from the point after 100mm in the sub-scanning direction
An example will be explained in which a 10 mm image information B is trimmed and output. R, MU input Table 20 as the second byte of the RMU mode instruction command. Bit 6
, bit 5 are bits used to make the output density of the league image, R, and MU expanded image approximately 50%, respectively, and both are set to 1'', and 1 in Table 5 is set as the RMU mode.
Bit 4.04-2. Bit 3. Bit 2. Bit 1 is set. Memory A is specified as the memory instruction, and Table 21 is input as the RMU memory instruction command. RMU) As trimming data for rimming instruction command 1, main scanning compression start position Hp (70mm),
As the trimming data of the RM U l/rimming instruction command 2, the sub-scanning compression start position Vp (100 mm),
RMU) Hw (140mm) during main scanning compression as trimming data for rimming instruction command 3, RMU) Rimming instruction ml? The trimming data of command 4 with Vw (2], Omm) set during sub-scanning compression is output from the reader in millimeter units (S-106-A
-1).

コントローラー10−2はリーグからの上記位置情報を
ビット単位/ライン単位に変換し、Hp=1102ビア
 ト、Vp=1574 ライン、Hw=2204ビット
、Vw=3307ラインの第13図に相当する圧縮画像
位置/サイズ情報を得る。
The controller 10-2 converts the above position information from the league into bit units/line units, and creates a compressed image corresponding to FIG. 13 with Hp=1102 bits, Vp=1574 lines, Hw=2204 bits, and Vw=3307 lines. Get position/size information.

指示されたR、MUモードにより、第10図のセレクタ
5ELL(1,0−,18)、5EL2(10−19)
、5EL3(10−20)、5EL4(10−21)。
Depending on the designated R and MU modes, selectors 5ELL (1, 0-, 18) and 5EL2 (10-19) in Fig. 10 are selected.
, 5EL3 (10-20), 5EL4 (10-21).

5BL5(,1O−22)、ビテオセレクタ(10−2
3)はそれぞれR−VCLK、R−VDA、R−VE。
5BL5 (,1O-22), video selector (10-2
3) are R-VCLK, R-VDA, and R-VE, respectively.

R−VE、P−BD、AO、BOの入力を選択する。Select R-VE, P-BD, AO, and BO inputs.

リーグの画像信号を圧縮画像メモリに2値圧縮して格納
するため第11図ディザ信号はLレベルニスル。RMU
モードはパメモリハイスピートモード’(RMU内部モ
ードは1′リテンシヨンモード゛)であるので、リーダ
が出力したプリンタスタートコマンドを受信し、プリン
タへ素通しする(S−106−A−3)。RMUはプリ
ンタの給紙可能状態を示すPREQ信号を入力しくS−
106−A−5)、この信号をリーダへ出力する( s
−1,06−A−6)。この時点では、“メモリハイス
ビートモード°゛の1枚目を実行中であるため(,9−
106−A−7)、リーグから出力用紙サイズを指定す
る紙サイズ指示コマンドを入力しく S−106−A−
8)、前述MA−PSZに記憶保持する。指示された出
力用紙サイズをもとに以下説明する種々のカウンタの設
定を行う。まず前述したMS(圧縮画像書き込み開始ア
ドレス)、ME(圧縮画像の最大書き込みアドレス)の
設定をメモリアドレスカウンタ10−8、フンパレータ
10−1.4に行なう。第11図示のディザカウンタの
ダウンカウンタ13−1には1245H(4677)の
上位10ビット248H,(584)が、また、ダウン
カウンタ13−2には下位3ピツ)5H(5)がセット
される。第12図示の主走査カウンタ・デコーダには同
様にダウンカウンタ14−1には1245H(4677
)がセットされる。尚、コンパレータ14−2 、14
−3は伸長時のみに用いるため設定は行なわず、14−
4.14−5のコンパレータはHpに相当するDF7H
(3575)及びHp 、 Hwに相当する、55BH
(1371)を設定し、DADFLをHADRと同時に
動作させるため、コンパレータ14−8には1245 
H(4677)の設定を行う。
In order to binary-compress and store the league image signal in the compressed image memory, the dither signal in FIG. 11 is an L level Nissl signal. R.M.U.
Since the mode is memory high speed mode (RMU internal mode is 1' retention mode), it receives the printer start command output by the reader and passes it through to the printer (S-106-A-3). The RMU should input the PREQ signal that indicates the printer's paper feeding status.
106-A-5), output this signal to the reader (s
-1,06-A-6). At this point, the first image of “Memory High Speed Beat Mode” is being executed (,9-
106-A-7), input the paper size instruction command to specify the output paper size from the league. S-106-A-
8), is stored and held in the MA-PSZ mentioned above. Based on the specified output paper size, settings for various counters described below are performed. First, the aforementioned MS (compressed image write start address) and ME (maximum compressed image write address) are set in the memory address counter 10-8 and the humpator 10-1.4. The upper 10 bits 248H, (584) of 1245H (4677) are set in the down counter 13-1 of the dither counter shown in Figure 11, and the lower 3 bits) 5H (5) are set in the down counter 13-2. . Similarly, in the main scanning counter decoder shown in FIG. 12, the down counter 14-1 has 1245H (4677
) is set. In addition, comparators 14-2, 14
-3 is used only for decompression, so no settings are made, and 14-
4.14-5 comparator is DF7H which corresponds to Hp
(3575) and Hp, Hw corresponds to 55BH
(1371) and operate DADFL at the same time as HADR, comparator 14-8 has 1245
Configure H (4677).

RMUはリーダからPRINT信号を入力すると(S−
106−A−10)、プリンタへ出力する(S−1,0
6−A−12)。VSREQ信号をプリンタから入力す
ると(S−1,06−A−1,3)、リーグへ出力する
(S−103−A−1,4)。
When the RMU receives the PRINT signal from the reader (S-
106-A-10), output to printer (S-1,0
6-A-12). When the VSREQ signal is input from the printer (S-1,06-A-1,3), it is output to the league (S-103-A-1,4).

この時点におけるRMUモードは“メモリハイスピード
モード゛枚数は1枚目であるためRMU内部モード“リ
テンションモード゛ニ分岐する( S−106−A−1
8)。そして、第30図においてリーグからのVSYN
Cのオンを入力したならば(S−106−F−1)、を
オンし、プリンタへのVSYNCをオン(S−106−
F−2)、する。第13図vp 1574ラインを生成
するだめに10−11ラインカウンタに626H(15
74)をセットし、ラインカウンタがカウントアツプし
たならば(5−106−F−4)、副走査圧縮区間信号
V−ENCをオンする(S−106−F’−5)。
At this point, the RMU mode is "memory high speed mode".Since the number of memory is 1, the RMU mode branches to "retention mode" (S-106-A-1).
8). And in Figure 30, VSYN from the league
If you input C ON, turn on (S-106-F-1) and turn on VSYNC to the printer (S-106-F-1).
F-2). Figure 13 vp In order to generate 1574 lines, 626H (15
74) and when the line counter counts up (5-106-F-4), the sub-scanning compression section signal V-ENC is turned on (S-106-F'-5).

第13図B領域の副走査中Vw3307をラインカウン
タにセットする(S−106−F’−6)。前述セレク
タの設定により、リーダからの画像をプリンタに素通し
しながら、10−11ラインカウンタ終了まで圧縮画像
メモIJ ]、 O−5に圧縮回路10−4からの圧縮
画像コードの書き込みを行う(S−106−F−7,S
−106−F−8)。所定副走査ライン数の画像圧縮の
終了を意味するラインカウンタ10−11のカウントア
ツプを検出したならばV−ENC信号をオフしくS−1
06−F−9)、リーグからのVSYNCのオフ状態を
入力したならば(S−106−F−10)、プリンタへ
のVSYNCをオフする(S−106−Fll)。
During sub-scanning of area B in FIG. 13, Vw 3307 is set in the line counter (S-106-F'-6). According to the settings of the selector mentioned above, while passing the image from the reader through the printer, the compressed image code from the compression circuit 10-4 is written to O-5 until the 10-11 line counter ends (S -106-F-7,S
-106-F-8). When the count-up of the line counter 10-11, which means the end of image compression of a predetermined number of sub-scanning lines, is detected, the V-ENC signal is turned off and S-1
06-F-9), if the off state of VSYNC from the league is input (S-106-F-10), VSYNC to the printer is turned off (S-106-Fll).

この後圧縮画像メモリへの書き込みが成功または失敗し
たかの判定をするため、第31図の手順によりMOVE
R信号をチェックしくS−106−C−1,)、MOV
IIR信号がHレベルであるならばメモリへの書き込み
を失敗と判定し、圧縮失敗フラグをセット(S−106
−C−2) L、前述コピー動作中のシリアル通信によ
って圧縮失敗(R,MUメモリオーバーフロー)の情報
をリーダに伝えることができる。リーダはこの情報によ
り、圧縮メモリを用いたリテンション動作が下前である
と判断し、2枚目以降も原稿ス■00 キャンによる画像出力を繰返し行い、コピー動作を終了
する。この機能によりたとえリーダからの画像信号が圧
縮画像メモリに入りきらない場合でも膜数枚数のコピー
はプリンタから出力される。RMUはこのとき圧縮画像
の書き込まれつつあったメモリ領域を空領域とするとと
もに圧縮失敗フラッグにより、RMU内部モードを“′
スルーアウトモード゛に変更する。“スルーアウトモー
ド゛はパメモリパスモード゛と同じであり、V−ENC
信号をリーグのV S YNCに対応してオン(Lレベ
ルからHレベル)、オフ(Hし゛ベルからLレベル)に
する動作をしないのでRMUは圧縮動作をせず、セレク
タ、カウンタはパリテンションモード゛の設定を行ない
、リーダからのVSYNCが入力したらプリンタへVS
YNCを出力しく第33図、S−106−D−1,S−
106−D−2)、リーグからの画像をプリンタに素通
しくS−1,06−D−3)、リーグからのVSYNC
を待機するでよい。(S−106−D−4)、VSYN
Cが人力されたならばプリンタへのVSYNCをオフし
くS−106−D−5)、リーグは設定枚数分の画像情
報出力を完了すると、プリンタストップコマンドを出力
してプリンタを停止させる。RMUはこのプリンタスト
ップコマンドの入力によりコピーシーケンスを終了する
(S−106−C−6)。
After this, in order to determine whether writing to the compressed image memory has succeeded or failed, move the image using the procedure shown in FIG.
Check the R signal S-106-C-1,), MOV
If the IIR signal is at H level, writing to the memory is determined to be a failure, and a compression failure flag is set (S-106
-C-2) L. Information about compression failure (R, MU memory overflow) can be transmitted to the reader through serial communication during the aforementioned copy operation. Based on this information, the reader determines that the retention operation using the compression memory is at its last stage, and repeats the image output by scanning the original for the second and subsequent sheets, and ends the copying operation. With this function, even if the image signal from the reader cannot fit into the compressed image memory, copies of several films can be output from the printer. At this time, the RMU makes the memory area where the compressed image was being written an empty area, and sets the RMU internal mode to "'" with the compression failure flag.
Change to through-out mode. “Through-out mode” is the same as memory pass mode, and V-ENC
Since the signal does not turn on (L level to H level) or off (H level to L level) in response to the league's V SYNC, the RMU does not perform compression operation, and the selector and counter are in parity mode. Once the VSYNC from the reader is input, send the VS to the printer.
Figure 33, S-106-D-1, S-
106-D-2), passing the image from the league directly to the printer S-1, 06-D-3), VSYNC from the league
You can wait. (S-106-D-4), VSYN
If C is manually operated, VSYNC to the printer is turned off (S-106-D-5), and when the league completes outputting image information for the set number of sheets, it outputs a printer stop command to stop the printer. The RMU ends the copy sequence by inputting this printer stop command (S-106-C-6).

逆にMOVER信号がLレベルであった場合には、メモ
リへの書き込みは成功であるので、リーダにこのことを
シリアル通信で知らせ、リーダの2枚目以降の原稿スキ
ャンを停止させ、RMUの圧縮画像メモリからの伸長画
像によるコピー動作を行う。伸長画像出力のためには、
セレクタ、カウンタの再設定を行なわなければならず、
以下のような゛アウトプットモード“の再設定を行う(
S−106−C−4、8−106−C−5)。第10図
5ELI’、5EL2 、SBI、3゜SET、4.5
EL5 、ビデオセレクタはそれぞれI−CLK、DV
DO,P−BD、OVB。
Conversely, if the MOVER signal is at the L level, the writing to the memory was successful, so this is notified to the reader via serial communication, the reader stops scanning the second and subsequent documents, and compresses the RMU. A copy operation is performed using the decompressed image from the image memory. To output the decompressed image,
Selectors and counters must be reset,
Reset the “output mode” as shown below (
S-106-C-4, 8-106-C-5). Fig. 10 5ELI', 5EL2, SBI, 3°SET, 4.5
EL5, video selector is I-CLK, DV respectively
DO, P-BD, OVB.

H8YNC,A2.B2.の入力を選択し、圧縮画像メ
モリには2値画像圧縮された圧縮画像データが記憶され
ていることがMA−METHODの内容により判別でき
る。したがって圧縮画像データを2値画像伸長するため
に第11図のDither信号はLレベルにする。
H8YNC, A2. B2. It can be determined from the contents of MA-METHOD that the input of MA-METHOD is selected, and the compressed image data that has been subjected to binary image compression is stored in the compressed image memory. Therefore, in order to expand the compressed image data into a binary image, the Dither signal shown in FIG. 11 is set to L level.

カウンタ、コンパレータの設定には前述したMA−PS
Z 、MB−PSZ 、MC−PSZから指定されたメ
モリ領域のものからデータを取り出し、圧縮記憶した画
像情報の原稿サイズは第13図B領域すなわち2204
 X 3307であるので、第12図示のダウンカウン
タ14−1には前述の第17図、第21図の伸長の説明
のように、1.2F4H(4852)、14−2.14
−3.14−4.14−5.14−6..14−7.1
4−8のコンパレータにはそれぞれ1.247H(46
79)、2H(2)。
The MA-PS mentioned above is used to set the counter and comparator.
The original size of the image information that was extracted from the memory areas designated by Z, MB-PSZ, and MC-PSZ, and compressed and stored, is area B in Figure 13, that is, 2204.
X 3307, so the down counter 14-1 shown in FIG.
-3.14-4.14-5.14-6. .. 14-7.1
Comparators 4-8 each have 1.247H (46
79), 2H(2).

1247H(4679)、9ABH(2475)、dF
9H(3577)、55dH(1,373)、1247
i((4679)を既定し、“アウトプットモード゛は
圧縮画像メモリからの伸長を行うため伸長エラーカウン
タ10−35に0をセットする。第11図示のディザカ
ウンタのダウンカウンタ1.3−1.13−2にそれぞ
れ1.H(1)、IBFH(447)をセットする( 
5−1−06−C−5)。
1247H (4679), 9ABH (2475), dF
9H (3577), 55dH (1,373), 1247
i((4679)), and the "output mode" sets the decompression error counter 10-35 to 0 in order to perform decompression from the compressed image memory.The down counter 1.3-1 of the dither counter shown in FIG. 11 Set 1.H (1) and IBFH (447) in .13-2 respectively (
5-1-06-C-5).

リーダはエラー発生ユニットステータス要求コマントニ
ヨつ−CRMUメモリオーバフローがなかったことを認
識し、リーダは原稿スキャンを停止する。リーダはVS
YNCを出力しないのでRMUはリーダからのVSYN
Cを待つことなしに、プリンタへのVSYNCをオンす
る(S−106−D−1)。また、副走査方向余白Vp
1574ラインのカウントをすべくラインカウンタにセ
ットする(S−106−D−2)、ラインカウンタがア
ップしたならば(S−106−D−4) 、V−DEC
信号をオンし、■W分の副走査ライン数3307ライン
をラインカウンタにセットしくS−106−D−5)画
像伸長と伸長エラーのチェックをラインカウンタ終了ま
で行う(S−1,06−B−22、S−106−B−2
3)。本実施例では8回以上の伸長エラーが発生した場
合、伸長エラーフラグをセットし、コピー動作を停止す
る。RMUは伸長エラーが所定回数(8回)発生したこ
とをリーダにシリアル通信によって伝え、リーダは伸長
エラーが所定回数以上になったと判断した以後の給紙命
令(PR,INT)を出力せず、コピー動作を停止する
。RMUが伸長動作を停止するためにはまずV−DEC
信号をオフしく S−106−D−8)、Va分の副走
査ライン数をセットし、ラインカウンタアップ後、続い
てプリンタへのVSYNCをオフしてやる。リーダはコ
ピー動作の停止をプリンタへ伝えるためにプリンタスト
ップコマンドを出力し、プリンタはこれを入力し、コピ
ー動作の停止を行なう。
The reader recognizes that there is no error unit status request command - CRMU memory overflow, and stops document scanning. The leader is VS
Since it does not output YNC, RMU receives VSYN from the reader.
VSYNC to the printer is turned on without waiting for C (S-106-D-1). Also, the sub-scanning direction margin Vp
Set the line counter to count 1574 lines (S-106-D-2), and if the line counter is up (S-106-D-4), V-DEC
Turn on the signal and set the number of sub-scanning lines for ■W, 3307 lines, in the line counter.S-106-D-5) Perform image expansion and check for expansion errors until the line counter ends (S-1,06-B) -22, S-106-B-2
3). In this embodiment, if eight or more decompression errors occur, a decompression error flag is set and the copy operation is stopped. The RMU notifies the reader through serial communication that the decompression error has occurred a predetermined number of times (eight times), and the reader does not output paper feeding commands (PR, INT) after determining that the decompression error has occurred more than the predetermined number of times. Stop the copy operation. In order for the RMU to stop the expansion operation, first the V-DEC
Turn off the signal (S-106-D-8), set the number of sub-scanning lines for Va, and after incrementing the line counter, turn off the VSYNC to the printer. The reader outputs a printer stop command to notify the printer of stopping the copying operation, and the printer receives this command and stops the copying operation.

伸長エラーが8同級上発生しなかった場合にはR,MU
は(設定枚数−1)回の伸長動作を繰り返し行い、リー
ダからのプリンタストップコマンドにより停止する( 
S−106−C−6)。
R, MU if no decompression error occurred on class 8
repeats the expansion operation (set number of sheets - 1) times, and stops with the printer stop command from the reader (
S-106-C-6).

次にメモリパスモードについて第33図を用いて説明す
る。メモリパスモードは前述の如くリーダからの3値を
表わす2本の画像信号RVDA 、RVDBを圧縮メモ
リに格納することなく、直接プリンタへ伝送するモード
である。
Next, the memory path mode will be explained using FIG. 33. As described above, the memory pass mode is a mode in which the two image signals RVDA and RVDB representing three values from the reader are directly transmitted to the printer without being stored in the compression memory.

1nへ 即ち、メモリパスモードにおいては第10図のセレクタ
10−23のA I、 、 B 1を選択する。
1n, that is, in the memory path mode, A I, , B 1 of the selector 10-23 in FIG. 10 is selected.

また、リーダからのR−VCLKを08YSとすべくセ
レクタ10−18を選択動作し、更に、プリンタからの
P−BDをH8YNCとすべくセレクタ10−22を動
作する(S−106−A−2)。
In addition, the selector 10-18 is selectively operated to set the R-VCLK from the reader to 08YS, and the selector 10-22 is also operated to set the P-BD from the printer to H8YNC (S-106-A-2 ).

この後はリーダから入ってくる制御信号はプリンタへ、
まだプリンタから入ってくる制御信号はリーダへそのま
ま出力し、あたかも、RMUが存在しないかの如くに動
作する。即ち、リーダからのVSYNCがオンしだら(
S−IQ6−D−1L プリンタへのVSYNCをオン
し、更に、リーダからの画像をセレクタ10−23を通
してプリンタに素通しする(S−106−D−2゜S−
106−D−3)。そして、リーダからのv S YN
Cがオフされたならば(S−106−D−4)、プリン
タへのVSYNCをオフしく s−106−D−5)、
更ニブリンタストツブコマンドが入力していればプリン
ト動作を停止せしめる。一方、プリンタストツブコマン
ドが入力していなければ再び同様の処理を設定数分繰返
し実行する。
After this, the control signal coming from the reader is sent to the printer.
Control signals still coming from the printer are output to the reader as they are, and the RMU operates as if it did not exist. In other words, if VSYNC from the reader turns on (
S-IQ6-D-1L Turn on VSYNC to the printer, and pass the image from the reader to the printer through the selector 10-23 (S-106-D-2゜S-
106-D-3). And v SYN from the leader
If C is turned off (S-106-D-4), turn off VSYNC to the printer s-106-D-5),
If the print command is input, the print operation is stopped. On the other hand, if the printer stop command is not input, the same process is repeated for the set number of times.

次に、“メモリインプットモードitで圧縮画像メモリ
に書き込んだ画像を゛′メモリオーバレイモード1゛で
リーダからの画像と合成してプリンタに出力する例を説
明する。
Next, an example will be described in which an image written in the compressed image memory in the "memory input mode it" is combined with an image from the reader in the "memory overlay mode 1" and output to the printer.

メモリオーバレイ動作を行う第一段階としてメモリに画
像情報が書き込まれていなくてはならない。このメモリ
に画像情報の書き込みを行うRMUモードが“メモリイ
ンプットモード°゛である。第13図のB領域をトリミ
ングしてメモIJ C領域へ圧縮記憶する場合のRMU
指示は、第20表に示すRMUモード指示コマンドの2
バイト目と、第21表に示すRMUメモリ指示コマンド
の2バイト目と、第24表に示す如くの、オペレータに
よるリーダの操作部からのトリミング領域指定データに
基づ<RMU)IJミング指示1コマンドからRMU)
リミング指示6コマンドのトリミングデータの内容をリ
ーダから入力する。゛′メモリインプットモード“にお
いては第1表の100−2のプリンタスタートコマンド
はプリンタへ出力する必要がなく、プリンタはコピー動
作を行なわないだめ、第10図示の5ELL 、5EL
2,5EL3.5EL4 。
As a first step to perform a memory overlay operation, image information must be written to the memory. The RMU mode for writing image information into this memory is the "memory input mode." RMU when trimming the B area in Figure 13 and compressing it into the memo IJC area.
The instructions are 2 of the RMU mode instruction commands shown in Table 20.
Based on the byte, the second byte of the RMU memory instruction command shown in Table 21, and the trimming area designation data from the operator's operation section of the reader as shown in Table 24, the <RMU) IJ trimming instruction 1 command from RMU)
Input the content of the trimming data of the rimming instruction 6 command from the reader. In the ``memory input mode'', the printer start command 100-2 in Table 1 does not need to be output to the printer, and the printer does not perform a copy operation.
2,5EL3.5EL4.

5EL5 、ビデオセレクタの選択をそれぞれR−CL
K、R−VDA、R−VE、R−VB、H8YNC。
5EL5, video selector selection R-CL respectively
K, R-VDA, R-VE, R-VB, H8YNC.

AO,BOと設定する( S−106−A−2)。また
、プリンタがコピー動作を行なわないので、P′FLE
Q信号をRMUに出力しないが、RMUはプリンタの代
りにPREQ信号をリーダへ出力する(S−106−A
−4,S−106−A−6)。リーダからのシリアル通
信による。
Set AO and BO (S-106-A-2). Also, since the printer does not perform copying operations, P'FLE
Although the Q signal is not output to the RMU, the RMU outputs the PREQ signal to the reader instead of the printer (S-106-A
-4, S-106-A-6). By serial communication from the reader.

紙サイズ指示コマンドを受信したならば、メモIJ C
が指定されているので、R,MUの制御部のメモリにM
C−PSZ(メモリCの紙サイズ)に紙サイズを記憶保
持し、MC−METHOD(メモIJ C領域に記憶し
ている画像情報の読み取りモード)に2値画像であるこ
とも記憶保持する。
When the paper size instruction command is received, the memo IJC
is specified, M is stored in the memory of the control unit of R and MU.
The paper size is stored and held in C-PSZ (paper size of memory C), and the fact that it is a binary image is also stored and held in MC-METHOD (reading mode of image information stored in the memo IJC area).

リーダより入力した紙サイズとトリミングデ一タHp(
主走査基準位置) 、 Vp (副走査基準位置)、H
w(主走査中  )、Vw(副走査巾)、HM(主走査
移動位置)、VM(副走査移動位置)により、ダウンカ
ウンタ(14−1)には4677、コンパレータ(14
−4)にはHpより3575、コンパレータ(14−5
)にはHwより1371、コンパレータ(14−8)は
紙サイズより4677、ディザカウンタ(14−1’)
には4677をセットする。メモリアドレスカウンタ(
1o−s)には前述MS(圧縮画像書き込み開始アドレ
ス)、コンパレータ(1’0−14)にはME(圧縮画
像最大書き込みアドレス)をセットする(S−106−
A−9)。
Paper size and trimming data entered from the reader HP (
main scanning reference position), Vp (sub-scanning reference position), H
w (during main scanning), Vw (sub-scanning width), HM (main-scanning movement position), and VM (sub-scanning movement position), the down counter (14-1) has 4677, and the comparator (14
-4) is 3575 from HP, comparator (14-5
) is 1371 from Hw, comparator (14-8) is 4677 from paper size, dither counter (14-1')
Set 4677 to . Memory address counter (
Set the aforementioned MS (compressed image write start address) in 1o-s) and ME (maximum compressed image write address) in comparator (1'0-14) (S-106-
A-9).

RMUはリーダからPR工NT信号を入力しても(S−
1’06−A−10)、プリンタがコピー動作を行なわ
ないためプリンタには出力せず、プリンタの代りにV’
5REQ信号をリーダに出力する( S−106−A−
11、S−106−A−14)。リータカら■5YNC
オンを入力すると(S−106−B−1)、第17図B
領域までのVp (この例のnQ 場合1574)ライン圧縮しないようにするためライン
カウンタ(10−11)にVPをセットする( S−1
06−B−2)。ラインカウンタがカウントアツプした
ことを検知しく S−106−B−3)、圧縮動作を開
始するためにV−ENC信号をオンする( S−106
−B−4)。まだ、圧縮する副走査巾VW(この例の場
合3307)をラインカウンタにセットする(S−10
6−B−5)。そして、ラインカウンタがカウントアツ
プするまで圧縮画像メモリに圧縮動作を繰り返す(S−
106−B−6、S−106−B−7)。ラインカウン
タがカウントアツプしたことを検知して圧縮動作を停止
するため、V−ENC信号をオフする(S−106−B
−8)。その後リーダからのVSYNC信号がオフにな
ったのを検知U (S−106−B−9)、メモリオー
バー(メモリアドレスカウンタが圧縮画像書き込み最大
アドレスを越えたこと)があるかのチェックを行うため
、MOVER信号の検知を行う(第31図、8−106
−C−1)。
Even if the RMU receives the PR NT signal from the reader (S-
1'06-A-10), since the printer does not perform copying operations, it does not output to the printer, and instead of the printer, V'
Output the 5REQ signal to the reader (S-106-A-
11, S-106-A-14). Ritakara■5YNC
When ON is input (S-106-B-1), Fig. 17B
Vp up to the area (1574 in the case of nQ in this example) Set VP in the line counter (10-11) to avoid line compression (S-1
06-B-2). To detect that the line counter has counted up (S-106-B-3), turn on the V-ENC signal to start the compression operation (S-106
-B-4). Still, set the sub-scanning width VW to be compressed (3307 in this example) in the line counter (S-10
6-B-5). Then, the compression operation is repeated in the compressed image memory until the line counter counts up (S-
106-B-6, S-106-B-7). To detect that the line counter has counted up and stop the compression operation, turn off the V-ENC signal (S-106-B
-8). After that, detecting that the VSYNC signal from the reader has turned off (S-106-B-9), to check whether there is a memory overflow (the memory address counter has exceeded the maximum address for writing compressed images). , detects the MOVER signal (Fig. 31, 8-106)
-C-1).

MOVER信号がHレベルであればメモリへの書き込み
が失敗したことを意味し、リーダに圧縮失敗の情報を伝
えるために圧縮失敗フラグをセットする(S−1,06
−C−2)。このことにより前述エラー発生ユニットス
テータスにRMU圧縮失敗の情報が付加され、リーダは
R,MU圧縮失敗を認識する。また、圧縮失敗の場合に
はMC−PSZ(メモリCの紙サイズ)、MC−MET
OD (読み取りモード)、MC8(メモリC開始アド
レス)、MCE(メモリC終了アドレス)、MC−VI
DEO(圧縮モード)の情報をメモリCには何も書き込
まれていないものと同じ設定を行う。このことにより圧
縮失敗時の指定メモリ領域を空領域と認識し、次回の圧
縮動作のために有効に活用できる。一方、圧縮成功時に
は、MC8,MCE、MC−METHOD。
If the MOVER signal is at H level, it means that writing to the memory has failed, and a compression failure flag is set to notify the reader of compression failure information (S-1,06
-C-2). As a result, information about the RMU compression failure is added to the error occurrence unit status, and the reader recognizes the RMU compression failure. In addition, if compression fails, MC-PSZ (paper size of memory C), MC-MET
OD (reading mode), MC8 (memory C start address), MCE (memory C end address), MC-VI
The DEO (compression mode) information is set in the same way as if nothing had been written to memory C. This allows the specified memory area when compression fails to be recognized as an empty area and to be effectively used for the next compression operation. On the other hand, when compression is successful, MC8, MCE, MC-METHOD.

MC−VIDEO,MC−PSZに必要な情報の記憶を
行う。これらはメモリC領域からの伸長時に利用する。
Stores information necessary for MC-VIDEO and MC-PSZ. These are used when decompressing from the memory C area.

リーダからプリンタストップコマンドを入力したならば
(S−106−C−6)、RMUはシーケンス処理を終
了する。
If a printer stop command is input from the reader (S-106-C-6), the RMU ends the sequence processing.

今、前述のインプットモードにより、例えばメモIJ 
BにA4サイズの画像情報が圧縮記憶されているとする
。そして、この画像情報を“メモリオーバレイモード゛
で伸長し、リーダからの画像情報と合成しプリンタに出
力することを考える。RMUの圧縮画像メモリからの伸
長画像は11(、MUモード指示2バイト目ビット5を
“0″にすることによって約50%の濃度でプリンタに
対して出力する。また、伸長画像を主走査方向にHpビ
ット、副走査方向に■Pビットの点を基準点として主走
査サイズHwビット、副走査サイズVwビットの画像領
をトリミングしてA4サイズに出力する場合のRMUモ
ード指示コマンド2バイト目は第25表のものを、また
、RMUメモリ指示コマンド2バイト目として第26表
のものを、RMUトリミング指示コマンド1からR,M
U)リミング指示コマンド6のトリミングデータ1から
トリミングデータ6までをビット、またはラインに変換
したものとして、それぞれHp 、VP 、HW、VW
、HM、VMという値がセットされリーダからR,MU
に対して出力サレル。RMUは第10図セレクタ1.セ
レクタ2.セレクタ3.セレクタ4.セレクタ5゜、 
 ビデオセレクタの選択をそれぞれR−VCLK。
Now, with the input mode mentioned above, for example, the memo IJ
Assume that A4 size image information is compressed and stored in B. Then, consider decompressing this image information in "memory overlay mode", combining it with the image information from the reader, and outputting it to the printer.The decompressed image from the RMU's compressed image memory is Setting bit 5 to "0" outputs the image to the printer at approximately 50% density.Also, the decompressed image is scanned in the main scan direction using the Hp bit point in the main scanning direction and the ■P bit point in the sub-scanning direction as the reference point. When trimming an image area of size Hw bits and sub-scanning size Vw bits and outputting it to A4 size, the 2nd byte of the RMU mode instruction command is the one in Table 25, and the 26th byte is the 2nd byte of the RMU memory instruction command. From RMU trimming instruction command 1 to R, M
U) Assuming that trimming data 1 to trimming data 6 of rimming instruction command 6 are converted into bits or lines, Hp, VP, HW, VW, respectively.
, HM, VM are set and R, MU are sent from the reader.
Output Sarel for. The RMU is selected by selector 1 in Figure 10. Selector 2. Selector 3. Selector 4. Selector 5°,
R-VCLK for video selector selection.

DVDO、LN−8T 、R−VB 、P−BD 。DVDO, LN-8T, R-VB, P-BD.

A3 、 B3 、をセレクトし、Di ther信号
にはLレベルをセットする。
A3, B3 are selected, and the Dither signal is set to L level.

さて、第34図において伸長画像Tの副走査移動方向を
判定する(S−106−G−1)。この結果Tの移動方
向が副走査方向と同じであれば第35図に進む。
Now, in FIG. 34, the sub-scanning movement direction of the expanded image T is determined (S-106-G-1). As a result, if the moving direction of T is the same as the sub-scanning direction, the process proceeds to FIG. 35.

そして、リーダからの紙サイズ指示コマンドを入力した
ならば圧縮画像の紙サイズとは別に記憶保持しておく、
PREQ信号、PRINT信号、VSREQ信号につい
ての処理は“メモリパスモード“。またはパスル−アウ
トモード゛と同じであるので省略する。記憶している紙
サイズ、トリミングデータをビット、ラインに変換した
。)(p 、VP 、HW、VW、HM、VMによりカ
ウンタの設定を以下のように行う。コンバレー1Q り14−4には4677、コンパレータ14−5には0
1 コンパレータ14−8には4677、ダウンカウン
タ13−1.13−2には4677− (Hp −MM
 )、カウンタ14−1には4677画像の移動方向が
副走査方向と同じ場合はり−ダからのVSYNCオンを
入力したと同時に(S−106−H−1)、プリンタへ
のVSYNCをオンし、(S−106−H−2)、V−
DEC信号をプリンタへ出力したVSYNCより(VM
−Vp)ラインおくれて、Hレベルにするため、ライン
カウンタをセットする( S−106−H−3)。ライ
ンカウンタアップの後(S−106−H−4)、副走査
Vpライン分子RM信号をLレベルにするため、コンパ
レータ14−6にIFFFHl コンパレータ14−7
に4677をセットする。
If a paper size instruction command is input from the reader, it is stored separately from the paper size of the compressed image.
Processing of the PREQ signal, PRINT signal, and VSREQ signal is in "memory pass mode." Or, it is the same as the pass-through mode, so it will be omitted. The stored paper size and trimming data were converted to bits and lines. ) (p, VP, HW, VW, HM, and VM set the counters as follows. 4677 for comparator 1Q ri 14-4, 0 for comparator 14-5.
1 4677 for comparator 14-8, 4677- for down counter 13-1.13-2 (Hp -MM
), when the movement direction of the 4677 image is the same as the sub-scanning direction, the counter 14-1 inputs VSYNC ON from the printer (S-106-H-1), and at the same time turns on VSYNC to the printer, (S-106-H-2), V-
From VSYNC that outputs the DEC signal to the printer (VM
-Vp) Set the line counter to set the line to H level (S-106-H-3). After the line counter is up (S-106-H-4), in order to set the sub-scanning Vp line molecule RM signal to L level, the comparator 14-6 is set to IFFFHl.
Set 4677 to .

HADR,DADRにそれぞれ4677.4G77−(
HM−Hp)をセットしくS−106−H−5)、V−
DEC信号をオンする(S−106−H−6)。
4677.4G77-(
HM-Hp) S-106-H-5), V-
Turn on the DEC signal (S-106-H-6).

トリミングするためにTRM信号を設定(S−106−
H−7)L、Vpライン分のカウンタをセツトし、カウ
ントアツプした後(S−106−T(−8、S−106
−H−9)、画像伸長が行なわれるようにTMR信号を
設定しくS−406−I−(=10)、ラインカウンタ
にVwラインセットしくS−106−H−11)、リー
ダの画像と伸長画像の合成を行い、Vwライン分の合成
動作を行っだ後(S−106−H−12)  伸長動作
を停止するためにV−1−DEC信号をオフする( S
−106−HLI 4 )。
Setting TRM signal for trimming (S-106-
H-7) After setting the counters for the L and Vp lines and counting up (S-106-T(-8, S-106
-H-9), Set the TMR signal so that image expansion is performed S-406-I- (=10), Set Vw line to the line counter S-106-H-11), Reader image and expansion After compositing the images and performing the compositing operation for the Vw line (S-106-H-12), turn off the V-1-DEC signal to stop the expansion operation (S
-106-HLI4).

次に、T領域をトリミングするために、T’RM信号を
生成するフンパレータのセットを行い、第25図すより
フンパレータ14−6は4677−HMとし、コンパレ
ータ14−7は4677−(HW+HM )とすル(S
’−106−I −’10 )。
Next, in order to trim the T area, a hump parator that generates a T'RM signal is set, and as shown in FIG. Sur (S)
'-106-I-'10).

これによりT領域が第22図(C)のt、の場所がらコ
ピー用紙に出力される。
As a result, the T area is outputted onto the copy paper at the location t in FIG. 22(C).

次に、コントローラ1o−2はT領域の副走査中のVw
ラインをラインカウンタ10−1’ 1により計数しく
 5−ro 6−I−1,1)、T@域域側画像信号ブ
リンクへ出力されたことを検出し、伸長動作を停止させ
るべく■DEc信号をoffl15 する(S−106−I−12)。
Next, the controller 1o-2 controls Vw during sub-scanning of the T area.
The lines are counted by the line counter 10-1' 1, 5-ro 6-I-1, 1), detecting that the T@ area side image signal is output to the blink, and DEc signal to stop the expansion operation. (S-106-I-12).

これでコントローラ10−2は圧縮画像データの伸長出
力を終了したので、リーダ10−1の画像が全てプリン
タ10−3に出力されるのを待つ(5−106−I−1
3)。リーダのPVSYNCがoffされたことを検出
しだらプリンタ1〇−3へのVSYNC(PVSYNC
)をoffl;プリンタ10−3への1枚の画像出力を
終了しくS−106−I−1,4)、設定枚数のコピー
が終了したか否かをチェックするために、既に説明した
第31図(S−106−C−6)に進む。
Now that the controller 10-2 has finished decompressing and outputting the compressed image data, it waits for all images of the reader 10-1 to be output to the printer 10-3 (5-106-I-1
3). When it is detected that the PVSYNC of the reader is turned off, the VSYNC (PVSYNC) to the printer 10-3 is
) off; to end the output of one image to the printer 10-3. Proceed to figure (S-106-C-6).

一方、伸長画像Tの副走査移動方向が、副走査方向と逆
の方向の場合は第34図の(S−106−G−1)から
第36図進み、第22図(C)の圧縮画像メモリからの
圧縮画像データを伸長したA4サイズの画像信号から副
走査画像位置V、−Vp。
On the other hand, if the sub-scanning movement direction of the decompressed image T is the opposite direction to the sub-scanning direction, the process advances from (S-106-G-1) in Fig. 34 to Fig. 36, and the compressed image in Fig. 22 (C) Sub-scanning image positions V, -Vp from an A4 size image signal obtained by expanding compressed image data from memory.

副走査画像中V2’=VwとしたTの領域をトリミング
して副走査紙始端からtlまでの距離■3−■Mの場所
に移動するとともに、リーダからの画像信号を合成して
プリンタに出力する場合に相当し、コントローラ10−
2以下の制御動作を第36図により実行する。
Trim the area T in the sub-scanning image where V2'=Vw and move it to a location at distance ■3-■M from the starting edge of the sub-scanning paper to tl, combine the image signals from the reader and output it to the printer. This corresponds to the case where the controller 10-
2 or less control operations are executed as shown in FIG.

T領域の主走査画像位置H,−Hp、主走査画像巾H2
= Hwと、T領域を主走査方向に移動させて主走査紙
始端から11までの距離Hs = HMとした場合、第
21図によりカウンタ14’−1(HADR)のロード
値は4677゜HA R,E A信号を発生するコンパ
レータ14−4には4677゜コンパレータ14−5に
は0をセットする。ディザカウンタを起動させるコンパ
レータ14−8には4677をセットし、ディザカウン
タ13−1’、13L−2には4677−(HM−HP
)をセットする(s−i06−I−1)。ここで)O8
YSをICLKとすべく5EL1(1o−18)をセッ
トしてさらに、メモリアドレスカウンタ1o−8にUの
圧縮画像データの先頭アドレスをセットして、V −D
 EC信号をon’l、、0画像め伸長を開始する。こ
こで、ラインカウンタ10−1’1により0画像が副走
査方向にコピー用紙からはみ出るライン長(Vp−VM
)ラインを計数しくS−106−I−3)、−担V−D
EC信号ヲoffし、伸長動作を中断する( 5−10
6−I−4)。
Main scanning image position H, -Hp of T area, main scanning image width H2
= Hw and the distance from the starting edge of the main scanning paper to 11 by moving the T area in the main scanning direction Hs = HM, the load value of the counter 14'-1 (HADR) is 4677° HA R as shown in FIG. , EA signals are set to 4677° in the comparator 14-4, and 0 is set in the comparator 14-5. 4677 is set in the comparator 14-8 that starts the dither counter, and 4677-(HM-HP
) (s-i06-I-1). here) O8
Set 5EL1 (1o-18) to set YS to ICLK, set the start address of compressed image data of U to memory address counter 1o-8, and read V-D.
Turn on the EC signal and start decompression for the 0th image. Here, the line counter 10-1'1 determines the line length (Vp-VM
) to count the lines S-106-I-3), -V-D
Turn off the EC signal and interrupt the expansion operation (5-10
6-I-4).

これ以降の画像伸長はリーダ1o−1のvsYNC(’
PVS’YNC)K同期シテリータ1゜−1Oクロ”/
 りで行うため、SEC’l (10’−18)により
08YSはRVCKを選択する。これによりリーダの画
像と、0画像を合成した時の主走査方向の画素の不ぞろ
いを防ぐことができる。
Image decompression after this is performed using vsYNC('
PVS'YNC) K synchronous siter 1゜-1O black"/
Since it is performed separately, 08YS selects RVCK by SEC'l (10'-18). This can prevent pixels from being misaligned in the main scanning direction when the reader image and the 0 image are combined.

この状態でリーダからのVSYNCを検出したらコント
ローラ1o−2はプリンタに、レジスト給K 信号P 
V 8 Y N Ctt出力すル’(S−1’06−I
−6)とともに、副走査にVMラインの間、伸長画像を
出力しないようにTRM信号をLレベルにする。
In this state, when VSYNC is detected from the reader, the controller 1o-2 sends the registration feed K signal P to the printer.
V 8 Y N Ctt output '(S-1'06-I
-6), the TRM signal is set to L level so as not to output an expanded image during the VM line in sub-scanning.

これは、コンパレータ14−6にIFFFHを、コンパ
レータ14−7に4677をセットすることで実現され
る(s−106−I−7)。この後、中断していた画像
伸長を開始するために、メモリアドレスカウンタ1o−
8の値は、そのままにして’11 V−DEc信号をO
nにする。ここで、T画像を出力するまでのVMライン
をラインカウンタ10−1.1で計数する(S−106
−I−9)。
This is achieved by setting IFFFH in the comparator 14-6 and 4677 in the comparator 14-7 (s-106-I-7). After this, in order to start the interrupted image expansion, the memory address counter 1o-
Leave the value 8 as it is and turn the '11 V-DEc signal O.
Make it n. Here, the line counter 10-1.1 counts the VM lines until the T image is output (S-106
-I-9).

このように、R,MUは、前述の4つのモード指定に応
じて動作するものである。
In this way, R and MU operate according to the four mode specifications described above.

尚、本実施例ではランレングス符号化した画像信号をそ
のまま記憶する様構成したが、このランレングス符号を
更にMH、MR等の圧縮動作を行ってもよい。また、圧
縮すべき画像信号は電話回線等を伝送されてきたもので
もよい。
In this embodiment, the run-length coded image signal is stored as it is, but the run-length code may be further subjected to compression operations such as MH and MR. Furthermore, the image signal to be compressed may be one transmitted over a telephone line or the like.

以上、本発明によると、ディザ処理された画像信号を効
率良く圧縮し記憶することが可能となるとともに、入力
する画像情報のサイズに従って圧縮のための前処理を行
うのでサイズに応じた圧縮処理が可能となる。
As described above, according to the present invention, it is possible to efficiently compress and store dithered image signals, and since preprocessing for compression is performed according to the size of input image information, compression processing according to the size can be performed. It becomes possible.

第2表     第3表 第4表 第  5  表 第6表     第7表 第8表 第9表 第10表     第11表 第12表    第13表 第14表    第15表 第16表 第18表 第19表 第20表     第21表 第22表    第23表 第24表 第25表    第26表Table 2 Table 3 Table 4 Table 5 Table 6 Table 7 Table 8 Table 9 Table 10 Table 11 Table 12 Table 13 Table 14 Table 15 Table 16 Table 18 Table 19 Table 20 Table 21 Table 22 Table 23 Table 24 Table 25 Table 26

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

第1図は本発明を適用した画像処理システムの構成例を
示す図、第2図はリーグによる画像読取り動作を説明す
る図、第3図はリーグの概略回路構成を示すブロック図
、第4図はプリンタの概略構成を示す図、第5図はプリ
ンタの概略回路構成を示すプロ・ンク図、第6図はビデ
オインターフェースの内容を示す図、第7図は画像信号
の伝送方式を示す図、第8図はビデオインターフェース
の各種信号を示す図、第9図は符号化動作の説明図、第
10図はRMUの詳細な構成を示すブロック図、第11
図はディザカウンタの構成図、第12図は主走査カウン
タデコーダの構成図、第13図は原稿画像のトリミング
状態を示す図、第14図は画像信号の圧縮動作を示すタ
イミングチャート図、第15図はメモリの記憶状態を示
す図、第16図はディザ圧縮の説明図、第17図は画像
信号の伸長動作を示すタイミングチャート図、第18図
は伸長エラ一時の動作を示すタイミングチャート図、第
19図は主走査方向に関わるトリミング動作は主走査方
向に関する画像の移動動作を示す図、第22図(a)、
(b)、(c)は副走査方向に関する画像の移動動作を
示す図、第23図はコマンドのシリアル通信の手順を示
すフローチャート図、第24図はステータスのシリアル
通信の手順を示すフローチャート図、第25図はコピー
動作以前の通信手順を示すフローチャート図、第26図
はリーグの動作を示スフローチャート図、第27図はプ
リンタの動作を示すフローチャート図、第28図はメモ
リ領域の状態を示す図、第29図〜第36図はRMUの
動作手順を示すフローチャート図であり、1−1はリー
グ、1−2はRMU、1−3はプリンタ、10−2はコ
ントローラ、10−4は圧縮回路、10−5は圧縮画像
メモリ、1O−6は伸張回路、10−15はダブルバッ
ファメモリ、10−23はビデオセレクタ、10−8は
メモリアドレスカウンタである。 S−/θ6−1−6 =953−
FIG. 1 is a diagram showing a configuration example of an image processing system to which the present invention is applied, FIG. 2 is a diagram explaining image reading operation by league, FIG. 3 is a block diagram showing a schematic circuit configuration of league, and FIG. 5 is a diagram showing the schematic configuration of the printer, FIG. 5 is a block diagram showing the schematic circuit configuration of the printer, FIG. 6 is a diagram showing the contents of the video interface, FIG. 7 is a diagram showing the image signal transmission method, Fig. 8 is a diagram showing various signals of the video interface, Fig. 9 is an explanatory diagram of the encoding operation, Fig. 10 is a block diagram showing the detailed configuration of the RMU, and Fig. 11 is a diagram showing the detailed configuration of the RMU.
Figure 12 is a configuration diagram of a dither counter, Figure 12 is a configuration diagram of a main scanning counter decoder, Figure 13 is a diagram showing a trimming state of an original image, Figure 14 is a timing chart diagram showing an image signal compression operation, and Figure 15 16 is an explanatory diagram of dither compression, FIG. 17 is a timing chart diagram showing the expansion operation of the image signal, and FIG. 18 is a timing chart diagram showing the operation when an expansion error occurs. Fig. 19 is a diagram showing the trimming operation related to the main scanning direction and the image movement operation related to the main scanning direction, Fig. 22 (a),
(b) and (c) are diagrams showing the image movement operation in the sub-scanning direction, FIG. 23 is a flowchart diagram showing the procedure of serial communication of commands, and FIG. 24 is a flowchart diagram showing the procedure of serial communication of status, Fig. 25 is a flowchart showing the communication procedure before the copy operation, Fig. 26 is a flowchart showing the operation of the league, Fig. 27 is a flowchart showing the operation of the printer, and Fig. 28 shows the state of the memory area. 29 to 36 are flowcharts showing the operation procedure of the RMU, in which 1-1 is the league, 1-2 is the RMU, 1-3 is the printer, 10-2 is the controller, and 10-4 is the compression The circuit includes a compressed image memory 10-5, an expansion circuit 10-6, a double buffer memory 10-15, a video selector 10-23, and a memory address counter 10-8. S-/θ6-1-6 =953-

Claims (1)

【特許請求の範囲】 ディザ処理された画像信号を記憶する手段と、上記記憶
手段に対する画像信号の記憶及び読み出しを制御する手
段と、上記記憶手段から読み出された画像信号を圧縮す
る手段とを有し、 上記制御手段はディザパターンの周期性と画像情報のサ
イズに基づいて上記記憶手段に対する画像信号の記憶制
御及び読み出し制御を行うことを特徴とする画像処理シ
ステム。
[Scope of Claims] Means for storing a dithered image signal, means for controlling storage and reading of the image signal in the storage means, and means for compressing the image signal read from the storage means. An image processing system, wherein the control means controls storage and readout of image signals in the storage means based on the periodicity of the dither pattern and the size of the image information.
JP60017010A 1985-01-31 1985-01-31 Picture processing system Pending JPS61176265A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP60017010A JPS61176265A (en) 1985-01-31 1985-01-31 Picture processing system
GB08602221A GB2172767B (en) 1985-01-31 1986-01-30 Image signal processing system
US07/319,921 US4884147A (en) 1985-01-31 1989-03-06 Image signal processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60017010A JPS61176265A (en) 1985-01-31 1985-01-31 Picture processing system

Publications (1)

Publication Number Publication Date
JPS61176265A true JPS61176265A (en) 1986-08-07

Family

ID=11932028

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60017010A Pending JPS61176265A (en) 1985-01-31 1985-01-31 Picture processing system

Country Status (1)

Country Link
JP (1) JPS61176265A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010000451A (en) * 2000-09-30 2001-01-05 이범형 Plating tank of water leakage prevention for device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010000451A (en) * 2000-09-30 2001-01-05 이범형 Plating tank of water leakage prevention for device

Similar Documents

Publication Publication Date Title
US4884147A (en) Image signal processing system
US7372599B2 (en) Image processor
US4814898A (en) Image signal processing system
EP0751675B1 (en) Image forming apparatus
JP2001119589A (en) Image processing unit and method, and image processing system
JP3029118B2 (en) Color image forming equipment
US20050073718A1 (en) Image forming method
US7099506B2 (en) Image data coding device, image data coding method, image forming apparatus, storage medium and program
JPS61176265A (en) Picture processing system
JPH08101850A (en) Composite image input/output device
JPS61176253A (en) Picture processing system
JPS61176264A (en) Picture processing system
JP2823155B2 (en) Image processing system
JPS61176262A (en) Picture processing system
US5387984A (en) Facsimile transmission method of transferring a multi-color original image and apparatus thereof
JPS61176287A (en) Picture processing system
JPS61176288A (en) Picture processing system
JPS61176291A (en) Picture processing system
JPS61176261A (en) Picture processing system
JPS61176278A (en) Picture processing system
JPS61176263A (en) Picture processing system
US6226470B1 (en) Method and apparatus for image formation using switchable image generators and density control
JPS61176290A (en) Picture processing system
JPS61176289A (en) Picture processing system
JPS61176266A (en) Picture processing system