JP2016221714A - Power supply device, printer and control method - Google Patents

Power supply device, printer and control method Download PDF

Info

Publication number
JP2016221714A
JP2016221714A JP2015107868A JP2015107868A JP2016221714A JP 2016221714 A JP2016221714 A JP 2016221714A JP 2015107868 A JP2015107868 A JP 2015107868A JP 2015107868 A JP2015107868 A JP 2015107868A JP 2016221714 A JP2016221714 A JP 2016221714A
Authority
JP
Japan
Prior art keywords
power supply
current value
charging
capacitor
voltage
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.)
Granted
Application number
JP2015107868A
Other languages
Japanese (ja)
Other versions
JP6501616B2 (en
Inventor
孝 酒井
Takashi Sakai
孝 酒井
石川 真也
Shinya Ishikawa
真也 石川
大鹿 亨
Toru Oshika
亨 大鹿
寿夫 沖田
Toshio Okita
寿夫 沖田
靖史 小笠原
Yasushi Ogasawara
靖史 小笠原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2015107868A priority Critical patent/JP6501616B2/en
Publication of JP2016221714A publication Critical patent/JP2016221714A/en
Application granted granted Critical
Publication of JP6501616B2 publication Critical patent/JP6501616B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Ink Jet (AREA)
  • Particle Formation And Scattering Control In Inkjet Printers (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a power supply circuit and a control method which can accurately specify an abnormality when the abnormality occurs in the power supply circuit and a load while reducing the charging time of an electrolytic capacitor.SOLUTION: After completion of changing of an electrolytic capacitor 105, a current value of a charging circuit 106 is switched to a first current value smaller than a current value before completion of charging of the electrolytic capacitor 105. Whether a voltage value detected by a voltage detection circuit 121 is equal to or greater than a prescribed threshold, when the voltage value detected after completion of charging of the electrolytic capacitor 105 is less than the prescribed threshold, the current value supplied by the charging circuit 106 is switched to a current value higher than the first current value. The number of times of rising the current value supplied by the charging circuit 106 after completion of charging of the electrolytic capacitor 105 and before operation termination of a recording head 3 is specified, and error processing is executed on the basis of the specified number of times.SELECTED DRAWING: Figure 2

Description

本発明は、電力供給装置、プリンタ及び制御方法に関し、特に、負荷への電力供給を制御する手段を備える電力供給装置、プリンタ及び制御方法に関する。   The present invention relates to a power supply device, a printer, and a control method, and more particularly, to a power supply device, a printer, and a control method including a unit that controls power supply to a load.

近年のインクジェット記録装置(以下、記録装置ともいう)は、印刷速度の向上や印刷解像度の向上のために、インクを吐出するノズルの数が増大してきている。例えば、サーマル方式の記録装置の場合には、インク吐出口付近にヒータを設け、このヒータに電力を供給する事によりインクを瞬時に発泡させ、発泡の運動エネルギによってインクを吐出させる。   In recent inkjet recording apparatuses (hereinafter also referred to as recording apparatuses), the number of nozzles for ejecting ink has been increasing in order to improve printing speed and print resolution. For example, in the case of a thermal recording apparatus, a heater is provided in the vicinity of the ink discharge port, and by supplying power to the heater, the ink is instantly foamed and the ink is ejected by the kinetic energy of the foaming.

このような記録装置において、画像形成時に消費される電力は、画像の濃淡によって変化する。濃度の高い画像を形成する際には、多量のインクを紙面上に吐出するために多数のノズル駆動用ヒータが瞬間的にオンされ、ノズルを備えるヘッドに短い時間で大きな電流を流す。   In such a recording apparatus, the power consumed at the time of image formation varies depending on the density of the image. When an image having a high density is formed, a large number of nozzle driving heaters are instantaneously turned on in order to eject a large amount of ink onto the paper surface, and a large current is passed through a head including the nozzles in a short time.

瞬間的な大電流を流す際には、電源のインピーダンスを下げる必要があり、等価直列抵抗値が小さく且つ容量が大きい電解コンデンサを、記録ヘッド近くの電源ラインに接続するプリンタが知られている(特許文献1参照)。特許文献1では、電解コンデンサに対して電荷を充電あるいは放電する際に突入電流が発生するのを防ぐために電流に制限をかけたプッシュプル回路を設けている。   When an instantaneous large current is passed, it is necessary to lower the impedance of the power supply, and a printer is known in which an electrolytic capacitor having a small equivalent series resistance value and a large capacity is connected to a power supply line near the recording head ( Patent Document 1). In Patent Document 1, a push-pull circuit is provided in which a current is limited in order to prevent an inrush current from being generated when charging or discharging an electric charge with respect to an electrolytic capacitor.

特開2009−286096号公報JP 2009-286096 A

ところで、電源回路に容量の大きな電解コンデンサを接続した場合、この電解コンデンサの充電時間が長くなる。そこで、電解コンデンサの充電時間を短縮させるために電源回路に流す電流値を大きくすると、電源回路やヘッドを備えるデバイスに短絡等により異常が発生した際に検出しにくくなってしまう。   By the way, when an electrolytic capacitor having a large capacity is connected to the power supply circuit, the charging time of the electrolytic capacitor becomes long. Therefore, if the value of the current passed through the power supply circuit is increased in order to shorten the charging time of the electrolytic capacitor, it becomes difficult to detect when an abnormality occurs due to a short circuit or the like in the device including the power supply circuit or the head.

本発明は、上述した事情に鑑み、電解コンデンサの充電時間を短くしつつ、電力供給回路や負荷に異常が発生した際に異常をより精度よく特定することができる電力供給装置、プリンタ及び制御方法を提供することを課題とする。   In view of the circumstances described above, the present invention provides a power supply device, a printer, and a control method capable of specifying an abnormality more accurately when an abnormality occurs in a power supply circuit or a load while shortening the charging time of an electrolytic capacitor. It is an issue to provide.

上記の目的を達成するために本発明の電力供給装置は、電力負荷に電力供給ラインを介して電力を供給する電源部と、前記電源部と前記電力負荷とを接続する前記電力供給ラインに接続されたコンデンサと、前記電源部から供給される電力の電流値を制限して前記コンデンサを充電する充電回路と、前記コンデンサの電圧値を検出する検出手段と、前記検出手段により検出された電圧値が所定の閾値以上か判定する判定手段と、前記コンデンサの充電の完了後に前記充電回路の電流値を前記コンデンサの充電が完了する前の電流値よりも小さな第1電流値に切り替え、前記コンデンサの充電の完了後に前記検出手段により検出された電圧値が所定の電圧値未満であった場合、前記充電回路が供給する電流値を前記第1電流値よりも高い電流値に切り替えるように制御する制御手段と、前記コンデンサの充電が完了した後で且つ電力負荷の動作が終了する前における前記充電回路が供給する電流値を上昇させた回数を特定する特定手段と、前記特定手段により特定された回数に基づいて、エラー処理を実行する実行手段と、を有する。   In order to achieve the above object, a power supply apparatus of the present invention is connected to a power supply unit that supplies power to a power load via a power supply line, and to the power supply line that connects the power supply unit and the power load. A capacitor, a charging circuit that limits the current value of power supplied from the power supply unit and charges the capacitor, a detection unit that detects a voltage value of the capacitor, and a voltage value detected by the detection unit Determining means for determining whether or not the capacitor is equal to or greater than a predetermined threshold; and switching the current value of the charging circuit after completion of charging of the capacitor to a first current value smaller than the current value before completion of charging of the capacitor; If the voltage value detected by the detection means after completion of charging is less than a predetermined voltage value, the current value supplied by the charging circuit is higher than the first current value. Control means for controlling switching, specifying means for specifying the number of times the current value supplied by the charging circuit is increased after the charging of the capacitor is completed and before the operation of the power load is completed, and the specifying Execution means for executing error processing based on the number of times specified by the means.

本発明によれば、電解コンデンサの充電時間を短くしつつ、電力供給回路や負荷に異常が発生した際に異常をより精度よく特定することができる。   According to the present invention, it is possible to more accurately identify an abnormality when an abnormality occurs in the power supply circuit or the load while shortening the charging time of the electrolytic capacitor.

実施形態1に係るプリンタの制御回路構成を示すブロック図である。FIG. 2 is a block diagram illustrating a control circuit configuration of the printer according to the first embodiment. 実施形態1に係る記録ヘッドへの電力供給動作を示すフローチャートである。3 is a flowchart illustrating an operation of supplying power to the recording head according to the first embodiment. 電解コンデンサへの充電および放電を示すタイミングチャートである。It is a timing chart which shows charge and discharge to an electrolytic capacitor. 参考例に係るリーク電流に異常が発生した際の電解コンデンサ電圧、ヘッド充電電流、リーク電流を示すタイミングチャートである。It is a timing chart which shows the electrolytic capacitor voltage, head charging current, and leakage current when abnormality occurs in the leakage current according to the reference example. 実施形態1に係るリーク電流に異常が発生した際の電解コンデンサ電圧、ヘッド充電電流、リーク電流を示すタイミングチャートである。3 is a timing chart showing an electrolytic capacitor voltage, a head charging current, and a leakage current when an abnormality occurs in the leakage current according to the first embodiment. 瞬断が発生した場合の電圧及び電流値を示すタイミングチャートである。It is a timing chart which shows the voltage and electric current value when a momentary interruption occurs. リーク異常が発生した場合の電圧及び電流値を示すタイミングチャートである。It is a timing chart which shows a voltage and electric current value when a leak abnormality occurs. 比較的小さいリーク異常が発生した場合の電圧及び電流値を示すタイミングチャートである。It is a timing chart which shows a voltage and electric current value when a comparatively small leak abnormality occurs. 実施形態1に係る制御のフローを示したステート遷移図である。FIG. 3 is a state transition diagram illustrating a control flow according to the first embodiment.

以下、本発明の実施形態について図面を参照して説明する。   Embodiments of the present invention will be described below with reference to the drawings.

(実施形態1)
図1は、実施形態1に係る電力供給装置の一例であるプリンタの制御回路の主要構成を示すブロック図である。なお、図1では、印刷機能を有するプリンタを例に挙げて説明するが、プリンタは、これに限定されるものではなく、例えば、印刷機能及び読取機能を有する複合プリンタであってもよい。また、電力供給装置は、プリンタに限定されるものではなく、印刷機能を有していなくてもよく、負荷に対して電力を供給する装置であればよい。
(Embodiment 1)
FIG. 1 is a block diagram illustrating a main configuration of a printer control circuit which is an example of a power supply apparatus according to the first embodiment. In FIG. 1, a printer having a printing function will be described as an example. However, the printer is not limited to this, and may be, for example, a composite printer having a printing function and a reading function. The power supply device is not limited to a printer, and may not have a printing function as long as it is a device that supplies power to a load.

図1に示すプリンタは、電源回路101と、ヘッド電源制御ブロック102と、プリンタ制御用CPU123と、RAM125と、ROM124と、充電回路106と、放電回路107と、プリントヘッド3と、電解コンデンサ105と、を有する。また、電解効果トランジスタ(FET)103及びトランジスタ104を有する。なお、本実施形態において、「電源の供給電力」とは、電源回路101からプリントヘッド3に供給される電力を指す。   1 includes a power supply circuit 101, a head power supply control block 102, a printer control CPU 123, a RAM 125, a ROM 124, a charging circuit 106, a discharging circuit 107, the print head 3, an electrolytic capacitor 105, and the like. Have. In addition, a field effect transistor (FET) 103 and a transistor 104 are included. In the present embodiment, “power supply power” refers to power supplied from the power supply circuit 101 to the print head 3.

電源回路101は、いわゆる電源部であり、図示しないAC電源からヘッドを駆動するDC電圧を生成するAC/DCコンバータである。図1では、ヘッド電源を駆動するためのDC電圧の出力をVMと表記している。   The power supply circuit 101 is a so-called power supply unit, and is an AC / DC converter that generates a DC voltage for driving the head from an AC power supply (not shown). In FIG. 1, the output of the DC voltage for driving the head power supply is denoted by VM.

プリンタ制御用CPU123は記録装置全体を制御する中央演算処理部であり、プログラムの実行やハードウェアの起動によりプリンタ全体の動作を制御する。   The printer control CPU 123 is a central processing unit that controls the entire recording apparatus, and controls the operation of the entire printer by executing a program or starting up hardware.

ROM124は、プリンタ全体を制御するプログラムや設定パラメータを格納する。RAM125は、外部から受信した印刷ジョブを印刷用データへ変換したり、プログラムを展開したりするためのワークエリアとして用いられたり、パラメータや画像データを一時保存したりする。   The ROM 124 stores programs and setting parameters for controlling the entire printer. The RAM 125 is used as a work area for converting a print job received from the outside into print data, developing a program, and temporarily storing parameters and image data.

ヘッド電源制御ブロック102は、ヘッド電源制御シーケンサ122と、ヘッドの電源電圧を検出する回路121と、カウンタ131を有し、ヘッドに供給する電力を制御する。   The head power supply control block 102 includes a head power supply control sequencer 122, a circuit 121 for detecting the power supply voltage of the head, and a counter 131, and controls the power supplied to the head.

電圧検出回路121は、プリントヘッドに電力を供給する電力供給ラインの電圧値(ヘッド電源電圧値)を検出する。なお、以下、ヘッド電源電圧は、「電解コンデンサ電圧」ともいう。これは、電解コンデンサ105の電圧は、ヘッド電源電圧と同じとなるためである。電圧検出回路121は、AD変換器であってもよいし、複数のコンパレータを並べて複数のしきい値を持たせた回路でもよい。ヘッド電源電圧は、抵抗111と112で分圧され、入力端子PI1から電圧検出回路121に入力される。ヘッド電源制御シーケンサ122は、PO1から信号を出力することにより、トランジスタ104のオン・オフを制御する。また、充電回路106及び放電回路107の電流値を制御する。また、ヘッド電源制御シーケンサ122は、PO2から信号を出力することにより、充電回路106が供給する電流値を制御し、PO3から信号を出力することにより、充電回路107が放電する電流値を制御する。カウンタ131は、電解コンデンサ105の充電が完了し且つ電解コンデンサ105が放電を開始する前に、充電回路106が供給する電流値が切り替わった回数を数えるカウンタである。   The voltage detection circuit 121 detects a voltage value (head power supply voltage value) of a power supply line that supplies power to the print head. Hereinafter, the head power supply voltage is also referred to as “electrolytic capacitor voltage”. This is because the voltage of the electrolytic capacitor 105 is the same as the head power supply voltage. The voltage detection circuit 121 may be an AD converter or a circuit in which a plurality of comparators are arranged to have a plurality of threshold values. The head power supply voltage is divided by the resistors 111 and 112 and input to the voltage detection circuit 121 from the input terminal PI1. The head power supply control sequencer 122 controls on / off of the transistor 104 by outputting a signal from PO1. Further, the current values of the charging circuit 106 and the discharging circuit 107 are controlled. The head power supply control sequencer 122 controls the current value supplied by the charging circuit 106 by outputting a signal from PO2, and controls the current value discharged by the charging circuit 107 by outputting a signal from PO3. . The counter 131 is a counter that counts the number of times the current value supplied by the charging circuit 106 is switched before the electrolytic capacitor 105 is completely charged and before the electrolytic capacitor 105 starts discharging.

CPU123とヘッド電源制御ブロック102は、同一の集積回路としてLSIに実装されても良いし、別のLSIとして実装されていてもよい。   The CPU 123 and the head power supply control block 102 may be mounted on the LSI as the same integrated circuit, or may be mounted as separate LSIs.

プリントヘッド3は、電力負荷であり、プリント動作を行う部分である。なお、本実施形態では、プリントヘッド3は、各色のインクタンクを有し、被記録媒体(例えば、紙)にインク液滴を吐出して記録を行う。なお、プリントヘッド3は、ヘッドキャリッジを支えるシャフトに沿って搬送方向と直交する方向に移動しながらインクを吐出するものであってもよいし、搬送方向に沿って各色のノズル列を有するラインヘッドを有するものであってもよい。また、本実施形態に係るプリンタは、サーマル方式でプリントをするものであり、インク吐出口の付近に複数のヒータが設けられている。そして、インクを吐出する際には、ヒータに電力を供給する事によりインクを瞬時に発泡させ、発泡の運動エネルギによってインクを吐出させる。   The print head 3 is a part that performs a printing operation as a power load. In the present embodiment, the print head 3 has ink tanks for each color, and performs recording by ejecting ink droplets onto a recording medium (for example, paper). The print head 3 may eject ink while moving in a direction orthogonal to the transport direction along the shaft that supports the head carriage, or a line head having nozzle rows of each color along the transport direction. It may have. The printer according to the present embodiment performs printing by a thermal method, and a plurality of heaters are provided in the vicinity of the ink discharge ports. When ink is ejected, the ink is instantly foamed by supplying power to the heater, and the ink is ejected by the kinetic energy of the foaming.

電解コンデンサ105は、プリントヘッド3に電源を供給する電解コンデンサであり、インクの吐出状況によって変化する負荷変動を吸収する役割も兼ねている。この電解コンデンサ105は、電力供給ライン(電力供給線)に対して記録ヘッド3と並列に接続されている。本実施形態では、電解コンデンサ105は、等価直列抵抗値が小さく且つ容量が大きいコンデンサである。容量が大きい電解コンデンサ105とすることにより、濃度の高い画像を形成する際に、電解コンデンサ105に蓄積された大きな電荷が瞬時的な電力として供給される。これにより、瞬間的に大きな電流が流れる状況においてもヒータ駆動電圧の降下を防ぎ、安定したインク吐出を実現することができる。   The electrolytic capacitor 105 is an electrolytic capacitor that supplies power to the print head 3, and also serves to absorb load fluctuations that change depending on the ink discharge status. The electrolytic capacitor 105 is connected in parallel with the recording head 3 with respect to a power supply line (power supply line). In the present embodiment, the electrolytic capacitor 105 is a capacitor having a small equivalent series resistance value and a large capacity. By using the electrolytic capacitor 105 having a large capacity, a large charge accumulated in the electrolytic capacitor 105 is supplied as instantaneous power when an image having a high density is formed. As a result, even in a situation where a large current flows instantaneously, a drop in the heater driving voltage can be prevented and stable ink ejection can be realized.

FET103は、プリントヘッド3が印刷動作を行うために大きな電力を必要とする時にオンされる。本実施形態では、PMOSでトランジスタ104をオン・オフすることにより、ゲートが開閉する構成とする。トランジスタ104は、ヘッド電源制御ブロック102の出力端子PO1に接続され、ヘッド電源制御シーケンサ122が出力する信号のHigh/Lowによってオン・オフされる。なお、本実施形態では、充電回路106により電解コンデンサ105を充電する際には、FET103はオフした状態とする。   The FET 103 is turned on when the print head 3 requires a large amount of power to perform a printing operation. In this embodiment, the gate is opened and closed by turning on and off the transistor 104 with a PMOS. The transistor 104 is connected to the output terminal PO1 of the head power supply control block 102, and is turned on / off by a signal High / Low output from the head power supply control sequencer 122. In this embodiment, when the electrolytic capacitor 105 is charged by the charging circuit 106, the FET 103 is turned off.

充電回路106は、電解コンデンサ105を充電するための回路であり、放電回路107は、電解コンデンサ105を放電するための回路である。   The charging circuit 106 is a circuit for charging the electrolytic capacitor 105, and the discharging circuit 107 is a circuit for discharging the electrolytic capacitor 105.

充電回路106は、電源回路101から供給される電力の電流値を制限して電解コンデンサ105を充電する。充電回路106は、カレントミラー構成の定電流回路となっており、FET及び定電流源108を有し、定電流源108により基準電流を生成する。定電流源108は、ヘッド電源制御ブロック102の出力端子PO2によって制御され、電流値の複数段階の切り替えが可能である。本実施形態では、充電回路106が供給する電流を切り替えることにより、充電時間を短縮することができる。より具体的には、電解コンデンサ105を充電する際には、充電回路106が供給する電流は高い電流値とし、電解コンデンサ105の充電願完了した後は、充電回路106が供給する電流は低い電流値とする。なお、定電流源108の電流値の切り替えの詳細については後述する。   The charging circuit 106 limits the current value of the power supplied from the power supply circuit 101 and charges the electrolytic capacitor 105. The charging circuit 106 is a constant current circuit having a current mirror configuration, includes an FET and a constant current source 108, and generates a reference current by the constant current source 108. The constant current source 108 is controlled by the output terminal PO2 of the head power supply control block 102, and the current value can be switched in a plurality of stages. In the present embodiment, the charging time can be shortened by switching the current supplied by the charging circuit 106. More specifically, when the electrolytic capacitor 105 is charged, the current supplied by the charging circuit 106 is set to a high current value, and after the request for charging the electrolytic capacitor 105 is completed, the current supplied by the charging circuit 106 is low. Value. The details of switching the current value of the constant current source 108 will be described later.

放電回路107も、充電回路106と同様に、カレントミラー構成の定電流回路であり、FET及び定電流源109を有し、定電流源109が基準電流を生成する。また、定電流源109は、ヘッド電源制御ブロック102の出力端子PO3に接続され、定電流源108と同様に、電流値の複数段階の切り替えが可能である。   Similarly to the charging circuit 106, the discharge circuit 107 is a constant current circuit having a current mirror configuration, includes an FET and a constant current source 109, and the constant current source 109 generates a reference current. In addition, the constant current source 109 is connected to the output terminal PO3 of the head power supply control block 102, and the current value can be switched in a plurality of stages in the same manner as the constant current source 108.

図1〜図3を用いて、本実施形態に係るヘッド電源の制御シーケンスを説明する。図2のフローチャートは、プリントヘッドへの電力供給動作を示すフローチャートである。また、図3は、電解コンデンサへの充電及び放電を示すタイミングチャートであり、図2のフローの一部をタイミングチャートに示したものである。   A head power supply control sequence according to the present embodiment will be described with reference to FIGS. The flowchart in FIG. 2 is a flowchart showing an operation of supplying power to the print head. FIG. 3 is a timing chart showing charging and discharging of the electrolytic capacitor, and a part of the flow of FIG. 2 is shown in the timing chart.

図2に示すフローチャートは、例えば、CPU123がROM124に格納されたプログラムをRAM125に読み出して実行することにより実現される。具体的には、プリンタが印刷指令を受けて、ヘッド3に電源が投入されていない状態から、ヘッドに電源を投入して、印刷動作を行う流れを示している。   The flowchart shown in FIG. 2 is realized, for example, when the CPU 123 reads a program stored in the ROM 124 into the RAM 125 and executes it. Specifically, a flow is shown in which the printer receives a print command and the head 3 is turned on from the state where the head 3 is not turned on to perform the printing operation.

プリンタが印刷指令を受けると、電源電圧の制御を開始し(S201)、電解コンデンサ105に充電を行う(S202〜S207)。ここで、図2及び図3に示すIchg1、Ichg2、Ichg3は、それぞれ充電回路106が出力する充電電流であり、電解コンデンサの電圧状態に応じて切り替えられる。具体的には、電圧検出回路121がモニタしている電解コンデンサの電圧が予め設定した各電圧しきい値(Vth1、Vth2)を超えると、充電電流値を所定値(Ichg2、Ichg3)まで上げる。このように、本実施形態では、充電電流値を切り替えることにより、充電回路106のFETの熱的制限を満足しつつ、可能な限り素早く充電を完了させることができる。本実施形態では、充電回路106のFETのソース・ドレイン間の電位差と、充電回路106が出力する電流の積で計算される熱が、充電回路106のFETの許容損失を満足する様に設定する。例えば、ソース・ドレイン間の電位差がVM−Vth1、電流がIchg1の場合、充電回路106に発生する熱量は(VM−Vth1)×Ichg1と表わされる。同様に、ソース・ドレイン間の電位差がVM−Vth2、電流値がIchg2の場合、充電回路106に発生する熱量は(VM−Vth2)×Ichg2と表わされる。また、ソース・ドレイン間の電位差がVM−Vth3、電流値がIchg3の場合、充電回路106に発生する熱量は(VM−Vth3)×Ichg3と表わされる。(VM−Vth1)×Ichg1、(VM−Vth2)×Ichg2、(VM−Vth3)×Ichg3のいずれも、一定の許容損失以下になるように設定する。したがって、VMとの電位差が大きいVth1以下の時の電流値Ichg1は比較的小さく、VMとの電位差が小さいVth3以上の時のIchg3は比較的大きくする。本実施形態では、電流値の切り替えを3段階で示しているが、これに限定されず、電流値の切替数は、3より多くてもよいし、3より少なくてもよい。 まず、ヘッド電源制御シーケンサ122は、充電回路106の充電電流値としてIchg1を選択するように、出力端子PO2から信号を出力する(S202)。そして、電圧検出回路121により検出した電解コンデンサの電圧がVth1以上(第1閾値以上)か判定する(S203)。電解コンデンサの電圧がVht1以上と判定すると(S203でYes)、ヘッド電源制御シーケンサ122は、充電回路106の充電電流値としてIchg2を選択するように、出力端子PO2から信号を出力する(S204)。すなわち、充電回路106の充電電流値は、Ichg1からIchg2に切り替えられる。そして、電圧検出回路121により検出した電解コンデンサの電圧がVth2以上(第2閾値以上)か判定する(S205)。   When the printer receives a print command, control of the power supply voltage is started (S201), and the electrolytic capacitor 105 is charged (S202 to S207). Here, Ichg1, Ichg2, and Ichg3 shown in FIGS. 2 and 3 are charging currents output from the charging circuit 106, respectively, and are switched according to the voltage state of the electrolytic capacitor. Specifically, when the voltage of the electrolytic capacitor monitored by the voltage detection circuit 121 exceeds preset voltage threshold values (Vth1, Vth2), the charging current value is increased to a predetermined value (Ichg2, Ichg3). Thus, in the present embodiment, by switching the charging current value, charging can be completed as quickly as possible while satisfying the thermal limitation of the FET of the charging circuit 106. In the present embodiment, the heat calculated by the product of the potential difference between the source and drain of the FET of the charging circuit 106 and the current output from the charging circuit 106 is set so as to satisfy the allowable loss of the FET of the charging circuit 106. . For example, when the potential difference between the source and the drain is VM−Vth1 and the current is Ichg1, the amount of heat generated in the charging circuit 106 is expressed as (VM−Vth1) × Ichg1. Similarly, when the potential difference between the source and the drain is VM−Vth2 and the current value is Ichg2, the amount of heat generated in the charging circuit 106 is expressed as (VM−Vth2) × Ichg2. When the potential difference between the source and the drain is VM−Vth3 and the current value is Ichg3, the amount of heat generated in the charging circuit 106 is expressed as (VM−Vth3) × Ichg3. All of (VM−Vth1) × Ichg1, (VM−Vth2) × Ichg2, and (VM−Vth3) × Ichg3 are set to be equal to or less than a certain allowable loss. Therefore, the current value Ichg1 when the potential difference with VM is less than Vth1 is relatively small, and Ichg3 when the potential difference with VM is less than Vth3 is relatively large. In the present embodiment, the switching of the current value is shown in three stages, but the present invention is not limited to this, and the number of switching of the current value may be more than three or less than three. First, the head power supply control sequencer 122 outputs a signal from the output terminal PO2 so as to select Ichg1 as the charging current value of the charging circuit 106 (S202). Then, it is determined whether the voltage of the electrolytic capacitor detected by the voltage detection circuit 121 is Vth1 or higher (first threshold or higher) (S203). If it is determined that the voltage of the electrolytic capacitor is equal to or higher than Vht1 (Yes in S203), the head power supply control sequencer 122 outputs a signal from the output terminal PO2 so as to select Ichg2 as the charging current value of the charging circuit 106 (S204). That is, the charging current value of the charging circuit 106 is switched from Ichg1 to Ichg2. Then, it is determined whether the voltage of the electrolytic capacitor detected by the voltage detection circuit 121 is Vth2 or higher (second threshold or higher) (S205).

電解コンデンサの電圧がVht2以上と判定すると(S205でYes)、Tcntをリセットし(S206)、電流設定値をIchg3とする(S207)。なお、S206とS207の順は逆であってもよい。S206では、Ichg3が切り替わるごとにカウントアップされるカウンタTcntがリセットされてカウンタ値が0になる。なお、本実施形態では、詳細は後述するが、カウンタTcntがあらかじめ設定された回数に達するとエラーと判定される。また、S207では、ヘッド電源制御シーケンサ122は、充電回路106の充電電流値としてIchg3を選択するように、出力端子PO2から信号を出力する。すなわち、充電回路106の充電電流値は、Ichg2からIchg3に切り替えられる。図3(a)は、電圧検出回路121がモニタしている電解コンデンサ105の電圧のタイミングチャートである。また、図3(b)は、電解コンデンサへの充電電流および放電電流を示すタイミングチャートであり、図3(c)は、PO1の電圧レベルを示すタイミングチャートである。   If it is determined that the voltage of the electrolytic capacitor is equal to or higher than Vht2 (Yes in S205), Tcnt is reset (S206), and the current setting value is set to Ichg3 (S207). Note that the order of S206 and S207 may be reversed. In S206, the counter Tcnt counted up every time Ichg3 is switched is reset and the counter value becomes zero. Although details will be described later in this embodiment, an error is determined when the counter Tcnt reaches a preset number of times. In S207, the head power supply control sequencer 122 outputs a signal from the output terminal PO2 so as to select Ichg3 as the charging current value of the charging circuit 106. That is, the charging current value of the charging circuit 106 is switched from Ichg2 to Ichg3. FIG. 3A is a timing chart of the voltage of the electrolytic capacitor 105 monitored by the voltage detection circuit 121. FIG. 3B is a timing chart showing the charging current and discharging current to the electrolytic capacitor, and FIG. 3C is a timing chart showing the voltage level of PO1.

電解コンデンサ105を充電している期間310は、電圧上昇のカーブが急峻になる。これは図3(b)に示すように、電解コンデンサ電圧がVth1のしきい値以上となるタイミング301で、充電電流値をIchg1からIchg2に充電電流値切り替えているためである。   During the period 310 during which the electrolytic capacitor 105 is charged, the voltage rise curve becomes steep. This is because, as shown in FIG. 3B, the charging current value is switched from Ichg1 to Ichg2 at timing 301 when the electrolytic capacitor voltage becomes equal to or higher than the threshold value of Vth1.

Ichg3が選択された後は、電圧検出回路121により検出した電解コンデンサの電圧がVth3以上(第3閾値以上)か判定する(S208)。電解コンデンサの電圧がVht3以上と判定すると(S208でYes)、ヘッド電源制御シーケンサ122は、充電回路106の充電電流値として電圧保持用電流値Ikeepを選択するように、出力端子PO2から信号を出力する(S209)。すなわち、充電回路106の充電電流値は、Ichg1からIkeepに切り替えられる。電流値Ikeepは、電解コンデンサ105の電圧を保持しつつ、リークの増加の検出することができる電流値である。したがって、Ikeep電流値は、充電電流値を上昇させたときの値(例えば、Ichg3)よりも低い値とする。本実施形態では、Ikeep電流値は、Ichg1よりも低い値、すなわち、充電時に充電回路106が供給する電流値よりも低い値とする。   After Ichg3 is selected, it is determined whether the voltage of the electrolytic capacitor detected by the voltage detection circuit 121 is Vth3 or more (third threshold or more) (S208). If it is determined that the voltage of the electrolytic capacitor is equal to or higher than Vht3 (Yes in S208), the head power supply control sequencer 122 outputs a signal from the output terminal PO2 so as to select the voltage holding current value Ikeep as the charging current value of the charging circuit 106. (S209). That is, the charging current value of the charging circuit 106 is switched from Ichg1 to Ikeep. The current value Ikeep is a current value that can detect an increase in leakage while maintaining the voltage of the electrolytic capacitor 105. Therefore, the Ikeep current value is set to a value lower than the value when the charging current value is increased (for example, Ichg3). In the present embodiment, the Ikeep current value is set to a value lower than Ichg1, that is, a value lower than the current value supplied by the charging circuit 106 during charging.

Ikeepに切り替えた後、エラー検知無効期間を決めるカウンタToffに値をセットし(S210)、電解コンデンサの電圧がVth_error未満(エラー電圧値未満)か判定する(S211)。カウンタToffはダウンカウンタである。Toffカウンタの設定値は、瞬断による電圧低下からVth_errorよりも高い値まで復帰可能な時間よりも長い時間を設定する。ここで、瞬断とは、外的要因によりごく短時間、一時的に電源回路101による電圧の印加がされないことを指す。   After switching to Ikeep, a value is set in a counter Toff that determines an error detection invalid period (S210), and it is determined whether the voltage of the electrolytic capacitor is less than Vth_error (less than the error voltage value) (S211). The counter Toff is a down counter. The set value of the Toff counter is set to a time longer than a time during which the voltage can be recovered from a voltage drop due to an instantaneous interruption to a value higher than Vth_error. Here, the instantaneous interruption means that a voltage is not temporarily applied by the power supply circuit 101 for a very short time due to an external factor.

電解コンデンサの電圧がVth_error以上であり(S211でYes)、電解コンデンサ105の充電が完了し、印刷用データも準備が完了していれば、印刷動作を開始する(S212)。まず、S213で、ヘッド電源制御シーケンサ122のPO1をHighにする(図3(c)のタイミング304参照)。これにより、FET103がオンする。なお、FET103をオンしない場合、充電回路106が電力供給ラインに供給する電流はIkeepの状態のため、ヘッドが印刷の為に消費する電力を十分に確保することができない。S212の記録ヘッド3による印刷動作を実行し(S214)、印刷動作が完了すると、S215でPO1の電圧レベルをLowにする(図3(c)のタイミング305参照)。これにより、図1のFET103がオフする。ここでいう印刷動作の完了としては、例えば、シリアルプリンタの1スキャンの完了が挙げられる。シリアルプリンタは、ヘッド3を第1方向に移動させながら被記録媒体である用紙に印刷をした後、第1方向とは反対の第2方向に移動させながら用紙に印刷をする。本実施形態では、このいずれか一方向に移動させて1ライン又は複数ライン幅の印刷を完了した際を印刷動作の完了とする。   If the voltage of the electrolytic capacitor is equal to or higher than Vth_error (Yes in S211), the charging of the electrolytic capacitor 105 is completed, and the printing data is ready, the printing operation is started (S212). First, in S213, PO1 of the head power supply control sequencer 122 is set to High (see timing 304 in FIG. 3C). Thereby, the FET 103 is turned on. If the FET 103 is not turned on, the current supplied by the charging circuit 106 to the power supply line is in an Ikeep state, so that the power consumed by the head for printing cannot be secured sufficiently. The printing operation by the recording head 3 in S212 is executed (S214). When the printing operation is completed, the voltage level of PO1 is set to Low in S215 (see timing 305 in FIG. 3C). As a result, the FET 103 in FIG. 1 is turned off. The completion of the printing operation here includes, for example, completion of one scan of the serial printer. The serial printer prints on the paper as the recording medium while moving the head 3 in the first direction, and then prints on the paper while moving in the second direction opposite to the first direction. In the present embodiment, the printing operation is completed when printing in one line or a plurality of lines is completed by moving in any one direction.

そして、ヘッド電源制御シーケンサ122は、充電回路106の充電電流値としてIkeepを選択するように、出力端子PO2から信号を出力する(S216)。すなわち、ヘッドへの供給電流はIkeepに戻る。   Then, the head power supply control sequencer 122 outputs a signal from the output terminal PO2 so as to select Ikeep as the charging current value of the charging circuit 106 (S216). That is, the supply current to the head returns to Ikeep.

S217で、印刷が終了したか判定する。印刷が終了したと判定されると(S217でYes)、ヘッド電源用コンデンサを放電する制御に移る(S226〜S231)。電解コンデンサ105は、放電回路107を使用し、電流を制限しながら放電を行う。ここで、電解コンデンサ105の放電時も充電時と同様に、放電回路107のFETの熱的制限を満たすように設定する。   In step S217, it is determined whether printing is completed. If it is determined that printing has been completed (Yes in S217), the control proceeds to discharging the head power supply capacitor (S226 to S231). The electrolytic capacitor 105 uses the discharge circuit 107 to discharge while limiting the current. Here, the electrolytic capacitor 105 is set to satisfy the thermal restriction of the FET of the discharge circuit 107 when discharging, similarly to the charging.

まず、ヘッド電源制御シーケンサ122は、放電回路107の放電電流値としてIdis3を選択するように、出力端子PO3から信号を出力する(S226)。ここで、放電回路107のFETのソース・ドレイン間電位差はGNDからヘッド電源電圧の差になるため、ヘッド電源電位が高いほど電位差は大きい。したがって、図3(b)のタイミング306から307では、放電電流Idis3を小さい値に設定する。   First, the head power supply control sequencer 122 outputs a signal from the output terminal PO3 so as to select Idis3 as the discharge current value of the discharge circuit 107 (S226). Here, since the potential difference between the source and drain of the FET of the discharge circuit 107 becomes a difference between GND and the head power supply voltage, the higher the head power supply potential, the larger the potential difference. Therefore, at timings 306 to 307 in FIG. 3B, the discharge current Idis3 is set to a small value.

そして、電圧検出回路121により検出した電解コンデンサの電圧がVth2未満か判定する(S227)。電圧検出回路121が検出した電解コンデンサの電圧がVth2未満となると(S227でYes)、ヘッド電源制御シーケンサ122は、放電回路107の放電電流値としてIdis2を選択するように、出力端子PO3から信号を出力する(S228)。すなわち、タイミング307からは放電電流をIdis3からIdis2に切り替える。ここで、Idis2は、Idis3よりもやや大きい値を設定する。そして、電圧検出回路121により検出した電解コンデンサの電圧がVth1未満か判定する(S229)。電圧検出回路121が検出した電解コンデンサの電圧がVth1未満となると(S229でYes)、ヘッド電源制御シーケンサ122は、放電回路107の放電電流値としてIdis1を選択するように、出力端子PO3から信号を出力する(S230)。すなわち、タイミング308からは放電電流をIdis2からIdis1に切り替える。そして図3(b)の309のタイミングで放電が完了する。   Then, it is determined whether the voltage of the electrolytic capacitor detected by the voltage detection circuit 121 is less than Vth2 (S227). When the voltage of the electrolytic capacitor detected by the voltage detection circuit 121 becomes less than Vth2 (Yes in S227), the head power supply control sequencer 122 sends a signal from the output terminal PO3 so as to select Idis2 as the discharge current value of the discharge circuit 107. It outputs (S228). That is, from timing 307, the discharge current is switched from Idis3 to Idis2. Here, Idis2 is set to a value slightly larger than Idis3. Then, it is determined whether the voltage of the electrolytic capacitor detected by the voltage detection circuit 121 is less than Vth1 (S229). When the voltage of the electrolytic capacitor detected by the voltage detection circuit 121 becomes less than Vth1 (Yes in S229), the head power supply control sequencer 122 sends a signal from the output terminal PO3 so as to select Idis1 as the discharge current value of the discharge circuit 107. Output (S230). That is, from timing 308, the discharge current is switched from Idis2 to Idis1. Then, the discharge is completed at the timing 309 in FIG.

ここで、S211でコンデンサ電圧がVth_error未満となった場合について説明する。電解コンデンサ電圧がエラーしきい値Vth error以下になると(S221でYes)、Toffカウンタがダウンカウント動作を開始する(S218)。そして、コンデンサ電圧がVth4未満か判定する(S219)。   Here, a case where the capacitor voltage becomes less than Vth_error in S211 will be described. When the electrolytic capacitor voltage becomes equal to or lower than the error threshold Vth error (Yes in S221), the Toff counter starts a down-count operation (S218). Then, it is determined whether the capacitor voltage is less than Vth4 (S219).

コンデンサ電圧がVth4未満である場合(S219でNo)、コンデンサ電圧がVth3以上か判定する(S220)。コンデンサ電圧がVth3以上でなければ(S220でNo)、S219へ戻り、コンデンサ電圧がVth3以上であれば(S220でYes)S210へ戻る。   When the capacitor voltage is less than Vth4 (No in S219), it is determined whether the capacitor voltage is equal to or higher than Vth3 (S220). If the capacitor voltage is not equal to or higher than Vth3 (No in S220), the process returns to S219. If the capacitor voltage is equal to or higher than Vth3 (Yes in S220), the process returns to S210.

コンデンサ電圧がVth4未満である場合(S219でYes)、電流値にIchg3を設定する(S221)。具体的には、ヘッド電源制御シーケンサ122は、充電回路106の充電電流値としてIchrg3を選択するように、出力端子PO2から信号を出力する(S221)。このとき、Ichg3に切り替わったことで、Tcntが一段階インクリメントし(S222)、Tcntが設定値か判定する(S223)。本実施形態では、設定値を5とする。   If the capacitor voltage is less than Vth4 (Yes in S219), Ichg3 is set as the current value (S221). Specifically, the head power supply control sequencer 122 outputs a signal from the output terminal PO2 so as to select Ichrg3 as the charging current value of the charging circuit 106 (S221). At this time, by switching to Ichg3, Tcnt is incremented by one step (S222), and it is determined whether Tcnt is a set value (S223). In the present embodiment, the set value is 5.

Tcntが設定値ではない場合(S223でNo)、Toffカウンタが0か判定する(S224)。Toffカウンタが0となると(S224でYes)、コンデンサ電圧がVth error未満か判定する(S225)。   If Tcnt is not the set value (No in S223), it is determined whether the Toff counter is 0 (S224). When the Toff counter becomes 0 (Yes in S224), it is determined whether the capacitor voltage is less than Vth error (S225).

コンデンサ電圧がVth error未満ではない、すなわち、Vth error以上と判定すると(S225でNo)、S208へ戻る。ここで、上述した通り、Toff設定値は、瞬断から復帰するために必要な時間よりも長く取っているので、瞬断が原因の場合には、ダウンカウントが0になるより前にコンデンサ電圧がVth errorを超える。また、S208で、コンデンサ電圧がVth3以上であれば、Ikeep電流に切り替えられる(S209)。   If it is determined that the capacitor voltage is not less than Vth error, that is, not less than Vth error (No in S225), the process returns to S208. Here, as described above, the Toff set value is set longer than the time required to recover from the momentary interruption. Therefore, in the case of the momentary interruption, the capacitor voltage before the downcount becomes zero. Exceeds Vth error. In S208, if the capacitor voltage is equal to or higher than Vth3, the current is switched to the Ikeep current (S209).

Tcntが設定値である場合(S223でYes)、エラーであるとしてエラー処理をして終了する。このように、本実施形態では、切り替わった回数が予め設定した所定数以上であれば、エラー処理を実行する。エラー処理とは、電力供給ラインを介したヘッド3への電力供給を終了させる処理である。具体的には、図1のFET103をオフし、充電回路106をオフする。さらに、電源回路101の電源をオフする。また、さらに、放電回路107をオンして積極的に放電を行うなどの制御をしてもよい。   If Tcnt is a set value (Yes in S223), an error process is performed and the process ends. Thus, in this embodiment, if the number of times of switching is equal to or greater than a predetermined number set in advance, error processing is executed. The error process is a process for terminating the power supply to the head 3 via the power supply line. Specifically, the FET 103 in FIG. 1 is turned off and the charging circuit 106 is turned off. Further, the power supply of the power supply circuit 101 is turned off. Further, it may be controlled such that the discharge circuit 107 is turned on to positively discharge.

このように、本実施形態では、コンデンサ電圧の電圧値がVth error未満かの判定結果及び充電回路106の電流値を上昇させる切り替えた回数に基づいて、エラー処理を実行するか否かを決定する。   As described above, in this embodiment, it is determined whether or not to execute error processing based on the determination result whether the voltage value of the capacitor voltage is less than Vth error and the number of times of switching to increase the current value of the charging circuit 106. .

ここで、ヘッド電源制御ブロック102について説明する。図9は、ヘッド電源制御シーケンサ122内の状態管理図である。図9(a)では、ヘッド3の電源がオフされている状態をスタンバイ701とする。印刷のジョブが投入されると、ヘッド3の電源をオンにするために、充電ステート702に遷移する。図9(b)は、充電ステート702を詳細に示した状態遷移図である。図9(b)に示すように、充電ステート702において電解コンデンサの電圧に基づいて充電電流を切り替えることにより、充電ステートの状態は遷移する。電解コンデンサの電圧がVth1以上となると、充電1ステート702_1から充電2ステート702_2に遷移する。このとき、充電電流をIchg1からIchg2に切り替える。同様に、電解コンデンサの電圧がVth2以上となると、充電2ステート702_2から充電3ステート702_3に遷移すると、充電電流をIchg2からIchg3に切り替える。   Here, the head power supply control block 102 will be described. FIG. 9 is a state management diagram in the head power supply control sequencer 122. In FIG. 9A, a state in which the power supply of the head 3 is turned off is defined as a standby 701. When a print job is input, the state transitions to the charging state 702 in order to turn on the power of the head 3. FIG. 9B is a state transition diagram showing the charging state 702 in detail. As shown in FIG. 9B, the state of the charging state transitions by switching the charging current based on the voltage of the electrolytic capacitor in the charging state 702. When the voltage of the electrolytic capacitor becomes equal to or higher than Vth1, the charging 1 state 702_1 transitions to the charging 2 state 702_2. At this time, the charging current is switched from Ichg1 to Ichg2. Similarly, when the voltage of the electrolytic capacitor becomes Vth2 or higher, the charging current is switched from Ichg2 to Ichg3 when the charging 2 state 702_2 transitions to the charging 3 state 702_3.

電解コンデンサの電圧がVth3以上となり充電が完了すると、図9(a)の保持ステート703に移行する。これに伴い、充電電流をIkeepに切り替える。印刷動作中が開始すると、印刷動作ステート704に遷移する。印刷ジョブが完了するまで、保持ステート703と印刷動作704のステート間を行き来する。なお、本実施形態では、充電ステート702の後に保持ステート703に遷移するものとしたが、印刷動作を急ぐ場合には、充電ステート702の後に印刷動作ステート704に直接遷移してもよい。   When the voltage of the electrolytic capacitor becomes Vth3 or more and charging is completed, the state shifts to the holding state 703 in FIG. Along with this, the charging current is switched to Ikeep. When the printing operation starts, the state transits to the printing operation state 704. Until the print job is completed, it moves back and forth between the holding state 703 and the state of the printing operation 704. In the present embodiment, the state transitions to the holding state 703 after the charging state 702. However, when the printing operation is rushed, the state may directly transition to the printing operation state 704 after the charging state 702.

印刷動作が終了すると、放電ステート705に遷移する。また、ヘッド電源電圧モニタにより異常を検出した場合も、放電ステート1005に遷移させる。ヘッド電源電圧のモニタによる異常検出は、特に保持ステート1003において検出され易いが、印刷動作ステート704で検出された場合は、即時に放電ステート705に遷移させるようにしてもよい。なお、印刷動作ステート704において、ヘッド電源電圧モニタにより異常が検出された場合、保持ステート703に遷移させてから、放電ステート705に遷移させてもよい。   When the printing operation is finished, the state transits to the discharge state 705. Also, when an abnormality is detected by the head power supply voltage monitor, the state is changed to the discharge state 1005. Abnormality detection by monitoring the head power supply voltage is particularly easy to detect in the holding state 1003, but if it is detected in the printing operation state 704, it may be immediately shifted to the discharge state 705. In the printing operation state 704, when an abnormality is detected by the head power supply voltage monitor, the state may be changed to the holding state 703 and then changed to the discharge state 705.

図9(c)は、放電ステート705を詳細に示したステート遷移図である。図9(c)に示すように、放電状態を遷移させる際に、電解コンデンサの電圧に基づいて電流値を切り替えることにより、放電ステートの状態は遷移する。具体的には、放電1ステート705_1から、放電2ステート705_2、放電3ステート705_3のへと遷移し、その都度Idis3、Idis2、Idis1と放電電流も切り替わる。そして、放電が完了すると、スタンバイ701に遷移する。なお、保持ステート703中にしきい値を下回ると、充電ステート702に移行し、充電回路106が供給する電流は、電圧に従ってIchg1、Ichg2、又はIchg3のいずれかに切り替わり、再度充電動作に入る。   FIG. 9C is a state transition diagram showing the discharge state 705 in detail. As shown in FIG. 9C, when the discharge state is changed, the state of the discharge state is changed by switching the current value based on the voltage of the electrolytic capacitor. Specifically, a transition is made from the discharge 1 state 705_1 to the discharge 2 state 705_2 and the discharge 3 state 705_3, and the discharge current and Idis3, Idis2, and Idis1 are also switched each time. When the discharge is completed, the state transitions to standby 701. When the threshold value is lowered during the holding state 703, the state shifts to the charging state 702, and the current supplied by the charging circuit 106 is switched to Ichg1, Ichg2, or Ichg3 according to the voltage, and the charging operation is started again.

CPU123は、以下に示す通り、プリント制御全体の管理と、ヘッド電源が正常に動作していることの管理を行う。   As shown below, the CPU 123 manages the entire print control and manages that the head power supply is operating normally.

CPU123は、プリンタに接続された外部装置やプリンタの指示部から印刷指令を受けると、印刷ジョブデータから印刷用データの準備を開始するのと並行して、ヘッド電源制御ブロック102にヘッド電源オン指令を出す。ヘッド電源オン指令を受けてヘッド電源制御ブロック102は、図2のフローを開始する(S201)。
(1) CPU123は、印刷ジョブデータから印刷用データの準備を行うのと並行して、ヘッド電源制御シーケンサ122のステートを監視し、充電3ステート又は保持ステートとなったか判定する。本実施形態では、ヘッド電源制御シーケンサのステートを監視するものとしたが、これに限定されるものではない。例えば、電圧検出回路121の出力値や、抵抗111と抵抗112の間の分圧電圧を直接入力してAD変換した値からヘッド電源電圧がVth3以上であるか否かの判断をしてもよい。ステートが充電3ステート又は保持ステートとなったと判定すると、CPU123は、電圧検出回路121の出力値、抵抗111と抵抗112の間の分圧電圧を直接入力しAD変換した値を定期的に監視し続ける。すなわち、プリントヘッドの動作の停止中の電圧値を定期的に監視し続ける。その値が「ヘッド電源電圧がVth_error以下である状態」に相当する値になった場合、異常状態であると判定しエラー処理を行う。
(2) エラー状態ではない状態で印刷用データの準備ができた場合、印刷開始可能と判定し、ヘッド電源制御ブロック102に印刷動作の開始指令を出す。印刷動作の開始指令を受けてヘッド電源制御ブロック102は、S213の処理を行う。その後、CPU123は、ヘッドへ印刷用データを送信し印刷動作を行う。
(3) 印刷動作が完了すると、CPU123はヘッド電源制御ブロック102に印刷動作の終了指令を出す。印刷動作の終了指令を受けて、ヘッド電源制御ブロック102はS215の処理を行う。
(4) 続けて印刷ジョブデータがある場合は、(2)→(3)を繰り返す。
(5) 印刷ジョブデータがない場合は、CPU123はヘッド電源制御ブロック102にヘッド電源のオフ指令を出す。ヘッド電源のオフ指令を受けて、ヘッド電源制御ブロック102はS226の処理を行う。
When the CPU 123 receives a print command from an external device connected to the printer or an instruction unit of the printer, the head power on command is sent to the head power control block 102 in parallel with the start of preparation of print data from the print job data. Put out. Upon receiving the head power on command, the head power control block 102 starts the flow of FIG. 2 (S201).
(1) The CPU 123 monitors the state of the head power supply control sequencer 122 in parallel with the preparation of print data from the print job data, and determines whether the charging state or the holding state has been reached. In this embodiment, the state of the head power supply control sequencer is monitored, but the present invention is not limited to this. For example, it may be determined whether or not the head power supply voltage is equal to or higher than Vth3 from the output value of the voltage detection circuit 121 and the value obtained by AD input by directly inputting the divided voltage between the resistor 111 and the resistor 112. . If it is determined that the state is the three charging state or the holding state, the CPU 123 periodically monitors the output value of the voltage detection circuit 121 and the value obtained by AD conversion by directly inputting the divided voltage between the resistor 111 and the resistor 112. to continue. That is, the voltage value during the stop of the print head operation is continuously monitored. When the value becomes a value corresponding to “a state where the head power supply voltage is equal to or lower than Vth_error”, it is determined that the state is abnormal and error processing is performed.
(2) When printing data is ready in a state that is not in an error state, it is determined that printing can be started, and a print operation start command is issued to the head power supply control block 102. Upon receiving the print operation start command, the head power supply control block 102 performs the process of S213. Thereafter, the CPU 123 transmits print data to the head and performs a printing operation.
(3) When the printing operation is completed, the CPU 123 issues a printing operation end command to the head power supply control block 102. In response to the print operation end command, the head power supply control block 102 performs the process of S215.
(4) If there is print job data, repeat (2) → (3).
(5) When there is no print job data, the CPU 123 issues a head power off command to the head power control block 102. In response to the head power off command, the head power control block 102 performs the process of S226.

次に、図6を用いて、瞬断による電圧低下が発生した場合の動作について説明する。まず、充電が開始されて、ヘッド電源電圧がVth3以上となると、電流設定値をIchg3とする。Ichg3に切り替わるごとにカウントアップされるカウンタTcntがリセットされてカウンタ値が0になる。なお、本実施形態では、カウンタTcntがあらかじめ設定された回数に達するとエラーと判定される。ヘッド電圧がさらに上昇し、充電電完了する(図6(a)のタイミングチャートの401の箇所参照)。そして、充電が完了すると、電流値はIchg3よりも小さいlkeepに切り替え、エラー検知無効期間を決めるカウンタToffに値がセットされる。カウンタToffはダウンカウンタであり、セットされた時間が経過してカウンタ値が0になるまでは、ヘッド電源電圧がエラーしきい値(Vth_error)以下となっても、エラーとは判定しない。図6(a)に示すように、Toffカウンタの設定値は、瞬断による電圧低下からVth_errorよりも高い値まで復帰可能な時間よりも長い時間を設定する。これにより、瞬断による電圧の低下をリークによるエラーと誤検知することを抑制することができる。図6(a)に示すように、瞬断が発生すると(図6(a)の402参照)、電源回路101から出力されるVM電圧が低下するため、同時に電解コンデンサ電圧も低下する。電解コンデンサ電圧がエラーしきい値Vth error以下になると(図6(a)の403参照)、Toffカウンタがダウンカウント動作を開始する。さらに瞬断による電圧低下が継続して、コンデンサ電圧がVth4以下となった場合(図6(a)の404参照)、電流値にIchg3を設定する(図6(b)404参照)。このとき、Ichg3に切り替わったことで、Tcntが一段階インクリメントされるが、Ichg3への切り替わりは一回目でありエラーとはならない。この間もToffカウンタは、ダウンカウント動作を続けており、カウントが0になるとヘッド電圧のモニタを有効にしてVth errorしきい値未満であるかどうかを判定する。上述した通り、Toff設定値は、瞬断から復帰するために必要な時間よりも長く取っているので、瞬断が原因の場合には、ダウンカウントが0になるより前にコンデンサ電圧がVth error以上となる。そして、コンデンサ電圧がVth3より高くなることで充電完了となる(図6(a)の405参照)。   Next, the operation when a voltage drop due to a momentary interruption occurs will be described with reference to FIG. First, when charging is started and the head power supply voltage becomes Vth3 or higher, the current set value is set to Ichg3. The counter Tcnt that is counted up every time the Ichg3 is switched is reset and the counter value becomes zero. In the present embodiment, an error is determined when the counter Tcnt reaches a preset number of times. The head voltage further rises and the charging is completed (see 401 in the timing chart of FIG. 6A). When charging is completed, the current value is switched to lkeep smaller than Ichg3, and a value is set in a counter Toff that determines an error detection invalid period. The counter Toff is a down counter, and even if the head power supply voltage becomes equal to or lower than the error threshold value (Vth_error) until the counter value becomes 0 after the set time elapses, it is not determined as an error. As shown in FIG. 6A, the set value of the Toff counter is set to a time longer than a time during which the voltage can be recovered from a voltage drop due to a momentary interruption to a value higher than Vth_error. Thereby, it can suppress that the fall of the voltage by instantaneous interruption is erroneously detected as the error by leak. As shown in FIG. 6A, when an instantaneous interruption occurs (see 402 in FIG. 6A), the VM voltage output from the power supply circuit 101 decreases, and the electrolytic capacitor voltage also decreases at the same time. When the electrolytic capacitor voltage becomes equal to or lower than the error threshold Vth error (see 403 in FIG. 6A), the Toff counter starts a down-count operation. Further, when the voltage drop due to the instantaneous interruption continues and the capacitor voltage becomes Vth4 or less (see 404 in FIG. 6A), Ichg3 is set as the current value (see 404 in FIG. 6B). At this time, switching to Ichg3 increments Tcnt by one step, but switching to Ichg3 is the first time and does not cause an error. During this time, the Toff counter continues the down-counting operation. When the count reaches 0, the head voltage monitor is enabled and it is determined whether or not it is less than the Vth error threshold value. As described above, the Toff set value is set longer than the time required to recover from the momentary interruption. Therefore, in the case of the momentary interruption, the capacitor voltage becomes Vth error before the downcount becomes zero. That's it. Charging is completed when the capacitor voltage becomes higher than Vth3 (see 405 in FIG. 6A).

次に、図7を用いて、リークが発生した場合について説明する。なお、ここでいうリークは、自然放電によるリークではなく、電力供給回路や電力負荷側に短絡等が発生することにより生じるリークである。図7の406に示すように、リークが発生すると、コンデンサ電圧は降下を始め、Vth error未満となる(図7(a)の407参照)。ここでは、Toff期間であるためエラー判定はしない。さらにコンデンサ電圧が降下を続け、図6の場合と同様に、Vth4未満となった時点で、充電回路106が供給する電流をIchg3に戻したとしても、電圧は上昇しない。したがって、Toffカウンタが0となった時点においてもコンデンサ電圧はVth error未満となるため(図7(a)の408参照)、エラーとして検出される。   Next, a case where a leak occurs will be described with reference to FIG. The leak here is not a leak due to natural discharge but a leak caused by a short circuit or the like occurring on the power supply circuit or the power load side. As shown at 406 in FIG. 7, when a leak occurs, the capacitor voltage starts dropping and becomes less than Vth error (see 407 in FIG. 7A). Here, since it is the Toff period, no error determination is made. Further, the capacitor voltage continues to drop, and the voltage does not rise even if the current supplied by the charging circuit 106 is returned to Ichg3 when it becomes less than Vth4, as in the case of FIG. Therefore, even when the Toff counter becomes 0, the capacitor voltage is less than Vth error (see 408 in FIG. 7A), so that it is detected as an error.

さらに、図8を用いて、リーク電流がIchg3よりも小さい場合の動作について説明する。なお、ここでいうリークは、自然放電によるリークではなく、電力供給回路や電力負荷側に短絡等が発生することにより生じるリークである。コンデンサ電圧が充電完了し、Ikeep電流に切り変えた後、図8(a)のタイミング409において、リーク電流が上昇し、lkeep電流よりも高いリーク電流が発生すると、電解コンデンサ電圧は、降下を始める。そして、Vth error未満となり(図8(a)のタイミング410参照)、やがてVth4未満となる(図8(a)のタイミング411参照)。コンデンサ電圧がVth4未満となると充電回路106が供給する電流値をIchg3に切り替えるように制御する。充電回路106が供給する電流値Ichg3は、リーク電流よりも大きいので電解コンデンサ電圧は上昇し始める(図8(a)のタイミング411〜412)。なお、充電回路106が供給する電流値をIchg3に切り替えると同時に、図8(b)に示すようにIchg3への切り替わりをカウントするカウンタTcntが一段階インクリメントされる。充電回路106が供給する電流値をIchg3に切り替えると、電解コンデンサ電圧は上昇を続け、Toffが0になる時点では、すでに電解コンデンサ電圧は、Vth error以上となる。したがって、エラーとは認識されずに、電解コンデンサがVth3以上となったタイミングで充電が完了する。電解コンデンサ105の充電が完了した後は、充電回路106が供給する電流値としてlkeepが選択されるが、リーク電流が充電回路106から供給される電流(Ikeep電流)を上回る状態になる。したがって、電解コンデンサ電圧は、再度降下をし始める(図8のタイミング412以降を参照)。しかしながら、図8に示すように、Ichg3よりも高いリーク電流が発生し続けている場合、Tcntカウンタをインクリメントしながら、上述した動作が繰り返される。これらの動作を繰り返すたびに、Ichg3への切り替わりカウンタ値Tcntがカウントアップする。そして、カウンタ値があらかじめ設定した値以上となると、リーク電流の増加によるエラーと判定する。   Further, the operation when the leakage current is smaller than Ichg3 will be described with reference to FIG. The leak here is not a leak due to natural discharge but a leak caused by a short circuit or the like occurring on the power supply circuit or the power load side. After the capacitor voltage is fully charged and switched to the Ikeep current, the leakage current increases at timing 409 in FIG. 8A, and when a leakage current higher than the lkeep current occurs, the electrolytic capacitor voltage starts to decrease. . Then, it becomes less than Vth error (see timing 410 in FIG. 8A) and eventually becomes less than Vth4 (see timing 411 in FIG. 8A). When the capacitor voltage becomes less than Vth4, the current value supplied by the charging circuit 106 is controlled to be switched to Ichg3. Since the current value Ichg3 supplied by the charging circuit 106 is larger than the leakage current, the electrolytic capacitor voltage starts to rise (timing 411 to 412 in FIG. 8A). At the same time as the current value supplied by the charging circuit 106 is switched to Ichg3, a counter Tcnt that counts the switching to Ichg3 is incremented by one step as shown in FIG. 8B. When the current value supplied by the charging circuit 106 is switched to Ichg3, the electrolytic capacitor voltage continues to rise, and when the Toff becomes 0, the electrolytic capacitor voltage is already equal to or higher than Vth error. Therefore, charging is completed when the electrolytic capacitor becomes Vth3 or higher without being recognized as an error. After the charging of the electrolytic capacitor 105 is completed, lkeep is selected as the current value supplied by the charging circuit 106, but the leakage current exceeds the current supplied from the charging circuit 106 (Ikeep current). Therefore, the electrolytic capacitor voltage starts to fall again (see timing 412 and thereafter in FIG. 8). However, as shown in FIG. 8, when a leak current higher than Ichg3 continues to be generated, the above-described operation is repeated while incrementing the Tcnt counter. Each time these operations are repeated, the counter value Tcnt for switching to Ichg3 is counted up. When the counter value is equal to or greater than a preset value, it is determined that the error is due to an increase in leakage current.

また、図3(b)のタイミング303以降の充電電流となっているIkeep電流の電流値について説明する。ヘッド電源回路は、ヘッドの電解コンデンサ105に充電を完了した後に、電力供給回路や電力負荷を有するデバイスに異常が生じていない場合であっても、様々な理由で電荷が抜け、自然に放電することがある。自然放電の理由としては、例えば、図1の電圧検出用の抵抗111、112に流れる電流、あるいはヘッド自身が半導体プロセスで製造されているため自然発生するリーク電流などが挙げられる。これらの現象によるヘッド電源電圧の低下を防ぐことで、充電動作からしばらく時間が経過した後でも、プリント動作を即座に開始することができる。したがって、Ikeep電流値は、これらの自然な放電電流よりも大きな値を設定する。なお、自然な放電電流は、電力供給回路の構成及び負荷を含むデバイスの構成により、予め想定することができる。Ikeep電流値は、想定される自然な放電電流よりも大きい値とすればよい。 図4を用いて、Ikeep電流の下限値についてより詳細に説明する。図4は、電圧保持用に設定した電流値が自然な放電電流よりも低い場合のヘッド電源電圧、ヘッド充電電流、リーク電流を示すタイミングチャートである。より具体的には、自然な放電電流よりも小さな値に設定した場合のタイミングチャートを示したものである。図4(a)は、電解コンデンサ105の電圧の様子を示している。また、図4(b)は、充電中の電流値と自然放電の電流値のタイミングチャートであり、破線で示されるILeakは、ヘッド電源回路の自然放電の電流値である。図4(b)では、IkeepがILeakよりも小さな値である。したがって、図4(a)に示すように、充電回路106の電流値をIkeep電流に切り替えたタイミング603から電解コンデンサ105の電圧を維持徐々に電圧が降下していき、一定時間経過後にVth_errorしきい値に到達してしまう。ここで、Vth_errorは、電解コンデンサ105の充電完了後にヘッド電源電圧を監視し、異常を判断するためのしきい値である。電力供給ラインの電圧の監視は、電圧検出回路121により図1におけるPI1の電圧をモニタすることにより実行される。このように、Ikeepが自然放電の電流値以下に設定すると、ヘッドの異常を正確に判断することができなくなってしまう。したがって、Ikeepとして自然放電の際のILeakよりも大きな値を設定する。   Further, the current value of the Ikeep current that is the charging current after the timing 303 in FIG. 3B will be described. The head power supply circuit discharges naturally due to various reasons even when no abnormality has occurred in the power supply circuit or the device having the power load after the electrolytic capacitor 105 of the head is completely charged. Sometimes. The reason for the spontaneous discharge is, for example, a current flowing through the voltage detection resistors 111 and 112 in FIG. 1 or a leak current that naturally occurs because the head itself is manufactured by a semiconductor process. By preventing the head power supply voltage from decreasing due to these phenomena, the printing operation can be started immediately even after a while has elapsed since the charging operation. Therefore, the Ikeep current value is set to a value larger than these natural discharge currents. Note that a natural discharge current can be assumed in advance by the configuration of the power supply circuit and the configuration of the device including the load. The Ikeep current value may be a value larger than the assumed natural discharge current. The lower limit value of the Ikeep current will be described in more detail using FIG. FIG. 4 is a timing chart showing the head power supply voltage, the head charging current, and the leakage current when the current value set for voltage holding is lower than the natural discharge current. More specifically, a timing chart in the case where the value is set smaller than the natural discharge current is shown. FIG. 4A shows the state of the voltage of the electrolytic capacitor 105. FIG. 4B is a timing chart of the current value during charging and the current value of natural discharge, and ILeak indicated by a broken line is the current value of natural discharge of the head power supply circuit. In FIG. 4B, Ikeep is a smaller value than ILeak. Therefore, as shown in FIG. 4A, the voltage of the electrolytic capacitor 105 is maintained gradually from the timing 603 when the current value of the charging circuit 106 is switched to the Ikeep current, and the voltage gradually decreases, and the Vth_error threshold is reached after a certain period of time. The value is reached. Here, Vth_error is a threshold value for monitoring the head power supply voltage after completion of charging of the electrolytic capacitor 105 and determining an abnormality. The voltage of the power supply line is monitored by monitoring the voltage of PI1 in FIG. As described above, if Ikeep is set to be equal to or less than the current value of natural discharge, it becomes impossible to accurately determine the abnormality of the head. Therefore, a value larger than ILeak at the time of natural discharge is set as Ikeep.

上述した通り、電解コンデンサの電圧のモニタは、印刷動作を行っていない期間に実行される。具体的には、電解コンデンサの電圧のモニタは、図2のS209とS210の間でループしており、充電完了後であって印刷動作開始前は常に電解コンデンサの電圧が監視される。図2のフローチャートでは、印刷動作が終了するまで常に電解コンデンサの電圧が監視される。なお、S216では、電流値をIkeepに選択し直しているが、図1の106における充電回路をオフしない場合はS216で電流値を選択し直さなくてもよい。   As described above, the voltage of the electrolytic capacitor is monitored during a period when the printing operation is not performed. Specifically, the voltage of the electrolytic capacitor is looped between S209 and S210 in FIG. 2, and the voltage of the electrolytic capacitor is always monitored after the completion of charging and before the start of the printing operation. In the flowchart of FIG. 2, the voltage of the electrolytic capacitor is constantly monitored until the printing operation is completed. In S216, the current value is selected again as Ikeep. However, if the charging circuit in 106 of FIG. 1 is not turned off, the current value may not be selected again in S216.

次に、図5を用いて、Ikeepの上限値について説明する。図5(a)は、電解コンデンサを充電する際の電圧の様子を示している。また図5(b)は、電解コンデンサを充電中の充電回路106が供給する電流値とヘッド電源回路の放電の電流値を示しており、破線で示されるILeakは放電の電流値である。図5(b)では、タイミング504までのILeakは通常の自然放電の電流値である。このILeakは、Ichg1、Ichg2、Ichg3やIkeepのいずれの電流値よりも小さく、図4で説明したように電圧が降下する現象は発生しない。   Next, the upper limit value of Ikeep will be described with reference to FIG. FIG. 5A shows the state of the voltage when charging the electrolytic capacitor. FIG. 5B shows the current value supplied by the charging circuit 106 that is charging the electrolytic capacitor and the discharge current value of the head power supply circuit, and ILeak indicated by a broken line is the discharge current value. In FIG. 5B, ILeak up to timing 504 is a current value of normal natural discharge. This ILeak is smaller than any of the current values of Ichg1, Ichg2, Ichg3, and Ikeep, and the phenomenon that the voltage drops does not occur as described with reference to FIG.

ここで、自然放電以外のリークが発生した場合、すなわち、何らかの理由でヘッドの端子が短絡、またはヘッドのリークが増加した場合、図5(b)のタイミング504に示すように、ILeakが上昇する。ILeakがIkeepの値を超えるタイミング505から、図5(a)に示されるように、電解コンデンサの電圧は徐々に降下し、タイミング506ではVth_errorを下回り、異常が発生したと検出される。異常を検出したプリンタでは、図1のFET103をオフ、106の充電回路をオフし、107の放電回路をオンして積極的に放電を行うなどの制御を行う事が可能である。   Here, if a leak other than the spontaneous discharge occurs, that is, if the head terminal is short-circuited for some reason or the head leak increases, ILeak increases as indicated by timing 504 in FIG. 5B. . As shown in FIG. 5A, the voltage of the electrolytic capacitor gradually decreases from the timing 505 at which ILeak exceeds the value of Ikeep, and at timing 506, it is detected that an abnormality has occurred because the voltage falls below Vth_error. In the printer that detects the abnormality, it is possible to perform control such as turning off the FET 103 in FIG. 1, turning off the charging circuit 106, and turning on the discharging circuit 107 to positively discharge.

したがって、本実施形態では、Ikeepは、異常時のILeakには適切なタイミングで異常を検出できるように、特定の値以下に設定する。例えば、ILeakの挙動が予想可能な場合は、∫{ILeak(t)×V(t)}dtを期間508で積分した結果が所望の熱量以下になるようにIkeepを設定する。またIkeep以下の場合は電圧降下による異常検出は困難であるため、VM×Ikeepの熱量が許容可能な範囲に収まる様にIkeepを設定してもよい。   Therefore, in the present embodiment, Ikeep is set to a specific value or less so that an abnormality can be detected at an appropriate timing for ILeak at the time of abnormality. For example, when the behavior of ILeak can be predicted, Ikeep is set so that the result of integrating ∫ {ILeak (t) × V (t)} dt in the period 508 is equal to or less than a desired amount of heat. Further, since it is difficult to detect an abnormality due to a voltage drop when it is equal to or lower than Ikeep, Ikeep may be set so that the amount of heat of VM × Ikeep falls within an allowable range.

本実施形態は、上述した通り、電流値を切り替え可能な充電回路と、電力供給回路の電圧を特定する電圧検出回路を有しており、充電が完了した後は異常を検出する感度を維持するために電流値を小さく設定する。そして、瞬断による電圧降下に基づく誤ったエラー判定を抑制したり、瞬断による電圧降下の復帰時間を短縮したりすることを目的として、コンデンサ電圧が所定のしきい値以下となった場合に、電流値を上昇させる。このとき、電流値を上昇させる回数が所定の回数以上となった場合は、エラーであると判定する。これにより、電力供給回路やヘッドに異常が発生した場合に、より精度よくエラーであると判定することができる。したがって、記録ヘッドへの電力供給を停止して、プリンタの安全性を確保することができる。異常により発生するリーク電流値は、一定ではなく、あらかじめ想定した想定値よりも低い場合もある。この場合、電圧が低下するたびに電流値を高く切り替えていると、切り替えるたびにエラーしきい値を超えて復帰してしまうことがある。これに対し、本実施形態では、自然放電以外のエラー、具体的には、電力供給回路やヘッドに異常が発生した場合に、エラーをより精度よく検知することができる。   As described above, the present embodiment has a charging circuit that can switch the current value and a voltage detection circuit that identifies the voltage of the power supply circuit, and maintains sensitivity to detect an abnormality after charging is completed. Therefore, the current value is set small. And when the capacitor voltage falls below a predetermined threshold value for the purpose of suppressing erroneous error determination based on voltage drop due to instantaneous interruption or shortening the recovery time of voltage drop due to instantaneous interruption. Increase the current value. At this time, if the number of times the current value is increased exceeds a predetermined number, it is determined that an error has occurred. As a result, when an abnormality occurs in the power supply circuit or the head, it can be determined that the error is more accurate. Therefore, the power supply to the recording head can be stopped to ensure the safety of the printer. A leak current value generated due to an abnormality is not constant and may be lower than an assumed value assumed in advance. In this case, if the current value is switched higher each time the voltage drops, the error threshold may be exceeded and restored every time the voltage is switched. On the other hand, in the present embodiment, when an error other than spontaneous discharge, specifically, when an abnormality occurs in the power supply circuit or the head, the error can be detected with higher accuracy.

また、本実施形態では、充電完了後の電流値を充電時の電流値よりも低くすることにより、電力供給回路やヘッドの異常の発生を適切に特定することができる。すなわち、記録ヘッドが異常なリーク電流を流していた際にはそのリーク電流をすみやかに検知し、記録ヘッドへの電力供給を停止することが可能である。   Further, in the present embodiment, by making the current value after completion of charging lower than the current value at the time of charging, it is possible to appropriately specify the occurrence of an abnormality in the power supply circuit or the head. That is, when an abnormal leak current flows through the recording head, it is possible to immediately detect the leak current and stop power supply to the recording head.

したがって、電解コンデンサの充電時間を短縮しつつ、ヘッドのリーク電流に異常が発生した際にも速やかにこれを検出することができる。また、電源回路の瞬断が原因で電解コンデンサの電圧低下が発生した場合にも、速やかに所望の電圧を回復することができる。さらに、比較的小さい値でリークが発生した際にもエラーを検出することができる。すなわち、本実施形態によれば、プリンタの性能と安全性を両立することができる。   Therefore, it is possible to quickly detect an abnormality in the leakage current of the head while shortening the charging time of the electrolytic capacitor. Moreover, even when the voltage drop of the electrolytic capacitor occurs due to the instantaneous interruption of the power supply circuit, the desired voltage can be quickly recovered. Furthermore, an error can be detected when a leak occurs with a relatively small value. That is, according to the present embodiment, both the performance and safety of the printer can be achieved.

また、大容量の電解コンデンサの充電時間を短縮させるためにIchgの値を大きくする場合、許容損失の大きなFETを選択する必要があり、コストアップにつながる可能性がある。これに対し、本実施形態では、充電回路106のFETの許容損失に応じた電流切り替えを行うことにより、電解コンデンサへの充電時間を記録装置の目標性能を達する程度に短くしつつ、FET103のコスト増を防ぐことができる。   Further, when increasing the value of Ichg in order to shorten the charging time of a large-capacity electrolytic capacitor, it is necessary to select a FET with a large allowable loss, which may lead to an increase in cost. On the other hand, in the present embodiment, by switching the current according to the allowable loss of the FET of the charging circuit 106, the charging time of the electrolytic capacitor is shortened to the extent that the target performance of the recording apparatus is reached, and the cost of the FET 103 is reduced. An increase can be prevented.

(他の実施形態)
本発明は上述した実施形態に限定されるものではない。例えば、上述した実施形態では、電流値を切り替えた回数に基づいてエラー判定を行っているが、エラー判定の方法はこれに限定されるものではない。例えば、コンデンサ電圧が低下したり、上昇したりを繰り返した回数そのものをカウントするようにしてもよい。この場合は、カウンタ131は、電圧検出回路121の出力からコンデンサ電圧が所定の閾値を超えた回数をカウントすればよい。
(Other embodiments)
The present invention is not limited to the embodiment described above. For example, in the above-described embodiment, the error determination is performed based on the number of times the current value is switched. However, the error determination method is not limited to this. For example, the number of times the capacitor voltage has repeatedly decreased or increased may be counted. In this case, the counter 131 may count the number of times that the capacitor voltage exceeds a predetermined threshold from the output of the voltage detection circuit 121.

また、上述した実施形態では、電力供給装置は、電力負荷としてヘッドを備えるものとしたが、これに限定されず、電力負荷を備えないものであってもよい。すなわち、電力負荷に接続可能であり、電力負荷に対して電力を供給できるものであってもよい。   In the above-described embodiment, the power supply device includes the head as the power load. However, the power supply device is not limited to this and may not include the power load. That is, it may be connectable to a power load and supply power to the power load.

また、上述した実施形態では、電解コンデンサ105を充電する際に、充電回路106が供給する電流値を切り替えるものとしたが、これに限定されず、充電回路106が供給する電流値は、一定の電流値としてもよい。   In the embodiment described above, the current value supplied by the charging circuit 106 is switched when the electrolytic capacitor 105 is charged. However, the present invention is not limited to this, and the current value supplied by the charging circuit 106 is constant. It may be a current value.

また、上述した実施形態では、電解コンデンサ105を充電する際に、充電回路106が供給する電流値を切り替えるものとしたが、徐々に電流値を上昇させるようにしてもよい。   In the above-described embodiment, the current value supplied by the charging circuit 106 is switched when the electrolytic capacitor 105 is charged. However, the current value may be gradually increased.

また、電流制限値が切り替わる回路の遷移状態を表すステートマシンを有し、前記ステートマシンの状態を監視することで回路異常を検出するようにしてもよい。   Further, a state machine that represents a transition state of a circuit in which the current limit value is switched may be provided, and a circuit abnormality may be detected by monitoring the state of the state machine.

Claims (12)

電力負荷に電力供給ラインを介して電力を供給する電源部と、
前記電源部と前記電力負荷とを接続する前記電力供給ラインに接続されたコンデンサと、
前記電源部から供給される電力の電流値を制限して前記コンデンサを充電する充電回路と、
前記コンデンサの電圧値を検出する検出手段と、
前記検出手段により検出された電圧値が所定の閾値以上か判定する判定手段と、
前記コンデンサの充電の完了後に前記充電回路の電流値を前記コンデンサの充電が完了する前の電流値よりも小さな第1電流値に切り替え、前記コンデンサの充電の完了後に前記検出手段により検出された電圧値が所定の電圧値未満であった場合、前記充電回路が供給する電流値を前記第1電流値よりも高い電流値に切り替えるように制御する制御手段と、
前記コンデンサの充電が完了した後で且つ電力負荷の動作が終了する前における前記充電回路が供給する電流値を上昇させた回数を特定する特定手段と、
前記特定手段により特定された回数に基づいて、エラー処理を実行する実行手段と、
を有することを特徴とする電力供給装置。
A power supply for supplying power to the power load via the power supply line;
A capacitor connected to the power supply line connecting the power supply unit and the power load;
A charging circuit that limits the current value of power supplied from the power supply unit and charges the capacitor;
Detecting means for detecting a voltage value of the capacitor;
Determining means for determining whether the voltage value detected by the detecting means is equal to or greater than a predetermined threshold;
The voltage detected by the detecting means after completion of charging of the capacitor is switched to a first current value smaller than the current value before completion of charging of the capacitor after completion of charging of the capacitor. Control means for controlling to switch the current value supplied by the charging circuit to a current value higher than the first current value when the value is less than a predetermined voltage value;
A specifying means for specifying the number of times the current value supplied by the charging circuit is increased after the charging of the capacitor is completed and before the operation of the power load is completed;
Execution means for executing error processing based on the number of times specified by the specifying means;
A power supply apparatus comprising:
前記エラー処理は、前記特定手段により特定された回数が所定数以上である場合、エラー処理を実行することを特徴とする請求項1に記載の電力供給装置。   The power supply apparatus according to claim 1, wherein the error processing is executed when the number of times specified by the specifying unit is a predetermined number or more. 前記特定手段は、前記充電回路が供給する電流値を切り替えた回数により、前記充電回路が供給する電流値を上昇させた回数を特定することを特徴とする請求項1又は2に記載の電力供給装置。   3. The power supply according to claim 1, wherein the specifying unit specifies the number of times of increasing the current value supplied by the charging circuit based on the number of times the current value supplied by the charging circuit is switched. apparatus. 前記特定手段は、前記検出手段により検出した電圧値が上昇した回数により、前記充電回路が供給する電流値を上昇させた回数を特定することを特徴とする請求項1又は2に記載の電力供給装置。   3. The power supply according to claim 1, wherein the specifying unit specifies the number of times the current value supplied by the charging circuit is increased based on the number of times the voltage value detected by the detection unit is increased. apparatus. 前記エラー処理は、前記電力供給ラインを介した前記電力負荷への電力供給を終了させる処理であることを特徴とする請求項1〜4のいずれか1項に記載の電力供給装置。   5. The power supply apparatus according to claim 1, wherein the error process is a process of terminating power supply to the power load via the power supply line. 6. 前記実行手段は、前記電源部の電源をオフすることを特徴とする請求項5に記載の電力供給装置。   The power supply apparatus according to claim 5, wherein the execution unit turns off the power supply of the power supply unit. 前記判定手段は、前記電力負荷の動作の停止中に実行することを特徴とする請求項1〜6のいずれか1項に記載の電力供給装置。   The power supply apparatus according to claim 1, wherein the determination unit is executed while the operation of the power load is stopped. 前記第1電流値は、自然放電の電流値よりも大きい値であることを特徴とする請求項1〜7のいずれか1項に記載の電力供給装置。   The power supply device according to any one of claims 1 to 7, wherein the first current value is larger than a current value of natural discharge. 前記電力負荷は、プリントヘッドであることを特徴とする請求項1〜8のいずれか1項に記載の電力供給装置。   The power supply apparatus according to claim 1, wherein the power load is a print head. 前記電力負荷を備えることを特徴とする請求項1〜9のいずれか1項に記載の電力供給装置。   The power supply device according to claim 1, comprising the power load. プリントヘッドに電力供給ラインを介して電力を供給する電源部と、
前記電源部と前記プリントヘッドとを接続する前記電力供給ラインに接続されたコンデンサと、
前記電源部から供給される電力の電流値を制限して前記コンデンサを充電する充電回路と、
前記コンデンサの電圧値を検出する検出手段と、
前記検出手段により検出された電圧値が所定の閾値以上か判定する判定手段と、
前記コンデンサの充電の完了後に前記充電回路の電流値を前記コンデンサの充電が完了する前の電流値よりも小さな第1電流値に切り替え、前記コンデンサの充電の完了後に前記検出手段により検出された電圧値が所定の電圧値未満であった場合、前記充電回路が供給する電流値を前記第1電流値よりも高い電流値に切り替えるように制御する制御手段と、
前記コンデンサの充電が完了した後で且つプリントヘッドの動作が終了する前における前記充電回路が供給する電流値を上昇させた回数を特定する特定手段と、
前記特定手段により特定された回数に基づいて、エラー処理を実行する実行手段と、
を有することを特徴とするプリンタ。
A power supply for supplying power to the print head via a power supply line;
A capacitor connected to the power supply line connecting the power supply unit and the print head;
A charging circuit that limits the current value of power supplied from the power supply unit and charges the capacitor;
Detecting means for detecting a voltage value of the capacitor;
Determining means for determining whether the voltage value detected by the detecting means is equal to or greater than a predetermined threshold;
The voltage detected by the detecting means after completion of charging of the capacitor is switched to a first current value smaller than the current value before completion of charging of the capacitor after completion of charging of the capacitor. Control means for controlling to switch the current value supplied by the charging circuit to a current value higher than the first current value when the value is less than a predetermined voltage value;
Specifying means for specifying the number of times of increasing the current value supplied by the charging circuit after the charging of the capacitor is completed and before the operation of the print head is completed;
Execution means for executing error processing based on the number of times specified by the specifying means;
A printer comprising:
電力負荷に電力供給ラインを介して電力を供給する電源部と、
前記電源部と前記電力負荷とを接続する前記電力供給ラインに接続されたコンデンサと、
前記電源部から供給される電力の電流値を制限して前記コンデンサを充電する充電回路と、
を有する電力供給装置の制御方法であって、
前記コンデンサの充電の完了後に前記充電回路の電流値を前記コンデンサの充電が完了する前の電流値よりも小さな第1電流値に切り替える第1切替工程と、
前記コンデンサの電圧値を検出する検出工程と、
前記検出工程により検出された電圧値が所定の閾値以上か判定する判定工程と、
前記コンデンサの充電の完了後に前記検出工程において検出された電圧値が所定の電圧値未満であった場合、前記充電回路が供給する電流値を前記第1電流値よりも高い電流値に切り替える第2切替工程と、
前記コンデンサの充電が完了した後で且つ電力負荷の動作が終了する前における前記充電回路が供給する電流値を上昇させた回数を特定する特定工程と、
前記特定工程において特定された回数に基づいて、エラー処理を実行する実行工程と、
を有することを特徴とする制御方法。
A power supply for supplying power to the power load via the power supply line;
A capacitor connected to the power supply line connecting the power supply unit and the power load;
A charging circuit that limits the current value of power supplied from the power supply unit and charges the capacitor;
A method for controlling a power supply apparatus comprising:
A first switching step of switching a current value of the charging circuit to a first current value smaller than a current value before completion of charging of the capacitor after completion of charging of the capacitor;
A detection step of detecting a voltage value of the capacitor;
A determination step of determining whether the voltage value detected by the detection step is equal to or greater than a predetermined threshold;
When the voltage value detected in the detection step after completion of charging of the capacitor is less than a predetermined voltage value, a second current value supplied from the charging circuit is switched to a current value higher than the first current value. Switching process;
A specifying step of specifying the number of times that the current value supplied by the charging circuit is increased after the charging of the capacitor is completed and before the operation of the power load is completed;
An execution step of executing error processing based on the number of times specified in the specific step;
A control method characterized by comprising:
JP2015107868A 2015-05-27 2015-05-27 POWER SUPPLY DEVICE, PRINTER AND CONTROL METHOD Active JP6501616B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015107868A JP6501616B2 (en) 2015-05-27 2015-05-27 POWER SUPPLY DEVICE, PRINTER AND CONTROL METHOD

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015107868A JP6501616B2 (en) 2015-05-27 2015-05-27 POWER SUPPLY DEVICE, PRINTER AND CONTROL METHOD

Publications (2)

Publication Number Publication Date
JP2016221714A true JP2016221714A (en) 2016-12-28
JP6501616B2 JP6501616B2 (en) 2019-04-17

Family

ID=57746836

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015107868A Active JP6501616B2 (en) 2015-05-27 2015-05-27 POWER SUPPLY DEVICE, PRINTER AND CONTROL METHOD

Country Status (1)

Country Link
JP (1) JP6501616B2 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040085414A1 (en) * 2002-10-31 2004-05-06 Saksa Thomas A. Fluid ejecting methods and related circuits
US20070064039A1 (en) * 2005-09-21 2007-03-22 Samsung Electronics Co., Ltd. Apparatus and method of detecting abnormal condition of printhead
JP2007259633A (en) * 2006-03-24 2007-10-04 Nec Personal Products Co Ltd Charging circuit and charging control method
US20090295845A1 (en) * 2008-06-02 2009-12-03 Canon Kabushiki Kaisha Recording apparatus
JP2014000743A (en) * 2012-06-19 2014-01-09 Canon Inc Recording device
JP2014057471A (en) * 2012-09-13 2014-03-27 Toyota Motor Corp Vehicle control device and vehicle
JP2014219277A (en) * 2013-05-08 2014-11-20 株式会社デンソー Battery pack system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040085414A1 (en) * 2002-10-31 2004-05-06 Saksa Thomas A. Fluid ejecting methods and related circuits
US20070064039A1 (en) * 2005-09-21 2007-03-22 Samsung Electronics Co., Ltd. Apparatus and method of detecting abnormal condition of printhead
JP2007259633A (en) * 2006-03-24 2007-10-04 Nec Personal Products Co Ltd Charging circuit and charging control method
US20090295845A1 (en) * 2008-06-02 2009-12-03 Canon Kabushiki Kaisha Recording apparatus
JP2009286096A (en) * 2008-06-02 2009-12-10 Canon Inc Recording device
JP2014000743A (en) * 2012-06-19 2014-01-09 Canon Inc Recording device
JP2014057471A (en) * 2012-09-13 2014-03-27 Toyota Motor Corp Vehicle control device and vehicle
JP2014219277A (en) * 2013-05-08 2014-11-20 株式会社デンソー Battery pack system

Also Published As

Publication number Publication date
JP6501616B2 (en) 2019-04-17

Similar Documents

Publication Publication Date Title
JP6452548B2 (en) Power supply apparatus and control method
JP5843433B2 (en) Power supply device and image forming apparatus
US8534784B2 (en) Recording apparatus
JP2012050208A (en) Power supply circuit and equipment incorporating the same
US9219475B2 (en) Power arbitration method and apparatus having a control logic circuit for assessing and selecting power supplies
JP6419025B2 (en) Power supply device, printer, and control method
TWI661631B (en) Battery protection device and operation method thereof
JP2014000743A (en) Recording device
JP2016221714A (en) Power supply device, printer and control method
JP6548453B2 (en) Control device and control method thereof
JP6576103B2 (en) Power supply device, printer, and control method
JP2020025432A (en) Power supply device, control method of the same, and image reading device
EP3716011B1 (en) Power management integrated circuit
TWI487231B (en) Control methods for over voltage protection and control circuits for a power supply
JP5407466B2 (en) Power control method
JP5265044B2 (en) Recording device
JP2010259286A (en) Charging circuit
JP2023117026A (en) Driving device, driving method for driving device, image formation device, and power consumption device
JP5304332B2 (en) Image forming apparatus and image forming method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180517

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190212

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20190219

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190319

R151 Written notification of patent or utility model registration

Ref document number: 6501616

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151