JPS6238931A - printing device - Google Patents
printing deviceInfo
- Publication number
- JPS6238931A JPS6238931A JP60178717A JP17871785A JPS6238931A JP S6238931 A JPS6238931 A JP S6238931A JP 60178717 A JP60178717 A JP 60178717A JP 17871785 A JP17871785 A JP 17871785A JP S6238931 A JPS6238931 A JP S6238931A
- Authority
- JP
- Japan
- Prior art keywords
- line
- data
- printing
- printed
- characters
- 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
Links
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
- Record Information Processing For Printing (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、例えばホストコンピュータが伝送されてくる
プログラムリスト等のデータを印字する機能を持った印
字装置の改良に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an improvement of a printing device having a function of printing data such as a program list transmitted from a host computer, for example.
印字装置にはホストコンピュータとの間で伝送可能に構
成されたものがあり、この印字装置は指示したデータを
印字する通常の印字処理機能の他に、ホストコンピュー
タから伝送されてくるプログラムリストを受けてこれを
印字する機能を持っている。この場合、ホストコンピュ
ータは、プログラムリストのデータが行番号側に複数に
分れているので、これら行番号のデータをそれぞれ区別
するために行番号の後にスペースを挿入するとともに1
行番号のデータ伝送の終了位置に印字指示信号を送出し
ている。そこで、印字装置ではこのホストコンピュータ
からのデータを1行番号のデータごとに一時記憶し、印
字指令信号が入力されたところで1行番号のデータを印
字している。ところで、印字の際、印字装置での1行分
の印字可能文字数が例えば40文字であり、1行番号の
データ文字数がこの印字可能文字数よりも多い場合(1
ラインバアフアフル)は複数行に亙って印字することに
なる。第5図はこのプログラムリストの印字例を示して
おり、行番号rloOJとr200Jとのデータが印字
されている。このように百行番号のデータは2行に亙っ
て印字されており、それも印字2行目が1行目と同一位
置から印字開始されている。Some printing devices are configured to be able to communicate with a host computer, and in addition to the normal print processing function of printing instructed data, these printing devices also receive program lists transmitted from the host computer. It has a function to print this. In this case, since the program list data is divided into multiple lines on the line number side, the host computer inserts a space after the line number and one
A print instruction signal is sent to the end position of line number data transmission. Therefore, the printing device temporarily stores the data from the host computer for each line number, and prints the data for each line number when a print command signal is input. By the way, when printing, if the number of characters that can be printed in one line with the printing device is, for example, 40 characters, and the number of data characters in one line number is greater than this number of characters that can be printed (1
(line bar full) will be printed over multiple lines. FIG. 5 shows a printed example of this program list, in which data of line numbers rloOJ and r200J are printed. In this way, the 100-line number data is printed over two lines, and the second line starts printing at the same position as the first line.
ところか以上のような印字が行なわれると、各行番号別
にデータを判別して見分けるのが非常に難しく、さらに
、行番号rLOOJおよびr200Jの次の行に印字さ
れているデータが第5図に示すようにr、 17g・・
・J rol、 l・・・」の数字なので、行番号と
の区別がつきにくい。そこで、行番号が判別しやすいよ
うに2行目からの印字開始位置を変更することが考えら
れるか、この場合、ホストコンピュータに2行目の印字
開始位置の指示信号等を送出する機能をもたせなければ
ならず、このためホストコンピュータのプログラム作成
が煩雑となってしまう。However, when the above-mentioned printing is performed, it is very difficult to identify and distinguish the data for each line number, and furthermore, the data printed on the line following line numbers rLOOJ and r200J is as shown in Figure 5. Like r, 17g...
・Since the numbers are "J rol, l...", it is difficult to distinguish them from line numbers. Therefore, it may be possible to change the printing start position from the second line so that the line number is easier to distinguish.In this case, the host computer may be equipped with a function to send an instruction signal for the print start position of the second line. Therefore, creating a program for the host computer becomes complicated.
そこで本発明は上記問題点を解決するために、外部装置
での煩雑なプログラム作成を無くし得、かつ印字した各
データが容易に区別できるように印字できる印字装置を
提供することを目的とする。SUMMARY OF THE INVENTION In order to solve the above-mentioned problems, it is an object of the present invention to provide a printing device that can eliminate the need for complicated program creation in an external device and can print data in a way that makes it easy to distinguish between printed data.
本発明は、データの各行の印字開始位置を入力設定する
印字位置設定手段と、データの文字数か1行の印字可能
文字数以上かを判断する文字数判断手段と、この文字数
判断手段により印字可能文字数量」−と判断された場合
、所望の行数目からデータを印字位置開始位置から印字
する印字手段とを備えて上記目的を達成しようとする印
字装置である。The present invention provides a print position setting means for inputting and setting the print start position of each line of data, a character count determination means for determining whether the number of characters in the data is greater than or equal to the number of characters that can be printed in one line, and a number of characters that can be printed by the character number determination means. ''-, the printing device is provided with a printing means for printing data from the desired number of lines from the print position start position to achieve the above object.
本発明は」二記各手段を備えたことにより、印字すべき
データの文字数が1行の印字可能文字数以上と判断され
ると、次のデータと区別する等のために所望の行数目の
印字開始位置からデータを印字する。The present invention is provided with each of the above two means, so that when it is determined that the number of characters of data to be printed is greater than the number of characters that can be printed in one line, printing is performed on the desired number of lines in order to distinguish it from the next data, etc. Print data from the starting position.
以下、本発明の一実施例について図面を参照して説明す
る。An embodiment of the present invention will be described below with reference to the drawings.
第1図は印字装置の構成図である。同図において1か印
字装置であって、この装W1はホストコンピュータ2と
の間でデータ伝送可能に構成されたものである。CPU
(中央処理装置)3にはアドレスバス、データバス、
コントロールバスから成る内部バス4を介してROM
(リード・オンリ・メモリ)5、PAM (ランダム・
アクセス・メモリ)6およびIlo、(インプット−ア
ウトプット)ポート7が接続され、さらにこのI10ポ
ート7にCA(キャリッジ)モータ8のCA制御回路9
、紙送りモータ10の紙送り制御回路11、ドツトヘッ
ド12のドツトヘッド制御回路13が接続されている。FIG. 1 is a block diagram of a printing device. In the figure, W1 is a printing device, and this device W1 is configured to be able to transmit data to and from a host computer 2. As shown in FIG. CPU
(Central processing unit) 3 includes an address bus, a data bus,
ROM via an internal bus 4 consisting of a control bus.
(Read-only memory) 5, PAM (Random)
access memory) 6 and Ilo, (input-output) port 7 are connected, and furthermore, a CA control circuit 9 of a CA (carriage) motor 8 is connected to this I10 port 7.
, a paper feed control circuit 11 of the paper feed motor 10, and a dot head control circuit 13 of the dot head 12 are connected.
そして、ホストコンピュータ2との間のデータ伝送を行
うためのインターフェイス制御回路14が接続されてい
る。An interface control circuit 14 for data transmission with the host computer 2 is connected thereto.
さて、15は打出位置設定スイッチであって、これはホ
ストコンピュータ2からのプログラムリストを印字する
場合、1行番号のデータが印字1行目たけでは印字でき
ずに次の2行目に移って印字するときにこの2行目の印
字開始位置を入力設定するためのものであり、打出位置
取込回路16− 5 =
を介してI10ポート7に接続されている。また、前記
ROM6には第2図に示す印字フローチャー1・に従っ
たプログラムが記憶されており、これにより前記CPU
3は各印字指令を発して次のような機能を持つものとな
る。すなわち、プログラムリストの1行番号のデータの
文字数が1行の印字可能文字数以上(1ラインバツフア
フル)がを判断する文字数判断機能と、この文字数判断
機能により印字可能文字数以上と判断された場合、所望
の行数目ここては2行目からデータを打出位置設定スイ
ッチ↑5により入力された印字位置開始位 □置か
ら印字する印字機能とである。Now, 15 is a firing position setting switch, which means that when printing the program list from the host computer 2, the data of the first line number cannot be printed at the first line and moves to the next second line. This is for inputting and setting the printing start position of this second line when printing, and is connected to the I10 port 7 via the ejection position acquisition circuit 16-5. Further, the ROM 6 stores a program according to the printing flowchart 1 shown in FIG.
3 issues each print command and has the following functions. In other words, there is a character count judgment function that determines whether the number of characters in the data in one line number of the program list is greater than or equal to the number of characters that can be printed in one line (one line buffer full), and when it is determined by this number of character judgment function that it is greater than or equal to the number of printable characters. , the desired number of lines This is a printing function that prints data from the second line from the print position start position □ inputted by the print position setting switch ↑5.
次に上記の如く構成された装置の動作について ′
第2図に示す印字フローチャートに従って説明す
”る。ここで、印字動作は次のようにして行なわれる。Next, let's talk about the operation of the device configured as above.
Explain according to the printing flowchart shown in Figure 2.
Here, the printing operation is performed as follows.
すなわち、用紙がセットされると、CA制御回路9によ
りCAモータ8を駆動制御してドツト ゛ヘッド
12が用紙の左端における通常の印字開始位置(レフト
マージン)に位置される。ここでC′Aモータ8を駆動
させてドツトヘッド12を右方 ニ向に所定スピー
ドで移動させ、これと同時にドツトヘット12制御回路
13により印字データをドツトヘッド
1行分印字されると紙送りモータ10が駆動して用紙を
所定長さだけ送られ、この後再びドツトヘッド12がレ
フトマージンに移動されて次の行の印字を行う。ここで
、ホストコンピュータ2のプログラムを印字する状態と
なると、その初期処理が実行されてから打出位置設定ス
イッチ15に印字開始位置が設定されたかを判断する。That is, when paper is set, the CA control circuit 9 drives and controls the CA motor 8 to position the dot head 12 at the normal printing start position (left margin) at the left end of the paper. Here, the C'A motor 8 is driven to move the dot head 12 to the right at a predetermined speed, and at the same time, when the dot head 12 control circuit 13 prints print data for one line of the dot head, the paper feed motor 10 is activated. The dot head 12 is driven to feed the paper a predetermined length, and then the dot head 12 is moved to the left margin again to print the next line. Here, when the program of the host computer 2 is in a state to be printed, after the initial processing is executed, it is determined whether the printing start position has been set to the firing position setting switch 15.
つまり、プログラムリストの印字に際して1行目だけで
は印字できずに2行目に移って印字する場合の2行目の
印字開始位置が打出位置設定スイッチ15に設定される
。ここで、印字開始位置を5文字目からとすると、これ
が打出位置設定スイッチ16により読取られI10ポー
ト7を通ってCPU3の指令によりRAM5に一時記憶
される。この状態にあってホストコンピュータ2からプ
ログラムリストのデータが伝送されてくると、これが確
認されてインターフェース制御回路14、I10ボート
7を通ってCPU3の指令によりRAM6に一時記憶さ
れる。そこで、記憶されたプログラムリストのうち1行
番号のデータが読取られて1ラインバツフアフル(40
文字)を判断する。この判断の結果、1行の印字可能文
字数以下であればレフトマージンAからその行番号のデ
ータを印字する。That is, when printing the program list, the printing start position of the second line is set in the ejecting position setting switch 15 when the first line cannot be printed and the printing is moved to the second line. Here, assuming that the printing start position is from the fifth character, this is read by the printing position setting switch 16, passed through the I10 port 7, and temporarily stored in the RAM 5 by a command from the CPU 3. When program list data is transmitted from the host computer 2 in this state, it is confirmed and temporarily stored in the RAM 6 via the interface control circuit 14 and the I10 port 7 according to a command from the CPU 3. Then, the data of one line number in the stored program list is read and one line buffer full (40
character). As a result of this determination, if the number of characters that can be printed in one line is less than or equal to the number of characters that can be printed in one line, data of that line number is printed from left margin A.
これに対して印字可能文字数よりも大きいと判断された
場合は、第3図に示すようにまず最初の1行40文字が
レフトマージンAから印字される。この行が印字終了す
ると、改行処理を行ってRAM6に記憶された打出開始
位置Bを読み出して2行目からはこの打出開始位置Bか
らデータが印字される。したがって、2行目以降は第3
図に示すようにrDATAJの下からr,178・・・
」が印字される。次にCPU3は行番号200のデータ
を読み出して1ラインブツフアフルかを判断し、1ライ
ンブツフアフルであれば第3図に示すようにこの行番号
200のデータの2行目からの印字開始位置をBからと
する。このようにして続く行番号のデータを印字する。On the other hand, if it is determined that the number of characters is greater than the number of characters that can be printed, the first 40 characters in one line are printed starting from the left margin A, as shown in FIG. When printing of this line is completed, line feed processing is performed to read out the launch start position B stored in the RAM 6, and data is printed from this launch start position B from the second line. Therefore, from the second line onwards, the third
As shown in the figure, from the bottom of rDATAJ, r, 178...
" is printed. Next, the CPU 3 reads the data at line number 200 and determines whether the 1 line is full. If the 1 line is full, the CPU 3 prints the data at line number 200 from the second line as shown in FIG. Let the starting position be from B. In this way, the data of the following line numbers are printed.
このように上記一実施例においては、プログラムリスト
の1行番号分のデータ文字数が1行の印字可能文字数以
上と判断されると、次に行番号のデータと区別するため
に印字2行数目の印字開始位置Bからデータを印字する
構成としたので、ホストコンピュータ2に繁雑なプログ
ラムを作成することが全く無くなり、印字装置1におい
て印字位置を任意に設定できて各行番号別のデータが見
易くかつ判別しやすくなる。したがって、ホストコンピ
ュータ2の処理量を少なくすることができる。In this way, in the above embodiment, when it is determined that the number of data characters for one line number of the program list is greater than the number of printable characters for one line, the second line number is printed to distinguish it from the line number data. Since data is printed from printing start position B, there is no need to create a complicated program on the host computer 2, and the printing position can be set arbitrarily on the printing device 1, making it easy to see and distinguish data for each line number. It becomes easier to do. Therefore, the processing amount of the host computer 2 can be reduced.
なお、本発明は上記一実施例に限定されるものではない
。例えば、第4図に示すように外部装置から伝送してき
た挨拶文のデータを印字する場合、印字1行目が一杯に
なったとき1行目の最初にスペースを挿入して印字する
機能にもできる。Note that the present invention is not limited to the above embodiment. For example, when printing greeting data transmitted from an external device as shown in Figure 4, there is also a function that inserts a space at the beginning of the first line when the first line is full. can.
以」二詳記したように本発明によれば、外部装置での繁
雑なプログラム作成を無くし得、かつ印字した各データ
が容易に区別できるように印字できる印字装置を提供で
きる。As described in detail below, according to the present invention, it is possible to provide a printing device that can eliminate the need for complicated programming in an external device, and can print data in a manner that allows each piece of printed data to be easily distinguished.
第1図は本発明に係わる印字装置の一実施例を示す構成
図、第2図は本発明装置の印字フローチャー1・、第3
図は本発明装置による印字例を示す図、第4図は本発明
装置による他の印字例を示す図、第5図は従来装置によ
る印字例を示す図である。
2・・・ホストコンピュータ、3・・・CPU,5・・
・ROM,6・・・RAM,8・・・CAモータ、10
・・・紙送りモータ、15・・・打出位置設定スイ・ソ
チ、14・・・インターフェース制御回路。FIG. 1 is a block diagram showing an embodiment of a printing device according to the present invention, and FIG. 2 shows printing flowcharts 1 and 3 of the printing device according to the present invention.
FIG. 4 shows an example of printing by the apparatus of the present invention, FIG. 4 shows another example of printing by the apparatus of the invention, and FIG. 5 shows an example of printing by the conventional apparatus. 2...Host computer, 3...CPU, 5...
・ROM, 6...RAM, 8...CA motor, 10
. . . Paper feed motor, 15 . . . Embossing position setting switch, 14 . . . Interface control circuit.
Claims (1)
くるデータを受け取って印字動作する印字装置において
、前記データの各行の印字開始位置を入力設定する印字
位置設定手段と、前記データの文字数が前記1行の印字
可能文字数以上かを判断する文字数判断手段と、この文
字数判断手段により前記印字可能文字数以上と判断され
た場合、所望の行数目から前記データを前記印字位置開
始位置から印字する印字手段とを具備したことを特徴と
する印字装置。In a printing device in which the number of characters that can be printed in one line is determined and that prints by receiving data transmitted from the outside, there is provided a printing position setting means for inputting and setting a printing start position of each line of the data; a number of characters determining means for determining whether the number of characters is greater than or equal to the number of characters that can be printed in one line, and a printing that prints the data from a desired number of lines from the printing position start position when the number of characters is determined by the number of characters determining means to be greater than or equal to the number of characters that can be printed. A printing device characterized by comprising means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60178717A JPS6238931A (en) | 1985-08-14 | 1985-08-14 | printing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60178717A JPS6238931A (en) | 1985-08-14 | 1985-08-14 | printing device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPS6238931A true JPS6238931A (en) | 1987-02-19 |
Family
ID=16053329
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60178717A Pending JPS6238931A (en) | 1985-08-14 | 1985-08-14 | printing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6238931A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100755102B1 (en) * | 2000-04-24 | 2007-09-04 | 오지 세이시 가부시키가이샤 | An automobile interior headliner molding or forming member and an automobile interior headliner member using the same |
-
1985
- 1985-08-14 JP JP60178717A patent/JPS6238931A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100755102B1 (en) * | 2000-04-24 | 2007-09-04 | 오지 세이시 가부시키가이샤 | An automobile interior headliner molding or forming member and an automobile interior headliner member using the same |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS6238931A (en) | printing device | |
| JPS6159920B2 (en) | ||
| JPS58114983A (en) | output method | |
| JP3027849B2 (en) | Printing device | |
| JPS58114289A (en) | Printer controller | |
| JPS61160271A (en) | Printer apparatus | |
| JP3116280B2 (en) | Double-sided printing control method | |
| JP2910768B2 (en) | Printing device | |
| JPS5938081A (en) | Page shift control system | |
| JPS6243727A (en) | Printer | |
| JPH04140163A (en) | Printer | |
| JPH0357484Y2 (en) | ||
| JP3045077B2 (en) | Printing device | |
| JP3143118B2 (en) | Printer and print image pattern development method | |
| JPH0133341Y2 (en) | ||
| JPH0543511B2 (en) | ||
| JPH03138184A (en) | Print data processing device | |
| JPS61211051A (en) | printer | |
| JPS6270056A (en) | High-speed printing apparatus in dot type serial printer | |
| JPH10250055A (en) | Ink jet printer | |
| JPH0213631B2 (en) | ||
| JPH0475137B2 (en) | ||
| JPS62183369A (en) | Serial printer | |
| JPH06103455B2 (en) | Hard copy control system | |
| JPS5971513A (en) | Data input and output device |