JPS61176287A - Picture processing system - Google Patents

Picture processing system

Info

Publication number
JPS61176287A
JPS61176287A JP60017013A JP1701385A JPS61176287A JP S61176287 A JPS61176287 A JP S61176287A JP 60017013 A JP60017013 A JP 60017013A JP 1701385 A JP1701385 A JP 1701385A JP S61176287 A JPS61176287 A JP S61176287A
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
JP60017013A
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 JP60017013A priority Critical patent/JPS61176287A/en
Publication of JPS61176287A publication Critical patent/JPS61176287A/en
Pending legal-status Critical Current

Links

Landscapes

  • Facsimiles In General (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PURPOSE:To attain an effective abnormality measure even if an abnormality arises in the expansion of a compressed picture CONSTITUTION:A code 10-14 denotes a comparator and compares the up-count output M-ADR of a memory address counter 10-8 with.

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値信号で表わすためには、約4Mbyteの画像
信号が用いられる。従って、この画像信号を記憶するた
めには少なくとも同じbyt e数の記憶容量を持った
メモリを必要とする。
By the way, in order to represent an A3 size image as a binary signal with a resolution of 400 dpi, an image signal of approximately 4 Mbytes is 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
程度に減少でき、比較的小容量のメモリを用いればよい
ことになる。ところが、圧縮された情報量は画像により
不均一であり、従って、lラインを構成する情報量も同
一ではない。
Therefore, it is conceivable to compress the image when storing the image. According to this, the amount of information in a typical image is 1/10
This means that a relatively small capacity memory can be used. However, the amount of compressed information is non-uniform depending on the image, and therefore the amount of information constituting one line is also not the same.

そこで、この様に圧縮されて記憶された画像信号を伸長
する際には例えばライン同期を正確に取らねば伸長画像
に乱れを生じ、例えば、この様に乱れた伸長動作による
と良好な画像再生が不能である。
Therefore, when decompressing an image signal that has been compressed and stored in this way, for example, line synchronization must be maintained accurately, otherwise the decompressed image will be distorted. It is impossible.

本発明は以上の点に鑑みてなされたもので、圧縮画像信
号の伸長に際して伸長に異常が生じても効果的な異常対
策を実行することを目的とし、詳しくは圧縮画像を入力
する入力手段と、上記入力手段から入力された圧縮画像
を伸長して出力する伸長手段と、上記伸長手段における
伸長動作の異常を検出する手段と、上記検出手段により
上記伸長手段の伸長動作の異常を検出した場合、異常の
あった伸長画像に代えて、以前に伸長した異常のない伸
長画像信号を出力する手段と、伸長動作の異常の発生回
数をカウントする手段を有し、」二記カウント手段のカ
ウント値が所定数以上になったことにより上記伸長手段
の伸長動作または伸長画像の出力動作を停止する画像処
理システムを提供以下、本発明を図面を用いて詳細に説
明する。
The present invention has been made in view of the above points, and an object of the present invention is to implement an effective countermeasure against an abnormality even if an abnormality occurs in the expansion during expansion of a compressed image signal. , a decompression means for decompressing and outputting a compressed image inputted from the input means; a means for detecting an abnormality in the decompression operation of the decompression means; and a case where the detection means detects an abnormality in the decompression operation of the decompression means. , comprising means for outputting a previously expanded decompressed image signal with no abnormality in place of the decompressed image with the abnormality, and means for counting the number of times an abnormality has occurred in the decompression operation; DESCRIPTION OF THE PREFERRED EMBODIMENTS An image processing system is provided in which the decompression operation of the decompression means or the output operation of the decompressed image is stopped when the decompression means exceeds a predetermined number.

第1図は本発明を適用した画像処理システムであり、画
像読取り装置(以下リーダーと記す)1−1、画像記憶
装置(以下RMUと記す)■−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 RMU) -2, and an image forming device (hereinafter referred to as printer). It consists of 1-3.

主な機能としてリーダー1−1で読み取った画像信号を
プリンター−3で像形成するコピー機能、リーダー1−
1で読み取った画信号をRMUl−2に記憶するメモリ
入力機能、RMUI−2のメモリ内に記憶されている画
信号をプリンター−3において像形成するメモリプリン
トアウト機能がある。
The main functions include a copy function that forms an image on the printer 3 from the image signal read by the reader 1-1;
There is a memory input function for storing the image signal read in RMUI-1 in RMUI-2, and a memory printout function for forming an image in printer-3 from the image signal stored in the memory of RMUI-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, the binarized threshold signals generated from the threshold generators 3'-5 and 3-6 are compared with each other, and one of the two systems is
It is output as binary 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
, assuming that the threshold value from the threshold value generator B5-6 is 21, the binarized image signals VDA and VDB from the binarized comparator 3-3, 3-4 are as follows.

すなわち、A/Dコンバータ3−2からの出力がO〜2
0の場合はVDA=O,VDB=O1A/Dコンバータ
3−2からの出力が21〜41の場合はVDA=O,V
DB=1、A/Dコンバータ3−2からの出力が42〜
63の場合はVDA=1 、VDB=1となり、原稿か
らの画像信号はその反射濃度に応じて3つの状態VDA
=O,VDB=0、VDA=O,VDB=1、VDA=
1.VDB=1で表わされる。従って、画像信号は各画
素毎に3値でリーダーから出力される。尚、閾値ジェネ
レータA、閾値ジェネレータBからの閾値を等しくする
ことも可能で、これによシ2値の画像信号が出力される
。まだ、閾値コンパレータ3−5.3−6は従来公知の
組織的ディザ法によるディザマトリクス閾値を発生する
ことも出来、これによりVDA、VDBの3値化画像信
号で中間調を表現することも可能である。
That is, the output from the A/D converter 3-2 is O~2
If the output from A/D converter 3-2 is 21 to 41, VDA=O, V
DB=1, output from A/D converter 3-2 is 42~
In the case of 63, VDA=1 and VDB=1, and the image signal from the original has three states VDA and VDA depending on its reflection density.
=O, VDB=0, VDA=O, VDB=1, VDA=
1. It is represented by VDB=1. 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, so that a binary image signal is output. Furthermore, the threshold comparators 3-5 and 3-6 can also generate dither matrix thresholds using the conventional well-known systematic dither method, and thereby it is also possible to express halftones with ternary image signals of VDA and VDB. It is.

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

1−3のプリンタは従来から良く知られている静電記録
プロセスによるレーザービームプリンタであり第4図に
概略図を示す。第4図において、4−1は所定軸に関し
て回転する感光ドラム、4−2は画像信号をレーザー光
の0N−OFFに変換するレーザードライバー、4−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, 4-2 is a laser driver that converts an image signal into ON/OFF laser light, and 4-3
4-4 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 scans an electrostatic latent image on the photosensitive drum 4-1 formed by scanning the laser beam. Development unit that develops toner)
, 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 print paper pickup roller that picks up the print paper one by one from the print paper cassette 4-5. 4-8 is a transfer unit that transfers the toner image on the photosensitive drum 4-1 onto the print paper; 4-9 is a fixing unit that fixes the toner image transferred to the print paper on the print paper; -10 is a paper discharge tray from which the print paper on which the toner image has been fixed 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.

画信号出力装置はBD倍信号発生してからレーザ光が感
光ドラム2−2に到達するまでの時間待ってからV’D
信号を出力すれば、感光ドラム2−2上の適切な位置に
潜像が形成されることになる。
The image signal output device waits the time from when the BD double signal is generated until the laser beam reaches the photosensitive drum 2-2, and then outputs the V'D signal.
If the 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 reception device 6-2.A typical example of the image output device is the above-mentioned reader, and an example of the image reception device is a printer. 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ページ
分の区間信号であるVSYNC,1ラインの区間信号で
あるビデオイネプル(vE)、画像クロックVCLKか
らなる同期信号が伝送される。
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. A synchronization signal consisting of VSYNC, which is a section signal, video input (vE), which is a one-line section signal, and image clock VCLK, is transmitted.

これらの画像/画像同期信号は第7図に示す位相関係に
あり画像出力装置はBD倍信号受信すると第5図のBD
信号発生位置である光ファイバ5−8の受光端から感光
ドラム5−2の画像有効領域までの時間(レフトマージ
ン)をカウントした後、1ライン分の画像信号VDA。
These image/image synchronization signals have the phase relationship shown in FIG. 7, and when the image output device receives the BD double signal, the BD 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, one line worth of image signal VDA is obtained.

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

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

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

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

リーダーからの画像信号はビットシリアルな画情報であ
るので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′”の状態あるいは0”の状態の連続数をカウンタに
て計数した結果を画像信号として取扱うものであり、本
実施例ランレングス符号化の形式を第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 ° of the image signal.
The result of counting the number of consecutive 1''' states or 0'' states by a counter is handled as an image signal, and the format of run length encoding in this embodiment is shown in FIG.

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

また、7ビツトの2進形式ではランレングス(110の
連続数)はOビットから127ビツトまでしか表わすこ
とができないので、128ビツト以上のランレングスの
場合は、2バイト構成で表わす。この場合2バイトの一
方は128ビツトの整数倍のランレングスを表わすメイ
クアップコード(以下Mコードと記す)となり、残る1
バイトは0ピツトから127ビツトまでの端数を表わす
ターミネートコード(以下Tコードと記す)となる。こ
のメークアップコードとターミネートコードを区別する
ために(9−1)に示す如(bit 7を識別フラグと
して用い、1がMコード、0がTコードを示す。
Furthermore, in the 7-bit binary format, the run length (consecutive number of 110 bits) can only be expressed from O bits to 127 bits, so if the run length is 128 bits or more, it is expressed in a 2-byte configuration. 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 0 pit 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 image signal 4677 pits of one line corresponding to the main scanning length of 297 mm of an A3 size document is composed of a black and white 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 bits of black that appear 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. That is, it is encoded as M code (128×36)+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)に示す
EOLコード(End of Line −y−ド)を
用いている。このEOLコードはbit 7が1である
ため、Mコードのようであるが、Mコードでbit 6
からbit Oが全て1である場合は、16256ビツ
トの画像信号の連続を意味することになる。本実施例に
おいて1ラインのデータ長は最大4677ビツトであり
、Mコードでは必らずbit 6がOになるため、通常
のランレングス符号化で全てのビットが1に々るMコー
ドが発生することはなく、EOLコードとMコードは明
確に区別される。
Furthermore, an EOL code (End of Line -y-code) shown in (9-2) is used as a signal to separate one line. This EOL code looks like an M code because bit 7 is 1, but in the M code bit 6
If bit O is all 1, it means a continuous 16256-bit image signal. In this example, the maximum data length of one line is 4677 bits, and since bit 6 is always O in the M code, an M code in which all bits are 1 is generated by normal run-length encoding. There is no such thing, and the EOL code and M code are clearly distinguished.

とのBOLコードを加えて前述の白5ビット黒4672
ビットの4677ビツトの1ラインの画像信号は原信号
の約1/146の量に当る4バイトデータでメモリに書
き込まれることになる。尚、本符号化方法は白か黒かを
示すデータを符号中に持っていない。そのかわりに、1
ラインのデータは必らず白コードで初することとしてい
る。そして、Tコードを白から黒、黒から白へのデータ
の変化を示すコードとして兼用している。もし1ライン
が黒から初まる場合は白Oを表わすTコードOを黒コー
ドの前に付ける。また、画像の連続がちょうど128の
整数倍で、Mコードのみで符号化できる場合にも、色が
変化するという意味で白0を表わすTコードOを付ける
Adding the BOL code to the above white 5 bit black 4672
One line of image signal of 4677 bits is written into the memory as 4-byte data, which is about 1/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 O 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表の詳細な構成を示す図であり40−1
のリーダーが第1図における1−1のリーダーに、10
−3のプリンタが1−3のプリンタに、10−4の圧縮
回路が1−2−・1゜に、10−5の圧縮画像メモリが
1−2−2に、10−6の伸長回路が1−2−3におの
おの対応している。10−2はコントローラーでありマ
イクロプロセッサ及び周辺I10ボートデバイスから構
成されており、リーダー10−1、プリンタ10−3と
のシリアル通信、各種ビデオインターフェース制御信号
の入出力、RMU内部のセレクタの制御、カウンタ、コ
ンパレータ等への定数のセット、各種タイミング信号の
発生、RMU内部状態の取り込み等の機能を有する。
Figure 10 is a diagram showing the detailed structure of Table 1, and is 40-1.
The leader of 10 becomes the leader of 1-1 in Figure 1.
-3 printer is connected to 1-3 printer, 10-4 compression circuit is connected to 1-2-1°, 10-5 compressed image memory is connected to 1-2-2, and 10-6 decompression circuit is connected to 1-2-2. 1-2-3 respectively. 10-2 is a controller, which is composed of a microprocessor and a peripheral I10 boat device, 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 for decompressing the compressed image memo I710-5 color run length code into bit serial image data.

10−7はEOLコード検出回路で伸長中に起こるEO
Lエラーの検出、EOLエラーの修復、EOLコードの
読み飛ばしによる伸長時の画像の副走査方向の縮小を行
う。また、EOL検出回路はコントローラー10−2か
らの副走査伸長区間信号V−DECがアサートされた時
のみ動作する回路であシ、信号V−DECがネゲートさ
れている時にはEOL検出回路1〇−7の出力信号であ
るバッファチェンジイネーブル(Buff CHG B
NB )信号とデータイネープ/L/ (Data E
NB )信号はハイ(H)レベルに固定され、DH,P
2信号はロー(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 extension period signal V-DEC from the controller 10-2 is asserted, and when the signal V-DEC is negated, the EOL detection circuit 10-7 Buffer change enable (Buff CHG B
NB ) signal and data enable /L/ (Data E
NB ) signal is fixed at high (H) level, DH, P
2 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信号、DRPI信号
、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 of this counter 10-8 is the compression circuit 10-4, the expansion circuit 10-6, and the E
The DWP signal, DRPI 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-bit comparator 13-3.

11−3と13−2の2つのダウンカウンタで合計13
ビツトのアドレス信号DADRをダブルバッファメモリ
10−15に供給する。
Two down counters, 11-3 and 13-2, totaling 13.
A bit address signal DADR is supplied to double buffer memories 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−AREAを発生したり、ディ
ザカウンタ10−10のスタート信号DC8TA、BT
を発生したシ、ダブルバッファメモリ10−15へのア
ドレス(HADR)を発生したり、ダブルバッファメモ
リ10−15からの画像信号をトリミングする信号(T
R,M)を発生する。第12図に主走査カウンタ、デコ
ーダ10−12の詳細な構成を示す。
10-12 is a main scanning counter and a decoder which generates the compression/expansion section signal H-AREA for each line, and the start signals DC8TA and BT of the dither counter 10-10.
, generates an address (HADR) to the double buffer memory 10-15, and a signal (T) for trimming the image signal from the double buffer memory 10-15.
R, M) is generated. FIG. 12 shows a detailed configuration of the main scanning counter and decoder 10-12.

第12図において14−1は13ビツトのダウンカウン
タでカウントスタート値はコントローラ10−2によシ
設定され、5TART信号入力でカウントを開始する。
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 5TART signal.

14−2から14−8は夫々13ビツトのコンパレータ
で、カウンタ14−1の値がコントローラにより夫々設
定された値と等しくなった時にA=B出力を発生する。
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 becomes equal to the value set by the controller.

14−10から14−12はフリップフロップで14−
2から14−7のコンパレータの出力によりセット、リ
セットされる。
14-10 to 14-12 is 14- with flip-flop
It is set and reset by the outputs of comparators 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ゲー)10−
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-8 by the signal MOVER which is the A≦B output of 0-14.
It is detected that the force has reached the eight force value of the comparators 10-14. Also, in this state, the MOVER signal is in logic state 1 (
(hereinafter referred to as H level), the CLK input of the memory address counter 10-8 becomes the NOR game)10-
30, and the count-up operation of the memory address counter 10-8 is stopped.

10−15はメモリX、メモリYの各々1ライン分ずつ
のメモリからなるダブルバッファメモリであり、メモリ
XとメモリYは読出し動作と書き込み動作が互いに逆に
なる。またこのバッファの切り換えはBuffCHG信
号の入力により行なわれ、リードアドレス信号、ライト
アドレス信号はディザカウンタ10−10からのDAD
Rと主走査カウンタ・デコーダ10−12からのHAD
R,を適時用いている。
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 DAD from the dither counter 10-10.
R and HAD from main scanning counter decoder 10-12
R, is used from time to time.

10−16は伸長した画像信号をプリンタに出力するビ
デオクロックを発生する内部クロック発生部であ、IH
8YNc信号に同期してクロック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 8YNc signal.

10−17は水平同期信号発生部でありビデオインター
フェースを介してプリンタから入力されるBDと略同周
波数のIBD信号を出力する。プリンタ10−3からビ
デオインターフェースで規定されたBD倍信P−BDが
入力されない場合、とのIBD信号をセレクタ5EL5
10−22で選択することによりRMU内部の主走査同
期信号H8YNC、リーダーへのBD倍信R,−BDと
して用いる。
Reference numeral 10-17 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. If the BD double P-BD specified by the video interface is not input from the printer 10-3, the IBD signal is input to the selector 5EL5.
By selecting at 10-22, it is used as the main scanning synchronization signal H8YNC inside the RMU and BD double signals R and -BD to the reader.

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

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

10−20は主走査カランタデコーグ1〇−12のカウ
ント開始信号及びラインカウンタ10−11のクロック
入力として用いられるLN−8T信号のセレクタであり
セレクタ5EL510−22からのH8YNC信号とリ
ーダーからのR−VE倍信号コントローラー10−2か
らの指示によシ選択する。
10-20 is a selector for the LN-8T signal which is used as a count start signal for the main scanning calanta 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-VE from the reader. The selection is made according to instructions from the double signal controller 10-2.

10−21はプリンタに行く■E倍信P−VEのセレク
タで、主走査カウンタ・デコーダからのVEに相当する
OVE信号とリーダーからのVEm号R−VBをコン)
 o−ラ−10−2からの指示によシ選択する。
10-21 is the selector for E double signal P-VE that goes to the printer, and connects the OVE signal corresponding to VE from the main scanning counter decoder and the VEm number R-VB from the reader)
Select according to instructions from o-ler-10-2.

10−22は前述の如<H8YNCのセレクタであシ、
コントローラー10−2からの指示によシ選択される。
10-22 is the <H8YNC selector as described above,
The selection is made according to instructions from the controller 10-2.

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

マタ、ビデオセレクタ10−23でA1人力とB1人力
が選択されると、プリンタへ行く画像信号P−VDAに
は、リーダーからの画像信号R−VDAが出力され、P
−VDHには、リーダーらの画像信号R,−VDBをさ
らにANDゲート10−34を通した信号が出力される
When A1 manual power and B1 manual power are selected in 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
A signal obtained by further passing the image signals R and -VDB of the readers through an AND gate 10-34 is output to -VDH.

とのANDゲート10−34のもう一方の入力信号R−
HALFはコントローラー10−2からの信号である。
The other input signal R- of the AND gate 10-34 with
HALF is a signal from controller 10-2.

このR−HALFがHレベルであればプリンタに行く画
像信号P−VDBはリーダーからの画像信号R−VDB
と同じ信号になシプリンタに出力される記録画像VDは
第7図に示すようにリーダーからの画像信号R−VDA
、R−VDBを合成した画像となる。
If this R-HALF is at H level, the image signal P-VDB going to the printer is the image signal R-VDB from the reader.
The recorded image VD output to the printer is the same signal as the image signal R-VDA from the reader as shown in FIG.
, R-VDB are combined into an image.

R,−HALF信号が論理状態O(以下”Lレベル″と
記す)であればプリンタに行く画像信号P−VDBはL
レベルに固定される。このため第7図かられかるように
プリンタに出力される画像信号VDは1画素(1ビデオ
クロツク)区間に対して約50%のデユーティのVDA
信号が出力紙に記録される。これはR−HALF信号が
Lレベルの場合はHレベルの場合に対してレーザーユニ
ット5−4から発せられるレーザー光の点灯時間が約半
分に彦ることを意味し、R−HALF信号をLレベルに
することによりリーダーからの画像信号の約50Xの出
力画像濃度が得られる。
If the R, -HALF signal is in the logic state O (hereinafter referred to as "L level"), the image signal P-VDB going to the printer is L.
fixed at the 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 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 about 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 50X of the image signal from the reader can be obtained.

ビデオセレクタ10−23でA2人力とB2・入力が選
択されると、プリンタへ行く画像信号P=VDAはダブ
ルバッファメモリ10−15からの出力をANDゲー)
10=27.10−28を通した信号RMU−VDとな
る。またプリンタへ行く画像信号P−VDEけ信号RM
U−VD’lらKANDゲ−) 10−32を通した信
号となる。このANDゲート10−23のもう一方の入
力RMU−HALFけコントローラ10−2からの信号
であシ、このRMU−HALF信号がHレベルであれば
プリンタに行く画像信号P−YDBはP−VDAと同じ
信号となシプリンタに出力される記録画像VDは第7図
かられかるように画像信号RMU−VDによる2値画像
になる。RMU−HALF信号がLレベルであればプリ
ンタに行く画像信号P−VDBはLレベルに固定される
。すなわちP−VDAにはダブルバッファメモリ10−
15からの画像信号RMU−VDが伝送されるが、P−
VDBはLレベルの1まであるのでプリンタに出力され
る画像信号VDは第7図かられかるように、1画素(1
ビデオクロツク)区間に対して約50%のデユーティの
画像信号として出力紙に記録される。これはRMU、H
ALF信号がLレベルの場合はHレベルの場合に対して
レーザーユニット5−4から発せられるレーザー光のO
N時間が約半分になることを意味し、RMU−HALF
信号をLレベルにすることにより約50Xの出力画像濃
度が得られる。
When A2 manual input and B2 input are selected with the video selector 10-23, the image signal going to the printer P=VDA is an AND game of the output from the double buffer memory 10-15)
10=27.The signal passed through 10-28 becomes RMU-VD. Also, the image signal P-VDE signal RM going to the printer
The signal is passed through U-VD'l et KAND game) 10-32. The other input of this AND gate 10-23 is a signal from the RMU-HALF controller 10-2, and if this RMU-HALF signal is at H level, the image signal P-YDB going to the printer is the same as P-VDA. The recorded image VD outputted to the printer with the same signal becomes a binary image based on the image signal RMU-VD, as shown in FIG. If the RMU-HALF signal is at L level, the image signal P-VDB going to the printer is fixed at L level. In other words, the P-VDA has a double buffer memory 10-
The image signal RMU-VD from 15 is transmitted, but the image signal RMU-VD from P-
Since VDB is up to L level 1, the image signal VD output to the printer is 1 pixel (1
The image signal is recorded on the output paper as an image signal with a duty of about 50% for the video clock section. This is RMU, H
When the ALF signal is at the L level, the O of the laser light emitted from the laser unit 5-4 is lower than when the ALF signal is at the H level.
This means that N time is approximately halved, and RMU-HALF
By setting the signal to L level, an output image density of about 50X can be obtained.

ビデオセレクタ10−23でA3人力と83人力が選択
されると、ORゲート10−31゜10−32の働きに
よりプリンタに行く画像信号P−VDA、P−VDBは
リーダーからの画像信号R−VDA、R−VDBとダブ
ルバッファメモリ10−15よシの画像信号R,MU−
VDを合成したものとなる。ことで前述のR,−HAL
F信号、R,MU−HALF’信号を任意に組み合わせ
ることによりプリンタに出力される画像信号VDは表1
のようになる。
When A3 manual power and 83 manual power are selected by the video selector 10-23, the image signals P-VDA and P-VDB sent to the printer by the action of OR gates 10-31 and 10-32 are converted to the image signal R-VDA from the reader. , R-VDB and the image signals R, MU- of the double buffer memory 10-15
It is a composite of VD. Therefore, the above-mentioned R,-HAL
Table 1 shows the image signal VD output to the printer by arbitrarily combining the F signal, R, and MU-HALF' signals.
become that way.

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

1o−3sは伸長エラーカウンタであり10−6の伸長
回路による伸長エラーのライン数を計数する。
1o-3s is a decompression error counter that counts the number of lines in which decompression errors occur by the decompression circuit 10-6.

以上のように構成された本実施例の基本的な機能は以下
の4つである。
The basic functions of this embodiment configured as described above are as follows.

(1)(2値圧縮) リーダー10−1からの固定閾値による画像信号R−V
DAの任意の部分を2値圧縮処理し、圧縮画像メモI7
10−5に書き込む機能。尚、原稿全域の画像信号をメ
モIJ 10−5に書込む場合もこれの応用である。
(1) (Binary compression) Image signal R-V with fixed threshold from reader 10-1
Perform binary compression processing on any part of DA to create a compressed image memo I7
A function to write to 10-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−VDAの任意の部分をディザ圧縮処理し圧縮
画像メモI710−5に書き込む機能。
(2) (Dither compression) A function to perform dither compression processing on an arbitrary part of the image signal R-VDA according to the dither matrix threshold value from the reader 10-1 and write it in the compressed image memo I710-5.

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

(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.

(1)2値圧縮の機能 リーダーから入力される画像信号は第7図のように主走
査1ラインを表わすVE倍信号同期信号として伝送され
て来る。そしてVSYNC信号によシ1ページ分の副走
査区間が表わされる。このVB倍信号第10図において
はR−VE倍信号表現されている。
(1) Binary compression function The image signal input from the reader is transmitted as a VE multiplied signal synchronization signal representing one main scanning line as shown in FIG. A sub-scanning section for one page is expressed by the VSYNC signal. This VB 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 (400dpi )の分
解度のA3サイズ(主走査297 mm(4677ビツ
トに対応)、副走査420mm)の画像情報Aから主走
査方向に7 Q mm 、副走査方向に100 mm経
過した点から140mmX210mmの画像情報Bをト
リミングして2値圧縮する場合を例に取って説明を行う
Below, the image information A of A3 size (main scan 297 mm (corresponding to 4677 bits), sub scan 420 mm) with a resolution of 400 dots/1 nch (400 dpi) transmitted from the reader as shown in Figure 13 is transferred to the main image. An example will be explained in which image information B of 140 mm x 210 mm is trimmed and binary compressed from a point after 7 Q mm in the scanning direction and 100 mm in the sub-scanning direction.

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

リーダー10−1から送られて来る画像信号R−VDA
を圧縮処理するためにRMU内部で用いるクロック5S
YSとしてリーダー10−1からのクロックR−VCL
Kを選択すべり1O−18SEL1を設定する。
Image signal R-VDA sent from reader 10-1
Clock 5S used inside RMU to compress
Clock R-VCL from reader 10-1 as YS
Select K and set slide 1O-18SEL1.

リーダー10−1から入力された画像信号R−VDAl
d−担タプルバックアメモリ10−15にライン毎に蓄
えられ、その出力は圧縮回路10−4に入力される。そ
のため、ダブルバッファメモリ10−15に入力される
画像データを几−VDAにすべく1o−19SEL2を
設定する。
Image signal R-VDA1 input from reader 10-1
The data is stored line by line in the d-tuple backup memory 10-15, and its output is input to the compression circuit 10-4. Therefore, 1o-19SEL2 is set so that the image data input to the double buffer memory 10-15 is 几-VDA.

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

次に主走査カウンタ・デコーダ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−AR,EA倍信号圧縮回路10
−4に与えられ、圧縮回路10−4はこの信号がHレベ
ルの主走査区間中の画像データをランレングス符号化処
理し、圧縮画像メモIJIO−5に書き込む。
Comparator 1 sets the main scanning direction of area B in Figure 13.
Performed on 4-4 and 14-5. That is, the H-AR, EA double signal compression circuit 10 from the flip-flop 14-11 is set and reset by the outputs of these two comparators.
-4, and the compression circuit 10-4 performs run-length encoding processing on the image data during the main scanning period when this signal is at H level, and writes it into the compressed image memo IJIO-5.

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

コンパレータ14−8からの出力DO8TAB’I’に
よりディザカウンタ10−10が動き出すわけであるが
、14−1のダウンカウンタとディザカウンタ10−1
0を同時に動作させるべく、コンパレータ14−8には
4677をセットする。
The output DO8TAB'I' from the comparator 14-8 starts the dither counter 10-10, and the down counter 14-1 and the dither counter 10-1
In order to operate 0 at the same time, 4677 is set in comparator 14-8.

ディザカウンタ10−10には、以下の定数設定を行う
。すなわちカウンタ13−1.13−2にはカウント開
始値4677をセットし、また2値圧縮を行うために]
)i fheの信号をLレベルにする。これによりディ
ザカウンタ10−10はダウンカウンタ14−1と同様
の動作を行う。
The following constants are set for the dither counter 10-10. In other words, in order to set the count start value 4677 in the counters 13-1 and 13-2 and perform binary compression]
) i Set the fhe signal to L level. Thereby, 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 .

HADRは共にR−VE倍信号立ち上りにより4677
からカウントダウンすることになる。
Both HADR is 4677 due to R-VE double signal rising.
There will be a countdown from.

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

伸長回路10−6.EOL検出回路10−7に与えられ
る伸長開始信号V−DECはLレベルであるので、DB
、PI信号DRP2信号はLレベルであシ、Buff 
CHG ENB信号、 DataBNB信号はHレベル
となり伸長回路10−6゜EOL検出回路10−7は、
圧縮動作に影−を与えないように構成されている。
Expansion circuit 10-6. Since the expansion start signal V-DEC given to the EOL detection circuit 10-7 is at L level, the DB
, PI signal DRP2 signal is L level, Buff
The CHG ENB signal and DataBNB signal become H level, and the expansion circuit 10-6°EOL detection circuit 10-7
It 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 up to area B in FIG.

ラインカウンタ10−11はLN−8T信号によりカウ
ントダウンし、すなわち、リーダーからの主走査区間信
号R,−VEが1574回入力されると、ラインカウン
タ10−11はカウントup信号をコントローラー10
−2に発し、コントローラーはリーダーからの画像信号
がB領域に入ったことを検出する。それによりコントロ
ーラーは圧縮回路10−4に画像圧縮を開始させるべ(
V−BNCをLレベルからHレベルにするとともに、B
領域の副走査長210mmを測定するため、ラインカウ
ンタ10−11に210 mm分に相当する3307を
セットする。
The line counter 10-11 counts down in response to the LN-8T signal, that is, when the main scanning section signals R and -VE 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. Thereby, the controller should cause the compression circuit 10-4 to start compressing the image (
While changing V-BNC from L level to H level,
In order to measure the sub-scanning length of the area of 210 mm, 3307 corresponding to 210 mm is set in the line counter 10-11.

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

このように、リーダー10−1から連続的に入力される
画像信号R−VDAは主走査方向には主走査カウンタデ
コーダ10−12から発せられるH−AREAがHレベ
ルの任意の区間、まだ副走査方向にはコントローラー1
0−2が発するV−ENCがHレベルの任意の区間にト
IJ ミンクされつつ圧縮回路10−4により符号化さ
れ、圧縮画像メモIJIO−5に書き込まれる。
In this way, the image signal R-VDA that is continuously input from the reader 10-1 has an arbitrary interval in the main scanning direction where H-AREA emitted from the main scanning counter decoder 10-12 is at H level, and is still in the sub-scanning direction. Controller 1 in the direction
The V-ENC issued by 0-2 is encoded by the compression circuit 10-4 while being tuned to an arbitrary section of H level, and written to the compressed image memo IJIO-5.

この様子を第′14図に示す。第14図におけるR−V
DAは、ある1ラインの画像信号の入力の例であるがあ
るラインのトリミング領域に′おける画像信号として白
2ビット、黒2204ビット、白5ビットと入力された
場合を示している。このR−VDA入力により圧縮回路
1〇−4において5バイトのランレングスコードが生成
される。すなわち、最初の白2により2HのTコード、
次に黒2204によりMコード91H,Tコード15H
1最後の白5により5HのTコード、さらにGH−AR
EAの終了によるEOLコードが生成され、圧縮回路1
0−4からの書込み要求DWPパルスにより圧縮画像メ
モリ10−5に書き込まれる。
This situation is shown in Figure '14. R-V in Figure 14
DA shows an example of inputting an image signal of one line, in which 2 bits of white, 2204 bits 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 the compression circuit 10-4 by this R-VDA input. In other words, the first white 2 creates a 2H T code,
Next, with black 2204, M code 91H, T code 15H
1 The last white 5 gives the 5H T code, and then GH-AR
An EOL code is generated due to the end of EA, and compression circuit 1
The data is written into the compressed image memory 10-5 by the write request DWP pulse from 0-4.

圧縮画像メモリ10−5をアドレッシングするのがメモ
リアドレスカウンタ10−8であり、DWPパルスがゲ
ート10−29.10−30を通った信号によりカウン
トアツプする。
A memory address counter 10-8 addresses the compressed image memory 10-5, and is counted up by a signal from which the DWP pulse passes through the gates 10-29 and 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 drastically 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 memo January 0-5 as shown in Figure 15, a part of the previously written compressed image data T is newly written. A situation arises in which the image data U is corrupted. 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
)が記憶されている状態でアドレス8EとアドレスT8
の間に圧縮画像Uを書き込む場合コントローラー10−
2は書き込み開始アドレスUSを圧縮画像Sのエンドア
ドレスSEに基づいてメモリアドレスカウンタ10−8
に設定、シ、アドレスリミッタとして圧縮画像Tの開始
アドレスTSをコンパレータ1〇−14に設定する。書
き込みが進行してアドレスカウンタ10−8のカウント
出力が、コンパレータ10−14のTS値に達するとコ
ンパレ−タのA≦B出力が発生し、ゲー)10−30に
おいて新らたな書き込み要求パルスDWPけゲートされ
メモリアドレスカウンタは停止し更なる書込み動作が禁
止される。これにより圧縮画像Tは保護される。まだコ
ントローラ10−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 8E and address T8
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 SE of the compressed image S.
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 prohibited. This protects the compressed image T. Controller 10-2 still receives A from 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, the memory area where the image data could not be 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は画像圧縮終了時にMo ve
 r信号を判定し、Mover信号が発生されていない
ことを検出した場合、画像圧縮書き込みが成功したと判
別し、メモリアドレスカウンタ10−8からのアドレス
出力MADRを読み込み、今回書き込んだ圧縮画像の終
了アドレスとしてコントローラーの内部メモリに保持し
、次回の圧縮画像の書き込み開始アドレスの設定に用い
る。
The controller 10-2 moves when image compression is completed.
If the r 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, the address output MADR from the memory address counter 10-8 is read, and the currently written compressed image is terminated. This address is stored in the controller's internal memory and used to set the start address for writing the next compressed image.

また同様にメモリアドレスカウンタ10−8に設定した
書き込み開始、終了アドレスもコントローラーは保持し
て、圧縮画像データの伸長出力時に用いる。
Similarly, the controller also holds 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 an image compression method that encodes the continuity of images.

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

第16図においてディザ処理された画像信号は(16−
1)のようにリーダー10−1から入力される。本実施
例では、■ブロック当り8×8のディザマトリクスを用
いておりその詳細は(16−2)図aブロックに示す0
仮りに、リーダーから読み取られた画像信号が均一に3
2レベルのものであった場合、デイザマ) IJクスの
閾値の値が32以上のところに黒信号が出力され、(1
6−2)のディザマトリクスにより(16−1)に模式
的に示すような画像を得る。
In FIG. 16, the dithered image signal is (16-
1) is input from the reader 10-1. In this example, an 8×8 dither matrix is used per block.The details are (16-2)
Suppose that the image signals read from the reader are uniformly divided into 3
If it is of level 2, a black signal will be output where the threshold value of IJ (Dazama) is 32 or more, and
An image as schematically shown in (16-1) is obtained using the dither matrix of (6-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ブロツクの間18回の状態変化が
発生している。この状態変化の回数は、ブロック数に比
例し、A4巾297mmでは1168回の状態変化が発
生することになシランレングス符号化によ、91170
バイトの符号化データ量となってしまう。この1170
バイト//′i原画像量4677ビツトの約2倍のデー
タ量でありかえって画像情報量が増えてしまうことにな
る。
Here, the main scanning line signal indicated by H is R of (16-4)
As for the VDA signal, 18 state changes occur during 4 blocks. The number of state changes is proportional to the number of blocks, and for A4 size 297 mm, 1168 state changes occur.With silan length encoding, 91170
The amount of encoded data is in bytes. This 1170
Byte//'i is approximately twice the amount of data as the original image amount of 4677 bits, which results in an increase in the amount of image information.

そこで(16−2)のHラインから得られる画像信号を
(16−3)のように同じ閾値で処理された画像信号を
抽出してブロック順に並らべ変えることによシイブロッ
ク間で、(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 them in block order, between the blocks ( As shown in EVDO 16-4), the state changes twice. In other words, as shown in (16-3), signals based on the same threshold value for each block have little variation in black or white status, so arranging them consecutively can improve the continuity of the image. become.

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

リーダーからのディザ画像信号RVDAは、主走査カウ
ンタ・デコーダ10−12のアドレス制御によりダブル
バッファメモリ10−15にリーダーらの入力順に書き
込まれる。   ゛本実施例ではディザパターンの主走
査の繰り返しが8ビット間隔なので、デイザカウンタ1
0−10は、ダブルバッファメモリ10−15から画像
データを読み出す時に8ビット間隔にダウンカウントし
て読み出す。この8ビット間隔の読み出しは第11図に
示されるコントローラー10−2からの])i the
r  信号によってなされる。またコントローラー10
−2は(16−1)に示す主走査圧縮ブロック数Nによ
り、13−2のカウンタ設定値からN−1を引いた値を
コンパレータ13−3に設定する。この圧縮ブロック数
Nは圧縮回路10−4に与えられる主走査圧縮データ長
を示すH−A RE A信号の長さに対応しており(H
−AREA信号ビット長)=N×8となる。
Dithered image signals RVDA from the readers are 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.゛In this embodiment, since the main scanning of the dither pattern is repeated at 8-bit intervals, the dither counter 1
When reading image data from the double buffer memory 10-15, 0-10 is counted down at 8-bit intervals and read out. This 8-bit interval reading is performed from the controller 10-2 shown in FIG.
r signal. Also controller 10
-2 sets the value obtained by subtracting N-1 from the counter setting value of 13-2 to the comparator 13-3 according to the number N of main scanning compression blocks shown in (16-1). This number of compressed blocks N corresponds to the length of the H-A RE A signal indicating the main scanning compressed data length given to the compression circuit 10-4 (H
-AREA signal bit length)=N×8.

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

す々わち、カウンタ13−2でブロック数Nをカウント
し、カウンタ13−1で、各ブロック内の何番目の閾値
による画像信号かを指定する。このように、ディザマト
リクスの主走査ブロック長はコンパレータ13−3によ
って任意のNを選択することが可能であり主走査方向に
任意の長さの画像信号のディザ圧縮に対応することがで
きる。
That is, the counter 13-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 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領域からの圧縮画像信号が圧縮画像
メモIJ 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 FIG. As an example, assume that the compressed image is stored in area B and outputs the compressed image to area B of an A3 output sheet having the size of area A.

コントローラー10−2はB領域の画像伸長出力に先た
ち、副走査方向の先端100mmの余白を作るためにプ
リンタ10−3にA3の出力用紙を先行給紙させる。す
なわち、第4図においてプリンタは感光ドラムの転写位
置すからレーザー露光される点aまでの距離と、bから
レジスト給紙点C−1での距離が等しくなるように構成
されているため4−7のレジストローラーでA3の出力
用紙を送り出して、lQQmmの副走査紙送りの後に伸
長動作を開始し、第13図の8画像を出力する。そのた
め、コントローラー10−2はプリンタにレジスト給紙
信号vSYNCを出力した後、ラインカウンタ10−1
1に100mmに相当するライン数をセットする。この
値は400 dpiの解像度で1574ラインと々る。
Prior to outputting the expanded image of area B, 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 end in the sub-scanning direction. 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 a is equal to the distance from b to the registration paper feeding point C-1. The A3 output paper is sent out using the registration roller 7, and after the sub-scanning paper is fed by 1QQmm, the expansion operation is started, and the 8 images shown in FIG. 13 are output. Therefore, after the controller 10-2 outputs the registration paper feed signal vSYNC to the printer, the line counter 10-1
Set the number of lines corresponding to 100 mm to 1. This value reaches 1574 lines at a resolution of 400 dpi.

画像伸長時のライン同期信号LN−8Tは10−20の
5EL3.10−22のSgI、5によってプリンタか
らのBD倍信P’−BDが選択される。まだ内部クロッ
ク+2’sysは、1.0−22の5EL5により選択
されだH8YNCに同期して内部クロック発生部10−
16で発生されるI−CLKを10−18の5BLIで
選択する。
The line synchronization signal LN-8T during image expansion is 5EL3 of 10-20. BD doubling P'-BD from the printer is selected by SgI and 5 of 10-22. The internal clock +2'sys is still selected by 5EL5 of 1.0-22.In synchronization with H8YNC, the internal clock generator 10-
The I-CLK generated at 16 is selected at 5BLI at 10-18.

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

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

以下1ラインの画像伸長動作を第17図により説明する
。HA D R,値がAのときにプリンタに対するビデ
オイネーブル信号としてのOVE信号がHレベルになる
ものとして、主走査カウンタデコーダー10−11のダ
ウンカウンタ14−1には前述のレフトマージン量に対
応した値LMG(173ビツト)を考慮したA+LMG
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 value of HA D R is A, the down counter 14-1 of the main scanning counter decoder 10-11 has a value corresponding to the left margin amount described above. A+LMG considering the value LMG (173 bits)
.

コンパレータ14−2にはAをセットする。コンパレー
タ14−3にはA−4676、コンノくレータ14−4
にはA、コンパレータ14−5にはA−2203,コン
パレータ14−6にばB、コンパレータ14−7にはB
−2203゜カウンタ14−1がAになった時にディザ
カウンタ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 for comparator 14-5, A-2203 for comparator 14-5, B for comparator 14-6, and B for comparator 14-7.
A is set in the comparator 14-8 so that when the -2203° counter 14-1 reaches A, the dither counters 13-1 and 13-2 start operating. 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信号が入力されるとLN−
’ST信号が発生し、主走査カウンタデコーダ10−1
2のHADR,はA+LMGからカウントダウンし、ク
ロックをLMGカウントし、HADRがAに々るとOV
E信号、 HAR,EA倍信号DC8’l”AR’r信
号が発生する。
When the PBD signal is input from the printer 10-3, LN-
'ST signal is generated, main scanning counter decoder 10-1
2 HADR, counts down from A+LMG, counts the clock to LMG, and when HADR reaches A, OV
E signal, HAR, and EA multiplied signal DC8'l''AR'r signal are generated.

このL M GはプリンタのBDセンサから感光ドラム
の画像有効部までの主走査長に相当するクロック数であ
り、OVE信号がHレベル区間にプリンタに出力された
画像信号が出力用紙上にプリントされる。
This LMG is the number of clocks corresponding to the main scanning length from the BD sensor of the printer to the effective image area of the photosensitive drum, and the image signal output to the printer during the H level section of the OVE signal is printed on the output paper. Ru.

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

0■Eの立ち上りと同時に伸長回路10−6゜BOL検
出回路10−7に与えられるH−AR。
H-AR is applied to the expansion circuit 10-6°BOL detection circuit 10-7 at the same time as 0■E rises.

BA倍信号Hレベルになり伸長回路10−6による圧縮
画像MRコードの伸長が開始される。
The BA double signal becomes H level and the expansion circuit 10-6 starts expanding the compressed image MR code.

伸長回路10−6は副走査伸長区間信号V−DEC,主
走査伸長区間信号H−AREAがHレベルの区間圧縮画
像メモIJ 10−5から圧縮画像MRコードを読み取
りコードを図示しないデコードカウンタに取シ込み、l
5Ys クロックによってカウントダウンして伸長画像
DVDOを発生する。すなわち第17図に示すようにM
RコードのTコード2Hを取シ込み〆SYS  2クロ
ツク分白信号のDVDOを出力する。5sys  2ク
ロツクによりデコードカウンタはカウントアツプして、
圧縮画像要求信号DRP1を発生し、圧縮画像メモリ1
0−5より次のMFLコードを読み出し、DVDOの出
力を反転させる。
The decompression circuit 10-6 reads the compressed image MR code from the section 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 stores the code in a decode counter (not shown). Ink, l
A decompressed image DVD is generated by counting down with the 5Ys clock. That is, as shown in FIG.
Take in the T code 2H of the R code and output the DVD with the SYS 2 clock white signal. The decode counter counts up by the 5sys 2 clock,
Generates a compressed image request signal DRP1 and stores the compressed image memory 1
Read the next MFL code from 0-5 and invert the DVD output.

次に入力されるMRコードは91HでMコードであるの
でl’sYsクロックを2176クロツク計数してDI
’(、PLを発生する。しかし、MコードとTコードは
ペアなのでこの時点でDVDOは反転させないで次のT
コード15Hのカウントアツプによp DVDOを反転
させる。このように、HAREAがHレベルの区間に画
像の伸長が行われディザカウンタ10−10よシのDA
DRによってダブルバッファメモリ10−15に伸長画
像DVDOが書き込まれる。そして、このDVDO信号
が次のラインにおいてHADRのアドレス8点から読み
出されるように、ディザカウンタのカウント開始値はB
が設定される。まだ、第11図のディザカウンタは2値
伸長のだめl)i ther 信号はLレベルが設定さ
れる。
The next input MR code is 91H, which is an M code, so the l'sYs clock is counted 2176 clocks and the DI
'(, PL is generated. However, since the M code and T code are a pair, the DVD is not reversed at this point and the next T code is generated.
The p DVD is reversed by the count up of code 15H. In this way, the image is expanded during the period in which HAREA is at the H level, and the DA of the dither counter 10-10
The expanded image DVDO is written into the double buffer memory 10-15 by DR. Then, the count start value of the dither counter is set to B so that this DVD signal is read from the 8 addresses of HADR on the next line.
is set. However, the dither counter in FIG. 11 cannot perform binary expansion.l) The i ther signal is set to L level.

画像伸長時のHAREA信号の長さは、B領域の画像圧
縮時に用いたH−ATtEAと同じりロック数出力され
るように、コンパレータ14−4.14−5は設定され
るが、このMAR,EA倍信号立ち下り時に、現ライン
の伸長動作の成功、不成功をBOL検出回路10−7に
て判定される。
The comparators 14-4 and 14-5 are set so that the length of the HAREA signal during image expansion is the same as the H-ATtEA used when compressing the image of area B, and the number of locks is output. At the falling edge of the EA multiplication signal, the BOL detection circuit 10-7 determines whether the expansion operation of the current line is successful or unsuccessful.

伸長動作の成功の判定は、HAR,EA倍信号立ち下り
と、次のMRコードがEOLであることと、その時点で
伸長回路10−6のデコードカウンタがカウントアツプ
してDH,PL倍信号発生していることの3つの状態が
そろっていることで行う。これは圧縮回路からのMWコ
ード信号を圧縮画像メモり10−5に書き込む時あるい
はMRコードを圧縮画像メモリから読み出す時にコード
に誤りが含まれる可能性があるからであり、MRコード
に誤シがある場合は外部からの正確な区間信号HARE
Aの終了と、1コードの伸長動作の終了であるDRPI
パルスの発生と、ライン終了コードEOLが一致し々く
なるのである。ここで上記3つの状態が一致し、伸長エ
ラーがなかったことを判定してEOL検出回路10−7
は、次のラインのために次ラインの先頭のMRコードを
読み出すように、DRP2を発生する。
The success of the decompression operation is determined by the fall of the HAR and EA double signals, the fact that the next MR code is EOL, and at that point the decode counter of the decompression circuit 10-6 counts up and generates the DH and PL double signals. We do what we are doing when all three conditions are present. This is because the code may contain an error when writing the MW code signal from the compression circuit to the compressed image memory 10-5 or when reading the MR code from the compressed image memory. If there is, an accurate interval signal HARE from the outside
DRPI which is the end of A and the end of the decompression operation of one code
The generation of the pulse and the line end code EOL tend to coincide. Here, it is determined that the above three conditions match and there is no decompression error, and the EOL detection circuit 10-7
generates DRP2 to read the MR code at the beginning 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レベルの時はBO
L検出回路からのDECENB信号とBuff CHG
ENB信号はHレベルであシダプルバッファメモリの切
り替えを行うBuffCHG信号は常に発生する。また
Data ENB信号はこの時Lレベルであシプリンタ
に出力される画像信号RMU−VDI′1ANDゲート
10−28によシLレベルに固定される。
In FIG. 18, the line synchronization signal PBD inputted 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. When the sub-scanning expansion section signal V-DEC from the controller 10-2 is at L level, BO
DECENB signal from L detection circuit and Buff CHG
The ENB signal is at H level, and the BuffCHG signal for switching the cedar pull buffer memory is always generated. Further, the Data ENB signal is at L level at this time and is fixed at L level by the image signal RMU-VDI'1 which is output to the printer by AND gates 10-28.

コントローラ10−2は画像伸長を行うべくV−DEC
信号をHレベルにし、以下HAREA1、HAREA 
、2.・・・・・・HAREA  9  と順にライン
単位の画像伸長動作が行われる。画像伸長時にはHAR
,EA領領域3つの状態に分かれる。すなわち、正常の
伸長動作を行うXの状態と、伸長エラーの発生したyの
状態と、EOL検出回路からのDECENBがLレベル
の伸長エラーリカバー状態2である。
The controller 10-2 uses V-DEC to perform image expansion.
Set the signal to H level, then HAREA1, HAREA
, 2. . . . The line-by-line image expansion operation is performed in the order of HAREA 9. HAR when decompressing images
, the EA area is divided into three states. That is, the X state in which a normal decompression operation is performed, the y state in which a decompression error occurs, and the decompression error recovery state 2 in which DECENB from the EOL detection circuit is at L level.

V−DEC信号がHレベルになった次のラインHARE
AIから伸長回路10−6において画像伸長が開始され
る。第18図のように最初のHAREAlで伸長エラー
が発生(yの状態)とすると、EOL検出回路10−’
7はHAR,EAlの後端でBuff CHG ENB
信号とDECENB信号をLレベルにして、次のライン
HAREA2ではダブルバッファメモリの切り替えと伸
長回路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 AI. As shown in FIG. 18, if an expansion error occurs in the first HAREAL (state y), the EOL detection circuit 10-'
7 is Buff CHG ENB at the rear end of HAR, EAL
The signal and the DECENB signal are set to L level, and in the next line HAREA2, the double buffer memory is switched and the expansion operation of the expansion circuit 10-6 is stopped, and EOL detection processing for recovery from expansion errors is performed (state 2). .

tOL検出回路10−7は、伸長エラーリカバーとして
HAREAがHの区間MRコードとしてEOLコードF
PHを検出するまでDRP2信号を繰り返し発生させる
。EOLコードを検出することにより圧縮画像データと
HAREA信号との同期関係が回復したことになり次の
HAREA3における画像伸長のための先頭MR。
The tOL detection circuit 10-7 outputs an EOL code F as an MR code for the section where HAREA is H as decompression error recovery.
The DRP2 signal is repeatedly generated until PH is detected. By detecting the EOL code, the synchronization relationship between the compressed image data and the HAREA signal is restored, and the first MR is used for image decompression in the next HAREA3.

コードを読み出し、DECENBをHレベルに復帰させ
て伸長エラーリカバー動作を終了する。
The code is read, DECENB is returned to H level, and the decompression error recovery operation is completed.

次のHAREA3において正常に画像伸長動作が終了す
ると(Xの状態)、EOL検出回路1HAREA4のた
めの先頭MRコードを読み出すためにDRP2を1クロ
ック発生させ、Buff CHG ENB信号をHレベ
ルにするとともて、その後に入力されるLNST信号に
ょシDa t a BNBをHレベルにする。
When the image decompression operation is normally completed in the next HAREA3 (state of In response to the LNST signal input thereafter, Data BNB is set to H level.

HAREA4.HAREA5の2ラインでは共に画像伸
長動作が正常に終了しているのでBuff CHG B
NB信号はHレベルのままであるが、HAR,EA6で
はHAREAIと同様に伸長エラーが発生している。こ
の状態によりEOL検出回路は、HAR,EA6におい
て、ダブルバソファメモリのメモIJ Yに書き込まれ
た、伸長エラーを含んだ伸長画像データがプリンタに出
力されないようにBuff CHG ENB信号をHA
REA6の後端でLレベルにし、次にHAREA8にお
いて画像伸長を成功するまでダブルバッファメモリの切
り替えを禁止する。このだめ、HAREA7でエラーリ
カバーしている区間とHAREA8で、次の伸長動作を
行っている区間は、HAREA5において伸長した伸長
成効の画像データが繰り返しプリンタにRMU−VD信
号として出力される。
HAREA4. Since the image expansion operation has completed normally on both lines of HAREA5, Buff CHG B
Although the NB signal remains at H level, an expansion error has occurred in HAR and EA6 as in HAREAI. Due to this state, the EOL detection circuit outputs the Buff CHG ENB signal to HA in HAR and EA6 so that the decompressed image data containing decompression errors written in the memo IJY of the double bass sofa memory will not be output to the printer.
It is set to L level at the rear end of REA6, and switching of the double buffer memory is prohibited until image decompression is successfully performed in HAREA8. However, in the section where the error is recovered in HAREA 7 and the section where the next decompression operation is performed in HAREA 8, the image data of the decompression effect decompressed in HAREA 5 is repeatedly output to the printer as an RMU-VD signal.

このように、Buff CHG  ENB信号により伸
長エラー発生ラインと、エラーリカバーラインの後はL
NSTによるBuff CHG信号が発生しないため第
22図のRMU−VD信号に示すように伸長成功ライン
(Xの状態)における伸長画像データだけがRMU−V
D信号としてプリンタ10−3に出力される。
In this way, after the expansion error occurrence line and the error recovery line, the Buff CHG ENB signal causes the L
Since the Buff CHG signal due to NST is not generated, only the decompressed image data at the decompression success line (state of X) is RMU-V as shown in the RMU-VD signal in FIG.
It is output to the printer 10-3 as a D signal.

またData ENB信号は前述のように、伸長成功ラ
インが発生した後、初めてHレベルになる信号であり、
この信号によりVt−DEC信号がHレベルになってか
ら、伸長成功ラインが発生するまでの間、エラーを含ん
だ伸長画像データがプリンタに出力されないようになる
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 from the time the Vt-DEC signal becomes H level until the decompression success line occurs.

さらにDataBNB信号はV = D E C信号が
Lレベルになってから1ライン遅れてLレベルになるよ
うに構成されており、最後のHAII(、BA9ライン
における伸長画像も、正常にプリンタに出力される。
Furthermore, the DataBNB signal is configured to go to the L level one line after the V=DEC signal goes to the L level, so that the decompressed image at the last HAII (and BA9 line) is also correctly output to the printer. Ru.

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

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

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

コンパレータ10−14には、圧縮時の最終M−ADR
値をセットしているのでコントローラー10−2はVD
EC信号をLレベルにした時点でs MOVER信号を
検出するはずである。
Comparators 10-14 include the final M-ADR during compression.
Since the value is set, controller 10-2 is VD.
The s MOVER signal should be detected when the EC signal is set to L level.

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

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

このように、メモリアドレスカウンタが、画像圧縮時の
最大アドレスに一致したことで、画像伸長動作を停止す
ることで、意図しない余分な画像信号がプリンタ10−
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, thereby preventing unintended extra image signals from being sent to the printer 10.
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の81点から、主
走査方向にH1ビット、副走査方向に■1ラインの点t
1を基準点として主走査サイズH2ビット、副走査サイ
ズ■2ビットの画像Tをトリミングして、A4のコピー
用紙に、Vl、Hlの位置を変えずに出力する例である
Figure 19 shows a point t with H1 bits in the main scanning direction and ■1 line in the subscanning direction from 81 points of an A4 size expanded image U.
This is an example in which an image T having a main scanning size of H2 bits and a sub-scanning size of ■2 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図では、主走査アドレスカウンタ・デコー
ダ10−12からのHA D Rが4677に々つだと
ころから1ラインの伸長動作が始まる。すなわちHA 
D R,が4677でH−A R,E AがI]レベル
になるようにコンパレータ14−4には4677をセッ
トする。また、A4巾4677ビツトで伸長を終了スる
ヨウに、コンパレータ14−5には0をセットして、H
AREAの長さを4677ビツトとする。才だ、伸長回
路10−6により伸長された伸長画像信号DVDOをダ
ブルバツファメモIJ 10−15に書き込むI)AD
R,読み出すHA D Rが同じ動作をするようにDC
5TART信号の出るタイミングを作るコンパレータ1
4−8には4677をセットし、ディザカウンタ10−
10のカウンタ13−1.13−2のLD値も4677
をセットする。これにより、前述のように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 caused 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 10-12 is equal to 4677. . That is, H.A.
The comparator 14-4 is set to 4677 so that DR, is 4677 and H-AR,EA is at I] level. Also, when the expansion is finished at 4677 bits of A4 width, the comparator 14-5 is set to 0, and the H
Let the length of AREA be 4677 bits. I) AD writes the expanded image signal DVD expanded by the expansion circuit 10-6 to the double buffer memory IJ 10-15.
R, read HA D DC so that R performs the same operation
Comparator 1 that creates the timing of the 5TART signal
Set 4677 to 4-8 and dither counter 10-
The LD value of 10 counter 13-1.13-2 is also 4677
Set. As a result, the image signal compressed by U as described above is expanded as is.

コントローラー10−2は第20図に示すようにプリン
タ10−3にA4のコピー用紙レジスト給紙信号VSY
NCを出すと同時に副走査伸長区間信号V−DECを出
力する。これによりプリンタの紙送りと同時に画像伸長
出力が始まシ、もしここでトリミングを行う必要がなけ
iば、V−DECをPvSYNcと同じ時間巾に渡って
出力せしめることにより、UのA4の伸長画像の全てが
A4のコピー用紙にそのまま出力される。ここで前述の
如くのトリミングを行なうべくコントローラー10−2
は、Vl ラインの画像信号を消去するために、V−D
EC信号を出力してから■1ラインの間はTRM信号を
Lレベルに固定し、ダブルバッファメモリから読み出し
画像信号をゲー)10−27でLレベルに固定する。こ
のために、Vlラインをカウント中のTRM信号を出力
するコンパレータ14−6にはI FFFH,コンパレ
ータ14−7には4677(1245H)をセットする
ことにより、フリップフロップi 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.If there is no need to perform trimming here, by outputting V-DEC over the same time span as PvSYNc, you can output the expanded A4 image of U. All of these are output as is on A4 copy paper. Here, in order to perform the trimming as described above, the controller 10-2
In order to erase the image signal of the Vl line, the V-D
After outputting the EC signal, the TRM signal is fixed at the L level for one line, and the image signal read from the double buffer memory is fixed at the L level at 10-27. For this purpose, the comparator 14-6 that outputs the TRM signal that is counting the Vl line is set to IFFFH, and the comparator 14-7 is set to 4677 (1245H), and the flip-flop i4-12 is reset. Make sure it doesn't get too heavy.

Vl ラインのカウントをラインカウンタ10”  −
11でカウントした後に、tl の位置から副走査中V
2ライン、主走査中H2ビットのT領域のトリミングを
行う。そのだめに、ラインカウンタ10−11にV2ラ
インをセットし、副走査V2ラインを計算するとともに
、その間の主走査トリミング領域の1点からH2ピット
巾を表わすTRM信゛号を発生させるべく、コンパレー
タ14−6に(4677−Hl )をセットし、コンパ
レータ14−7には(4677−(H1+H2))をセ
ットする。これにより、第19図のTRM(V2.)を
得る。
Vl line count is line counter 10" -
After counting at 11, V during sub-scanning from the tl position.
2 lines, H2 bit T area is trimmed during main scanning. To that end, set the V2 line in the line counter 10-11, calculate the sub-scanning V2 line, and use the comparator to generate the TRM signal representing the H2 pit width from one point in the main-scanning trimming area between them. 14-6 is set to (4677-Hl), and comparator 14-7 is set to (4677-(H1+H2)). As a result, the TRM (V2.) shown in FIG. 19 is obtained.

以上のような定数セットによりtl点からv2ラインの
間のT領域のトリミングが実現される。
Trimming of the T area between the tl point and the v2 line is realized by the constant set as described above.

T領域の画像信号が全てプリンタに出力された時点で、
ラインカウンタ10−11からコントローラ10−2に
、■2ラインのカウント終了信号が出力される。この時
点で圧縮画像メモリ10−5には、第19図の斜線で示
された部分の圧縮画像コードが読み出されずに残ってい
る゛が、所望のT領域の画像出力はすでに完了している
ので、コントローラー10−2はこの斜線部の圧縮画像
コードの伸長を行う必要は々く、VDEC信号をここで
Lレベルにし、伸長動作を停止させる。VDEC信号が
Lレベルになっただめ、EOL検出回路からのData
 ENB信号はLレベルになしこれ以降のvRラインは
、プリンタに画像信号は白信号(Lレベル)と々す、T
領域のトリミング出力が完了する。このように、余分な
圧縮画像コードを伸長しないようにすることにより、伸
長エラーの発生量が下がり、それにより伸長画像にエラ
ーが含まれることに起因するミスプリントの発生率が低
下し、コピー動作の信頼性が向上する。
When all the image signals in the T area are output to the printer,
The line counter 10-11 outputs a 2-line count end signal to the controller 10-2. At this point, the compressed image code of the shaded portion in FIG. 19 remains unread in the compressed image memory 10-5, but the image output of the desired T area has already been completed. The controller 10-2 needs to decompress the compressed image code in the shaded area, so it sets the VDEC signal to L level and stops the decompression operation. Since the VDEC signal has become L level, the data from the EOL detection circuit
The ENB signal is set to L level, and the subsequent vR line sends the image signal to the printer as a white signal (L level).
Region trimming output is completed. In this way, by not decompressing extra compressed image code, the number of decompression errors is reduced, which reduces the incidence of misprints caused by errors in the decompressed image, and improves copy operations. 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の部
分をトリミングする。この伸長画像の移動及びトリミン
グは全てHADRを基準として行われる。すなわち、第
21図(a)においてHA D R(4677−Hl)
からHADR(4678−(I−(1+H2))のアド
レス範囲で伸長回路10−6で伸長されたTの部分が、
DADRによりダブルバックアメモリに書き込まれ、第
21図(b)において、ダブルバッファメモリからHA
DRKよ)読み出される時にH3−H1ビットだけ移動
されて、HADR。
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. All movement and trimming of this expanded image is performed using HADR as a reference. That is, in FIG. 21(a), HA D R (4677-Hl)
The part of T expanded by the expansion circuit 10-6 in the address range from HADR (4678-(I-(1+H2)) is
is written to the double buffer memory by DADR, and in FIG. 21(b), the HA
DRK) When read, H3-H1 bits are moved and HADR.

(4677−H3)からHADR(4678,−(H2
十H3))の範囲で読み出されることになる。この画像
移動はDADRのアドレス制御によって実行され、第2
1図(a)でダブルバッファメモリに伸長画像のTの部
分が書き込まれる時(HADRが4677−Hlの時)
に発生した画素を、H3−H,だけ移動しだ4677−
H3のアドレスにDADRで書き込めばよい。す々わち
第21図(a)から明らかなように、)rADI%=4
677におけるDADRのカウント開始値を主走査移動
ビット数H3−H1によシ4677− (H3−Hl)
とすればよい。このH3は画像移動方向が主走査の基準
点(I−(ADH=4677 )から離れる場合には正
の値となり、逆に近づく場合には負の値となる。
(4677-H3) to HADR(4678,-(H2
It will be read in the range of 10H3)). This image movement is executed by DADR address control, and the second
When the T part of the decompressed image is written to the double buffer memory in Figure 1 (a) (when HADR is 4677-Hl)
4677-
All you have to do is write to the address of H3 using DADR. As is clear from FIG. 21(a), )rADI%=4
Set the DADR count start value in 677 to the main scanning movement bit number H3-H1.
And it is sufficient. This H3 takes a positive value when the image movement direction moves away from the main scanning reference point (I-(ADH=4677)), and takes a negative value when it approaches.

ダブルバッファメモリから読み出された画像信号は、T
RM信号によってトリミングされるが、このTRM信号
も第21図(b)のように、移動量H3−H□を考慮し
て、HADRが4677−H3から4678−(H2+
N2)の間でHレベルになるように、コンパレータ14
−6には4677−H3をセットし、コンパレータ14
−7には4677− (H2+N2)をセットする。
The image signal read out from the double buffer memory is T
The TRM signal is also trimmed by the RM signal, but as shown in FIG. 21(b), the HADR is changed from 4677-H3 to 4678-(H2+
N2), the comparator 14
-6 is set to 4677-H3, comparator 14
Set 4677- (H2+N2) to -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を移動するとともにトリミング
を行い、紙端からV3ラインのところに、トリミング画
像の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 V3 from the edge of the paper. This is an example.

コピー用紙と、伸長画像Uの副走査方向のずれは、V2
−V1ラインであるので、コントローラー10−2は、
プリンタ10−3に対するコピー用紙のレジスト給紙信
号P−VSYNCを出力した後、ラインカウンタ10−
11でV3−V1ラインを計数した後に副走査伸長区間
信号VDECをHレベルにし、伸長画像Uの伸長動作を
開始する。ここでTRM信号でT領域の画像を出力する
のは、V−DEC信号をHレベルにしてから、さらに■
1ライン経過した時である。そして、T領域の副走査外
の■2ラインをラインカウンタで計数したところでV−
D EC信号をLレベルにして、伸長動作を終了する。
The deviation in the sub-scanning direction between the copy paper and the expanded image U is V2
-V1 line, so 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-V1 lines 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, to output the T-area image using the TRM signal, first set the V-DEC signal to H level, and then
This is when one line has passed. Then, when the line counter counts the 2 lines outside the sub-scanning of the T area, V-
The DEC signal is set to L level and the decompression operation is completed.

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

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

T領域のトリミングは前述のとおりであるが、もしP点
が紙端からV3ラインはみ出る場合には、コピー用紙に
出力されるT領域はその分掛なくなる。PVSYNC信
号を出力する前に、■1−■3ラインの画像伸長を行い
、−担■−DEC信号をLレベルに戻しているが、これ
はPvSYNCとしてリーダーからのRvSYNCを用
いる場合を考慮している。すなわち、 RMUで伸長し
た画像と、リーダーからの画像をオーバーレイしてプリ
ンタに出力する場合、2つの画像のオーバレイ位置を正
確に合わせるためには、共通のVSYNC信号を用いな
ければならない。しかし、R,MUからリーダーにVS
YNCを知らせる手段がないので、PVSYNCは、!
J−グーから(7)VSYNC(RVSYNC)を用い
なければならない。リーダーと非同期のコントローラー
10−2にとっては、RVSYNCがいつ入力されるか
の詳しいタイミングを取ることは困難である。それでコ
ントローラー10−2は、リーダーからのVSYNC(
RVSYNC)を入力するより充分前に、vl−v3ラ
インの画像の伸長を終えてコピー用紙に出力される伸長
画像のMR,コードを圧縮画像メモリから頭出ししてお
き、RVSYNCに合わせて再度伸長動作を開始させな
ければならない。すナワチ、RVSYNCを待っている
間v−DECをLレベルにして、伸長動作を中断してい
るのである。
Trimming of the T area is as described above, but if point P protrudes beyond the V3 line from the edge of the paper, the T area output on the copy paper will be trimmed accordingly. Before outputting the PVSYNC signal, the image is expanded for lines 1 to 3, and the DEC signal is returned to the L level. This is done in consideration of the case where RvSYNC from the reader is used as PvSYNC. There is. That is, when an image decompressed by the RMU and an image from the reader are overlaid and output to a printer, a common VSYNC signal must be used in order to accurately match the overlay position of the two images. However, VS from R, MU to leader
Since there is no way to notify YNC, PVSYNC is!
From J-Goo (7) VSYNC (RVSYNC) must be used. For the controller 10-2, which is asynchronous with the reader, it is difficult to determine the exact timing when RVSYNC is input. Therefore, the controller 10-2 receives the VSYNC (
Sufficiently before inputting RVSYNC, the MR and code of the decompressed image to be output on copy paper after decompression of the vl-v3 line image are cued from the compressed image memory, and decompressed again in accordance with RVSYNC. must be started. While waiting for RVSYNC, the decompression operation is interrupted by setting v-DEC to L level.

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

(4)  ディザ画像伸長の機能 (2)のディザ圧縮による圧縮画像をそのまま伸長処理
しただけでは、ディザ圧縮時のディザカウンタ10−1
0による主走査画像の並らび替えにより、それをそのま
ま伸長したのでは原稿画像とは異るコピー出力と々って
しまう。そこでディザ画像伸長処理では(3)の2値伸
長処理と同一のプロセスにより伸長回路10−6から得
られるディザ並らび替えをされた伸長画像信号DVDO
をダブルバツファメモリ1O−151C書き込む時に、
もとのリーダーからのディザ画像の順に並らび替え直す
(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 to double buffer memory 1O-151C,
Reorder the dithered images from the original reader.

この並らび替えはダブルバッファメモリ10−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図示のディザカ
ウンタのl)i ther 信号をHレベルとして、デ
ィザ圧縮時と同様にカウンタ13−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. l) The i ther signal is set to H level, and the counters 13-1 and 13-2 are operated in the same way as in 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 backer 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 dither compression processing.

以上説明した本システムの構成における、リーグ・RM
U間及びRMU・プリンタ間のシリアル通信と、画像処
理動作の詳細な手順を以下に説明する。尚、以下の説明
に用いるフローチャートに示されたプログラムはリーグ
、プリンタ及びRMUの制御部を構成するマイクロコン
ピュータのメモリROMに予しめ格納され、これを適宜
読出すことにより制御動作するものである。
League/RM in the configuration of this system explained above
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. 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 section of the league, printer, and RMU, and are controlled by reading the programs as appropriate.

第6図に示したシリアル通信は第8図のDEVICE 
Connect+DEvIaEPOWERReady。
The serial communication shown in Figure 6 is the DEVICE in Figure 8.
Connect+DEvIaEPOWERReady.

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 league side unit sends a message to the printer 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 league side units (including the RMU). Basically, if the RMU receives a command from the league, it outputs the same command to the printer, and if it receives a status from the printer, it outputs the same status to the league.

リーグ側ユニットとプリンタ側ユニット間のシリアル通
信は8ビツト構成のコマンドとステータスのやりとりに
よって行なわれ、このとき一つのコマンドに対して必ず
一つのステータスが返され、ステータスはコマンドに先
じて返されることはない。
Serial communication between the league side unit and the 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モ
ード指示コマンド、R,MUメモリ指示コマンド、RM
U)リミング指示1コマンド、RM、U)リミング指示
2コマンド。
The RMU receives commands from the league. This command is the RMU mode instruction command 100-7 to 100-12 in Table 1, R, MU memory instruction command, RM
U) Rimming instruction 1 command, RM, U) Rimming instruction 2 command.

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

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

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

RMUはプリンタからステータスを入力するとこのステ
ータスがどのコマンドに対してのものかを判定し、第9
表の108−7のアプリケーションステータス要求コマ
ンドに対しての第15表のアプリケーションステータス
であるかどうかをチェックする(S−101’−1,)
。入力したステータスがアプリケーションステータスで
ある場合には、R,MU接続の情報を付加後(S−1’
012)、リーグへアプリケーションステータスとして
出力する。
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 108-7 (S-101'-1,)
. If the input status is an application status, after adding R and MU connection information (S-1'
012), output to the league as an application status.

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

RMUはリーグからのコマンド入力し対して、プリンタ
へのコマンド転送またはリーグへの全体ステータスの返
送を行い、プリンタからのステータス入力に対してはリ
ーグへのステータス転送またはステータスに情報付加加
工後、転送することを交互に繰り返す。
In response to command input from the league, the RMU transfers the command to the printer or returns the overall status to the league, and in response to status input from the printer, it transfers the status to the league or adds information to the status and processes it before forwarding 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 will shorten the time it takes to exchange information and allow the league to monitor communications, making it possible to simplify communication protocols.

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

100−1’2.100−1’3,100−14はRM
U )リミング指示コマンドで2バイト目(第7表)。
100-1'2.100-1'3,100-14 is RM
U) 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表のミスプ
リント詳細ステータスはミスプリントについての情報が
それぞれ格納されている。
Tables 10 to 16 will be explained below. 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 (``1'') if the printer is transporting paper. Similarly, bit 4 is set when there is a misprint, bit 3 is set when there is a wait, and bit 1 is set when there is an operator call error or serviceman call error. The error occurrence unit status in Table 11 stores information on which unit an error has occurred,
Operator call error status in Table 12, 13th
The service call error status in the table is information about the specific content of the error, and similarly, 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表の1’08−6の上カセツト紙
サイズ要求コマンド出力による第14表カセット紙サイ
ズステークスによりプリンタの上、下カセットの紙サイ
ズの情報を得る(S−1,02−2)。このあと第9表
の108−1の全体ステータス要求コマンド第9表の1
08−2のエラー発生ユニットステータス要求コマンド
出力による第10表の全体ステータス、第11表エラー
発生ユニットステータスによりプリンタ、RMUでエラ
ーがあるかどうかの情報を得る(S−102−3,S−
102−4)。このあとでエラーがあるかどうかのチェ
ックをする(s−102−5)。このときエラーがある
場合にはもつと詳しい情報を得るため第108−3表オ
ペレータコールエラーステータス要求コマンド、第10
8−4表サービスコールエラーステータス要求コマンド
を出力し、それぞれのステータス入力によりエラーの詳
細な情報を得て(S−102−6,S−102−7) 
、必要な情報例えば紙魚、RMUメモリオーバフローが
あることをオペレータに知らせることができる。
The reader obtains RMU connection information from the application status in Table 15, which is output from the application status request command in 108-7 in Table 9 (S-10
2-1). In addition, the paper in the upper and lower cassettes of the printer is determined by 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 1'08-6 in Table 9. Obtain size information (S-1, 02-2). After this, the overall status request command 108-1 in Table 9
Information on whether there is an error in the printer or RMU is obtained from the overall status in Table 10 and the error unit status in Table 11 by outputting the error unit status request command in 08-2 (S-102-3, S-
102-4). After this, it is checked whether there is an error (s-102-5). If there is an error at this time, Table 108-3 Operator call error status request command, Table 10
8-4 Output the service call error status request command and obtain detailed error information by inputting each status (S-102-6, S-102-7)
, necessary information such as paper fish can inform the operator that there is an RMU memory overflow.

エラーがなかった場合にはコピースタートキーが押され
たかどうかをチェック(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 during copy operation, operation of each unit, and signals will be explained using Table 17.

リーダにおいて紙サイズ選択(八−■)、コピ一枚数設
定(八−■)2画像読取モード(A−■)、RMUモー
ド、トリミングデータ、RMUメモリ指示等のRMU使
用条件(八−■)がオペレータによりリーダの操作部か
ら入力されてコピーキーが押下(八−■)されると、リ
ーグはシリアル通信においてRMU指示コマンド(RM
Uモート指示コマンド、RMUメモリ指示コマンドR,
MU)リミング指示コマンド)(B−■)を出力する。
In the reader, RMU usage conditions (8-■) such as paper size selection (8-■), number of copies per copy setting (8-■), image reading mode (A-■), RMU mode, trimming data, and RMU memory instruction are set. When the operator inputs an input from the reader's operation panel and presses the copy key (8-■), the league sends an RMU instruction command (RM
U mote instruction command, RMU memory instruction command R,
MU) Rimming instruction command) (B-■) is output.

RMUはR,MU指示コマンドを入力すると第10図セ
レクタ1.セレクタ2.セレクタ3.セレクタ4.セレ
クタ5゜ビデオセレクタ等のセレクタ設定を行う(C−
■)。リーダはRMU指示コマンドに続いて、枚数指示
コマンド(B−■)、上下給紙コマンド(B−■)1紙
サイズ指示コマンド(B−■)を出力する。RMUは紙
サイズ指示コマンドを入力する(C−■)と第10図コ
ンパレータ。
RMU is R, and when the MU instruction command is input, the selector 1 in FIG. Selector 2. Selector 3. Selector 4. Selector 5° Configure selectors such as video selector (C-
■). Following the RMU instruction command, the reader outputs a number of sheets instruction command (B-■), a top/bottom paper feed command (B-■), and a paper size instruction command (B-■). When the RMU inputs a paper size instruction command (C-■), the comparator shown in FIG.

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

R,MUモードが“メモリインプットモード°゛である
ときはPRINTをプリンタに出力せず(D−■)あた
かもプリンタがPRINTを入力しそれに対して画像要
求信号(以下VSREQ)を出力したかのようにRMU
がVSREQをリーダに対して出力してやる(B−■)
。RMUからのVSREQをリーダが入力すると画像出
力するために、■5YNCを出力(B−■)する。リー
ダはコピー動作中に全体ステータス要求コマンド、エラ
ー発生ユニット要求コマンドを一定時間ごとに出力し、
エラーのチェックやRMUのメモリオーバーフロー等を
常にチェックしている(B−[相])。枚数管理はリー
ダが行っているのでリーダからプリンタストップコマン
ドを入力したときにRMUはモードリセットを(C−■
)行い、コピーが終了する。
When R, MU mode is "memory input mode", PRINT is not output to the printer (D-■) It is as if the printer inputs PRINT and outputs an image request signal (hereinafter referred to as VSREQ) in response. to RMU
outputs VSREQ to the reader (B-■)
. When the reader inputs VSREQ from RMU, it outputs ■5YNC (B-■) in order to output an image. The reader outputs the overall status request command and error unit request command at regular intervals during the copy operation.
It constantly checks for errors and RMU memory overflow (B-[phase]). Since the number of sheets is managed by the reader, when a printer stop command is input from the reader, the RMU will reset 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本の画像信号1’(、VDAとRVDBをそのまま
プリンタ10−3に出力し、リーダ10−1とプリンタ
10−3が直に接続されているように動作する。したが
ってこのモードにおいてRMUはビデオインターフェー
スを通じてリーダ10−1から入力される信号はそのま
まプリンタ10−3に出力し、プリンタ10−3から入
力される信号はそのままリーダ10−1に出力する。
The first is a mode called "memory pass mode", in which 'RMU outputs two image signals 1' (VDA and RVDB representing three values input from reader 10-1) to printer 10-3 as they are. The reader 10-1 and the printer 10-3 operate as if they were directly connected. Therefore, in this mode, the RMU outputs the signal input from the reader 10-1 through the video interface to the printer 10-3 as is. , the signals input from the printer 10-3 are output as they are to the reader 10-1.

2つ目は「メモリハイスピードモード」と呼ばれるモー
ドでありRMUはリーダ10−1からの画像信号RVD
Aを一担、圧縮画像メモリに圧縮記憶し、その後連続し
てその圧縮画像データを読み出し、プリンタに出力する
The second mode is called "memory high speed mode", and the RMU receives the image signal RVD from the reader 10-1.
A 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に伸長出力して得られるため大量
コピーの高速処理が可能となる。
That is, the reader 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", and the RM input mode is called "memory input mode".
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.

“メモリハイスピードモード“はRMU内部で3つのモ
ード“′リテンションモード、“アウトプットモード、
′スルーアウトモード・“に区別される。′リテンショ
ンモード“は“′メモリハイスピード“01枚目で原稿
からの画像情報(信号〕をメモリに圧縮しながらプリン
タへ素通しをするものである。“リテンションモード°
の実行によってメモリへの圧縮の成功。
“Memory high-speed mode” has three modes inside the RMU: “’retention mode,” “output mode,”
It is distinguished into ``Through Out Mode''. ``Retention Mode'' is ``Memory High Speed'' which compresses the image information (signal) from the original in the memory and passes it through to the printer. Retention mode°
Successful compression into memory by running .

不成功(RMUメモリオーバフロー)が判[rできる。Failure (RMU memory overflow) can be determined.

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

不J&功の情報(RMUメモリオーバフロー)を得るこ
とができ、メモリへの圧縮が成功した場合、次のコピー
(2枚目以降)からメモリからの伸長画像により像形成
(コピー)ができるのでリーグは原稿スキャンを停止す
る。RMUは次のコピーからメモリの伸長ができるよう
にセレクタの再設定を行う。例えば第10図のビデオセ
レクタ10−23はRMUのメモリからの伸長画像をプ
リンタへ出力するように再設定する。
If it is possible to obtain the information on FJ & IG (RMU memory overflow) and the compression to the memory is successful, image formation (copy) can be performed from the next copy (from the second copy onward) using the decompressed image from the memory. stops document scanning. 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.

このようにセレクタの再設定を行ったモードを“アウト
プットモード1′と呼ぶ逆にメモリへの圧縮が失敗した
ときは、“リテンションモードのままではメモリへの圧
縮をしながら画像の素通しをしてしまうのでメモリへの
圧縮を行なわないような動作が必要となる。このモード
を“スルーアウトモード“という。“スルーアウトモー
ド゛はパメモリバスモード゛とRMUでのセレクタの設
定は同じであるが、リーグからの画像情報が前者は閾値
ジェネレータA、Hの値を同じにした2値画像であるの
に対し、後者はVDA 、VDB独立の3値画像である
ので名称をかえた。このRMU内部モードの変更よりR
MUは“メモリハイスピード“においてメモリへの画像
圧縮の成功、不成功にかかわらず2値画像を出力し、1
枚目と2枚目以降の画像の差をなくすことが可能となる
。第18表にRMUモードとRMU内部モードの対応を
示しておく。
The mode in which the selector is reset in this way is called "output mode 1." Conversely, if compression to memory fails, "retention mode will pass the image through while compressing it to memory." Therefore, it is necessary to perform an operation that does not compress the data into memory. This mode is called "through-out mode.""Through out mode" has the same selector settings in RMU as memory bus mode, but the image information from the league is a binary image with the same threshold generator A and H values in the former. On the other hand, the latter is a ternary image with VDA and VDB independent, so the name has been changed.
MU outputs a binary image at "memory high speed" regardless of the success or failure of image compression to memory, and
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 and RMU internal mode.

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

まず、コピーキーがオペレータにより押されるとリーダ
はRMUとプリンタに対してRMU指示コマンド(S−
103−1)、枚数指示コマンド(S−1’03−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 instruction command (S-1'03-2)
, upper and lower paper feed command (S-103-3), 2 paper size instruction command (S-103-'4).

プリンタスタートコマンド(S−103−4)を出力し
、コピー動作に必要な初期設定を行い、リーダはRMU
からのPREQを入力した後(S−103−10)、P
R,IN、TをRMUに対し出力する( S−1’03
−1’O)。更に、タイマをスタートさせ(S−103
−11)、このタイマアウトまで一定時間待機しくS−
103−12)、RMU内部モードが“アウトプットモ
ード゛のときには光学系をスタートさせず(S−103
−1’4 )、枚数−カウントダウンを行い、枚数が0
であるかを調べ(S−103−20)、0である場合に
はプリンタストップコマンドを出力する( S−1’0
3−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 R, IN, T to RMU (S-1'03
-1'O). Furthermore, start the timer (S-103
-11) Please wait for a certain period of time until this timer expires.
103-12), the optical system is not started when the RMU internal mode is "output mode" (S-103
-1'4), count down the number of sheets, and the number of sheets is 0.
(S-103-20), and if it is 0, output a printer stop command (S-1'0
3-21).

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

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

プリンタ動作を第27図の70チヤートを用いて説明す
る。
The printer operation will be explained using chart 70 in FIG.

プリンタはリーダ側()’l、MUを含む)からプリン
タスタートコマンドを入力すると(8−104−1)ド
ラム帯電等の各部動作を開始する(S−104−2)。
When the printer receives a printer start command (8-104-1) from the reader side (including MU), the printer starts various operations such as drum charging (S-104-2).

プリンタが給紙可能な状態になったならば(8−1’0
4−3 ) 、リーグ側へPREQを出力する(S−1
04−4)、リーグ側からPR。
Once the printer is ready to feed paper (8-1'0
4-3), output PREQ to the league side (S-1
04-4), PR from the league side.

EQに対応してPRIN’rを入力したならば(S−1
04−5)、給紙(8−105−6)を行う。
If PRIN'r is input corresponding to EQ (S-1
04-5) and paper feeding (8-105-6).

給紙を行い画像受信可能になると(S−104−’7)
、VSREQをリーグへ出力する(S−104−8)。
When paper is fed and images can be received (S-104-'7)
, VSREQ is output to the league (S-104-8).

VSREQに対応してVSYNCをリーダは出力し画像
信号を出力する(S−104−9)。
The reader outputs VSYNC in response to VSREQ and outputs an image signal (S-104-9).

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

エラーがあるかどうかチェックし、(S−1,’04−
11)、エラーがあった場合にはエラーをシリアル通信
にのせる(s−1o4−12)。上記動作をコピ一枚数
分繰り返すとリーグはプリンタストップを出力するので
プリンタストップを受信したかチェックしく S−1’
04−13 )プリンタはこれを受けてプリンタの各部
を停止する(S−104−14)。
Check if there are any errors, (S-1,'04-
11) If there is an error, the error is posted on the serial communication (s-1o4-12). If the above operation is repeated for one copy, the league will output a printer stop message, so check whether the printer stop message has been received.S-1'
04-13) Upon receiving this, the printer stops each part of the printer (S-104-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 maximum compressed image 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 T、M Tと
する。第28図(1)はRMUに何も画像書き込みが行
なわれていない状態を示している。このときにMS←0
.MB4−MLMTを設定しておく。このことはメモリ
の持つ最大の空領域を示していることにもなる。Fl、
MUメモリ指示コマンドによりメモリAが選択されディ
ザメモリハイスピードモードでA4サイズのコピーが行
なわれたときに、R,MUは(2)の如くメモリAに格
納された画像はRMUのどのモードで圧縮されたかの情
報(MA−VIDEO)、圧縮した画像の原稿サイズ(
MA−PSZ)、リーグの読み取りモード(MA−ME
THOD)、メモリAの画像書き込みスタートアドレス
(MAS)、メモリAの画像書き込みエンドアドレス(
MAE)を記憶する。これらの情報はメモリB、メモリ
Cへの書き込みが行なわれたときも同様に行い、何も画
像書き込みが行なわれていない場合には、それに対比す
る情報が書き込まれているものとする。
Since the memory is limited, the maximum values are set as M T and M T . FIG. 28(1) shows a state in which no image is written to the RMU. At this time, MS←0
.. Set MB4-MLMT in advance. This also indicates the maximum free space available in memory. Fl,
When memory A is selected by the MU memory instruction command and A4 size copy is performed in dither memory high speed mode, R and MU are compressed in which mode of RMU is the image stored in memory A as shown in (2)? information on the size of the compressed image (MA-VIDEO), the original size of the compressed image (
MA-PSZ), league reading 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 is performed, and if no image has been written, it is assumed that information corresponding thereto has been written.

(2)の状態においてメモリB、メモリCの書き込みが
行われた状態が(3)である。(2)の状態でメモIJ
 BまたはメモIJ Cへの書き込みが指示されると、
最大空領域である(2)の状態の領域■をMS←MAE
+ i 、MB4−MLMTとして設定する。このとき
に再びメモリAが指定されたらメモIJ Aの上下の空
領域を含む領域を新しいMS←0 、ME(−MLM’
l”として設定する。このように設定することにより(
1)の状態においてメモIJ Aが指定された場合と同
じとなり有効にメモリを使用できる(3)の状態におい
てメモリAが指定された場合、(3)の状態ではメモI
J Aに連続する空領域はなく、メモリAのメモリ量と
(3)の状態における空領域■のメモリ量の比較をし、
メモリ量の大きい方を新しいメモリA領域とする。(3
)の状態においては空領域■の方が大きいため、MS(
−MBE+ 1’ 、ME←MLM’l”と設定し、古
いメモリA領域は空領域と設定する。
The state (3) is the state in which memory B and memory C are written in the state (2). Memo IJ in state (2)
When instructed to write to B or Memo IJC,
The area ■ in state (2), which is the maximum empty area, is MS←MAE
+i, set as MB4-MLMT. At this time, if memory A is specified again, the area including the upper and lower empty areas of memo IJA is set to a new MS←0, ME(-MLM'
l”. By setting like this (
This 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), memo IJ A is specified in state (3).
J There is no continuous empty area in A, and the memory amount of memory A is compared with the memory amount of empty area ■ in state (3),
The one with the larger memory amount is set as the new memory A area. (3
), the empty area ■ is larger, so MS(
-MBE+1', ME←MLM'l'', and the old memory A area is set as an empty area.

(3)の状態における空領域■に画像情報を書き込んだ
状態が(4)の状態である。この状態でメモリBに書き
込み指示があった場合(4)の状態におけるメモリB領
域に連続する空領域はなく、メモIJ B領域、空領域
■、空領域■のうちで最も大きなメモリ量を持つ領域を
新しいメモリB領域とする。このとき空領域■が最も大
きなメモリ量を有していた場合、MS、−0、ME、−
MC8−1を設定し、古いメモIJ B領域は空領域と
して設定する。この設定後新しいメモリ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, MS, -0, ME, -
MC8-1 is set, and the old memo IJB area is set as an empty area. If the image is successfully written to the new memory B area after this setting, the state is (5), if the image writing fails, the state is (6), and if the compression to the memory fails, the state is (5). The written memory area becomes an empty area.

(5)及び(6)の状態において、それぞれメモリA。In states (5) and (6), memory A respectively.

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

このように空領域はメモリ指示ができる領域数と最大同
数発生する。この空領域についてのメモリ量をMAS 
、MB 8 、MCS 、MAE、。
In this way, the maximum number of empty areas generated is the same as the number of areas that can be specified by memory. MAS the amount of memory for this empty space
,MB8,MCS,MAE,.

MBE、MCEから計算することによって合理的なメモ
リ管理を行うことができる。たとえMS。
Rational memory management can be performed by calculating from MBE 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−VIDEQ、MC−VIDEOの内容を画像’l
’??Nなしの意に設定することによって空領域として
認識することにより、これも合理的なメモリ管理を行う
ことができる。本実施例ではメモリ指定領域数を3゛°
としたがメモリ量に応じたメモリ指定領域数′N゛でも
実現できる。
Images of the contents of MB-VIDEQ and MC-VIDEO
'? ? By setting N to no value and recognizing it as an empty area, rational memory management can be performed. In this example, the number of memory specified areas is 3゛°
However, it can also be realized by changing the number of memory designated areas 'N' depending on the amount of memory.

以下RMUモードの“リテンションモード′1について
の説明を第13図に示す如く第29図のフローチャート
を参照しつつA3サイズ(主走査297 m m 、副
走査420mm)の画像情報Aから主走査方向70mm
、副走査方向100mm経過した点から140mmX 
210mmの画像情報Bをトリミングして出力する場合
を例にとって説明する。RMUはRMUモード指示コマ
ンド2バイト目として第20表を入力する。ビット6、
ビット5はそれぞれリーグ画像、RMU伸長画像の出力
濃度を約50%にするためのビットであり、両方とも“
1″がセットされ、RMUモードとして第5表の104
−2のようにビット4.ビット3.ビット2.ビット1
はセットされる。メモリ指示としてメモリAが指示され
、R,MUメモリ指示コマンドとして第21表を入力す
る。Tt、MU )リミング指示コマンド1のトリミン
グデータとして主走査圧縮開始位置Hp (70mm)
、RMU )リミング指示コマンド2のトリミングデー
タとして副走査圧縮開始位置Vp(100mm)、RM
U ) !J ミ>グ指示コマンド3のトリミングデー
タとして主走査圧縮中Hw(140mm)、R,MU)
リミング指示コマンド4のトリミングデータとして副走
査圧縮中Vw(210mm)がセットされたものがリー
グからミリメータ単位で出力される(S−106−A−
1)。
The "retention mode'1" of the RMU mode will be explained below as shown in FIG. 13, with reference to the flowchart in FIG.
, 140mmX from the point after 100mm in the sub-scanning direction
An example will be explained in which the image information B of 210 mm is trimmed and output. The RMU inputs Table 20 as the second byte of the RMU mode instruction command. bit 6,
Bit 5 is a bit to make the output density of the league image and RMU expanded image approximately 50%, and both are “
1'' is set and 104 in Table 5 is set as the RMU mode.
-2 like bit 4. Bit 3. Bit 2. Bit 1
is set. Memory A is specified as the memory instruction, and Table 21 is input as the R, MU memory instruction command. Tt, MU) Main scanning compression start position Hp (70mm) as trimming data of rimming instruction command 1
, RMU) Sub-scanning compression start position Vp (100 mm), RM as trimming data of rimming instruction command 2
U)! Hw (140mm), R, MU) during main scanning compression as trimming data for J Mig instruction command 3
The trimming data of the rimming instruction command 4 with Vw (210 mm) set during sub-scanning compression is output from the league in millimeter units (S-106-A-
1).

コントローラー10−2はリーグからの上記位置情報を
ビット単位/ライン単位に変換し、I(p=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 converts it into I(p=1102 bits, Vp=1574 lines, Hw==2204 bits, Vw=3307 lines as shown in FIG. 13). Obtain compressed image position/size information.

指示されたRMUモードにより、第10図のセレクタ5
ELL (10−18)、5EL2 (10−19)、
5EL3(10−20)、8EL4(10−21)。
Depending on the designated RMU mode, selector 5 in FIG.
ELL (10-18), 5EL2 (10-19),
5EL3 (10-20), 8EL4 (10-21).

8EL5(10−22)、ビテオセレクタ(10−23
)は−ILぞれR−VCLK、R−VDA、R,−VE
8EL5 (10-22), video selector (10-23)
) are -IL respectively R-VCLK, R-VDA, R, -VE
.

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

リーグの画像信号を圧縮画像メモリに2値圧縮して格納
するだめ第11図ディザ信号はLレベルニスる。RMU
モードは“メモリハイスビートモード″(RMU内部モ
ードは“リテンションモード″)であるので、リーグが
出力したプリンタスタートコマンドを受信し、プリンタ
へ素通しする( S−106−A−3)。RMUはプリ
ンタの給紙可能状態を示すPREQ信号を入力しく S
−106−A−5)、この信号をリーグへ出力する( 
S−106−A−6)。この時点では、“メモリハイス
ピートモード“の1枚目を実行中であるため(S−,1
06−A−7)、リーグから出力用紙サイズを指定する
紙サイズ指示コマンドを入力しく S−106−A−8
)、前述MA−PSZに記憶保持する。指示された出力
用紙サイズをもとに以下説明する種々のカウンタの設定
を行う。まず前述したMS(圧縮画像書き込み開始アド
レス)、ME(圧縮画像の最大書き込みアドレス)の設
定をメモリアドレスカウンタ10−8、コンパレータ1
0−14に行なう。第11図示のディザカウンタのダウ
ンカウンタ13−1には1245H(4677)の上位
10ビツト248H(584)が、また、ダウンカウン
タ13−2には下位3ビツト5H(5)がセットされる
。第12図示の主走査カウンタ・デコーダには同様にダ
ウンカウンタ14−1には1245H(4677)がセ
ットされる。尚、コンパレータ14−2 、14−3は
伸長時のみに用いるため設定は行なわず、14−4.1
4−5のコンパレータはHpに相当するD F 7 H
(3575)及びHp 、 Hwに相当する、55 B
H(1371)を設定し、DADRをHADRと同時に
動作させるため、コンパレータ14−8には1245 
H(4677)の設定を行う。
In order to binary-compress the league image signal and store it in the compressed image memory, the dither signal shown in FIG. 11 is L-level varnished. R.M.U.
Since the mode is "memory high speed beat mode" (RMU internal mode is "retention mode"), the printer start command outputted by the league is received and passed directly to the printer (S-106-A-3). The RMU should input the PREQ signal indicating that the printer is ready to feed paper.S
-106-A-5), output this signal to the league (
S-106-A-6). At this point, the first frame of "Memory High Speed Mode" is being executed (S-, 1
06-A-7), input the paper size instruction command to specify the output paper size from the league S-106-A-8
), are 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, set the MS (compressed image write start address) and ME (maximum compressed image write address) mentioned above using the memory address counter 10-8 and the comparator 1.
Performed on 0-14. The upper 10 bits 248H (584) of 1245H (4677) are set in the down counter 13-1 of the dither counter shown in FIG. 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, 1245H (4677) is set in the down counter 14-1. Note that comparators 14-2 and 14-3 are used only during decompression, so no settings are made, and 14-4.1
The comparator 4-5 is D F 7 H which corresponds to Hp.
(3575) and Hp, Hw corresponds to 55 B
In order to set H (1371) and operate DADR at the same time as HADR, comparator 14-8 has 1245
Configure H (4677).

RMUはリーグからP、R,INT信号を入力すると(
8−106−A−10)、プリンタへ出力する(S−1
06−A−12)。■5REQ信号をプリンタから入力
すると(S−106−A−13)、リーグへ出力する(
 S−103−A−14)。
When the RMU inputs P, R, INT signals from the league (
8-106-A-10), output to printer (S-1
06-A-12). ■When the 5REQ signal is input from the printer (S-106-A-13), it is output to the league (
S-103-A-14).

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

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

この後圧縮画像メモリへの書き込みが成功または失敗し
たかの判定をするため、第31図の手順によりMOVE
R信号をチェックしくS−106−C−1)、MOVE
R信号がHレベルであるならばメモリへの書き込みを失
敗と判定し、圧縮失敗フラグをセット(S−106−C
−2)L、前述コピー動作中のシリアル通信によって圧
縮失敗(RMUメモリオーバーフロー)の情報をリーグ
に伝えることができる。リーグはこの情報により、圧縮
メモリを用いたリテンション動作が下前であると判断し
、2枚目以降も原稿スキャンによる画像出力を繰返し行
い、コピー動作を終了する。この機能によりたとえリー
グからの画像信号が圧縮画像メモリに入りきらない場合
でも膜数枚数のコピーはプリンタから出力される。RM
Uはこのとき圧縮画像の書き込まれつつあったメモリ領
域を空領域とするとともに圧縮失敗フラッグにより、R
MU内部モードを“スルーアウトモード“に変更する。
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), MOVE
If the R signal is at H level, writing to the memory is determined to be a failure and the compression failure flag is set (S-106-C
-2) L. Information about compression failure (RMU memory overflow) can be conveyed to the league through serial communication during the aforementioned copy operation. Based on this information, the league determines that the retention operation using the compressed 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 league cannot fit into the compressed image memory, several copies of the film will be output from the printer. R.M.
At this time, U makes the memory area where the compressed image was being written an empty area, and with the compression failure flag, R
Change the MU internal mode to “through-out mode”.

″スルーアウトモード“は“メモリパスモードと同じで
あり、V−BNC信号をリーグのVSYNCに対応して
オン(LレベルからHレベル)、オフ(HレベルからL
レベル)にする動作をしないのでRMUは圧縮動作をせ
ず、セレクタ、カウンタは“リテンションモード゛の設
定を行ない、リーグからのVSYNCが入力したらプリ
ンタへVSYNCを出力しく第33図、S−106−D
−1、S−106−D−2)、リーグからの画像をプリ
ンタに素通しくS−106−D−3)、リーグからのV
SYNCを待機するでよい。(S−106−D−4)、
VSYNCが入力されたならばプリンりへのVSYNC
をオフしくS−106−D−5)、リーグは設定枚数分
の画像情報出力を完了すると、プリンタストップコマン
ドを出力してプリンタを停止させる。RMUはこのプリ
ンタストップコマンドの入力によりコピーシーケンスを
終了する( 8−106−C−6)。
"Through out mode" is the same as "memory pass mode", and the V-BNC signal is turned on (from L level to H level) and off (from H level to L level) in accordance with the league's VSYNC.
Since the RMU does not perform any compression operation, the selector and counter set the "retention mode", and when VSYNC from the league is input, it outputs VSYNC to the printer. Figure 33, S-106- D
-1, S-106-D-2), pass the image from the league directly to the printer S-106-D-3), V from the league
You can wait for SYNC. (S-106-D-4),
If VSYNC is input, VSYNC to print
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 (8-106-C-6).

逆にMOVER信号がLレベルであった場合には、メモ
リへの書き込みは成功であるので、リーグにこのことを
シリアル通信で知らせ、リーグの2枚目以降の原稿スキ
ャンを停止させ、RMUの圧縮画像メモリからの伸長画
像によるコピー動作を行う。伸長画像出力のためには、
セレクタ、カウンタの再設定を行なわなければならず、
以下のような“アウトプットモード“の再設定を行う(
S−106−C−4、S−106−C−5)。第10図
8EL1’、5EL2.8EI、3゜5EL4.5EL
5 、ビデオセレクタはそれぞれI−CLK、DVDO
,P−BD、OVE。
On the other hand, if the MOVER signal is at the L level, the writing to the memory has been successful, so the league is notified of this via serial communication, the league 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, S-106-C-5). Fig. 10 8EL1', 5EL2.8EI, 3°5EL4.5EL
5. Video selectors are I-CLK and DVDO, respectively.
, P-BD, OVE.

H8YNC,A2.B2.の入力を選択し、圧縮画像メ
モリには2値画像圧縮された圧縮画像データが記憶され
ていることがMA−METHODの内容により判別でき
る。したがって圧縮画像データを2値画像伸長するため
に第11図のDi ther信号は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 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図の伸長の説明の
ように、12F4H(4852)、14−2.14−3
.14−4.14−5.14−6.14−7.14−8
のフンパレータにはそれぞれ1247H(4679)、
2H(2)。
The MA-PS mentioned above is used to set the counter and comparator.
The original size of the image information that is compressed and stored by extracting data from the memory areas specified by Z, MB-PSZ, and MC-'PSZ is 2204 in area B in Figure 13.
12F4H (4852), 14-2.
.. 14-4.14-5.14-6.14-7.14-8
1247H (4679),
2H (2).

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

リーグはエラー発生ユニットステータス要求コマントニ
ヨってRMUメモリオーバフローがなかったことを認識
し、リーグは原稿スキャンを停止する。リーグはVSY
NCを出力しないのでRMUはリーグからのVSYNC
を待つことなしに、プリンタへのVSYNCをオンする
(S−106−D−1)。また、副走査方向余白Vp1
574ラインのカウントをすべくラインカウンタに七ッ
卜する(S−106−D−2)、ラインカウンタがアッ
プしたf、rうit−! (S−106−D−4)、V
−DEC信号をオンし、VW分の副走査ライン数330
7ラインをラインカウンタにセットしくS−106−D
−5)画像伸長と伸長エラーのチェックをラインカウン
タ終了まで行う(8−106−B−22、S−106−
B−23)。本実施例では8回以上の伸長エラーが発生
した場合、伸長エラーフラグを★ットし、コピー動作を
停止する。RMUは伸長エラーが所定回数(8回)発生
したことをリーグにシリアル通信によって伝え、リーグ
は伸長エラーが所定回数以上になったと判断した以後の
給紙命令(PR,INT)を出力せず、コピー動作を停
止する。11.MUが伸長動作を停止するためにはまず
V−DEC信号をオフしく S−106−D−8)、V
R分の副走査ライン数をセットし、ラインカウンタアッ
プ後、続いてプリンタへのVSYNCをオフしてやる。
The league uses the error unit status request command to recognize that there is no RMU memory overflow, and stops document scanning. The league is VSY
Since it does not output NC, RMU is VSYNC from the league.
VSYNC to the printer is turned on without waiting (S-106-D-1). In addition, the sub-scanning direction margin Vp1
In order to count 574 lines, the line counter is entered 7 times (S-106-D-2), and the line counter is up f, ruit-! (S-106-D-4), V
-Turn on the DEC signal and the number of sub-scanning lines for VW is 330
Set the 7th line to the line counter S-106-D
-5) Check image expansion and expansion errors until the line counter ends (8-106-B-22, S-106-
B-23). In this embodiment, if eight or more decompression errors occur, the decompression error flag is set and the copy operation is stopped. The RMU notifies the league through serial communication that the decompression error has occurred a predetermined number of times (eight times), and the league 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. 11. In order for the MU to stop the expansion operation, first turn off the V-DEC signal (S-106-D-8), V
After setting the number of sub-scanning lines for R and incrementing the line counter, VSYNC to the printer is then turned off.

リーグはコピー動作の停止をプリンタへ伝えるためにプ
リンタストップコマンドを出力し、・プリンタはこれを
入力し、コピー動作の停止を行なう。
The league outputs a printer stop command to notify the printer that the copying operation has stopped, and the printer receives this command and stops the copying operation.

伸長エラーが8回以上発生しながった場合にはRMUは
(設定枚数−1)回の伸長動作を繰り返し行い、リーグ
からのプリンタストップコマンドにより停止する( S
−1’06−C−6)。
If the decompression error does not occur more than 8 times, the RMU repeats the decompression operation (set number of sheets - 1) times, and then stops with the printer stop command from the league (S
-1'06-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 the three values from the league are directly transmitted to the printer without being stored in the compression memory.

即ち、メモリパスモードにおいては第10図のセレクタ
10−23のAI、Blを選択する。
That is, in the memory path mode, AI and Bl of the selector 10-23 in FIG. 10 are selected.

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

この後はリーグから入ってくる制御信号はプリンタへ、
またプリンタから入ってくる制御信号はリーグへそのま
ま出力し、あたかも、RMUが存在しないかの如くに動
作する。即ち、リーグからのVSYNCがオンしたら(
8−106−Dl)、プリンタへのVSYNCをオンし
、更に、リーグからの画像をセレクタ10−23を通し
てプリンタに素通しする(S−106−D−2゜S−1
06−D−3)。そして、リーグからのV S YNC
がオフされたならば(s−i 06−D−4)、プリン
タへのVSYNCをオフしくS−106−D−5)、更
にプリンタストップコマンドが入力していればプリント
動作を停止せしめる。一方、プリンタストツブコマンド
が入力していなければ再び同様の処理を設定数分繰返し
実行する。
After this, the control signals coming from the league go to the printer.
Furthermore, control signals coming from the printer are output as they are to the league, and the RMU operates as if it did not exist. In other words, if VSYNC from the league is turned on (
8-106-Dl), turn on VSYNC to the printer, and further pass the image from the league through the selector 10-23 to the printer (S-106-D-2゜S-1
06-D-3). And V SYNC from the league
is turned off (s-i 06-D-4), VSYNC to the printer is turned off (s-106-D-5), and if a printer stop command has been input, the printing 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.

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

メモリオーバレイ動作を行う第一段階としてメモリに画
像情報が書き込まれていなくてはならない。このメモリ
に画像情報の書き込みを行うRMUモードが“メモリイ
ンプットモード゛である。第13図のB領域をトリミン
グしてメモIJ C領域へ圧縮記憶する場合のR,MU
指示は、第20表に示すRMUモード指示コマンドの2
バイト目と、第21表に示すRMUメモリ指示コマンド
の2バイト目と、第24表に示す如くの、オペレータに
よるリーダの操作部からのトリミング領域指定データに
基づ<11’tMU)lJミング指示1コマンドからR
MUトリミング指示6コマンドのトリミングデータの内
容をリーダから入力する。′メモリインプットモード1
においては第1表の100−2のプリンタスタートコマ
ンドはプリンタへ出力する必要がなく、プリンタはコピ
ー動作を行なわないため、第10図示(7)SELF、
、5EL2.5EL3.5EL4 。
As a first step to perform a memory overlay operation, image information must be written to the memory. The RMU mode in which image information is written to this memory is the "memory input mode".
The instructions are 2 of the RMU mode instruction commands shown in Table 20.
<11'tMU) lJ trimming instruction based on the 2nd byte of the RMU memory instruction command shown in Table 21, and the trimming area specification data from the operator's operation section of the reader as shown in Table 24. 1 command to R
Input the contents of the trimming data of the MU trimming instruction 6 command from the reader. 'Memory input mode 1
In this case, 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.
, 5EL2.5EL3.5EL4.

5EL5 、ビデオセレクタの選択をそれぞれll’l
、−CLK、R−VDA、R−VE、R−VE、H8Y
NC。
5EL5, select the video selector respectively
, -CLK, R-VDA, R-VE, R-VE, H8Y
N.C.

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

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

リーダより入力した紙サイズとトリミングデ一タHp(
主走査基準位置) 、 Vp (副走査基準位置)、H
w(主走査中  )、Vw(副走査中)’ 、 HM 
(主走査移動位置)、VM(副走査移動位置)により、
ダウンカウンタ(14−1)には4677、コンパレー
タ(14−4)にはHpより3575、コンバレー1(
1’4”−5)にはHwより1371、コンパレータ(
14−8)は紙サイズより4677、ディザカウンタ(
14−1’)には4677をセットする。メモリアドレ
スカウンタ(10−8)には前述MS(圧縮画像書き込
み開始アドレス)、コンパL、 −タ(10−1’4)
には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 (during sub-scanning)', HM
(main scanning movement position) and VM (sub-scanning movement position),
The down counter (14-1) has 4677, the comparator (14-4) has 3575 from HP, and the comparator 1 (
1'4"-5), 1371 from Hw, comparator (
14-8) is 4677 from the paper size, and the dither counter (
14-1') is set to 4677. The memory address counter (10-8) includes the aforementioned MS (compressed image writing start address), comparator L, -ta (10-1'4).
ME (compressed image maximum write address) is set in (S-106-A-9).

RM’ UはリーダからPRINT信号を入力しても(
S−106−A−10)、プリンタがコピー動作を行な
わないためプリンタには出力せず、プリンタの代りにV
SREQ信号をリーダに出力すル(S−106−A−1
’l’ 、 S−1’06−A−1”4 ’)。リーダ
からvSYNCオンを入力すると(8−106−B−1
)、第17図B領域までのVp (この例の場合157
4)ライン圧縮しないようにするためラインカウンタ(
1’0−11)にVpをセットする( 8−1o 6−
B−2)。ラインカウンタがカウントアツプしたことを
検知しく’8−106−B−a)、圧縮動作を開始する
ためにV−ENC信号をオンする(S−106−B−4
)。また、圧縮する副走査中Vw (この例の場合33
07)をラインカウンタにセットする( S−i 06
−B−5)。そして、ラインカウンタがカウントアツプ
するまで圧縮画像メモリに圧縮動作を繰り返す(S−1
06−B−6、S−106−B−7)。ラインカウンタ
がカウントアツプしたことを検知して圧縮動作を停止す
るため、V−ENC信号をオフする(S−106−B−
8)。その後リーグからのVSYNC信号がオフになっ
たのを検知しくS−106−B−9)、メモリオー、バ
ー(メモリアドレスカウンタが圧縮画像書き込み最大ア
ドレスを越えたこと)があるかのチェックを行うため、
MOVER信号の検知を行う(第31図、S−106,
−C−1)。
Even if RM'U receives a PRINT signal from the reader (
S-106-A-10), the printer does not perform a copy operation, so it does not output to the printer, and instead of the printer, V
Outputs the SREQ signal to the reader (S-106-A-1
'l', S-1'06-A-1"4'). When you input vSYNC on from the reader (8-106-B-1
), Vp up to area B in Figure 17 (157 in this example)
4) Line counter (
Set Vp to 1'0-11) (8-1o 6-
B-2). Detecting that the line counter has counted up ('8-106-B-a), turn on the V-ENC signal to start the compression operation (S-106-B-4
). Also, during sub-scanning to compress Vw (in this example, 33
07) on the line counter (S-i 06
-B-5). Then, the compression operation is repeated in the compressed image memory until the line counter counts up (S-1
06-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, to detect that the VSYNC signal from the league has turned off (S-106-B-9), and to check whether there is a memory over (the memory address counter has exceeded the maximum address for writing compressed images). ,
Detects the MOVER signal (Fig. 31, S-106,
-C-1).

MOVER信号がHレベルであればメモリへの書き込み
が失敗したことを意味し、リーグに圧縮失敗の情報を伝
えるために圧縮失敗フラグをセットする(S−106−
C−2)。このことによす前述エラー発生ユニットステ
ータスにRMU圧縮失敗の情報が付加され、リーグはR
MU圧縮失敗を認識する。また、圧縮失敗の場合にはM
C−PSZ(メモリCの紙サイズ)、MC−METOD
 (読み取りモード)、MC8(メモリC開始アドレス
)、MCE(メモリC終了アドレス)、MC−VIDE
O(圧縮モード)の情報をメモリ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 league of the compression failure (S-106-
C-2). Due to this, information about RMU compression failure is added to the error unit status mentioned above, and the league
Recognize MU compression failure. Also, in case of compression failure, M
C-PSZ (paper size of memory C), MC-METOD
(reading mode), MC8 (memory C start address), MCE (memory C end address), MC-VIDE
The same settings are made for the O (compression mode) information as if nothing had been written in 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 league (S-106-C-6), the RMU ends the sequence processing.

今、前述のインプットモードにより、例えばメモ!JB
KAJサイズの画像情報が圧縮記憶されているとする。
Now, with the input mode mentioned above, for example memo! JB
Assume that image information of KAJ size is compressed and stored.

そして、この画像情報を“メモリオーバレイモード゛で
伸長し、リーグからの画像情報と合成しプリンタに出力
することを考える。RMUの圧縮画像メモリからの伸長
画像はRMUモード指示2バイト目ビット5を“′O″
にすることによって約50%の濃度でプリンタに対して
出力する。また、伸長画像を主走査方向にHpビット、
副走査方向にVPビットの点を基準点として主走査サイ
ズHwビット、副走査サイズVwビットの画像領をトリ
ミングしてA4サイズに出力する場合のRMUモード指
示 。
Then, consider decompressing this image information in "memory overlay mode", combining it with the image information from the league, and outputting it to the printer. “′O”
By doing so, the output is output to the printer at approximately 50% density. In addition, the decompressed image is converted into Hp bits in the main scanning direction.
RMU mode instruction for trimming an image area of main scanning size Hw bits and sub-scanning size Vw bits using the VP bit point as a reference point in the sub-scanning direction and outputting it to A4 size.

コマンド2バイト目は第25表のものを、また、RMU
メモリ指示コマンド2バイト目として第26表のものを
、RMUトリミング指示コマンド1からRMU)リミン
グ指示コマンド6のトリミングデータ1からトリミング
データ6までをビット、またはラインに変換したものと
して、それぞれHp 、Vp 、Hw、Vw、HM、V
Mという値がセットされリーグからRMUに対して出力
される。RMUは第10図セレクタ1.セレクタ2.セ
レクタ3.セレクタ4.セレクタ5゜ビデオセレクタの
選択をそれぞれR−VCLK。
The second byte of the command is the one in Table 25, and the RMU
Assuming that the data in Table 26 is used as the second byte of the memory instruction command, and that the trimming data 1 to 6 of the RMU trimming instruction command 1 to RMU) trimming instruction command 6 are converted into bits or lines, Hp and Vp, respectively. , Hw, Vw, HM, V
A value M is set and output from the league to the RMU. The RMU is selected by selector 1 in Figure 10. Selector 2. Selector 3. Selector 4. Selector 5° Video selector selection R-VCLK.

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

A3 、 B3 、をセレクトし、Dither信号に
はLレベルをセットする。
A3 and 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信号につい
ての処理は“メモリパスモード0゜または“スルーアウ
トモードと同じであるので省略する。記憶している紙サ
イズ、トリミングデータをビット、ラインに変換したH
P 、Vp 、Hw、Vw、HM、VMによりカウンタ
の設定を以下のように行う。コンバレーり14−4には
4677、コンパレータ14−5には01 コンパレー
タ14−8には4677、ダウンカウンタ13−1.1
3−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
にIFFFH,コンパレータ14−7に4677をセッ
トする。
Then, if you input the paper size instruction command from the league, it will be stored separately from the paper size of the compressed image.
The processing for the PREQ signal, PRINT signal, and VSREQ signal is the same as in the "memory pass mode 0°" or the "through-out mode, and will therefore be omitted. H that converted the memorized paper size and trimming data to bits and lines
Counters are set as follows using P, Vp, Hw, Vw, HM, and VM. 4677 for converter 14-4, 01 for comparator 14-5, 4677 for comparator 14-8, down counter 13-1.1
4677- (Hp -MM) to the counter 14-2, 4677 to the counter 14-1 When the moving direction of the image is the same as the sub-scanning direction, at the same time as inputting VSYNC ON from the league (S-106-H-1 ), turn on the VSYNC to the printer (s-106-H-2), set the line counter to make the V-DEC signal to H level by (VM-Vp) lines later than the VSYNC that outputs the V-DEC signal to the printer. (S-106-H-3). After the line counter is up (S-106-H-4), the comparator 14-6
IFFFH is set to IFFFH, and 4677 is set to comparator 14-7.

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ライン分のカウンタをセツトし、カ
ウントアツプした後(,5−tO6−H−8、8−10
6−H−9)、画像伸長が行なわれるようにTMR信号
を設定しくS−1’06−H−10)、ラインカウンタ
にVwラインセットしくS−1’06−H−11)、I
J−ダの画像と伸長画像の合成を行い、Vwライン分の
合成動作を行った後(S−106−>H−12)  伸
長動作を停止するためにV−DEC信号をオフする( 
S−106−H−1’4 )。
Setting TRM signal for trimming (S-106-
H-7) After setting the counter for L and VP lines and counting up (,5-tO6-H-8,8-10
6-H-9), set the TMR signal so that image expansion is performed S-1'06-H-10), set the Vw line to the line counter S-1'06-H-11), I
After compositing the J-da image and the expanded image, and performing the compositing operation for the Vw line (S-106->H-12), turn off the V-DEC signal to stop the expansion operation (
S-106-H-1'4).

次に、T領域をトリミングするために、TRM信号を生
成するコンパレータのセットを行い、第25図すよりコ
ンパレータ14−6は4677−HMとし、コンパレー
タ14−7は4677−、  (HW+HM )とする
( S−106−I−10)。
Next, in order to trim the T area, comparators that generate TRM signals are set, and as shown in Figure 25, comparator 14-6 is set to 4677-HM, and comparator 14-7 is set to 4677-, (HW+HM) (S-106-I-10).

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

次に、コントローラ10−2はT領域の副走査中のVw
ラインをラインカウンタi o−t iにより計数しく
 8−106−I−11’)、T領域の画像信号がプリ
ンタへ出力されたことを検出し、伸長動作を停止させる
べく VDEC信号をoffl15 する( S−106−I−12)。
Next, the controller 10-2 controls Vw during sub-scanning of the T area.
8-106-I-11'), detects that the image signal of the T area is output to the printer, and turns off the VDEC signal to stop the expansion operation (8-106-I-11'). S-106-I-12).

これでコントローラ10−2は圧縮画像データの伸長出
力を終了したので、リーダ10−1の画像が全てプリン
タ10−3に出力されるのを待つ(S−106−I−1
3)。リーダのPVSYNCがoffされたことを検出
したらプリンタ1〇−3へのVSYNC(PVSYNC
)をoffl;プリンタ10−3への1枚の画像出力を
終了しくS−106−I−14)、設定枚数のコピーが
終了したか否かをチェックするために、既に説明した第
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 (S-106-I-1
3). When it is detected that the PVSYNC of the reader is turned off, the VSYNC to the printer 10-3 (PVSYNC
) to end the output of one image to the printer 10-3 (S-106-I-14), and in order to check whether the set number of copies has been completed, the process shown in FIG. Proceed to S-106-C-6).

一方、伸長画像Tの副走査移動方向が、副走査方向と逆
の方向の場合は第34図の(S−106−G−1)から
第36図進み、第22図(C)の圧縮画像メモリからの
圧縮画像データを伸長したA4サイズの画像信号から副
走査画像位置V1=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 position V1=VP from A4 size image signal expanded from compressed image data from memory.

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

T領域の主走査画像位置H,=Hp、主走査画像巾H2
= Hwと、T領域を主走査方向に移動させて主走査紙
始端からtlまでの距離Hs ”” HMとした場合、
第21図によりカウンタ14−1(HADR)のロード
値は4677゜HAREA信号を発生するコンパレータ
14−4 ニハ4677゜コンパレータ14−5には0
をセットする。ディザカウンタを起動させるコンパレー
タ14−8には4677をセットし、ディザカウンタ1
3−1.13−2には4677− (HM−Hp )を
セットする(S−106−I−1)。ここで)O8YS
をICLKとすべく S EL 1 (10−18)を
セットしてさらに、メモリアドレスカウンタ10−8に
Uの圧縮画像データの先頭アドレスをセットして、V−
DB(:’信号をOnし、0画像の伸長を開始する。こ
こで、ラインカウンタi o−i 1により0画像が副
走査方向にコピー用紙からはみ出るライン長(VP−V
M )ラインを計数し(s−106−I−3)、−担V
−DEC信号をoffし、伸長動作を中断する( 8−
106−I−4)。
Main scanning image position H of T area, = Hp, main scanning image width H2
= Hw and the distance from the starting edge of the main scanning paper to tl by moving the T area in the main scanning direction is Hs "" HM,
According to FIG. 21, the load value of the counter 14-1 (HADR) is 4677°.
Set. The comparator 14-8 that starts the dither counter is set to 4677, and the dither counter 1 is set to 4677.
Set 4677- (HM-Hp) in 3-1.13-2 (S-106-I-1). Here) O8YS
Set SEL 1 (10-18) to set it as ICLK, set the start address of the compressed image data of U in the memory address counter 10-8, and set V-
Turn on the DB(:' signal and start expanding the 0 image. Here, the line counter i o-i 1 determines the line length (VP-V
M) Count the lines (s-106-I-3), -carry V
-Turn off the DEC signal and interrupt the expansion operation (8-
106-I-4).

これ以降の画像伸長はリーダ10−1のVSYNC(P
VSYNC)に同期してリーダ1〇−1のクロックで行
うため、5EC1(10−18)により08YSはRV
CKを選択する。これによりリーダの画像と、0画像を
合成した時の主走査方向の画素の不ぞろいを防ぐことが
できる。
Image decompression from this point on is performed using the reader 10-1's VSYNC (P
08YS is RV due to 5EC1 (10-18) because it is performed using the clock of reader 10-1 in synchronization with VSYNC).
Select CK. This can prevent pixels from being misaligned in the main scanning direction when the reader image and the 0 image are combined.

この状態でリーダからのVSYNCを検出したらコント
ローラ10−2はプリンタに、レジスト給紙信号PVS
YNCを出力する(S−106−I−6)とともに、副
走査にVMラインの間、伸長画像を出力しないようにT
RM信号をLレベルにする。
In this state, when VSYNC is detected from the reader, the controller 10-2 sends the registration paper feed signal PVS to the printer.
In addition to outputting YNC (S-106-I-6), set T to not output the expanded image during the VM line in sub-scanning.
Set the RM signal to L level.

これは、コンパレータ14−6にIFFF’Hを、コン
パレータ14−7に4677をセットすることで実現さ
れる( S−106−I−7)。この後、中断していた
画像伸長を開始するために、メモリアドレスカウンタ1
0−8の値は、そのままにして、■−DEC信号をOn
にする。ここで、7画像を出力するまでのVMラインを
ラインカウンタ10−11で計数する(S−106−I
−9)。
This is achieved by setting IFFF'H 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 1 is
Leave the values 0-8 as they are, and turn on the ■-DEC signal.
Make it. Here, the line counter 10-11 counts the VM lines until 7 images are output (S-106-I
-9).

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

■19 尚、本実施例では圧縮方法としてランレングス符号化を
用いたが、MH,MR等の他の符号化を行ってもよい。
(19) In this embodiment, run-length encoding is used as the compression method, but other encoding methods such as MH and MR may be used.

また、伸長動作又は出力を停止するための判断に用いる
伸長の異常発生回数も8に限るものでないことは言う迄
もない。また、圧縮画像信号は電話回線等を伝送されて
きたものでもよい。
Furthermore, it goes without saying that the number of times an abnormality in expansion occurs, which is used to determine whether to stop the expansion operation or output, is not limited to eight. Further, the compressed image signal may be one transmitted over a telephone line or the like.

以上説明した様に本発明によると、圧縮された画像信号
の伸長動作に異常があっても、正常な画像信号を代って
出力することにより画像の乱れを防ぐとともに、異常が
繰返し発生する場合には伸長動作又は出力を停止し、無
駄な伸長動作を防止し、異常回復への対策を迅速に取れ
る様にするも第2表     第3表 第4表 第  5  表 第6表     第7表 第8表 第  9  表 第1O表     第11表 第12表    第13表 第14表    第15表 第16表 第18表 第19表 第20表    第21表 第22表    第23表 第24表 第25表    第26表
As explained above, according to the present invention, even if there is an abnormality in the decompression operation of a compressed image signal, a normal image signal is output instead, thereby preventing image distortion, and even if the abnormality occurs repeatedly. In such cases, the extension operation or output should be stopped to prevent unnecessary extension operations and to take prompt measures against abnormal recovery.Table 2Table 3Table 4Table 5Table 6Table 7Table 7 Table 8 Table 9 Table 1O 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 the drawing]

第1図は本発明を適用した画像処理システムの構成例を
示す図、第2図はリーグによる画像読取り動作を説明す
る図、第3図はリーグの概略回路構成を示すブロック図
、第4図はプリンタの概略構成を示す図、第5図はプリ
ンタの概略回路構成を示すブロック図、第6図はビデオ
インターフェースの内容を示す図、第7図は画像信号の
伝送方式を示す図、第8図はビデオインターフェースの
各種信号を示す図、第9図は符号化動作の説明図、第1
0図は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はプリンタ、1O−2は
コントローラ、10−4は圧縮回路、1O−5は圧縮画
像メモリ、10−6は伸張回路、to−15はダブルバ
ッファメモリ、10−23はビデオセレクタ、10−8
はメモリアドレスカウンタである。
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 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, and FIG. 8 is a diagram showing the schematic configuration of the printer. The figure shows various signals of the video interface. Figure 9 is an explanatory diagram of the encoding operation.
FIG. 0 is a block diagram showing the detailed configuration of the RMU, FIG. 11 is a configuration diagram of a dither counter, FIG. 12 is a configuration diagram of a main scanning counter decoder, FIG. 13 is a diagram showing a trimming state of an original image, and FIG. 15 is a timing chart showing the image signal compression operation, FIG. 15 is a diagram showing the storage state of the memory, FIG. 16 is an explanatory diagram of dither compression, and FIG. 17 is a timing chart showing the image signal expansion operation, FIG. 18 is a timing chart showing the operation during a temporary elongation error. 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, and Fig. 22 (a)
, (b), and (C) are diagrams showing image movement operations in the sub-scanning direction, FIG. 23 is a flowchart diagram showing the procedure for serial communication of commands, and FIG. 24 is a flowchart diagram showing the procedure for serial communication of statuses. , FIG. 25 is a flowchart showing the communication procedure before the copy operation, and FIG.
Figure 27 is a flowchart showing the operation of the league, Figure 27 is a flowchart showing the operation of the printer, Figure 28 is a diagram showing the state of the memory area, and Figures 29 to 36 are RMU.
1-1 is a league, 1-2 is an RMU, 1-3 is a printer, 1O-2 is a controller, 10-4 is a compression circuit, 1O-5 is a compressed image memory, 10 -6 is an expansion circuit, to-15 is a double buffer memory, 10-23 is a video selector, 10-8
is a memory address counter.

Claims (1)

【特許請求の範囲】 圧縮画像を入力する入力手段と、 上記入力手段から入力された圧縮画像を伸長して出力す
る伸長手段と、上記伸長手段における伸長動作の異常を
検出する手段と、 上記検出手段により上記伸長手段の伸長動作の異常を検
出した場合、異常のあった伸長画像に代えて、以前に伸
長した異常のない伸長画像信号を出力する手段と、伸長
動作の異常の発生回数をカウントする手段を有し、 上記カウント手段のカウント値が所定数以上になったこ
とにより上記伸長手段の伸長動作または伸長画像の出力
動作を停止することを特徴とする画像処理システム。
[Scope of Claims] Input means for inputting a compressed image; decompression means for decompressing and outputting the compressed image input from the input means; means for detecting an abnormality in the decompression operation in the decompression means; If the means detects an abnormality in the expansion operation of the expansion means, the means outputs a previously expanded decompressed image signal with no abnormality in place of the decompressed image with the abnormality, and counts the number of occurrences of the abnormality in the decompression operation. An image processing system comprising means for: stopping the decompression operation of the decompression means or the output operation of the decompressed image when the count value of the count means exceeds a predetermined number.
JP60017013A 1985-01-31 1985-01-31 Picture processing system Pending JPS61176287A (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (1)

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

Family

ID=11932112

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JPS61176287A (en)

Similar Documents

Publication Publication Date Title
US4884147A (en) Image signal processing system
US4814890A (en) Image communicating system
US4814898A (en) Image signal processing system
US5517319A (en) Apparatus for combining divided portions of larger image into a combined image
US5142594A (en) Image data communication control system
JP3431686B2 (en) Image data converter
EP0751675B1 (en) Image forming apparatus
US20050073718A1 (en) Image forming method
JPS61176287A (en) Picture processing system
JPS61176253A (en) Picture processing system
JPH08101850A (en) Composite image input/output device
JP2823155B2 (en) Image processing system
JPS61176264A (en) Picture processing system
JPS61176265A (en) Picture processing system
JPS61176262A (en) Picture processing system
US5162917A (en) Image data communication control system with image recorder status data output in synchronism with either internally or externally generated clock pulses
JPS61176288A (en) Picture processing system
JPS61176291A (en) Picture processing system
JPS61176261A (en) Picture processing system
JPS61176289A (en) Picture processing system
JPS61176290A (en) Picture processing system
JPS61176278A (en) Picture processing system
JPS61176266A (en) Picture processing system
JPS61176263A (en) Picture processing system
JPS61176280A (en) Picture processing system