JPH02112978A - Uniform assignment control system - Google Patents

Uniform assignment control system

Info

Publication number
JPH02112978A
JPH02112978A JP63266509A JP26650988A JPH02112978A JP H02112978 A JPH02112978 A JP H02112978A JP 63266509 A JP63266509 A JP 63266509A JP 26650988 A JP26650988 A JP 26650988A JP H02112978 A JPH02112978 A JP H02112978A
Authority
JP
Japan
Prior art keywords
carrier
printer
ruled line
memory
image reading
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
JP63266509A
Other languages
Japanese (ja)
Inventor
Satoshi Yoshio
由雄 聡
Ichiro Fujioka
一朗 藤岡
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.)
PFU Ltd
Original Assignee
PFU Ltd
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 PFU Ltd filed Critical PFU Ltd
Priority to JP63266509A priority Critical patent/JPH02112978A/en
Publication of JPH02112978A publication Critical patent/JPH02112978A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To automatically perform a uniform assignment work by a printer by providing a printer mechanism having a carrier placing an image read sensor and a printing head, and a printer control circuit having specific uniform assignment control means. CONSTITUTION:A printer has a printer mechanism having a carrier 1 placing an image read sensor 2 and a printing head 3, and a printer control circuit having uniform assignment control means. The control means, when N pieces of printing data and print command are fed from a host system, moves, the carrier to a left end, stores the output of the sensor in a memory while moving the carrier rightward, obtains the position X1 of a ruled line 1 of vertical lines of left side of an area to be described on a sheet and the position X2 of a ruled line 2 of vertical lines of right side of the area to be described by referring to the content of the memory, edits received character strings with the printing position as X1 and the character pitch as (X1-X2)/N, and prints, after the editing is completed.

Description

【発明の詳細な説明】 〔概要〕 用紙上の文字の記入領域を表す左側の罫線1及び右側の
罫線2の位置を検出し、印字すべきN個の文字を罫線1
および罫線2の間に均等に割付ける均等割付制御方式に
関し、 罫線1と罫線2との間に文字を均等に割付け′る機能を
持ったプリンタ装置を提供することを目的とし、 本体装置から送られてきたN個の印字データ及び印字指
令コマンドを受信したときに、キャリアを左端に移動さ
せ、その後にキャリアを右方向に移動させながら画像読
取センサの出力をメモリに格納し、メモリの内容を参照
して用紙上の記入領域の左側の縦線である所の罫線lの
位置X1および記入領域の右側の縦線である所の罫線2
の位置x2を求め、印字打出位置をX1、文字ピッチを
(x、−x1)/Nとして受信文字列の編集を行い、編
集完了後に印字を実行するようにしたものである。
[Detailed Description of the Invention] [Summary] The positions of the left ruled line 1 and the right ruled line 2 representing the character entry area on the paper are detected, and N characters to be printed are placed on the ruled line 1.
With regard to the equal allocation control method for evenly allocating characters between ruled line 1 and ruled line 2, the purpose of this invention is to provide a printer device having a function of evenly allocating characters between ruled line 1 and ruled line 2. When N pieces of print data and print command commands are received, the carrier is moved to the left end, and then the output of the image reading sensor is stored in the memory while moving the carrier to the right, and the contents of the memory are Refer to the position X1 of ruled line 1, which is the vertical line on the left side of the writing area on the paper, and the ruled line 2, which is the vertical line on the right side of the writing area.
, the received character string is edited with the print embossing position set as X1 and the character pitch as (x, -x1)/N, and printing is executed after editing is completed.

〔産業上の利用分野〕[Industrial application field]

本発明は、用紙上の文字の記入領域を表す左側の縦線(
罫線l)及び右側の縦線(罫線2)の位置を検出し、印
字すべきN個の文字を罫線1および罫線2の間に均等に
割付ける均等割付制御方式に関するものである。
The present invention uses vertical lines on the left side (
This invention relates to an equal allocation control method that detects the positions of a ruled line (1) and a vertical line (ruled line 2) on the right side, and allocates N characters to be printed equally between ruled line 1 and ruled line 2.

〔従来の技術〕[Conventional technology]

用紙上には文字や絵を記入すに領域を示すための四角枠
が線で記入されている。罫線1(四角枠の左側の縦線)
と罫線2(四角枠の右側の縦線)の間に印字すべきN個
の文字を均等に割付けるため、従来はプログラムマがそ
の度に罫線1から罫線2までの距離を計り、且つ印字す
べき文字の個数を計算して文字間の距離を求め、応用プ
ログラムの中で文字間の距離を指定していた。
On the paper, a rectangular frame is drawn with lines to indicate the area where characters and pictures can be written. Ruled line 1 (vertical line on the left side of the square frame)
In order to evenly allocate the N characters to be printed between the and ruled line 2 (vertical line on the right side of the square frame), conventionally, the programmer measured the distance from ruled line 1 to ruled line 2 each time, and The distance between the characters was calculated by calculating the number of characters to be used, and the distance between the characters was specified in the application program.

〔発明が解決しようとする課題] 従来技術においては、プログラマが応用プログラムを作
成する度に罫線1と罫線2の間の距離を求め、この距離
と文字の個数によって文字間の距離を計算しなければな
らなかったので、多大の労力と時間とが必要であった。
[Problems to be Solved by the Invention] In the prior art, each time a programmer creates an application program, he must find the distance between ruled line 1 and ruled line 2, and calculate the distance between characters based on this distance and the number of characters. This required a great deal of effort and time.

本発明は、この点に鑑みて創作されたものであって、罫
線1と罫線2との間に文字を均等に割付ける機能を持っ
たプリンタ装置を提供することを目的としている。
The present invention was created in view of this point, and an object of the present invention is to provide a printer device having a function of evenly allocating characters between ruled lines 1 and 2.

〔課題を解決するための手段] 第1図は本発明の原理図である。本発明のプリンタは、
画像読取センサ2および印字ヘッド3が搭載されたキャ
リア1を持つプリンタ機構部と、均等割付制御手段を持
つプリンタ制御回路とを具備している。
[Means for Solving the Problems] FIG. 1 is a diagram showing the principle of the present invention. The printer of the present invention includes:
It includes a printer mechanism section having a carrier 1 on which an image reading sensor 2 and a print head 3 are mounted, and a printer control circuit having equal allocation control means.

均等割付制御手段は、本体装置からN個の印字データ及
び印字指令コマンドが送られてきたときに、キャリアを
左端に移動させ、その後にキャリアを右方向に移動させ
ながら画像読取センサの出力をメモリに格納し、メモリ
の内容を参照して用紙上の記入領域の左側の縦線である
所の罫線1の位置×1および記入領域の右側の縦線であ
る所の罫線2の位置X2を求め、印字打出位置をX文字
ピンチを(X2 −X+ )/Nとして受信文字列の編
集を行い、編集完了後に印字を実行させるように構成さ
れている。
The equal allocation control means moves the carrier to the left end when N print data and print command commands are sent from the main unit, and then stores the output of the image reading sensor in the memory while moving the carrier to the right. and calculate the position x 1 of ruled line 1, which is the vertical line on the left side of the writing area on the paper, and the position x 2, of ruled line 2, which is the vertical line on the right side of the writing area, by referring to the contents of the memory. , the received character string is edited with the print embossing position set to the X character pinch (X2 - X+)/N, and printing is executed after the editing is completed.

〔実施例] 第2図はプリンタの電気回路の構成例を示す図である。〔Example] FIG. 2 is a diagram showing an example of the configuration of the electric circuit of the printer.

同図において、1はキャリア、2は画像読取センサ、3
は印字ヘッド、4はハンマ・ドライバ、5はセンサ回路
、6はモータ、7はモータ・ドライバ、8は操作パネル
、9は設定データ格納不揮発性メモリ、10はプログラ
ムROM、11はデータ格納RAM、12はインタフェ
ース、13は本体装置、14はCPU、15はデータ・
バス、16はアドレス・バスをそれぞれ示している。
In the figure, 1 is a carrier, 2 is an image reading sensor, and 3 is a carrier.
is a print head, 4 is a hammer driver, 5 is a sensor circuit, 6 is a motor, 7 is a motor driver, 8 is an operation panel, 9 is a non-volatile memory for storing setting data, 10 is a program ROM, 11 is a data storage RAM, 12 is an interface, 13 is a main unit, 14 is a CPU, 15 is a data
16 indicates an address bus, respectively.

プリンタは、ドツト・マトリックス方式のシリアル・プ
リンタである。キャリア1には、画像読取センサ2や印
字ヘッド3が搭載されている。画像読取センサ2は、例
えばIDセンサやイメージ・センサを意味しており、用
紙上のマークや絵を読取るだめのものである。ハンマ・
ドライバ4は、印字ヘンド3のソレノイドを駆動する。
The printer is a dot matrix serial printer. An image reading sensor 2 and a print head 3 are mounted on the carrier 1. The image reading sensor 2 is, for example, an ID sensor or an image sensor, and is used to read marks and pictures on paper. Hammer
The driver 4 drives the solenoid of the print hand 3.

ものである。It is something.

センサ回路5は、画像読取センサ2からの読取信号を増
幅したり、ディジタル信号に変換したりするものである
。モータ6は1個しか示されていないが、モークロは用
紙送りモータやキャリア移動モータを表現している。モ
ータ・ドライバ7も1個しか示されていないが、モータ
・ドライバもモータ毎に存在する。操作パネル8には、
各種スイッチや液晶デイスプレィ等がある。設定データ
格納不揮発性メモリ9の中には、プリンタのモードを定
めるモード設定データが格納されている。データ格納R
AMll0中には、パンファや各種の作業領域などが存
在する。インタフェース12は、本体装置13との間の
データ転送を制御するものである。CPU14は、プロ
グラムROMl0のプログラムを実行する。、用紙上の
マークや絵の読取りを行う場合には、キャリア移動モー
タおよび用紙送りモータを制御して、画像読取センサ2
が用紙上をスキャンするようにキャリア1を移動させ、
画像読取センサ2からのセンサ出力をデータ格納RAM
11に格納する。
The sensor circuit 5 amplifies the read signal from the image reading sensor 2 and converts it into a digital signal. Although only one motor 6 is shown, the motor 6 represents a paper feed motor or a carrier movement motor. Although only one motor driver 7 is shown, there is also a motor driver for each motor. On the operation panel 8,
There are various switches, liquid crystal displays, etc. The setting data storage nonvolatile memory 9 stores mode setting data that determines the mode of the printer. Data storage R
AMll0 includes a pamphlet and various work areas. The interface 12 controls data transfer with the main device 13. The CPU 14 executes the program in the program ROM10. When reading marks or pictures on paper, the carrier movement motor and paper feed motor are controlled and the image reading sensor 2
Move carrier 1 so that it scans over the paper,
Data storage RAM for sensor output from image reading sensor 2
11.

第3図は画像読取センサを移動したときのセンサ出力値
を示す図であり、第4図は用紙の罫線と画像読取センサ
の移動距離を示す図である。用紙上には線で四角な枠が
描かれており、この中に文字や絵が書かれる。四角枠の
左側の縦線を罫線1とよび、四角枠の右側の縦線を罫線
2と呼ぶ。罫線1および罫線2の位置を検出する場合、
画像読取センサ2が用紙の左端から更に左側に位置する
ようにキャリアの位置決めを行い、この位置からキャリ
アを右方向に移動させ、画像読取センサ2が罫線2を越
えた位置でキャリアを停止させる。
FIG. 3 is a diagram showing the sensor output value when the image reading sensor is moved, and FIG. 4 is a diagram showing the moving distance between the ruled line of the paper and the image reading sensor. A rectangular frame is drawn with lines on the paper, and letters and pictures are written inside this frame. The vertical line on the left side of the square frame is called ruled line 1, and the vertical line on the right side of the square frame is called ruled line 2. When detecting the positions of ruled line 1 and ruled line 2,
The carrier is positioned so that the image reading sensor 2 is located further to the left from the left end of the paper, the carrier is moved rightward from this position, and the carrier is stopped at the position where the image reading sensor 2 crosses the ruled line 2.

キャリアが右方向に移動している間における画像読取セ
ンサ2の出力値を読み取り、読み取った出力値の列に基
づいて、用紙の左端位置、罫線1の位置および罫線2の
位置を求める。
The output values of the image reading sensor 2 are read while the carrier is moving rightward, and the left end position of the paper, the position of ruled line 1, and the position of ruled line 2 are determined based on the sequence of read output values.

第5図は本発明における均等割付処理の流れを示す図で
ある。均等割付処理は、プログラムROM内の均等割付
処理プログラムを実行することによりなされる。
FIG. 5 is a diagram showing the flow of equal allocation processing in the present invention. The equal allocation process is performed by executing the equal allocation process program in the program ROM.

■ 均等割付モードの設定を行う。本体装置からのコマ
ンド又は操作パネルのキー操作によって、均等割付モー
ドにすることが出来る。
■ Set equal allocation mode. The equal allocation mode can be set by a command from the main device or a key operation on the operation panel.

■ 本体装置から送られてきた印字データの特徴と送ら
れてきた印字データの数(N個)をメモリに順次格納し
て、印字指令コマンドを受信すると、キャリアを左端に
移動する。
■ The characteristics of the print data sent from the main device and the number of print data sent (N pieces) are sequentially stored in the memory, and when a print command is received, the carrier is moved to the left end.

■ キャリアを右方向に移動する。■ Move the carrier to the right.

■ ドツト・パルスに同期して、画像読取センサの出力
値をRAMに書き込む。
■ Write the output value of the image reading sensor to RAM in synchronization with the dot pulse.

■ RAMを参照して、罫線2が見つかったか否かを調
べる。Yesのときは■に進み、Noの場合には■に戻
る。
■ Refer to the RAM and check whether ruled line 2 has been found. If Yes, proceed to ■; if No, return to ■.

■ キャリアのスローダウンを開始する。■ Start slowing down the carrier.

■ メモリに書き込んだセンサの出力値から、出力が最
小に小さくなり始めたところのメモリ・アドレスを用紙
左端とし、次にセンサの出力が太き(なり頂点となると
ころのメモリ・アドレスを罫線1として、次にまた大き
くなって頂点となるところのメモリ・アドレスを罫線2
とする。そして、罫線1のメモリ・アドレスから用紙左
端のメモリ・アドレスを引算し、その値を実際の印字密
度単位に換算したものをχ1とする。また、罫線2のメ
モリ・アドレスから用紙左端のメモリ・アドレスを引算
し、その値を実際の印字密度単位に換算したものをX2
とする。
■ From the sensor output value written in the memory, set the memory address where the output starts to decrease to the minimum as the left edge of the paper, and then mark the memory address where the sensor output becomes thicker (and become the apex) with ruled line 1. Then, the memory address that will increase again and become the vertex is marked on the border 2.
shall be. Then, the memory address of the left end of the paper is subtracted from the memory address of ruled line 1, and the value converted into an actual print density unit is defined as χ1. Also, subtract the memory address of the left edge of the paper from the memory address of ruled line 2, convert that value to the actual print density unit, and calculate
shall be.

■ 印字打出位置をXI、文字ピンチを(XZ−Xl)
/Nとして、印字すべき文字列をドツト・パターン・バ
ッファの中に編集する。
■ Set print position to XI, character pinch (XZ-Xl)
/N to edit the string to be printed into the dot pattern buffer.

■ ドツト・パターン・バッファの中の文字列を印字す
る。
■ Print the string in the dot pattern buffer.

〔発明の効果] 以上の説明から明らかなように、本発明によれば、プロ
グラマが今まで手作業と面倒な計算によって行っていた
均等割付作業を自動的にプリンタで行うことが出来るの
で、応用プログラム開発の生産性を向上させることが出
来る。
[Effects of the Invention] As is clear from the above description, according to the present invention, the printer can automatically perform the equal allocation work that the programmer had previously done manually and through troublesome calculations. Productivity in program development can be improved.

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

第1図は本発明の原理図、第2図はプリンタの電気回路
の構成例を示す図、第3図は画像読取センサを移動した
ときのセンサ出力値を示す図、第4図は用紙の罫線と画
像読取センサの移動距離を示す図、第5図は本発明にお
ける均等割付処理の流れを示す図である。 1・・・キャリア、2・・・画像読取センサ、3・・・
印字ヘンド、4・・・ハンマ・ドライバ、5・・・セン
サ回路、6・・・モータ、7・・・モータ・ドライバ、
8・・・操作パネル、9・・・設定データ格納不揮発性
メモリ、1゜・・・プログラムROM、11・・・デー
タ格納RAM、12・・・インタフェース、13・・・
本体装置、14・・・CPU、15・・・データ・バス
、16・・・アドレス・ハス。 特許出願人  株式会社ビーエフニー
Fig. 1 is a diagram showing the principle of the present invention, Fig. 2 is a diagram showing an example of the configuration of the electric circuit of the printer, Fig. 3 is a diagram showing the sensor output value when the image reading sensor is moved, and Fig. 4 is a diagram showing the sensor output value when the image reading sensor is moved. FIG. 5 is a diagram showing the moving distance of the ruled line and the image reading sensor, and FIG. 5 is a diagram showing the flow of equal allocation processing in the present invention. 1...Carrier, 2...Image reading sensor, 3...
Printing hand, 4... Hammer driver, 5... Sensor circuit, 6... Motor, 7... Motor driver,
8... Operation panel, 9... Setting data storage non-volatile memory, 1°... Program ROM, 11... Data storage RAM, 12... Interface, 13...
Main unit, 14...CPU, 15...Data bus, 16...Address bus. Patent applicant: BFN Co., Ltd.

Claims (1)

【特許請求の範囲】 画像読取センサ(2)および印字ヘッド(3)が搭載さ
れたキャリア(1)を持つプリンタ機構部と、均等割付
制御手段を持つプリンタ制御回路とを具備し、 均等割付制御手段は、本体装置からN個の印字データ及
び印字指令コマンドが送られてきたときに、キャリアを
左端に移動させ、その後にキャリアを右方向に移動させ
ながら画像読取センサの出力をメモリに格納し、メモリ
の内容を参照して用紙上の記入領域の左側の縦線である
所の罫線1の位置X_1および記入領域の右側の縦線で
ある所の罫線2の位置X_2を求め、印字打出位置をX
_1、文字ピッチを(X_2−X_1)/Nとして受信
文字列の編集を行い、編集完了後に印字を実行させるよ
うに構成されている ことを特徴とする均等割付制御方式。
[Scope of Claims] A printer mechanism unit having a carrier (1) on which an image reading sensor (2) and a print head (3) are mounted, and a printer control circuit having equal allocation control means, comprising: an equal allocation control unit; The means moves the carrier to the left end when N pieces of print data and print command commands are sent from the main device, and then stores the output of the image reading sensor in the memory while moving the carrier to the right. , refers to the contents of the memory to find the position X_1 of ruled line 1, which is the vertical line on the left side of the writing area on the paper, and the position X_2, which is the vertical line on the right side of the writing area, and determines the print embossing position. X
_1, a received character string is edited with a character pitch of (X_2-X_1)/N, and printing is executed after editing is completed.
JP63266509A 1988-10-22 1988-10-22 Uniform assignment control system Pending JPH02112978A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63266509A JPH02112978A (en) 1988-10-22 1988-10-22 Uniform assignment control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63266509A JPH02112978A (en) 1988-10-22 1988-10-22 Uniform assignment control system

Publications (1)

Publication Number Publication Date
JPH02112978A true JPH02112978A (en) 1990-04-25

Family

ID=17431897

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63266509A Pending JPH02112978A (en) 1988-10-22 1988-10-22 Uniform assignment control system

Country Status (1)

Country Link
JP (1) JPH02112978A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2381352A (en) * 2001-03-23 2003-04-30 Matsushita Electric Ind Co Ltd Fashion information server device and fashion information management method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2381352A (en) * 2001-03-23 2003-04-30 Matsushita Electric Ind Co Ltd Fashion information server device and fashion information management method

Similar Documents

Publication Publication Date Title
JPH02112978A (en) Uniform assignment control system
JPH0330977A (en) Page printer control system
JPS6364765A (en) Output device
JP2746592B2 (en) Document processing apparatus and method
JPH078589B2 (en) Recording control device
JPS6356576B2 (en)
JPS5839382A (en) Drawing system of recording device
JPS63318665A (en) Printing device
JP2977132B2 (en) Printer
JPH049157B2 (en)
JPS59103786A (en) Printer
JPH03231875A (en) Label printer
JPS62111775A (en) Printing position automatic calculator
JPH1071747A (en) Tape printer
JPH01150565A (en) Printing position setting system of printer
JPS60115480A (en) Zip code number printing system
JPH06122235A (en) Printer with incorporated scanner
JPS6411985B2 (en)
JPH09251271A (en) Label backing paper with production indication sign
JPH06238992A (en) Printer
JPH05244347A (en) Electron ic blackboard
JPS6156115B2 (en)
JPS61167569A (en) Dot printer
JPS60201960A (en) Printer
JPH0624083A (en) Perfecting press