JPS61283583A - Electronic apparatus with printer - Google Patents

Electronic apparatus with printer

Info

Publication number
JPS61283583A
JPS61283583A JP60125651A JP12565185A JPS61283583A JP S61283583 A JPS61283583 A JP S61283583A JP 60125651 A JP60125651 A JP 60125651A JP 12565185 A JP12565185 A JP 12565185A JP S61283583 A JPS61283583 A JP S61283583A
Authority
JP
Japan
Prior art keywords
paper
paper width
printing
data
print
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
JP60125651A
Other languages
Japanese (ja)
Inventor
Shigeru Iida
茂 飯田
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP60125651A priority Critical patent/JPS61283583A/en
Publication of JPS61283583A publication Critical patent/JPS61283583A/en
Pending legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)
  • Calculators And Similar Devices (AREA)

Abstract

PURPOSE:To enable a printing paper with a desired paper width to be used, by a system wherein a plurality of paper widths can be detected, and a printing format is changed according to the paper width. CONSTITUTION:A paper width detecting switch 9 for detecting printing papers with two types of paper widths A, B (A>B) is disposed at such a position that when each of the papers 12, 13 having the widths A, B is set with the right end part thereof matched to the right side of a paper letting-out part 11 of the printer, the switch 9 makes contact with the paper 12 to detects the latter but does not make contact with the paper 13, so that is can not detect the paper 13. The switch 9 comprises a pair of metallic electrode pieces 9A, 9A' and lead wires 9B connected to the pieces 9A, 9A', and is connected to a paper width data generating part 10. A CPU 2 performs processing for setting an optimum printing format for printing data, according to the paper width data outputted from the part 10.

Description

【発明の詳細な説明】 [発明の技術分野] この発明はプリンタ付電子機器に関する。[Detailed description of the invention] [Technical field of invention] The present invention relates to electronic equipment with a printer.

[従来技術] 従来、プリンタ付電子卓上計算機では、プリンタにセッ
トできる印字紙の紙幅はそのプリンタに規定された、た
だ1種類だけのものに限られている。
[Prior Art] Conventionally, in electronic desktop calculators with printers, the paper width of printing paper that can be set in the printer is limited to only one type specified for the printer.

[従来技術の問題点] そのため、計算機の使用者が望む紙幅で常に印字するこ
とはできず1例えばもう少し幅の広いもので大きく、分
かりやす〈印字したいと思っても幅の広い印字紙は使用
できないから、不可能であった・ [発明の目的コ この発明は、複数種類の紙幅の印字紙がセットでき、常
に望む紙幅の印字紙が使用できるようにしたプリンタ付
電子機器を提供することを目的とする。
[Problems with the prior art] Therefore, it is not always possible to print in the paper width that the computer user desires. [Purpose of the Invention] This invention aims to provide an electronic device with a printer that can set printing paper of multiple types of paper widths and that allows printing paper of a desired paper width to be used at all times. purpose.

[発明の要点] 上記目的を達成するために、複数種類の紙幅を検出でき
るようにし、また検出した紙幅に応じて印字フォーマッ
トを変更するようにしたことを要点とする。
[Summary of the Invention] In order to achieve the above object, the main point is to be able to detect a plurality of types of paper widths, and to change the print format according to the detected paper widths.

「実施例」 以下1図面を谷間してこの発明をプリンタ付電子式卓五
計算機に適用した一実施例を説明する。
``Embodiment'' An embodiment in which the present invention is applied to an electronic calculator with a printer will be described below with reference to one drawing.

第1図において、キー人力部lには計算機に通常設けら
れているテンキー、ファンクションキー等があり 各キ
ーの出力はマイクロプロセッサから成るCPU2に入力
し処理される。このCPU2には、複数種類の紙幅の印
字紙がセットできるプリンタ3、表示部44人人力−タ
や印字データ等を記憶するRAMから成るデータ記憶部
5、印字データに3桁区切りを行う3桁区切設定部6、
印字データにマイナス符号を設定するマイナス符号設定
部7゜印字データにシンボルを設定するシンボル設定部
8が夫々に、パスラインを介し接続さね また紙幅検出
スイッチ9が検出した信号は紙幅データ定生部10に入
力して紙幅データに変換され、CPU2に供給される。
In FIG. 1, a key input section 1 includes a numeric keypad, function keys, etc. that are normally provided in computers, and the output of each key is input to a CPU 2 consisting of a microprocessor and processed. This CPU 2 includes a printer 3 in which printing paper of multiple widths can be set, a data storage unit 5 consisting of a display unit 44 and a RAM for storing data to be printed, and 3 digits for dividing the printing data into 3 digits. Delimiter setting section 6,
A minus sign setting section 7 for setting a minus sign in the print data and a symbol setting section 8 for setting a symbol in the print data are connected via a pass line. Also, the signal detected by the paper width detection switch 9 is the paper width data fixed value. The data is input to the unit 10, converted into paper width data, and supplied to the CPU 2.

第3図はデータ記憶部5ぼ設けられている数値データを
記憶する数値レジスタ、シンボルマークを記憶するシン
ボルレジスタ、印字データを記憶する2種類のプリント
バッフ7 (FBl、PH1)を示し、而してその具体
的構成は第4図に示すものである。
FIG. 3 shows a numerical register for storing numerical data, a symbol register for storing symbol marks, and two types of print buffers 7 (FBl, PH1) for storing print data, which are provided in the data storage unit 5. Its specific configuration is shown in FIG.

即ち、数値レジスタは全体として13桁かり成り、その
O11桁目はDP(小数点)記憶用、2桁[1は符号記
憶用、3〜12桁目は数値記憶用となっている。またシ
ンボルレジスタは2桁から成る。更に2つのプリントバ
ッファは共に19桁から成る。
That is, the numerical value register has 13 digits as a whole, of which the 11th digit is for DP (decimal point) storage, 2 digits [1 is for code storage, and the 3rd to 12th digits are for numerical value storage. Further, the symbol register consists of two digits. Furthermore, both print buffers consist of 19 columns.

第2図は2種類の紙幅A、B、(但し、A>B)の印字
紙を検出するE配紙幅検出スイッチ9の具体的構成を示
すもので、この紙幅検出スイッチ9は、プリンタの紙繰
出し部11の図中、右側A、Hの各印字紙i2.13の
右端部を合わせてセットしたとき、紙幅Aの印字紙12
には接触して検出されるが、紙幅Bの印字紙13には接
触できないため検出されない図示位置に設けである。
FIG. 2 shows the specific configuration of the E paper width detection switch 9 that detects printing paper of two types of paper widths A, B, (however, A>B). When the right end of each print paper i2.13 on the right side A and H in the drawing of the feeding unit 11 is set together, the print paper 12 with paper width A
It is provided at the position shown in the figure where it is not detected because it cannot come into contact with the printing paper 13 having the paper width B, although it is detected when it comes into contact with the printing paper 13 having the paper width B.

そしてこの紙幅検出スイッチ9は一対の金属電極片9A
、9A′と、この金属電極片9A、9A′に接続される
リード1i9Bとから成り、紙幅データ発生部10に接
続されている。そしてCPU2ではこの紙幅データー発
生部10が出力する紙幅データに応じて、印字データの
印字フォーマットを最適なものに変更設定する作業を行
なう。
This paper width detection switch 9 has a pair of metal electrode pieces 9A.
, 9A' and leads 1i9B connected to the metal electrode pieces 9A and 9A', and are connected to the paper width data generating section 10. Then, the CPU 2 performs a task of changing and setting the print format of the print data to an optimal one in accordance with the paper width data output by the paper width data generating section 10.

次に第5図(A)〜(C)のフローチャートと、第6図
(1)、(2)に示す印字例に基づいて実施例の動作を
説明する。
Next, the operation of the embodiment will be explained based on the flowcharts shown in FIGS. 5(A) to 5(C) and the printing examples shown in FIGS. 6(1) and (2).

キー人力部1からのキー人力データによってCPU2か
実行した演算結果は順次データ記憶部5の数Mレジスタ
等に書込まれる。そして印字処理が開始すると第5図の
フローチャートがスタートする。
The calculation results executed by the CPU 2 based on the key manual data from the key manual unit 1 are sequentially written into the number M register of the data storage unit 5, etc. When the printing process starts, the flowchart shown in FIG. 5 starts.

先ず、ステップP1ではデータ記憶部、5内のシンボル
レジスタにセットされているシンボルマーク(第6図の
数値の後に示す+、M+、本のシンボルのデータ)がプ
リントバッファFBIのO11桁目に転送される。また
ステップP2では数値レジスタ内に対応する数値データ
はプリントバッファFBIの2〜18桁目に転送される
First, in step P1, the symbol mark (+, M+, book symbol data shown after the numerical value in Figure 6) set in the symbol register in the data storage section 5 is transferred to the O11 digit of the print buffer FBI. be done. Further, in step P2, the corresponding numerical data in the numerical register is transferred to the 2nd to 18th digits of the print buffer FBI.

次にステップP3により紙幅の大、小判断が行われる。Next, in step P3, it is determined whether the paper width is large or small.

而していま紙幅Aの大きい方の印字紙12がセy)され
ているとすると、紙幅検出スイッチ9の金属電極片9A
はこの印字紙12に接触してオフ状態となり、したがっ
て紙幅データ発生部lOは紙幅Aに対応する紙幅データ
を発生してCPU2にかえている。したがってCPU2
では紙幅の「大」を判断し、ステップP4に進んで小数
点設定処理を行い、次にステップP5により3桁区切設
定部6を駆動して3桁区切設定処理を行う。これは紙幅
に余裕があるから紙幅の大きいこの印字紙12について
のみ行なわれる処理である。(第6図(2)参照)。
Assuming that the printing paper 12 with the larger paper width A is currently being printed, the metal electrode piece 9A of the paper width detection switch 9
comes into contact with this printing paper 12 and turns off, so that the paper width data generating unit 10 generates paper width data corresponding to the paper width A and sends it to the CPU 2. Therefore CPU2
Then, it is determined whether the paper width is "large", the process proceeds to step P4, where decimal point setting processing is performed, and then, in step P5, the 3-digit separator setting section 6 is driven to perform 3-digit separator setting processing. This process is performed only on the printing paper 12, which has a large paper width, since there is sufficient paper width. (See Figure 6 (2)).

次にステップP6により符号はマイナスか否かを、数m
レジスタの2桁目の内容をみて判断する。而してマイナ
スであればステップP7に進み、マイナス符号設定部7
によってプリントバッフアPBIの最上位桁にマイナス
符号を設定し、次にステップP8によりプリントバッフ
ァFBIの内容を印字する。
Next, in step P6, it is determined whether the sign is negative or not by several m
Check the contents of the second digit of the register. If it is negative, the process advances to step P7, where the minus sign setting section 7
A minus sign is set in the most significant digit of the print buffer PBI by step P8, and then the contents of the print buffer FBI are printed in step P8.

一方、ステップP6において符号がマイナスでないと判
断されたときには ステップP8にシャノブする。
On the other hand, if it is determined in step P6 that the sign is not negative, the process proceeds to step P8.

その結果、第6図(2)に印字例を3種顕示すように、
数値データが数値レジスタの最大桁(10桁分)まで入
っていたとしても、紙幅に余裕のある紙幅Aの印字紙1
2の場合、符号、数値、シンボルは共に1行として印字
され、しかも数値には3桁区切りを入れて印字される。
As a result, three types of printing examples are shown in Figure 6 (2).
Printing paper 1 with paper width A that has enough paper width even if the numerical data is up to the maximum digit (10 digits) of the numerical register.
In the case of 2, the code, numeric value, and symbol are all printed as one line, and the numeric value is printed with a 3-digit separator.

一方、紙幅の狭い紙幅Bの印字紙13がプリンタにセッ
トされていた場合、紙幅検出スイッチ9の金属電極片9
Aは印字紙13と非接触のためもう一方の金属電極片9
A′と接触しオン信号を出力している。そのため紙幅デ
ータ発生部10は紙幅Bに対応する紙幅データを発生し
、CPU2に午えている。そんためCPU2は紙幅の「
小」を判断し、ステップP3からステップP9に進んで
小数点設定処理を行う。
On the other hand, when the printing paper 13 with a narrow paper width B is set in the printer, the metal electrode piece 9 of the paper width detection switch 9
A is the other metal electrode piece 9 because it is not in contact with the printing paper 13.
It contacts A' and outputs an on signal. Therefore, the paper width data generation section 10 generates paper width data corresponding to the paper width B, and sends it to the CPU 2. Therefore, CPU2 is
The process proceeds from step P3 to step P9 to perform decimal point setting processing.

次にステップpH+により符号はマイナスか否かを判断
し、NOであればステップPITに進んでシンボルは2
桁か否を判断する。而して第6図(■)の(A)または
(B)に示すようにシンボルデータが1桁のときには、
ステップPz3に進んでプリンドパ・ソファFBIを1
桁右シフトしてそのO桁IJをクリアしたのでステップ
Palに進んでフリントノヘソファFBI内のデータを
印字する。
Next, in step pH+, it is determined whether the sign is negative or not, and if NO, the process proceeds to step PIT and the symbol is 2.
Determine whether it is a digit or not. Therefore, when the symbol data is one digit as shown in (A) or (B) of Fig. 6 (■),
Proceed to Step Pz3 and 1 Purindopa Sofa FBI.
Since the digit is shifted to the right and the O digit IJ is cleared, proceed to step Pal and print the data in the Flint nose sofa FBI.

−・方、ステップPIJにてYESと判断された場合、
ステップP+sに進み、2桁目のシンボルをプリントバ
ッファPB2の最下位桁に退避させる。
- If it is determined YES in step PIJ,
Proceeding to step P+s, the second digit symbol is saved to the least significant digit of print buffer PB2.

即ち、第6図(1)の2行目の印字例2桁のシンボル「
M十」の2桁目のシンボル[+」を退避させる。そして
ステップP1・)によりプリント/へソファPBIを1
桁右シフトし、次にステップP20によりプリントパン
フrPBI内のデータを印字し、次にステップP21に
よりプリントバッファPBlとプリントバッファPB2
とを交換し、睡ち、プリントバッファPBIの最下位桁
に退避したシンボル「+」が入力する。したがってこれ
をステップP2/により印字する。このため数値か13
0桁分全部入っており、しかもシンボルが2桁分あって
、紙幅の狭い印字紙13の場合、シンボル「+」が1行
分だけで印字できないため、第6図(1)の2行目の印
字状態のように、この数値データr123456789
0.M+Jは「+」の分だけ第2行目に付加されて2行
に分けて印字される。!gも、本来ならば1行で印字さ
れるべきものが1紙幅が狭いので印字フォーマットを通
常と変化させるものである。
That is, the 2-digit symbol "
The second digit symbol [+] of "M10" is saved. Then, by step P1・), print/to sofa PBI 1
The digits are shifted to the right, and then in step P20 the data in the print pamphlet rPBI is printed, and then in step P21 the print buffer PBl and print buffer PB2 are printed.
The symbol "+" saved in the least significant digit of the print buffer PBI is input. Therefore, this is printed in step P2/. Therefore, the number is 13
In the case of printing paper 13 that contains all 0 digits, has 2 digits of symbols, and has a narrow paper width, the symbol "+" cannot be printed on only one line, so the second line in Figure 6 (1) This numerical data r123456789, like the printing status of
0. M+J is added to the second line by "+" and printed in two separate lines. ! g also changes the printing format from the normal one because the width of one sheet of paper is narrow, although what should normally be printed in one line.

ま、セステップPIOにてYESとなった場合、ステッ
プP目により数値がフル桁(10桁分のデータ)か否か
を判断し、NoであればステップP16によりマイナス
符号をプリントバッファFBIの最上位桁(18桁目)
にセットする。そしてステーノブP17に進み、上述し
た処理を行う。
Well, if YES in step PIO, it is determined whether the numerical value is full digits (data for 10 digits) in step P, and if NO, a minus sign is added to the top of the print buffer FBI in step P16. Digit (18th digit)
Set to . Then, the process proceeds to the stainless steel knob P17, and the above-mentioned processing is performed.

またステップPl+にてYESとなると、ステップPI
2に進み、マイナス符号をプリンタバッファPB2の最
上位桁にセットする。そしてプリントバッファFBIと
プリントバッファPB2とのデータを交換してプリント
バッファFBIの最上位のマイナス符号を第1行目の最
上位桁部分に印字し、次にプリントバッファFBIとプ
リントバッファPB2とを変換してプリントバッファP
BIにマイナス符号を除いた10行桁の数値データとシ
ンボルデータとを戻す。そしてステップPI7に進み、
北述した処理を行う。
Also, if step PI+ is YES, step PI
Proceed to step 2 and set a minus sign in the most significant digit of printer buffer PB2. Then, data is exchanged between print buffer FBI and print buffer PB2, the most significant minus sign of print buffer FBI is printed in the most significant digit of the first line, and then print buffer FBI and print buffer PB2 are converted. and print buffer P
Return the numerical data and symbol data of 10 rows and digits excluding the minus sign to BI. Then proceed to step PI7,
Perform the processing described above.

そのため第6図(1)の第3行目の印字例(C)のよう
に、マイナス符号と、数値+シンボルの各データが紙幅
が狭いために2行にわたって印字される。即ち、紙幅に
応じて印字フォーマットが変更されたものである。
Therefore, as shown in the printing example (C) on the third line of FIG. 6(1), each data of the minus sign and the numerical value + symbol is printed over two lines because the paper width is narrow. That is, the printing format is changed depending on the paper width.

尚、−h記実施例では印字紙の種類を2種としたが3種
以上であってもよい。
In the embodiment described in -h, two types of printing paper were used, but three or more types may be used.

またシンボルが2桁あるとき、例えば「M十」の例では
、数値がフル桁入っていて紙幅も狭いため全体のデータ
を1行だけ印字できないとき、上記実施例では「M」と
「+」を2行に分けて印字したが、「M」と「+」とを
そのスペースをつめて「M+」と小さく1字分として印
字するようにしてもよい、更に紙幅検出スイッチは金属
電極片によって行うほか、光センサ、手動切換えスイッ
チ等であってもよい。
In addition, when a symbol has two digits, for example, in the example of "M ten", when the entire data cannot be printed in one line because the numerical value contains all the digits and the paper width is narrow, in the above example, "M" and "+" is printed in two lines, but the space between "M" and "+" may be compressed and printed as one small character "M+".Furthermore, the paper width detection switch is printed using a metal electrode piece. Alternatively, an optical sensor, a manual changeover switch, etc. may be used.

〔考案の効果] 以上説明したように、この発明は、紙幅が異なる複数種
類の印字紙を夫々セットして何れも印字できるようにし
、そのとき印字紙の紙幅を検出してその紙幅に応じて印
字フォーマットを変更し、印字するようにしたプリンタ
付電子機器を提供したから、紙幅の異なる印字紙が使用
できて自分の好むもので印字できる利点また、自動的に
紙幅に応じて印字フォーマットが変化するから印字デー
タの長さにオペレータが何の気を配る必要もなく、常に
正確に且つ有効印字スペースをフルに印字できる利点が
ある。
[Effect of the invention] As explained above, the present invention enables printing by setting a plurality of types of printing paper with different paper widths, detecting the paper width of the printing paper at that time, and detecting the paper width according to the paper width. Since we have provided an electronic device with a printer that prints by changing the print format, you can use printing paper of different widths, and the advantage is that you can print with whatever you prefer.In addition, the print format automatically changes according to the paper width. Therefore, there is no need for the operator to pay any attention to the length of the print data, and there is an advantage that printing can always be performed accurately and in the full effective print space.

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

第1図はこの発明の一実施例の回路図、第2図は紙幅検
出スイッチ9.印字紙12.印字紙13の位置関係を示
す図、第3図、第4図はデータ記憶部5内の数値レジス
タ、シンボルレジスタ、プリントパンファPBi、PB
2の具体的構成を示す図、第5図(A、 )乃至(C)
は動作を示すフローチャート、第6図(1)は紙幅の狭
い印字紙12の場合の印字状態図、第6図(2)は紙幅
の広い印字紙13の場合の印字状態図である。 2・・・・・・CP tJ、3・・・・・・プリンタ、
5・・・・・・データ記憶部、6・・・・・・3桁区切
設定部、7・・・・・・マイナス符号設定部、8・・・
・・・シンボル設定部、9・・・・・・紙幅検出スイッ
チ、10・・・・・・紙幅データ発生部、12.13・
・・・・・印字紙。 特許出願人  カシオ計算機株式会社 第2図 第3図 第4図 第 5 図(A) 第 5 図(B)
FIG. 1 is a circuit diagram of one embodiment of the present invention, and FIG. 2 is a paper width detection switch 9. Printed paper 12. 3 and 4 are diagrams showing the positional relationship of the printing paper 13, the numerical register, symbol register, print paper PBi, PB in the data storage unit 5.
Figures 5 (A, ) to (C) showing the specific configuration of 2.
6 is a flowchart showing the operation, FIG. 6(1) is a printing state diagram for the case of the printing paper 12 having a narrow paper width, and FIG. 6(2) is a printing state diagram for the case of the printing paper 13 having a wide paper width. 2...CP tJ, 3...Printer,
5... Data storage section, 6... Three-digit delimiter setting section, 7... Minus sign setting section, 8...
... Symbol setting section, 9... Paper width detection switch, 10... Paper width data generation section, 12.13.
...Printed paper. Patent applicant: Casio Computer Co., Ltd. Figure 2 Figure 3 Figure 4 Figure 5 Figure 5 (A) Figure 5 (B)

Claims (1)

【特許請求の範囲】[Claims] プリンタにセットされる印字紙の紙幅を検出する紙幅検
出手段と、この紙幅検出手段によって検出された紙幅に
応じて印字データの印字フォーマットを変更する印字制
御手段とを有することを特徴とするプリンタ付電子機器
A printer equipped with a printer characterized in that it has a paper width detection means for detecting the paper width of printing paper set in the printer, and a print control means for changing the printing format of print data according to the paper width detected by the paper width detection means. Electronics.
JP60125651A 1985-06-10 1985-06-10 Electronic apparatus with printer Pending JPS61283583A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60125651A JPS61283583A (en) 1985-06-10 1985-06-10 Electronic apparatus with printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60125651A JPS61283583A (en) 1985-06-10 1985-06-10 Electronic apparatus with printer

Publications (1)

Publication Number Publication Date
JPS61283583A true JPS61283583A (en) 1986-12-13

Family

ID=14915288

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60125651A Pending JPS61283583A (en) 1985-06-10 1985-06-10 Electronic apparatus with printer

Country Status (1)

Country Link
JP (1) JPS61283583A (en)

Similar Documents

Publication Publication Date Title
DE3586220D1 (en) ELECTRONIC CASH REGISTER.
JPH0149626B2 (en)
JPS61283583A (en) Electronic apparatus with printer
US4164789A (en) Electronic apparatus for dealing with numerical information
JPS6220027Y2 (en)
JPS63242581A (en) Printer
JPH0696322B2 (en) Printer
JPS5647862A (en) Electronic cash register
JPS5812257Y2 (en) Simple paper tape punching machine
JPS5924366A (en) Electronic cash register
JPS6318423A (en) Key input device
JPS5844650U (en) cash register machine
JPS6023885A (en) Input unit
JPS5993374A (en) Printing system
JPH0135536B2 (en)
JPS5849291A (en) Line printer with printing ratio computing function
JPS5518765A (en) Order determination unit
JPH06195362A (en) Electronic equipment
JPS5710861A (en) Electronic cash register
JPS57121757A (en) Cash register
JPS55956A (en) Electronic computer
JPS61267124A (en) Printing controller
JPS5852785A (en) Character information controller
JPS6023884A (en) Input unit
JPS5640940A (en) Chinese character input device