JPH10336400A - Portable electronic equipment - Google Patents

Portable electronic equipment

Info

Publication number
JPH10336400A
JPH10336400A JP9144832A JP14483297A JPH10336400A JP H10336400 A JPH10336400 A JP H10336400A JP 9144832 A JP9144832 A JP 9144832A JP 14483297 A JP14483297 A JP 14483297A JP H10336400 A JPH10336400 A JP H10336400A
Authority
JP
Japan
Prior art keywords
battery
amount
printing
electricity
remaining amount
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
JP9144832A
Other languages
Japanese (ja)
Inventor
Yasumi Tanaka
康己 田中
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.)
TEC CORP
Original Assignee
TEC CORP
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 TEC CORP filed Critical TEC CORP
Priority to JP9144832A priority Critical patent/JPH10336400A/en
Publication of JPH10336400A publication Critical patent/JPH10336400A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Facsimile Scanning Arrangements (AREA)
  • Printers Characterized By Their Purpose (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Dot-Matrix Printers And Others (AREA)
  • Power Sources (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a portable electronic equipment for operating a processing such as much more printing or original reading by comparing a residual battery with prescribed amounts, and automatically switching to an operation whose necessary power consumption is small when the residual battery is decreased. SOLUTION: Whether or not a bi-directional request flag F is set is judged, and when it is set, a battery residual electric variable P0 stored in a RAM 27 is compared with a threshold P1 preliminarily set for obtaining a bi- directional operation mode in which power consumption is small. Then, when P0 is smaller than P1 , and the set of an automatic switching mode flag F' is present, printing is operated in the bi-directional operation mode. Also, when P0 is not smaller than P1 , and the set of the automatic switching mode flag F' is absent, the reference voltage of a battery 21 before printing is digital- converted for obtaining a residual electric valuable A0 before printing, and then the printing processing is operated in a uni-directional operation mode in which printing is operated by allowing a carrier to travel in either a forward direction or a backward direction.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、内蔵されたバッテ
リにより印字処理や原稿読取処理等を行う携帯型電子機
器に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a portable electronic device which performs a printing process, a document reading process, and the like using a built-in battery.

【0002】[0002]

【従来の技術】このような携帯型電子機器には、印字ヘ
ッドを搭載したキャリアをプラテンに沿って移動可能な
印字機構を備える携帯型印字装置や、原稿を光学的に読
取るCCD(電荷結合素子)センサを有する原稿読取機
構を備える携帯型原稿読取装置などがある。このような
携帯型電子機器は、通常、外部から電力供給を受けられ
ない場所での使用が前提となっているため、充電可能な
バッテリを内蔵し、そのバッテリから印字機構又は原稿
読取機構に必要な電力を調達するようにしている。
2. Description of the Related Art Such a portable electronic device includes a portable printing device having a printing mechanism capable of moving a carrier on which a print head is mounted along a platen, and a CCD (charge-coupled device) for optically reading a document. 2.) There is a portable document reading device provided with a document reading mechanism having a sensor. Since such a portable electronic device is normally used in a place where power cannot be supplied from the outside, a built-in rechargeable battery is built in, and the battery is used for a printing mechanism or a document reading mechanism. We are trying to procure appropriate power.

【0003】このような携帯型電子機器においては、バ
ッテリが切れると、当該機構が作動しなくなり、バッテ
リに充電をしない限り、印字又は原稿読取を行うことが
できなくなる。特に、印字中や原稿読取中にバッテリが
切れると、途中までしか印字や読取りを行うことができ
なくなり、不便であった。このため、従来は、これを防
止するため、携帯型電子機器に設けた表示器にバッテリ
残量を表示してオペレータに知らせていた。
In such a portable electronic device, when the battery runs out, the mechanism does not operate, and printing or reading of a document cannot be performed unless the battery is charged. In particular, if the battery runs out during printing or reading a document, printing or reading can be performed only halfway, which is inconvenient. Therefore, conventionally, in order to prevent this, the remaining amount of the battery is displayed on a display provided in the portable electronic device to inform the operator.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、携帯型
電子機器に設けた表示器にバッテリ残量を表示するだけ
では、オペレータが携帯型電子機器の表示器に注意を払
わなかった場合、バッテリの残量が不十分な状態で印字
等の操作を行ってしまうことがあり、印字又は原稿読取
動作を行っているぺージの途中でその動作が停止してし
まったり、また適切なタイミングで充電を行うことがで
きなくなる等の問題があった。
However, merely displaying the remaining battery level on a display provided in the portable electronic device will cause the battery to remain low if the operator does not pay attention to the display of the portable electronic device. Printing or other operations may be performed when the volume is insufficient, the operation may stop in the middle of the page where the printing or document reading operation is being performed, or charging may be performed at an appropriate timing. There were problems such as being unable to do so.

【0005】また、オペレータが携帯型電子機器の表示
器に注意を払っていたとしても、その残量でどの程度の
印字や原稿読取が可能か否かが分からないため、そのバ
ッテリ残量では処理できない場合であっても、印字等の
操作を行ってしまう場合もある。
[0005] Even if the operator pays attention to the display of the portable electronic device, it is not known how much printing or reading of the original is possible with the remaining amount. Even when it is not possible, an operation such as printing may be performed.

【0006】さらに、従来の携帯型電子機器では、バッ
テリ残量とは無関係に印字等を行うため、外出時等の充
電できない環境にある場合には、バッテリ残量が少なく
なると、当初の予定より多く印刷等を行わなければなら
なくなったときに対応することができないという問題も
あった。
Further, in a conventional portable electronic device, printing or the like is performed irrespective of the remaining battery power. Therefore, in an environment where charging is not possible, such as when going out, when the remaining battery power becomes low, the battery power becomes lower than originally expected. There is also a problem that it is not possible to cope when a large amount of printing or the like has to be performed.

【0007】そこで、本発明は、バッテリ残量が少なく
なってきた場合には自動的に必要とする消費電力が少な
くて済む動作に切替えることができ、より多くの印字や
原稿読取り等の処理を行うことができる携帯型電子機器
を提供しようとするものである。
Therefore, the present invention can automatically switch to an operation requiring less power consumption when the remaining battery power is low, and perform more printing and document reading processes. It is intended to provide a portable electronic device that can perform the operation.

【0008】[0008]

【課題を解決するための手段】請求項1の本発明は、バ
ッテリを搭載し、外部接続したホスト装置の指令に応じ
て前記バッテリの電力でキャリアを主走査方向に移動さ
せながら印字や原稿読取等の所定の処理を行う携帯型電
子機器において、前記バッテリの残量電気量を一定時間
ごとに検出するバッテリ残量検出手段と、このバッテリ
残量検出手段により検出したバッテリの残量電気量と所
定量とを比較して、バッテリの残量電気量が所定量を越
える場合は、前記キャリアを片方向に走行させながら印
字や原稿読取等を行う片方向動作を行い、バッテリの残
量電気量が所定量を越えない場合は、前記キャリアを双
方向に走行させながら印字や原稿読取等を行う双方向動
作を行うことを特徴とする動作制御手段とを備えたもの
である。
According to a first aspect of the present invention, a battery is mounted, and printing or reading of an original is performed while the carrier is moved in the main scanning direction by the power of the battery in accordance with a command from an externally connected host device. In a portable electronic device that performs a predetermined process such as, for example, a battery remaining amount detecting unit that detects the remaining amount of electricity of the battery at regular intervals, and a remaining amount of electricity of the battery detected by the battery remaining amount detecting unit. If the remaining amount of the battery exceeds the predetermined amount by comparing the predetermined amount with the predetermined amount, the one-way operation of performing printing, reading a document, and the like while performing the carrier in one direction is performed. If the value does not exceed a predetermined amount, a bidirectional operation for performing printing, reading a document, etc., is performed while the carrier travels in both directions.

【0009】請求項2の本発明は、バッテリを搭載し、
外部接続したホスト装置の指令に応じて前記バッテリの
電力でキャリアを主走査方向に移動させながら印字を行
う携帯型電子機器において、前記バッテリの残量電気量
を一定時間ごとに検出するバッテリ残量検出手段と、こ
のバッテリ残量検出手段により検出したバッテリの残量
電気量と所定量とを比較して、バッテリの残量電気量が
所定量を越える場合は、印字データに基づいて通常の印
字出力を行い、バッテリの残量電気量が所定量を越えな
い場合は、印字データを1ドットおきに間引いて印字出
力を行う印字制御手段とを備えたものである。
According to a second aspect of the present invention, a battery is mounted,
In a portable electronic device that performs printing while moving the carrier in the main scanning direction with the power of the battery in response to a command from an externally connected host device, a battery remaining amount that detects the remaining amount of electricity of the battery at regular intervals. The detection means compares the remaining amount of electricity of the battery detected by the battery remaining amount detection means with a predetermined amount. If the remaining amount of electricity of the battery exceeds the predetermined amount, normal printing is performed based on the print data. A print control means for outputting the data and printing out the print data by thinning out the print data every other dot when the remaining amount of electricity of the battery does not exceed the predetermined amount.

【0010】請求項3の本発明は、バッテリを搭載し、
外部接続したホスト装置の指令に応じてバッテリの電力
でキャリアを主走査方向に移動させながら印字や原稿読
取等の所定の処理を行う携帯型電子機器において、バッ
テリの残量電気量を検出するバッテリ残量検出手段と、
所定の処理を行うごとに1ぺージ当たりの処理に必要な
電力量を検出する必要電力量検出手段と、ホスト装置か
ら所定の処理を行う指定ぺージ数を受信すると、バッテ
リ残量検出手段により検出したバッテリの残量電気量及
び必要電力量検出により検出した1ぺージ当たりの処理
に必要な電力量に基いて、ホスト装置からの指定ぺージ
数を処理するのに必要な電力量を算出する電力量算出手
段と、この電力量算出手段により算出した指定ぺージ数
を処理するのに必要な電力量と現在のバッテリの残量電
気量とを比較し、指定ぺージ数を処理するのに必要な電
力量が現在のバッテリの残量電気量を越えない場合は、
キャリアを片方向に走行させながら印字や原稿読取等を
行う片方向動作を行い、指定ぺージ数を処理するのに必
要な電力量が現在のバッテリの残量電気量を越える場合
は、キャリアを双方向に走行させながら印字や原稿読取
等を行う双方向動作を行う動作制御手段とを備えたもの
である。
According to a third aspect of the present invention, a battery is mounted,
A battery that detects the remaining amount of electricity in a portable electronic device that performs a predetermined process such as printing or reading a document while moving the carrier in the main scanning direction with the power of the battery in response to a command from an externally connected host device. Remaining amount detecting means,
The required power amount detection means for detecting the amount of power required for processing per page each time the predetermined processing is performed, and the battery remaining amount detection means receiving the designated page number for performing the predetermined processing from the host device. Calculates the amount of power required to process the specified number of pages from the host device based on the detected amount of remaining power of the battery and the amount of power required for processing per page detected by detecting the required amount of power. Comparing the amount of power required to process the specified number of pages calculated by the power amount calculating unit with the current amount of remaining battery power of the battery, and processing the specified number of pages. If the amount of power required for the battery does not exceed the current battery charge,
Perform one-way operation such as printing or reading a document while running the carrier in one direction.If the amount of power required to process the specified number of pages exceeds the current Operation control means for performing a bidirectional operation of performing printing, reading a document, and the like while traveling bidirectionally.

【0011】[0011]

【発明の実施の形態】以下、本発明をスキャナ付プリン
タに適用した場合の実施の形態を図1ないし図11を参
照して説明する。図1及び図2は、本実施の形態におけ
る携帯型電子機器としてのスキャナ付プリンタ10の内
部構成を示す断面図である。このスキャナ付プリンタ1
0は、記録媒体としての印字用紙9への印字を行う印字
機構と、原稿としての原稿用紙15を光学的に読取る原
稿読取機構(スキャナ)との両者を備えている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment in which the present invention is applied to a printer with a scanner will be described below with reference to FIGS. 1 and 2 are cross-sectional views showing the internal configuration of a printer with a scanner 10 as a portable electronic device in the present embodiment. This printer with scanner 1
Reference numeral 0 includes both a printing mechanism for printing on the printing paper 9 as a recording medium and a document reading mechanism (scanner) for optically reading the document paper 15 as a document.

【0012】上記スキャナ付プリンタ10には、その内
部にプラテン1を配設し、このプラテン1に沿った主走
査方向に移動可能にキャリア2を設けている。このキャ
リア2にはその前部に原稿読取面を前方に向けて画像情
報を逐次読取るCCDユニット3を有するスキャナ部4
が設けられるとともに、その後部に例えばサーマルヘッ
ドで構成された印字ヘッド5の印字出力面を後方に向け
てプリンタ部6が設けられ、これらは一体で構成されて
いる。
The scanner-equipped printer 10 has a platen 1 disposed therein, and a carrier 2 movably in the main scanning direction along the platen 1. A scanner unit 4 having a CCD unit 3 in front of the carrier 2 for sequentially reading image information with the original reading surface facing forward.
The printer unit 6 is provided at the rear of the printer unit 6 with the print output surface of the print head 5 formed of, for example, a thermal head facing rearward, and these are integrally formed.

【0013】上記スキャナ部4のCCDユニット3に
は、原稿用紙15へ向けて光を照射する光源、原稿用紙
15からの反射光を集光レンズ等を介して読取るCCD
センサ等の図示しない部品が設けられている。また、上
記プリンタ部6には、印字ヘッド5とプラテン1との間
にインクリボンが介在した状態でインクリボンカセット
7がキャリア2に載置できるように構成されている。
The CCD unit 3 of the scanner unit 4 has a light source for irradiating light toward the original paper 15 and a CCD for reading reflected light from the original paper 15 via a condenser lens or the like.
Parts (not shown) such as a sensor are provided. Further, the printer section 6 is configured such that the ink ribbon cassette 7 can be mounted on the carrier 2 with the ink ribbon interposed between the print head 5 and the platen 1.

【0014】上記プリンタ部6側の筐体上部には、プラ
テン1へ印字用紙9を挿入する印字用紙挿入口11及び
印字用紙排紙口12が設けられている。印字用紙挿入口
11の近傍には、印字用紙挿入口11へ印字用紙9の挿
入をガイドする給紙ガイド8が設けられ、この給紙ガイ
ド8の下方には印字用紙9をプラテン1へ給紙する給紙
ローラ13が設けられている。
A printing paper insertion port 11 for inserting the printing paper 9 into the platen 1 and a printing paper discharge port 12 are provided in the upper part of the housing on the printer section 6 side. In the vicinity of the printing paper insertion slot 11, a paper feeding guide 8 for guiding the insertion of the printing paper 9 into the printing paper insertion slot 11 is provided. Below the paper feeding guide 8, the printing paper 9 is fed to the platen 1. The paper feed roller 13 is provided.

【0015】また、上記スキャナ部4側の筐体前部に
は、CCDユニット3の読取面へ原稿用紙15を挿入す
る原稿用紙挿入口16が設けられ、上記スキャナ部4側
の筐体上部には、原稿用紙15を排紙する原稿用紙排紙
口17が設けられている。原稿用紙挿入口16の近傍に
は原稿用紙15を給紙する給紙ローラ18が設けられ、
原稿用紙排紙口17の近傍には原稿用紙15を排紙する
排紙ローラ19が設けられている。
A document paper insertion slot 16 for inserting a document paper 15 into the reading surface of the CCD unit 3 is provided at a front portion of the housing on the scanner unit 4 side. Is provided with a document sheet discharge port 17 for discharging the document sheet 15. A paper feed roller 18 for feeding the original paper 15 is provided near the original paper insertion slot 16.
A discharge roller 19 for discharging the document sheet 15 is provided near the document sheet discharge port 17.

【0016】さらに、筐体内部には、上記プリンタ部6
やプラテン1、給紙ローラ13等からなる印字機構やス
キャナ部4や給紙ローラ18等からなる原稿読取機構へ
駆動電力を供給する蓄電可能なバッテリ21が配設され
ている。また、印字機構や原稿読取機構を制御する制御
部22が配設されている。
Further, the printer section 6 is provided inside the housing.
A printable mechanism 21 for supplying drive power to a printing mechanism including the paper feed mechanism, the platen 1, and the paper feed roller 13, and a document reading mechanism including the scanner unit 4 and the paper feed roller 18 are provided. Further, a control unit 22 for controlling a printing mechanism and a document reading mechanism is provided.

【0017】筐体前面には、図3に示すような操作パネ
ル23が設けられている。この操作パネル23は各種の
情報を表示する液晶パネル等で構成した表示器23a、
操作ボタン23bを備える。
An operation panel 23 as shown in FIG. 3 is provided on the front surface of the housing. The operation panel 23 includes a display 23a formed of a liquid crystal panel or the like for displaying various information,
An operation button 23b is provided.

【0018】上記制御部22は、図4に示すように、制
御部本体を構成するCPU25、このCPU25を制御
するプログラムデータを格納したROM(リード・オン
リ・メモリ)26、CPU25の各種データ処理のため
に使用されるメモリ領域を設けたRAM(ランダム・ア
クセス・メモリ)27、上記操作パネル23を接続した
I/Oポート28、双方向パラレル通信が可能なI/F
(インタフェース)29、各部を制御するコントローラ
31を備える。
As shown in FIG. 4, the control unit 22 includes a CPU 25 constituting a control unit main body, a ROM (Read Only Memory) 26 storing program data for controlling the CPU 25, and various data processing of the CPU 25. (Random access memory) 27 having a memory area used for the operation, an I / O port 28 to which the operation panel 23 is connected, an I / F capable of bidirectional parallel communication
(Interface) 29 and a controller 31 for controlling each part.

【0019】上記CPUと、ROM26、RAM27、
I/Oポート28、I/F29、コントローラ31と
は、それぞれデータバス、制御バス、アドレスバス等の
バスライン30で接続している。上記RAM27は、ホ
スト装置32から受信したコマンドデータや印字データ
を記憶するための受信バッファ、スキャナ部4で読取っ
たデータを記憶するための送信バッファ、受信バッファ
から取出した印字データをプリンタ部6で印字出力でき
るように展開するための印字用バッファ、双方向動作モ
ードによって印字、原稿読取り、コピー等の処理を行う
ことを要求するか否かを判定するための双方向要求フラ
グF、バッテリの残量電気量が少なくなったときに自動
的に片方向動作モードから双方向動作モードに切替可能
とする自動切替モードを実行するか否かを判定するため
の自動切替モードフラグF′、印字枚数カウンタXA に
ついての各記憶領域を備える。
The above CPU, ROM 26, RAM 27,
The I / O port 28, the I / F 29, and the controller 31 are connected by bus lines 30 such as a data bus, a control bus, and an address bus. The RAM 27 includes a reception buffer for storing command data and print data received from the host device 32, a transmission buffer for storing data read by the scanner unit 4, and print data extracted from the reception buffer by the printer unit 6. A print buffer for expanding the print output, a bidirectional request flag F for determining whether or not to request processing such as printing, reading a document, and copying in a bidirectional operation mode; An automatic switching mode flag F 'for determining whether or not to execute an automatic switching mode for automatically switching from a one-way operation mode to a two-way operation mode when the amount of electricity has decreased; Each storage area for XA is provided.

【0020】上記I/F29には、パ−ソナルコンピュ
−タ等のホスト装置32が通信ケーブル33を介して接
続している。このホスト装置32は、CPUやROM等
を備える本体32a、この本体に接続し、各種の情報を
表示するディスプレイ32bを備える。スキャナ付プリ
ンタ10はホスト装置32からのコマンドに応じて1ラ
インごとに印字処理、原稿読取処理、コピー処理等を行
う。なお、ホスト装置32の構成は周知技術のため、こ
こではホスト装置32内部の詳細な説明を省略する。
A host device 32 such as a personal computer is connected to the I / F 29 via a communication cable 33. The host device 32 includes a main body 32a including a CPU, a ROM, and the like, and a display 32b connected to the main body and displaying various information. The printer with scanner 10 performs a printing process, a document reading process, a copying process, and the like for each line in response to a command from the host device 32. Since the configuration of the host device 32 is a well-known technique, a detailed description of the inside of the host device 32 is omitted here.

【0021】上記コントローラ31には、CCDユニッ
ト3のCCDセンサ34や光源35、印字ヘッド5が接
続している。また、キャリア2を走行動作するキャリア
モータ36、プラテン1や給紙ローラ13,19等を駆
動する搬送モータ37、ペ−パエンドセンサ等の各種セ
ンサ38が接続している。また、コントローラ31には
上記バッテリ21も接続している。
The controller 31 is connected to the CCD sensor 34 and the light source 35 of the CCD unit 3 and the print head 5. Also connected are a carrier motor 36 for traveling on the carrier 2, a transport motor 37 for driving the platen 1, the paper feed rollers 13, 19 and the like, and various sensors 38 such as paper end sensors. The battery 21 is also connected to the controller 31.

【0022】上記CPU25は、電源が投入されると、
ホスト装置32からのコマンドに応じて図5に示すよう
なメインルーチンを行うようになっている。すなわち、
先ずCPU25は、ST(ステップ)1にて各部の初期
化を行う。例えば、CPU25、I/Oポートを初期化
したり、RAM27のデータを一時的に記憶するデータ
バッファをクリアしたり、キャリア2をホームポジショ
ンへ移動させたりする。
When the power is turned on, the CPU 25
A main routine as shown in FIG. 5 is performed in response to a command from the host device 32. That is,
First, the CPU 25 initializes each unit in ST (step) 1. For example, the CPU 25 and I / O ports are initialized, the data buffer for temporarily storing data in the RAM 27 is cleared, and the carrier 2 is moved to the home position.

【0023】次に、ST2にてホスト装置32からデー
タを受信したか否かを判断する。そして、ホスト装置3
2からデータを受信したと判断した場合は、ST3にて
このデータが印字に関するコマンドを含むか否かを判断
する。このとき、ホスト装置32からのデータが印字に
関するコマンドを含むと判断した場合は、ST4にて印
字処理のサブルーチンを行う。
Next, in ST2, it is determined whether or not data has been received from the host device 32. And the host device 3
If it is determined that the data has been received from ST2, it is determined in ST3 whether the data includes a command related to printing. At this time, if it is determined that the data from the host device 32 includes a command related to printing, a subroutine of a printing process is performed in ST4.

【0024】この印字処理のサブルーチンは、図6に示
すように、先ずST21にて双方向要求フラグFがセッ
トされているか否かを判断する。このとき、双方向要求
フラグFがセットされていると判断した場合は、ST2
2にてRAM27に記憶してあるバッテリの残量電気量
P0 (このP0 は一定時間ごとに図11に示すバッテリ
残量検出割込み処理のサブルーチンにより検出され更新
される。)と消費電力が少なくて済む双方向動作モード
にするための閾値として予め設定した所定の閾値P1 と
を比較し、ST23にてバッテリの残量電気量P0 が少
なくて閾値P1を越えないと判断した場合(P0 <P1
であると判断した場合)は、ST24にて自動切替モー
ドフラグF′がセットされているか否かを判断する。
In the print processing subroutine, as shown in FIG. 6, first, in ST21, it is determined whether or not the bidirectional request flag F is set. At this time, if it is determined that the bidirectional request flag F has been set, ST2
2 and the power consumption P0 stored in the RAM 27 in the RAM 27 (this P0 is detected and updated at regular intervals by a subroutine of a battery remaining amount detection interrupt process shown in FIG. 11) and the power consumption is small. Is compared with a predetermined threshold value P1 set in advance as a threshold value for setting the bidirectional operation mode to be completed, and when it is determined in ST23 that the remaining amount of electricity P0 of the battery is small and does not exceed the threshold value P1 (P0 <P1)
), It is determined whether or not the automatic switching mode flag F 'is set in ST24.

【0025】そして、自動切替モードフラグF′がセッ
トされていると判断した場合は、ST25にて双方向動
作モードにセットしてこの動作モードで印字処理を行う
(動作制御手段)。すなわち、給紙ローラ13、プラテ
ン1を駆動して印字用紙9を吸入し、ホスト装置32か
らの受信データのうちコマンドに続く印字データに基い
てキャリア2を駆動するとともに印字ヘッド5を制御
し、キャリア2を往方向及び復方向のいずれに走行させ
る場合にも印字出力を行う双方向動作によって印字して
いき、1ぺージ分の印字を行う。そして、印字が終了す
ると、図5に示すメインルーチンに戻り、ST2の処理
に戻る。
If it is determined that the automatic switching mode flag F 'has been set, a bidirectional operation mode is set in ST25, and printing processing is performed in this operation mode (operation control means). That is, the paper feed roller 13 and the platen 1 are driven to suck the print paper 9, the carrier 2 is driven based on the print data following the command among the data received from the host device 32, and the print head 5 is controlled. Regardless of whether the carrier 2 travels in the forward direction or the backward direction, printing is performed by a bidirectional operation for printing and printing for one page. When the printing is completed, the process returns to the main routine shown in FIG. 5 and returns to the process of ST2.

【0026】また、ST23にてバッテリの残量電気量
P0 が未だ多くて閾値P1 を越えると判断した場合(P
0 <P1 でないと判断した場合)及びST24にて自動
切替モードフラグF′がセットされていないと判断した
場合はともに、ST26にて印字前のバッテリ21のリ
ファレンス電圧をA/D(アナログ・デジタル)変換
し、これに基いて印字前の残量電気量A0 を求める(バ
ッテリ残量検出手段)。
When it is determined in ST23 that the remaining amount of electricity P0 in the battery is still large and exceeds the threshold value P1 (P23).
0 <P1) and when it is determined in ST24 that the automatic switching mode flag F 'has not been set, the reference voltage of the battery 21 before printing is set to A / D (analog / digital) in ST26. ) Conversion, and the remaining amount of electricity A0 before printing is obtained based on this (battery remaining amount detecting means).

【0027】続いて、ST27にて片方向動作モードに
セットしてこの動作モードによる印字処理を行う(動作
制御手段)。すなわち、給紙ローラ13、プラテン1を
駆動して印字用紙9を吸入し、ホスト装置32からの受
信データのうちコマンドに続く印字データに基いてキャ
リア2を駆動するとともに印字ヘッド5を制御し、キャ
リア2を往方向及び復方向のいずれか一方向に走行させ
る場合にのみ印字出力を行う片方向動作によって印字し
ていき、1ぺージ分の印字を行う。
Subsequently, a one-way operation mode is set in ST27, and a printing process in this operation mode is performed (operation control means). That is, the paper feed roller 13 and the platen 1 are driven to suck the print paper 9, the carrier 2 is driven based on the print data following the command among the data received from the host device 32, and the print head 5 is controlled. Printing is performed by a one-way operation of performing print output only when the carrier 2 is moved in one of the forward direction and the backward direction, and printing for one page is performed.

【0028】そして、ST28にて印字後のバッテリ2
1のリファレンス電圧をA/D変換し、これに基いて印
字後の残量電気量A1 を求める。続いて、ST29にて
印字前の残量電気量A0 から印字後の残量電気量A1 を
引算して今回の1ぺージ分の印字動作に要した消費電力
量A2 を算出する。
The battery 2 after printing in ST28
A / D conversion is performed on the reference voltage of No. 1 to determine the remaining amount of electricity A1 after printing based on the A / D conversion. Subsequently, in ST29, the remaining power amount A1 after printing is subtracted from the remaining power amount A0 before printing to calculate the power consumption A2 required for the current one-page printing operation.

【0029】次に、ST30にて印字枚数カウンタXA
をインクリメントし、ST31にて前回の印字までの累
積消費電力量A3 に今回の消費電力量A2 を加算して、
これを新たな累積消費電力量A3 として更新する。続い
て、ST32にて累積消費電力量A3 を印字枚数カウン
タXA で割算して、1ぺージ分の印字動作に必要な平均
消費電力PA を求め(必要電力量検出手段)、これを不
揮発性のRAM27に記憶する。そして、図5に示すメ
インルーチンに戻り、ST2の処理に戻る。
Next, at ST30, a print number counter XA
Is incremented, and the current power consumption A2 is added to the accumulated power consumption A3 up to the previous printing in ST31,
This is updated as a new accumulated power consumption A3. Subsequently, in ST32, the accumulated power consumption A3 is divided by the number-of-printed-sheets counter XA to obtain an average power consumption PA required for a one-page printing operation (required power consumption detection means). In the RAM 27. Then, the process returns to the main routine shown in FIG. 5 and returns to the process of ST2.

【0030】メインルーチンにおけるST3にてホスト
装置32から受信したデータが印字に関するコマンドを
含まないと判断した場合には、ST5にてホスト装置3
2から受信したデータが原稿読取に関するコマンドを含
むか否かを判断する。このとき、原稿読取に関するコマ
ンドを含むと判断した場合は、ST6にて原稿読取処理
のサブルーチンを行う。
If it is determined in ST3 in the main routine that the data received from the host device 32 does not include a command related to printing, the host device 3 is determined in ST5.
It is determined whether or not the data received from 2 includes a command related to document reading. At this time, if it is determined that a command related to document reading is included, a document reading process subroutine is performed in ST6.

【0031】この原稿読取処理のサブルーチンは、図7
に示すように、先ずST41にてRAM27に記憶して
あるバッテリの残量電気量P0 と消費電力が少なくて済
む双方向動作モードにするための閾値P1 とを比較し、
ST42にてバッテリの残量電気量P0 が少なくて閾値
P1 を越えないと判断した場合(P0 <P1 であると判
断した場合)は、ST43にて自動切替モードフラグ
F′がセットされているか否かを判断する。
The subroutine of this document reading process is shown in FIG.
First, in ST41, the remaining power amount P0 of the battery stored in the RAM 27 is compared with a threshold value P1 for setting a bidirectional operation mode requiring less power consumption,
If it is determined in ST42 that the remaining amount of electricity P0 in the battery is small and does not exceed the threshold value P1 (if it is determined that P0 <P1), it is determined whether or not the automatic switching mode flag F 'is set in ST43. Judge.

【0032】そして、自動切替モードフラグF′がセッ
トされていると判断した場合は、ST44にて双方向動
作モードにセットして、ST45にてこの動作モードで
原稿読取処理を行う。すなわち、給紙ローラ15を駆動
して原稿用紙を吸入し、キャリア2を駆動するとともに
CCDユニット3の光源をオンして、キャリア2を往方
向及び復方向のいずれに走行させる場合にも読取りを行
っていき、1ぺージ分の原稿の読取りを行う。そして、
原稿読取が終了すると、図5に示すメインルーチンに戻
り、ST2の処理に戻る。
If it is determined that the automatic switching mode flag F 'is set, the bidirectional operation mode is set in ST44, and the original reading process is performed in this operation mode in ST45. That is, when the paper feed roller 15 is driven to suck the original paper, the carrier 2 is driven, the light source of the CCD unit 3 is turned on, and reading is performed when the carrier 2 travels in either the forward direction or the backward direction. Then, one page of the original is read. And
Upon completion of the document reading, the process returns to the main routine shown in FIG. 5 and returns to the process of ST2.

【0033】また、ST42にてバッテリの残量電気量
P0 が未だ多くて閾値P1 を越えると判断した場合(P
0 <P1 でないと判断した場合)及びST43にて自動
切替モードフラグF′がセットされていないと判断した
場合はともに、ST46にて片方向動作モードにセット
して、ST45にてこの動作モードで原稿読取処理を行
う。すなわち、給紙ローラ15を駆動して原稿用紙を吸
入し、キャリア2を駆動するとともにCCDユニット3
の光源をオンして、キャリア2を往方向及び復方向のい
ずれか一方向に走行させる場合にのみ読取りを行ってい
き、1ぺージ分の原稿の読取りを行う。そして、原稿読
取が終了すると、図5に示すメインルーチンに戻り、S
T2の処理に戻る。
When it is determined in ST42 that the remaining amount of electricity P0 in the battery is still large and exceeds the threshold value P1 (P42).
0 <P1) and when it is determined in ST43 that the automatic switching mode flag F 'has not been set, the unidirectional operation mode is set in ST46, and this operation mode is set in ST45. A document reading process is performed. That is, the sheet feeding roller 15 is driven to suck the original sheet, the carrier 2 is driven, and the CCD unit 3 is driven.
The light source is turned on, and reading is performed only when the carrier 2 travels in one of the forward direction and the backward direction, and one page of the document is read. When the document reading is completed, the process returns to the main routine shown in FIG.
The process returns to T2.

【0034】メインルーチンにおけるST5にてホスト
装置32から受信したデータが原稿読取に関するコマン
ドを含まないと判断した場合には、ST7にてホスト装
置32から受信したデータがコピー処理に関するコマン
ドを含むか否かを判断する。このとき、コピー処理に関
するコマンドを含むと判断した場合は、ST8にてコピ
ー処理のサブルーチンを行う。
If it is determined in step ST5 in the main routine that the data received from the host device 32 does not include a command relating to document reading, then in step ST7, it is determined whether the data received from the host device 32 includes a command relating to copy processing. Judge. At this time, if it is determined that a command related to the copy process is included, a subroutine of the copy process is performed in ST8.

【0035】このコピー処理のサブルーチンは、図8に
示すように、先ずST51にてRAM27に記憶してあ
るバッテリの残量電気量P0 と消費電力量が少なくて済
む双方向動作モードにするための閾値P1 とを比較し、
ST52にてバッテリの残量電気量P0 が少なくて閾値
P1 を越えないと判断した場合(P0 <P1 であると判
断した場合)は、ST53にて自動切替モードフラグ
F′がセットされているか否かを判断する。
As shown in FIG. 8, the subroutine of this copy process is a process for switching to the bidirectional operation mode in which the remaining power amount P0 of the battery and the power consumption amount stored in the RAM 27 in ST51 are small. Compare with the threshold value P1,
If it is determined in ST52 that the remaining amount of electricity P0 in the battery is small and does not exceed the threshold value P1 (if it is determined that P0 <P1), it is determined whether or not the automatic switching mode flag F 'is set in ST53. Judge.

【0036】そして、自動切替モードフラグF′がセッ
トされていると判断した場合は、ST54にて双方向動
作モードにセットして、ST55にてこの動作モードで
原稿読取処理を行う(動作制御手段)。すなわち、給紙
ローラ15を駆動して原稿用紙を吸入するとともに給紙
ローラ13、プラテン1を駆動して印字用紙9を吸入
し、キャリア2を往方向に駆動するとともにCCDユニ
ット3の光源をオンして原稿を読取り、キャリア2を復
方向に駆動するときにその読取った原稿のデータを印字
用紙9に印字出力していき、1ぺージ分のコピー処理を
行う。そして、コピー処理が終了すると、図5に示すメ
インルーチンに戻り、ST2の処理に戻る。
If it is determined that the automatic switching mode flag F 'is set, the bidirectional operation mode is set in ST54, and the original reading process is performed in this operation mode in ST55 (operation control means). ). That is, the paper feed roller 15 is driven to suck the original paper, the paper feed roller 13 and the platen 1 are driven to suck the print paper 9, the carrier 2 is driven in the forward direction, and the light source of the CCD unit 3 is turned on. When the carrier 2 is driven in the backward direction, the data of the read original is printed out on the printing paper 9 to perform a copy process for one page. When the copy process is completed, the process returns to the main routine shown in FIG. 5, and returns to the process of ST2.

【0037】また、ST53にてバッテリの残量電気量
P0 が未だ多くて閾値P1 を越えると判断した場合(P
0 <P1 でないと判断した場合)及びST54にて自動
切替モードフラグF′がセットされていないと判断した
場合はともに、ST56にて片方向動作モードにセット
して、ST55にてこの動作モードでコピー処理を行う
(動作制御手段)。すなわち、給紙ローラ15を駆動し
て原稿用紙を吸入するとともに給紙ローラ13、プラテ
ン1を駆動して印字用紙9を吸入し、キャリア2を往方
向及び復方向のいずれか一方向に駆動するときに原稿の
読取りを行ってキャリアを戻し、次に当該一方向にキャ
リアを駆動するときにその読取った原稿のデータを印字
用紙9に印字出力していき、1ぺージ分のコピー処理を
行う。そして、コピー処理が終了すると、図5に示すメ
インルーチンに戻り、ST2の処理に戻る。
When it is determined in ST53 that the remaining amount of electricity P0 of the battery is still large and exceeds the threshold value P1 (P53).
0 <P1) and when it is determined in ST54 that the automatic switching mode flag F 'has not been set, the one-way operation mode is set in ST56, and this operation mode is set in ST55. A copy process is performed (operation control means). That is, the paper feed roller 15 is driven to suck the original paper, and the paper feed roller 13 and the platen 1 are driven to suck the print paper 9 to drive the carrier 2 in one of the forward direction and the backward direction. When the original is read and the carrier is returned, the data of the read original is printed out on the printing paper 9 when the carrier is driven in the one direction, and the copying process for one page is performed. . When the copy process is completed, the process returns to the main routine shown in FIG. 5, and returns to the process of ST2.

【0038】メインルーチンにおけるST7にてホスト
装置32から受信したデータがコピー処理に関するコマ
ンドを含まないと判断した場合には、ST7にてホスト
装置32から受信したデータが印字ぺージ数指定コマン
ドを含むか否かを判断する。このとき、印字ぺージ数指
定コマンドを含むと判断した場合は、ST10にて印字
ぺージ数指定コマンドに対するサブルーチンを行う。
If it is determined in ST7 in the main routine that the data received from the host device 32 does not include a command relating to copy processing, the data received from the host device 32 in ST7 includes a print page number designation command. It is determined whether or not. At this time, if it is determined that a print page number designation command is included, a subroutine for the print page number designation command is performed in ST10.

【0039】この印字ぺージ数指定コマンドに対するサ
ブルーチンは、図9に示すように、先ずST61にて指
定印字ぺージ数G0 を受信し、ST62にて図6に示す
印字処理のサブルーチンで求めた1ぺージ分の印字動作
に必要な平均消費電力PA に指定印字ぺージ数G0 をか
け算して、指定印字ぺージ数G0 を印字するのに必要な
電力量H0 を算出する(電力量算出手段)。
As shown in FIG. 9, the subroutine corresponding to the print page number designation command first receives the designated print page number G0 in ST61, and obtains the 1 in the print processing subroutine shown in FIG. 6 in ST62. The average power consumption PA required for the printing operation for the page is multiplied by the designated print page number G0 to calculate the amount of power H0 required to print the designated print page number G0 (power amount calculating means). .

【0040】続いて、ST63にて指定印字ぺージ数G
0 を印字するのに必要な電力量H0がバッテリの残量電
気量P0 を越えるか否かを判断する。このとき、電力量
H0がバッテリの残量電気量P0 を越えると判断した場
合(H0 >P0 であると判断した場合)、ST64にて
双方向印字要求フラグFをセットする。つまり、指定印
字ぺージ数G0 の印字処理を行うには、現在のバッテリ
の残量電気量P0 では足りない場合である。このような
場合には双方向印字要求フラグFをセットして双方向動
作モードによる印字処理を行わせて(動作制御手段)、
現在のバッテリの残量電気量P0 で指定印字ぺージ数G
0 の印字処理を可能とする。
Subsequently, in ST63, the designated print page number G
It is determined whether or not the amount of power H0 required to print 0 exceeds the remaining amount of electricity P0 of the battery. At this time, when it is determined that the electric energy H0 exceeds the remaining electric power P0 of the battery (when it is determined that H0> P0), the bidirectional printing request flag F is set in ST64. In other words, this is a case where the current remaining amount of electricity P0 of the battery is not enough to perform the printing process for the designated print page number G0. In such a case, the bidirectional printing request flag F is set and the printing process in the bidirectional operation mode is performed (operation control means).
The number of print pages G specified by the current remaining battery charge P0
Enables printing of 0.

【0041】また、ST63にて電力量H0 がバッテリ
の残量電気量P0 を越えないと判断した場合(H0 >P
0 でないと判断した場合)、ST64にて双方向印字要
求フラグFをクリアする。つまり、指定印字ぺージ数G
0 の印字処理を行うのに現在のバッテリの残量電気量P
0 で十分な場合である。このような場合には双方向印字
要求フラグFをリセットして通常通り片方向動作モード
による印字処理を行わせる(動作制御手段)。そして、
ST64又はST65の処理が終了すると、図5に示す
メインルーチンに戻り、ST2の処理に戻る。
When it is determined in ST63 that the electric energy H0 does not exceed the remaining electric power P0 of the battery (H0> P
If it is not 0, the bidirectional printing request flag F is cleared in ST64. That is, the designated print page number G
To perform the printing process of 0, the remaining amount of electricity P in the current battery
0 is sufficient. In such a case, the bidirectional printing request flag F is reset to perform the printing process in the one-way operation mode as usual (operation control means). And
When the process of ST64 or ST65 is completed, the process returns to the main routine shown in FIG. 5 and returns to the process of ST2.

【0042】メインルーチンにおけるST9にてホスト
装置32から受信したデータが印字ぺージ数指定コマン
ドを含まないと判断した場合には、ST11にてホスト
装置32から受信したデータが動作モード切替コマンド
を含むか否かを判断する。このとき、動作モード切替コ
マンドを含むと判断した場合は、ST12にて動作モー
ド切替処理のサブルーチンを行う。この動作モード切替
処理のサブルーチンは、図10に示すように、自動切替
モードフラグF′を反転し、図5に示すメインルーチン
に戻り、ST2の処理に戻る。
If it is determined in ST9 in the main routine that the data received from the host device 32 does not include the print page number designation command, the data received from the host device 32 includes the operation mode switching command in ST11. It is determined whether or not. At this time, if it is determined that an operation mode switching command is included, a subroutine of operation mode switching processing is performed in ST12. As shown in FIG. 10, the subroutine of the operation mode switching process inverts the automatic switching mode flag F ', returns to the main routine shown in FIG. 5, and returns to the process of ST2.

【0043】メインルーチンにおけるST11にてホス
ト装置32から受信したデータが動作モード切替コマン
ドを含まないと判断した場合には、ST13にてその他
のコマンドに対する処理を実行し、ST2の処理に戻
る。このように、スキャナ付プリンタ10は、ホスト装
置32からのコマンドに基いて処理を実行する。
If it is determined in ST11 in the main routine that the data received from the host device 32 does not include the operation mode switching command, the process for other commands is executed in ST13, and the process returns to ST2. As described above, the printer with scanner 10 executes the process based on the command from the host device 32.

【0044】一方、CPU25は、以上の処理実行して
ない場合はもちろん、処理実行中であっても、所定時間
経過ごとに割り込みが発生することにより、バッテリ残
量検出割込み処理のサブルーチンを実行する。このバッ
テリ残量検出割込み処理のサブルーチンは、図11に示
すように、バッテリ21のリファレンス電圧をA/D
(アナログ・デジタル)変換し、これに基いて印字前の
残量電気量A0 を求めて(バッテリ残量検出手段)、図
5に示すメインルーチンに戻り、ST2の処理に戻る。
On the other hand, the CPU 25 executes the subroutine of the battery remaining amount detection interrupt process by generating an interrupt every predetermined time even when the above process is not executed or during the process. . As shown in FIG. 11, the subroutine of the battery remaining amount detection interrupt process is to set the reference voltage of the battery 21 to A / D.
(Analog / Digital) conversion, the remaining amount of electricity A0 before printing is obtained based on this (battery remaining amount detecting means), and the process returns to the main routine shown in FIG.

【0045】このような構成の本発明の実施の形態にお
いては、ホスト装置32から印字に関するコマンドを含
むデータを受信すると、印字処理が実行される。この場
合、双方向要求フラグFがセットされておらず、自動切
替モードフラグF′もセットされていない場合、又は自
動切替モードフラグF′がセットされていても、バッテ
リの残量電気量P0 が未だ閾値P1 以上あるような通常
の場合には、消費電力が比較的多くかかるが、正確な印
字等の高い精度が得られ易い片方向動作モードにより印
字、原稿読取り、コピーの処理が行われる。
In the embodiment of the present invention having such a configuration, when data including a command relating to printing is received from the host device 32, printing processing is executed. In this case, if the bidirectional request flag F is not set and the automatic switching mode flag F 'is not set, or even if the automatic switching mode flag F' is set, the remaining power amount P0 of the battery is not changed. In the normal case where the threshold value is still equal to or greater than the threshold value P1, the power consumption is relatively large, but the printing, document reading, and copying processes are performed in the one-way operation mode in which high accuracy such as accurate printing is easily obtained.

【0046】これに対して、双方向要求フラグFがセッ
トされている場合、又は双方向要求フラグFがセットさ
れていなくても、自動切替モードフラグF′がセットさ
れており、バッテリ21の残量電気量P0 が閾値P1 よ
り少なくなった場合には、消費電力が少なくて済む双方
向動作モードによる印字、原稿読取り等の処理を行う。
これにより、より多くの印字や原稿読取り等の処理を行
うことができる。このことは、バッテリ21に充電を行
うことができない環境下で使用する場合に特に有効であ
る。
On the other hand, when the bidirectional request flag F is set, or even when the bidirectional request flag F is not set, the automatic switching mode flag F 'is set, When the quantity of electricity P0 becomes smaller than the threshold value P1, processing such as printing and reading of a document in the bidirectional operation mode requiring less power consumption is performed.
As a result, more processes such as printing and document reading can be performed. This is particularly effective when used in an environment where the battery 21 cannot be charged.

【0047】また、図6に示す印字ぺージ数指定コマン
ド処理においてホスト装置32からの指定印字ぺージ数
G0 を受信したときは、現在のバッテリ21の残量電気
量P0 で指定印字ぺージ数G0 を印字できるか否かを判
断し、印字できると判断した場合は双方向動作モードを
クリアして片方向動作モードで印字処理を行うことを可
能とし、印字できないと判断した場合は双方向動作モー
ドをセットして双方向動作モードで印字処理を行うこと
を可能とする。これにより、オペレータが印字させたい
ぺージ数と現在のバッテリ21の残量電気量P0 とに応
じて自動的に動作モードを変えることができる。このた
め、従来では現在のバッテリ21の残量電気量P0 が足
りなくて指定印字ぺージ数G0 を印字できなかった場合
でも、指定印字ぺージ数G0 のすべてを印字することも
できるようになる。しかも、この場合にオペレータは現
在のバッテリ21の残量電気量P0 から印字や原稿読取
の処理を行ってよいか否かの判断をする必要がなくな
り、使い勝手が向上する。
When the designated print page number G0 is received from the host device 32 in the print page number designation command processing shown in FIG. 6, the designated print page number is calculated based on the current remaining power amount P0 of the battery 21. Judges whether G0 can be printed or not. If it can be printed, clears the bidirectional operation mode and enables printing in one-way operation mode. The mode can be set to perform the printing process in the bidirectional operation mode. As a result, the operation mode can be automatically changed according to the number of pages to be printed by the operator and the current remaining power amount P0 of the battery 21. For this reason, even if the designated number of print pages G0 cannot be printed because the remaining amount of electricity P0 of the battery 21 is insufficient in the related art, the entire designated print page number G0 can be printed. . Moreover, in this case, the operator does not need to judge whether or not to perform the printing or the reading of the document based on the current remaining amount of electricity P0 of the battery 21, and the usability is improved.

【0048】さらに、現在のバッテリ21の残量電気量
P0 で指定印字ぺージ数G0 を印字できるか否かを判断
を、1ぺージ当たりの処理にかかった平均消費電力PA
に基づいて算出した指定印字ぺージ数G0 を印字するの
に必要な電力量H0 と現在のバッテリ21の残量電気量
P0 とを比較することにより行っており、しかも1ぺー
ジ当たりの処理にかかった平均消費電力PA は、通常の
片方向動作モードによる1ぺージの印字処理を行うごと
に算出し直して更新するため、そのオペレータによるス
キャナ付プリンタ10の使用状況(例えば時間がかかる
印字を行う場合が多いという各オペレータの使用状況)
に応じた的確な判断を行うことができる。
Further, it is determined whether or not the designated number of print pages G0 can be printed with the current remaining amount of electricity P0 of the battery 21 by determining the average power consumption PA per processing per page.
Is performed by comparing the amount of electric power H0 required for printing the designated number of pages G0 calculated based on the above with the current amount of remaining power P0 of the battery 21. The average power consumption PA is calculated and updated each time one page of printing processing is performed in the normal one-way operation mode. Therefore, the usage status of the scanner-equipped printer 10 by the operator (for example, time-consuming printing). The situation of use of each operator who often performs)
Accurate judgment can be made according to the situation.

【0049】なお、本実施の形態では、現在のバッテリ
21の残量電気量P0 で指定印字ぺージ数G0 を印字で
きるか否かを判断を、1ぺージ当たりの処理にかかった
平均消費電力PA に基づいて算出した指定印字ぺージ数
G0 を印字するのに必要な電力量H0 と現在のバッテリ
21の残量電気量P0 とを比較することにより行うとい
う処理を、印字処理における場合にのみ適用した場合に
ついて説明したが、必ずしもこれに限定されるものでは
なく、上記処理を原稿読取処理やコピー処理に適用して
もよい。
In the present embodiment, it is determined whether or not the designated number of print pages G0 can be printed with the remaining amount of electricity P0 of the battery 21 at present, and the average power consumption for processing per page is determined. The process of comparing the amount of power H0 required for printing the designated number of print pages G0 calculated based on PA with the current amount of remaining power P0 of the battery 21 is performed only in the printing process. Although the description has been given of the case where the present invention is applied, the present invention is not necessarily limited to this, and the above processing may be applied to the original reading processing and the copying processing.

【0050】これにより、従来では現在のバッテリ21
の残量電気量P0 が足りなくてホスト装置32から指定
された原稿読取ぺージ数、コピーぺージ数を処理できな
かった場合でも、そのぺージ数のすべてを処理すること
もできるようになる。
As a result, the conventional battery 21
Even if the number of original reading pages and the number of copy pages specified by the host device 32 cannot be processed because the remaining amount of electricity P0 is insufficient, the entire number of pages can be processed. .

【0051】さらに、1ぺージ当たりの原稿読取処理、
コピー処理にかかった平均消費電力を、通常の片方向動
作モードによる1ぺージの印字処理を行うごとに算出し
直して更新するようにすれば、そのオペレータによるス
キャナ付プリンタ10の使用状況(例えば文字数の多い
原稿読取を行う場合が多いという各オペレータの使用状
況)に応じた的確な判断を行うことができる。
Further, original reading processing per page,
If the average power consumption of the copy process is calculated and updated each time one page printing process is performed in the normal one-way operation mode, the usage status of the operator with the scanner-equipped printer 10 (for example, It is possible to make an accurate determination according to the usage situation of each operator that an original having many characters is often read.

【0052】また、本実施の形態を印字機構及び原稿読
取機構のいずれか一方、又は他の機能を備える携帯型電
子機器に適用することも可能であるが、印字処理及び原
稿読取処理をともに1ぺージ分の処理ごとにそれぞれ消
費電力量を算出して、必要な平均消費電力量をそれぞれ
更新していくようにすれば、印字処理と原稿読取処理と
では1ぺージ分の処理に必要とする消費電力がそれぞれ
異なることから、印字機構及び原稿読取機構の両方を備
える携帯型電子機器に本発明を適用すると特に有効であ
る。
Further, the present embodiment can be applied to a portable electronic device having one of a printing mechanism and a document reading mechanism, or other functions. If the power consumption is calculated for each page processing and the required average power consumption is updated, the printing processing and the document reading processing are required for the processing of one page. Since the power consumptions of the electronic devices differ from each other, it is particularly effective to apply the present invention to a portable electronic device having both a printing mechanism and a document reading mechanism.

【0053】また、本発明の実施の形態においてはバッ
テリ21の残量電気量A0 及びP0をリファレンス電圧
から算出しているため、バッテリ21の充電時にフル充
電していない場合でも、正確な処理可能枚数を算出する
ことができる。
Further, in the embodiment of the present invention, since the remaining electric quantities A0 and P0 of the battery 21 are calculated from the reference voltage, accurate processing can be performed even when the battery 21 is not fully charged at the time of charging. The number of sheets can be calculated.

【0054】また、本発明の実施の形態においては、図
6に示すようにバッテリの残量電気量P0 が所定の閾値
P1 より少なくなると、消費電力が少なくて済む処理と
して双方向動作モードによる印字処理を行うものについ
て述べたが、必ずしもこれに限定されるものではなく、
消費電力が少なくて済む処理として印字データを1ドッ
トおきに間引いて印字出力を行ってもよい。さらに、消
費電力が少なくて済む処理として、双方向動作モードに
切替えるとともに印字データを1ドットおきに間引いて
印字出力を行ってもよい。
In the embodiment of the present invention, when the remaining amount of electricity P0 of the battery is smaller than a predetermined threshold value P1 as shown in FIG. Although the processing is described, it is not necessarily limited to this,
As a process that requires less power consumption, print data may be output by thinning out print data every other dot. Further, as a process that requires less power consumption, the mode may be switched to the bidirectional operation mode, and the print data may be thinned out every other dot and printed.

【0055】さらに、本実施の形態における双方向動作
モードと片方向動作モードとの切替え条件の1つとして
P0 <P1 を使用したが(図6におけるST23、図7
におけるST42、図8におけるST52)、この条件
をP0 ≦P1 としても同様の効果を奏することができ
る。
Further, P0 <P1 is used as one of the switching conditions between the bidirectional operation mode and the one-way operation mode in the present embodiment (ST23 in FIG. 6, FIG. 7).
, And ST52 in FIG. 8), the same effect can be obtained even when this condition is set as P0 ≦ P1.

【0056】[0056]

【発明の効果】以上詳述したように本発明によれば、バ
ッテリ残量が少なくなってきた場合には自動的に必要と
する消費電力が少なくて済む動作に切替えることがで
き、より多くの印字や原稿読取り等の処理を行うことが
できる携帯型電子機器を提供できるものである。
As described in detail above, according to the present invention, when the remaining battery power becomes low, the operation can be automatically switched to the operation that requires less power consumption, and more It is possible to provide a portable electronic device capable of performing processes such as printing and document reading.

【0057】さらに、現在のバッテリの残量電気量でホ
スト装置からの指定ぺージ数を処理できるか否かを判断
を、1ぺージ当たりの処理にかかった平均消費電力に基
づいて算出した指定ぺージ数を印字するのに必要な電力
量と現在のバッテリの残量電気量とを比較することによ
り行っており、しかも1ぺージ当たりの処理にかかった
平均消費電力は、通常の片方向動作モードによる1ぺー
ジの処理を行うごとに算出し直して更新するため、その
オペレータによる携帯型電子機器の使用状況(例えば時
間がかかる処理を行う場合が多いという各オペレータの
使用状況)に応じた的確な判断を行うことができる。
Further, it is determined whether or not the number of designated pages from the host apparatus can be processed with the current amount of remaining power of the battery, based on the average power consumption required for processing per page. This is done by comparing the amount of power required to print the number of pages with the current amount of power remaining in the battery, and the average power consumption for processing per page is the normal one-way Since the calculation is recalculated and updated each time processing of one page is performed in the operation mode, the calculation is performed according to the usage status of the portable electronic device by the operator (for example, the usage status of each operator who often performs a time-consuming process). Make accurate decisions.

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

【図1】本発明の実施の形態にかかる携帯型電子機器の
構成の断面図。
FIG. 1 is an exemplary sectional view of the configuration of a portable electronic device according to an embodiment of the present invention;

【図2】図1に示す携帯型電子機器のA−A断面図。FIG. 2 is an AA cross-sectional view of the portable electronic device shown in FIG.

【図3】図1に示す携帯型電子機器における前面部の構
成を示す図。
FIG. 3 is an exemplary view showing a configuration of a front part of the portable electronic device shown in FIG. 1;

【図4】図1に示す携帯型電子機器を使用した情報通信
システムの構成を示すブロック図。
4 is a block diagram showing a configuration of an information communication system using the portable electronic device shown in FIG.

【図5】図4に示す携帯型電子機器のCPUが行う処理
のメインルーチンを示す流れ図。
FIG. 5 is a flowchart showing a main routine of a process performed by a CPU of the portable electronic device shown in FIG. 4;

【図6】図5に示す印字処理のサブルーチンを示す流れ
図。
FIG. 6 is a flowchart showing a subroutine of the printing process shown in FIG. 5;

【図7】図5に示す原稿読取処理のサブルーチンを示す
流れ図。
FIG. 7 is a flowchart showing a subroutine of a document reading process shown in FIG. 5;

【図8】図5に示すコピー処理のサブルーチンを示す流
れ図。
FIG. 8 is a flowchart showing a subroutine of a copy process shown in FIG. 5;

【図9】図5に示す印字ぺージ数指定コマンド処理のサ
ブルーチンを示す流れ図。
FIG. 9 is a flowchart showing a subroutine of a print page number designation command process shown in FIG. 5;

【図10】図5に示す動作モード切替処理のサブルーチ
ンを示す流れ図。
FIG. 10 is a flowchart showing a subroutine of an operation mode switching process shown in FIG. 5;

【図11】図4に示すホスト装置のCPUが行うバッテ
リ残量検出割込み処理のサブルーチンを示す流れ図。
FIG. 11 is a flowchart showing a subroutine of a battery remaining amount detection interrupt process performed by the CPU of the host device shown in FIG. 4;

【符号の説明】[Explanation of symbols]

10…スキャナ付プリンタ 21…バッテリ 22…制御部 32…ホスト装置 DESCRIPTION OF SYMBOLS 10 ... Printer with a scanner 21 ... Battery 22 ... Control part 32 ... Host device

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 FI G06F 1/28 G06F 3/12 K 3/12 1/00 333D // B41J 2/30 B41J 3/10 114A ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 6 Identification symbol FI G06F 1/28 G06F 3/12 K 3/12 1/00 333D // B41J 2/30 B41J 3/10 114A

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 バッテリを搭載し、外部接続したホスト
装置の指令に応じて前記バッテリの電力でキャリアを主
走査方向に移動させながら印字や原稿読取等の所定の処
理を行う携帯型電子機器において、前記バッテリの残量
電気量を一定時間ごとに検出するバッテリ残量検出手段
と、このバッテリ残量検出手段により検出したバッテリ
の残量電気量と所定量とを比較して、前記バッテリの残
量電気量が所定量を越える場合は、前記キャリアを片方
向に走行させながら印字や原稿読取等を行う片方向動作
を行い、前記バッテリの残量電気量が所定量を越えない
場合は、前記キャリアを双方向に走行させながら印字や
原稿読取等を行う双方向動作を行うことを特徴とする動
作制御手段とを備えたことを特徴とする携帯型電子機
器。
1. A portable electronic device which carries a predetermined process such as printing and reading a document while moving a carrier in the main scanning direction with the power of the battery in accordance with a command from a host device connected externally, in which a battery is mounted. A battery remaining amount detecting means for detecting the remaining amount of electricity of the battery at predetermined time intervals, and comparing the remaining amount of electricity of the battery detected by the battery remaining amount detecting means with a predetermined amount, When the amount of electricity exceeds a predetermined amount, the carrier performs a one-way operation of performing printing or reading a document while traveling in one direction, and when the remaining amount of electricity of the battery does not exceed a predetermined amount, A portable electronic device, comprising: an operation control means for performing a bidirectional operation for performing printing, reading a document, and the like while running a carrier in both directions.
【請求項2】 バッテリを搭載し、外部接続したホスト
装置の指令に応じて前記バッテリの電力でキャリアを主
走査方向に移動させながら印字を行う携帯型電子機器に
おいて、前記バッテリの残量電気量を一定時間ごとに検
出するバッテリ残量検出手段と、このバッテリ残量検出
手段により検出したバッテリの残量電気量と所定量とを
比較して、前記バッテリの残量電気量が所定量を越える
場合は、印字データに基づいて通常の印字出力を行い、
前記バッテリの残量電気量が所定量を越えない場合は、
印字データを1ドットおきに間引いて印字出力を行う印
字制御手段とを備えたことを特徴とする携帯型電子機
器。
2. A portable electronic device having a battery mounted thereon and performing printing while moving a carrier in a main scanning direction with electric power of the battery according to a command from an externally connected host device. Is detected at regular time intervals, and the remaining amount of electricity of the battery detected by the battery remaining amount detecting means is compared with a predetermined amount, and the remaining amount of electricity of the battery exceeds a predetermined amount. In this case, perform normal print output based on the print data,
If the remaining amount of electricity of the battery does not exceed a predetermined amount,
A portable electronic device comprising: print control means for performing print output by thinning out print data every other dot.
【請求項3】 バッテリを搭載し、外部接続したホスト
装置の指令に応じて前記バッテリの電力でキャリアを主
走査方向に移動させながら印字や原稿読取等の所定の処
理を行う携帯型電子機器において、前記バッテリの残量
電気量を検出するバッテリ残量検出手段と、所定の処理
を行うごとに1ぺージ当たりの処理に必要な電力量を検
出する必要電力量検出手段と、ホスト装置から所定の処
理を行う指定ぺージ数を受信すると、前記バッテリ残量
検出手段により検出したバッテリの残量電気量及び前記
必要電力量検出により検出した1ぺージ当たりの処理に
必要な電力量に基いて、ホスト装置からの指定ぺージ数
を処理するのに必要な電力量を算出する電力量算出手段
と、この電力量算出手段により算出した指定ぺージ数を
処理するのに必要な電力量と現在のバッテリの残量電気
量とを比較し、指定ぺージ数を処理するのに必要な電力
量が現在のバッテリの残量電気量を越えない場合は、前
記キャリアを片方向に走行させながら印字や原稿読取等
を行う片方向動作を行い、指定ぺージ数を処理するのに
必要な電力量が現在のバッテリの残量電気量を越える場
合は、前記キャリアを双方向に走行させながら印字や原
稿読取等を行う双方向動作を行う動作制御手段とを備え
たことを特徴とする携帯型電子機器。
3. A portable electronic device that carries a predetermined process such as printing or reading a document while moving a carrier in the main scanning direction with the power of the battery in accordance with a command from an externally connected host device. A battery remaining amount detecting means for detecting a remaining amount of electricity of the battery, a required power amount detecting means for detecting an amount of power required for processing per page each time a predetermined process is performed, When the number of designated pages for performing the processing is received, based on the remaining amount of electricity of the battery detected by the battery remaining amount detecting means and the amount of electric power required for processing per page detected by the necessary power amount detection. Power amount calculating means for calculating the amount of power required to process the specified number of pages from the host device, and the power amount calculating means for processing the specified number of pages calculated by the power amount calculating means. Compare the amount of power and the remaining amount of electricity in the current battery, and if the amount of electricity required to process the specified number of pages does not exceed the amount of remaining electricity in the current battery, move the carrier in one direction. If the amount of power required to process the specified number of pages exceeds the current amount of electricity remaining in the battery, the carrier travels in both directions, performing a one-way operation such as printing or reading a document while running. A portable electronic device comprising: an operation control unit that performs a bidirectional operation of performing printing, reading a document, and the like while performing the operation.
JP9144832A 1997-06-03 1997-06-03 Portable electronic equipment Pending JPH10336400A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9144832A JPH10336400A (en) 1997-06-03 1997-06-03 Portable electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9144832A JPH10336400A (en) 1997-06-03 1997-06-03 Portable electronic equipment

Publications (1)

Publication Number Publication Date
JPH10336400A true JPH10336400A (en) 1998-12-18

Family

ID=15371485

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9144832A Pending JPH10336400A (en) 1997-06-03 1997-06-03 Portable electronic equipment

Country Status (1)

Country Link
JP (1) JPH10336400A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7052105B2 (en) 2003-01-31 2006-05-30 Canon Kabushiki Kaisha Battery residual capacity detection method and printing apparatus using the method
JP2010156753A (en) * 2008-12-26 2010-07-15 Brother Ind Ltd Image output apparatus
US7780257B2 (en) 2003-06-06 2010-08-24 Canon Kabushiki Kaisha Recording apparatus and electronic apparatus
JP2014030945A (en) * 2012-08-02 2014-02-20 Toshiba Tec Corp Printing device, information processing device, and program
JP2015217617A (en) * 2014-05-19 2015-12-07 株式会社リコー Image formation apparatus and image formation method
CN107867090A (en) * 2016-09-27 2018-04-03 卡西欧计算机株式会社 The control method and recording medium of printing equipment, printing equipment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7052105B2 (en) 2003-01-31 2006-05-30 Canon Kabushiki Kaisha Battery residual capacity detection method and printing apparatus using the method
US7780257B2 (en) 2003-06-06 2010-08-24 Canon Kabushiki Kaisha Recording apparatus and electronic apparatus
JP2010156753A (en) * 2008-12-26 2010-07-15 Brother Ind Ltd Image output apparatus
US8369721B2 (en) 2008-12-26 2013-02-05 Brother Kogyo Kabushiki Kaisha Image output apparatus having power saving modes
JP2014030945A (en) * 2012-08-02 2014-02-20 Toshiba Tec Corp Printing device, information processing device, and program
JP2015217617A (en) * 2014-05-19 2015-12-07 株式会社リコー Image formation apparatus and image formation method
CN107867090A (en) * 2016-09-27 2018-04-03 卡西欧计算机株式会社 The control method and recording medium of printing equipment, printing equipment

Similar Documents

Publication Publication Date Title
US6233057B1 (en) Information recording apparatus
US6606466B2 (en) Print control apparatus indicating appropriate paper cassette for printing and method of same
US4786920A (en) Recording apparatus
US6918645B2 (en) Battery-operable printer
GB2368698A (en) Predicting supplies required for completion of unattended print jobs
CN102416782A (en) Image forming apparatus and
JPH10336400A (en) Portable electronic equipment
JPH10207585A (en) Information communication system utilizing portable electronic equipment and the portable electronic equipment
US6738157B1 (en) Image recording apparatus
JP2009125996A (en) Printer and method for controlling the same
EP0693717B1 (en) Paper feed control system in a printing unit
US7865093B2 (en) Printing device, printing method and printing system
JP2004322599A (en) Recorder
JP2002264436A (en) Perfecting printer
JP2001285598A (en) Image forming device
JP4251624B2 (en) Recording apparatus and recording medium detection method
JPH08230286A (en) Printer
JP3523976B2 (en) Image forming device
JPH11272350A (en) Charge management device, its method and printer
JP3335062B2 (en) Print control device and print control method
JPH1195956A (en) Device and method for controlling printing and storage medium storing computer-readable program
JP3140875B2 (en) Recording device
JPH07137360A (en) Image forming device
JP2001315414A (en) Printer and method for processing print data, and print processing system
EP0508693B1 (en) Image forming apparatus