JPS62270370A - Printer - Google Patents

Printer

Info

Publication number
JPS62270370A
JPS62270370A JP11378786A JP11378786A JPS62270370A JP S62270370 A JPS62270370 A JP S62270370A JP 11378786 A JP11378786 A JP 11378786A JP 11378786 A JP11378786 A JP 11378786A JP S62270370 A JPS62270370 A JP S62270370A
Authority
JP
Japan
Prior art keywords
printing
pattern
flag
key
vertical
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
JP11378786A
Other languages
Japanese (ja)
Inventor
Atsushi Sakakibara
榊原 厚志
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 JP11378786A priority Critical patent/JPS62270370A/en
Publication of JPS62270370A publication Critical patent/JPS62270370A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To perform the printing of a rule by a simple key operation, by mounting a printing region setting means, means respectively for indicating a printing start position, a printing pattern and a printing direction and a means for performing repeated printing in a printing region. CONSTITUTION:A printing range is set by form setting keys 10-12 and the form corresponding to a form flag 40 is set. When a vertical/lateral mode key 16 is pushed down, a vertical or lateral direction mode is set to a vertical/lateral flag 41. When a decorative rule printing key 14 is pushed down and a printing pattern is indicated by an input editing key group 13, a rule flag 42 is turned ON and the pattern information of the printing pattern indicated by ROM 3 is read to be stored in the pattern storing area 44 of RAM 4. When the rule flag 42 is turned ON, the vertical/lateral flag 41 is locked to discriminate whether printing is performed in a vertical or lateral direction. The rule pattern of the pattern storing area 44 is read to perform printing from the present printing head position and a printing head is moved to the direction corresponding to the vertical and lateral flag 41 to renew a head position memory 43.

Description

【発明の詳細な説明】 3、発明の詳細な説明 [産業上の利用分野コ 本発明は指定された文字・図形パターンを繰り返し印刷
出力する印刷装置に関する。
Detailed Description of the Invention 3. Detailed Description of the Invention [Field of Industrial Application] The present invention relates to a printing device that repeatedly prints and outputs specified character/graphic patterns.

[従来の技術] 従来のワードプロセッサ等の印刷装置においては、罫線
の印字は文書処理部のテキストメモリ等に予め記憶され
た罫線パターン情報に基づいてプリンタヘッドの位置を
移動して、罫線印字を行っていた。
[Prior Art] In conventional printing devices such as word processors, ruled lines are printed by moving the position of a printer head based on ruled line pattern information stored in advance in a text memory or the like of a document processing unit. was.

[発明が解決しようとする問題点コ そのため、罫線の位置や罫線パターン等の罫線情報を、
予めテキストメモリに記憶させなければならないため操
作が極めて繁雑となり、操作者にとって負担になってい
た。
[Problems to be solved by the invention] Therefore, it is necessary to provide ruled line information such as the position of ruled lines and ruled line patterns.
Since the text must be stored in the text memory in advance, the operation becomes extremely complicated and becomes a burden for the operator.

本発明は上記従来例に鑑みなされたもので、罫線の印刷
を簡単なキー操作でできるようにした印刷装置を提供す
ることを目的とする。
The present invention has been made in view of the above-mentioned conventional example, and an object of the present invention is to provide a printing device that allows printing of ruled lines by simple key operations.

[問題点を解決するための手段] 上記目的を達成するために本発明の印刷装置は以下の構
成から成る。
[Means for Solving the Problems] In order to achieve the above object, the printing apparatus of the present invention has the following configuration.

即ち、印刷用ヘッドを記録紙の9送方向とほぼ直交する
方向に走査して逐次印刷を行う印刷装置であって、印刷
領域を設定する設定手段と、前記印刷用ヘッドあるいは
記録紙を移送させて印刷開始位置を指定する指定手段と
、印刷パターンを指定するパターン指定手段と、印刷方
向を指示する指示手段と、前記印刷領域内で前記印刷パ
ターンを前記印刷方向に繰り返し印刷する手段とを備え
る。
That is, it is a printing device that sequentially prints by scanning a printing head in a direction substantially perpendicular to the feeding direction of the recording paper, and includes a setting means for setting a printing area, and a setting means for transporting the printing head or the recording paper. a specifying means for specifying a print start position by using a print pattern; a pattern specifying means for specifying a print pattern; an instruction means for specifying a print direction; and a means for repeatedly printing the print pattern in the print direction within the print area. .

〔作用] 以上の構成において、設定手段により印刷領域を設定し
、指定手段により印刷用ヘッドあるいは記録紙をB送さ
せて印刷開始位置を指定するとともに、パターン指定手
段により印刷パターンを、指示手段により印刷方向を指
示を行うことにより、設定された印刷領域内で指定され
た印刷パターンを指示された印刷方向に繰り返し印刷す
るように動作する。
[Operation] In the above configuration, the setting means sets the printing area, the specifying means causes the print head or the recording paper to move B to specify the printing start position, and the pattern specifying means sets the print pattern, and the instruction means sets the print area. By instructing the printing direction, the printer operates to repeatedly print the specified printing pattern within the set printing area in the specified printing direction.

[実施例] 以下、添付図面を参照して本発明の実施例を詳細に説明
する。
[Embodiments] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

[文書処理装置の構成図(第1図)コ 第1図は本発明の一実施例のワードプロセッサの構成図
である。
[Configuration Diagram of Document Processing Apparatus (FIG. 1) FIG. 1 is a configuration diagram of a word processor according to an embodiment of the present invention.

1は文書情報や各種ファンクションを入力するキーボー
ドで、以下に述べる各種キーを備えている。10〜12
は印字する書式の設定を行う書式設定キーで、印字する
記録紙の大きさや罫線の大きさの指定を行う。10はA
4判サイズを設定するA4設定キー、11は85判サイ
ズを設定するB5設定キー、12は葉書サイズを設定す
る葉書設定キーである。13は文書情報の入力や各ff
fi GW集指示を人力する入力編集キ一群である。1
4は飾り罫線印字キーで、罫線印字モードの設定を行う
1 is a keyboard for inputting document information and various functions, and is equipped with various keys described below. 10-12
is a format setting key that sets the printing format, and specifies the size of the recording paper to be printed and the size of the ruled lines. 10 is A
The A4 setting key 11 sets the 4-size size, the B5 setting key 11 sets the 85-size size, and the postcard setting key 12 sets the postcard size. 13 is for inputting document information and each ff
fi This is a group of input/edit keys for manually inputting GW collection instructions. 1
4 is a decorative ruled line printing key to set the ruled line printing mode.

15はプリンタ部7の印字ヘッドを左右に8勤させ、あ
るいは記録紙の前後送りを行って印字ヘッドを記録紙に
対し上下方向に移動させるカーソルキー等のヘッド9勤
キ一群である。16はプリンタ部7の印字方向を設定す
る縦横モードキー、17はプリンタ部7に印字の開始指
示を行う印字キーである。18は印字動作を停止させる
停止キーである。
Reference numeral 15 denotes a group of nine-position head keys such as cursor keys for moving the print head of the printer section 7 eight times left and right, or for moving the print head vertically relative to the recording paper by feeding the recording paper back and forth. Reference numeral 16 indicates a portrait/horizontal mode key for setting the printing direction of the printer section 7, and reference numeral 17 indicates a print key for instructing the printer section 7 to start printing. 18 is a stop key for stopping the printing operation.

2はROM3の制御プログラムにより装置全体の制御を
行う中央処理装置(CPU)である、3はROMでCP
U2の制御プログラムや各種データ及び文字・記号パタ
ーン等を格納している。4はCPU2のワークエリア及
び文書情報記憶エリアとして使用されるRAMで、後述
する各種フラグ40〜42や印字ヘッド位置を記憶する
ヘッド位置メモリ43や罫線の印字パターンを格納する
パターン格納エリア44等を備えている。
2 is a central processing unit (CPU) that controls the entire device using the control program in ROM 3; 3 is a ROM that controls the CPU;
It stores U2 control programs, various data, character/symbol patterns, etc. 4 is a RAM used as a work area and a document information storage area for the CPU 2, and includes various flags 40 to 42 described later, a head position memory 43 for storing print head positions, a pattern storage area 44 for storing printed patterns of ruled lines, etc. We are prepared.

5は表示器6の表示データを記憶するビデオRA、M 
(VRAM)、eはVRAM5の内容を表示する例えば
液晶ディスプレイ等の表示部である。
5 is a video RA, M for storing display data of the display device 6;
(VRAM), e is a display section such as a liquid crystal display that displays the contents of the VRAM 5.

7は文書情報や罫線等の印字を行うプリンタ部で、記録
紙の送り方向とほぼ直交する方向に印字ヘッドを走査さ
せてシリアル印字により印字を行うプリンタで構成され
ていて、葉書サイズの用紙にも印字可能である。
7 is a printer unit that prints document information, ruled lines, etc. It consists of a printer that prints by serial printing by scanning the print head in a direction almost perpendicular to the feeding direction of the recording paper, and prints on postcard-sized paper. can also be printed.

[動作説明(第2図(a)、(b)] 第2図(a)(b)はROM3に記憶されているCPU
2の罫線処理プログラムのフローチャートである。
[Operation explanation (Fig. 2 (a), (b)] Fig. 2 (a) and (b) show the CPU stored in ROM3.
2 is a flowchart of the ruled line processing program No. 2;

本プログラムは電源没入あるいはリセットキー等の押下
により開始され、まずステップs1でプリンタ部7の印
字ヘッドをホームポジションに戻すとともに、RAM4
の各種フラグ40〜42および印字ヘッド位置メモリ4
3廠のクリアを行うとともに装置全体の初期化を行う。
This program is started by turning the power on or pressing the reset key, etc. First, in step s1, the print head of the printer section 7 is returned to the home position, and the RAM 4 is
various flags 40 to 42 and print head position memory 4
Clear the 3rd factory and initialize the entire device.

ステップs2では書式設定キー10〜12のいずれかに
より書式、即ち印字範囲が設定されるかをみる。書式設
定キーが押下されるとステップS3に進み、書式フラグ
40に押下されたキーに対応した書式(例えばA4判、
85判等)をセットする。ステップS4で縦横モードキ
ー16が押下されるかをみる、縦横モードキー16が押
下されると、そのモードに対応してステップS5で縦横
フラグ41に縦又は横方向のモード設定を行う。これは
例えばイニシャル時は横モードで縦横モードキー16が
押下されるごとに縦モード、横モードに切替わるように
なっている。
In step s2, it is checked whether the format, that is, the printing range is set using any of the format setting keys 10-12. When the format setting key is pressed, the process advances to step S3, and the format flag 40 is set to the format corresponding to the pressed key (for example, A4 size,
85 size, etc.). In step S4, it is checked whether the portrait/horizontal mode key 16 is pressed. If the portrait/horizontal mode key 16 is pressed, the portrait or landscape mode is set in the portrait/horizontal flag 41 in step S5 in accordance with the pressed mode. For example, the mode is initially set to horizontal mode, and each time the vertical/horizontal mode key 16 is pressed, the mode is switched to vertical mode and then horizontal mode.

ステップS6では師り罫線印字キー14が押下されると
ともに、罫線の印字パターンが指定されたかをみる。飾
り罫線印字キー14が押下され、入力編集キ一群13に
より印字パターンがしていされるとステップS7に進み
、罫線フラグ42をオンにするとともに、ROM3より
指定された印字パターンのパターン情報を読み出してR
AM4のパターン格納エリア44に格納してステップS
6に戻る。
In step S6, it is checked whether the border line printing key 14 is pressed and a ruled line printing pattern is specified. When the decorative ruled line printing key 14 is pressed and a printing pattern is entered by the input editing key group 13, the process proceeds to step S7, where the ruled line flag 42 is turned on and the pattern information of the designated printing pattern is read out from the ROM 3. R
Store it in the pattern storage area 44 of AM4 and proceed to step S.
Return to 6.

一方ステップS7で師り罫線印字キーの入力でないとき
はステップS8に進み、ヘッド移動キ一群15が押下さ
れたかを調べる。ヘッド8動キ一群キー15が押下され
るとステップS9に進み、キー15に上る穆勅指示方向
に対応してプリンタ部7の印字ヘッドを所定量進めたと
きの位置を計算により求める。このときヘッド位置メモ
リ43に所定量を加算あるいは減算してヘッド位置を算
出する。即ち、印字ヘッドの8wJ方向が横で、かつ右
方向の移動が指示されたときは、ヘッド位置のX座標に
所定量を加え、逆に左方向への8勤時は所定量をX座標
より引く。
On the other hand, if it is determined in step S7 that the border line printing key is not input, the process proceeds to step S8, and it is checked whether the head movement key group 15 has been pressed. When the head 8 movement key group key 15 is pressed, the process proceeds to step S9, and the position when the print head of the printer section 7 is advanced by a predetermined amount in accordance with the direction indicated by the key 15 is determined by calculation. At this time, the head position is calculated by adding or subtracting a predetermined amount to the head position memory 43. In other words, when the 8wJ direction of the print head is horizontal and a rightward movement is instructed, a predetermined amount is added to the X coordinate of the head position, and conversely, when the print head is moving 8wJ to the left, a predetermined amount is added from the X coordinate. Pull.

ステップS10ではステップS9で求めたヘッド位置が
ステップS3で記憶した書式設定エリア(印字可能領域
)内にあるかどうかを判定し、エリア内に無い時はステ
ップS6に戻るが、エリア内にあるときはステップSi
tに進みヘッド位置メモリ43をステップS9で求めた
値に更新するとともに、プリンタ部7にヘッド移動の指
示を出力して印字ヘッドを当該位置に移動させる。
In step S10, it is determined whether the head position obtained in step S9 is within the formatting area (printable area) stored in step S3. If it is not within the area, the process returns to step S6; however, if it is within the area. is step Si
The process advances to step t, where the head position memory 43 is updated to the value obtained in step S9, and a head movement instruction is output to the printer section 7 to move the print head to the relevant position.

ステップS8でヘッド移動キ一群15の押下でない時は
ステップ312に進み、印字キー17が押下されたかを
みる。印字キー17が押下されない時は再びステップS
6に戻るが、印字キー17が押下されるとステップS1
3に進み、罫線フラグ42をチェックして飾り罫線モー
ドになっているかをみる。罫線フラグ42がオフの時は
通常の文書印字としてステップS14に進み、対応する
他の処理を行う。
If the head movement key group 15 is not pressed in step S8, the process advances to step 312 to check whether the print key 17 has been pressed. If the print key 17 is not pressed, step S is performed again.
Returning to step 6, when the print key 17 is pressed, step S1
Proceed to step 3 and check the ruled line flag 42 to see if it is in decorative ruled line mode. When the ruled line flag 42 is off, the process proceeds to step S14 as normal document printing, and other corresponding processing is performed.

罫線フラグ42がオンの時価り罫線の印字モードとして
ステップS15に進み、縦横フラグ41をみて縦横いず
れの方向への印字かをみる。ステップ$16.S17で
は、パターン格納エリア44の罫線パターンを読み出し
て、現在の印字ヘッド位置より印字を行って、印字ヘッ
ドを縦横フラグ41に対応した方向に移動させ、ステッ
プS18でヘッド位置メモリ43を更新する。ステップ
319ではヘッド位置メモリ43を基に印字ヘッドの位
置が書式範囲内にあるかを調べる。書式範囲内にあるか
どうかのチェックは、例えばA4判のときはA4の用紙
の紙端より約20cmの印字禁止範囲を除いた領域内に
あるかをみる。印字範囲内にあるときはステップS20
に進み、印字停止キー18が押下されたかをみる。
With the ruled line flag 42 on, the current price ruled line printing mode is set, and the process proceeds to step S15, where the vertical/horizontal flag 41 is checked to see which direction is to be printed, vertically or horizontally. Step $16. In S17, the ruled line pattern in the pattern storage area 44 is read out, printing is performed from the current print head position, the print head is moved in the direction corresponding to the vertical/horizontal flag 41, and the head position memory 43 is updated in step S18. In step 319, it is checked based on the head position memory 43 whether the print head position is within the format range. To check whether it is within the format range, for example, in the case of A4 size paper, check whether it is within the area excluding the print prohibited area of about 20 cm from the edge of the A4 paper. If it is within the printing range, step S20
, and check whether the print stop key 18 has been pressed.

ステップ519で書式範囲外に印字ヘッドが出るか、又
はステップS20で印字停止キー18が押下されるとス
テップS21に進み、罫線の印字を停止する。ステップ
S22で縦横フラグ41をチェックし、横方向の印字モ
ードのときはステップS23に進み、印字ヘッドを印字
開始位置に戻すべく左方向にリターンさせて処理を終了
する。
If the print head moves out of the format range in step 519, or if the print stop key 18 is pressed in step S20, the process advances to step S21, and printing of ruled lines is stopped. In step S22, the vertical/horizontal flag 41 is checked, and if the print mode is in the horizontal direction, the process proceeds to step S23, where the print head is returned to the left to return to the print start position, and the process is completed.

一方、縦方向のときは何もせずに処理を終了する。On the other hand, if the orientation is vertical, the process ends without doing anything.

以上述べたように本実施例によれば、位置指定可能な飾
り罫線の印字が簡単なキー操作で行えるという効果があ
る。また、設定された文書書式に対応して印字可能範囲
も自動的に設定されるという効果がある。
As described above, this embodiment has the advantage that decorative ruled lines whose positions can be specified can be printed by simple key operations. Another advantage is that the printable range is automatically set in accordance with the set document format.

また更に本実施例よれば、罫線の印字中以外にも設定さ
れた印字可能範囲外への印字ヘッドの移動を禁止してい
るため、誤動作の可能性が極めて少なくなるという効果
がある。
Furthermore, according to this embodiment, since movement of the print head outside the set printable range is prohibited even when the ruled lines are being printed, there is an effect that the possibility of malfunction is extremely reduced.

なお、本実施例では、A4、B5、葉書サイズ等に印字
範囲を設定するものとして説明したがこれに限定される
ものではなく、例えば、印字桁数でも設定できるように
しても良い。
In this embodiment, the printing range has been described as being set to A4, B5, postcard size, etc., but it is not limited to this, and may also be set by the number of printing digits, for example.

[発明の効果コ 以上説明したように本発明によれば、&f−01なキー
操作で例えば罫線の印字が行えるという効果がある。
[Effects of the Invention] As explained above, according to the present invention, there is an effect that, for example, ruled lines can be printed by pressing the &f-01 key.

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

第1図は本発明の一実施例のワードプロセッサの構成図
、 第2図(a)(b)は罫線印字の動作例を示すフローチ
ャートである。 図中、1・・・キーボード、2・・・CPU、3・・・
ROM、4・・・RAM、5・・・VRAM、6・・・
表示器、7・・・プリンタ部、10・・・A4設定キー
、11・・・B5設定キー、12・・・葉書設定キー、
13・・・入力編集キ一群、14・・・飾り罫線印字キ
ー、15・・・ヘッド8動キ一群、16・・・縦横モー
ドキー、17・・・印字キー、18・・・停止キー、4
0・・・書式フラグ、41・・・縦横フラグ、42・・
・罫線フラグ、43・・・ヘッド位置メモリ、44・・
・パターン格納エリアである。
FIG. 1 is a block diagram of a word processor according to an embodiment of the present invention, and FIGS. 2(a) and 2(b) are flowcharts showing an example of ruled line printing operation. In the figure, 1...Keyboard, 2...CPU, 3...
ROM, 4...RAM, 5...VRAM, 6...
Display unit, 7... Printer section, 10... A4 setting key, 11... B5 setting key, 12... Postcard setting key,
13... A group of input editing keys, 14... Decorative ruled line print key, 15... A group of 8 head movement keys, 16... Vertical/horizontal mode key, 17... Print key, 18... Stop key, 4
0...Format flag, 41...Vertical/horizontal flag, 42...
- Ruled line flag, 43...Head position memory, 44...
・This is a pattern storage area.

Claims (3)

【特許請求の範囲】[Claims] (1)印刷用ヘッドを記録紙の移送方向とほぼ直交する
方向に走査して逐次印刷を行う印刷装置であつて、印刷
領域を設定する設定手段と、前記印刷用ヘッドあるいは
記録紙を移送させて印刷開始位置を指定する指定手段と
、印刷パターンを指定するパターン指定手段と、印刷方
向を指示する指示手段と、前記印刷領域内で前記印刷パ
ターンを前記印刷方向に繰り返し印刷する手段とを備え
たことを特徴とする印刷装置。
(1) A printing device that sequentially prints by scanning a printing head in a direction substantially perpendicular to the direction in which the recording paper is transported, which includes a setting means for setting a printing area, and a setting means for setting a printing area, and a setting means for transporting the printing head or the recording paper. a designation means for designating a printing start position by using a print pattern, a pattern designation means for designating a print pattern, a designation means for designating a printing direction, and a means for repeatedly printing the printing pattern in the printing direction within the printing area. A printing device characterized by:
(2)印刷領域を自動設定するようにしたことを特徴と
する特許請求の範囲第1項記載の印刷装置。
(2) The printing apparatus according to claim 1, wherein the printing area is automatically set.
(3)印刷領域外への印刷用ヘッドの移動を禁止するよ
うにしたことを特徴とする特許請求の範囲第1項記載の
印刷装置。
(3) The printing apparatus according to claim 1, wherein the printing head is prohibited from moving outside the printing area.
JP11378786A 1986-05-20 1986-05-20 Printer Pending JPS62270370A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11378786A JPS62270370A (en) 1986-05-20 1986-05-20 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11378786A JPS62270370A (en) 1986-05-20 1986-05-20 Printer

Publications (1)

Publication Number Publication Date
JPS62270370A true JPS62270370A (en) 1987-11-24

Family

ID=14621083

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11378786A Pending JPS62270370A (en) 1986-05-20 1986-05-20 Printer

Country Status (1)

Country Link
JP (1) JPS62270370A (en)

Similar Documents

Publication Publication Date Title
JP2741800B2 (en) Document processing device
JPS644189B2 (en)
JPS62270370A (en) Printer
KR890003981B1 (en) Charactor input method in input devices
JPS6366630A (en) Input device for print position
JP2635311B2 (en) Document processing device
JP2910921B2 (en) Printing control device
JP2839139B2 (en) Document processing method
JP3026992B2 (en) Display control method and device
JPH05101058A (en) Word processor
JP2721339B2 (en) Document processing device
JPH0236482A (en) Information recording device
JPH0423183A (en) Document with bar code preparing device
JPH04148471A (en) Format setting device
JP2972224B2 (en) Document processing method
JPH0270472A (en) Displaying method for printing position of document forming apparatus
JPS63250687A (en) Document data editing apparatus
JPH02245363A (en) Image output preparation
JPS6411985B2 (en)
JPH0793319A (en) Document processor
JPH035872A (en) Standard blank form document generating system
JPH0950535A (en) Image data output device
JPH05151216A (en) Document processor with frame editing function
JPH04369023A (en) Document forming device
JPS60181826A (en) Document producer