JP6142696B2 - Printing apparatus, abnormality determination method and program - Google Patents

Printing apparatus, abnormality determination method and program Download PDF

Info

Publication number
JP6142696B2
JP6142696B2 JP2013136844A JP2013136844A JP6142696B2 JP 6142696 B2 JP6142696 B2 JP 6142696B2 JP 2013136844 A JP2013136844 A JP 2013136844A JP 2013136844 A JP2013136844 A JP 2013136844A JP 6142696 B2 JP6142696 B2 JP 6142696B2
Authority
JP
Japan
Prior art keywords
value
abnormality
unit
motor
reference value
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.)
Expired - Fee Related
Application number
JP2013136844A
Other languages
Japanese (ja)
Other versions
JP2015009464A (en
Inventor
潤 橋本
潤 橋本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2013136844A priority Critical patent/JP6142696B2/en
Publication of JP2015009464A publication Critical patent/JP2015009464A/en
Application granted granted Critical
Publication of JP6142696B2 publication Critical patent/JP6142696B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、印刷装置異常判定方法及びプログラムに関する。 The present invention relates to a printing apparatus , an abnormality determination method, and a program.

CPU(Central Processing Unit)等の制御装置の異常や暴走を検知する技術として、ウォッチドックタイマが知られている。ウォッチドックタイマは、例えばCPUから一定周期でリセット信号を受け付け、一定時間以上の間リセット信号が入力されないときにそのCPUがハングアップ等の異常状態に陥っていると判定する。   A watchdog timer is known as a technique for detecting an abnormality or runaway of a control device such as a CPU (Central Processing Unit). For example, the watchdog timer receives a reset signal from the CPU at a constant period, and determines that the CPU is in an abnormal state such as a hang-up when the reset signal is not input for a predetermined time or longer.

例えば、特許文献1は、CPUが間欠動作する機器でもCPUの異常の有無を監視できるウォッチドックタイマを開示している。特許文献1では、一定周期で出力されるパルスをカウントアップしたカウント値と予め設定された定数値とを比較し、比較結果に基づいてCPUの異常を検知する。このような手法において、特許文献1は、CPUが間欠動作しているか否かに応じて比較対象の定数値を動的に設定することにより、間欠動作するCPUについても適切に監視できる技術を開示している。   For example, Patent Document 1 discloses a watchdog timer that can monitor the presence or absence of an abnormality in a CPU even in a device in which the CPU operates intermittently. In Patent Document 1, a count value obtained by counting up pulses output at a constant period is compared with a preset constant value, and an abnormality of the CPU is detected based on the comparison result. In such a technique, Patent Document 1 discloses a technology that can appropriately monitor a CPU that operates intermittently by dynamically setting a constant value to be compared depending on whether or not the CPU is intermittently operating. doing.

特開平05−181709号公報Japanese Patent Laid-Open No. 05-181709

このような異常検知の技術において、例えばウォッチドックタイマによってパルスをカウントされるクロック自体が停止するような場合や、ウォッチドックタイマへのリセット信号の入力処理を含むプログラムを繰り返し実行するようなループに陥ってしまい、暴走しているにも拘わらずウォッチドックタイマで異常を検知できない場合等、CPUの異常を検知しにくい場合もある。そのため、より高い精度でCPU等の制御装置の異常を検知したいとの要望がある。   In such an abnormality detection technique, for example, when the clock itself counted by the watchdog timer is stopped, or in a loop that repeatedly executes a program including reset signal input processing to the watchdog timer. In some cases, it may be difficult to detect an abnormality in the CPU, such as when the watchdog timer cannot detect an abnormality even though it has runaway. Therefore, there is a demand for detecting an abnormality in a control device such as a CPU with higher accuracy.

また、特に印刷装置においては、CPUの機能により駆動を制御している装置が多く存在するため、高い精度でCPU等の制御装置の異常の有無を判定することは重要となる。   In particular, in a printing apparatus, since there are many apparatuses whose driving is controlled by the function of the CPU, it is important to determine whether there is an abnormality in a control apparatus such as a CPU with high accuracy.

本発明は制御装置に異常が生じたか否かの判定を高い精度で実現するために好適な印刷装置異常判定方法及びプログラムを提供することを目的とする。 The present invention is suitable printing device in order to realize the determination of whether an abnormality occurs in the control apparatus with high accuracy, and to provide an abnormality determination method, and a program.

上記目的を達成するため、本発明に係る印刷装置は、
判定基準値を格納するレジスタと、
前記レジスタに格納された前記判定基準値を、画像形成手段が画像形成を実行するときのタイミング信号のパルスのカウント値に基づいた新たな判定基準値に、更新する更新手段を有する制御手段と、
前記カウント値と、前記レジスタに格納された前記判定基準値と、の比較結果に基づいて、前記制御手段に異常が生じたか否かを判定する異常判定手段と、
を備え、
前記制御手段は、前記カウント値のうちの、前記異常判定手段による判定の対象となる少なくとも一部のビットの値を読み取る読み取り手段をさらに有し、当該読み取り手段が読み取った値よりも大きな値を前記判定基準値として算出し、
前記異常判定手段は、前記カウント値のうちの前記判定の対象となる前記少なくとも一部のビットの値と、前記レジスタに格納された前記判定基準値と、が一致した場合に、前記制御手段に前記異常が生じたと判定する、
ことを特徴とする。
また、上記目的を達成するため、本発明に係る異常判定方法は、
制御手段と、判定基準値を格納するレジスタと、を備える印刷装置における異常判定方法であって、
前記レジスタに格納された判定基準値を、画像形成手段が画像形成を実行するときのタイミング信号のパルスのカウント値に基づいた新たな判定基準値に更新するステップと、
前記カウント値と、前記レジスタに格納された前記判定基準値と、の比較結果に基づいて、前記制御手段に異常が生じたか否かを判定するステップと、
を有し、
前記更新するステップは、前記カウント値のうちの判定の対象となる少なくとも一部のビットの値を読み取り、読み取った値よりも大きな値を前記判定基準値として算出し、
前記判定するステップは、前記カウント値のうちの前記判定の対象となる前記少なくとも一部のビットの値と、前記レジスタに格納された前記判定基準値と、が一致した場合に、前記制御手段に前記異常が生じたと判定する、
ことを特徴とする。
また、上記目的を達成するため、本発明に係るプログラムは、
制御手段と、判定基準値を格納するレジスタと、を備えるコンピュータに、
前記レジスタに格納された判定基準値を、画像形成手段が画像形成を実行するときのタイミング信号のパルスのカウント値に基づいた新たな判定基準値に更新させる手段、
前記カウント値と、前記レジスタに格納された前記判定基準値と、の比較結果に基づいて、前記制御手段に異常が生じたか否かを判定させる手段、
として機能させ、
前記更新させる手段は、前記カウント値のうちの判定の対象となる少なくとも一部のビットの値を読み取らせ、読み取った値よりも大きな値を前記判定基準値として算出させ、
前記判定させる手段は、前記カウント値のうちの前記判定の対象となる前記少なくとも一部のビットの値と、前記レジスタに格納された前記判定基準値と、が一致した場合に、前記制御手段に前記異常が生じたと判定させる、
ことを特徴とする。
In order to achieve the above object, a printing apparatus according to the present invention includes:
A register for storing a judgment reference value;
A control unit having an updating unit that updates the determination reference value stored in the register to a new determination reference value based on a pulse count value of a timing signal when the image forming unit executes image formation;
An abnormality determination means for determining whether an abnormality has occurred in the control means based on a comparison result between the count value and the determination reference value stored in the register;
With
The control unit further includes a reading unit that reads a value of at least a part of the count value to be determined by the abnormality determination unit, and sets a value larger than the value read by the reading unit. Calculated as the criterion value,
The abnormality determination means, when the value of the at least some of the count values to be determined and the determination reference value stored in the register match, the control means It is determined that the abnormality has occurred.
It is characterized by that.
Further, in order to achieve the above object, the abnormality determination method according to the present invention includes:
An abnormality determination method in a printing apparatus comprising a control means and a register for storing a determination reference value,
Updating the determination reference value stored in the register to a new determination reference value based on a pulse count value of a timing signal when the image forming unit executes image formation;
Determining whether an abnormality has occurred in the control unit based on a comparison result between the count value and the determination reference value stored in the register;
Have
The updating step reads the value of at least some of the count values to be determined, calculates a value larger than the read value as the determination reference value,
In the determination step, when the value of the at least some of the count values to be determined and the determination reference value stored in the register match, the control means It is determined that the abnormality has occurred.
It is characterized by that.
In order to achieve the above object, a program according to the present invention provides:
In a computer comprising control means and a register for storing a judgment reference value,
Means for updating the determination reference value stored in the register to a new determination reference value based on a pulse count value of a timing signal when the image forming means executes image formation;
Means for determining whether an abnormality has occurred in the control means based on a comparison result between the count value and the determination reference value stored in the register;
Function as
The means for updating causes the value of at least a part of bits to be determined in the count value to be read, and causes a value larger than the read value to be calculated as the determination reference value.
The means for determining determines the control means when the value of the at least some bits to be determined of the count value matches the determination reference value stored in the register. Determining that the abnormality has occurred;
It is characterized by that.

本発明によれば、制御装置に異常が生じたか否かの判定を高い精度で実現するのに好適な印刷装置異常判定方法及びプログラムを提供することができる。 According to the present invention, it is possible to provide a printing apparatus , an abnormality determination method, and a program suitable for realizing with high accuracy the determination as to whether or not an abnormality has occurred in the control device.

本実施形態に係る印刷装置の全体構成を模式的に示す図である。1 is a diagram schematically illustrating an overall configuration of a printing apparatus according to an embodiment. 本実施形態に係る印刷システムにおける端末装置及び印刷装置の制御に係る構成を示す図である。It is a figure which shows the structure which concerns on the control of the terminal device and printing apparatus in the printing system which concerns on this embodiment. 印刷装置におけるヘッド制御部の構成を示す図である。It is a figure which shows the structure of the head control part in a printing apparatus. ヘッド制御部における基本タイミング生成部の詳細な構成を示す図である。It is a figure which shows the detailed structure of the basic timing production | generation part in a head control part. 各種設定条件に応じたタイミング信号の周波数及び周期等の例と、さらにモータ停止時間に応じて導出された増分値の例と、を示す図である。It is a figure which shows the example of the frequency of a timing signal according to various setting conditions, a period, etc., and the example of the incremental value derived | led-out further according to the motor stop time. 印刷装置におけるCPUの機能構成を示す図である。It is a figure which shows the function structure of CPU in a printing apparatus. カウンタの値とこれに応じて算出された判定基準値との例を示す図である。It is a figure which shows the example of the value of a counter, and the criterion value calculated according to this. CPUクロックが正常に動作しているときの各種制御信号のタイムチャートである。It is a time chart of various control signals when the CPU clock is operating normally. CPUクロックに異常が発生したときの各種制御信号のタイムチャートである。It is a time chart of various control signals when abnormality occurs in the CPU clock. 本実施形態に係る印刷システムにおいて実行される処理の流れを示すフローチャートである。6 is a flowchart showing a flow of processing executed in the printing system according to the embodiment. CPUが実行する判定基準値の設定処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the setting process of the determination reference value which CPU performs. FPGAが実行する異常判定処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the abnormality determination process which FPGA performs.

以下、本発明の実施形態について、図面を参照して説明する。なお、図中同一又は相当する部分には同一符号を付す。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the drawings, the same or corresponding parts are denoted by the same reference numerals.

以下に説明する実施形態は説明のためのものであり、本発明の範囲を制限するものではない。したがって、当業者であれば下記の各構成要素を均等なものに置換した実施形態を採用することが可能であるが、これらの実施形態も本発明の範囲に含まれる。また、以下の説明では、本発明の理解を容易にするため、重要でない公知の技術的事項の説明を適宜省略する。   The embodiments described below are for illustrative purposes and do not limit the scope of the present invention. Accordingly, those skilled in the art can employ embodiments in which the following components are replaced with equivalent ones, and these embodiments are also included in the scope of the present invention. Further, in the following description, in order to facilitate understanding of the present invention, description of known unimportant technical matters is appropriately omitted.

図1に、本発明の実施形態に係る印刷装置の全体構成を示す。以下では、印刷装置1として、電子写真式で二次転写方式のタンデム型のカラープリンタを例にとって説明する。印刷装置1は、画像形成部2と、中間転写部3と、給紙部4と、定着部5と、を備える。   FIG. 1 shows the overall configuration of a printing apparatus according to an embodiment of the present invention. Hereinafter, as the printing apparatus 1, an electrophotographic tandem type color printer will be described as an example. The printing apparatus 1 includes an image forming unit 2, an intermediate transfer unit 3, a paper feeding unit 4, and a fixing unit 5.

画像形成部2は、4つの画像形成ユニット6(6k、6c、6m、6y)が直列して設置された構成を備える。この4つの画像形成ユニット6のうちの上流側(図1における右側)の3つの画像形成ユニット6c、6m、6yは、それぞれ減法混色の三原色であるシアン(C)、マゼンタ(M)、イエロー(Y)のカラートナーによるカラー画像を形成する。一方、下流側(図1における左側)の画像形成ユニット6kは、主としてパターン(文字や記号を含む)や画像の暗黒部分等に用いられるブラック(K)トナーによるモノクロ画像を形成する。画像形成部2は、画像形成手段として機能する。   The image forming unit 2 has a configuration in which four image forming units 6 (6k, 6c, 6m, 6y) are installed in series. Of the four image forming units 6, three image forming units 6c, 6m, 6y on the upstream side (the right side in FIG. 1) are subtractive mixed primary colors cyan (C), magenta (M), yellow ( A color image is formed with the color toner of Y). On the other hand, the image forming unit 6k on the downstream side (left side in FIG. 1) forms a monochrome image using black (K) toner that is mainly used for patterns (including characters and symbols) and dark portions of the image. The image forming unit 2 functions as an image forming unit.

各画像形成ユニット6は、最下部に感光体ドラム7を備える。この感光体ドラム7は、その周面が例えば有機光導電性材料で構成され、給紙部4から供給される印刷用の記録媒体としての印刷用紙に転写するためのトナー像を担持する。   Each image forming unit 6 includes a photosensitive drum 7 at the bottom. The photosensitive drum 7 has a peripheral surface made of, for example, an organic photoconductive material, and carries a toner image to be transferred to a printing paper as a printing recording medium supplied from the paper supply unit 4.

各画像形成ユニット6は、さらに感光体ドラム7の周囲を取り巻くように、感光体ドラム7の表面を帯電させる帯電器9と、印刷要求がされた印刷データに基づく画像光を感光体ドラム7上に露光する印刷ヘッド10と、印刷ヘッド10の露光によって感光体ドラム7上に形成された静電潜像を各色のトナーによってトナー像に現像する現像ローラ11と、現像ローラ11にトナーを供給するトナー供給ローラ12と、感光体ドラム7の表面の付着物をこの表面に当接するクリーニングブレードによって除去する感光体クリーナ8と、を備える。   Each image forming unit 6 further includes a charger 9 for charging the surface of the photoconductive drum 7 so as to surround the photoconductive drum 7, and image light based on print data requested for printing on the photoconductive drum 7. A print head 10 that is exposed to light, a developing roller 11 that develops an electrostatic latent image formed on the photosensitive drum 7 by exposure of the print head 10 into a toner image with toner of each color, and a toner that is supplied to the developing roller 11 A toner supply roller 12 and a photoreceptor cleaner 8 that removes deposits on the surface of the photoreceptor drum 7 by a cleaning blade in contact with the surface are provided.

ここで、印刷ヘッド10は、多数の微少サイズのLED(Light Emitting Diode)素子が主走査方向(感光体ドラム7の軸方向)に沿って直線上に配列されたLEDアレイを備える。このLED素子は、印刷データに基づいて個別の駆動タイミングで駆動し、LED素子からの光照射によって一様に帯電された感光体ドラム7を露光して、感光体ドラム7の表面の電荷を放電させる。これにより、露光像に対応した静電潜像が感光体ドラム7に形成され、この静電潜像を現像ローラ11から静電気力により吸着されるトナーによって現像して、可視像化する。   Here, the print head 10 includes an LED array in which a large number of LED (Light Emitting Diode) elements having a very small size are arranged in a straight line along the main scanning direction (the axial direction of the photosensitive drum 7). This LED element is driven at an individual driving timing based on the print data, exposes the photosensitive drum 7 uniformly charged by light irradiation from the LED element, and discharges the surface charge of the photosensitive drum 7. Let As a result, an electrostatic latent image corresponding to the exposure image is formed on the photosensitive drum 7, and this electrostatic latent image is developed with toner adsorbed by the electrostatic force from the developing roller 11 to be visualized.

なお、図1ではブラック(K)用の画像形成ユニット6kの構成にのみ符号を付しているが、各画像形成ユニット6は、トナー容器に収納されたトナーの色を除いて同じ構成を備える。   In FIG. 1, only the configuration of the image forming unit 6k for black (K) is provided with a reference numeral, but each image forming unit 6 has the same configuration except for the color of the toner stored in the toner container. .

中間転写部3は、印刷装置1の内部のほぼ中央で、図1における左右のほぼ端から端まで扁平なループ状になって延在する無端状の転写ベルト13と、この転写ベルト13を掛け渡されて転写ベルト13を図1における反時計回り方向に循環移動させるベルト駆動ローラ14と、4つの画像形成ユニット6k、6c、6m、6yに対応する4個の一次転写ローラ15と、転写ベルト13を介してベルト駆動ローラ14に圧接するように配設された二次転写ローラ16と、を備える。   The intermediate transfer portion 3 is hung by an endless transfer belt 13 extending in a flat loop shape from substantially the left and right sides in FIG. A belt drive roller 14 that is passed and circulates and moves the transfer belt 13 counterclockwise in FIG. 1, four primary transfer rollers 15 corresponding to the four image forming units 6k, 6c, 6m, and 6y, and a transfer belt. 13 and a secondary transfer roller 16 disposed so as to be in pressure contact with the belt driving roller 14 via 13.

一次転写ローラ15は、転写ベルト13を介して感光体ドラム7の下部周面に押圧するための導電性発泡スポンジによって構成され、感光体ドラム7に現像された各色のトナー像を合成画像に形成すべく転写ベルト13上に各色のトナー像を転写する。   The primary transfer roller 15 is composed of a conductive foam sponge for pressing against the lower peripheral surface of the photosensitive drum 7 via the transfer belt 13, and forms toner images of each color developed on the photosensitive drum 7 into a composite image. Therefore, the toner image of each color is transferred onto the transfer belt 13.

転写ベルト13は、一次転写ローラ15によって感光体ドラム7から一次転写されたトナー像をその表面に担持し、給紙部4から供給される印刷用の記録媒体としての印刷用紙に二次転写すべく二次転写ローラ16の位置まで移動搬送する。二次転写ローラ16は、二次転写ローラ16の位置まで移動搬送された転写ベルト13上のトナー像を給紙部4から搬送された印刷用紙に二次転写する。   The transfer belt 13 carries the toner image primarily transferred from the photosensitive drum 7 by the primary transfer roller 15 on the surface thereof, and secondarily transfers the toner image to a printing sheet as a printing recording medium supplied from the paper feeding unit 4. Therefore, it is moved and conveyed to the position of the secondary transfer roller 16. The secondary transfer roller 16 secondarily transfers the toner image on the transfer belt 13 moved and conveyed to the position of the secondary transfer roller 16 onto the printing paper conveyed from the paper feeding unit 4.

給紙部4は、印刷出力するための印刷用紙等の記録媒体(以下、印刷用紙という。)を収容するための収容部材である。給紙部4に収容された印刷用紙は、印刷出力の際に順次給紙ローラ17及び搬送ローラ18によって二次転写の位置まで搬送され、その表面に出力要求がされたトナー像が転写される。   The paper feeding unit 4 is a housing member for housing a recording medium such as printing paper for printing out (hereinafter referred to as printing paper). The printing paper stored in the paper feeding unit 4 is sequentially conveyed to the secondary transfer position by the paper feeding roller 17 and the conveying roller 18 at the time of print output, and the toner image requested to be output is transferred to the surface thereof. .

定着部5は、二次転写ローラ16の下流(図1では上方)に配置される。定着部5は、ヒータを内蔵した加熱ローラ19aと、この加熱ローラに圧接する加圧ローラ19bと、を備え、二次転写された印刷用紙のトナー像を熱定着する。トナー像が熱定着した印刷用紙は、排紙トレイに排出される。   The fixing unit 5 is disposed downstream (upward in FIG. 1) of the secondary transfer roller 16. The fixing unit 5 includes a heating roller 19a having a built-in heater and a pressure roller 19b in pressure contact with the heating roller, and thermally fixes the toner image on the second-transferred printing paper. The printing paper on which the toner image is thermally fixed is discharged to a paper discharge tray.

なお、感光体ドラム7、トナー供給ローラ12、ベルト駆動ローラ14、給紙ローラ17、搬送ローラ18、加熱ローラ19a、加圧ローラ19b等の各種ローラは、それぞれ、不図示のドラム駆動モータ、トナー供給モータ、ベルト駆動モータ、給紙モータ、定着モータ等により回転駆動して、上述した各部材の機能を果たす。   Various rollers such as the photosensitive drum 7, the toner supply roller 12, the belt driving roller 14, the paper feeding roller 17, the conveying roller 18, the heating roller 19a, and the pressure roller 19b are respectively a drum driving motor and a toner (not shown). It is rotated by a supply motor, a belt drive motor, a paper feed motor, a fixing motor, etc., and fulfills the function of each member described above.

このような構成を有する印刷装置1は、図2に示すように、端末装置60と組み合わせて印刷システム50を構成する。以下、図2を参照して、印刷システム50における端末装置60及び印刷装置1の制御に係る構成について説明する。   The printing apparatus 1 having such a configuration constitutes a printing system 50 in combination with a terminal device 60 as shown in FIG. Hereinafter, the configuration related to the control of the terminal device 60 and the printing apparatus 1 in the printing system 50 will be described with reference to FIG.

端末装置60は、例えばPC(Personal Computer)等の情報処理装置であって、LAN(Local Area Network)及びUSB(Universal Serial Bus)を介して印刷装置1と接続される。より詳細には、端末装置60は、制御部61と、通信部62と、操作部63と、表示部64と、記憶部65と、を備える。   The terminal device 60 is an information processing device such as a PC (Personal Computer), for example, and is connected to the printing device 1 via a LAN (Local Area Network) and a USB (Universal Serial Bus). More specifically, the terminal device 60 includes a control unit 61, a communication unit 62, an operation unit 63, a display unit 64, and a storage unit 65.

制御部61は、例えばCPU(Central Processing Unit)と、CPUのメインメモリとして機能するRAM(Random Access Memory)等を備える。制御部61は、命令やデータを転送するための伝送経路であるシステムバスを介して端末装置60の各部と接続され、端末装置60全体を制御する。   The control unit 61 includes, for example, a CPU (Central Processing Unit) and a RAM (Random Access Memory) that functions as a main memory of the CPU. The control unit 61 is connected to each unit of the terminal device 60 via a system bus that is a transmission path for transferring commands and data, and controls the entire terminal device 60.

通信部62は、制御部61の制御のもと、USB又はLANを介して印刷装置1等の外部の機器との通信を行う。   The communication unit 62 communicates with an external device such as the printing apparatus 1 via the USB or LAN under the control of the control unit 61.

操作部63は、例えばマウスやキーボード等の入力装置を備える。操作部63は、ユーザからの各種操作を受け付け、受け付けた各種操作にそれぞれ対応する操作信号を制御部61に供給する。例えば、操作部63は、ユーザの操作に従って、印刷条件を設定するための信号や、印刷を実行するための信号を制御部61に供給する。   The operation unit 63 includes an input device such as a mouse or a keyboard. The operation unit 63 receives various operations from the user, and supplies operation signals corresponding to the received various operations to the control unit 61. For example, the operation unit 63 supplies a signal for setting printing conditions and a signal for executing printing to the control unit 61 in accordance with a user operation.

表示部64は、例えばCRT(Cathode Ray Tube)やLCD(Liquid Crystal Display)等の表示装置を備える。表示部64は、制御部61から供給される各種画像データに基づいて各種画像を画面に表示する。   The display unit 64 includes a display device such as a CRT (Cathode Ray Tube) or an LCD (Liquid Crystal Display). The display unit 64 displays various images on the screen based on the various image data supplied from the control unit 61.

記憶部65は、例えばHDD(Hard Disk Drive)、ROM(Read Only Memory)、フラッシュメモリ等の記憶装置を備える。記憶部65は、OS(Operating System)や各種のアプリケーションプログラム等、制御部61が各種処理を行うために使用する各種プログラム及びデータ、制御部61が各種処理を行うことにより生成又は取得する各種データを記憶する。   The storage unit 65 includes a storage device such as a hard disk drive (HDD), a read only memory (ROM), and a flash memory. The storage unit 65 includes various programs and data used for the control unit 61 to perform various processes, such as an OS (Operating System) and various application programs, and various data generated or acquired by the control unit 61 performing various processes. Remember.

例えば、端末装置60においてユーザが所望の印刷対象の印刷指示を所定のアプリケーションを介して行うと、制御部61は、印刷対象の印刷データをコマンドデータに変換して、スプーラに一旦保存する。端末装置60と印刷装置1とがUSBで接続されている場合は、スプーラに保存されたコマンドデータは、スプーラから通信部62を介して直接印刷装置1へ送信される。一方、端末装置60とネットワークで接続されているプリンタサーバ経由で印刷を行う場合は、端末装置60においてスプーラに保存されたコマンドデータは、通信部62を介してプリンタサーバ内のスプーラへ転送され、プリンタサーバ内のスプーラから印刷装置1へ送信される。   For example, when the user issues a print instruction for a desired print target in the terminal device 60 via a predetermined application, the control unit 61 converts the print data to be printed into command data and temporarily stores it in the spooler. When the terminal device 60 and the printing device 1 are connected via USB, the command data stored in the spooler is directly transmitted from the spooler to the printing device 1 via the communication unit 62. On the other hand, when printing is performed via a printer server connected to the terminal device 60 via a network, the command data stored in the spooler in the terminal device 60 is transferred to the spooler in the printer server via the communication unit 62. The data is transmitted from the spooler in the printer server to the printing apparatus 1.

一方、印刷装置1は、I/F(Interface)コントローラ20と、エンジン制御部30と、を備える。さらに、I/Fコントローラ20は、受信制御部21と、ROM22と、フォントROM23と、表示制御部24と、ビデオI/F制御部25と、メモリ26(標準RAM26a及び拡張RAM26b)と、圧縮/伸張制御部27と、CPU28と、を備える。   On the other hand, the printing apparatus 1 includes an I / F (Interface) controller 20 and an engine control unit 30. Furthermore, the I / F controller 20 includes a reception control unit 21, a ROM 22, a font ROM 23, a display control unit 24, a video I / F control unit 25, a memory 26 (standard RAM 26a and expansion RAM 26b), a compression / An expansion control unit 27 and a CPU 28 are provided.

受信制御部21は、端末装置60からの印刷データ等のコマンドデータを受信し、受信バッファとして機能するメモリ26へDMA(Direct Memory Access)転送する。メモリ26に転送され、保存された印刷データは、CPU28の制御に従って解析され、ビデオデータ(ビットマップデータ)に変換されて、メモリ26の描画エリアに描画される。   The reception control unit 21 receives command data such as print data from the terminal device 60 and transfers it to the memory 26 functioning as a reception buffer by DMA (Direct Memory Access). The print data transferred to and saved in the memory 26 is analyzed under the control of the CPU 28, converted into video data (bitmap data), and drawn in the drawing area of the memory 26.

ビデオデータの描画が1ページ分完了すると、ビデオI/F制御部25は、エンジン制御部30へ印刷の開始を指定する。すると、描画エリアのビデオデータは、圧縮/伸張制御部27によって圧縮及び伸張され、エンジン制御部30からの水平同期信号に同期して1走査ライン毎にビデオI/F制御部25からエンジン制御部30にDMA転送される。   When the drawing of the video data is completed for one page, the video I / F control unit 25 instructs the engine control unit 30 to start printing. Then, the video data in the drawing area is compressed and expanded by the compression / decompression control unit 27 and synchronized with the horizontal synchronization signal from the engine control unit 30 for each scanning line from the video I / F control unit 25 to the engine control unit. DMA transfer to 30.

また、ビデオI/F制御部25は、給紙口の選択や解像度の指定等といったエンジンの指定や、ジャム等のエンジンの状態の受信も行う。受信されたエンジンの状態は、受信制御部21によって端末装置60へと通知される。   The video I / F control unit 25 also performs engine specification such as paper feed port selection and resolution specification, and reception of engine status such as jam. The received engine state is notified to the terminal device 60 by the reception control unit 21.

表示制御部24は、各種のパターン(文字や記号を含む)や画像を例えばLCD等の表示パネルに表示する。表示制御部24は、例えば印刷装置1の状態を表す情報を表示パネルに表示して、トナーや印刷用紙の残量やジャム等のような印刷装置1の状態をユーザに報知する。   The display control unit 24 displays various patterns (including characters and symbols) and images on a display panel such as an LCD. The display control unit 24 displays information indicating the state of the printing apparatus 1 on the display panel, for example, and notifies the user of the state of the printing apparatus 1 such as toner, the remaining amount of printing paper, and jam.

CPU28は、システムバスを介してI/Fコントローラ20の各部と接続され、各部の動作を制御する。CPU28は、メモリ26をワークメモリとして用いながら、ROM22に記憶されている制御プログラムやフォントROM23に記憶されているプリンタフォント等を読み出し、適宜実行する。   The CPU 28 is connected to each part of the I / F controller 20 via the system bus and controls the operation of each part. The CPU 28 reads out the control program stored in the ROM 22, the printer font stored in the font ROM 23, and the like as appropriate while using the memory 26 as a work memory.

一方、エンジン制御部30は、FPGA(Field-Programmable Gate Array)31と、CPU32と、定着制御部33と、高圧制御部34と、を備える。   On the other hand, the engine control unit 30 includes an FPGA (Field-Programmable Gate Array) 31, a CPU 32, a fixing control unit 33, and a high-pressure control unit 34.

FPGA31は、さらにヘッド制御部100とモータ制御部150a、150bとを備え、詳細は後述するように、それぞれ印刷ヘッド10とメインモータ41とを制御する。ここで、メインモータ41とは、ドラム駆動モータ、トナー供給モータ、ベルト駆動モータ、給紙モータ、定着モータ等の印刷装置1が備える各種モータを表す。   The FPGA 31 further includes a head control unit 100 and motor control units 150a and 150b, and controls the print head 10 and the main motor 41, respectively, as will be described in detail later. Here, the main motor 41 represents various motors included in the printing apparatus 1 such as a drum drive motor, a toner supply motor, a belt drive motor, a paper feed motor, and a fixing motor.

また、FPGA31は、紙ソレノイドや待機クラッチ等、各種の負荷42の駆動を制御する。その他にも、FPGA31は、印刷用紙の有無、印刷用紙のサイズ、トレイの開閉等を検知する各種のセンサ43による検出信号を取得し、印刷ヘッド10やメインモータ41の制御に反映させる。   The FPGA 31 controls driving of various loads 42 such as a paper solenoid and a standby clutch. In addition, the FPGA 31 acquires detection signals from various sensors 43 that detect the presence / absence of printing paper, the size of printing paper, the opening / closing of a tray, and the like, and reflect them in the control of the print head 10 and the main motor 41.

CPU32は、不図示のROM及びRAMをワークメモリとして用いながらエンジン制御部30内の各部の動作を制御する制御手段として機能し、後述する異常検知部により異常が生じたか否かを判定される対象である。CPU32の内部又は外部には不図示のクロック(例えば周波数が100MHzのクロック)が設置され、CPU32は、このクロックから供給されるクロックパルスを介してエンジン制御部30内の各部に制御信号を送る。   The CPU 32 functions as a control unit that controls the operation of each unit in the engine control unit 30 while using a ROM and a RAM (not shown) as a work memory, and is an object for determining whether or not an abnormality has occurred by an abnormality detection unit described later. It is. A clock (not shown) (for example, a clock having a frequency of 100 MHz) is installed inside or outside of the CPU 32, and the CPU 32 sends a control signal to each part in the engine control unit 30 via a clock pulse supplied from this clock.

また、CPU32は、上述の定着部5に配設された定着サーミスタ44から加熱ローラ19aの検出温度の情報を取得し、定着制御部33は、取得した検出温度を参照しながら、加熱ローラ19aに配設された定着ヒータ45に温度制御信号を出力する。さらに、高圧制御部34は、高圧部46に高電圧制御信号を出力する。   Further, the CPU 32 acquires information on the detected temperature of the heating roller 19a from the fixing thermistor 44 disposed in the fixing unit 5, and the fixing control unit 33 refers to the acquired detected temperature to the heating roller 19a. A temperature control signal is output to the fixing heater 45 provided. Further, the high voltage control unit 34 outputs a high voltage control signal to the high voltage unit 46.

ヘッド制御部100は、印刷制御手段として、4色のトナー用の画像形成ユニット6(6k、6c、6m、6y)のそれぞれが有する印刷ヘッド10を制御して、要求された印刷処理を実行する。具体的に説明すると、ヘッド制御部100は、印刷用紙への出力を要求されると、走査ラインのタイミングを制御しながら出力すべきビデオデータを印刷ヘッド10に送信して静電潜像を感光体ドラム7上に形成することにより、要求に従った印刷出力処理を実行する。   The head control unit 100 controls the print head 10 included in each of the four color toner image forming units 6 (6k, 6c, 6m, 6y) as print control means, and executes the requested print processing. . More specifically, when requested to output to the printing paper, the head control unit 100 transmits the video data to be output to the print head 10 while controlling the timing of the scanning line, and sensitizes the electrostatic latent image. By forming on the body drum 7, a print output process according to the request is executed.

図3を参照して、ヘッド制御部100の構成をより詳細に説明する。   With reference to FIG. 3, the configuration of the head controller 100 will be described in more detail.

ヘッド制御部100は、ビデオI/F制御部101と、ビデオRAM102と、CPUI/F制御部103と、ヘッドI/F制御部110と、基本タイミング生成部120と、を備え、これら各部はCPUバスを介して互いに接続されている。   The head control unit 100 includes a video I / F control unit 101, a video RAM 102, a CPU I / F control unit 103, a head I / F control unit 110, and a basic timing generation unit 120, each of which is a CPU. They are connected to each other via a bus.

ビデオI/F制御部101は、上述のI/Fコントローラ20との間で、印刷START信号(/START)、垂直同期信号(/VSYNC)、水平同期信号(/HSYNC)、ビデオデータ(/Video[3:0])、及びビデオクロック信号(/VCLK)の授受を行う。   The video I / F control unit 101 communicates with the above-described I / F controller 20 for a print START signal (/ START), a vertical synchronization signal (/ VSYNC), a horizontal synchronization signal (/ HSYNC), and video data (/ Video). [3: 0]) and a video clock signal (/ VCLK).

また、ビデオI/F制御部101は、ビデオRAM102に接続され、I/Fコントローラ20から受信したビデオデータ(/Video[3:0])をビデオRAM102に格納し、ドットパターン生成部111の要求に応じて順次ビデオデータ(/Video[3:0])をドットパターン生成部111に転送する。   The video I / F control unit 101 is connected to the video RAM 102, stores the video data (/ Video [3: 0]) received from the I / F controller 20 in the video RAM 102, and requests the dot pattern generation unit 111. The video data (/ Video [3: 0]) is sequentially transferred to the dot pattern generation unit 111 in accordance with.

CPUI/F制御部103は、CPU32からの制御信号を受け付け、CPUバスを介してヘッド制御部100の各部に供給する。例えば、CPUI/F制御部103は、アドレスデコード及び各モジュールのレジスタ群及びI/O(In/Out)ポートのリード/ライトを行う。また、CPUI/F制御部103は、印刷ヘッド10内のヘッド情報ROM10aから、印刷ヘッド10の制御に用いるための各種情報を取得する。   The CPU I / F control unit 103 receives a control signal from the CPU 32 and supplies the control signal to each unit of the head control unit 100 via the CPU bus. For example, the CPU I / F control unit 103 performs address decoding and reading / writing of a register group of each module and an I / O (In / Out) port. In addition, the CPU I / F control unit 103 acquires various information used for controlling the print head 10 from the head information ROM 10 a in the print head 10.

ヘッドI/F制御部110は、ヘッド制御部100から印刷ヘッド10へ印刷すべきデータを出力するためのインターフェイスとして機能する。より詳細には、ヘッドI/F制御部110は、ドットパターン生成部111と、ヘッドデータ送信部112と、ヘッド制御信号生成部113と、ストローブ信号生成部114と、を備える。   The head I / F control unit 110 functions as an interface for outputting data to be printed from the head control unit 100 to the print head 10. More specifically, the head I / F control unit 110 includes a dot pattern generation unit 111, a head data transmission unit 112, a head control signal generation unit 113, and a strobe signal generation unit 114.

ドットパターン生成部111は、ビデオI/F制御部101から供給されるビデオデータ(/Video[3:0])の各ドット(各画素)を階調値に基づいて複数の微画素に展開し、ドットパターンデータを生成する。   The dot pattern generation unit 111 develops each dot (each pixel) of the video data (/ Video [3: 0]) supplied from the video I / F control unit 101 into a plurality of fine pixels based on the gradation value. Generate dot pattern data.

微画素とは、色の濃淡を表現するために1画素をさらに細かく分けた単位である。例えば、各色の濃淡を4階調で表現する場合、ビデオデータ(/Video[3:0])の各画素は、副走査方向に3つの微画素に分割される。この場合、ドットパターン生成部111は、ビデオデータ(/Video[3:0])が有する画素のうちの、階調値が3の画素、すなわち最大濃度で印刷する画素については3つの微画素すべてにトナーが塗布され、階調値が2の画素については2つの微画素にトナーが塗布され、階調値が1の画素については1つの微画素にトナーが塗布され、階調値が0の画素、すなわち印刷しない画素については3つの微画素すべてにトナーが塗布されないように、ドットパターンデータを生成する。   A fine pixel is a unit in which one pixel is further divided in order to express color shading. For example, when the shade of each color is expressed by four gradations, each pixel of the video data (/ Video [3: 0]) is divided into three fine pixels in the sub-scanning direction. In this case, the dot pattern generation unit 111 uses all three fine pixels for pixels with a gradation value of 3, that is, pixels printed at the maximum density, among the pixels included in the video data (/ Video [3: 0]). In the case of a pixel having a gradation value of 2, toner is applied to two fine pixels. For a pixel having a gradation value of 1, toner is applied to one fine pixel, and the gradation value is 0. For the pixels, that is, the pixels that are not printed, dot pattern data is generated so that toner is not applied to all three fine pixels.

ヘッドデータ送信部112は、ヘッド制御信号生成部113が生成したドットクロック信号(DCLK)の指示に従って、ドットパターン生成部111が生成したドットパターンデータを順次印刷ヘッド10に転送する。   The head data transmission unit 112 sequentially transfers the dot pattern data generated by the dot pattern generation unit 111 to the print head 10 in accordance with the instruction of the dot clock signal (DCLK) generated by the head control signal generation unit 113.

ヘッド制御信号生成部113は、基本タイミング生成部120によって生成された各種タイミング信号に従って、水平同期信号(/HD−HSYNC)、ドットクロック信号(DCLK)等のヘッド制御信号を生成する。   The head control signal generator 113 generates head control signals such as a horizontal synchronization signal (/ HD-HSYNC) and a dot clock signal (DCLK) according to various timing signals generated by the basic timing generator 120.

ストローブ信号生成部114は、ドットパターン生成部111によって生成されたドットパターンデータに従った印刷を実行するため、印刷ヘッド10の露光タイミングを指示するストローブ信号(STROBE−N)を生成する。印刷ヘッド10は、このストローブ信号に従って規定時間の間ヘッドを露光することにより、感光体ドラム7の表面に静電潜像を形成する。   The strobe signal generation unit 114 generates a strobe signal (STROBE-N) that indicates the exposure timing of the print head 10 in order to execute printing according to the dot pattern data generated by the dot pattern generation unit 111. The print head 10 forms an electrostatic latent image on the surface of the photosensitive drum 7 by exposing the head for a specified time according to the strobe signal.

例えば、1個の画素を副走査方向に2分割してドットパターンデータを生成した場合、1ドット長の走査ラインの画像を形成するために副走査方向に対して2回時期をずらして露光する必要があるため、ストローブ信号生成部114は、サブライン(1/2)とサブライン(2/2)との2種類のタイミングに対応したストローブ信号(STROBE−N)を生成する。同様に、1個の画素を副走査方向に3分割してドットパターンデータを生成した場合は、ストローブ信号生成部114は、サブライン(1/3)とサブライン(2/3)とサブライン(3/3)との3種類のタイミングに対応したストローブ信号(STROBE−N)を生成する。   For example, when dot pattern data is generated by dividing one pixel into two in the sub-scanning direction, exposure is performed with the timing shifted twice with respect to the sub-scanning direction in order to form an image of a scanning line of one dot length. Since it is necessary, the strobe signal generation unit 114 generates a strobe signal (STROBE-N) corresponding to two types of timings of the subline (1/2) and the subline (2/2). Similarly, when dot pattern data is generated by dividing one pixel into three in the sub-scanning direction, the strobe signal generation unit 114 performs sub-line (1/3), sub-line (2/3), and sub-line (3 / A strobe signal (STROBE-N) corresponding to the three types of timings 3) and 3) is generated.

基本タイミング生成部120は、印刷装置1が印刷を実行するときの各種タイミング信号を生成する。より詳細には、基本タイミング生成部120は、タイミング信号生成部121と、カウンタ122と、コンペア123と、モータタイマカウンタ124と、を備える。以下、図4を参照して、基本タイミング生成部120の詳細な構成について説明する。   The basic timing generation unit 120 generates various timing signals when the printing apparatus 1 executes printing. More specifically, the basic timing generation unit 120 includes a timing signal generation unit 121, a counter 122, a compare 123, and a motor timer counter 124. Hereinafter, the detailed configuration of the basic timing generation unit 120 will be described with reference to FIG.

図4において、タイミング信号生成部121は、タイミング信号を生成し、生成したタイミング信号をカウンタ122に出力する。タイミング信号は、画像形成部2が給紙部4から搬送された印刷用紙に画像形成を実行するときのタイミング、すなわち印刷装置1における画像形成処理や印刷用紙の搬送処理の同期タイミングを制御するための信号である。このタイミング信号生成部121が生成したタイミング信号に従って上述の水平同期信号(/HD−HSYNC)やドットクロック信号(DCLK)等の信号が生成される。タイミング信号生成部121は、タイミング信号生成手段として機能する。   In FIG. 4, the timing signal generator 121 generates a timing signal and outputs the generated timing signal to the counter 122. The timing signal is used to control the timing when the image forming unit 2 executes image formation on the printing paper conveyed from the paper feeding unit 4, that is, the synchronization timing of the image forming process and the printing paper conveying process in the printing apparatus 1. Signal. Signals such as the horizontal synchronization signal (/ HD-HSYNC) and the dot clock signal (DCLK) are generated in accordance with the timing signal generated by the timing signal generation unit 121. The timing signal generator 121 functions as a timing signal generator.

例えば、印刷ヘッド10は、タイミング信号生成部121が生成したタイミング信号に同期したタイミングで印刷データに従った静電潜像の感光体ドラム7への書き込み処理を実行する。また、搬送手段として機能する給紙ローラ17や搬送ローラ18は、印刷用紙内の所望の位置に印刷出力を行うため、タイミング信号生成部121が生成したタイミング信号に同期したタイミングで回転駆動して印刷用紙を搬送する。   For example, the print head 10 executes an electrostatic latent image writing process on the photosensitive drum 7 according to the print data at a timing synchronized with the timing signal generated by the timing signal generation unit 121. Further, the paper feed roller 17 and the transport roller 18 functioning as transport means are driven to rotate at a timing synchronized with the timing signal generated by the timing signal generation unit 121 in order to perform print output at a desired position in the printing paper. Transport printing paper.

具体的に説明すると、タイミング信号生成部121は、CPUI/F制御部103により設定された階調情報に従って副走査方向をn分割し(例えば、1画素を副走査方向に3分割等)、またスループットを考慮して1ライン当たりの書き込み周波数を決定する。そして、タイミング信号生成部121は、CPU32が制御信号を送るためのクロックとは独立したクロックであって、FGPA31の内部又は外部に設置された不図示のクロック(例えば周波数が1MHzのクロック)を決定した書き込み周波数に分周することにより、タイミング信号を生成する。   More specifically, the timing signal generation unit 121 divides the sub-scanning direction into n (for example, one pixel is divided into three in the sub-scanning direction) according to the gradation information set by the CPU I / F control unit 103, and The writing frequency per line is determined in consideration of the throughput. The timing signal generator 121 determines a clock (not shown) (for example, a clock with a frequency of 1 MHz) that is independent of the clock for the CPU 32 to send a control signal and is installed inside or outside the FGPA 31. A timing signal is generated by dividing the written frequency.

例えば図5に示すように、タイミング信号生成部121は、ビデオ入力モードに関する各種設定条件に応じてタイミング信号の周波数と周期とを決定する。図5において、例1〜例4は、それぞれ設定条件として、スループットが50ppm(pages per minute)又は25ppm、解像度が1200dpi(dots per inch)又は600dpi、階調値が2値又は4値に設定された場合の、タイミング信号生成部121が生成するタイミング信号の周波数及び周期、並びに後述するCPU32による増分値の導出例を示している。   For example, as illustrated in FIG. 5, the timing signal generation unit 121 determines the frequency and period of the timing signal according to various setting conditions regarding the video input mode. In FIG. 5, Example 1 to Example 4 are set such that the throughput is 50 ppm (pages per minute) or 25 ppm, the resolution is 1200 dpi (dots per inch) or 600 dpi, and the gradation value is binary or quaternary. The example of derivation | leading-out of the increment value by CPU32 mentioned later and the frequency and period of the timing signal which the timing signal generation part 121 produces | generates is shown.

例えば、例1のようにスループットが50ppm、解像度が1200dpi、階調値が2値に設定された場合、タイミング信号生成部121は、周波数が11.1kHzであって周期が90μsのタイミング信号を生成する。   For example, as in Example 1, when the throughput is set to 50 ppm, the resolution is set to 1200 dpi, and the gradation value is set to binary, the timing signal generation unit 121 generates a timing signal having a frequency of 11.1 kHz and a period of 90 μs. To do.

一方、例2のように例1よりも低い600dpiの解像度が設定された場合であっても階調値が4値に設定された場合には、タイミング信号生成部121は、ビデオデータ(/Video[3:0])の各画素を3つの微画素に分割するため、1800dpi(600dpi×3)の解像度に相当する周波数(16.7kHz)及び周期(60μs)のタイミング信号を生成する。   On the other hand, even when the resolution of 600 dpi lower than that in Example 1 is set as in Example 2, if the gradation value is set to 4 values, the timing signal generator 121 may generate video data (/ Video). In order to divide each pixel of [3: 0]) into three fine pixels, a timing signal having a frequency (16.7 kHz) and a period (60 μs) corresponding to a resolution of 1800 dpi (600 dpi × 3) is generated.

さらに、例3及び例4のように例1に比べてスループットが半分の25ppmに設定された場合には、タイミング信号生成部121は、それぞれ例1及び例2に比べて半分の周波数、すなわち倍の周期のタイミング信号を生成する。   Further, when the throughput is set to 25 ppm, which is half that of Example 1 as in Example 3 and Example 4, the timing signal generator 121 halves the frequency, that is, doubles that of Example 1 and Example 2, respectively. The timing signal of the period is generated.

図4に示した基本タイミング生成部120の構成の説明に戻って、カウンタ122は、例えば32ビットのカウンタであり、タイミング信号生成部121が生成したタイミング信号のパルスの数をタイミング信号のクロックタイミングでカウントして、タイミング信号のパルスのカウント値を取得する。カウンタ122は、カウント処理をおこなう。   Returning to the description of the configuration of the basic timing generation unit 120 illustrated in FIG. 4, the counter 122 is, for example, a 32-bit counter, and the number of pulses of the timing signal generated by the timing signal generation unit 121 is represented by the clock timing of the timing signal. To obtain the count value of the pulse of the timing signal. The counter 122 performs count processing.

コンペア123は、カウンタ122がカウントしたタイミング信号のパルスのカウント値等に基づいて、CPU32の異常の有無を判定する。より詳細には、コンペア123は、カウンタ入力部123aと、コンペアレジスタ123bと、異常判定部123cと、フェイルセーフ出力部123dと、を備える。   The compare 123 determines whether the CPU 32 is abnormal based on the count value of the pulse of the timing signal counted by the counter 122. More specifically, the compare 123 includes a counter input unit 123a, a compare register 123b, an abnormality determination unit 123c, and a fail safe output unit 123d.

カウンタ入力部123aは、カウンタ122がカウントしたカウント値の入力を受け付け、受け付けたカウント値を異常判定部123cに供給する。   The counter input unit 123a receives an input of the count value counted by the counter 122, and supplies the received count value to the abnormality determination unit 123c.

コンペアレジスタ123bは、カウンタ122がカウントしたタイミング信号のパルスのカウント値に基づいてCPU32が設定する値であって、異常判定部123cによる異常判定のための判定基準値(例えば16ビットの値)を格納する。CPU32がコンペアレジスタ123bに判定基準値を設定する手順の詳細については後述する。   The compare register 123b is a value set by the CPU 32 based on the pulse count value of the timing signal counted by the counter 122, and a determination reference value (for example, a 16-bit value) for abnormality determination by the abnormality determination unit 123c. Store. Details of the procedure by which the CPU 32 sets the determination reference value in the compare register 123b will be described later.

異常判定部123cは、カウンタ入力部123aに入力されたカウンタ122のカウント値から上位16ビットの値を抽出し、抽出した値とコンペアレジスタ123bに格納された判定基準値とを比較する。そして、異常判定部123cは、この比較結果に基づいて、CPU32に異常が生じたか否かを判定する。具体的には、異常判定部123cは、比較対象の2つの値が一致した場合にCPU32に異常が生じたと判定し、フェイルセーフ出力部123dにフェイルセーフ信号の出力命令を送信する。異常判定部123cは、異常判定処理をおこなう異常判定手段として機能する。   The abnormality determination unit 123c extracts the upper 16-bit value from the count value of the counter 122 input to the counter input unit 123a, and compares the extracted value with the determination reference value stored in the compare register 123b. Then, the abnormality determination unit 123c determines whether an abnormality has occurred in the CPU 32 based on the comparison result. Specifically, the abnormality determination unit 123c determines that an abnormality has occurred in the CPU 32 when the two values to be compared match, and transmits a fail-safe signal output command to the fail-safe output unit 123d. The abnormality determination unit 123c functions as an abnormality determination unit that performs an abnormality determination process.

フェイルセーフ出力部123dは、異常判定部123cから送信された出力命令に従って、印刷装置1が備える各種モータの駆動を停止させるための停止信号であるフェイルセーフ信号をモータタイマカウンタ124に送信する。すなわち、フェイルセーフ出力部123dは、モータ停止手段として機能し、異常判定部123cがCPU32に異常が生じたと判定すると、フェイルセーフ信号により各種モータの駆動を停止させる。   The fail-safe output unit 123d transmits a fail-safe signal, which is a stop signal for stopping the driving of the various motors included in the printing apparatus 1, to the motor timer counter 124 in accordance with the output command transmitted from the abnormality determination unit 123c. That is, the fail-safe output unit 123d functions as a motor stop unit, and when the abnormality determination unit 123c determines that an abnormality has occurred in the CPU 32, the drive of various motors is stopped by a fail-safe signal.

モータタイマカウンタ124は、例えば12ビットのカウンタであり、CPU32の指示に従って印刷装置1が備える各種モータの駆動と停止との切り換えを制御する切り換え制御手段として機能する。より詳細には、モータタイマカウンタ124は、フェイルセーフ入力部124aと、モータ制御指令入力部124bと、モータSTARTレジスタ124cと、モータクロック出力部124dと、モータSTART出力部124eと、を備える。   The motor timer counter 124 is, for example, a 12-bit counter and functions as a switching control unit that controls switching between driving and stopping of various motors included in the printing apparatus 1 in accordance with instructions from the CPU 32. More specifically, the motor timer counter 124 includes a fail-safe input unit 124a, a motor control command input unit 124b, a motor START register 124c, a motor clock output unit 124d, and a motor START output unit 124e.

フェイルセーフ入力部124aは、フェイルセーフ出力部123dから送信されたフェイルセーフ信号の入力を受け付け、フェイルセーフ信号に従ってモータSTARTレジスタ124cに格納されたモータSTART信号の値をリセットする。   The fail safe input unit 124a receives the input of the fail safe signal transmitted from the fail safe output unit 123d, and resets the value of the motor START signal stored in the motor START register 124c according to the fail safe signal.

モータ制御指令入力部124bは、CPU32からのモータ制御指令の入力を受け付け、受け付けたモータ制御指令に従ってモータSTARTレジスタ124cに格納されたモータSTART信号の値を更新する。   The motor control command input unit 124b receives an input of a motor control command from the CPU 32, and updates the value of the motor START signal stored in the motor START register 124c according to the received motor control command.

モータSTARTレジスタ124cは、“H(High)”又は“L(Low)”で表されるモータSTART信号の値を格納する。モータSTART信号の値は、CPU32からモータ制御指令入力部124bを介してモータの駆動を開始すべき指示を受け付けると“H”に設定され、モータの駆動を停止すべき指示を受け付けると“L”に設定される。さらに、フェイルセーフ入力部124aがフェイルセーフ信号を受信した場合も、モータSTART信号の値は“L”に設定される。   The motor START register 124c stores the value of the motor START signal represented by “H (High)” or “L (Low)”. The value of the motor START signal is set to “H” when an instruction to start motor driving is received from the CPU 32 via the motor control command input unit 124b, and “L” when an instruction to stop driving the motor is received. Set to Further, when the fail safe input unit 124a receives the fail safe signal, the value of the motor START signal is set to “L”.

モータクロック出力部124dは、モータSTART信号の値が“H”になると、モータ制御用のクロック信号であるモータクロックをモータ制御部150aに出力し、モータSTART信号の値が“L”になると、モータ制御部150aへのモータクロックの出力を停止する。   When the value of the motor START signal becomes “H”, the motor clock output unit 124d outputs a motor clock that is a clock signal for motor control to the motor control unit 150a, and when the value of the motor START signal becomes “L”, The output of the motor clock to the motor control unit 150a is stopped.

モータSTART出力部124eは、モータSTARTレジスタ124cにおいて“H”又は“L”に設定されたモータSTART信号をモータ制御部150bに出力する。   The motor START output unit 124e outputs a motor START signal set to “H” or “L” in the motor START register 124c to the motor control unit 150b.

このような構成により、基本タイミング生成部120は、CPU32からの指示に従ってモータを駆動させたり停止させたりするとともに、画像形成処理や印刷用紙の搬送処理のタイミング信号を用いてCPU32が異常な状態に陥ったか否かを判定し、異常が生じたと判定した場合にモータを停止させる。   With such a configuration, the basic timing generation unit 120 drives or stops the motor according to an instruction from the CPU 32, and the CPU 32 is in an abnormal state using a timing signal for image forming processing or printing paper transport processing. It is determined whether or not it has fallen, and when it is determined that an abnormality has occurred, the motor is stopped.

モータ制御部150a及びモータ制御部150bは、モータタイマカウンタ124で生成されたモータクロック又はモータSTART信号を受信して、印刷装置1が備える各種モータの制御を行う。   The motor control unit 150 a and the motor control unit 150 b receive the motor clock or the motor START signal generated by the motor timer counter 124 and control various motors included in the printing apparatus 1.

より詳細には、モータ制御部150aは、印刷装置1が備える各種モータのうちの、トナー供給モータ、ドラム駆動モータ、ベルト駆動モータ、給紙モータ等、画像形成及び用紙搬送に係るモータを制御する。   More specifically, the motor control unit 150a controls a motor for image formation and paper conveyance, such as a toner supply motor, a drum drive motor, a belt drive motor, and a paper feed motor, among various motors provided in the printing apparatus 1. .

具体的に説明すると、モータ制御部150aは、モータクロック出力部124dからモータクロックを受信すると、受信したモータクロックを介して給紙モータや搬送モータに駆動信号を送信して給紙ローラ17や搬送ローラ18を駆動させ、給紙部4から印刷用紙を搬送させる。そして、モータ制御部150aは、画像形成可能な位置に印刷用紙の先端が到達すると、その旨をI/Fコントローラ20に通知する。また、モータ制御部150aは、モータクロック出力部124dから受信したモータクロックを介してトナー供給モータ、ドラム駆動モータ及びベルト駆動モータに駆動信号を送信して感光体ドラム7、ベルト駆動ローラ14等を駆動させる。   More specifically, when the motor control unit 150a receives the motor clock from the motor clock output unit 124d, the motor control unit 150a transmits a drive signal to the sheet feeding motor and the conveying motor via the received motor clock, and feeds the sheet feeding roller 17 and the conveying roller. The roller 18 is driven and the printing paper is conveyed from the paper supply unit 4. When the leading edge of the printing paper reaches a position where an image can be formed, the motor control unit 150a notifies the I / F controller 20 to that effect. Further, the motor control unit 150a transmits a drive signal to the toner supply motor, the drum drive motor, and the belt drive motor via the motor clock received from the motor clock output unit 124d, thereby causing the photosensitive drum 7, the belt drive roller 14, and the like to move. Drive.

一方で、モータ制御部150bは、印刷装置1が備える各種モータのうちの、定着部5における定着モータ、すなわち加熱ローラ19a及び加圧ローラ19b等の駆動モータを制御する。モータ制御部150bは、モータタイマカウンタ124以外からモータクロックを取得し、このモータクロックを介して定着部5の定着モータに制御信号を送信する。   On the other hand, the motor control unit 150b controls a fixing motor in the fixing unit 5, that is, a driving motor such as the heating roller 19a and the pressure roller 19b, among various motors provided in the printing apparatus 1. The motor control unit 150b acquires a motor clock from other than the motor timer counter 124, and transmits a control signal to the fixing motor of the fixing unit 5 via the motor clock.

具体的に説明すると、モータ制御部150bは、モータSTART出力部124eから値が“H”に設定されたモータSTART信号を受信すると、定着部5の定着モータに駆動信号を送信して定着モータを駆動させる。一方、モータ制御部150bは、値が“L”に設定されたモータSTART信号を受信すると、定着部5の定着モータに停止信号を送信して定着モータの駆動を停止させる。   More specifically, when the motor control unit 150b receives a motor START signal whose value is set to “H” from the motor START output unit 124e, the motor control unit 150b transmits a drive signal to the fixing motor of the fixing unit 5 to switch the fixing motor. Drive. On the other hand, when receiving the motor START signal whose value is set to “L”, the motor control unit 150b transmits a stop signal to the fixing motor of the fixing unit 5 to stop the driving of the fixing motor.

続いて、図6を参照して、上記のような基本タイミング生成部120とデータの授受を行うCPU32の機能構成について説明する。図6に示すように、CPU32は、カウンタ読み取り部32a、停止時間設定部32b、増分値導出部32c、判定基準値算出部32d、判定基準値更新部32e、モータ制御指令部32fとして機能する。   Next, the functional configuration of the CPU 32 that exchanges data with the basic timing generation unit 120 as described above will be described with reference to FIG. As shown in FIG. 6, the CPU 32 functions as a counter reading unit 32a, a stop time setting unit 32b, an increment value derivation unit 32c, a determination reference value calculation unit 32d, a determination reference value update unit 32e, and a motor control command unit 32f.

カウンタ読み取り部32aは、後述する所定の読み取りタイミングでFPGA31の基本タイミング生成部120にアクセスして、カウンタ122がカウントしたタイミング信号のパルスのカウント値のうちの、異常判定部123cによる異常判定の対象となる上位16ビットの値を読み取る。そして、カウンタ読み取り部32aは、読み取った値を判定基準値算出部32dに供給する。カウンタ読み取り部32aは、読み取り手段として機能する。   The counter reading unit 32a accesses the basic timing generation unit 120 of the FPGA 31 at a predetermined reading timing, which will be described later, and the target of abnormality determination by the abnormality determination unit 123c among the count values of the pulses of the timing signal counted by the counter 122 The value of the upper 16 bits is read. The counter reading unit 32a supplies the read value to the determination reference value calculation unit 32d. The counter reading unit 32a functions as a reading unit.

停止時間設定部32bは、モータ停止時間を設定する。モータ停止時間とは、CPU32に異常が生じてから、当該異常が生じたことが異常判定部123cに判定されてモータが停止するまでの上限時間である。後述するように、フェイルセーフ出力部123dは、CPU32が異常な状態に陥ってから少なくともこのモータ停止時間が経過するまでの間にフェイルセーフ信号受信をモータタイマカウンタ124に出力して、印刷装置1が備える各種モータの駆動を停止させる。このようなモータ停止時間は、状況に応じて様々な時間を任意に設定可能なように、適宜の記憶手段に保持される。停止時間設定部32bは、設定手段として機能する。   The stop time setting unit 32b sets the motor stop time. The motor stop time is an upper limit time from when an abnormality occurs in the CPU 32 until the abnormality determination unit 123c determines that the abnormality has occurred and the motor stops. As will be described later, the fail safe output unit 123d outputs a fail safe signal reception to the motor timer counter 124 at least until the motor stop time elapses after the CPU 32 falls into an abnormal state. The driving of various motors included in is stopped. Such a motor stop time is held in an appropriate storage means so that various times can be arbitrarily set according to the situation. The stop time setting unit 32b functions as a setting unit.

増分値導出部32cは、停止時間設定部32bが設定したモータ停止時間に基づいて、増分値を導出する。増分値とは、カウンタ読み取り部32aが読み取ったカウンタ122の値に上乗せして判定基準値を算出するときの、上乗せする量の基準となる値である。増分値導出部32cは、導出手段として機能する。   The increment value deriving unit 32c derives an increment value based on the motor stop time set by the stop time setting unit 32b. The increment value is a value serving as a reference for the amount to be added when the determination reference value is calculated by adding the value of the counter 122 read by the counter reading unit 32a. The increment value deriving unit 32c functions as a deriving unit.

増分値を導出するため、増分値導出部32cは、モータ停止時間内に出力されるタイミング信号のパルスの数、すなわちモータ停止時間内にカウンタ122によってカウントされるカウント値を算出する。そして、増分値導出部32cは、算出したカウント値から上位16ビットの値を増分値として取得する。   In order to derive the increment value, the increment value deriving unit 32c calculates the number of pulses of the timing signal output within the motor stop time, that is, the count value counted by the counter 122 within the motor stop time. Then, the increment value deriving unit 32c acquires the upper 16-bit value as the increment value from the calculated count value.

例えば図5は、モータ停止時間を20秒とした場合における増分値の導出例を示している。図5において、例1の場合、モータ停止時間である20秒内におけるカウンタ122のカウント数は、11.1kHz×20秒により10進数で“222222“と算出される。増分値導出部32cは、このカウント数を16進数で表した32ビットの値”0003640E“のうちの下位16ビットを切り捨て、上位16ビットの値”0003“を増分値として取得する。   For example, FIG. 5 shows an example of deriving the increment value when the motor stop time is 20 seconds. In FIG. 5, in the case of Example 1, the count number of the counter 122 within 20 seconds, which is the motor stop time, is calculated as “222222” in decimal by 11.1 kHz × 20 seconds. The increment value deriving unit 32c truncates the lower 16 bits of the 32-bit value “0003640E” representing the count number in hexadecimal, and acquires the upper 16-bit value “0003” as the increment value.

同様に、例2〜例4の場合、モータ停止時間内に出力されるタイミング信号のパルスの数は、それぞれ10進数で”333333“、”111111“、”166666“と算出される。増分値導出部32cは、これらを16進数で表した値の上位16ビットの値”0005“、”0001“、”0002“を、それぞれ増分値として取得する。   Similarly, in Examples 2 to 4, the number of pulses of the timing signal output within the motor stop time is calculated as “333333”, “111111”, and “166666” in decimal numbers, respectively. The increment value deriving unit 32c acquires the upper 16-bit values “0005”, “0001”, and “0002” of the values represented by hexadecimal numbers as increment values.

このように、増分値導出部32cは、モータ停止時間内にカウンタ122によってカウントされるカウント値以下の値であって、32ビットカウンタであるカウンタ122の上位16ビットで表すことが可能な最大の値を、増分値として導出する。   As described above, the increment value deriving unit 32c is a value equal to or smaller than the count value counted by the counter 122 within the motor stop time, and is the maximum value that can be represented by the upper 16 bits of the counter 122 that is a 32-bit counter. The value is derived as an incremental value.

図6に示すCPU32の機能構成の説明に戻って、判定基準値算出部32dは、カウンタ読み取り部32aが読み取ったカウント値と増分値導出部32cが導出した増分値とに基づいて、以下の計算式(1)に従って判定基準値を算出する。なお、int[カウント値の上位16ビット/増分値]は、カウンタ122によるカウント値の上位16ビットの値を増分値で除算した値の小数点以下を切り捨てた値を表す。判定基準値算出部32dは、算出処理をおこなう算出手段として機能する。
判定基準値=(int[カウント値の上位16ビット/増分値]+1)×増分値
・・・(1)
Returning to the description of the functional configuration of the CPU 32 shown in FIG. 6, the determination reference value calculation unit 32d calculates the following calculation based on the count value read by the counter reading unit 32a and the increment value derived by the increment value deriving unit 32c. A determination reference value is calculated according to equation (1). Note that int [upper 16 bits / increment value of the count value] represents a value obtained by dividing the value of the upper 16 bits of the count value by the counter 122 by the increment value and rounded down the decimal point. The determination reference value calculation unit 32d functions as a calculation unit that performs a calculation process.
Judgment reference value = (int [upper 16 bits of count value / increment value] +1) × increment value
... (1)

例えば図7は、増分値が“0005”と導出された場合、すなわち図5における例2の場合において、カウンタ122のカウント値とこれに応じて算出された判定基準値とを示す。理解を容易にするため、図7では、カウンタ122によるカウントによって順次増大していくカウント値を、10進数と16進数とで示している。   For example, FIG. 7 shows the count value of the counter 122 and the determination reference value calculated in accordance with the increment value “0005”, that is, in the case of Example 2 in FIG. In order to facilitate understanding, in FIG. 7, the count values that are sequentially increased by the count by the counter 122 are shown as decimal numbers and hexadecimal numbers.

カウンタ122が順次カウントアップしていく過程において、判定基準値は、上記判定基準値の計算式(1)に従って算出される。例えば、判定基準値は、16進数で表したときのカウント値の上位16ビットの値が“0000“から”0004“までの間は”0005“と算出され、カウント値の上位16ビットの値が“0005“から”0009“までの間は”000A“と算出され、カウント値の上位16ビットの値が“000A“から”000E“までの間は”000F“と算出される。   In the process in which the counter 122 sequentially counts up, the determination reference value is calculated according to the calculation formula (1) for the determination reference value. For example, the determination reference value is calculated as “0005” when the upper 16-bit value of the count value expressed in hexadecimal is “0000” to “0004”, and the upper 16-bit value of the count value is "000A" is calculated between "0005" and "0009", and "000F" is calculated when the upper 16 bits of the count value are between "000A" and "000E".

このように、判定基準値は、カウンタ122によるカウント値に追いつかれないような値であって、カウント値との差が増分値以下である値となる。すなわち、判定基準値算出部32dは、カウンタ読み取り部32aが読み取ったカウンタ122の上位16ビットの値より大きな値であって、読み取った値との差が増分値以下である値を、判定基準値として算出する。   In this way, the determination reference value is a value that cannot catch up with the count value by the counter 122, and the difference from the count value is equal to or less than the increment value. That is, the determination reference value calculation unit 32d determines a value that is larger than the upper 16-bit value of the counter 122 read by the counter reading unit 32a and whose difference from the read value is equal to or less than the increment value. Calculate as

判定基準値更新部32eは、FPGA31のコンペアレジスタ123bにアクセスして、コンペアレジスタ123bに格納された判定基準値を、判定基準値算出部32dが算出した新たな判定基準値に更新する。以後、異常判定部123cは、更新された新たな判定基準値に基づいて異常判定を行う。判定基準値更新部32eは、更新処理をおこなう更新手段として機能する。   The determination reference value update unit 32e accesses the compare register 123b of the FPGA 31, and updates the determination reference value stored in the compare register 123b to a new determination reference value calculated by the determination reference value calculation unit 32d. Thereafter, the abnormality determination unit 123c performs abnormality determination based on the updated new determination reference value. The determination reference value update unit 32e functions as an update unit that performs an update process.

モータ制御指令部32fは、モータタイマカウンタ124のモータ制御指令入力部124bに対し、印刷装置1が備える各種モータの駆動と停止との切り替えを指令する。例えば、モータ制御指令部32fは、印刷処理の開始時には印刷処理に必要となるドラム駆動モータや給紙モータ等を駆動させ、印刷処理の終了時にはこれらのモータの駆動を停止させる。このようなモータの駆動及び停止の制御は、CPU32が正常に動作している間は、モータ制御指令部32fの指令によって制御される。モータ制御指令部32fは、指令手段として機能する。   The motor control command unit 32 f commands the motor control command input unit 124 b of the motor timer counter 124 to switch between driving and stopping various motors included in the printing apparatus 1. For example, the motor control command unit 32f drives a drum drive motor, a paper feed motor, and the like necessary for the printing process at the start of the printing process, and stops driving these motors at the end of the printing process. Such motor drive and stop control is controlled by a command from the motor control command unit 32f while the CPU 32 is operating normally. The motor control command unit 32f functions as command means.

以上のような構成を備えた印刷装置1において、上述したタイミング信号、モータSTART信号、モータクロック及びフェイルセーフ信号等の信号群、並びにカウンタ122の値及び判定基準値が時間と共に変化する様子を、図8及び図9に示すタイムチャートを参照して説明する。   In the printing apparatus 1 having the above-described configuration, how the signal group such as the timing signal, the motor START signal, the motor clock and the failsafe signal described above, and the value of the counter 122 and the determination reference value change with time. This will be described with reference to the time charts shown in FIGS.

図8のタイムチャートは、印刷処理の最中にCPU32が正常に動作している状態であって、CPU32のクロック(図8及び図9では「CPUクロック」と示す。)が継続的に一定周期でパルスを発生させている例を示している。   The time chart of FIG. 8 shows a state in which the CPU 32 is operating normally during the printing process, and the clock of the CPU 32 (shown as “CPU clock” in FIGS. 8 and 9) is continuously at a constant cycle. Shows an example of generating pulses.

図8のタイムチャートにおいて、I/Fコントローラ20からビデオI/F制御部101に印刷START信号(/START)が送信されると、印刷処理が開始する。印刷処理が開始すると、CPU32は、出力すべき印刷データに応じて垂直同期信号(/VSYNC)及び水平同期信号(/HSYNC)を生成し、ビデオI/F制御部101が、生成した垂直同期信号(/VSYNC)及び水平同期信号(/HSYNC)をI/Fコントローラ20に対して出力する。この出力に応じて、I/Fコントローラ20は、ビデオクロック信号(/VCLK)に同期して解像度に応じた規定のドット数分のビデオデータ(/Video[3:0])をビデオI/F制御部101に送信する。   In the time chart of FIG. 8, when a print START signal (/ START) is transmitted from the I / F controller 20 to the video I / F control unit 101, the printing process starts. When the printing process starts, the CPU 32 generates a vertical synchronization signal (/ VSYNC) and a horizontal synchronization signal (/ HSYNC) according to print data to be output, and the video I / F control unit 101 generates the generated vertical synchronization signal. (/ VSYNC) and horizontal synchronization signal (/ HSYNC) are output to the I / F controller 20. In response to this output, the I / F controller 20 outputs video data (/ Video [3: 0]) for a specified number of dots corresponding to the resolution in synchronization with the video clock signal (/ VCLK) to the video I / F. Transmit to the control unit 101.

また、印刷START信号(/START)に同期して、CPU32のモータ制御指令部32fは、モータSTARTレジスタ124cのモータSTART信号を“H”に設定し、モータクロックを出力して印刷装置1が備える各種モータを駆動させる。   Further, in synchronization with the print START signal (/ START), the motor control command unit 32f of the CPU 32 sets the motor START signal of the motor START register 124c to “H”, outputs the motor clock, and is provided in the printing apparatus 1. Drive various motors.

一方、基本タイミング生成部120のタイミング信号生成部121は、スループット、解像度、階調値等の各種設定条件に基づいてタイミング信号(図8及び図9では「/TWOUT」と示す。)の出力周波数を決定し、決定した周波数でタイミング信号を生成する。例えば、図8のタイムチャートにおけるタイミング信号は、階調値が4値に設定された場合を示しており、水平同期信号(/HSYNC)の周期を3分割した周期、すなわち600dpiの解像度の印刷の場合には1800dpiの解像度に対応する周期でタイミング信号が出力される。   On the other hand, the timing signal generator 121 of the basic timing generator 120 outputs an output frequency of a timing signal (indicated as “/ TWOUT” in FIGS. 8 and 9) based on various setting conditions such as throughput, resolution, and gradation value. And a timing signal is generated at the determined frequency. For example, the timing signal in the time chart of FIG. 8 shows a case where the gradation value is set to four values, and the period of the horizontal synchronization signal (/ HSYNC) is divided into three periods, that is, printing with a resolution of 600 dpi. In this case, the timing signal is output at a cycle corresponding to a resolution of 1800 dpi.

カウンタ122は、このような周期で出力されるタイミング信号のパルスの数をカウントする。例えば、図8のタイムチャートに示すように、カウンタ122は、16進数で表した32ビットのカウント値を、“FFF4C5D2”から“FFF50003”まで、タイミング信号のパルスが1周期分出力される毎に1ずつ増やす。   The counter 122 counts the number of timing signal pulses output in such a cycle. For example, as shown in the time chart of FIG. 8, the counter 122 counts a 32-bit count value expressed in hexadecimal every time a timing signal pulse is output from “FFF4C5D2” to “FFF50003” for one cycle. Increase by one.

カウンタ122のカウント値がインクリメントされている間、CPU32の判定基準値更新部32eは、カウント値に応じた判定基準値をコンペアレジスタ123bに設定する。例えば、カウンタ122のカウント値の上位16ビットの値が“FFF4”である間、CPU32は、“FFF5”の判定基準値をコンペアレジスタ123bに設定する。一方、カウンタ122のカウント値の上位16ビットの値が“FFF4”から“FFF5”に変化する前に、判定基準値更新部32eは、カウント値の上位16ビットの値が判定基準値に追いつかないように、判定基準値を“FFF5”から“FFFA”に更新する。   While the count value of the counter 122 is incremented, the determination reference value update unit 32e of the CPU 32 sets a determination reference value corresponding to the count value in the compare register 123b. For example, while the upper 16 bits of the count value of the counter 122 is “FFF4”, the CPU 32 sets the determination reference value of “FFF5” in the compare register 123b. On the other hand, before the value of the upper 16 bits of the count value of the counter 122 changes from “FFF4” to “FFF5”, the determination reference value update unit 32e cannot catch up with the determination reference value of the upper 16 bits of the count value. Thus, the determination reference value is updated from “FFF5” to “FFFA”.

このように、CPU32が正常に動作している間は、CPU32によって判定基準値が更新され続けるため、カウント値の上位16ビットと判定基準値とが一致せず、異常判定部123cはCPU32が異常な状態であるとは判定しない。   In this way, while the CPU 32 is operating normally, the determination reference value is continuously updated by the CPU 32, so the upper 16 bits of the count value do not match the determination reference value, and the abnormality determination unit 123c causes the CPU 32 to be abnormal. It is not determined to be in a bad state.

一方、図9のタイムチャートは、図8のタイムチャートと同様な状況で印刷処理が開始された場合において、印刷処理の最中にCPU32に異常が発生し、CPUクロックが停止する例を示している。   On the other hand, the time chart of FIG. 9 shows an example in which an abnormality occurs in the CPU 32 during the printing process and the CPU clock stops when the printing process is started in the same situation as the time chart of FIG. Yes.

例えば図9のタイムチャート内の矢印で示した時点においてCPUクロックが停止すると、CPU32は、モータ制御指令部32fを介してモータを制御できなくなるため、駆動しているモータを停止させることができなくなる。すなわち、印刷処理が終了しても、CPU32は、モータSTART信号を“H”から“L”に切り替えてモータクロックの出力を停止できなくなる。   For example, if the CPU clock stops at the time indicated by the arrow in the time chart of FIG. 9, the CPU 32 cannot control the motor via the motor control command unit 32f, and thus cannot stop the driving motor. . That is, even after the printing process is completed, the CPU 32 cannot stop the output of the motor clock by switching the motor START signal from “H” to “L”.

一方で、CPUクロックが停止すると、CPU32は、判定基準値更新部32eを介してコンペアレジスタ123bの判定基準値を更新する処理もできなくなる。そのため、カウンタ122のカウント値の上位16ビットの値が“FFF4”から“FFF5”に変化しても、判定基準値は“FFF5”のまま変化せず、その結果、カウント値の上位16ビットと判定基準値とが一致する。   On the other hand, when the CPU clock is stopped, the CPU 32 cannot update the determination reference value of the compare register 123b via the determination reference value update unit 32e. Therefore, even if the value of the upper 16 bits of the count value of the counter 122 changes from “FFF4” to “FFF5”, the determination reference value remains “FFF5”, and as a result, the upper 16 bits of the count value The judgment reference value matches.

カウント値の上位16ビットと判定基準値とが一致すると、フェイルセーフ出力部123dがフェイルセーフ信号を出力する。すると、図9のタイムチャートにおける点線で囲った部分に示すように、このフェイルセーフ信号を受信したモータタイマカウンタ124によってモータSTARTレジスタ124cが保持するモータSTART信号は“H”から“L”に切り替わり、これに応じてモータクロックも停止する。   When the upper 16 bits of the count value match the determination reference value, the fail safe output unit 123d outputs a fail safe signal. Then, as shown in a portion surrounded by a dotted line in the time chart of FIG. 9, the motor START signal held by the motor START register 124c is switched from “H” to “L” by the motor timer counter 124 that has received this fail-safe signal. Accordingly, the motor clock is also stopped.

このように、本実施形態に係る印刷装置1は、たとえCPU32に異常が生じてCPUクロックが停止しても、印刷装置1が備える各種モータをCPU32の代わりに停止させることができ、モータが回りっぱなしになることを防止できる。   As described above, the printing apparatus 1 according to the present embodiment can stop various motors included in the printing apparatus 1 instead of the CPU 32 even when the CPU clock is stopped due to an abnormality in the CPU 32. It is possible to prevent being left behind.

以上のような印刷装置1と端末装置60とを備える印刷システム50において実行されるCPU32の異常判定処理、及びそれに伴って実行されるモータの停止処理の流れについて、図10に示すフローチャートを参照して説明する。   Refer to the flowchart shown in FIG. 10 for the flow of the abnormality determination process of the CPU 32 executed in the printing system 50 including the printing apparatus 1 and the terminal apparatus 60 as described above and the motor stop process executed accordingly. I will explain.

端末装置60において、制御部61が、例えば操作部63を介してユーザから印刷指示を受け付けると(ステップS11)、図10に示すフローチャートにおける処理が開始する。   In the terminal device 60, when the control unit 61 receives a print instruction from the user, for example, via the operation unit 63 (step S11), the processing in the flowchart illustrated in FIG. 10 starts.

印刷指示を受け付けると、制御部61は、印刷指示に従ってプリンタドライバにより生成された印刷データを、通信部62を介して印刷装置1に送信する(ステップS12)。送信される印刷データは、印刷用紙に出力すべきデータに加え、解像度や階調値のような画像形成に関する設定条件、及び、印刷用紙のサイズや種類、印刷枚数、両面印刷するか否か等のような他の印刷設定条件に関するデータも含む。制御部61は、送信手段として機能する。   When receiving the print instruction, the control unit 61 transmits the print data generated by the printer driver according to the print instruction to the printing apparatus 1 via the communication unit 62 (step S12). In addition to the data to be output to the print paper, the print data to be sent includes setting conditions related to image formation such as resolution and gradation values, the size and type of the print paper, the number of prints, whether to perform double-sided printing, etc. Data relating to other print setting conditions such as The control unit 61 functions as a transmission unit.

一方、印刷装置1における処理は、I/Fコントローラ20の受信制御部21が端末装置60から送信された印刷データを受信すると(ステップS21)、開始する。印刷装置1は、印刷データを受信すると、受信した印刷データに従って印刷を実行する(ステップS22)。すなわち、印刷装置1は、指定された印刷用紙や印刷枚数、そして解像度や階調値、スループット等に従って印刷距離、線速度、タイミング信号の周波数等の印刷パラメータを決定し、決定した印刷パラメータに従って印刷装置1が備える各種モータを駆動させて画像形成処理、印刷用紙の搬送処理、定着処理等を実行する。印刷装置1の画像形成部2、中間転写部3、給紙部4及び定着部5は、印刷実行手段として機能する。   On the other hand, the processing in the printing apparatus 1 starts when the reception control unit 21 of the I / F controller 20 receives the print data transmitted from the terminal device 60 (step S21). When receiving the print data, the printing apparatus 1 executes printing according to the received print data (step S22). That is, the printing apparatus 1 determines printing parameters such as printing distance, linear velocity, and timing signal frequency according to the designated printing paper, the number of printed sheets, resolution, gradation value, throughput, and the like, and prints according to the determined printing parameters. Various motors included in the apparatus 1 are driven to execute image forming processing, printing paper transport processing, fixing processing, and the like. The image forming unit 2, the intermediate transfer unit 3, the paper feeding unit 4, and the fixing unit 5 of the printing apparatus 1 function as a print execution unit.

印刷処理を実行する一方で、印刷装置1は、CPU32に異常が発生したか否かを判定する(ステップS23)。この異常判定処理の詳細については、図11及び図12に示すフローチャートを参照して説明する。   While executing the printing process, the printing apparatus 1 determines whether or not an abnormality has occurred in the CPU 32 (step S23). The details of this abnormality determination process will be described with reference to the flowcharts shown in FIGS.

図11に示すフローチャートは、CPU32の異常判定に関連する処理のうちの、CPU32が実行する判定基準値の設定処理の流れを示す。CPU32は、指示された印刷処理において設定されたスループット、解像度、階調値等に応じてタイミング信号がタイミング信号生成部121によって生成されると、この判定基準値の設定処理を開始する。   The flowchart shown in FIG. 11 shows the flow of the determination reference value setting process executed by the CPU 32 among the processes related to the abnormality determination of the CPU 32. When the timing signal is generated by the timing signal generator 121 according to the throughput, resolution, gradation value, and the like set in the instructed printing process, the CPU 32 starts the determination reference value setting process.

図11に示すフローチャートにおいて、CPU32は、停止時間設定部32bの機能により、CPU32に異常が生じてからモータを停止させるまでの上限時間であるモータ停止時間を設定する(ステップS31)。   In the flowchart shown in FIG. 11, the CPU 32 sets a motor stop time that is an upper limit time from when an abnormality occurs in the CPU 32 until the motor is stopped by the function of the stop time setting unit 32 b (step S <b> 31).

モータ停止時間を設定すると、CPU32は、増分値導出部32cの機能により、増分値を導出する(ステップS32)。すなわち、CPU32は、例えば図5に示したように、モータ停止時間内にカウントされるカウンタ122のカウント数を16進数で表した値のうちの下位16ビットを切り捨てた値を、増分値として導出する。   When the motor stop time is set, the CPU 32 derives an increment value by the function of the increment value deriving unit 32c (step S32). That is, for example, as shown in FIG. 5, the CPU 32 derives, as an increment value, a value obtained by rounding down the lower 16 bits of the value represented by the hexadecimal number of the counter 122 counted within the motor stop time. To do.

増分値を導出すると、CPU32は、カウンタ122のカウント値の読み取りタイミングが到来したか否かを判定する(ステップS33)。この読み取りタイミングは、FPGA31へのアクセス頻度が高くなりすぎないようにすることと、CPU32の異常を誤検知しないようにすることと、の双方を考慮して決められる。   When the increment value is derived, the CPU 32 determines whether or not the timing for reading the count value of the counter 122 has arrived (step S33). This read timing is determined in consideration of both preventing the frequency of access to the FPGA 31 from becoming too high and preventing erroneous detection of the CPU 32.

例えば、カウンタ122のカウント値の上位16ビットの値が判定基準値に追いついてCPU32の異常を誤検知しないようにするため、読み取りタイミングは、カウンタ122のカウント値の上位16ビットが判定基準値に追いつく直前になる毎に到来するように、周期的に設定される。   For example, in order to prevent the upper 16 bits of the count value of the counter 122 from catching up with the determination reference value and erroneously detecting an abnormality in the CPU 32, the upper 16 bits of the count value of the counter 122 is set to the determination reference value. It is set periodically so as to arrive every time it catches up.

より詳細に説明すると、読み取りタイミングは、カウンタ122において異常判定部123cの判定対象となるカウンタ122の上位16ビットの値が増分値に相当する値だけカウントされる時間以下の周期で到来するように設定される。上述したように、増分値は、モータ停止時間内にカウンタ122によってカウントされるカウント値の下位16ビットを切り捨てた値であるため、この周期は、モータ停止時間以下の時間となる。   More specifically, the reading timing is such that the upper 122 bits of the counter 122 that is the determination target of the abnormality determination unit 123c in the counter 122 arrives at a period equal to or less than the time during which the value corresponding to the increment value is counted. Is set. As described above, since the increment value is a value obtained by rounding down the lower 16 bits of the count value counted by the counter 122 within the motor stop time, this period is equal to or shorter than the motor stop time.

カウント値の読み取りタイミングが到来していない場合(ステップS33;NO)、CPU32の処理はステップS33に留まる。すなわち、CPU32は、FPGA31へのアクセス頻度を抑えるため、読み取りタイミングが到来するまで、ステップS34以降の処理を実行しない。   When the count value reading timing has not arrived (step S33; NO), the processing of the CPU 32 remains at step S33. In other words, the CPU 32 does not execute the processes after step S34 until the read timing comes in order to suppress the frequency of access to the FPGA 31.

一方、カウント値の読み取りタイミングが到来すると(ステップS33;YES)、CPU32は、カウンタ読み取り部32aの機能によりFPGA31にアクセスして、カウンタ122のカウント値の上位16ビットを読み取る(ステップS34)。   On the other hand, when the read timing of the count value comes (step S33; YES), the CPU 32 accesses the FPGA 31 by the function of the counter reading unit 32a and reads the upper 16 bits of the count value of the counter 122 (step S34).

カウンタ122のカウント値を読み取ると、CPU32は、判定基準値算出部32dの機能により、読み取ったカウント値とステップS32で算出した増分値とに基づいて判定基準値を算出する(ステップS35)。すなわち、CPU32は、上記判定基準値の計算式(1)及び図7に示したように、読み取ったカウント値よりも大きな値であってカウント値との差が増分値を超えないような値を、判定基準値として算出する。   When the count value of the counter 122 is read, the CPU 32 calculates a determination reference value based on the read count value and the increment value calculated in step S32 by the function of the determination reference value calculation unit 32d (step S35). That is, the CPU 32 calculates a value that is larger than the read count value and does not exceed the increment value as shown in the calculation formula (1) for the determination reference value and FIG. And calculated as a criterion value.

判定基準値を算出すると、CPU32は、判定基準値更新部32eの機能によりFPGA31にアクセスして、新たな判定基準値でコンペアレジスタ123bの判定基準値とを更新する(ステップS36)。   After calculating the determination reference value, the CPU 32 accesses the FPGA 31 by the function of the determination reference value update unit 32e, and updates the determination reference value of the compare register 123b with the new determination reference value (step S36).

判定基準値を更新すると、CPU32の処理はステップS33へと戻って、CPU32は、ステップS33〜S36の処理を繰り返し実行する。すなわち、CPU32は、CPU32が正常に動作している限り、読み取りタイミングが到来する毎にFPGA31にアクセスしてカウント値の上位16ビットを読み取り、新たな判定基準値を算出してコンペアレジスタ123bに設定された判定基準値を更新する。CPU32は、繰り返し処理をおこなう。   When the determination reference value is updated, the process of the CPU 32 returns to step S33, and the CPU 32 repeatedly executes the processes of steps S33 to S36. In other words, as long as the CPU 32 operates normally, the CPU 32 accesses the FPGA 31 each time the read timing arrives, reads the upper 16 bits of the count value, calculates a new determination reference value, and sets it in the compare register 123b. The determined criterion value is updated. The CPU 32 performs repetitive processing.

一方、図12に示すフローチャートは、CPU32の異常判定に係る処理のうちの、FPGA31の基本タイミング生成部120が実行する処理の流れを示す。FPGA31は、このようなCPU32の異常判定処理を、印刷処理等のために印刷装置1が動作している間、随時実行する。   On the other hand, the flowchart shown in FIG. 12 shows the flow of processing executed by the basic timing generation unit 120 of the FPGA 31 among the processing related to the abnormality determination of the CPU 32. The FPGA 31 executes such abnormality determination processing of the CPU 32 as needed while the printing apparatus 1 is operating for printing processing or the like.

図12に示すフローチャートにおいて、基本タイミング生成部120の異常判定部123cは、カウンタ122のカウント値の上位16ビットとコンペアレジスタ123bに設定された判定基準値とを比較する(ステップS41)。そして、異常判定部123cは、比較の結果、カウント値の上位16ビットと判定基準値とが一致したか否かを判定する(ステップS42)。   In the flowchart shown in FIG. 12, the abnormality determination unit 123c of the basic timing generation unit 120 compares the upper 16 bits of the count value of the counter 122 with the determination reference value set in the compare register 123b (step S41). Then, as a result of the comparison, the abnormality determining unit 123c determines whether or not the upper 16 bits of the count value matches the determination reference value (step S42).

判定の結果、2つの値が一致していない場合(ステップS42;NO)、カウンタ122がカウント値をインクリメントし(ステップS43)、FPGA31の処理は再びステップS41に戻る。すなわち、異常判定部123cは、インクリメントされたカウント値の上位16ビットと判定基準値とを改めて比較して、両者が一致したか否かを判定する。そして、2つの値が一致すると(ステップS42;YES)、異常判定部123cは、CPU32に異常が発生したと判定する(ステップS44)。   As a result of the determination, if the two values do not match (step S42; NO), the counter 122 increments the count value (step S43), and the processing of the FPGA 31 returns to step S41 again. That is, the abnormality determination unit 123c compares the upper 16 bits of the incremented count value with the determination reference value again to determine whether or not they match. If the two values match (step S42; YES), the abnormality determination unit 123c determines that an abnormality has occurred in the CPU 32 (step S44).

このように、異常判定部123cは、カウンタ122がカウント値をインクリメントする毎に、そのカウント値の上位16ビットとコンペアレジスタ123bに設定された判定基準値とを比較する。そして、2つの値が一致したか否かによって、CPU32の異常の有無を判定する。   Thus, every time the counter 122 increments the count value, the abnormality determination unit 123c compares the upper 16 bits of the count value with the determination reference value set in the compare register 123b. Whether the CPU 32 is abnormal is determined based on whether the two values match.

図10に示したフローチャートの説明に戻って、このような異常判定部123cによる異常判定処理の結果、ステップS23においてCPU32に異常が生じていないと判定されると(ステップS23;NO)、印刷装置1は、印刷が終了したか否かを判定する(ステップS24)。そして、印刷が終了していないと(ステップS24;NO)、印刷装置1は、ステップS22の処理に戻って引き続き印刷を実行する。すなわち、印刷装置1は、印刷が終了するまで、CPU32に異常が発生したか否かの判定処理を実行する。   Returning to the description of the flowchart shown in FIG. 10, if it is determined in step S23 that no abnormality has occurred in the CPU 32 as a result of the abnormality determination processing by the abnormality determination unit 123c (step S23; NO), the printing apparatus. 1 determines whether printing has been completed (step S24). If printing has not been completed (step S24; NO), the printing apparatus 1 returns to the process of step S22 and continues printing. That is, the printing apparatus 1 executes a determination process as to whether or not an abnormality has occurred in the CPU 32 until printing is completed.

一方、CPU32に異常が生じたと判定されずに印刷が終了すると(ステップS24;YES)、印刷装置1は、CPU32から送信されたモータ停止指示により印刷処理に係る各種モータを停止させて、印刷処理を正常に終了させる。そして、図10に示したフローチャートの処理は終了する。   On the other hand, when printing is terminated without determining that an abnormality has occurred in the CPU 32 (step S24; YES), the printing apparatus 1 stops various motors related to the printing process in response to the motor stop instruction transmitted from the CPU 32, and the printing process. Is terminated normally. Then, the process of the flowchart shown in FIG. 10 ends.

ステップS23において、異常判定部123cによる異常判定処理の結果、印刷処理の最中にCPU32に異常が生じたと判定されると(ステップS23;YES)、I/Fコントローラ20のビデオI/F制御部25及び受信制御部21が通知手段として機能し、CPU32に異常が生じた旨を端末装置60に通知する(ステップS25)。   If it is determined in step S23 that an abnormality has occurred in the CPU 32 during the printing process as a result of the abnormality determination process by the abnormality determination unit 123c (step S23; YES), the video I / F control unit of the I / F controller 20 25 and the reception control unit 21 function as notification means, and notify the terminal device 60 that an abnormality has occurred in the CPU 32 (step S25).

CPU32の異常発生を端末装置60に通知した後、印刷装置1において、基本タイミング生成部120のフェイルセーフ出力部123dがモータ停止手段として機能し、モータを停止させる(ステップS26)。すなわち、異常が発生したCPU32の代理として、フェイルセーフ出力部123dがモータタイマカウンタ124にフェイルセーフ信号を出力して、モータSTARTレジスタ124cに格納されたモータSTART信号を“H”から“L”に切り替える。   After notifying the terminal device 60 of the occurrence of an abnormality in the CPU 32, in the printing apparatus 1, the fail safe output unit 123d of the basic timing generation unit 120 functions as a motor stop unit, and stops the motor (step S26). That is, as a substitute for the CPU 32 in which an abnormality has occurred, the fail safe output unit 123d outputs a fail safe signal to the motor timer counter 124, and the motor START signal stored in the motor START register 124c is changed from "H" to "L". Switch.

フェイルセーフ信号によってモータが強制的に停止すると、I/Fコントローラ20のビデオI/F制御部25及び受信制御部21が第2の通知手段として機能し、端末装置60にモータの駆動が停止した旨を通知する(ステップS27)。   When the motor is forcibly stopped by the fail-safe signal, the video I / F control unit 25 and the reception control unit 21 of the I / F controller 20 function as second notification means, and the driving of the motor is stopped at the terminal device 60. This is notified (step S27).

一方、端末装置60において、印刷装置1から送信されたCPU32の異常通知を受信すると(ステップS13)、制御部61は、報知手段としてCPU32に異常が発生した旨の警告を報知する(ステップS14)。制御部61は、例えば、表示部64に警告メッセージを表示することにより、印刷装置1に異常が生じたことを端末装置60のユーザに認知させる。   On the other hand, when the terminal device 60 receives the abnormality notification of the CPU 32 transmitted from the printing apparatus 1 (step S13), the control unit 61 notifies the CPU 32 as a notification means that an abnormality has occurred (step S14). . For example, the control unit 61 displays a warning message on the display unit 64 to make the user of the terminal device 60 recognize that an abnormality has occurred in the printing apparatus 1.

さらに、端末装置60において、印刷装置1から送信されたモータの停止通知を受信すると(ステップS15)、制御部61は、第2の報知手段として印刷装置1のモータの駆動が停止した旨を報知する(ステップS16)。制御部61は、例えばモータが停止したことを示すメッセージを表示部64に表示して、印刷装置1が備える各種モータが停止したことを端末装置60のユーザに認知させる。以上により、図10に示した印刷システム50において実行される処理は終了する。   Further, when the terminal device 60 receives the motor stop notification transmitted from the printing apparatus 1 (step S15), the control unit 61 notifies that the driving of the motor of the printing apparatus 1 has stopped as the second notification means. (Step S16). For example, the control unit 61 displays a message indicating that the motor has stopped on the display unit 64 so that the user of the terminal device 60 recognizes that various motors included in the printing apparatus 1 have stopped. Thus, the process executed in the printing system 50 shown in FIG.

以上説明したように、本実施形態に係る印刷装置1及び印刷システム50は、印刷装置1における画像形成処理や印刷用紙の搬送処理の同期タイミングを制御するためのタイミング信号を利用して、CPU32の異常の有無を判定する。そして、CPU32に異常が生じた場合にFPGA31が任意に設定されたタイミングでモータを停止させることによって、モータが不要に駆動し続けることを防ぐ。   As described above, the printing apparatus 1 and the printing system 50 according to the present embodiment use the timing signal for controlling the synchronization timing of the image forming process and the printing paper conveyance process in the printing apparatus 1, and Determine if there is an abnormality. Then, when an abnormality occurs in the CPU 32, the motor is stopped at the timing when the FPGA 31 is arbitrarily set, thereby preventing the motor from continuing to be driven unnecessarily.

FPGA31の基本タイミング生成部120を利用するため、印刷装置の既存の仕組みを生かしながら、CPU32の異常検知の精度を高めることができる。また、CPU32に異常が生じてからのモータ停止時間を自由に設定でき、またFPGA31へのアクセス頻度を調整することができるため、様々な状況に対応しつつCPU32の異常を検知できる。   Since the basic timing generation unit 120 of the FPGA 31 is used, the abnormality detection accuracy of the CPU 32 can be improved while utilizing the existing mechanism of the printing apparatus. Further, since the motor stop time after the abnormality occurs in the CPU 32 can be set freely and the access frequency to the FPGA 31 can be adjusted, the abnormality of the CPU 32 can be detected while dealing with various situations.

また、CPU32の異常判定の手段としてCPU32のクロックとは独立したタイミング信号のパルスをカウントするため、たとえCPU32のクロックが停止したとしても、CPU32の異常の検知が可能となる。また、定期的にリセットされるウォッチドックタイマを用いる従来の手法とは異なり、外部からのリセット信号によりカウント値がリセットされないフリーランカウンタを用いるため、特定のプログラムの処理を無限に繰り返してしまうような種類の暴走の検知精度が向上する。   Further, since the pulses of the timing signal independent of the clock of the CPU 32 are counted as means for determining the abnormality of the CPU 32, the abnormality of the CPU 32 can be detected even if the clock of the CPU 32 is stopped. In addition, unlike a conventional method using a watchdog timer that is reset periodically, a free-run counter that does not reset the count value by an external reset signal is used, so that the processing of a specific program is repeated indefinitely. The detection accuracy of various types of runaway is improved.

(変形例)
以上に本発明の実施形態について説明したが、上記実施形態の各構成要素を自由に組み合わせることも可能である。また、上記実施形態は一例であり、本発明の適用範囲はこれに限られない。すなわち、本発明の実施形態は種々の応用が可能であり、あらゆる実施形態が本発明の範囲に含まれる。
(Modification)
Although the embodiments of the present invention have been described above, it is possible to freely combine the components of the above embodiments. Moreover, the said embodiment is an example and the application range of this invention is not restricted to this. That is, the embodiments of the present invention can be applied in various ways, and all the embodiments are included in the scope of the present invention.

例えば、上記実施形態では、異常判定部123cは、CPU32に異常が生じたことを判定した後、印刷装置1が備える各種モータを停止させた。しかし、本発明に係る印刷装置は、CPU32に異常が生じたことを判定した後にモータを停止する手段を有しなくてもよく、より簡易な構成でCPU32の異常検知機能を有する印刷装置であってもよい。   For example, in the above embodiment, the abnormality determining unit 123c stops various motors included in the printing apparatus 1 after determining that an abnormality has occurred in the CPU 32. However, the printing apparatus according to the present invention does not have to have a means for stopping the motor after determining that an abnormality has occurred in the CPU 32, and is a printing apparatus having an abnormality detection function of the CPU 32 with a simpler configuration. May be.

また、上記実施形態では、異常判定部123cは、カウンタ122によるカウント値のうちの上位16ビットを判定の対象として用いた。しかし、上位16ビットに限らず、判定の対象として、カウンタ122によるカウント値のうちのどの一部を用いてもよいし、カウント値の全ビットを用いてもよい。すなわち、判定の対象として、カウンタ122によるカウント値のうちの少なくとも一部を用いてもよい。例えば、判定の対象として下位のビットを多く用いると、より細かい時間単位で異常検知ができるようになる。   In the above embodiment, the abnormality determination unit 123c uses the upper 16 bits of the count value of the counter 122 as a determination target. However, not only the upper 16 bits, but any part of the count value by the counter 122 may be used as a determination target, or all the bits of the count value may be used. That is, at least a part of the count value by the counter 122 may be used as a determination target. For example, when a lot of lower bits are used as a determination target, an abnormality can be detected in a finer time unit.

また、判定基準値算出部32dにおける判定基準値の計算式は、上述した計算式(1)以外であってもよい。例えば、以下の計算式(2)のように、判定基準値を、カウンタ読み取り部32aがカウンタ122から読み取ったカウント値の上位16ビットと増分値とを単純に和をとることにより定めてもよい。また、計算式(1)及び(2)以外にも、値をカウントアップしていくカウンタを用いる限り、読み取った値よりも大きな値を判定基準値として設定するものであれば、CPU32の異常検知機能を実現できる。
判定基準値=カウント値の上位16ビット+増分値・・・(2)
Moreover, the calculation formula of the determination reference value in the determination reference value calculation unit 32d may be other than the above-described calculation expression (1). For example, as shown in the following calculation formula (2), the determination reference value may be determined by simply adding the upper 16 bits of the count value read by the counter reading unit 32a from the counter 122 and the increment value. . In addition to the calculation formulas (1) and (2), as long as a counter that counts up the value is used, if a value larger than the read value is set as the determination reference value, the abnormality detection of the CPU 32 is detected. Functions can be realized.
Judgment reference value = upper 16 bits of count value + increment value (2)

また、上記実施形態では、CPU32は、カウント値の上位16ビットが判定基準値に追いつく直前のタイミングでカウンタ122からカウント値を読み取り、判定基準値を更新した。しかし、カウント値を読み取って判定基準値を更新するタイミングは、カウンタ122がカウントアップするタイミングとは同期していなくてもよい。すなわち、増分値に相当する時間以下の周期で到来する読み取りタイミングは、CPU32の異常を誤検知しないようにできる限り、この周期内であればどのタイミングであってもよい。   In the above-described embodiment, the CPU 32 reads the count value from the counter 122 and updates the determination reference value at a timing immediately before the upper 16 bits of the count value catches up with the determination reference value. However, the timing at which the count value is read and the determination reference value is updated may not be synchronized with the timing at which the counter 122 counts up. In other words, the read timing that arrives in a period equal to or less than the time corresponding to the increment value may be any timing within this period as long as the abnormality of the CPU 32 can be prevented from being erroneously detected.

なお、本発明に係る機能を実現するための構成を予め備えた印刷装置として提供できることはもとより、プログラムの適用により、既存の情報機器を、本発明に係る印刷装置として機能させることもできる。すなわち、上記実施形態で例示した印刷装置1による各機能構成を実現させるためのプログラムを、既存の情報機器を制御するCPU等が実行できるように適用することで、本発明に係る印刷装置として機能させることができる。また、本発明に係る異常判定方法は、印刷装置を用いて実施できる。   In addition, not only can a configuration for realizing the function according to the present invention be provided in advance as a printing apparatus, but also an existing information device can be caused to function as the printing apparatus according to the present invention by applying a program. In other words, by applying a program for realizing each functional configuration by the printing apparatus 1 exemplified in the above embodiment so that a CPU or the like that controls an existing information device can be executed, the program functions as the printing apparatus according to the present invention. Can be made. In addition, the abnormality determination method according to the present invention can be implemented using a printing apparatus.

また、このようなプログラムの適用方法は任意である。プログラムを、例えば、フレキシブルディスク、CD(Compact Disc)−ROM、DVD(Digital Versatile Disc)−ROM、メモリカード等のコンピュータ読み取り可能な記憶媒体に格納して適用できる。さらに、プログラムを搬送波に重畳し、インターネットなどの通信媒体を介して適用することもできる。例えば、通信ネットワーク上の掲示板(BBS:Bulletin Board System)にプログラムを掲示して配信してもよい。そして、このプログラムを起動し、OSの制御下で、他のアプリケーションプログラムと同様に実行することにより、上記の処理を実行できるように構成してもよい。   Moreover, the application method of such a program is arbitrary. The program can be applied by being stored in a computer-readable storage medium such as a flexible disk, a CD (Compact Disc) -ROM, a DVD (Digital Versatile Disc) -ROM, or a memory card. Furthermore, the program can be superimposed on a carrier wave and applied via a communication medium such as the Internet. For example, the program may be posted on a bulletin board (BBS: Bulletin Board System) on a communication network and distributed. Then, this program may be activated and executed in the same manner as other application programs under the control of the OS, so that the above processing can be executed.

以上、本発明の好ましい実施形態について説明したが、本発明は係る特定の実施形態に限定されるものではなく、本発明には、特許請求の範囲に記載された発明とその均等の範囲が含まれる。以下に、本願出願の当初の特許請求の範囲に記載された発明を付記する。   As mentioned above, although preferable embodiment of this invention was described, this invention is not limited to the specific embodiment which concerns, This invention includes the invention described in the claim, and its equivalent range It is. Hereinafter, the invention described in the scope of claims of the present application will be appended.

(付記1)
判定基準値を格納するレジスタと、
前記レジスタに格納された前記判定基準値を、画像形成手段が画像形成を実行するときのタイミング信号のパルスのカウント値に基づいた新たな判定基準値に、更新する更新手段を有する制御手段と、
前記カウント値と、前記レジスタに格納された前記判定基準値と、の比較結果に基づいて、前記制御手段に異常が生じたか否かを判定する異常判定手段と、
を備える、
ことを特徴とする印刷装置。
(Appendix 1)
A register for storing a judgment reference value;
A control unit having an updating unit that updates the determination reference value stored in the register to a new determination reference value based on a pulse count value of a timing signal when the image forming unit executes image formation;
An abnormality determination means for determining whether an abnormality has occurred in the control means based on a comparison result between the count value and the determination reference value stored in the register;
Comprising
A printing apparatus characterized by that.

(付記2)
モータと、当該モータの駆動と停止との切り替えを制御する切り替え制御手段と、をさらに備え、
前記制御手段は、前記モータの前記駆動と前記停止との前記切り替えを前記切り替え制御手段に指令する指令手段をさらに有し、
前記異常判定手段が前記制御手段に前記異常が生じたと判定すると、前記モータの前記駆動を停止させるための停止信号を前記切り替え制御手段に送信して、前記モータの前記駆動を停止させるモータ停止手段をさらに備える、
ことを特徴とする付記1に記載の印刷装置。
(Appendix 2)
A motor and switching control means for controlling switching between driving and stopping of the motor;
The control means further includes command means for instructing the switching control means to perform the switching between the driving and the stopping of the motor,
When the abnormality determination means determines that the abnormality has occurred in the control means, a motor stop means for transmitting the stop signal for stopping the driving of the motor to the switching control means and stopping the driving of the motor. Further comprising
The printing apparatus according to Supplementary Note 1, wherein

(付記3)
印刷データの印刷を実行するときの設定条件に応じて前記タイミング信号の周波数を決定し、前記制御手段が制御信号を送信するためのクロックとは独立したクロックを当該決定した周波数に分周することにより前記タイミング信号を生成する、タイミング信号生成手段をさらに備える、
ことを特徴とする付記1又は2に記載の印刷装置。
(Appendix 3)
The frequency of the timing signal is determined according to the setting condition when printing the print data, and the control unit divides the clock independent of the clock for transmitting the control signal to the determined frequency. Further comprising timing signal generating means for generating the timing signal by:
The printing apparatus according to Supplementary Note 1 or 2, characterized in that:

(付記4)
前記制御手段は、前記カウント値のうちの、前記異常判定手段による判定の対象となる少なくとも一部のビットの値を読み取る読み取り手段をさらに有し、当該読み取り手段が読み取った値よりも大きな値を前記判定基準値として算出し、
前記異常判定手段は、前記カウント値のうちの前記判定の対象となる前記少なくとも一部のビットの値と、前記レジスタに格納された前記判定基準値と、が一致した場合に、前記制御手段に前記異常が生じたと判定する、
ことを特徴とする付記1から3のいずれか1つに記載の印刷装置。
(Appendix 4)
The control unit further includes a reading unit that reads a value of at least a part of the count value to be determined by the abnormality determination unit, and sets a value larger than the value read by the reading unit. Calculated as the criterion value,
The abnormality determination means, when the value of the at least some of the count values to be determined and the determination reference value stored in the register match, the control means It is determined that the abnormality has occurred.
The printing apparatus according to any one of appendices 1 to 3, characterized in that:

(付記5)
前記制御手段は、
前記制御手段に前記異常が生じてから前記異常が生じたことが前記異常判定手段により判定されるまでの上限時間を設定する設定手段と、
前記設定手段が設定した前記上限時間内にカウントされる前記タイミング信号のパルスの前記カウント値のうちの、前記判定の対象となる前記少なくとも一部のビットの値を増分値として導出する導出手段と、
をさらに有し、前記読み取り手段が読み取った値よりも大きな値であって、前記読み取り手段が読み取った値との差が前記増分値以下である値を、前記判定基準値として算出する、
ことを特徴とする付記4に記載の印刷装置。
(Appendix 5)
The control means includes
Setting means for setting an upper limit time from when the abnormality occurs to the control means until the abnormality determining means determines that the abnormality has occurred;
Deriving means for deriving, as an incremental value, the value of the at least some of the count values of the pulse of the timing signal counted within the upper limit time set by the setting means; ,
And a value that is larger than the value read by the reading unit and that has a difference from the value read by the reading unit equal to or smaller than the increment value, is calculated as the determination reference value.
The printing apparatus according to appendix 4, wherein:

(付記6)
前記制御手段は、前記読み取り手段の処理及び前記更新手段の処理を、前記判定の対象となる前記少なくとも一部のビットの値が前記増分値に相当する値だけカウントされる時間以下の周期で繰り返し実行する、
ことを特徴とする付記5に記載の印刷装置。
(Appendix 6)
The control means repeats the processing of the reading means and the processing of the updating means at a period equal to or less than a time during which the values of the at least some bits to be determined are counted by a value corresponding to the increment value. Run,
The printing apparatus according to appendix 5, characterized in that:

(付記7)
端末装置と印刷装置とを備える印刷システムであって、
前記端末装置は、印刷を実行すべき印刷データを前記印刷装置に送信する送信手段を有し、
前記印刷装置は、
制御手段と、
前記端末装置から前記印刷データを受信すると、当該受信した印刷データに従って前記印刷を実行する印刷実行手段と、
前記印刷実行手段が前記印刷を実行している最中に、前記制御手段に異常が生じたか否かを判定する異常判定手段と、
前記異常判定手段が前記制御手段に前記異常が生じたと判定すると、前記異常が生じた旨を前記端末装置に通知する通知手段と、
を有し、
前記端末装置は、前記印刷装置から前記異常が生じた旨の前記通知を受信すると、警告を報知する報知手段と、をさらに有する、
ことを特徴とする印刷システム。
(Appendix 7)
A printing system comprising a terminal device and a printing device,
The terminal device has a transmission means for transmitting print data to be printed to the printing device,
The printing apparatus includes:
Control means;
Print execution means for executing the printing according to the received print data upon receiving the print data from the terminal device;
An abnormality determination unit that determines whether an abnormality has occurred in the control unit while the printing execution unit is executing the printing;
When the abnormality determination unit determines that the abnormality has occurred in the control unit, a notification unit that notifies the terminal device that the abnormality has occurred;
Have
The terminal device further includes notification means for notifying a warning when receiving the notification that the abnormality has occurred from the printing device,
A printing system characterized by that.

(付記8)
前記印刷装置は、
モータと、
前記異常判定手段が前記制御手段に前記異常が生じたと判定すると、前記モータの駆動を停止させるモータ停止手段と、
前記モータ停止手段が前記モータの前記駆動を停止させると、前記モータの前記駆動が停止した旨を前記端末装置に通知する第2の通知手段と、
をさらに有し、
前記端末装置は、
前記印刷装置から前記モータの前記駆動が停止した旨の前記通知を受信すると、前記モータの前記駆動が停止した旨を報知する第2の報知手段と、
をさらに有する、
ことを特徴とする付記7に記載の印刷システム。
(Appendix 8)
The printing apparatus includes:
A motor,
Motor stop means for stopping driving of the motor when the abnormality determination means determines that the abnormality has occurred in the control means;
A second notifying unit for notifying the terminal device that the driving of the motor has stopped when the motor stopping unit stops the driving of the motor;
Further comprising
The terminal device
Second notification means for notifying that the driving of the motor has stopped when receiving the notification that the driving of the motor has stopped from the printing apparatus;
Further having
The printing system according to appendix 7, wherein

(付記9)
制御手段と、判定基準値を格納するレジスタと、を備える印刷装置における異常判定方法であって、
前記レジスタに格納された判定基準値を、画像形成手段が画像形成を実行するときのタイミング信号のパルスのカウント値に基づいた新たな判定基準値に更新し、
前記カウント値と、前記レジスタに格納された前記判定基準値と、の比較結果に基づいて、前記制御手段に異常が生じたか否かを判定する、
ことを特徴とする異常判定方法。
(Appendix 9)
An abnormality determination method in a printing apparatus comprising a control means and a register for storing a determination reference value,
The determination reference value stored in the register is updated to a new determination reference value based on the count value of the timing signal pulse when the image forming unit executes image formation.
Based on a comparison result between the count value and the determination reference value stored in the register, it is determined whether an abnormality has occurred in the control means;
An abnormality determination method characterized by the above.

(付記10)
前記印刷装置はモータをさらに備え、
前記制御手段に前記異常が生じたと判定すると、前記モータの駆動を停止する、
ことを特徴とする付記9に記載の異常判定方法。
(Appendix 10)
The printing apparatus further includes a motor,
When it is determined that the abnormality has occurred in the control means, the driving of the motor is stopped.
The abnormality determination method according to Supplementary Note 9, wherein

(付記11)
印刷データの印刷を実行するときの設定条件に応じて前記タイミング信号の周波数を決定し、
前記制御手段が制御信号を送信するためのクロックとは独立したクロックを当該決定した周波数に分周することにより前記タイミング信号を生成する、
ことを特徴とする付記9又は10に記載の異常判定方法。
(Appendix 11)
The frequency of the timing signal is determined according to the setting conditions when printing the print data,
The control means generates the timing signal by dividing a clock independent of a clock for transmitting a control signal to the determined frequency.
The abnormality determination method according to Supplementary Note 9 or 10, wherein:

(付記12)
前記カウント値のうちの判定の対象となる少なくとも一部のビットの値を読み取り、
読み取った値よりも大きな値を前記判定基準値として算出し、
前記カウント値のうちの前記判定の対象となる前記少なくとも一部のビットの値と、前記レジスタに格納された前記判定基準値と、が一致した場合に、前記制御手段に前記異常が生じたと判定する、
ことを特徴とする付記9から11のいずれか1つに記載の異常判定方法。
(Appendix 12)
Read the value of at least some of the count values to be determined,
A value larger than the read value is calculated as the criterion value,
It is determined that the abnormality has occurred in the control means when the value of the at least some of the count values to be determined and the determination reference value stored in the register match. To
The abnormality determination method according to any one of appendices 9 to 11, characterized in that:

(付記13)
制御手段と、判定基準値を格納するレジスタと、を備えるコンピュータに、
前記レジスタに格納された判定基準値を、画像形成手段が画像形成を実行するときのタイミング信号のパルスのカウント値に基づいた新たな判定基準値に更新させ、
前記カウント値と、前記レジスタに格納された前記判定基準値と、の比較結果に基づいて、前記制御手段に異常が生じたか否かを判定させる、
ことを特徴とするプログラム。
(Appendix 13)
In a computer comprising control means and a register for storing a judgment reference value,
The determination reference value stored in the register is updated to a new determination reference value based on the count value of the pulse of the timing signal when the image forming unit executes image formation.
Based on a comparison result between the count value and the determination reference value stored in the register, it is determined whether an abnormality has occurred in the control unit;
A program characterized by that.

(付記14)
前記制御手段に前記異常が生じたと判定すると、モータの駆動を停止させる、
ことを特徴とする付記13に記載のプログラム。
(Appendix 14)
When it is determined that the abnormality has occurred in the control means, the driving of the motor is stopped.
The program according to appendix 13, characterized by:

(付記15)
印刷データの印刷を実行するときの設定条件に応じて前記タイミング信号の周波数を決定させ、
前記制御手段が制御信号を送信するためのクロックとは独立したクロックを当該決定した周波数に分周することにより前記タイミング信号を生成させる、
ことを特徴とする付記13又は14に記載のプログラム。
(Appendix 15)
The frequency of the timing signal is determined according to the setting conditions when executing print data printing,
The control means generates the timing signal by dividing the clock independent of the clock for transmitting the control signal to the determined frequency,
15. The program according to appendix 13 or 14, characterized by:

(付記16)
前記カウント値のうちの判定の対象となる少なくとも一部のビットの値を読み取らせ、
読み取った値よりも大きな値を前記判定基準値として算出させ、
前記カウント値のうちの前記判定の対象となる前記少なくとも一部のビットの値と、前記レジスタに格納された前記判定基準値と、が一致した場合に、前記制御手段に前記異常が生じたと判定させる、
ことを特徴とする付記13から15のいずれか1つに記載のプログラム。
(Appendix 16)
Read the value of at least some of the count values to be determined,
A value larger than the read value is calculated as the criterion value,
It is determined that the abnormality has occurred in the control means when the value of the at least some of the count values to be determined and the determination reference value stored in the register match. Let
The program according to any one of appendices 13 to 15, characterized in that:

1…印刷装置、2…画像形成部、3…中間転写部、4…給紙部、5…定着部、6(6k、6c、6m、6y)…画像形成ユニット、7…感光体ドラム、8…感光体クリーナ、9…帯電器、10…印刷ヘッド、10a…ヘッド情報ROM、11…現像ローラ、12…トナー供給ローラ、13…転写ベルト、14…ベルト駆動ローラ、15…一次転写ローラ、16…二次転写ローラ、17…給紙ローラ、18…搬送ローラ、19a…加熱ローラ、19b…加圧ローラ、20…I/Fコントローラ、21…受信制御部、22…ROM、23…フォントROM、24…表示制御部、25…ビデオI/F制御部、26…メモリ、26a…標準RAM、26b…拡張RAM、27…圧縮/伸張制御部、28…CPU、30…エンジン制御部、31…FPGA、32…CPU、32a…カウンタ読み取り部、32b…停止時間設定部、32c…増分値導出部、32d…判定基準値算出部、32e…判定基準値更新部、32f…モータ制御指令部、33…定着制御部、34…高圧制御部、41…メインモータ、42…負荷、43…センサ、44…定着サーミスタ、45…定着ヒータ、46…高圧部、50…印刷システム、60…端末装置、61…制御部、62…通信部、63…操作部、64…表示部、65…記憶部、100…ヘッド制御部、101…ビデオI/F制御部、102…ビデオRAM、103…CPUI/F制御部、110…ヘッドI/F制御部、111…ドットパターン生成部、112…ヘッドデータ送信部、113…ヘッド制御信号生成部、114…ストローブ信号生成部、120…基本タイミング生成部、121…タイミング信号生成部、122…カウンタ、123…コンペア、123a…カウンタ入力部、123b…コンペアレジスタ、123c…異常判定部、123d…フェイルセーフ出力部、124…モータタイマカウンタ、124a…フェイルセーフ入力部、124b…モータ制御指令入力部、124c…モータSTARTレジスタ、124d…モータクロック出力部、124e…モータSTART出力部、150a…モータ制御部、150b…モータ制御部 DESCRIPTION OF SYMBOLS 1 ... Printing apparatus, 2 ... Image formation part, 3 ... Intermediate transfer part, 4 ... Paper feed part, 5 ... Fixing part, 6 (6k, 6c, 6m, 6y) ... Image formation unit, 7 ... Photoconductor drum, 8 DESCRIPTION OF SYMBOLS ... Photoconductor cleaner, 9 ... Charger, 10 ... Print head, 10a ... Head information ROM, 11 ... Developing roller, 12 ... Toner supply roller, 13 ... Transfer belt, 14 ... Belt drive roller, 15 ... Primary transfer roller, 16 ... secondary transfer roller, 17 ... feed roller, 18 ... conveying roller, 19a ... heating roller, 19b ... pressure roller, 20 ... I / F controller, 21 ... reception controller, 22 ... ROM, 23 ... font ROM, 24 ... Display control unit, 25 ... Video I / F control unit, 26 ... Memory, 26a ... Standard RAM, 26b ... Expansion RAM, 27 ... Compression / decompression control unit, 28 ... CPU, 30 ... Engine control unit, 31 ... FPG 32 ... CPU, 32a ... Counter reading unit, 32b ... Stop time setting unit, 32c ... Increment value deriving unit, 32d ... Judgment reference value calculation unit, 32e ... Judgment reference value update unit, 32f ... Motor control command unit, 33 ... Fixing control unit 34 ... High pressure control unit 41 ... Main motor 42 ... Load 43 ... Sensor 44 ... Fixing thermistor 45 ... Fixing heater 46 ... High pressure unit 50 ... Printing system 60 ... Terminal device 61 ... Control unit, 62 ... communication unit, 63 ... operation unit, 64 ... display unit, 65 ... storage unit, 100 ... head control unit, 101 ... video I / F control unit, 102 ... video RAM, 103 ... CPU I / F control unit , 110 ... head I / F control unit, 111 ... dot pattern generation unit, 112 ... head data transmission unit, 113 ... head control signal generation unit, 114 ... strobe signal generation unit, 120 ... Timing generator 121, timing signal generator 122, counter, 123, compare, 123a, counter input, 123b, compare register, 123c, abnormality determination unit, 123d, fail-safe output unit, 124, motor timer counter, 124a: Fail safe input unit, 124b ... Motor control command input unit, 124c ... Motor START register, 124d ... Motor clock output unit, 124e ... Motor START output unit, 150a ... Motor control unit, 150b ... Motor control unit

Claims (11)

判定基準値を格納するレジスタと、
前記レジスタに格納された前記判定基準値を、画像形成手段が画像形成を実行するときのタイミング信号のパルスのカウント値に基づいた新たな判定基準値に、更新する更新手段を有する制御手段と、
前記カウント値と、前記レジスタに格納された前記判定基準値と、の比較結果に基づいて、前記制御手段に異常が生じたか否かを判定する異常判定手段と、
を備え、
前記制御手段は、前記カウント値のうちの、前記異常判定手段による判定の対象となる少なくとも一部のビットの値を読み取る読み取り手段をさらに有し、当該読み取り手段が読み取った値よりも大きな値を前記判定基準値として算出し、
前記異常判定手段は、前記カウント値のうちの前記判定の対象となる前記少なくとも一部のビットの値と、前記レジスタに格納された前記判定基準値と、が一致した場合に、前記制御手段に前記異常が生じたと判定する、
ことを特徴とする印刷装置。
A register for storing a judgment reference value;
A control unit having an updating unit that updates the determination reference value stored in the register to a new determination reference value based on a pulse count value of a timing signal when the image forming unit executes image formation;
An abnormality determination means for determining whether an abnormality has occurred in the control means based on a comparison result between the count value and the determination reference value stored in the register;
With
The control unit further includes a reading unit that reads a value of at least a part of the count value to be determined by the abnormality determination unit, and sets a value larger than the value read by the reading unit. Calculated as the criterion value,
The abnormality determination means, when the value of the at least some of the count values to be determined and the determination reference value stored in the register match, the control means It is determined that the abnormality has occurred.
A printing apparatus characterized by that.
モータと、当該モータの駆動と停止との切り替えを制御する切り替え制御手段と、をさらに備え、
前記制御手段は、前記モータの前記駆動と前記停止との前記切り替えを前記切り替え制御手段に指令する指令手段をさらに有し、
前記異常判定手段が前記制御手段に前記異常が生じたと判定すると、前記モータの前記駆動を停止させるための停止信号を前記切り替え制御手段に送信して、前記モータの前記駆動を停止させるモータ停止手段をさらに備える、
ことを特徴とする請求項1に記載の印刷装置。
A motor and switching control means for controlling switching between driving and stopping of the motor;
The control means further includes command means for instructing the switching control means to perform the switching between the driving and the stopping of the motor,
When the abnormality determination means determines that the abnormality has occurred in the control means, a motor stop means for transmitting the stop signal for stopping the driving of the motor to the switching control means and stopping the driving of the motor. Further comprising
The printing apparatus according to claim 1.
印刷データの印刷を実行するときの設定条件に応じて前記タイミング信号の周波数を決定し、前記制御手段が制御信号を送信するためのクロックとは独立したクロックを当該決定した周波数に分周することにより前記タイミング信号を生成する、タイミング信号生成手段をさらに備える、
ことを特徴とする請求項1又は2に記載の印刷装置。
The frequency of the timing signal is determined according to the setting condition when printing the print data, and the control unit divides the clock independent of the clock for transmitting the control signal to the determined frequency. Further comprising timing signal generating means for generating the timing signal by:
The printing apparatus according to claim 1, wherein:
前記制御手段は、
前記制御手段に前記異常が生じてから前記異常が生じたことが前記異常判定手段により判定されるまでの上限時間を設定する設定手段と、
前記設定手段が設定した前記上限時間内にカウントされる前記タイミング信号のパルスの前記カウント値のうちの、前記判定の対象となる前記少なくとも一部のビットの値を増分値として導出する導出手段と、
をさらに有し、前記読み取り手段が読み取った値よりも大きな値であって、前記読み取り手段が読み取った値との差が前記増分値以下である値を、前記判定基準値として算出する、
ことを特徴とする請求項1から3のいずれか1項に記載の印刷装置。
The control means includes
Setting means for setting an upper limit time from when the abnormality occurs to the control means until the abnormality determining means determines that the abnormality has occurred;
Deriving means for deriving, as an incremental value, the value of the at least some of the count values of the pulse of the timing signal counted within the upper limit time set by the setting means; ,
And a value that is larger than the value read by the reading unit and that has a difference from the value read by the reading unit equal to or smaller than the increment value, is calculated as the determination reference value.
The printing apparatus according to claim 1, wherein the printing apparatus is a printer.
前記制御手段は、前記読み取り手段の処理及び前記更新手段の処理を、前記判定の対象となる前記少なくとも一部のビットの値が前記増分値に相当する値だけカウントされる時間以下の周期で繰り返し実行する、
ことを特徴とする請求項4に記載の印刷装置。
The control means repeats the processing of the reading means and the processing of the updating means at a period equal to or less than a time during which the values of the at least some bits to be determined are counted by a value corresponding to the increment value. Run,
The printing apparatus according to claim 4.
制御手段と、判定基準値を格納するレジスタと、を備える印刷装置における異常判定方法であって、An abnormality determination method in a printing apparatus comprising a control means and a register for storing a determination reference value,
前記レジスタに格納された判定基準値を、画像形成手段が画像形成を実行するときのタイミング信号のパルスのカウント値に基づいた新たな判定基準値に更新するステップと、Updating the determination reference value stored in the register to a new determination reference value based on a pulse count value of a timing signal when the image forming unit executes image formation;
前記カウント値と、前記レジスタに格納された前記判定基準値と、の比較結果に基づいて、前記制御手段に異常が生じたか否かを判定するステップと、Determining whether an abnormality has occurred in the control unit based on a comparison result between the count value and the determination reference value stored in the register;
を有し、Have
前記更新するステップは、前記カウント値のうちの判定の対象となる少なくとも一部のビットの値を読み取り、読み取った値よりも大きな値を前記判定基準値として算出し、The updating step reads the value of at least some of the count values to be determined, calculates a value larger than the read value as the determination reference value,
前記判定するステップは、前記カウント値のうちの前記判定の対象となる前記少なくとも一部のビットの値と、前記レジスタに格納された前記判定基準値と、が一致した場合に、前記制御手段に前記異常が生じたと判定する、In the determination step, when the value of the at least some of the count values to be determined and the determination reference value stored in the register match, the control means It is determined that the abnormality has occurred.
ことを特徴とする異常判定方法。An abnormality determination method characterized by the above.
前記印刷装置はモータをさらに備え、The printing apparatus further includes a motor,
前記制御手段に前記異常が生じたと判定すると、前記モータの駆動を停止する、When it is determined that the abnormality has occurred in the control means, the driving of the motor is stopped.
ことを特徴とする請求項6に記載の異常判定方法。The abnormality determination method according to claim 6.
印刷データの印刷を実行するときの設定条件に応じて前記タイミング信号の周波数を決定し、The frequency of the timing signal is determined according to the setting conditions when printing the print data,
前記制御手段が制御信号を送信するためのクロックとは独立したクロックを当該決定した周波数に分周することにより前記タイミング信号を生成する、The control means generates the timing signal by dividing a clock independent of a clock for transmitting a control signal to the determined frequency.
ことを特徴とする請求項6又は7に記載の異常判定方法。The abnormality determination method according to claim 6 or 7, wherein:
制御手段と、判定基準値を格納するレジスタと、を備えるコンピュータに、In a computer comprising control means and a register for storing a judgment reference value,
前記レジスタに格納された判定基準値を、画像形成手段が画像形成を実行するときのタイミング信号のパルスのカウント値に基づいた新たな判定基準値に更新させる手段、Means for updating the determination reference value stored in the register to a new determination reference value based on a pulse count value of a timing signal when the image forming means executes image formation;
前記カウント値と、前記レジスタに格納された前記判定基準値と、の比較結果に基づいて、前記制御手段に異常が生じたか否かを判定させる手段、Means for determining whether an abnormality has occurred in the control means based on a comparison result between the count value and the determination reference value stored in the register;
として機能させ、Function as
前記更新させる手段は、前記カウント値のうちの判定の対象となる少なくとも一部のビットの値を読み取らせ、読み取った値よりも大きな値を前記判定基準値として算出させ、The means for updating causes the value of at least a part of bits to be determined in the count value to be read, and causes a value larger than the read value to be calculated as the determination reference value.
前記判定させる手段は、前記カウント値のうちの前記判定の対象となる前記少なくとも一部のビットの値と、前記レジスタに格納された前記判定基準値と、が一致した場合に、前記制御手段に前記異常が生じたと判定させる、The means for determining determines the control means when the value of the at least some bits to be determined of the count value matches the determination reference value stored in the register. Determining that the abnormality has occurred;
ことを特徴とするプログラム。A program characterized by that.
前記制御手段に前記異常が生じたと判定すると、モータの駆動を停止させる、When it is determined that the abnormality has occurred in the control means, the driving of the motor is stopped.
ことを特徴とする請求項9に記載のプログラム。The program according to claim 9.
印刷データの印刷を実行するときの設定条件に応じて前記タイミング信号の周波数を決定させ、The frequency of the timing signal is determined according to the setting conditions when executing print data printing,
前記制御手段が制御信号を送信するためのクロックとは独立したクロックを当該決定した周波数に分周することにより前記タイミング信号を生成させる、The control means generates the timing signal by dividing the clock independent of the clock for transmitting the control signal to the determined frequency,
ことを特徴とする請求項9又は10に記載のプログラム。The program according to claim 9 or 10, characterized in that
JP2013136844A 2013-06-28 2013-06-28 Printing apparatus, abnormality determination method and program Expired - Fee Related JP6142696B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013136844A JP6142696B2 (en) 2013-06-28 2013-06-28 Printing apparatus, abnormality determination method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013136844A JP6142696B2 (en) 2013-06-28 2013-06-28 Printing apparatus, abnormality determination method and program

Publications (2)

Publication Number Publication Date
JP2015009464A JP2015009464A (en) 2015-01-19
JP6142696B2 true JP6142696B2 (en) 2017-06-07

Family

ID=52303085

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013136844A Expired - Fee Related JP6142696B2 (en) 2013-06-28 2013-06-28 Printing apparatus, abnormality determination method and program

Country Status (1)

Country Link
JP (1) JP6142696B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61284455A (en) * 1985-06-11 1986-12-15 Seiko Epson Corp Printing apparatus
JP4721815B2 (en) * 2005-08-12 2011-07-13 シャープ株式会社 Timing signal generation circuit and image processing apparatus
JP4923685B2 (en) * 2006-04-06 2012-04-25 富士ゼロックス株式会社 Image forming apparatus and operation control method thereof
JP5459199B2 (en) * 2010-12-21 2014-04-02 ブラザー工業株式会社 Image forming apparatus

Also Published As

Publication number Publication date
JP2015009464A (en) 2015-01-19

Similar Documents

Publication Publication Date Title
JP5928409B2 (en) Printing apparatus and lubricant supply method
US10921740B2 (en) Image forming apparatus, method of controlling the same, and storage medium that select, from among a plurality of paper feed sources, one that satisfies a selected condition
JP6314561B2 (en) Image writing apparatus, image forming apparatus, and image writing method
US9989908B2 (en) Image formation system, image density correction method, and image formation apparatus
JP2008139436A (en) Image forming apparatus and method for correcting image forming condition
US9430176B2 (en) Printing apparatus, control method of the printing apparatus, and storage medium
US9239567B2 (en) Data processing apparatus, condensation removal method and program thereof
JP2011197054A (en) Image processing device and method of controlling the same
JP2007316391A (en) Data processing apparatus and image forming apparatus
JP6142696B2 (en) Printing apparatus, abnormality determination method and program
JP5590183B1 (en) Image forming apparatus
US11301871B2 (en) CRUM apparatus to extract power from clock signal having first and second periods
CN108243292B (en) Controller, recording medium, and calibration control method
JP2015206984A (en) Image forming apparatus, image forming method, and program
US10536601B2 (en) Information processing device
US11422495B2 (en) Color registration in real-time
JP2017080915A (en) Image processing device, image formation apparatus and image processing method
US11474446B2 (en) Identifying occurrence of background based on an image density
US20240126187A1 (en) Image forming apparatus and information processing device
JP2016114747A (en) Image forming apparatus
JP6586869B2 (en) Image forming apparatus and program
JP5412467B2 (en) Image forming apparatus
JP2018055239A (en) Image forming apparatus, power supply path forming circuit, and power supply path forming method
JP2014144624A (en) Image forming apparatus
JP2015176113A (en) Control device, control program, and control method for image forming apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160623

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170314

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170321

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: 20170411

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170424

R150 Certificate of patent or registration of utility model

Ref document number: 6142696

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees