JPH044953B2 - - Google Patents

Info

Publication number
JPH044953B2
JPH044953B2 JP59025846A JP2584684A JPH044953B2 JP H044953 B2 JPH044953 B2 JP H044953B2 JP 59025846 A JP59025846 A JP 59025846A JP 2584684 A JP2584684 A JP 2584684A JP H044953 B2 JPH044953 B2 JP H044953B2
Authority
JP
Japan
Prior art keywords
horizontal
ruled line
data
line
ruled
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP59025846A
Other languages
Japanese (ja)
Other versions
JPS60168676A (en
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 filed Critical
Priority to JP59025846A priority Critical patent/JPS60168676A/en
Publication of JPS60168676A publication Critical patent/JPS60168676A/en
Publication of JPH044953B2 publication Critical patent/JPH044953B2/ja
Granted legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J29/00Details of, or accessories for, typewriters or selective printing mechanisms not otherwise provided for
    • B41J29/26Devices, non-fluid media or methods for cancelling, correcting errors, underscoring or ruling

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Dot-Matrix Printers And Others (AREA)
  • Record Information Processing For Printing (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明はワードプロセツサ用のプリンタある
いはラインプリンタ等において、罫線用フオント
を用いることなく罫線のイメージデータを発生す
る横破線イメージ発生装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a horizontal broken line image generating device for generating ruled line image data without using a ruled line font in a word processor printer or a line printer.

〔従来技術〕[Prior art]

従来、ワードプロセツサ等において罫線のイメ
ージデータ(ビデオデータ)を発生させる際には
罫線用の各種フオントをメモリに記憶し、該記憶
した各種フオントのうち所要のものを所定のコー
ドを用いて読出すことにより、罫線を印字するよ
うにしていた。
Conventionally, when generating image data (video data) of ruled lines in a word processor, etc., various fonts for the ruled lines are stored in a memory, and a required one of the stored various fonts is read using a predetermined code. By taking out the paper, the ruled lines were printed.

しかし、この従来方式では1つの種類の罫線に
対して少なくとも11個(−,|,,,,,
〓,〓,〓,+,⊥)のフオントを必要とし、線
の太さ、線種(実線,破線など)、線長等の異な
る罫線を実現しようとすると、フオントの数が飛
躍的に増加し、これはメモリ容量の増加あるいは
コスト高につながる。また、この方式では1つの
フオントをアクセスする場合、罫線データが書込
まれているビツト以外の余白ビツトもアクセスし
なければならず、処理に無駄な時間を要する。
However, in this conventional method, there are at least 11 ruled lines (−, |, , , ,
〓, 〓, 〓, +, ⊥) fonts are required, and when trying to create ruled lines with different line thicknesses, line types (solid lines, broken lines, etc.), line lengths, etc., the number of fonts increases dramatically. However, this leads to an increase in memory capacity or cost. Furthermore, in this method, when one font is accessed, margin bits other than the bits in which ruled line data are written must also be accessed, which results in wasted processing time.

〔発明の目的〕[Purpose of the invention]

この発明は上記実情に鑑みてなされたものであ
り、罫線用フオントを用いることなく任意の罫
線、特に任意印字周期の横破線を実現するように
してメモリ量の削減を図り、かつ高速処理が可能
な横破線イメージ発生装置を提供することを目的
とする。
This invention was made in view of the above-mentioned circumstances, and achieves arbitrary ruled lines, especially horizontal broken lines with arbitrary printing cycles, without using a ruled line font, thereby reducing the amount of memory and enabling high-speed processing. The present invention aims to provide a horizontal broken line image generating device.

〔発明の構成〕[Structure of the invention]

この発明は一主走査ごとのラスタ走査により印
字を行なうプリンタに適用される。この発明で
は、フオントメモリに記憶させた各種文字パター
ンを入力された文字情報に対応してドツトごとに
順次出力し、該出力した文字パターンと、横破線
イメージ発生装置においてドツトごとに順次発生
した横破線イメージデータとをドツト単位に合成
してプリンタに送出するラスタイメージデータを
作成するようにしている。
The present invention is applied to a printer that performs printing by raster scanning for each main scan. In this invention, various character patterns stored in a font memory are sequentially outputted dot by dot in accordance with input character information, and the outputted character patterns are combined with horizontal dots generated sequentially for each dot in a horizontal broken line image generator. The raster image data is combined with the broken line image data dot by dot to create raster image data to be sent to the printer.

この発明の横破線イメージ発生装置において
は、横罫線の識別信号、罫線印字開始および終了
位置を示す信号、破線を指定する信号、線の太さ
を示す信号を含む罫線コマンドを入力する罫線コ
マンド入力手段と、一主走査線分のドツト数の記
憶容量を有する横罫線用イメージバツフアと、罫
線コマンドが入力されたとき、所定ビツト数の黒
データがセツトされる入出力ポートと、前記入力
された罫線コマンド中で横罫線が指定された場合
は罫線印字開始および終了位置を示す信号に対応
するデータ転送開始アドレスおよびデータ転送長
がセツトされ、これらデータ転送開始アドレスお
よびデータ転送長に従つて前記入出力ポートにセ
ツトされた前記所定ビツト数の黒データを前記横
罫線用イメージバツフアに順次転送するDMAコ
ントローラと、前記入力された罫線コマンド中で
横破線が指定された場合、前記所定ビツト数の黒
データの転送周期に同期してDMAコントローラ
から発生される書き込みパルスを間欠的に選択抽
出し、この選択抽出したパルス信号を前記横罫線
用イメージバツフアに書き込みイネーブル信号と
して入力することにより前記横罫線用イメージバ
ツフアに横罫線イメージデータを形成する横破線
イメージ作成手段と、前記入力された罫線コマン
ド中で横罫線が指定された場合は罫線コマンド中
の線の太さを示す情報に対応する回数だけ前記横
罫線用イメージバツフアに作成された前記横破線
イメージデータを繰り返し読み出す読み出し制御
手段とを具備することを特徴とする。
In the horizontal broken line image generating device of the present invention, a ruled line command input includes a horizontal ruled line identification signal, a signal indicating a ruled line printing start and end position, a signal specifying a broken line, and a signal indicating line thickness. means, an image buffer for horizontal ruled lines having a storage capacity for the number of dots for one main scanning line, an input/output port to which black data of a predetermined number of bits is set when a ruled line command is input; If a horizontal ruled line is specified in the ruled line command, the data transfer start address and data transfer length corresponding to the signals indicating the ruled line printing start and end positions are set, and the data transfer start address and data transfer length are a DMA controller that sequentially transfers the predetermined number of black data set in the input/output port to the horizontal ruled line image buffer; By intermittently selectively extracting write pulses generated from the DMA controller in synchronization with the black data transfer period of A horizontal broken line image creation means for forming horizontal ruled line image data in an image buffer for horizontal ruled lines, and when a horizontal ruled line is specified in the input ruled line command, it corresponds to information indicating the thickness of the line in the ruled line command. The present invention is characterized by comprising readout control means for repeatedly reading out the horizontal broken line image data created in the horizontal ruled line image buffer the number of times.

〔実施例〕〔Example〕

以下、本発明を添付図面に示す実施例にしたが
つて詳細に説明する。
Hereinafter, the present invention will be described in detail with reference to embodiments shown in the accompanying drawings.

第1図に本発明の横破線イメージ発生装置が適
用されるプリンタ装置の全体的構成を示す。
FIG. 1 shows the overall configuration of a printer device to which the horizontal broken line image generating device of the present invention is applied.

ホストコンピユータあるいは入出力装置等の外
部装置から入力されたコマンド信号CMおよび印
字データ信号DTは本プリンタ装置内の印字制御
部1およびラスタイメージ作成部2に入力され
る。罫線が印字される場合には、このコマンド信
号CM中に罫線コマンドが含まれる。印字制御部
1は上記コマンド信号CMに基づいた態様で印字
データDTを印字させるべくラスタイメージ作成
部2を制御する一方、ラインバツフアL1,L2
切替制御を行ない、さらに印字部3の駆動制御を
行なう。ラスタイメージ作成部2は後で詳述する
が、該ラスタイメージ作成部2内のフオントメモ
リに記憶した文字パターンと該ラスタイメージ作
成部2内で発生した罫線パターンとを1ドツトず
つ順次合成し、一走査線ごとのラスタ情報RDと
してラインバツフアL1,L2に順次出力する。ラ
インバツフアL1,L2は2ラインバツフア構成を
とつており、一方のラインバツフアにラスタ情報
RDが入力されているときには、他方のラインバ
ツフアは既に入力された前走査線のラスタ情報
RDを印字部3に出力している状態にある。印字
部3はラインバツフアから入力されたラスタ情報
を記録媒体上に実際に印字する。
A command signal CM and a print data signal DT inputted from a host computer or an external device such as an input/output device are inputted to a print control section 1 and a raster image creation section 2 in this printer device. If ruled lines are to be printed, this command signal CM includes a ruled line command. The print control unit 1 controls the raster image creation unit 2 to print the print data DT in a manner based on the command signal CM, controls the switching of the line buffers L 1 and L 2 , and also controls the drive of the print unit 3. Do this. As will be described in detail later, the raster image creation section 2 sequentially synthesizes the character pattern stored in the font memory in the raster image creation section 2 and the ruled line pattern generated in the raster image creation section 2 dot by dot, It is sequentially output to line buffers L 1 and L 2 as raster information RD for each scanning line. Line buffers L 1 and L 2 have a two-line buffer configuration, and one line buffer has raster information.
When RD is input, the other line buffer is the raster information of the previous scan line that has already been input.
RD is being output to the printing section 3. The printing unit 3 actually prints the raster information input from the line buffer onto the recording medium.

第2図に本発明の要部をなすラスタイメージ作
成部2の内部構成例を示す。
FIG. 2 shows an example of the internal configuration of the raster image creation section 2, which constitutes the main part of the present invention.

外部装置から入力されたコマンド信号CMおよ
びデータ信号DTはラスタイメージ作成部2内の
制御装置10に入力される。このコマンド信号
CM中に含まれる罫線コマンドであるが、これに
は横罫線および縦罫線の識別ビツト、罫線印字開
始位置(X,Y)、罫線印字終了位置(X′,Y′)、
破線、実線などの線種を指定するビツト、線の太
さを指定するビツト等が含まれる。
A command signal CM and a data signal DT input from an external device are input to a control device 10 within the raster image creation section 2. This command signal
The ruled line command included in the commercial includes horizontal and vertical ruled line identification bits, ruled line printing start position (X, Y), ruled line printing end position (X', Y'),
This includes bits that specify line types such as broken lines and solid lines, and bits that specify line thickness.

制御装置10と他の構成要素とはデータバス
DB、アドレスバスAB、コントロールバス(図
示せず)を介して結合されている。フオントメモ
リ20にはアルフアベツト、数字、漢字等の文字
が実際の形に対応するように記憶されており、フ
オントメモリ20は制御装置10から出力された
文字コードデータDTに基づき記憶している文字
データを読出し、該読出した文字データとバスセ
レクタ30を介して文字用イメージバツフア40
に入力する。文字用イメージバツフア40は少な
くとも1ラスタ線分のイメージデータを一時記憶
することができる容量を有しており、フオントメ
モリ20から1ラスタ線ごとに順次入力される文
字データを一時記憶する一方、該一時記憶した文
字データをバツフアセレクタ50の制御にしたが
つてバスセレクタ30を介してPS(パラレル・シ
リアル)変換部55に出力する。
The control device 10 and other components are connected to a data bus.
DB, address bus AB, and a control bus (not shown). The font memory 20 stores characters such as alphabets, numbers, and kanji characters so as to correspond to their actual shapes, and the font memory 20 stores character data based on the character code data DT output from the control device 10. is read out and sent to the character image buffer 40 via the read character data and the bus selector 30.
Enter. The character image buffer 40 has a capacity to temporarily store image data for at least one raster line, and temporarily stores character data sequentially input from the font memory 20 for each raster line. The temporarily stored character data is output to a PS (parallel-serial) converter 55 via the bus selector 30 under the control of the buffer selector 50.

次に罫線イメージ発生のための構成であるが、
まず横罫線用イメージバツフア41は少なくとも
1ラスタ線分に相当する横罫線用のイメージデー
タを一時記憶することができる容量を有してお
り、I/Oポート60から1バイト単位で転送さ
れる横罫線用データを指定されたアドレスに従つ
て所定の領域に記憶する。縦罫線用イメージバツ
フア42も同様に少なくとも1ラスタ線分に相当
する縦罫線用のイメージデータを一時記憶するこ
とができる容量を有し、I/Oポート60から1
バイト単位に転送される縦罫線用データを指定さ
れたアドレスにしたがつて所定の領域に記憶す
る。これら各イメージバツフア40,41,42
の各イネーブル端子および各書込みイネーブル端
子にはそれぞれイネーブル信号EN0,EN1,EN2
および書込みイネーブル信号WE0,WE1,WE2
がそれぞれ入力されており、各イメージバツフア
40,41,42はイネーブル信号EN0,EN1
EN2が入力されたときにアクテイブ状態となり、
またイネーブル信号EN0,EN1,EN2と書込みイ
ネーブル信号WR0,WR1,WR2の両方が入力さ
れたときにそれぞれ書込み可能な状態となる。
Next is the configuration for generating a ruled line image.
First, the image buffer 41 for horizontal ruled lines has a capacity that can temporarily store image data for horizontal ruled lines corresponding to at least one raster line segment, and is transferred from the I/O port 60 in units of 1 byte. Data for horizontal ruled lines is stored in a predetermined area according to a specified address. Similarly, the vertical ruled line image buffer 42 has a capacity that can temporarily store vertical ruled line image data corresponding to at least one raster line segment, and has a capacity that can temporarily store image data for vertical ruled lines corresponding to at least one raster line segment.
Vertical ruled line data transferred in byte units is stored in a predetermined area according to a designated address. Each of these image buffers 40, 41, 42
Each enable terminal and each write enable terminal have enable signals EN 0 , EN 1 , EN 2 respectively.
and write enable signals WE 0 , WE 1 , WE 2
are respectively input, and each image buffer 40, 41, 42 receives enable signals EN 0 , EN 1 ,
It becomes active when EN 2 is input,
Furthermore, when both the enable signals EN 0 , EN 1 , EN 2 and the write enable signals WR 0 , WR 1 , WR 2 are input, each becomes in a writable state.

次にI/Oポート60は1バイトから成つてお
り、罫線イメージを作成する際に制御装置10に
よつて黒データがセツトされる。この1バイト分
の黒データであるが印字長にして約1mm線長であ
る。I/Oポート60から横および縦罫線用イメ
ージバツフア41および42へのデータ転送は
DMA(ダイナミツク・メモリ・アクセス)コン
トローラ70によつて高速に実行される。
Next, the I/O port 60 consists of one byte, and black data is set by the control device 10 when creating a ruled line image. This 1 byte of black data has a printing length of approximately 1 mm line length. Data is transferred from the I/O port 60 to the image buffers 41 and 42 for horizontal and vertical ruled lines.
It is executed at high speed by a DMA (dynamic memory access) controller 70.

DMAコントローラ70は高速データ転送のた
めの周知のDMAデバイスであり、制御装置10
からのDMA要求があると制御装置10をホール
ドした後DMA動作を開始する。DMAコントロ
ーラ70と制御装置10とはトライステートバツ
フア(図示せず)を介してバス接続されており、
該トライステートバツフアによつて制御装置10
はDMAコントローラ70が動作する際にデータ
バスDBおよびアドレスバスABから好適に分離
されるようになつている。コマンド信号中に罫線
コマンドを検出すると、制御装置10はDMAコ
ントローラ70に対してDMA要求を出すととも
に、罫線コマンド中の印字開始位置(X,Y)お
よび印字終了位置(X′,Y′)に対応したデータ
転送開始アドレスおよび転送バイト長をDMAコ
ントローラ70にセツトする。また、横破線指定
があつた場合は、横破線指定信号SLを論理レベ
ルでハイレベルとし、横実線の場合は該信号SL
をロウレベルとする。この後、DMAコントロー
ラ70は制御装置10をホールドしてバスから切
離した後、上記データ転送開始アドレスおよび転
送バイト長に基づきI/Oポート60の黒データ
を横罫線用イメージバツフア41または縦罫線用
イメージバツフア42に高速転送する。
DMA controller 70 is a well-known DMA device for high-speed data transfer, and controller 10
When there is a DMA request from the control device 10, the control device 10 is held and then the DMA operation is started. The DMA controller 70 and the control device 10 are connected to each other by a bus via a tri-state buffer (not shown).
The tri-state buffer controls the control device 10.
is preferably separated from the data bus DB and address bus AB when the DMA controller 70 operates. When a ruled line command is detected in the command signal, the control device 10 issues a DMA request to the DMA controller 70, and at the same time prints the print start position (X, Y) and print end position (X', Y') in the ruled line command. The corresponding data transfer start address and transfer byte length are set in the DMA controller 70. In addition, when a horizontal broken line is specified, the horizontal broken line specification signal SL is set to a high logic level, and in the case of a horizontal solid line, the signal SL is set to a high level.
is the low level. Thereafter, the DMA controller 70 holds the control device 10 and disconnects it from the bus, and transfers the black data of the I/O port 60 to the horizontal ruled line image buffer 41 or the vertical ruled line image buffer 41 based on the data transfer start address and transfer byte length. The images are transferred to the image buffer 42 at high speed.

次に、書込み信号コントロール部80は各イメ
ージバツフア40,41,42に対する書込みイ
ネーブル信号WE0,WE1,WE2を出力する回路
であり、第3図にその内部構成例を示す。なお、
第3図に示したものは、特に横罫線用イメージバ
ツフア41の書込みイネーブル信号WE1をコン
トロールするための構成である。第3図におい
て、DMAコントローラ70の書込みパルスWR
(第4図a参照)はアンドゲート81に入力され
る一方、カウンタ82に入力される。この書込み
パルスWRは前記DMAコントローラ70の1バ
イトずつのデータ転送に同期して出力される。カ
ウンタ82はDMA肯定応答信号DMACKが入力
されるとアクテイブ状態となり、所定の2進計数
動作を実行する。DMA肯定応答信号DMACKと
は、DMAコントローラ70が制御装置10の
DMA要求に対して肯定応答するとき出力される
信号であり、DMA動作中は能動レベルとなつて
いる。カウンタ82の複数ビツト出力はエンコー
ダ83に入力される。エンコーダ83には所定の
組合せ論理が組まれており、エンコーダ83はカ
ウンタ82の出力を所定の態様でエンコードする
ことにより、ハイレベルおよびロウレベルが所定
の周期で繰返されるパルス信号EC(第4図c参
照)を出力する。該エンコーダ83内の内部論理
は任意設定が可能な構成となつている。このパル
ス信号ECはナンドゲート84に入力され、ナン
ドゲート84で制御装置10から入力される横破
線指定信号SL(第4図b参照)と論理積がとられ
た後、アンドゲート81に入力される。横破線を
印字する場合、横破線指定信号SLはハイレベル
となつており、エンコーダ83から出力されるパ
ルス信号ECが論理反転されてアンドゲート81
に入力されるが、横実線を印字する場合横破線指
定信号SLはロウレベルとなつており、この為ナ
ンドゲート84の出力はハイレベルとなり、アン
ドゲート81からは書込みパルスがそのままの形
で出力される。このような構成となつているため
に、アンドゲート81から出力される書込みイネ
ーブル信号WE1は横破線指定信号SLがハイレベ
ルで入力されたときには、第4図dに示すように
所定の周期でハイレベルおよびロウレベルを繰返
す。このため、DMAコントローラ70によつて
I/Oポート60から横罫線用イメージバツフア
41に転送される黒データは間欠的に書込みがで
きない状態となり、これにより該横罫線用イメー
ジバツフア41に記憶されるイメージデータは所
定周期の横破線イメージデータとなる。
Next, the write signal control unit 80 is a circuit that outputs write enable signals WE 0 , WE 1 , WE 2 to each of the image buffers 40, 41, 42, and an example of its internal configuration is shown in FIG. In addition,
The configuration shown in FIG. 3 is particularly for controlling the write enable signal WE1 of the image buffer 41 for horizontal ruled lines. In FIG. 3, the write pulse WR of the DMA controller 70
(see FIG. 4a) is input to an AND gate 81, while it is input to a counter 82. This write pulse WR is output in synchronization with data transfer of one byte by the DMA controller 70. When the counter 82 receives the DMA acknowledgment signal DMACK, it becomes active and performs a predetermined binary counting operation. The DMA acknowledgment signal DMACK is a signal that the DMA controller 70 sends to the control device 10.
This signal is output when acknowledging a DMA request, and is at active level during DMA operation. The multi-bit output of counter 82 is input to encoder 83. The encoder 83 has a predetermined combinational logic, and by encoding the output of the counter 82 in a predetermined manner, the encoder 83 generates a pulse signal EC (FIG. 4c) in which high level and low level are repeated at a predetermined period. reference) is output. The internal logic within the encoder 83 is configured to be arbitrarily set. This pulse signal EC is input to the NAND gate 84, where it is logically ANDed with the horizontal broken line designation signal SL (see FIG. 4b) input from the control device 10, and then input to the AND gate 81. When printing a horizontal broken line, the horizontal broken line designation signal SL is at a high level, and the pulse signal EC output from the encoder 83 is logically inverted and output to the AND gate 81.
However, when printing a horizontal solid line, the horizontal broken line designation signal SL is at a low level, so the output of the NAND gate 84 is at a high level, and the write pulse is output from the AND gate 81 as it is. . Because of this configuration, the write enable signal WE1 output from the AND gate 81 is output at a predetermined period as shown in FIG. 4d when the horizontal broken line designation signal SL is input at a high level. Repeat high level and low level. Therefore, the black data transferred from the I/O port 60 to the image buffer 41 for horizontal ruled lines by the DMA controller 70 becomes intermittently unable to be written, and as a result, is stored in the image buffer 41 for horizontal ruled lines. The image data to be displayed is horizontal broken line image data with a predetermined period.

次に、第2図においてアドレスデコーダ80は
制御装置10の制御に従いアドレスバスAB上の
アドレス信号をデコードし、該デコードした信号
をバツフアセレクタ50に出力する。前述した3
つのイメージバツフア40,41,42にそれぞ
れ割付けているアドレスはそれぞれ異つており、
アドレスバスAB上のアドレス信号をデコードす
ることにより、どのイメージバツフアが制御装置
10に指定されたかを判別するることができる。
バツフアセレクタ50はイメージバツフア40,
41,42へのデータ書込みの際上記デコーダ結
果を参照することによりどのイメージバツフアを
書込みあるいは読出し可能なアクテイブ状態とす
るかを決定する。また、データ読出しの際には、
印字制御部1(第1図参照)から入力されるセレ
クト信号ISに基づきどのイメージバツフアを選択
するかを決定する。バスセレクタ30は制御装置
10の制御に基づき、各イメージバツフア40,
41,42にデータを書込むときとデータを読出
すときとで、書込みアドレスABと読出しアドレ
スRA、データバスDBとDB′を適宜切換えて接続
する。
Next, in FIG. 2, address decoder 80 decodes the address signal on address bus AB under the control of control device 10, and outputs the decoded signal to buffer selector 50. 3 mentioned above
The addresses assigned to each of the image buffers 40, 41, and 42 are different.
By decoding the address signal on the address bus AB, it is possible to determine which image buffer is designated by the control device 10.
The buffer selector 50 is the image buffer 40,
When writing data to 41 and 42, by referring to the decoder results, it is determined which image buffer should be in an active state where writing or reading is possible. Also, when reading data,
Which image buffer to select is determined based on a selection signal IS input from the print control section 1 (see FIG. 1). Based on the control of the control device 10, the bus selector 30 selects each image buffer 40,
When writing data to 41 and 42 and when reading data, the write address AB, read address RA, and data buses DB and DB' are appropriately switched and connected.

次に、PS変換部55はデータ読出しの際に1
バイト単位で転送される3つのイメージバツフア
40,41,42の記憶データをパラレル−シリ
アル変換し、1ビツトずつ順次オア回路56に出
力する。オア回路56ではこれら3つの出力の論
理和をとることにより、文字イメージバツフア4
0に一時記憶した文字パターンと横罫線用イメー
ジバツフア41あるいは縦罫線用イメージバツフ
ア42から出力される罫線イメージとを合成し、
該論理和出力をラスタイメージ作成部2の最終出
力として、第1図のラインバツフアL1,L2に出
力する。
Next, the PS converter 55 performs 1 when reading data.
The data stored in the three image buffers 40, 41, and 42, which are transferred in bytes, is subjected to parallel-to-serial conversion and sequentially outputted bit by bit to the OR circuit 56. The OR circuit 56 calculates the logical sum of these three outputs to create a character image buffer 4.
0, and the ruled line image output from the horizontal ruled line image buffer 41 or the vertical ruled line image buffer 42,
The logical sum output is outputted to line buffers L 1 and L 2 in FIG. 1 as the final output of the raster image creation section 2.

かかる構成において、横破線の罫線を印字する
場合の動作について説明する。
In this configuration, the operation when printing horizontal broken ruled lines will be described.

罫線コマンドを受取ると、制御装置10では
I/Oポート60に白データをセツトするととも
に、DMAコントローラ70に対してDMA要求
を出す。DMAコントローラ70は制御装置10
をホールドしてバスから切離した後、該1バイト
の白データを横罫線用イメージバツフア41に順
次転送して横罫線用イメージバツフア41をクリ
アする。
Upon receiving the ruled line command, the control device 10 sets white data in the I/O port 60 and issues a DMA request to the DMA controller 70. DMA controller 70 is control device 10
After holding and disconnecting from the bus, the 1-byte white data is sequentially transferred to the horizontal ruled line image buffer 41 to clear the horizontal ruled line image buffer 41.

この後、制御装置10はI/Oポート60に黒
データをセツトし、罫線コマンド信号で指定され
た印字位置に対応するデータ転送開始アドレスと
転送バイト数とをDMAコントローラ70にセツ
トする。この場合は罫線コマンド信号中に横破線
の指定があるため、制御装置10は横破線指定信
号SLを論理レベルでハイレベルとする。次に、
DMAコントローラ70は制御装置10を再びホ
ールドして、バスから切離した後、I/Oポート
60から横罫線用イメージバツフア41への黒デ
ータ転送を開始する。この際、アドレスデコーダ
80によつてアドレスバスAB上のアドレス信号
がデコードされており、この結果バツフアセレク
タ50によつて横罫線用イメージバツフア41が
選択状態にあることは勿論である。このデータ転
送に際して、DMAコントローラ70は所要転送
バイト数分の黒データを1バイト単位で順次横罫
線用イメージバツフア41の印字位置に対応した
記憶領域に転送しようとする。
Thereafter, the control device 10 sets black data in the I/O port 60, and sets in the DMA controller 70 the data transfer start address and the number of transfer bytes corresponding to the print position specified by the ruled line command signal. In this case, since the horizontal broken line is designated in the ruled line command signal, the control device 10 sets the horizontal broken line designation signal SL to a high logic level. next,
After holding the control device 10 again and disconnecting it from the bus, the DMA controller 70 starts transferring black data from the I/O port 60 to the image buffer 41 for horizontal ruled lines. At this time, the address signal on the address bus AB has been decoded by the address decoder 80, and as a result, it goes without saying that the horizontal ruled line image buffer 41 is in the selected state by the buffer selector 50. During this data transfer, the DMA controller 70 attempts to transfer the required number of transfer bytes of black data one byte at a time to the storage area corresponding to the printing position of the image buffer 41 for horizontal ruled lines.

一方、書込み信号コントロール部80では前述
した態様でDMAコントローラ70の書込みパル
ス信号WRを間欠的に選択抽出し、この間欠的に
抽出されたパルス信号を横罫線用イメージバツフ
ア41の書込みイネーブル信号WR1として出力
する。この結果、I/Oポート60から横罫線用
イメージバツフア41に黒データは転送される
が、書込みイネーブル信号WR1がロウレベルの
ときには黒データは書込まれず、これにより黒デ
ータと白データが所定の周期で繰返される横罫線
イメージを作成することができる。
On the other hand, the write signal control unit 80 intermittently selects and extracts the write pulse signal WR of the DMA controller 70 in the manner described above, and uses this intermittently extracted pulse signal as the write enable signal WR of the image buffer 41 for horizontal ruled lines. Output as 1 . As a result, black data is transferred from the I/O port 60 to the image buffer 41 for horizontal ruled lines, but when the write enable signal WR 1 is at low level, black data is not written. It is possible to create a horizontal ruled line image that is repeated at a period of .

次に、該横罫線用イメージバツフア41に格納
した横破線用イメージデータの読出しであるが、
これは印字制御部1(第1図参照)によつて行わ
れる。印字制御部1からラスタイメージ作成部2
には読出しの際のバツフア選択信号ISと読出し用
のアドレス信号RAとが入力され、バスセレクタ
30は読出しの際にはアドレスバスおよびデータ
バスをRAおよびDB′側に切換える。印字制御部
1には罫線コマンドが入力されており、印字制御
部1では該罫線コマンド中の線の太さを示す情報
を解読することにより、横罫線用イメージバツフ
ア41の記憶内容の所要読出回数を認知する。印
字制御部1内には、現在1行(複数本のラスタ線
で構成される)中のどのラスタ線を印字している
かを示すラスタカウンタ(ソフトウエアあるいは
ハードウエアのどちらでもよい)を有しており、
印字制御部1は該ラスタカウンタのカウント値に
基づきイメージバツフア40,41,42選択用
の選択信号ISの送出時期を決定する。例えば、10
ラスタ線分の横破線を印字する場合、ラスタカウ
ント値が所要印字開始位置を示す値になつたとき
に、イメージバツフア41が選択されて所定の読
出し動作を行なうよう選択信号ISおよび読出しア
ドレス信号RAを送出し、この後該イメージバツ
フア41に格納した同一の横破線イメージデータ
を10回読出すことにより、10ラスタ線太の横破線
を印字するようにする。横罫線用イメージバツフ
ア41から適時読出されたイメージデータはPS
変換部55を介してオアゲート56に入力され、
該オアゲート56で他の文字パターンデータある
いは縦罫線用イメージデータとビツトごとに論理
和がとられた後印字部3(第1図参照)に入力す
る最終ラスタイメージデータRDとしてラインバ
ツフアL1またはL2に入力される。
Next, the horizontal broken line image data stored in the horizontal ruled line image buffer 41 is read.
This is performed by the print control section 1 (see FIG. 1). From the print control section 1 to the raster image creation section 2
A buffer selection signal IS for reading and an address signal RA for reading are input to , and the bus selector 30 switches the address bus and data bus to the RA and DB' sides during reading. A ruled line command is input to the print control unit 1, and the print control unit 1 reads out the memory contents of the image buffer 41 for horizontal ruled lines as required by decoding the information indicating the line thickness in the ruled line command. Recognize the number of times. The print control unit 1 has a raster counter (either software or hardware) that indicates which raster line in one line (consisting of a plurality of raster lines) is currently being printed. and
The print control section 1 determines when to send out the selection signal IS for selecting the image buffers 40, 41, and 42 based on the count value of the raster counter. For example, 10
When printing a horizontal broken line of a raster line segment, when the raster count value reaches a value indicating the desired print start position, the image buffer 41 is selected and a selection signal IS and a read address signal are sent to select the image buffer 41 and perform a predetermined read operation. By sending out RA and then reading out the same horizontal broken line image data stored in the image buffer 41 10 times, a horizontal broken line of 10 raster line thickness is printed. The image data read out from the image buffer 41 for horizontal ruled lines at the appropriate time is PS.
is input to the OR gate 56 via the converter 55,
After being ORed bit by bit with other character pattern data or vertical ruled line image data in the OR gate 56, the line buffer L1 or L2 is output as final raster image data RD to be input to the printing section 3 (see Figure 1). is input.

ところで、1つの横破線の印字が終了した後、
書込み信号コントロール部80内のカウンタ82
は以前のカウント値がそのまま保持されており、
再びこの状態で別の横破線を印字しても、横破線
の印字開始位置は第5図aに示すように必ずしも
一致しない。そこで、本実施例では横破線罫線イ
メージを発生する度に、カウンタ82に適宜の初
期値を設定するようにして第5図bに示すような
位相の揃つた横破線を印字させるようにしてい
る。
By the way, after printing one horizontal broken line,
Counter 82 in write signal control section 80
The previous count value is retained, and
Even if another horizontal broken line is printed again in this state, the printing start positions of the horizontal broken lines do not necessarily match as shown in FIG. 5a. Therefore, in this embodiment, each time a horizontal broken line ruled line image is generated, an appropriate initial value is set in the counter 82, so that horizontal broken lines with the same phase as shown in FIG. 5b are printed. .

なお、横実線を印字する場合は、制御装置10
は横破線指定信号SLを論理レベルでロウレベル
にして、以下上記同様の動作を行なえば任意の横
実線を印字させることができる。
Note that when printing horizontal solid lines, the control device 10
An arbitrary horizontal solid line can be printed by setting the horizontal broken line designating signal SL to a low logic level and performing the same operations as described above.

すなわち、横罫線を印字する場合はイメージバ
ツフア41の記憶内容の違いで印字すべき横罫線
の主走査方向についての印字位置、印字長および
線種等を変化させ、前記イメージバツフア41に
記憶した同一イメージデータの読出し回数の違い
で線の太さを変化させるようにしている。
That is, when printing horizontal ruled lines, the printing position, print length, line type, etc. in the main scanning direction of the horizontal ruled lines to be printed are changed depending on the storage contents of the image buffer 41, and the data is stored in the image buffer 41. The line thickness is changed depending on the number of times the same image data is read out.

次に縦罫線を印字する場合について簡単に説明
する。
Next, the case of printing vertical ruled lines will be briefly explained.

縦罫線の場合も横罫線の場合と同様であり、
DMAコントローラ70は制御装置10によつて
セツトされたデータ転送開始アドレスおよび転送
バイト長にしたがつてI/Oポート60の黒デー
タを縦罫線用イメージバツフア42に順次転送す
ることにより、1ラスタ線分の基本イメージデー
タをイメージバツフア42に格納する。ただし、
I/Oポート60から縦罫線用イメージバツフア
42へのデータ転送制御はDMAコントローラ7
0に行わさせてもよいし、また制御装置10自身
で行なうようにしてもよい。これは、縦罫線のイ
メージデータは横罫線の場合と違つて1ラスタ線
中で黒データ量が通常少ない(数バイト〜10数バ
イトであることが多い)ために制御装置10自身
で行なうようにしても高速性を妨げることがない
ことによる。このようにして、縦罫線用イメージ
バツフア42に格納した1ラスタ線分の縦罫線用
イメージデータを印字制御部1が罫線コマンド情
報にしたがつて所要時期に所要回数読出すように
すれば任意の縦罫線が印字されるようになる。
The case of vertical ruled lines is the same as the case of horizontal ruled lines,
The DMA controller 70 sequentially transfers the black data from the I/O port 60 to the vertical ruled line image buffer 42 according to the data transfer start address and transfer byte length set by the control device 10, thereby completing one raster. The basic image data of the line segment is stored in the image buffer 42. however,
Data transfer control from the I/O port 60 to the image buffer 42 for vertical ruled lines is performed by the DMA controller 7.
0 or may be performed by the control device 10 itself. This is done by the control device 10 itself because image data for vertical ruled lines usually has a small amount of black data in one raster line (often a few bytes to 10-odd bytes), unlike that for horizontal ruled lines. This is because high speed performance is not hindered even when In this way, the print control section 1 can read out the vertical ruled line image data for one raster line stored in the vertical ruled line image buffer 42 at the required time and number of times according to the ruled line command information. Vertical ruled lines will now be printed.

すなわち縦罫線を印字する場合には、イメージ
バツフア42の記憶内容の違いで印字すべき縦罫
線の主走査方向についての印字位置、線の太さ等
を変化させ、該イメージバツフア42からの同一
記憶内容の読出し態様の違いで縦罫線の線種、線
長等を変化させるようにしている。
That is, when printing vertical ruled lines, the print position and line thickness in the main scanning direction of the vertical ruled lines to be printed are changed depending on the storage contents of the image buffer 42, and the The line type, line length, etc. of vertical ruled lines are changed depending on the reading mode of the same stored content.

なお、上記実施例では横破線イメージ作成用の
構成として、カウンタ82、エンコーダ83等よ
り成る書込み信号コントロール部80を採用した
が、該書込み信号コントロール部80はこれに限
らず他の回路により構成してもよい。要は、
DMAコントローラによるるデータ転送に同期し
て入力される書込みパルス信号を所定の周期で間
欠的に抽出して出力することができる回路であれ
ばいかなる構成でもよい。
In the above embodiment, the write signal control section 80 consisting of a counter 82, an encoder 83, etc. is employed as a configuration for creating a horizontal broken line image, but the write signal control section 80 is not limited to this and may be constituted of other circuits. It's okay. In short,
Any configuration may be used as long as the circuit can intermittently extract and output a write pulse signal inputted in synchronization with data transfer by the DMA controller at a predetermined cycle.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、この発明によれば、罫線
用フオントをもつことなく、任意の罫線の印字を
可能としたために、罫線用フオントの数すなわち
メモリ容量を増加させることなく自由度の高い罫
線の印字を実現することができる。また罫線用イ
メージデータ転送用にDMA方式を採用し、さら
に罫線を印字すべきラスタ線についてのみ発生し
た罫線イメージデータを読出すようにしたために
高速度の印字処理が可能となる。特に、書込みイ
ネーブル信号の間欠制御のみで横破線を印字でき
るようにしたために、該間欠制御態様を適宜設定
するのみで任意の印字周期の横破線を印字するこ
とができるようになる。
As explained above, according to the present invention, arbitrary ruled lines can be printed without having a ruled line font, and therefore, ruled lines can be printed with a high degree of freedom without increasing the number of ruled line fonts, that is, the memory capacity. Printing can be realized. In addition, the DMA method is adopted for transferring the ruled line image data, and since the ruled line image data generated only for the raster lines on which ruled lines are to be printed is read out, high-speed printing processing is possible. In particular, since the horizontal broken line can be printed only by the intermittent control of the write enable signal, it becomes possible to print the horizontal broken line with any printing cycle by simply setting the intermittent control mode appropriately.

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

第1図は本発明の横破線イメージ発生装置を適
用したプリンタ装置の全体的構成例を示すブロツ
ク図、第2図は本発明にかかる横破線イメージ発
生装置の一実施例を示すブロツク図、第3図は書
込み信号コントロール部の内部構成例を示す回路
ブロツク図、第4図は本実施例装置の動作例を説
明するためのタイムチヤート、第5図は同実施例
装置の動作例を説明するための説明図である。 1…印字制御部、2…ラスタイメージ作成部、
3…印字部、10…制御装置、20…フオントメ
モリ、30…バスセレクタ、40…文字用イメー
ジバツフア、41…横罫線用イメージバツフア、
42…縦罫線用イメージバツフア、50…バツフ
アセレクタ、55…PS変換部、56…オアゲー
ト、60…I/Oポート、70…DMAコントロ
ーラ、80…書込み信号コントロール部、82…
カウンタ、83…エンコーダ、90…アドレスデ
コーダ。
FIG. 1 is a block diagram showing an example of the overall configuration of a printer device to which the horizontal broken line image generating device of the present invention is applied, and FIG. 2 is a block diagram showing one embodiment of the horizontal broken line image generating device according to the present invention. FIG. 3 is a circuit block diagram showing an example of the internal configuration of the write signal control section, FIG. 4 is a time chart for explaining an example of the operation of the device of this embodiment, and FIG. 5 is an example of the operation of the device of this embodiment. FIG. 1...Print control unit, 2...Raster image creation unit,
3... Printing section, 10... Control device, 20... Font memory, 30... Bus selector, 40... Character image buffer, 41... Horizontal ruled line image buffer,
42... Image buffer for vertical ruled lines, 50... Buffer selector, 55... PS converter, 56... OR gate, 60... I/O port, 70... DMA controller, 80... Write signal control unit, 82...
Counter, 83...Encoder, 90...Address decoder.

Claims (1)

【特許請求の範囲】 1 横罫線の識別信号、罫線印字開始および終了
位置を示す信号、破線を指定する信号、線の太さ
を示す信号を含む罫線コマンドを入力する罫線コ
マンド入力手段と、 一主走査線分のドツト数の記憶容量を有する横
罫線用イメージバツフアと、 罫線コマンドが入力されたとき、所定ビツト数
の黒データがセツトされる入出力ポートと、 前記入力された罫線コマンド中で横罫線が指定
された場合は罫線印字開始および終了位置を示す
信号に対応するデータ転送開始アドレスおよびデ
ータ転送長がセツトされ、これらデータ転送開始
アドレスおよびデータ転送長に従つて前記入出力
ポートにセツトされた前記所定ビツト数の黒デー
タを前記横罫線用イメージバツフアに順次転送す
るDMAコントローラと、 前記入力された罫線コマンド中で横破線が指定
された場合、前記所定ビツト数の黒データの転送
周期に同期してDMAコントローラから発生され
る書き込みパルスを間欠的に選択抽出し、この選
択抽出したパルス信号を前記横罫線用イメージバ
ツフアに書き込みイネーブル信号として入力する
ことにより前記横罫線用イメージバツフアに横破
線イメージデータを形成する横破線イメージ作成
手段と、 前記入力された罫線コマンド中で横罫線が指定
された場合は罫線コマンド中の線の太さを示す情
報に対応する回数だけ前記横罫線用イメージバツ
フアに作成された前記横破線イメージデータを繰
り返し読み出す読み出し制御手段と、 を具備することを特徴とする横破線イメージ発生
装置。
[Scope of Claims] 1. A ruled line command input means for inputting a ruled line command including a horizontal ruled line identification signal, a signal indicating a ruled line printing start and end position, a signal specifying a broken line, and a signal indicating line thickness; An image buffer for horizontal ruled lines having a storage capacity for the number of dots for main scanning lines; an input/output port to which black data of a predetermined number of bits is set when a ruled line command is input; If a horizontal ruled line is specified in , the data transfer start address and data transfer length corresponding to the signals indicating the ruled line printing start and end positions are set, and data is sent to the input/output port according to these data transfer start address and data transfer length. a DMA controller that sequentially transfers the set black data of the predetermined number of bits to the horizontal ruled line image buffer; By intermittently selecting and extracting the write pulses generated from the DMA controller in synchronization with the transfer cycle and inputting the selectively extracted pulse signals to the horizontal ruled line image buffer as a write enable signal, the horizontal ruled line image is a horizontal broken line image creation means for forming horizontal broken line image data in a buffer; and when a horizontal ruled line is specified in the input ruled line command, the horizontal ruled line image data is formed in the ruled line command a number of times corresponding to the information indicating the thickness of the line in the ruled line command; A horizontal broken line image generation device comprising: readout control means for repeatedly reading out the horizontal broken line image data created in a horizontal ruled line image buffer.
JP59025846A 1984-02-14 1984-02-14 Rule image generator Granted JPS60168676A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59025846A JPS60168676A (en) 1984-02-14 1984-02-14 Rule image generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59025846A JPS60168676A (en) 1984-02-14 1984-02-14 Rule image generator

Publications (2)

Publication Number Publication Date
JPS60168676A JPS60168676A (en) 1985-09-02
JPH044953B2 true JPH044953B2 (en) 1992-01-29

Family

ID=12177203

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59025846A Granted JPS60168676A (en) 1984-02-14 1984-02-14 Rule image generator

Country Status (1)

Country Link
JP (1) JPS60168676A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5489424A (en) * 1977-12-27 1979-07-16 Toshiba Corp Ruled line generator
JPS5534790A (en) * 1978-09-05 1980-03-11 Fuji Photo Film Co Ltd Ruled line generation method
JPS5591690A (en) * 1978-12-29 1980-07-11 Fujitsu Ltd Ruled line recording system of printer
JPS57108976A (en) * 1980-12-25 1982-07-07 Hitachi Ltd Printer control system
JPS60103868A (en) * 1983-11-11 1985-06-08 Hitachi Ltd Video signal generator of laser beam printer

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5489424A (en) * 1977-12-27 1979-07-16 Toshiba Corp Ruled line generator
JPS5534790A (en) * 1978-09-05 1980-03-11 Fuji Photo Film Co Ltd Ruled line generation method
JPS5591690A (en) * 1978-12-29 1980-07-11 Fujitsu Ltd Ruled line recording system of printer
JPS57108976A (en) * 1980-12-25 1982-07-07 Hitachi Ltd Printer control system
JPS60103868A (en) * 1983-11-11 1985-06-08 Hitachi Ltd Video signal generator of laser beam printer

Also Published As

Publication number Publication date
JPS60168676A (en) 1985-09-02

Similar Documents

Publication Publication Date Title
US5347617A (en) Printer having a multiple scan line printhead controller
JPH01136770A (en) Printer
JPH044953B2 (en)
JPH0655524B2 (en) Serial dot printer
JPS60168677A (en) Rule image generator
JPS6111845A (en) Printing data control device
JP2523213B2 (en) Page printer print control method
JP2782798B2 (en) Image output device
JP2711673B2 (en) Image data transfer control method and device
JPS60168660A (en) Ruled line image generator
EP0397415A2 (en) Raster scan type printer
JP2757986B2 (en) Print control device for serial dot printer
JP3130114B2 (en) Transfer data processing device
JPS617769A (en) Image memory write control system
JPH0832472B2 (en) Print control device
JPS61264377A (en) Character pattern generator
JPS6198439A (en) Printer
JPS6349236B2 (en)
JPS6134588A (en) Image memory control circuit
JPH01237162A (en) Interface device of printer
JPH0569232B2 (en)
JPS60142756A (en) Time division multiplex memory bank control system
JPH04241967A (en) Character pattern processing system
JPS60245362A (en) Printer control device
JPS60178072A (en) Electronic appliance