JP2018030267A - Image formation apparatus - Google Patents

Image formation apparatus Download PDF

Info

Publication number
JP2018030267A
JP2018030267A JP2016162681A JP2016162681A JP2018030267A JP 2018030267 A JP2018030267 A JP 2018030267A JP 2016162681 A JP2016162681 A JP 2016162681A JP 2016162681 A JP2016162681 A JP 2016162681A JP 2018030267 A JP2018030267 A JP 2018030267A
Authority
JP
Japan
Prior art keywords
unit
image forming
execution
sheet
program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2016162681A
Other languages
Japanese (ja)
Other versions
JP6750396B2 (en
Inventor
優士 小牧
Yuji Komaki
優士 小牧
勇児 利長
Yuji Toshinaga
勇児 利長
成樹 野澤
Shigeki Nozawa
成樹 野澤
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.)
Konica Minolta Inc
Original Assignee
Konica Minolta Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP2016162681A priority Critical patent/JP6750396B2/en
Publication of JP2018030267A publication Critical patent/JP2018030267A/en
Application granted granted Critical
Publication of JP6750396B2 publication Critical patent/JP6750396B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Storing Facsimile Image Data (AREA)
  • Record Information Processing For Printing (AREA)
  • Control Or Security For Electrophotography (AREA)
  • Facsimiles In General (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image formation apparatus which can share the same cache memory for task processing in both of the real-time type and the best effort type while keeping the response accuracy of mechanism control at a high level.SOLUTION: A main control unit 60 of a MFP shares one cache memory 61M for execution of an image formation program 62R and another program 62B requiring the real-time property. A core 61C performs simulation execution of the image formation program 62R, and performs actual execution after completion of the simulation execution. The core 61C executes different commands according to printing conditions, shuts down control output to be transmitted to drive parts 10D-40D of mechanism units 10-40, creates response information from the drive parts 10D-40D thereto in a simulating manner in different modes according to the printing conditions, and locks down the information stored during the simulation execution in the cache memory 61M prior to the actual execution after completion of the simulation execution.SELECTED DRAWING: Figure 4

Description

本発明は画像形成装置に関し、特にそれが実装するプロセッサーによるキャッシュメモリーの利用に関する。   The present invention relates to an image forming apparatus, and more particularly, to use of a cache memory by a processor mounted thereon.

画像形成装置に要求されるデータ処理は、リアルタイム型とその他とに大別される。「リアルタイム型」とは、リアルタイム性が要求されるデータ処理をいう。「リアルタイム性」とは、タスクの最大実行時間の予測可能性と、実際の実行時間が最大値を超えないことに対する確実性との両方を意味する。画像形成装置では、シート搬送機構、印刷エンジン等、画像形成に利用される機構部の制御(以下、「機構制御」という。)が典型的である。リアルタイム型以外のデータ処理の中ではベストエフォート型が代表的である。画像形成装置では、画像処理、ユーザーインターフェース(UI)、およびネットワーク通信がベストエフォート型データ処理に相当する。これらの処理には、必ずしもリアルタイム性は要求されないが、汎用性と拡張性(スケーラビリティー)とは強く求められる。   Data processing required for the image forming apparatus is roughly divided into a real-time type and others. “Real-time type” refers to data processing that requires real-time performance. “Real-time” means both predictability of the maximum execution time of the task and certainty that the actual execution time does not exceed the maximum value. In an image forming apparatus, control of a mechanism unit used for image formation (hereinafter referred to as “mechanism control”) such as a sheet conveyance mechanism and a print engine is typical. Among data processing other than the real-time type, the best effort type is typical. In the image forming apparatus, image processing, user interface (UI), and network communication correspond to best-effort data processing. These processes do not necessarily require real-time performance, but versatility and extensibility (scalability) are strongly required.

リアルタイム型とそれ以外、特にベストエフォート型とのデータ処理間では、要求される条件が異なる。これらの条件のいずれにも的確に対応する目的で従来の画像形成装置ではその電子制御系統(以下、「主制御部」という。)から、機構制御を行うハードウェア(以下、「メカニカルコントローラー部」、略して「メカコン部」という。)が分離されている。特に主制御部とメカコン部とが独自のマイクロプロセッサー(CPU/MPU)を備えている。両者の分離により、たとえば、主制御部には汎用オペレーティングシステム(OS)を実行させ、メカコン部にはリアルタイムOS(RTOS)を実行させるといった工夫が可能である(たとえば特許文献1参照)。主制御部ではその汎用性の高さにより多様なアプリケーションプログラムが実行可能であるので、多機能化が容易である。それとは独立にメカコン部ではリアルタイム性が向上し、搬送ローラー等の可動部材とシートとの動きをμ秒程度の高い応答精度で制御可能である。   The required conditions differ between data processing of the real-time type and the other, particularly the best effort type. For the purpose of accurately responding to any of these conditions, in a conventional image forming apparatus, hardware (hereinafter referred to as a “mechanical controller section”) that performs mechanism control from its electronic control system (hereinafter referred to as “main control section”). , "Mechanical control part" for short). In particular, the main control unit and the mechanical control unit have their own microprocessor (CPU / MPU). By separating the two, for example, it is possible to devise such that the main control unit executes a general-purpose operating system (OS) and the mechanical control unit executes a real-time OS (RTOS) (see, for example, Patent Document 1). Since the main control unit can execute various application programs due to its high versatility, it can be easily multi-functionalized. Independently, the real-time performance is improved in the mechanical control unit, and the movement between the movable member such as the conveyance roller and the sheet can be controlled with a high response accuracy of about microseconds.

近年、組み込みシステムにおけるCPUの高性能化が著しい。特にマルチコアCPUとハイパーバイザーとの組み込みシステムへの応用が進んでいる。これに伴い、メカコン部を主制御部に再統合する技術の開発が試みられている(たとえば特許文献2、3参照)。メカコン部と主制御部との間で、CPU、メインメモリーを始め、機能の共通する電子回路素子を1つに統合することにより電子制御系統の部品点数を削減し、画像形成装置の製造コストを低減させることが狙いである。「マルチコアCPU」は、実際に演算を行う回路部分である「コア」を2個以上含む。CPUがマルチコアであれば、OS別に実行主体のコアを分ける(asymmetric multiprocessing:AMP)ことで、単一のCPUにRTOSと汎用OSとを並列に実行させることが可能である。「ハイパーバイザー」は、1台の物理的なコンピューターを、そのハードウェアが2台以上の仮想的なコンピューター(バーチャルマシーン(VM))に共有されているように動作させるためのソフトウェアである。ハイパーバイザーが異なるVMに異なるOSを実行させることにより、物理的には単一のCPUにRTOSと汎用OSとを並列に実行させることが可能である。   In recent years, the performance of CPUs in embedded systems has increased significantly. In particular, application to a built-in system of a multi-core CPU and a hypervisor is progressing. In connection with this, development of the technique which reintegrates a mechanical control part to a main control part is tried (for example, refer to patent documents 2 and 3). By integrating the CPU, main memory, and other electronic circuit elements having the same function between the mechanical control unit and the main control unit, the number of parts of the electronic control system is reduced and the manufacturing cost of the image forming apparatus is reduced. The aim is to reduce. The “multi-core CPU” includes two or more “cores” that are circuit portions that actually perform operations. If the CPU is a multi-core, it is possible to cause a single CPU to execute an RTOS and a general-purpose OS in parallel by dividing the execution cores by OS (asymmetric multiprocessing: AMP). “Hypervisor” is software for operating one physical computer so that its hardware is shared by two or more virtual computers (virtual machines (VMs)). By causing the hypervisor to execute different OSs on different VMs, it is possible to physically execute RTOS and general-purpose OS in parallel on a single CPU.

特開2004−265301号公報JP 2004-265301 A 特開2016−063407号公報JP, 2006-063407, A 特開2011−192130号公報JP 2011-192130 A 特開2000−250518号公報JP 2000-250518 A

主制御部に搭載されているCPUはキャッシュメモリーを利用するので、メカコン部を主制御部に統合するには、このキャッシュメモリーをリアルタイム型タスク処理にも利用可能にしなければならない。CPUがマルチコアであれば1次キャッシュはコアごとに独立しているので、リアルタイム型タスク処理専用のコアと1次キャッシュとを他のタスク処理用のものから分離することは可能である。しかし、この場合でも、2次キャッシュまたは3次キャッシュは一般に複数のコアにより共用されるので、リアルタイム型タスク処理と他のタスク処理とで共用可能にする必要がある。   Since the CPU mounted on the main control unit uses a cache memory, in order to integrate the mechanical control unit into the main control unit, this cache memory must be made available for real-time task processing. Since the primary cache is independent for each core if the CPU is multi-core, the core dedicated to real-time task processing and the primary cache can be separated from those for other task processing. However, even in this case, since the secondary cache or the tertiary cache is generally shared by a plurality of cores, it is necessary to enable sharing between the real-time task process and other task processes.

リアルタイム型タスク処理にキャッシュメモリーを利用することは、CPUによる命令/データの読み書き時間を確率的に変動させるので、タスクの実行時間を予測させにくくする。それでも、キャッシュヒット率が十分に安定していれば、実行時間の予測は可能である。しかし、リアルタイム型タスク処理にベストエフォート型タスク処理が並行する場合、両処理間でのキャッシュメモリーの共用はキャッシュヒット率を著しく不安定化させる。ベストエフォート型タスク処理ではキャッシュメモリーの利用量が状況に応じて大きく変動するからである。その結果、リアルタイム型タスクの実行時間は予測困難に陥り、メカコン部が主制御部から分離されていた場合と同程度に短い最大実行時間を保証することが困難である。すなわち、メカコン部を主制御部に統合する場合、機構制御の応答精度をμ秒程度の高レベルに維持することが難しい。   Using a cache memory for real-time task processing makes it difficult to predict task execution time because the CPU reads and writes instructions / data stochastically. Nevertheless, if the cache hit rate is sufficiently stable, the execution time can be predicted. However, when best-effort task processing is performed in parallel with real-time task processing, sharing of cache memory between the two processes significantly destabilizes the cache hit rate. This is because in the best effort type task processing, the usage amount of the cache memory greatly varies depending on the situation. As a result, it is difficult to predict the execution time of the real-time task, and it is difficult to guarantee a maximum execution time as short as when the mechanical control unit is separated from the main control unit. That is, when the mechanical control unit is integrated with the main control unit, it is difficult to maintain the response accuracy of the mechanism control at a high level of about microseconds.

本発明の目的は上記の課題を解決することであり、特に、機構制御の応答精度を高く維持したまま、リアルタイム型とベストエフォート型との両方のタスク処理に同じキャッシュメモリーを共用可能にする画像形成装置を提供することにある。   An object of the present invention is to solve the above-described problem, and in particular, an image that enables sharing of the same cache memory for both real-time and best-effort task processing while maintaining high response accuracy of mechanism control. It is to provide a forming apparatus.

本発明の1つの観点による画像形成装置は、リアルタイム性が要求される画像形成プログラムと、必ずしもリアルタイム性が要求されない他のプログラムとの実行に1つのキャッシュメモリーを共用する画像形成装置であって、画像形成プログラムを模擬実行し、その模擬実行の完了後に画像形成プログラムを本実行する実行手段と、画像形成プログラムの模擬実行に先立ち、本実行の際に従うべき印刷条件を取得する条件取得手段と、模擬実行中、条件取得手段が取得した印刷条件に合わせて異なる命令とデータとを画像形成プログラムから実行手段に読み出させ、その命令に従って実行手段から装置各部へ送信されるべき制御出力を遮断し、装置各部に設けられたセンサーからその制御出力に応じて送出されるはずの検出信号を模擬的に、印刷条件に合わせて異なる態様で作成して実行手段へ渡す入出力模擬手段と、画像形成プログラムの模擬実行の完了後、本実行に先立ってキャッシュメモリーに、模擬実行中に記憶した命令とデータとをロックダウンさせるキャッシュロックダウン(CLD)手段とを備えている。   An image forming apparatus according to one aspect of the present invention is an image forming apparatus that shares one cache memory for execution of an image forming program that requires real-time processing and another program that does not necessarily require real-time processing. An execution means for performing a simulation execution of the image forming program and executing the image forming program after the simulation execution is completed; and a condition acquisition means for acquiring a printing condition to be followed during the execution prior to the simulation execution of the image forming program; During simulation execution, the execution unit reads out different commands and data from the image forming program according to the printing conditions acquired by the condition acquisition unit, and cuts off the control output to be transmitted from the execution unit to each part of the apparatus according to the command. Simulate the detection signal that should be sent according to the control output from the sensor provided in each part of the device Input / output simulation means created in different modes according to the printing conditions and passed to the execution means, and instructions and data stored in the cache memory prior to the actual execution after the simulation execution of the image forming program is completed. And a cache lockdown (CLD) means for locking down.

この画像形成装置は、キャッシュメモリーに加えてメインメモリーとプロセッサーとを含む制御部と、シートを搬送し、搬送中のシートの上に画像を形成する機構部と、ユーザーまたは外部の電子機器からデータを受け付ける操作部とを更に備えていてもよい。メインメモリーは、画像形成プログラムと他のプログラムとを記憶してもよい。画像形成プログラムは、機構部を制御部に制御させるプログラムを含んでもよい。上記他のプログラムは、操作部が条件取得手段として機能するように、操作部を制御部に制御させるプログラムを含んでもよい。プロセッサーは、実行手段として機能すると共に、画像形成プログラムの模擬実行により入出力模擬手段とCLD手段としても機能してもよい。   The image forming apparatus includes a control unit including a main memory and a processor in addition to a cache memory, a mechanism unit that conveys a sheet and forms an image on the sheet being conveyed, and data from a user or an external electronic device. And an operation unit that accepts. The main memory may store an image forming program and other programs. The image forming program may include a program that causes the control unit to control the mechanism unit. The other program may include a program for causing the control unit to control the operation unit so that the operation unit functions as a condition acquisition unit. The processor may function as an execution unit, and may also function as an input / output simulation unit and a CLD unit by executing a simulation of an image forming program.

入出力模擬手段は、画像形成プログラムの含む命令のうち機構部へのアクセス命令を実行手段にスキップさせることにより、そのアクセス命令に従って実行手段から機構部へ送信されるべき制御出力を遮断してもよい。実行手段は、機構部のウォームアップ中、またはリカバリー中に、画像形成プログラムを模擬実行してもよい。条件取得手段が印刷条件を更新する度に、実行手段は画像形成プログラムを模擬実行してもよい。   The input / output simulation means may block the control output to be transmitted from the execution means to the mechanism section according to the access instruction by causing the execution means to skip the access instruction to the mechanism section among the instructions included in the image forming program. Good. The execution unit may simulate the image forming program during warming up or recovery of the mechanism unit. The execution unit may simulate the image forming program every time the condition acquisition unit updates the printing conditions.

入出力模擬手段は、模擬的に作成すべき検出信号の態様を、条件取得手段が取得した印刷条件が示す次の項目の少なくとも1つに合わせて変更してもよい。(1)シートの給紙場所または排紙場所。(2)片面印刷と両面印刷とのいずれを示すか。(3)シートのサイズ、紙種、または姿勢。(4)カラーモードとモノクロモードとのいずれを示すか。(5)後処理装置が外付けされているか否か。   The input / output simulation means may change the mode of the detection signal to be created in accordance with at least one of the following items indicated by the printing conditions acquired by the condition acquisition means. (1) A sheet feeding place or a sheet discharging place. (2) Whether to indicate single-sided printing or double-sided printing. (3) Sheet size, paper type, or posture. (4) Which of the color mode and the monochrome mode is indicated? (5) Whether a post-processing device is externally attached.

本発明の上記の観点による画像形成装置では、画像形成プログラムの模擬実行中に入出力模擬手段が、印刷条件に合わせて異なる命令とデータとを画像形成プログラムから実行手段に読み出させ、その命令に従って実行手段から送信されるべき制御出力を遮断し、その制御出力に応じてセンサーから送出されるはずの検出信号を模擬的に、印刷条件に合わせて異なる態様で作成して実行手段へ渡す。模擬実行の完了後、画像形成プログラムの本実行に先立ってCLD手段がキャッシュメモリーに、画像形成プログラムの模擬実行中に記憶した命令とデータとをロックダウンさせる。その結果、画像形成プログラムの本実行では、キャッシュメモリーにロックダウンされた命令とデータとに従って機構制御が実行される。この間、機構制御に他のデータ処理が並列に実行されても、キャッシュメモリーにロックダウンされた命令とデータとは他の命令とデータとに上書きされることがない。したがって、機構制御におけるキャッシュヒット率が安定に維持される。こうして、この画像形成装置は、機構制御の応答精度を高く維持したまま、リアルタイム型とベストエフォート型との両方のタスク処理に同じキャッシュメモリーを共用することができる。   In the image forming apparatus according to the above aspect of the present invention, during simulation execution of the image forming program, the input / output simulation unit causes the execution unit to read different commands and data according to the printing conditions from the image forming program. The control output to be transmitted from the execution means is cut off according to the control output, and the detection signal that should be sent from the sensor in accordance with the control output is created in a different manner according to the printing conditions and passed to the execution means. After the simulation execution is completed, prior to the actual execution of the image forming program, the CLD means locks down the instructions and data stored in the cache memory during the simulation execution of the image forming program. As a result, in the actual execution of the image forming program, mechanism control is executed according to the instruction and data locked down in the cache memory. During this time, even if other data processing is executed in parallel for mechanism control, the instructions and data locked down in the cache memory are not overwritten with other instructions and data. Therefore, the cache hit rate in the mechanism control is stably maintained. Thus, the image forming apparatus can share the same cache memory for both real-time and best-effort task processing while maintaining high response accuracy of mechanism control.

(a)は、本発明の実施形態による画像形成装置の外観を示す斜視図である。(b)は、(a)の示す直線b−bに沿った画像形成装置の模式的な断面図である。FIG. 1A is a perspective view illustrating an appearance of an image forming apparatus according to an embodiment of the present invention. (B) is a schematic cross-sectional view of the image forming apparatus along a line bb shown in (a). 図1の示す画像形成装置の搬送機構が構成するシートの搬送経路を示す模式図である。FIG. 2 is a schematic diagram illustrating a sheet conveyance path formed by a conveyance mechanism of the image forming apparatus illustrated in FIG. 1. (a)は、図1の示す画像形成装置の斜め前方からの斜視図であり、(b)はその装置のシャーシの斜め後方からの斜視図である。FIG. 2A is a perspective view of the image forming apparatus shown in FIG. 1 as viewed obliquely from the front, and FIG. 2B is a perspective view of the apparatus shown in FIG. 図1の示す画像形成装置の電子制御系統の構成を示すブロック図である。FIG. 2 is a block diagram illustrating a configuration of an electronic control system of the image forming apparatus illustrated in FIG. 1. (a)は、図4の示すキャッシュメモリーの構成を示すブロック図である。(b)は、(a)の示すメモリーアレイのデータ構造を示す模式図である。FIG. 5A is a block diagram illustrating a configuration of the cache memory illustrated in FIG. 4. (B) is a schematic diagram showing the data structure of the memory array shown in (a). (a)は、通常の状態でキャッシュミスが生じた場合におけるキャッシュメモリーの動作を示す模式図である。(b)は、コアからキャッシュロックダウンが指示された状態でキャッシュミスが生じた場合におけるキャッシュメモリーの動作を示す模式図である。(A) is a schematic diagram showing the operation of the cache memory when a cache miss occurs in a normal state. (B) is a schematic diagram showing the operation of the cache memory when a cache miss occurs in a state where a cache lockdown is instructed from the core. (a)は、画像形成プログラムの実行開始直後におけるCPUの動作を示す模式図である。(b)は、画像形成プログラムの模擬実行中におけるCPUの動作を示す模式図である。(A) is a schematic diagram showing the operation of the CPU immediately after the start of execution of the image forming program. (B) is a schematic diagram showing the operation of the CPU during the simulation execution of the image forming program. (a)は、画像形成プログラムの本実行中におけるCPUの動作を示す模式図である。(b)は、画像形成プログラムの本実行の完了時におけるCPUの動作を示す模式図である。(A) is a schematic diagram showing the operation of the CPU during the main execution of the image forming program. (B) is a schematic diagram showing the operation of the CPU when the main execution of the image forming program is completed. (a)は、シートの給紙場所と紙種との組み合わせ別に、図2の示す通紙センサーによるシートの検出時間を示す表である。(b)は、シートの排紙場所と紙種との組み合わせ別に、シートが排紙センサーの通過に要する時間を示す表である。(c)は、シートの紙種、サイズ、姿勢の組み合わせ別に、タイミングローラーがシートの後端をタイミングセンサーの検出範囲から引き出すのに要する時間を示す表である。(d)は、片面印刷と両面印刷とのそれぞれにおいて通紙センサーがシートを検出する時間と切換爪の駆動ソレノイドの動作時間とを示す表である。(e)は、プリンターの動作モードがカラーモードとモノクロモードとの別に、印刷エンジンにおける駆動対象のモーターを示す表である。(A) is a table | surface which shows the detection time of the sheet | seat by the paper passing sensor shown in FIG. 2 according to the combination of a sheet feeding place and a paper type. (B) is a table showing the time required for the sheet to pass through the sheet discharge sensor for each combination of sheet discharge location and paper type. (C) is a table showing the time required for the timing roller to pull out the trailing edge of the sheet from the detection range of the timing sensor for each combination of the sheet type, size, and orientation of the sheet. (D) is a table | surface which shows the time when the paper passing sensor detects a sheet | seat in each of single-sided printing and double-sided printing, and the operation time of the drive claw drive solenoid. (E) is a table showing motors to be driven in the print engine, regardless of whether the printer operation mode is the color mode or the monochrome mode. 画像形成プログラムの実行処理のフローチャートである。5 is a flowchart of an image forming program execution process. 図10の示すステップS105における本実行による機構制御のうち、給送ローラー群の制御のフローチャートである。It is a flowchart of control of a feeding roller group among the mechanism control by this execution in step S105 shown in FIG. 図10の示すステップS103における模擬実行による機構制御のうち、図11の示す給送ローラー群の制御に相当する部分のフローチャートである。12 is a flowchart of a portion corresponding to the control of the feeding roller group shown in FIG. 11 in the mechanism control by the simulation execution in step S103 shown in FIG. (a)は、図1の示す画像形成装置に外付けされた中継ユニットと後処理装置との外観を示す斜視図である。(b)は、これらの中継ユニットと後処理装置とに内蔵されたシートの搬送経路を示す模式図である。FIG. 2A is a perspective view illustrating an external appearance of a relay unit and a post-processing device that are externally attached to the image forming apparatus illustrated in FIG. 1. FIG. 4B is a schematic diagram illustrating a sheet conveyance path built in the relay unit and the post-processing apparatus.

以下、本発明の実施形態について、図面を参照しながら説明する。
[画像形成装置の外観]
図1の(a)は、本発明の実施形態による画像形成装置100の外観を示す斜視図である。この画像形成装置は複合機(multi-function peripheral:MFP)100であり、スキャナー、カラーコピー機、およびカラーレーザープリンターの機能を併せ持つ。MFP100の筐体の上面には自動原稿送り装置(auto document feeder:ADF)110が開閉可能に装着されている。ADF110の直下に位置する筐体の上部にはスキャナー120が内蔵され、この筐体の下部にはプリンター130が内蔵されている。プリンター130の底部には給紙カセット133が引き出し可能に取り付けられている。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[Appearance of image forming apparatus]
FIG. 1A is a perspective view showing an external appearance of an image forming apparatus 100 according to an embodiment of the present invention. This image forming apparatus is a multi-function peripheral (MFP) 100 and has functions of a scanner, a color copier, and a color laser printer. An automatic document feeder (ADF) 110 is mounted on the upper surface of the MFP 100 so as to be openable and closable. A scanner 120 is built in the upper part of the casing located directly under the ADF 110, and a printer 130 is built in the lower part of the casing. A paper feed cassette 133 is attached to the bottom of the printer 130 so that it can be pulled out.

MFP100は胴内排紙型である。すなわち、スキャナー120とプリンター130との隙間DSPには排紙トレイ46が設置され、その隙間DSPの奥の排紙口42から排紙されたシートを収容する。この隙間DSPには更に反転トレイ47が排紙トレイ46の上に設置されている。両面印刷時、表面が印刷されたシートは反転トレイ47の上でスイッチバックする。すなわち、そのシートは、排紙口42の上に開いた反転口44から反転トレイ47の上へはみ出す位置まで一旦搬送され、その後、搬送方向が反転して反転口44の中に再び引き込まれる。   MFP 100 is an in-body discharge type. That is, a paper discharge tray 46 is installed in the gap DSP between the scanner 120 and the printer 130, and accommodates sheets discharged from the paper discharge port 42 at the back of the gap DSP. A reverse tray 47 is further installed on the paper discharge tray 46 in the gap DSP. At the time of duplex printing, the sheet on which the surface is printed is switched back on the reverse tray 47. That is, the sheet is once conveyed from the reversing port 44 opened above the paper discharge port 42 to a position where it protrudes onto the reversing tray 47, and then the conveyance direction is reversed and the sheet is again drawn into the reversing port 44.

[画像形成装置の機構部]
図1の(b)は、図1の(a)の示す直線b−bに沿った、MFP100の模式的な断面図である。この図が示すように、MFP100の筐体下部にはプリンター130の機構部が組み込まれている。この機構部は、給送部10、作像部20、定着部30、および排紙部40を含む。
[Mechanical part of image forming apparatus]
FIG. 1B is a schematic cross-sectional view of the MFP 100 along the line bb shown in FIG. As shown in this figure, the mechanism unit of the printer 130 is incorporated in the lower part of the casing of the MFP 100. The mechanism unit includes a feeding unit 10, an image forming unit 20, a fixing unit 30, and a paper discharge unit 40.

−給送部−
給送部10は給送ローラー群12P、12R、12F、13、14、15を利用して、給紙カセット11a、11b、または手差しトレイ16に収容されたシートの束SHTからシートSH1を1枚ずつ作像部20へ給送する。「シート」とは、紙製もしくは樹脂製の薄膜状もしくは薄板状の材料、物品、または印刷物をいう。給紙カセット11a、11b、および手差しトレイ16に収容可能なシートの種類、すなわち紙種はたとえば、普通紙、上質紙、カラー用紙、または塗工紙であり、サイズはたとえば、A3、A4、A5、B4、またはB5である。さらに、シートの姿勢は縦置きと横置きとのいずれにも設定可能である。
-Feeding section-
The feeding unit 10 uses the feeding roller groups 12P, 12R, 12F, 13, 14, and 15 to feed one sheet SH1 from the sheet bundle SHT stored in the sheet feeding cassettes 11a and 11b or the manual feed tray 16. The images are fed to the image forming unit 20 one by one. “Sheet” refers to a thin film or thin plate material, article, or printed material made of paper or resin. The types of sheets that can be accommodated in the paper feed cassettes 11a and 11b and the manual feed tray 16, that is, the paper type are, for example, plain paper, fine paper, color paper, or coated paper, and the sizes are, for example, A3, A4, A5. , B4, or B5. Furthermore, the posture of the sheet can be set to either vertical or horizontal.

−作像部(印刷エンジン)−
作像部20は、給送部10から送られたシートSH2の上にトナー像を形成する。この形成には印刷エンジンが利用される。印刷エンジンはたとえば、タンデム方式の4つの作像ユニット21Y、21M、21C、21K、中間転写ベルト23、およびレーザー走査方式の露光部26を含む。
-Image forming part (print engine)-
The image forming unit 20 forms a toner image on the sheet SH2 sent from the feeding unit 10. A print engine is used for this formation. The print engine includes, for example, four tandem image forming units 21Y, 21M, 21C, and 21K, an intermediate transfer belt 23, and a laser scanning exposure unit 26.

作像ユニット21Y、…はまず、感光体ドラム25Y、25M、25C、25Kの表面を一様に帯電させ、その帯電部分を露光部26にレーザー光で、各感光体ドラム25Y、…の軸方向(図1の(b)では紙面の法線方向)に走査させる。レーザー光量は露光部26により、画像データの1ラインが示す、イエロー(Y)、マゼンタ(M)、シアン(C)、およびブラック(K)のうちいずれかの色の階調値で変調されている。これにより、異なる感光体ドラム上の露光領域には、異なる色の階調値分布に対応する帯電量分布、すなわち静電潜像が生じる。各作像ユニット21Y、…は次に、Y、M、C、Kのうちいずれかの色のトナーを帯電させて静電潜像に付着させる。こうして、異なる感光体ドラム上に異なる単色のトナー像が現れる。このような露光と現像とを作像ユニット21Y、…は画像データの異なるラインごとに所定角度ずつ感光体ドラム25Y、…を回転させながら繰り返す。こうして、その画像データの表す画像の全体が4本の感光体ドラム25Y、…のそれぞれに、Y、M、C、Kの各単色のトナー像として再現される。   First, the image forming units 21Y,... Uniformly charge the surfaces of the photosensitive drums 25Y, 25M, 25C, 25K, and the charged portions are irradiated with laser light to the exposure unit 26, and the axial directions of the photosensitive drums 25Y,. Scanning is performed in the direction normal to the paper surface in FIG. The amount of laser light is modulated by the tone value of one of the colors yellow (Y), magenta (M), cyan (C), and black (K) indicated by one line of the image data by the exposure unit 26. Yes. As a result, charge amount distributions corresponding to the gradation value distributions of different colors, that is, electrostatic latent images, are generated in the exposure areas on the different photosensitive drums. Next, each of the image forming units 21Y,... Charges the toner of any color among Y, M, C, and K and attaches it to the electrostatic latent image. Thus, different monochrome toner images appear on different photosensitive drums. The image forming unit 21Y,... Repeats such exposure and development while rotating the photosensitive drum 25Y,... By a predetermined angle for each different line of image data. Thus, the entire image represented by the image data is reproduced on each of the four photosensitive drums 25Y,... As a single color toner image of Y, M, C, K.

中間転写ベルト23は駆動ローラー23Rと従動ローラー23Lとの間に張られ、駆動ローラー23Rからのトルクで回転する。この回転により、中間転写ベルト23上のある一定の表面領域が1次転写ローラー22Y、22M、22C、22Kと感光体ドラム25Y、…との間のニップを順番に通過する。各ニップには、中間転写ベルト23のその表面領域の通過タイミングに合わせて、対応する感光体ドラム25Y、…上の単色のトナー像が進入してその表面領域に接触する。このとき、1次転写ローラー22Y、…と感光体ドラム25Y、…との間の電界により、各トナー像は感光体ドラム25Y、…から中間転写ベルト23のその表面領域へ転写される。こうしてその表面領域に4つの単色のトナー像が重ねられて、1つのカラートナー像が構成される。このカラートナー像は中間転写ベルト23の駆動ローラー23Rと2次転写ローラー24との間のニップを、給送部10から送出されたシートSH2と同時に通過してそのシートSH2に接触する。このとき、カラートナー像は両ローラー23、24間の電界により、中間転写ベルト23からそのシートSH2へ転写される。その後、そのシートSH2は中間転写ベルト23の駆動ローラー23Rにより定着部30へ送り出される。   The intermediate transfer belt 23 is stretched between the driving roller 23R and the driven roller 23L, and rotates with torque from the driving roller 23R. By this rotation, a certain surface area on the intermediate transfer belt 23 sequentially passes through the nip between the primary transfer rollers 22Y, 22M, 22C, 22K and the photosensitive drum 25Y,. In accordance with the passage timing of the surface area of the intermediate transfer belt 23, the monochrome toner image on the corresponding photosensitive drum 25Y,... Enters each nip and contacts the surface area. At this time, each toner image is transferred from the photosensitive drums 25Y,... To the surface area of the intermediate transfer belt 23 by the electric field between the primary transfer rollers 22Y,. In this way, four color toner images are superimposed on the surface area to form one color toner image. This color toner image passes through the nip between the driving roller 23R of the intermediate transfer belt 23 and the secondary transfer roller 24 simultaneously with the sheet SH2 sent from the feeding unit 10, and comes into contact with the sheet SH2. At this time, the color toner image is transferred from the intermediate transfer belt 23 to the sheet SH2 by the electric field between the rollers 23 and 24. Thereafter, the sheet SH2 is sent out to the fixing unit 30 by the drive roller 23R of the intermediate transfer belt 23.

露光部26は光源として4個の半導体レーザー素子を含み、各素子への供給電流量を、画像データが示すY、M、C、Kの階調値で変調することにより、各素子から出射するレーザー光量を変調する。各レーザー光はポリゴンミラー271で反射されてfθレンズ273を透過し、折り返しミラー(28Y、29Y)、(28M、29M)、(28C、29C)、28Kで反射されて目標の感光体ドラム25Y、…へ照射される。このとき、露光部26はポリゴンミラー271をモーター272で、その中心軸(図1の(b)では上下方向に伸びている。)のまわりに一定の角速度で回転させる。これにより、ポリゴンミラー271からfθレンズ273へのレーザー光の入射角が等速度で変化する。fθレンズ273はたとえば2枚の非球面レンズから構成され、ポリゴンミラー271からの入射光を各感光体ドラム25Y、…の表面に結像させる。像高が入射角に比例するという性質をfθレンズ273が持つので、結像点はポリゴンミラー271の等速回転に伴い、感光体ドラム25Y、…の表面上をその軸方向(図1の(b)では紙面の法線方向)に等速度で移動する。   The exposure unit 26 includes four semiconductor laser elements as light sources, and emits light from each element by modulating the amount of current supplied to each element with the gradation values Y, M, C, and K indicated by the image data. Modulates the amount of laser light. Each laser beam is reflected by the polygon mirror 271 and transmitted through the fθ lens 273, and is reflected by the folding mirrors (28Y, 29Y), (28M, 29M), (28C, 29C), and 28K to be the target photosensitive drum 25Y, It is irradiated to ... At this time, the exposure unit 26 rotates the polygon mirror 271 with a motor 272 around its central axis (extending in the vertical direction in FIG. 1B) at a constant angular velocity. As a result, the incident angle of the laser light from the polygon mirror 271 to the fθ lens 273 changes at a constant speed. The fθ lens 273 is composed of, for example, two aspheric lenses, and forms an image of incident light from the polygon mirror 271 on the surface of each photosensitive drum 25Y,. Since the fθ lens 273 has a property that the image height is proportional to the incident angle, the image formation point moves along the axial direction on the surface of the photosensitive drum 25Y,. In b), it moves at a constant speed in the normal direction of the paper).

−定着部−
定着部30は、作像部20から送出されたシートSH2にトナー像を熱定着させる。具体的には、定着部30は定着ローラー31と加圧ローラー32とを回転させながら両ローラー間のニップにシートSH2を通紙する。このとき、定着ローラー31はそのシートSH2へ内蔵のヒーターの熱を加え、加圧ローラー32はそのシートSH2の加熱部分に対して圧力を加えて定着ローラー31へ押し付ける。定着ローラー31からの熱と加圧ローラー32からの圧力とによりトナーがシートSH2に溶着するので、トナー像がそのシートSH2に定着する。定着部30は更に定着ローラー31と加圧ローラー32との回転により、そのシートSH2を排紙部40へ送り出す。
-Fixing part-
The fixing unit 30 heat-fixes the toner image on the sheet SH2 sent from the image forming unit 20. Specifically, the fixing unit 30 passes the sheet SH2 through the nip between both rollers while rotating the fixing roller 31 and the pressure roller 32. At this time, the fixing roller 31 applies heat of a built-in heater to the sheet SH2, and the pressure roller 32 applies pressure to the heated portion of the sheet SH2 and presses it against the fixing roller 31. Since the toner is welded to the sheet SH2 by the heat from the fixing roller 31 and the pressure from the pressure roller 32, the toner image is fixed to the sheet SH2. The fixing unit 30 further sends the sheet SH <b> 2 to the paper discharge unit 40 by the rotation of the fixing roller 31 and the pressure roller 32.

定着ローラー31に内蔵のヒーターはたとえばハロゲンヒーターであり、定着ローラー31の芯金に埋め込まれている。定着部30は、定着ローラー31の近傍に設置された温度センサー35で定着ローラー31の外周面温度を監視する。温度センサー35はたとえば、サーモパイルを利用した非接触型温度センサーであり、定着ローラー31の外周面からの放射熱量に基づいて定着ローラー31の外周面温度を計測する。この計測値を定着部30はハロゲンヒーターの発熱量の制御に利用する。   The heater built in the fixing roller 31 is a halogen heater, for example, and is embedded in the core metal of the fixing roller 31. The fixing unit 30 monitors the outer peripheral surface temperature of the fixing roller 31 with a temperature sensor 35 installed in the vicinity of the fixing roller 31. For example, the temperature sensor 35 is a non-contact temperature sensor using a thermopile, and measures the outer peripheral surface temperature of the fixing roller 31 based on the amount of radiant heat from the outer peripheral surface of the fixing roller 31. The fixing unit 30 uses this measured value for controlling the amount of heat generated by the halogen heater.

−排紙部−
排紙部40は、定着部30から送出されたシートSH3、SH4を、排紙口42から排紙トレイ46へ排紙し、または反転トレイ47でスイッチバックさせる。具体的には、排紙部40はまず、シートの送り先に応じて切換爪41を上下させる。切換爪41は、その基端が排紙口42と反転口44との間に回転可能に固定された爪状または板状の部材であり、基端のまわりに揺動することによって先端を上下に移動させる。切換爪41に先端を上げさせるとシートは排紙口42へ進み、下げさせると反転口44へ進む。排紙部40は次に排紙ローラー43または反転ローラー45を回転させる。排紙ローラー43は排紙口42の内側に配置され、切換爪41を通過したシートSH3を排紙口42から排紙トレイ46へ送出する。反転ローラー45は反転口44の内側に配置され、正逆両方向に回転可能である。反転ローラー45はまず正転し、切換爪41を越えて移動してきたシートSH4を一旦、反転口44から送出して反転トレイ47に載せる。反転ローラー45は更に、そのシートSH4の後端を通過させる直前に逆転してそのシートSH4を反転トレイ47から反転口44の中へ引き込み、すなわちスイッチバックさせて循環路48へ送る。循環路48では4対の搬送ローラー49A,49B、49C、49Dが、反転ローラー45の送出したシートSH5を裏返して給送部10内の搬送経路へ戻す。その後、給送部10はこのシートSH5を再び作像部20へ送り、作像部20はこのシートSH5の裏面にトナー像を形成する。定着部30はこのシートSH5に再び熱処理を行い、排紙部40はこのシートSH5を今度は排紙トレイ46へ送出する。
-Output section-
The paper discharge unit 40 discharges the sheets SH <b> 3 and SH <b> 4 sent from the fixing unit 30 from the paper discharge port 42 to the paper discharge tray 46, or switches back by the reverse tray 47. Specifically, the paper discharge unit 40 first raises and lowers the switching claw 41 according to the sheet destination. The switching claw 41 is a claw-like or plate-like member whose base end is rotatably fixed between the paper discharge port 42 and the reversing port 44, and swings around the base end to move the tip up and down. Move to. When the leading edge of the switching claw 41 is raised, the sheet advances to the paper discharge port 42, and when it is lowered, the sheet advances to the reversing port 44. The paper discharge unit 40 then rotates the paper discharge roller 43 or the reverse roller 45. The paper discharge roller 43 is disposed inside the paper discharge port 42 and sends out the sheet SH3 that has passed through the switching claw 41 from the paper discharge port 42 to the paper discharge tray 46. The reversing roller 45 is disposed inside the reversing port 44 and can be rotated in both forward and reverse directions. The reversing roller 45 first rotates forward, and the sheet SH4 that has moved beyond the switching claw 41 is once sent from the reversing port 44 and placed on the reversing tray 47. The reversing roller 45 further reverses immediately before passing the rear end of the sheet SH4, pulls the sheet SH4 from the reversing tray 47 into the reversing port 44, that is, switches back and sends it to the circulation path 48. In the circulation path 48, the four pairs of transport rollers 49 </ b> A, 49 </ b> B, 49 </ b> C, and 49 </ b> D turn over the sheet SH <b> 5 sent by the reverse roller 45 and return it to the transport path in the feeding unit 10. Thereafter, the feeding unit 10 sends the sheet SH5 again to the image forming unit 20, and the image forming unit 20 forms a toner image on the back surface of the sheet SH5. The fixing unit 30 heat-treats the sheet SH5 again, and the paper discharge unit 40 sends the sheet SH5 to the paper discharge tray 46 this time.

−シートの搬送経路−
MFP100では、給送部10と排紙部40とに加え、中間転写ベルト23の駆動ローラー23R、2次転写ローラー24、定着ローラー31、加圧ローラー32等、作像部20と定着部30との一部がシートの搬送機構としても機能する。
図2は、この搬送機構が構成するシートの搬送経路を示す模式図である。給紙カセットの1段目11aと2段目11b、および手差しトレイ16のそれぞれから伸びる3本の給紙経路が第1合流点MP1で1本の経路にまとまる。この経路は作像部20と定着部30とを貫き、切換爪41に面した分岐点BPで2本に分かれる。1本は排紙口42で排紙トレイ46へ繋がり、もう1本は反転口44で反転トレイ47と循環路48とへ繋がる。循環路48は、第1合流点MP1と作像部20との間に位置する第2合流点MP2で元の経路に繋がる。
-Sheet transport path-
In the MFP 100, in addition to the feeding unit 10 and the paper discharge unit 40, the image forming unit 20 and the fixing unit 30, such as the driving roller 23 </ b> R of the intermediate transfer belt 23, the secondary transfer roller 24, the fixing roller 31, and the pressure roller 32. A part of this also functions as a sheet transport mechanism.
FIG. 2 is a schematic diagram illustrating a sheet conveyance path formed by the conveyance mechanism. Three paper feed paths extending from the first stage 11a and the second stage 11b of the paper feed cassette and the manual feed tray 16 are combined into one path at the first junction MP1. This path passes through the image forming unit 20 and the fixing unit 30 and is divided into two at a branch point BP facing the switching claw 41. One is connected to the paper discharge tray 46 at the paper discharge port 42, and the other is connected to the reverse tray 47 and the circulation path 48 at the reverse port 44. The circulation path 48 is connected to the original path at a second junction MP2 located between the first junction MP1 and the image forming unit 20.

−通紙センサーを利用した搬送タイミングの制御−
図2が示すように、搬送経路上には、搬送ローラー群12P、…に加えて通紙センサー1FS、2FS、CS、TS、ES、1RS、2RSが設置されている。各通紙センサー1FS、…は、その設置場所を通過中のシートを光学的に検出し、それを示す信号を送出する。具体的には、各通紙センサーは発光部と受光部とを含む。発光部は赤外線等、所定波長の光を出射し、受光部はその波長の光を検知してその出力信号を変化させる。各通紙センサーの設置場所を1枚のシートが通過する間、そのシートは発光部の出射光を受光部の手前で遮断し、または受光部へ向けて反射する。この出射光の遮断または反射に応じて受光部の出力信号が変化することから、各通紙センサーの設置場所を通過中のシートが検出される。この出力信号、すなわち通紙センサー1FS、…の検出信号の状態を、給送部10、作像部20、定着部30、および排紙部40は後述の主制御部60(図4参照。)へ通知する。この通知に応じて主制御部60は、以下に示すとおり、搬送ローラーの回転と停止とのタイミングを制御し、ジャム等に起因してシートの搬送タイミングに異常が生じているか否かを判断する。
-Control of transport timing using paper feed sensor-
As shown in FIG. 2, in addition to the transport roller group 12P,..., Paper passing sensors 1FS, 2FS, CS, TS, ES, 1RS, and 2RS are installed on the transport path. Each of the sheet passing sensors 1FS,... Optically detects a sheet passing through the installation location and sends a signal indicating the sheet. Specifically, each paper passing sensor includes a light emitting unit and a light receiving unit. The light emitting unit emits light of a predetermined wavelength such as infrared rays, and the light receiving unit detects light of that wavelength and changes its output signal. While one sheet passes through the installation location of each sheet passing sensor, the sheet blocks the light emitted from the light emitting unit in front of the light receiving unit or reflects it toward the light receiving unit. Since the output signal of the light receiving unit changes according to the interception or reflection of the emitted light, the sheet passing through the installation location of each paper passing sensor is detected. The output signal, that is, the state of the detection signal of the sheet passing sensor 1FS,..., The feeding unit 10, the image forming unit 20, the fixing unit 30, and the sheet discharging unit 40 are described below with a main control unit 60 (see FIG. 4). To notify. In response to this notification, the main control unit 60 controls the timing of rotation and stop of the conveyance roller as described below, and determines whether or not an abnormality has occurred in the sheet conveyance timing due to a jam or the like. .

給紙カセット11a、11bの近傍には、ピックアップローラー12P、給紙ローラー12F、捌きローラー12R、および給紙センサー1FS、2FSが設置されている。給送ローラー群12P、12F、12Rは、複数枚のシートを連続して給送する場合、間欠的に回転して、連続するシートの間隔(紙間)を所定値に維持する。各給紙センサー1FS、2FSの出力が示すシートの通過タイミングに遅れがないか否かに応じて、給送ローラー群12P、12F、12Rがシートを正常な紙間で給送経路へ送出しているか否かが判断される。   In the vicinity of the sheet feeding cassettes 11a and 11b, a pickup roller 12P, a sheet feeding roller 12F, a separating roller 12R, and sheet feeding sensors 1FS and 2FS are installed. The feeding roller groups 12P, 12F, and 12R rotate intermittently when a plurality of sheets are continuously fed, and maintain the interval between consecutive sheets (paper interval) at a predetermined value. Depending on whether or not there is a delay in the sheet passing timing indicated by the outputs of the sheet feeding sensors 1FS and 2FS, the feeding roller groups 12P, 12F, and 12R send the sheets to the feeding path between normal sheets. It is determined whether or not.

2段目の給紙カセット11bからの給送経路には、縦搬ローラー13と縦搬センサーCSとが設置されている。縦搬センサーCSの出力が示すシートの通過タイミングに遅れがないか否かに応じて、縦搬ローラー13がシートを正常なタイミングで第1合流点MP1へ送出しているか否かが判断される。
第2合流点MP2と2次転写ローラー24との間には、タイミングローラー14とタイミングセンサーTSとが設置されている。タイミングローラー14は、シートが給紙カセット11a、11b、手差しトレイ16、および循環路48のいずれから到達する時点でも停止しており、そのシートを一旦停止させる。そのシートの到着がタイミングセンサーTSの出力から検知されると、その到着時点から所定時間が経過した時点でタイミングローラー14は回転を開始する。これにより、停止していたシートが中間転写ベルト23の駆動ローラー23Rと2次転写ローラー24との間のニップへ、中間転写ベルト23上のトナー像と同時に進入する。この進入のタイミングに遅れがないか否かがタイミングセンサーTSの出力から判断される。
A longitudinal conveyance roller 13 and a longitudinal conveyance sensor CS are installed in the feeding path from the second-stage sheet feeding cassette 11b. It is determined whether or not the vertical conveyance roller 13 is feeding the sheet to the first junction MP1 at a normal timing according to whether or not there is a delay in the sheet passing timing indicated by the output of the vertical conveyance sensor CS. .
Between the second junction MP2 and the secondary transfer roller 24, the timing roller 14 and the timing sensor TS are installed. The timing roller 14 is stopped when the sheet arrives from any of the paper feed cassettes 11a and 11b, the manual feed tray 16, and the circulation path 48, and temporarily stops the sheet. When the arrival of the sheet is detected from the output of the timing sensor TS, the timing roller 14 starts to rotate when a predetermined time elapses from the arrival time. As a result, the stopped sheet enters the nip between the driving roller 23R and the secondary transfer roller 24 of the intermediate transfer belt 23 simultaneously with the toner image on the intermediate transfer belt 23. It is determined from the output of the timing sensor TS whether or not there is a delay in the entry timing.

定着部30と分岐点BPとの間には排紙センサーESが設置されている。この出力が示すシートの通過タイミングに遅れがないか否かに応じて、定着ローラー31がそのシートを正常なタイミングで送出しているか否かと、排紙ローラー43または反転ローラー45がそのシートを正常なタイミングで引き込んでいるか否かとが判断される。
循環路48には通紙センサー1RS、2RSが設置されている。これらの出力が示すシートの通過タイミングに遅れがないか否かに応じて、循環路48の搬送ローラー群49A−49Dがそのシートを正常なタイミングで搬送しているか否かが判断される。
A paper discharge sensor ES is installed between the fixing unit 30 and the branch point BP. Depending on whether or not there is a delay in the sheet passing timing indicated by this output, whether or not the fixing roller 31 sends out the sheet at a normal timing and whether the sheet discharge roller 43 or the reverse roller 45 is normal. It is determined whether or not it is pulled in at a proper timing.
In the circulation path 48, paper passing sensors 1RS and 2RS are installed. Depending on whether or not there is a delay in the sheet passing timing indicated by these outputs, it is determined whether or not the transport roller group 49A-49D of the circulation path 48 is transporting the sheet at a normal timing.

−アクチュエーター−
搬送経路の周辺と印刷エンジンとには可動部材の駆動用アクチュエーターが設置されている。これらのアクチュエーターには、搬送ローラーの駆動モーターM1−M6、TM、SM、FM、EM、RM、感光体ドラム25Y、…の駆動モーターYM、MM,CM、KM、および切換爪41の駆動ソレノイドSLが含まれる。各駆動モーターM1、…はたとえば直流ブラシレス(BLDC)モーターであり、一般に正逆両方向に回転可能である。各モーターM1、…は、ギア、ベルト等の伝達系統を通して駆動対象のローラーに回転力を与える。ソレノイドSLは、電磁石を利用して可動鉄芯(プランジャー)を軸方向に前後運動させて切換爪41を押し引きすることにより、それを上下に揺動させる。
-Actuator-
Actuators for driving movable members are installed around the transport path and the print engine. These actuators include transport motors M1-M6, TM, SM, FM, EM, RM, photosensitive drums 25Y,... Driving motors YM, MM, CM, KM, and a driving solenoid SL for the switching claw 41. Is included. Each drive motor M1,... Is, for example, a direct current brushless (BLDC) motor, and is generally rotatable in both forward and reverse directions. Each of the motors M1,... Gives a rotational force to the driving target roller through a transmission system such as a gear and a belt. The solenoid SL moves the movable iron core (plunger) back and forth in the axial direction by using an electromagnet and pushes and pulls the switching claw 41 to swing it up and down.

給紙カセット11a、11bの近傍では、給送モーターM1、M2が給送ローラー群12P、12F、12Rを回転させる。2段目の給紙カセット11bからの給送経路の近傍では、縦搬モーターM3が縦搬ローラー13を回転させる。手差しトレイ16からの給送経路の近傍では、給送モーターM4が給送ローラー15を回転させる。第2合流点MP2付近ではタイミングモーターTMがタイミングローラー14を回転させる。作像部20では、メインモーターSMが中間転写ベルト23の駆動ローラー23Rを回転させ、4つの駆動モーターYM、MM、CM、KMがそれぞれ感光体ドラム25Y、…を1本ずつ回転させる。定着部30では定着モーターFMが定着ローラー31を回転させる。排紙部40では、排紙モーターEMが排紙ローラー43を回転させ、反転モーターRMが反転ローラー45を正逆両方向に回転させる。ソレノイドSLは切換爪41を上下に揺動させる。循環路48では、2台の駆動モーターのうち、一方M5が上流側の2対の搬送ローラー49A、49Bを回転させ、他方M6が下流側の2対の搬送ローラー49C、49Dを回転させる。   In the vicinity of the paper feed cassettes 11a and 11b, the feed motors M1 and M2 rotate the feed roller groups 12P, 12F, and 12R. In the vicinity of the feeding path from the second-stage sheet cassette 11b, the longitudinal conveyance motor M3 rotates the longitudinal conveyance roller 13. In the vicinity of the feeding path from the manual feed tray 16, the feeding motor M <b> 4 rotates the feeding roller 15. The timing motor TM rotates the timing roller 14 near the second junction MP2. In the image forming unit 20, the main motor SM rotates the drive roller 23R of the intermediate transfer belt 23, and the four drive motors YM, MM, CM, and KM rotate the photosensitive drums 25Y,. In the fixing unit 30, the fixing motor FM rotates the fixing roller 31. In the paper discharge unit 40, the paper discharge motor EM rotates the paper discharge roller 43, and the reverse motor RM rotates the reverse roller 45 in both forward and reverse directions. The solenoid SL swings the switching claw 41 up and down. In the circulation path 48, one of the two drive motors, M5 rotates the two upstream conveying rollers 49A and 49B, and the other M6 rotates the two downstream conveying rollers 49C and 49D.

[主制御部の配置]
図3の(a)はMFP100の斜め前方からの斜視図であり、(b)はMFP100のシャーシ101の斜め後方からの斜視図である。いずれの図面にも、MFP100が内蔵する主制御部60と電源部70とが、あたかもMFP100の筐体とシャーシ101とを透かして見えているように描かれている。主制御部60と電源部70とはそれぞれ1枚の印刷回路基板に実装され、それらの基板が、MFP100の筐体の背面とシャーシ101との間に設けられた電装空間ELSの中に、その背面に対して平行に収容されている。図3は示していないが、主制御部60の基板上には外付けの電子機器(オプション)に対する接続部(コネクタ)が設けられている。これらのオプションには、USBメモリー、ハードディスクドライブ(HDD)、ソリッドステートドライブ(SSD)等の可搬性記憶装置PMD、およびネットワーク(LAN)カード、半導体メモリーボード、グラフィックボード等の機能拡張ボードEFBが含まれる。
[Main control section]
3A is a perspective view of the MFP 100 from an oblique front, and FIG. 3B is a perspective view of the MFP 101 from the oblique rear. In any of the drawings, the main control unit 60 and the power supply unit 70 built in the MFP 100 are depicted as if they are seen through the casing and the chassis 101 of the MFP 100. The main control unit 60 and the power supply unit 70 are each mounted on a single printed circuit board, and these boards are placed in an electrical space ELS provided between the rear surface of the casing of the MFP 100 and the chassis 101. It is housed parallel to the back. Although not shown in FIG. 3, a connection portion (connector) for an external electronic device (option) is provided on the substrate of the main control portion 60. These options include portable storage devices PMD such as USB memory, hard disk drive (HDD), solid state drive (SSD), and function expansion boards EFB such as network (LAN) cards, semiconductor memory boards, graphic boards, etc. .

[画像形成装置の電子制御系統]
図4は、MFP100の電子制御系統の構成を示すブロック図である。この制御系統では、機構部10、20、30、40内の駆動部10D、20D、30D、40Dに加えて操作部50と主制御部60とが、バス90を通して互いに通信可能に接続されている。
−駆動部−
図4は示していないが、各機構部10、…、の駆動部10D、20D、30D、40Dは、制御回路、駆動回路、およびレジスターを含む。これらを利用して各駆動部10Dは図2の示す駆動モーター群M1、…、ソレノイドSL等のアクチュエーターに対してフィードバック制御を行う。
[Electronic control system of image forming apparatus]
FIG. 4 is a block diagram showing a configuration of the electronic control system of MFP 100. In this control system, in addition to the drive units 10D, 20D, 30D, and 40D in the mechanism units 10, 20, 30, and 40, the operation unit 50 and the main control unit 60 are connected through a bus 90 so as to communicate with each other. .
−Driver−
Although not shown in FIG. 4, the drive units 10D, 20D, 30D, and 40D of each mechanism unit 10,... Include a control circuit, a drive circuit, and a register. Using these, each drive unit 10D performs feedback control on actuators such as the drive motor group M1,..., Solenoid SL shown in FIG.

制御回路は、MPU/CPU、特定用途向け集積回路(ASIC)、またはプログラム可能な集積回路(FPGA)等の電子回路である。制御回路は、アクチュエーターの起動と停止とのタイミング、およびそのアクチュエーターの制御量の目標値、たとえば駆動モーターであればその目標の回転速度を決定する。制御回路は更に、決定した制御量の目標値と、アクチュエーターからフィードバックされる実際の制御量との間の誤差に基づき、そのアクチュエーターに対する印加電圧の目標値を駆動回路に指示する。   The control circuit is an electronic circuit such as an MPU / CPU, an application specific integrated circuit (ASIC), or a programmable integrated circuit (FPGA). The control circuit determines the start and stop timing of the actuator and the target value of the control amount of the actuator, for example, the target rotational speed in the case of a drive motor. The control circuit further instructs the drive circuit of the target value of the voltage applied to the actuator based on the error between the determined control amount target value and the actual control amount fed back from the actuator.

駆動回路はスイッチングコンバーターであり、電界効果トランジスタ(FET)、絶縁ゲートバイポーラトランジスタ(IGBT)等のパワートランジスタをスイッチング素子として利用して、制御回路から指示された目標値に等しい電圧をアクチュエーターに対して印加する。これにより、アクチュエーターの制御量がその目標値に調節される。
レジスターは、制御回路と同じ基板または同じチップに組み込まれたラッチ回路等の記憶素子である。レジスターは制御回路と主制御部60との両方に監視され、両者間で交換されるべき情報の一時的な保存場所として利用される。制御回路は、主制御部60がレジスターに書き込んだ命令に応じてアクチュエーターを起動または停止させ、その命令が示す、プリンター130の動作モード、シートの搬送速度の目標値等の情報に基づき、アクチュエーターの制御量の目標値を決定する。制御回路はまた、アクチュエーターまたはその駆動対象である可動部材の状態に関する情報、または、通紙センサー1FS、…から送出される検出信号の状態に関する情報をレジスターへ書き込むことにより、これらの情報を主制御部60へ通知する。
The drive circuit is a switching converter, and a power transistor such as a field effect transistor (FET) or an insulated gate bipolar transistor (IGBT) is used as a switching element, and a voltage equal to the target value instructed by the control circuit is applied to the actuator. Apply. Thereby, the control amount of the actuator is adjusted to the target value.
The register is a memory element such as a latch circuit incorporated in the same substrate or the same chip as the control circuit. The register is monitored by both the control circuit and the main control unit 60, and is used as a temporary storage place for information to be exchanged between the two. The control circuit starts or stops the actuator in accordance with the command written in the register by the main control unit 60, and based on the information indicated by the command, such as the operation mode of the printer 130, the target value of the sheet conveyance speed, and the like, Determine the target value for the controlled variable. The control circuit also controls the information by writing information on the state of the actuator or the movable member to be driven or information on the state of the detection signal sent from the paper passing sensor 1FS to the register. Notification to the unit 60.

−操作部−
操作部50は、MFP100の備えたUIの総体であり、操作パネル51、メモリーインターフェース(I/F)52、およびネットワーク(LAN)I/F53を含む。これらを利用して操作部50は、ユーザー操作または外部の電子機器から各種ジョブの処理要求を受け付け、その要求を主制御部60へ伝える。特にジョブが印刷である場合、操作部50は印刷対象の画像データと共に印刷条件を、ジョブ処理の要求元から取得する。すなわち、操作部50は条件取得手段として機能する。印刷条件の設定項目には、たとえば、印刷対象のシートのサイズ、紙種、姿勢(縦置きと横置きとの別)、部数、カラー/モノクロの別、画質が含まれる。これらの条件を規定するパラメーターの値を操作部50は操作情報に組み込み、印刷対象の画像データと共に主制御部60へ提供する。
-Operation part-
The operation unit 50 is a total UI included in the MFP 100, and includes an operation panel 51, a memory interface (I / F) 52, and a network (LAN) I / F 53. Using these, the operation unit 50 receives various job processing requests from user operations or external electronic devices, and transmits the requests to the main control unit 60. In particular, when the job is printing, the operation unit 50 acquires the printing conditions together with the image data to be printed from the job processing request source. That is, the operation unit 50 functions as a condition acquisition unit. The print condition setting items include, for example, the size of the sheet to be printed, the paper type, the orientation (separately between portrait and landscape), the number of copies, color / monochrome, and image quality. The operation unit 50 incorporates values of parameters that define these conditions into the operation information, and provides them to the main control unit 60 together with image data to be printed.

操作パネル51は、押しボタン、タッチパネル、およびディスプレイを含む。このディスプレイに操作パネル51は、操作画面、各種パラメーターの入力画面等のグラフィックスユーザーインターフェース(GUI)画面を表示する。操作パネル51はまた、押しボタンの中からユーザーが押下したものを識別し、またはタッチパネルの中からユーザーが触れた位置を検出し、その識別または検出に関する情報を操作情報として主制御部60へ伝える。メモリーI/F52は、図3が示す主制御部60の基板に設けられたコネクタの中にUSBポートまたはメモリーカードスロットを含み、それらを通して、USBメモリー、HDD等の可搬性記憶装置PMDから直に印刷対象の画像データを取り込む。LANI/F53は、図3が示す主制御部60の基板に実装されたLANカードを利用して外部ネットワークと有線または無線で通信し、そのネットワークに接続されたパーソナルコンピューター(PC)等の電子機器から印刷条件と印刷対象の画像データとを受信する。   Operation panel 51 includes a push button, a touch panel, and a display. The operation panel 51 displays a graphics user interface (GUI) screen such as an operation screen and an input screen for various parameters on the display. The operation panel 51 also identifies what is pressed by the user from among the push buttons, or detects the position touched by the user from the touch panel, and transmits information related to the identification or detection to the main control unit 60 as operation information. . The memory I / F 52 includes a USB port or a memory card slot in the connector provided on the board of the main control unit 60 shown in FIG. 3, and directly from a portable storage device PMD such as a USB memory or HDD through them. Capture image data to be printed. The LAN I / F 53 communicates with an external network in a wired or wireless manner using a LAN card mounted on the board of the main control unit 60 shown in FIG. 3, and an electronic device such as a personal computer (PC) connected to the network. Receives the printing conditions and the image data to be printed.

−主制御部−
主制御部60は、図3の示す1枚の印刷回路基板に実装された集積回路であり、CPU61とメインメモリー62とを含む。CPU61は各種プログラムの実行手段である。メインメモリー62は、それらのプログラムの保存領域と共に、CPU61がプログラムを実行する際の作業領域を含む。
−Main control unit−
The main control unit 60 is an integrated circuit mounted on one printed circuit board shown in FIG. 3 and includes a CPU 61 and a main memory 62. The CPU 61 is an execution unit for various programs. The main memory 62 includes a work area when the CPU 61 executes the program, together with a storage area for the programs.

CPU61は1つのMPUで構成され、各種プログラムに従い、バス90を通して他の要素10、20、…から操作情報等の各種情報を取得して処理し、その処理結果に基づいて制御出力を生成して各要素10、…へ送信する。「制御出力」とは、送信先に対する命令、および送信先に提供されるべきデータを意味する。こうして、CPU61はそれら他の要素10、…に対する制御主体として機能する。この機能は、実行対象のプログラムの種類に応じて多様に変化する。たとえば、CPU61は操作部50にGUI画面を表示させ、その画面に対するユーザー操作を受け付けさせる。この操作に応じて操作部50から通知される操作情報に基づき、CPU61は、印刷モード、コピーモード、スキャンモード、待機(低電力)モード、スリープモード等、MFP100の動作モードを決定し、その動作モードへの移行を各要素10、…に指示する。CPU61は更に、動作モードの切り換えに必要な情報を各要素10、…へ提供する。たとえば印刷ジョブの処理要求に応じて印刷モードへの移行を指示する場合、CPU61は、そのジョブにおける印刷条件に従い、給送部10には、給送対象のシートの紙種と枚数、搬送ローラー12P、…の回転のタイミング、シートの搬送速度の目標値を指定し、作像部20には、画像データ、作像のタイミングを提供し、定着部30には、定着ローラー31の目標温度、ヒーターの発熱量を指定し、排紙部40には、図2の示す分岐点BPからのシートの送出先と、分岐点BPにシートが到着するタイミングとを指示する。   The CPU 61 is composed of one MPU, acquires various types of information such as operation information from the other elements 10, 20,... Through the bus 90 according to various programs, processes them, and generates a control output based on the processing results. It transmits to each element 10. “Control output” means a command to a transmission destination and data to be provided to the transmission destination. Thus, the CPU 61 functions as a control subject for these other elements 10. This function varies in various ways depending on the type of program to be executed. For example, the CPU 61 displays a GUI screen on the operation unit 50 and accepts a user operation on the screen. Based on the operation information notified from the operation unit 50 according to this operation, the CPU 61 determines the operation mode of the MFP 100 such as a print mode, a copy mode, a scan mode, a standby (low power) mode, a sleep mode, and the operation. The element 10 is instructed to shift to the mode. The CPU 61 further provides information necessary for switching the operation mode to the elements 10. For example, when instructing the shift to the print mode in response to a print job processing request, the CPU 61 instructs the feeding unit 10 to supply the paper type and number of sheets to be fed, the conveyance roller 12P according to the printing conditions in the job. ,..., The target value of the sheet conveyance speed is specified, the image forming unit 20 is provided with image data and image forming timing, the fixing unit 30 is supplied with the target temperature of the fixing roller 31, the heater 2 is designated, and the sheet delivery unit 40 is instructed to the sheet delivery destination from the branch point BP shown in FIG. 2 and the timing at which the sheet arrives at the branch point BP.

メインメモリー62はRAM621とROM622とを含む。RAM621は、DRAM、SRAM等の揮発性半導体メモリー装置であり、CPU61に作業領域を提供すると共に、操作部50が受け付けた印刷対象の画像データを保存する。ROM622は書き込み不可の不揮発性記憶装置と書き換え可能な不揮発性記憶装置との組み合わせで構成されている。前者はファームウェアを格納する。ファームウェアには、MFP100の電源投入時にCPU61が必ず最初に実行するブートプログラムが含まれる。後者は、EEPROM、フラッシュメモリー、SSD等の半導体メモリー装置、またはHDDを含み、各種プログラムを記憶すると共に、CPU61に環境変数等、長期保存の必要なデータの記憶領域を提供する。ROM622に記憶されたプログラムには、ADF110、スキャナー120、およびプリンター130の機構部10、…に対する制御プログラム、すなわちメカニカルコントローラー(略して「メカコン」ともいう。)、RTOS等のOS、ハイパーバイザー等のミドルウェア、およびこれらをプラットフォームとするアプリケーションプログラムが含まれる。   The main memory 62 includes a RAM 621 and a ROM 622. The RAM 621 is a volatile semiconductor memory device such as a DRAM or SRAM, and provides a work area to the CPU 61 and stores image data to be printed received by the operation unit 50. The ROM 622 includes a combination of a non-writable nonvolatile storage device and a rewritable nonvolatile storage device. The former stores firmware. The firmware includes a boot program that the CPU 61 always executes first when the MFP 100 is powered on. The latter includes a semiconductor memory device such as an EEPROM, a flash memory, an SSD, or an HDD, stores various programs, and provides the CPU 61 with a storage area for data necessary for long-term storage such as environment variables. The programs stored in the ROM 622 include control programs for the ADF 110, the scanner 120, and the mechanism unit 10 of the printer 130, that is, a mechanical controller (also referred to as “mechanical controller” for short), an OS such as RTOS, and a hypervisor. Middleware and application programs using these as platforms are included.

RAM621、ROM622の含む記憶領域の全体は1つのメモリー空間にマップされる。すなわち、いずれの記憶領域にも固有の論理アドレスが割り振られる。このメモリー空間には更に、機構部10、…の駆動部10D、…が含むレジスターもマップされる(メモリマップドI/O)。これにより、CPU61は機構部10、…のレジスターへのアクセス(以下、「I/Oアクセス」という。)をメインメモリー62へのアクセスと区別することなく、同様に実行可能である。すなわち、CPU61は、メモリー空間内の特定のアドレスへ制御出力を書き込むことにより、そのアドレスが割り振られたレジスターを持つ機構部へ指示を送ることができる。CPU61はまた、別のアドレスからデータを読み出すことにより、そのアドレスが割り振られたレジスターを持つ機構部から情報、たとえば通紙センサー1FS、…から送出される検出信号の状態を取得することができる。   The entire storage area including the RAM 621 and the ROM 622 is mapped to one memory space. That is, a unique logical address is allocated to any storage area. Further, registers included in the drive units 10D of the mechanism units 10,... Are mapped in the memory space (memory mapped I / O). As a result, the CPU 61 can similarly execute the access to the registers of the mechanical units 10,... (Hereinafter referred to as “I / O access”) without distinguishing from the access to the main memory 62. That is, the CPU 61 can send an instruction to a mechanism unit having a register to which the address is assigned by writing a control output to a specific address in the memory space. The CPU 61 can also acquire information from the mechanism unit having the register to which the address is assigned, for example, the state of the detection signal sent from the sheet passing sensor 1FS,... By reading data from another address.

メインメモリー62に保存されたアプリケーションプログラムのうち画像形成プログラムは、印刷ジョブの処理要求が操作部50からCPU61へ通知されたことに応じて実行される。この実行によりメカニカルコントローラー62RがRAM621に展開される。メカコン62Rは、プリンター130の機構部10、…をCPU61に制御させるリアルタイム型プログラムであり、そのサイズは一般に数十KB程度である。   Of the application programs stored in the main memory 62, the image forming program is executed in response to a print job processing request being notified from the operation unit 50 to the CPU 61. By this execution, the mechanical controller 62R is expanded in the RAM 621. The mechanical control 62R is a real-time type program that causes the CPU 61 to control the mechanical unit 10,... Of the printer 130, and its size is generally about several tens of KB.

アプリケーションプログラムにはその他に、画像処理、UI、LAN通信のそれぞれをCPU61に制御させるベストエフォート型プログラム62Bが含まれる。各プログラム62Bはそのサイズが一般にメカコン62Rの数倍、すなわち百数十KB〜数MB程度である。画像処理プログラムはCPU61に、操作部50が取得した印刷対象の画像データに対し、たとえばRGBからCYMKへの色変換とハーフトーン処理とを実行させる。UIプログラムはCPU61に、たとえば操作部50が条件取得手段として機能するように操作部50を制御させる。   In addition, the application program includes a best effort type program 62B that causes the CPU 61 to control each of image processing, UI, and LAN communication. The size of each program 62B is generally several times that of the mechanical control 62R, that is, about several hundred KB to several MB. The image processing program causes the CPU 61 to execute, for example, color conversion from RGB to CYMK and halftone processing on the image data to be printed acquired by the operation unit 50. The UI program causes the CPU 61 to control the operation unit 50 so that, for example, the operation unit 50 functions as a condition acquisition unit.

[CPUのアーキテクチャ]
CPU61はコア61Cとキャッシュメモリー61Mとを含む。コア61CはたとえばRISC(reduced instruction set computer)プロセッサーであり、特にプログラムの実行にロードストアアーキテクチャを使用する。すなわち、コア61Cは、内部レジスターへ読み込まれたデータに対してのみ、演算等の処理を行う。これにより、コア61Cによるメインメモリー62へのアクセスとI/Oアクセスとには基本的に、アクセス先からのデータの読み出し(ロード)とアクセス先へのデータの書き込み(ストア)との2種類しかない。キャッシュメモリー61Mは、メインメモリー62の含む記憶素子と比べて小容量ではあるが、読み書きの高速な記憶素子、たとえばSRAMを含む。具体的には、RAM621の容量が数GB程度であり、アクセス時間が数百n秒程度であるのに対し、キャッシュメモリー61Mの容量は数十KB程度であり、アクセス時間は数十n秒程度である。キャッシュメモリー61Mはコア61Cとメインメモリー62との間のデータ伝送路の中間に配置され、コア61Cがメインメモリー62に対して読み書きした命令とデータとのうち最新のものを記憶する。キャッシュメモリー61Mは更に、コア61Cがメインメモリー62に対して読み書きしようとする命令またはデータをすでに記憶している場合にはその命令/データを、メインメモリー62に代わってコア61Cに提供し、またはコア61Cに代わってメインメモリー62へ書き込む。キャッシュメモリー61Mはメインメモリー62よりも読み書きが高速であるので、命令/データの読み書きにおけるコア61Cの待ち時間を短縮することができる。
[CPU architecture]
The CPU 61 includes a core 61C and a cache memory 61M. The core 61C is, for example, a RISC (reduced instruction set computer) processor, and particularly uses a load store architecture for program execution. That is, the core 61C performs processing such as computation only on the data read into the internal register. As a result, there are basically only two types of access to the main memory 62 and I / O access by the core 61C: reading data from the access destination (loading) and writing data to the access destination (store). Absent. The cache memory 61M includes a storage element, such as an SRAM, which has a small capacity as compared with the storage element included in the main memory 62, but which reads and writes at high speed. Specifically, the capacity of the RAM 621 is about several GB and the access time is about several hundreds of seconds, whereas the capacity of the cache memory 61M is about several tens of KB and the access time is about several tens of seconds. It is. The cache memory 61M is disposed in the middle of the data transmission path between the core 61C and the main memory 62, and stores the latest instruction and data read / written by the core 61C from / to the main memory 62. The cache memory 61M further provides the instruction / data to the core 61C on behalf of the main memory 62 when the instruction or data to be read / written from / to the main memory 62 is already stored by the core 61C, or Write to the main memory 62 instead of the core 61C. Since the cache memory 61M reads / writes faster than the main memory 62, the waiting time of the core 61C in reading / writing instructions / data can be shortened.

−キャッシュメモリーの基本構造−
図5の(a)は、キャッシュメモリー61Mの構成を示すブロック図である。キャッシュメモリー61Mはキャッシュコントローラー611とメモリーアレイ612とを含む。キャッシュコントローラー611は、メインメモリー62に対する命令とデータ(以下、「ワード」と総称する。)の読み書きを、コア61Cとは独立して自動的に行う機能を持つハードウェアである。メモリーアレイ612はSRAM素子のマトリクスである。コア61Cからメインメモリー62へ向けてロード/ストア要求が送信されると、キャッシュコントローラー611はまず、その要求がメインメモリー62へ届く前に、その要求を傍受する。キャッシュコントローラー611は次に、その要求の宛先アドレスADRに記憶されたワードがメモリーアレイ612にすでに記憶されているか否かを確認する。そのワードが記憶されている場合、キャッシュコントローラー611はロード/ストア要求をメインメモリー62へ渡すことなく、メモリーアレイ612からそのワードCMD/DATをコア61Cへ送信し、またはメモリーアレイ612内のそのワードを、コア61Cから送出されるワードに書き換える。そのワードが記憶されていない場合、キャッシュコントローラー611はロード/ストア要求をメインメモリー62へ渡す。ロード要求に対してはメインメモリー62からコア61CへワードCMD/DATが転送され、ストア要求に対してはコア61Cからメインメモリー62へワードが転送されるので、キャッシュコントローラー611はそのワードCMD/DATを傍受してメモリーアレイ612にコピーする。
-Basic structure of cache memory-
FIG. 5A is a block diagram showing a configuration of the cache memory 61M. The cache memory 61M includes a cache controller 611 and a memory array 612. The cache controller 611 is hardware having a function of automatically reading and writing instructions and data (hereinafter collectively referred to as “words”) to and from the main memory 62 independently of the core 61C. Memory array 612 is a matrix of SRAM elements. When a load / store request is transmitted from the core 61C to the main memory 62, the cache controller 611 first intercepts the request before the request reaches the main memory 62. The cache controller 611 then checks whether the word stored at the destination address ADR of the request is already stored in the memory array 612. If the word is stored, the cache controller 611 sends the word CMD / DAT from the memory array 612 to the core 61C without passing the load / store request to the main memory 62, or the word in the memory array 612. Is rewritten to a word transmitted from the core 61C. If the word is not stored, the cache controller 611 passes the load / store request to the main memory 62. The word CMD / DAT is transferred from the main memory 62 to the core 61C in response to the load request, and the word is transferred from the core 61C to the main memory 62 in response to the store request. Is intercepted and copied to the memory array 612.

図5の(b)はメモリーアレイ612のデータ構造を示す模式図である。メモリーアレイ612はたとえば256行のメモリー素子列、すなわちキャッシュラインCLN0、CLN1、…、CLN255を含む。各キャッシュラインは、ディレクトリストアDRS、ステータスビットSTT、データセクションDTSを含む。ディレクトリストアDRSにはキャッシュタグCTGが格納され、データセクションDTSにはワードWRD0、WRD1、…、WRD3が複数コピーされる。キャッシュタグCTGは、データセクションDTSにコピーされたワードWRD0、…のオリジナルが記憶されたメインメモリー62内のアドレスの上位ビットを表す。同じアドレスの下位ビットは、そのワードを含むキャッシュラインの通し番号(「セットインデックス」という。)と、データセクションDTS内でのそのワードの順番(「データインデックス」という。)との組み合わせで表現される。1つのワードが32ビットで表され、1行のキャッシュラインには4つのワードがコピー可能である場合、メモリーアレイ612全体では4KBのワードがキャッシュ可能である。ステータスビットSTTは、有効ビットvとダーティービットdとを含む。有効ビットvは、自身を含むキャッシュラインが有効であるか否か、すなわち、そのデータセクションDTS内のワードWRD0、…がコア61Cの利用可能な最新のものであるか否かを示すフラグである。ダーティービットdは、自身を含むキャッシュラインのデータセクションDTSにコピーされたワードWRD0、…がメインメモリー62内のオリジナルとは異なるか否かを示すフラグである。   FIG. 5B is a schematic diagram showing the data structure of the memory array 612. The memory array 612 includes, for example, 256 rows of memory element columns, that is, cache lines CLN0, CLN1,..., CLN255. Each cache line includes a directory store DRS, a status bit STT, and a data section DTS. A cache tag CTG is stored in the directory store DRS, and a plurality of words WRD0, WRD1,..., WRD3 are copied in the data section DTS. The cache tag CTG represents the upper bits of the address in the main memory 62 in which the original word WRD0,... Copied in the data section DTS is stored. The lower bits of the same address are expressed by a combination of the serial number of the cache line including the word (referred to as “set index”) and the order of the word in the data section DTS (referred to as “data index”). . If one word is represented by 32 bits and four words can be copied to one cache line, the entire memory array 612 can cache 4 KB words. The status bit STT includes a valid bit v and a dirty bit d. The valid bit v is a flag indicating whether or not the cache line including itself is valid, that is, whether or not the word WRD0,... In the data section DTS is the latest available one of the core 61C. . The dirty bit d is a flag indicating whether or not the word WRD0,... Copied in the data section DTS of the cache line including itself is different from the original in the main memory 62.

図5の(b)には、キャッシュコントローラー611によるメモリーアレイ612のアクセス方法も併せて示されている。キャッシュコントローラー611はロード/ストア要求を傍受したとき、まずその宛先アドレスADRを、タグフィールドTGF、セットインデックスフィールドSID、データインデックスフィールドDIDの3つに分ける。宛先アドレスADRが32ビットのデータ列([31:0])で表される場合、タグフィールドTGFはアドレスADRの最上位ビットから20ビット目までの20ビット([31:12])から成り、セットインデックスフィールドSIDは21ビット目から28ビット目までの8ビット([11:4])から成り、データインデックスフィールドDIDは残りの4ビット([3:0])から成る。キャッシュコントローラー611は次に、256行のキャッシュラインCLN0、…の中から、セットインデックスフィールドSIDの示す数値とセットインデックスが等しいキャッシュラインCLN2を選択する。そのディレクトリストアDRSに格納されたキャッシュタグCTGをキャッシュコントローラー611は、宛先アドレスADRのタグフィールドTGFと照合する。キャッシュタグCTGがタグフィールドTGFと一致した場合、キャッシュコントローラー611は更に有効ビットvの状態を確認する。キャッシュラインCLN2が有効であることを有効ビットvが示す場合(この状態を「キャッシュヒット」と呼ぶ。)、このキャッシュラインCLN2のデータセクションDTSには、宛先アドレスADRに記憶されたワードとしてコア61Cが利用可能な最新のワードがコピーされている。したがって、キャッシュコントローラー611はロード/ストア要求をメインメモリー62へ渡さず、そのデータセクションDTSから、データインデックスフィールドDIDの示す数値とデータインデックスが等しいワードWRD1をコア61Cへ送信し、またはそのワードWRD1をコア61Cから送出されるワードCMD/DATに書き換える。キャッシュタグCTGがタグフィールドTGFと一致しなかった場合、またはキャッシュラインCLN2が無効であることを有効ビットvが示す場合(この状態を「キャッシュミス」と呼ぶ。)、このキャッシュラインCLN2のデータセクションDTSには、宛先アドレスADRに記憶されたワードとしてコア61Cが利用可能なワードは存在しない。したがって、キャッシュコントローラー611はロード/ストア要求をメインメモリー62へ渡す。ロード要求に対してはメインメモリー62からコア61CへワードCMD/DATが転送され、ストア要求に対してはコア61Cからメインメモリー62へワードが転送されるので、キャッシュコントローラー611はそのワードCMD/DATを傍受し、宛先アドレスADRに基づいて検索された先のキャッシュラインCLN2のデータセクションDTSにコピーする。   FIG. 5B also shows a method for accessing the memory array 612 by the cache controller 611. When the cache controller 611 intercepts a load / store request, it first divides the destination address ADR into three: a tag field TGF, a set index field SID, and a data index field DID. When the destination address ADR is represented by a 32-bit data string ([31: 0]), the tag field TGF is composed of 20 bits ([31:12]) from the most significant bit of the address ADR to the 20th bit, The set index field SID is composed of 8 bits ([11: 4]) from the 21st bit to the 28th bit, and the data index field DID is composed of the remaining 4 bits ([3: 0]). Next, the cache controller 611 selects a cache line CLN2 having a set index equal to the value indicated by the set index field SID from the 256 cache lines CLN0,. The cache controller 611 compares the cache tag CTG stored in the directory store DRS with the tag field TGF of the destination address ADR. When the cache tag CTG matches the tag field TGF, the cache controller 611 further confirms the state of the valid bit v. When the valid bit v indicates that the cache line CLN2 is valid (this state is referred to as “cache hit”), the data section DTS of the cache line CLN2 includes the core 61C as a word stored in the destination address ADR. The latest available word has been copied. Therefore, the cache controller 611 does not pass the load / store request to the main memory 62, and transmits the word WRD1 whose data index is equal to the numerical value indicated by the data index field DID from the data section DTS to the core 61C, or the word WRD1. Rewrite the word CMD / DAT sent from the core 61C. When the cache tag CTG does not match the tag field TGF, or when the valid bit v indicates that the cache line CLN2 is invalid (this state is referred to as “cache miss”), the data section of the cache line CLN2 In the DTS, there is no word that can be used by the core 61C as the word stored in the destination address ADR. Accordingly, the cache controller 611 passes the load / store request to the main memory 62. The word CMD / DAT is transferred from the main memory 62 to the core 61C in response to the load request, and the word is transferred from the core 61C to the main memory 62 in response to the store request. Is copied to the data section DTS of the previous cache line CLN2 searched based on the destination address ADR.

−キャッシュロックダウン−
図6の(a)は、通常の状態でキャッシュミスが生じた場合におけるキャッシュメモリー61Mの動作を示す模式図である。キャッシュミスが生じた場合、宛先アドレスADRに基づいてキャッシュコントローラー611が検索したキャッシュラインCLNNには一般に、宛先アドレスADRと下位ビットが一致するものの、上位ビットが異なるアドレスのワードが記憶されている。キャッシュコントローラー611はそのキャッシュラインCLNNの有効ビットvの状態を確認し、キャッシュラインの有効を示す状態、たとえばv=1であれば、無効を示す状態v=0へ遷移させ、すなわち有効ビットvを無効化する。キャッシュコントローラー611は更にそのキャッシュラインCLNNのダーティービットdの状態を確認する。データセクションDTSにコピーされたワードがメインメモリー62内のオリジナルとは異なることをダーティービットdが示す場合、キャッシュコントローラー611はそのデータセクションDTS内のワードCMD/DATでメインメモリー62内のオリジナルを書き換える。こうして、そのキャッシュラインCLNNが、メインメモリー62またはコア61Cから送出される新たなワードをコピーするための領域として確保される。
-Cash lockdown-
FIG. 6A is a schematic diagram showing the operation of the cache memory 61M when a cache miss occurs in a normal state. When a cache miss occurs, the cache line CLNN searched by the cache controller 611 based on the destination address ADR generally stores a word of an address whose upper bits are different from the destination address ADR, although the lower bits match. The cache controller 611 confirms the state of the valid bit v of the cache line CLNN, and if the cache line is valid, for example, if v = 1, transitions to the invalid state v = 0, that is, the valid bit v is changed. Disable it. The cache controller 611 further confirms the state of the dirty bit d of the cache line CLNN. When the dirty bit d indicates that the word copied to the data section DTS is different from the original in the main memory 62, the cache controller 611 rewrites the original in the main memory 62 with the word CMD / DAT in the data section DTS. . Thus, the cache line CLNN is secured as an area for copying a new word transmitted from the main memory 62 or the core 61C.

図6の(b)は、コア61Cからキャッシュロックダウンが指示された状態でキャッシュミスが生じた場合におけるキャッシュメモリー61Mの動作を示す模式図である。キャッシュメモリー61Mに対してコア61Cはキャッシュロックダウン手段としての機能を持つ。「キャッシュロックダウン(CLD)」とは、キャッシュミスに伴う有効ビットvの無効化とデータセクションDTSへのワードの上書きとの禁止をキャッシュコントローラー611に対して指示すること、またはその禁止後のキャッシュメモリー61Mの状態をいう。したがって、CLDがコア61Cから指示された時点ですでにメモリーアレイ612にコピーされているワードは、その時点以降、キャッシュミスが生じても他のワードに上書きされることなくメモリーアレイ612に保持され、すなわちロックダウンされる(閉じ込められる)。この状態は、CLDの解除がコア61Cからキャッシュコントローラー611に指示されるまで持続する。   FIG. 6B is a schematic diagram showing the operation of the cache memory 61M when a cache miss occurs in a state where the cache lockdown is instructed from the core 61C. For the cache memory 61M, the core 61C functions as a cache lockdown means. “Cache lockdown (CLD)” means that the cache controller 611 is instructed to prohibit the invalidation of the valid bit v associated with a cache miss and the overwriting of a word in the data section DTS, or the cache after the prohibition. This refers to the state of the memory 61M. Therefore, a word that has already been copied to the memory array 612 at the time when the CLD is instructed from the core 61C is held in the memory array 612 without being overwritten by another word after that point even if a cache miss occurs. I.e. locked down. This state lasts until CLD release is instructed from the core 61C to the cache controller 611.

[画像形成プログラムの模擬実行と本実行]
CPU61は印刷ジョブの処理要求に応じて画像形成プログラムを実行する。この際、CPU61は画像形成プログラムをまず模擬実行し、その模擬実行の完了後に画像形成プログラムを本実行する。「本実行」とは、プリンター130に通常の印刷処理を行わせるための実行モードをいう。「模擬実行」とは、本実行の含む処理のうち、機構部10、…に対するI/Oアクセスを実際には行わない実行モードをいう。模擬実行中、CPU61は入出力模擬手段としても機能する。すなわち、CPU61は、各機構部10、…へ送信すべき制御出力を遮断すると共に、送信先の機構部のセンサーからその制御出力に応じて送出されるはずの検出信号を模擬的に作成する。これにより、模擬実行中、CPU61はいずれの機構部からの応答も実際には待つ必要がないので、模擬実行は本実行よりも、シート1枚あたりの処理時間等の実行周期が短縮される。模擬実行の完了後、本実行に先立ってCPU61はキャッシュメモリー61Mに、模擬実行中に記憶したメカコン62Rのワードをロックダウンさせる。これにより、本実行では、キャッシュメモリー61Mにロックダウンされたワードに従ってメカコンが実行され、他のプログラムが並列に実行されてもそれらのワードが他のワードに上書きされることがない。したがって、機構制御におけるキャッシュヒット率が安定に維持される。
[Simulated execution and main execution of image forming program]
The CPU 61 executes an image forming program in response to a print job processing request. At this time, the CPU 61 first executes the image forming program by simulation, and executes the image forming program after completion of the simulation. “Full execution” refers to an execution mode for causing the printer 130 to perform normal printing processing. “Simulation execution” refers to an execution mode in which I / O access to the mechanism units 10,. During the simulation, the CPU 61 also functions as an input / output simulation unit. That is, the CPU 61 cuts off the control output to be transmitted to each of the mechanism units 10... And creates a simulation signal that should be transmitted from the sensor of the destination mechanism unit in accordance with the control output. As a result, during simulation execution, the CPU 61 does not actually have to wait for a response from any of the mechanism units, and therefore, the execution period of simulation execution, such as the processing time per sheet, is shortened compared to the main execution. After completion of the simulation execution, prior to the actual execution, the CPU 61 locks down the words of the mechanical control 62R stored during the simulation execution in the cache memory 61M. As a result, in this execution, the mechanical control is executed according to the word locked down in the cache memory 61M, and even if other programs are executed in parallel, those words are not overwritten with other words. Therefore, the cache hit rate in the mechanism control is stably maintained.

図7の(a)は、画像形成プログラムの実行開始直後におけるCPU61の動作を示す模式図である。まず、コア61Cがキャッシュコントローラー611へ、メモリーアレイ612のフラッシュ命令CFLを送信する。この命令CFLに応じてキャッシュコントローラー611はメモリーアレイ612のフラッシュを行う。「フラッシュ」とは、すべてのキャッシュラインCLN0、…において有効ビットvを無効化する(v=1→0)処理をいう。データセクションにコピーされたワードがメインメモリー62内のオリジナルとは異なることをダーティービットが示すキャッシュラインCLNNに対しては、キャッシュコントローラー611はそのデータセクション内のワードCMD/DATでメインメモリー62内のオリジナルを書き換える。こうして、すべてのキャッシュラインCLN0、…が新たなワードのコピー領域として確保される。   FIG. 7A is a schematic diagram showing the operation of the CPU 61 immediately after the start of execution of the image forming program. First, the core 61C transmits a flush instruction CFL for the memory array 612 to the cache controller 611. In response to the instruction CFL, the cache controller 611 flushes the memory array 612. “Flush” refers to a process of invalidating the valid bit v (v = 1 → 0) in all the cache lines CLN0,. For the cache line CLNN where the dirty bit indicates that the word copied to the data section is different from the original in the main memory 62, the cache controller 611 uses the word CMD / DAT in the data section to store the word in the main memory 62. Rewrite the original. In this way, all the cache lines CLN0,... Are secured as new word copy areas.

図7の(b)は、画像形成プログラムの模擬実行中におけるCPU61の動作を示す模式図である。キャッシュメモリー61Mのフラッシュ完了後、コア61Cはメインメモリー62に対し、メカコンのロード要求ADRを送信する。キャッシュメモリー61Mはこの要求ADRを傍受してキャッシュヒット/ミスを判別し、ミス時には、その要求ADRに応じてメインメモリー62からコア61Cへ送られるワードCMD/DATをメモリーアレイ612へコピーする。こうして、実行処理の進行に伴ってメモリーアレイ612には、メカコンの含むワードCMD/DATがキャッシュされる。   FIG. 7B is a schematic diagram showing the operation of the CPU 61 during the simulation execution of the image forming program. After the cache memory 61M has been flushed, the core 61C transmits a mechanical controller load request ADR to the main memory 62. The cache memory 61M intercepts the request ADR to determine a cache hit / miss, and when a miss occurs, the word CMD / DAT sent from the main memory 62 to the core 61C is copied to the memory array 612 in response to the request ADR. Thus, as the execution process proceeds, the memory array 612 caches the word CMD / DAT included in the mechanical controller.

メカコンの含むワードのうち、プリンター130の駆動部10D、…に対するI/Oアクセス命令をコア61Cはスキップする。これにより、コア61CはI/Oアクセスに関するワードをメインメモリー62から読み出さないので、それらのワードをメモリーアレイ612にキャッシュさせることはできない。しかし、コア61Cは、駆動部10D、…のレジスターへ書き込むべき命令ACSを遮断することができる。コア61Cは更に、その命令ACSに応じて駆動部10D、…が自身のレジスターに書き込むはずの応答情報RSP、たとえば通紙センサー1FS、…の検出信号に関する情報を模擬的に作成する。これらの情報は、シートがジャム等の不具合を起こすことなく正常に搬送される場合に通紙センサー1FS、…がそのシートを検出すべきタイミング等、印刷処理が正常に進行する場合に予想される応答情報を模倣する。これらの模擬的な応答情報RSPをコア61Cは機構制御に利用する。模擬的な応答情報の作成時間は機構部からの実際の応答時間よりも短いので、模擬実行は本実行よりも実行周期が短縮される。   Of the words included in the mechanical control, the core 61C skips an I / O access command to the drive unit 10D of the printer 130. As a result, the core 61C does not read the words related to the I / O access from the main memory 62, so that the words cannot be cached in the memory array 612. However, the core 61C can block the command ACS to be written to the registers of the drive units 10D,. Further, the core 61C simulates the response information RSP, for example, information relating to the detection signal of the paper passing sensor 1FS,. These pieces of information are expected when the printing process proceeds normally, such as when the sheet passing sensor 1FS should detect the sheet when the sheet is normally conveyed without causing a problem such as a jam. Imitate response information. The core 61C uses these simulated response information RSP for mechanism control. Since the creation time of the simulated response information is shorter than the actual response time from the mechanism unit, the execution period of the simulated execution is shorter than the actual execution.

図8の(a)は、画像形成プログラムの本実行中におけるCPU61の動作を示す模式図である。模擬実行により、1枚等、所定枚数分の印刷処理が完了した後、コア61Cはまずキャッシュコントローラー611に対してCLDを指示する。この指示を受けた時点以降、キャッシュコントローラー611は、キャッシュミスに伴う有効ビットの無効化とデータセクションへのワードの上書きとをいずれも行わない。したがって、模擬実行中にメモリーアレイ612にコピーされたメカコンのワードはその時点以降、キャッシュミスが生じても他のワードに上書きされることなく、メモリーアレイ612にロックダウンされる。本実行では、メカコンの含む、印刷条件に適った実行対象の命令のうち、プリンター130の駆動部10D、…に対するI/Oアクセス命令以外はメモリーアレイ612にすでにキャッシュされている。したがって、機構制御におけるキャッシュヒット率が安定に、かつ実質上100%に等しい値に維持される。   FIG. 8A is a schematic diagram showing the operation of the CPU 61 during the main execution of the image forming program. After the printing process for a predetermined number of sheets such as one sheet is completed by the simulation execution, the core 61C first instructs the cache controller 611 to perform CLD. After receiving this instruction, the cache controller 611 does not invalidate the valid bit associated with a cache miss and overwrite the word in the data section. Therefore, Mechacon words copied to the memory array 612 during simulation execution are locked down to the memory array 612 without being overwritten by other words even if a cache miss occurs after that point. In this execution, among the instructions to be executed that meet the printing conditions included in the mechanical control, those other than the I / O access instruction for the drive unit 10D of the printer 130 are already cached in the memory array 612. Therefore, the cache hit rate in the mechanism control is maintained stably and substantially equal to 100%.

図8の(b)は、画像形成プログラムの本実行の完了時におけるCPU61の動作を示す模式図である。本実行によりすべてのシートの印刷処理が完了した後、コア61Cはまず、キャッシュコントローラー611に対してCLDの解除CRLを指示する。この指示を受けた時点以降、キャッシュコントローラー611は、キャッシュミスに伴う有効ビットの無効化とデータセクションへのワードの上書きとを再開する。したがって、メモリーアレイ612には、画像処理、UI、LAN通信等、メカコン以外のプログラムもキャッシュされる。   FIG. 8B is a schematic diagram showing the operation of the CPU 61 when the main execution of the image forming program is completed. After the print processing of all sheets is completed by this execution, the core 61C first instructs the cache controller 611 to cancel CLD for CLD. After receiving this instruction, the cache controller 611 resumes the invalidation of the valid bit associated with the cache miss and the overwriting of the word in the data section. Therefore, the memory array 612 also caches programs other than mechanical controllers such as image processing, UI, and LAN communication.

[印刷条件に応じた模擬的な応答情報の態様変化]
画像形成プログラムの模擬実行中、コア61Cは、プリンター130の駆動部10D、…のレジスターへ書き込むべき命令ACSを遮断し、その命令ACSに対する駆動部10D、…の応答情報RSPを模擬的に作成する。このときに想定されるべきプリンター130の機構部10、…の動作ではタイミング等の詳細が、実際には、印刷条件によって異なる。たとえば、搬送対象のシートの紙種が異なれば、給紙元の給紙カセットの位置、シートの搬送速度の目標値が異なるので、シートの搬送経路と搬送距離、そのシートを検知する通紙センサーの位置、その検知のタイミングが異なる。したがって、模擬実行において印刷条件が標準的なものに一律に設定されると、本実行では、実際の印刷条件と標準的なものとの間の差異に起因するキャッシュミスが実行時間を遅らせ、ヒット率の安定化を阻む危険性がある。この危険性を回避する目的でCPU61は、画像形成プログラムの模擬実行中、模擬的に作成すべき応答情報RSPを印刷条件に合わせて変更する。具体的にはたとえば、印刷条件の次の項目のうち、少なくとも1つに合わせて応答情報RSPが変更される。(1)シートの給紙場所または排紙場所。(2)片面印刷と両面印刷とのいずれを示すか。(3)シートのサイズ、紙種、または姿勢。(4)カラーモードとモノクロモードとのいずれを示すか。
[Changes in simulated response information depending on printing conditions]
During the simulation execution of the image forming program, the core 61C blocks the command ACS to be written to the register of the drive unit 10D,... Of the printer 130, and creates the response information RSP of the drive unit 10D,. . In the operation of the mechanism unit 10,... Of the printer 130 to be assumed at this time, details such as the timing actually differ depending on the printing conditions. For example, if the paper type of the sheet to be transported is different, the position of the sheet feed cassette and the target value of the sheet transport speed are different, so the sheet transport path and transport distance, and a sheet passing sensor that detects the sheet The position and the detection timing are different. Therefore, if the printing conditions are uniformly set to standard in the simulated execution, a cache miss due to the difference between the actual printing conditions and the standard one will delay the execution time and hit in this execution. There is a risk of hindering rate stabilization. In order to avoid this danger, the CPU 61 changes the response information RSP to be generated in a simulated manner according to the printing conditions during the simulation execution of the image forming program. Specifically, for example, the response information RSP is changed in accordance with at least one of the following items of the printing conditions. (1) A sheet feeding place or a sheet discharging place. (2) Whether to indicate single-sided printing or double-sided printing. (3) Sheet size, paper type, or posture. (4) Which of the color mode and the monochrome mode is indicated?

図9の(a)は、シートの給紙場所と紙種との組み合わせ別に、通紙センサー1FS、2FS、CS、TS、ESによるシートの検出時間を示す表である。図2から明らかなとおり、給紙カセットが1段目11aと2段目11bとのいずれであるかにより、まず、シートの搬送経路が異なるので、シートが給紙センサー1FS、2FSと縦搬センサーCSとのそれぞれを通過するか否かが異なる。次に、給紙カセット11a、11bからタイミングローラー14までの搬送経路の長さが異なるので、シートが給紙カセット11a、11bを離脱してから、タイミングセンサーTSと排紙センサーESとのそれぞれに検出されるまでの時間が異なる。さらに、普通紙と厚紙とでは搬送速度が異なるので、各センサーCS、TS、ESに検出される時間が異なる。こうして、給紙カセット11a、11bと紙種との組み合わせごとに各センサー1FS、2FS、CS、TS、ESによる検出時間が、TF1〜TF2、TF3〜TF4、TC3〜TC4、TT1〜TT4、TE1〜TE4と異なる。これらの値は、給紙カセット11a、11bから排紙センサーESまでシートが正常に搬送される場合のタイミングを表す。画像形成プログラムの模擬実行中、これらの値に合わせて模擬的な応答情報RSPをコア61Cは作成し、給紙カセット11a、11bから排紙センサーESまでのシート搬送に遅れがないことの確認、給紙ローラー12P、12F、12Gの回転/停止による紙間の調節、およびタイミングローラー14の起動タイミングの制御に利用する。   FIG. 9A is a table showing sheet detection times by the sheet passing sensors 1FS, 2FS, CS, TS, and ES for each combination of sheet feeding location and sheet type. As apparent from FIG. 2, since the sheet conveyance path is different depending on whether the sheet feeding cassette is the first stage 11a or the second stage 11b, the sheet is fed by the sheet feeding sensors 1FS, 2FS and the longitudinal conveyance sensor. Whether or not to pass each CS is different. Next, since the lengths of the conveyance paths from the sheet feeding cassettes 11a and 11b to the timing roller 14 are different, after the sheet leaves the sheet feeding cassettes 11a and 11b, each of the timing sensor TS and the sheet discharge sensor ES is used. The time until detection is different. Furthermore, since the transport speed is different between plain paper and thick paper, the time detected by each sensor CS, TS, ES is different. Thus, the detection times by the sensors 1FS, 2FS, CS, TS, ES for each combination of the paper feed cassettes 11a, 11b and the paper type are TF1-TF2, TF3-TF4, TC3-TC4, TT1-TT4, TE1-. Different from TE4. These values represent the timing when the sheet is normally conveyed from the paper feed cassettes 11a and 11b to the paper discharge sensor ES. During simulation execution of the image forming program, the core 61C creates simulated response information RSP according to these values, and confirms that there is no delay in sheet conveyance from the paper feed cassettes 11a, 11b to the paper discharge sensor ES. This is used for adjustment between sheets by rotation / stop of the paper feed rollers 12P, 12F, and 12G, and control of the start timing of the timing roller 14.

図9の(b)は、シートの排紙場所と紙種との組み合わせ別に、シートが排紙センサーESの通過に要する時間を示す表である。図2から明らかなとおり、排紙場所が排紙トレイ46と反転トレイ47とのいずれであるかにより、まず、シートに搬送力を与える搬送ローラー43、45と排紙センサーESとの間の搬送経路の長さが異なるので、シートの先端が排紙センサーESに検出されてから、その搬送ローラー43、45に到達するまでの時間が異なり、その後、シートの後端が排紙センサーESを通過するまでの時間が異なる。さらに、普通紙と厚紙とでは搬送速度が異なるので、1枚のシートが排紙センサーESに検出され続ける時間が異なる。こうして、排紙場所46、47と紙種との組み合わせごとに排紙センサーESの通過時間がPE1〜PE4と異なる。これらの値は、定着部30から排紙場所46、47までシートが正常に搬送される場合のタイミングを表す。画像形成プログラムの模擬実行中、これらの値に合わせて模擬的な応答情報RSPをコア61Cは作成し、定着ローラー31からのシートの送出に遅れがないことの確認、排紙ローラー43と反転ローラー45との回転/停止タイミングの制御に利用する。   FIG. 9B is a table showing the time required for the sheet to pass through the sheet discharge sensor ES for each combination of the sheet discharge location and the sheet type. As is apparent from FIG. 2, depending on whether the paper discharge place is the paper discharge tray 46 or the reverse tray 47, first, the conveyance between the conveyance rollers 43 and 45 that apply a conveyance force to the sheet and the paper discharge sensor ES. Since the length of the path is different, the time from when the leading edge of the sheet is detected by the paper discharge sensor ES until reaching the transport rollers 43 and 45 is different, and then the trailing edge of the sheet passes through the paper discharge sensor ES. The time to do is different. Furthermore, since the transport speed differs between plain paper and thick paper, the time during which one sheet is detected by the paper discharge sensor ES differs. Thus, the passing time of the paper discharge sensor ES differs from PE1 to PE4 for each combination of the paper discharge locations 46 and 47 and the paper type. These values represent the timing when the sheet is normally conveyed from the fixing unit 30 to the paper discharge locations 46 and 47. During simulation execution of the image forming program, the core 61C creates simulated response information RSP in accordance with these values, confirms that there is no delay in sheet feeding from the fixing roller 31, the paper discharge roller 43 and the reverse roller. 45 is used to control the rotation / stop timing with the unit 45.

図9の(c)は、シートの紙種、サイズ、姿勢の組み合わせ別に、タイミングローラー14がシートの後端をタイミングセンサーTSの検出範囲から引き出すのに要する時間を示す表である。シートのサイズはもちろん、その姿勢が縦置きか横置きかにより、搬送経路に沿ったシートの長さが異なるので、タイミングローラー14の回転開始から、シートの後端がタイミングセンサーTSに検出されなくなるまでの時間が異なる。さらに、普通紙と厚紙とでは搬送速度が異なるので、1枚のシートがタイミングセンサーTSに検出され続ける時間が異なる。こうして、シートの紙種、サイズ、姿勢の組み合わせごとにタイミングセンサーTSの通過時間がPT1〜PT8と異なる。これらの値は、タイミングローラー14がシートを中間転写ベルト23の駆動ローラー23Rと2次転写ローラー24との間のニップへ正常に通紙する場合のタイミングを表す。画像形成プログラムの模擬実行中、これらの値に合わせて模擬的な応答情報RSPをコア61Cは作成し、タイミングローラー14からのシートの送出に遅れがないことの確認、タイミングローラー14の停止タイミングの制御に利用する。   FIG. 9C is a table showing the time required for the timing roller 14 to pull out the trailing edge of the sheet from the detection range of the timing sensor TS for each combination of sheet type, size, and orientation of the sheet. Since the length of the sheet along the conveying path differs depending on whether the posture is portrait or landscape, the sheet trailing edge is not detected by the timing sensor TS from the start of the rotation of the timing roller 14. The time until is different. Furthermore, since the conveyance speed differs between plain paper and thick paper, the time during which one sheet is detected by the timing sensor TS differs. Thus, the passing time of the timing sensor TS differs from PT1 to PT8 for each combination of sheet type, size, and orientation of the sheet. These values represent the timing when the timing roller 14 normally passes the sheet to the nip between the driving roller 23R of the intermediate transfer belt 23 and the secondary transfer roller 24. During simulation execution of the image forming program, the core 61C creates simulated response information RSP in accordance with these values, confirms that there is no delay in sheet feeding from the timing roller 14, and determines the timing for stopping the timing roller 14. Used for control.

図9の(d)は、片面印刷と両面印刷とのそれぞれにおいて通紙センサーTS、ES、1RS、2RSがシートを検出する時間と切換爪41の駆動ソレノイドSLの動作時間とを示す表である。図2が示すように、片面印刷とは異なり両面印刷では、シートが反転口44でスイッチバックし、更に循環路48を通ってタイミングローラー14へ戻る。したがって、片面印刷と両面印刷とでは、まず、シートが通紙センサー1RS、2RSを通過するか否かが異なる。次に、切換爪41の先端を上下させる必要の有無が異なる。こうして、1枚のシートが、片面印刷ではタイミングセンサーTSと排紙センサーESとに1回ずつ検出されるだけであるのに対し、両面印刷ではタイミングセンサーTSと排紙センサーESとに2回ずつ検出され、更に循環路48の通紙センサー1RS、2RSにも1回ずつ検出される。さらに、片面印刷とは異なり両面印刷では、駆動ソレノイドSLがシート1枚あたりに2回ずつ動作して切換爪41の先端を上下させる。図9の(d)の表が示す両面印刷における各センサーTS、ES、1RS、2RSによるシートの検出時間の値DT1、DT2、DE1、DE2、DR1、DR2、および駆動ソレノイドSLの動作時間の値TS1、TS2は、シートが両面印刷時の搬送経路、特に循環路48を正常に搬送される場合のタイミングを表す。画像形成プログラムの模擬実行中、これらの値に合わせて模擬的な応答情報RSPをコア61Cは作成し、両面印刷におけるシート搬送に遅れがないことの確認、反転口44でのシートのスイッチバックにおける反転ローラー45の回転の正逆の切り換えタイミングの制御に利用する。   FIG. 9D is a table showing the time when the sheet passing sensors TS, ES, 1RS, and 2RS detect the sheet and the operation time of the drive solenoid SL of the switching claw 41 in each of single-sided printing and double-sided printing. . As shown in FIG. 2, unlike single-sided printing, in double-sided printing, the sheet is switched back at the reversing port 44, and then returns to the timing roller 14 through the circulation path 48. Therefore, first, whether or not a sheet passes through the paper passing sensors 1RS and 2RS is different between single-sided printing and double-sided printing. Next, the necessity of moving the tip of the switching claw 41 up and down is different. In this way, one sheet is detected only once by the timing sensor TS and the paper discharge sensor ES in single-sided printing, whereas twice in the timing sensor TS and paper discharge sensor ES in double-sided printing. Further, it is detected once for each of the paper passing sensors 1RS and 2RS in the circulation path 48. In addition, unlike single-sided printing, in double-sided printing, the drive solenoid SL operates twice for each sheet to move the tip of the switching claw 41 up and down. The values of the sheet detection times DT1, DT2, DE1, DE2, DR1, DR2, and the operation time of the drive solenoid SL in the duplex printing shown in the table of FIG. 9D are shown. TS1 and TS2 represent timings when the sheet is normally conveyed on the conveyance path during duplex printing, particularly the circulation path 48. During simulation execution of the image forming program, the core 61C creates simulated response information RSP according to these values, confirms that there is no delay in sheet conveyance in double-sided printing, and in sheet switchback at the reversing port 44 This is used to control the switching timing of the reverse rotation of the reversing roller 45.

図9の(e)は、プリンター130の動作モードがカラーモードとモノクロモードとの別に、印刷エンジンにおける駆動対象のモーターを示す表である。図2から明らかなとおり、カラーモードでは4つの作像ユニット21Y、21M、21C、21Kがすべてトナー像を作成するので、4本の感光体ドラム25Y、25M、25C、25Kがすべて回転する。それに対してモノクロモードでは、使用される色が、Y、M、C、Kのうちいずれか1つ、たとえばKだけであるので、対応する作像ユニット21Kでのみ感光体ドラム25Kが回転する。画像形成プログラムの模擬実行では、コア61Cが、感光体ドラム25Y、…の駆動モーターYM、MM、CM、KMのうち、図9の(e)の表が示すものの回転数を模擬的な応答情報RSPに組み込み、これらの駆動モーターYM、…の制御に利用する。   FIG. 9E is a table showing motors to be driven in the print engine, depending on whether the operation mode of the printer 130 is the color mode or the monochrome mode. As is apparent from FIG. 2, in the color mode, all of the four image forming units 21Y, 21M, 21C, and 21K create toner images, so that all the four photosensitive drums 25Y, 25M, 25C, and 25K rotate. On the other hand, in the monochrome mode, the color used is only one of Y, M, C, and K, for example, only K. Therefore, the photosensitive drum 25K rotates only in the corresponding image forming unit 21K. In the simulation execution of the image forming program, the core 61C simulates the rotational speed of the drive motors YM, MM, CM, KM of the photosensitive drums 25Y,... Shown in the table of FIG. It is incorporated in the RSP and used for controlling these drive motors YM.

図9の示すような表は、メカコンと共に画像形成プログラムの中に組み込まれている。これらの表はメカコンと同様に、画像形成プログラムの模擬実行時にメインメモリー62に展開される。
模擬実行中に繰り返されるべき印刷処理の回数は一般に、印刷条件に合わせて異なる値に規定される。たとえば、片面印刷では、シート1枚分の印刷処理に必要なメカコンの全体が一通り含まれるので、規定回数が“1”に設定されればよい。それに対し、両面印刷では、ジョブの規定する印刷対象のシートが複数枚である場合、その枚数と、循環路48を含めた搬送経路全体で搬送ローラー群の制御が周期的になるまでに必要な印刷枚数とのいずれか少ない方に、規定回数が設定される。この規定回数も、図9の示す表と同様に、画像形成プログラムの中に組み込まれている。
A table as shown in FIG. 9 is incorporated in the image forming program together with the mechanical control. These tables are developed in the main memory 62 when the image forming program is simulated, as in the case of the mechanical control.
In general, the number of printing processes to be repeated during simulation execution is defined as a different value in accordance with printing conditions. For example, in single-sided printing, the entire mechanical control necessary for the printing process for one sheet is included, so the prescribed number of times may be set to “1”. On the other hand, in double-sided printing, if there are multiple sheets to be printed specified by the job, it is necessary until the control of the transport roller group becomes periodic throughout the transport path including the number of sheets and the circulation path 48. The specified number of times is set to the smaller of the number of printed sheets. This specified number of times is also incorporated in the image forming program, as in the table shown in FIG.

[画像形成プログラムの実行処理の流れ]
図10は、画像形成プログラムの実行処理のフローチャートである。この処理は、CPU61が操作部50から印刷ジョブの処理要求を通知されたことに応じて開始する。
ステップS101では、メモリーアレイ612のフラッシュ命令CFLを、コア61Cがキャッシュコントローラー611へ送信する。この命令CFLに応じてキャッシュコントローラー611はメモリーアレイ612のフラッシュを行う。これにより、すべてのキャッシュラインCLN0、…において有効ビットが無効化される。その後、処理はステップS102へ進む。
[Flow of image forming program execution processing]
FIG. 10 is a flowchart of an image forming program execution process. This process starts in response to the CPU 61 receiving a print job processing request from the operation unit 50.
In step S101, the core 61C transmits the flush instruction CFL for the memory array 612 to the cache controller 611. In response to the instruction CFL, the cache controller 611 flushes the memory array 612. As a result, the valid bit is invalidated in all the cache lines CLN0,. Thereafter, the process proceeds to step S102.

ステップS102では、CPU61が、画像形成プログラムをメインメモリー62に展開すると共に、その模擬実行中に応答情報を模擬的に作成するのに必要なパラメーターの値を印刷条件に合わせて変更し、メインメモリー62に設定する。具体的には、コア61Cが操作部50からの印刷ジョブの処理要求から印刷条件を解読し、図9の表が示すような、印刷条件の項目と機構制御に必要なパラメーターの値との間の対応関係に基づき、それらパラメーターの値を印刷条件に合わせて選択する。その後、処理はステップS103へ進む。   In step S102, the CPU 61 develops the image forming program in the main memory 62, changes the parameter values necessary for creating response information in a simulated manner during the execution of the simulation, according to the printing conditions, and executes the main memory. Set to 62. Specifically, the core 61C decodes the print condition from the print job processing request from the operation unit 50, and the interval between the print condition item and the parameter value necessary for mechanism control as shown in the table of FIG. The parameter values are selected according to the printing conditions based on the corresponding relationship. Thereafter, the process proceeds to step S103.

ステップS103では、コア61Cが画像形成プログラムを模擬実行し、1枚等、所定枚数分の印刷処理を行う。特にコア61Cは、メカコンの含むワードのうち、プリンター130の駆動部10D、…に対するI/Oアクセス命令をスキップする。その代わり、その命令に対する駆動部10D、…からの応答情報をコア61Cが、ステップS102で用意したパラメーターの値に基づいて模擬的に作成する。これにより、コア61Cがメインメモリー62に対して読み書きするメカコンの含むワードは、機構部10、…へのI/Oアクセス命令を除き、キャッシュメモリー61Mにキャッシュされる。その後、処理はステップS104へ進む。   In step S103, the core 61C executes a simulation of the image forming program and performs a printing process for a predetermined number of sheets such as one sheet. In particular, the core 61C skips an I / O access command for the drive unit 10D of the printer 130 among words included in the mechanical control. Instead, the core 61C generates simulation information based on the parameter values prepared in step S102, from the drive units 10D,. As a result, the word included in the mechanical controller that the core 61C reads / writes from / to the main memory 62 is cached in the cache memory 61M, except for the I / O access command to the mechanism unit 10,. Thereafter, the process proceeds to step S104.

ステップS104では、画像形成プログラムの模擬実行の完了後、その本実行に先立ってCPU61はキャッシュメモリー61Mに、模擬実行中に記憶したメカコンのワードをロックダウンさせる。これにより、キャッシュミスに伴う有効ビットの無効化とデータセクションへのワードの上書きとが禁止される。その後、処理はステップS105へ進む。
ステップS105では、コア61Cが画像形成プログラムを本実行し、印刷ジョブの示す部数のシートを印刷する。本実行では、メカコンの含む、印刷条件に適った実行対象の命令のうち、プリンター130の機構部10、…へのI/Oアクセス命令以外はすでにキャッシュメモリー61Mにコピーされている。これらの命令は、キャッシュミスが生じても他のワードに上書きされることなくメモリーアレイ612にロックダウンされているので、実質上すべてキャッシュヒットする。I/Oアクセス命令だけは、最初の実行時、キャッシュミスに応じてメインメモリー62から読み出され、キャッシュメモリー61Mにキャッシュされる。その後、処理はステップS106へ進む。
In step S104, after the simulation execution of the image forming program is completed, prior to the main execution, the CPU 61 causes the cache memory 61M to lock down the mechanical control word stored during the simulation execution. As a result, invalidation of the valid bit accompanying a cache miss and overwriting of a word in the data section are prohibited. Thereafter, the process proceeds to step S105.
In step S105, the core 61C executes the image forming program to print the number of sheets indicated by the print job. In this execution, among the instructions to be executed that meet the printing conditions included in the mechanical control, those other than the I / O access instruction to the mechanism unit 10 of the printer 130 have already been copied to the cache memory 61M. Since these instructions are locked down to the memory array 612 without being overwritten with other words even if a cache miss occurs, virtually all cache hits occur. Only the I / O access instruction is read from the main memory 62 in response to a cache miss at the first execution and cached in the cache memory 61M. Thereafter, the process proceeds to step S106.

ステップS106では、画像形成プログラムの本実行により、印刷ジョブが規定する部数のシートすべての印刷処理が完了した後、コア61Cはキャッシュメモリー61MにCLDの解除を指示する。これにより、キャッシュミスに伴う有効ビットの無効化とデータセクションへのワードの上書きとが再開されるので、キャッシュメモリー61Mは、画像処理、UI、LAN通信等、メカコン以外のプログラムにも開放される。その後、処理は終了する。   In step S106, the core 61C instructs the cache memory 61M to release the CLD after the print processing of all the sheets of the number specified by the print job is completed by the actual execution of the image forming program. As a result, the invalidation of the valid bit and the overwriting of the word to the data section due to the cache miss are resumed, so that the cache memory 61M is also opened to programs other than the mechanical control, such as image processing, UI, and LAN communication. . Thereafter, the process ends.

−本実行におけるメカコン処理の例−
図11は、図10の示すステップS105における本実行による機構制御のうち、給送ローラー群12P、12F、12Rの制御のフローチャートである。この制御は、給送ローラー群12P、…を間欠的に回転させて紙間を所定値に維持させる。また、給紙センサー1FS、2FS、縦送センサーCS、タイミングセンサーTSの各出力から、シートの通過タイミングに遅れがないか否か、紙間が正常な値に維持されているか否かが判断される。
-Example of mechanical control processing in this execution-
FIG. 11 is a flowchart of control of the feeding roller groups 12P, 12F, and 12R in the mechanism control by the actual execution in step S105 shown in FIG. In this control, the feeding roller group 12P,... Is intermittently rotated to maintain the sheet interval at a predetermined value. Further, it is determined from the outputs of the paper feed sensors 1FS and 2FS, the vertical feed sensor CS, and the timing sensor TS whether or not there is a delay in the sheet passing timing and whether or not the sheet spacing is maintained at a normal value. The

ステップS201では、コア61Cがプリンター130の給送部10に給紙カセット11aまたは11bの給送ローラー群12P、…の回転を開始させる。具体的には、まずコア61Cが、メカコンに従って給送ローラー群12P、…の回転命令を、給送部10の駆動部10Dのレジスターに書き込む。駆動部10Dではそのレジスターを制御回路が監視し、そこに書き込まれた回転命令に従い、給送モーターM1またはM2を起動させる。これにより、給送ローラー群12P、…が回転を開始する。その後、処理はステップS202へ進む。   In step S201, the core 61C causes the feeding unit 10 of the printer 130 to start rotating the feeding roller group 12P of the paper feeding cassette 11a or 11b. Specifically, first, the core 61C writes a rotation command for the feeding roller group 12P,... In a register of the driving unit 10D of the feeding unit 10 according to the mechanical control. In the driving unit 10D, the control circuit monitors the register, and starts the feeding motor M1 or M2 in accordance with the rotation command written therein. Thereby, the feeding roller group 12P,... Starts rotating. Thereafter, the process proceeds to step S202.

ステップS202では、コア61Cが給送部10の駆動部10Dのレジスターを監視して、そこに通紙センサー1FS、2FS、CS、TSの出力結果が書き込まれたか否かを確認する。書き込まれていれば、コア61Cは更にそれらの出力結果から、シートが正常にタイミングローラー14まで到達したか否かを確認する。正常であれば処理がステップS203へ進み、異常であれば処理がステップS206へ進む。   In step S202, the core 61C monitors the register of the driving unit 10D of the feeding unit 10 and confirms whether or not the output results of the paper passing sensors 1FS, 2FS, CS, and TS are written therein. If written, the core 61C further confirms whether or not the sheet has normally reached the timing roller 14 from the output results. If normal, the process proceeds to step S203, and if abnormal, the process proceeds to step S206.

ステップS203では、通紙センサー1FS、2FS、CS、TSの出力結果は、シートが正常にタイミングローラー14まで到達したことを示す。したがって、その到達時刻から所定時間が経過した時点でコア61Cは給送部10に、給送ローラー群12P、…の回転を停止させる。具体的には、まずコア61Cが、メカコンに従って給送ローラー群12P、…の停止命令を給送部10の駆動部10Dのレジスターに書き込む。駆動部10Dの制御回路は、そのレジスターに書き込まれた停止命令に従い、給送モーターM1またはM2を停止させる。これにより、給送ローラー群12P、…が回転を停止する。その後、処理はステップS204へ進む。   In step S203, the output results of the sheet passing sensors 1FS, 2FS, CS, and TS indicate that the sheet has reached the timing roller 14 normally. Accordingly, when a predetermined time has elapsed from the arrival time, the core 61C causes the feeding unit 10 to stop the rotation of the feeding roller group 12P,. Specifically, first, the core 61C writes a stop command for the feeding roller group 12P,... In the register of the driving unit 10D of the feeding unit 10 according to the mechanical control. The control circuit of the drive unit 10D stops the feed motor M1 or M2 in accordance with the stop command written in the register. Thereby, the feeding roller group 12P,... Stops rotating. Thereafter, the process proceeds to step S204.

ステップS204では、印刷対象のシートのうち、給送部10が給紙カセット11aまたは11bからまだ繰り出していないシートが残っているか否かを、コア61Cが確認する。具体的には、まず、給送ローラー群12P、…が繰り出し終えたシートの枚数の出力命令を、コア61Cが給送部10の駆動部10Dのレジスターに書き込む。この命令に応じてそのレジスターに駆動部10Dの制御回路が書き込んだ枚数をコア61Cが取得し、その枚数が印刷ジョブの規定する枚数未満か否かを確認する。残っていれば処理がステップS205へ進み、残っていなければ処理が終了する。   In step S204, the core 61C confirms whether or not there remains a sheet that has not been fed out from the sheet feeding cassette 11a or 11b by the feeding unit 10 among sheets to be printed. Specifically, first, the core 61C writes an output command for the number of sheets that the feeding roller group 12P,... Has finished feeding into the register of the driving unit 10D of the feeding unit 10. In response to this command, the core 61C acquires the number of sheets written by the control circuit of the drive unit 10D in the register, and checks whether the number is less than the number specified by the print job. If it remains, the process proceeds to step S205, and if not, the process ends.

ステップS205では、給紙カセット11aまたは11bからまだ繰り出させていない印刷対象のシートが残っている。したがって、ステップS203における給送ローラー群12P、…の停止時刻から、紙間が開くのに必要な時間が経過したか否かをコア61Cは確認する。具体的には、まず、その停止時刻からの経過時間の出力命令を、コア61Cが給送部10の駆動部10Dのレジスターに書き込む。この命令に応じてそのレジスターに駆動部10Dの制御回路が書き込んだ時間値をコア61Cが取得し、その時間値を、紙間が開くのに必要な時間を表す閾値と比較する。その時間値が閾値以上であれば処理がステップS201から繰り返し、閾値未満であれば処理がステップS205を繰り返す。   In step S205, there remains a sheet to be printed that has not yet been fed out from the paper feed cassette 11a or 11b. Therefore, the core 61C confirms whether or not the time necessary for opening the sheet interval has elapsed from the stop time of the feeding roller group 12P,. Specifically, first, the core 61C writes the output command of the elapsed time from the stop time to the register of the driving unit 10D of the feeding unit 10. In response to this command, the core 61C acquires the time value written by the control circuit of the driving unit 10D in the register, and compares the time value with a threshold value representing the time required to open the paper gap. If the time value is greater than or equal to the threshold, the process repeats from step S201, and if less than the threshold, the process repeats step S205.

ステップS206では、通紙センサー1FS、2FS、CS、TSのいずれかの出力結果は、シートが正常にタイミングローラー14まで到達したことを示していない。したがって、ステップS201において給送ローラー群12P、…がシートを繰り出した時刻から、そのシートが正常にタイミングローラー14まで到達するのに必要な時間が経過したか否かをコア61Cは確認する。すでに経過していれば処理がステップS207へ進み、まだ経過していなければ処理がステップS202から繰り返す。   In step S206, the output result of any one of the sheet passing sensors 1FS, 2FS, CS, and TS does not indicate that the sheet has reached the timing roller 14 normally. Therefore, the core 61C confirms whether or not the time necessary for the sheet to normally reach the timing roller 14 has elapsed from the time when the sheet feeding roller group 12P,. If it has already elapsed, the process proceeds to step S207, and if it has not yet elapsed, the process is repeated from step S202.

ステップS207では、給送ローラー群12P、…がシートを繰り出した時刻から、そのシートが正常にタイミングローラー14まで到達するのに必要な時間がすでに経過している。したがって、コア61Cは操作部50に、ジャムを示す通知を操作パネルに表示させると共に、プリンター130の機構部10、…に印刷動作の中断を指示する。その後処理は中止される。   In step S207, the time necessary for the sheet to normally reach the timing roller 14 has already elapsed from the time when the sheet feeding roller group 12P has fed the sheet. Accordingly, the core 61C causes the operation unit 50 to display a notification indicating a jam on the operation panel, and instructs the mechanism unit 10 of the printer 130 to interrupt the printing operation. Thereafter, the process is stopped.

−模擬実行における機構制御の例−
図12は、図10の示すステップS103における模擬実行による機構制御のうち、図11の示す給送ローラー群12P、…の制御に相当する部分のフローチャートである。この制御では、給送部10の駆動部10Dに対するI/Oアクセス命令がスキップされ、その命令に対する応答情報が模擬的に作成される。
-Examples of mechanism control in simulated execution-
FIG. 12 is a flowchart of a portion corresponding to control of the feeding roller group 12P,... Shown in FIG. 11 in the mechanism control by the simulation execution in step S103 shown in FIG. In this control, the I / O access command for the driving unit 10D of the feeding unit 10 is skipped, and response information for the command is created in a simulated manner.

ステップS211では、コア61Cが、プリンター130の給送部10に対する給送ローラー群12P、…の回転命令をスキップする。これにより、給送部10の駆動部10Dのレジスターへ書き込まれるべき回転命令が遮断される。その後、処理はステップS212へ進む。
ステップS212では、コア61Cが、給送部10の駆動部10Dからの応答情報を模擬的に作成する。この模擬的な応答情報は、本実行において、駆動部10Dのレジスターへの回転命令の書き込みに応じてそのレジスターから読み出されるべき情報、具体的には通紙センサー1FS、2FS、CS、TSの各出力結果を模倣する。特に、この出力結果には、たとえば図9の(a)の表が示す各センサー1FS、…による検出時間TF1、…に合わせてコア61Cが計算した、シートが正常にタイミングローラー14まで到達したことを示す値が記載されている。その後、処理はステップS213へ進む。
In step S <b> 211, the core 61 </ b> C skips the rotation command of the feeding roller group 12 </ b> P to the feeding unit 10 of the printer 130. Thereby, the rotation command to be written to the register of the driving unit 10D of the feeding unit 10 is blocked. Thereafter, the process proceeds to step S212.
In step S212, the core 61C simulates response information from the drive unit 10D of the feeding unit 10. This simulated response information is information to be read from the register in accordance with the writing of the rotation command to the register of the driving unit 10D in the present execution, specifically, each of the paper passing sensors 1FS, 2FS, CS, and TS. Mimics the output result. In particular, in this output result, for example, the core 61C calculated according to the detection time TF1,... By each sensor 1FS,... Shown in the table of FIG. The value which shows is described. Thereafter, the process proceeds to step S213.

ステップS213では、コア61Cがまず、給送部10の駆動部10Dのレジスターに対する監視をスキップする。コア61Cは次に、その監視で取得するはずの応答情報に代えて、ステップS212で作成した模擬的な応答情報を参照し、そこに書き込まれた給紙センサー1FSまたは2FSとタイミングセンサーTSとの出力結果から、シートが正常にタイミングローラー14まで到達したか否かを確認する。正常であれば処理がステップS214へ進み、異常であれば処理が分岐する。ただし、その模擬的な応答情報は必ず、シートが正常にタイミングローラー14まで到達したことを示すので、実際には処理は必ずステップS214へ進む。   In step S213, the core 61C first skips monitoring the register of the driving unit 10D of the feeding unit 10. Next, the core 61C refers to the simulated response information created in step S212, instead of the response information that should be obtained by the monitoring, and the paper feed sensor 1FS or 2FS and timing sensor TS written therein are referred to. From the output result, it is confirmed whether or not the sheet has normally reached the timing roller 14. If normal, the process proceeds to step S214, and if abnormal, the process branches. However, since the simulated response information always indicates that the sheet has normally reached the timing roller 14, the process always proceeds to step S214.

ステップS214では、コア61Cが給送部10に対する給送ローラー群12P、…の停止命令をスキップする。この停止命令は、本実行であれば、シートがタイミングローラー14まで到達した時刻から所定時間が経過した時点で送出されるべきものである。このスキップにより、給送部10の駆動部10Dのレジスターへ書き込まれるべき停止命令が遮断される。その後、処理はステップS215へ進む。   In step S214, the core 61C skips the stop command for the feeding roller group 12P,. In the case of this execution, this stop command should be sent when a predetermined time has elapsed from the time when the sheet reaches the timing roller 14. By this skip, the stop command to be written to the register of the driving unit 10D of the feeding unit 10 is blocked. Thereafter, the process proceeds to step S215.

ステップS215では、コア61Cが、本実行であれば給送部10が繰り出したはずのシートの枚数を確認する。具体的には、まず、給送ローラー群12P、…が繰り出し終えたシートの枚数の出力命令をコア61Cがスキップする。次に、この命令に応じて給送部10の駆動部10Dのレジスターにその制御回路が書き込んだであろう枚数を示す模擬的な応答情報をコア61Cが作成し、その枚数が、模擬実行において繰り返すべき印刷処理の規定回数、たとえば1回未満か否かをコア61Cが確認する。その規定回数未満であれば処理がステップS216へ進み、以上であれば処理が終了する。   In step S215, the core 61C confirms the number of sheets that should have been fed out by the feeding unit 10 if this execution is performed. Specifically, first, the core 61C skips an output command for the number of sheets that the feeding roller group 12P,. Next, in response to this command, the core 61C generates simulated response information indicating the number of sheets that the control circuit would have written in the register of the driving unit 10D of the feeding unit 10, and the number of sheets is determined by the simulation execution. The core 61C confirms whether or not the printing process to be repeated is a prescribed number of times, for example, less than once. If it is less than the prescribed number of times, the process proceeds to step S216, and if above, the process ends.

ステップS216では、これまでに繰り返された印刷処理の回数がまだ規定回数未満であるので、コア61Cが給送部10の駆動部10Dからの応答情報を模擬的に作成する。この模擬的な応答情報は、ステップS203における給送ローラー群12P、…の停止時刻から、紙間が開くのに必要な時間が経過したことを示す。その後、処理はステップS217へ進む。   In step S216, since the number of printing processes repeated so far is still less than the prescribed number, the core 61C creates response information from the drive unit 10D of the feeding unit 10 in a simulated manner. This simulated response information indicates that the time required to open the sheet has elapsed from the stop time of the feeding roller group 12P in step S203. Thereafter, the process proceeds to step S217.

ステップS217では、ステップS203における給送ローラー群12P、…の停止時刻から、紙間が開くのに必要な時間が経過したか否かをコア61Cは確認する。具体的には、まず、その停止時刻からの経過時間の出力命令をコア61Cがスキップする。コア61Cは次に、その命令に応じて駆動部10Dから取得するはずの応答情報に代えて、ステップS216で作成した模擬的な応答情報を参照し、そこに書き込まれた時間値を閾値と比較する。その時間値が閾値以上であれば処理がステップS211から繰り返し、閾値未満であれば処理がステップS217を繰り返す。ただし、その模擬的な応答情報は必ず、閾値以上の時間値を示すので、実際には処理は必ずステップS211から繰り返す。   In step S217, the core 61C confirms whether or not the time necessary for opening the paper interval has elapsed from the stop time of the feeding roller group 12P in step S203. Specifically, first, the core 61C skips the output command of the elapsed time from the stop time. Next, the core 61C refers to the simulated response information created in step S216 in place of the response information that should be acquired from the drive unit 10D according to the command, and compares the time value written therein with the threshold value. To do. If the time value is greater than or equal to the threshold, the process repeats from step S211, and if less than the threshold, the process repeats step S217. However, since the simulated response information always indicates a time value equal to or greater than the threshold value, the process is actually repeated from step S211.

[実施形態の利点]
本発明の実施形態によるMFP100では、上記のとおり、印刷ジョブの処理要求に応じてCPU61が、画像形成プログラムの本実行に先立ち、まずそのプログラムを模擬実行する。模擬実行ではコア61Cが、メカコンの含むワードをメインメモリー62から読み出すので、それらのワードがキャッシュメモリー61Mにキャッシュされる。ただし、プリンター130の機構部10、…へのI/Oアクセス命令はコア61Cによりスキップされるので、本実行であればコア61Cから機構部10、…の駆動部10D、…へ送信されるべき制御出力が遮断される。その代わり、コア61Cは、その制御出力に応じて駆動部10D、…から取得されるはずの応答情報を模擬的に作成し、I/Oアクセス後の処理に利用する。模擬実行の完了後、本実行に先立ってコア61Cはキャッシュメモリー61Mに、模擬実行中に記憶したワードをロックダウンさせる。これらのワードが本実行では機構制御に利用される。これらのワードは、メカコンに他のプログラムが並列に実行されても、他のワードに上書きされることがない。したがって、機構制御におけるキャッシュヒット率が安定に維持される。こうして、コア61Cは機構制御の応答精度を高く維持したまま、リアルタイム型とベストエフォート型との両方のタスク処理に同じキャッシュメモリー61Mを共用することができる。
[Advantages of the embodiment]
In MFP 100 according to the embodiment of the present invention, as described above, in response to a print job processing request, CPU 61 first executes a simulated program before the actual execution of the image forming program. In the simulation execution, the core 61C reads the words included in the mechanical controller from the main memory 62, and these words are cached in the cache memory 61M. However, since the I / O access command to the mechanism unit 10,... Of the printer 130 is skipped by the core 61C, if it is this execution, it should be transmitted from the core 61C to the drive unit 10D of the mechanism unit 10,. Control output is cut off. Instead, the core 61C simulates the response information that should be acquired from the drive units 10D,... According to the control output, and uses it for processing after I / O access. After the simulation execution is completed, the core 61C locks down the word stored during the simulation execution in the cache memory 61M prior to the actual execution. These words are used for mechanism control in this execution. These words are not overwritten by other words even if other programs are executed in parallel on the mechanical computer. Therefore, the cache hit rate in the mechanism control is stably maintained. Thus, the core 61C can share the same cache memory 61M for both real-time type and best effort type task processing while maintaining high response accuracy of mechanism control.

画像形成プログラムの模擬実行においてコア61Cは、メインメモリー62から読み出すメカコンのワードを、印刷条件に合わせて変更する。コア61Cは更に機構部10、…へのI/Oアクセス命令のスキップに伴い、模擬的に作成する駆動部10D、…からの応答情報を、印刷条件に合わせて変更する。このような印刷条件の利用により、キャッシュメモリー61Mには、メカコンの含むワードのうち、印刷条件に適ったワードがロックダウンされるので、キャッシュメモリー61Mにロックダウンさせるべきデータ量が最適化される。さらに、本実行におけるキャッシュヒット率が高いレベルで安定化するので、機構制御において保証されるべき各タスクの最大実行時間を短縮し、機構制御の応答精度をμ秒程度の高レベルに維持することが可能である。   In the simulation execution of the image forming program, the core 61C changes the mechanical control word read from the main memory 62 according to the printing conditions. The core 61C further changes the response information from the drive unit 10D, which is created in a simulated manner in accordance with the printing conditions, in accordance with the skip of the I / O access command to the mechanism units 10,. By using such printing conditions, among the words included in the mechanical controller, the words suitable for the printing conditions are locked down in the cache memory 61M, so the amount of data to be locked down in the cache memory 61M is optimized. . Furthermore, since the cache hit rate in this execution is stabilized at a high level, the maximum execution time of each task to be guaranteed in the mechanism control is shortened, and the response accuracy of the mechanism control is maintained at a high level of about microseconds. Is possible.

[変形例]
(A)図1の示す画像形成装置100は電子写真方式のMFPである。本発明の実施形態による画像形成装置はその他にインクジェット方式の複合機であってもよく、レーザープリンター、インクジェットプリンター、ファクシミリ、またはコピー機等、いずれの単機能機であってもよい。
[Modification]
(A) The image forming apparatus 100 shown in FIG. 1 is an electrophotographic MFP. In addition, the image forming apparatus according to the embodiment of the present invention may be an inkjet multifunction device, or may be any single function device such as a laser printer, an inkjet printer, a facsimile machine, or a copier.

(B)図1の(b)、図2の示す構造は一例に過ぎず、他の構造であってもよい。たとえば、印刷エンジンは、タンデム方式の作像ユニット21Y、21M、21C、21Kに代えて、1つの回転部材に4つの作像ユニットが埋め込まれた4サイクル方式であってもよい。また、中間転写ベルト23が省略され、感光体ドラムがトナー像をシートに直接転写してもよい。露光部は、レーザー走査方式のもの26に代えて、発光ダイオード(LD)の2次元配列を利用するLDアレイ方式であってもよい。   (B) The structures shown in FIGS. 1B and 2 are merely examples, and other structures may be used. For example, the print engine may be a four-cycle method in which four image forming units are embedded in one rotating member instead of the tandem image forming units 21Y, 21M, 21C, and 21K. Further, the intermediate transfer belt 23 may be omitted, and the photosensitive drum may directly transfer the toner image to the sheet. The exposure unit may be an LD array type using a two-dimensional array of light emitting diodes (LDs) instead of the laser scanning type 26.

(C)図4の示すメカコン62Rは、プリンター130の機構部10、…を対象とするものには限られず、ADF110、スキャナー120の含むメカコンを対象としてもよい。
(D)図4の示すCPU61は単一のコア61Cを含む。それとは別に、CPU61はマルチコアであってもよく、AMPにより特定のコアが機構制御専用に割り当てられてもよい。この場合、1次キャッシュはコア別に独立していてもよい。メカコン等のリアルタイム型プログラムと他の(ベストエフォート型)プログラムとの両方のタスク処理における上記のキャッシュメモリー61Mの共用技術は、2次または3次キャッシュ等、複数のコアに共用されるキャッシュメモリーに適用可能である。
(C) The mechanical controller 62R shown in FIG. 4 is not limited to the mechanism unit 10 of the printer 130, and may be a mechanical controller including the ADF 110 and the scanner 120.
(D) The CPU 61 shown in FIG. 4 includes a single core 61C. Alternatively, the CPU 61 may be multi-core, and a specific core may be allocated exclusively for mechanism control by AMP. In this case, the primary cache may be independent for each core. The shared technology of the cache memory 61M in the task processing of both real-time type programs such as Mechacon and other (best effort) programs is a cache memory shared by a plurality of cores such as a secondary or tertiary cache. Applicable.

(E)図5の(b)の示すキャッシュメモリー61Mのメモリーアレイ612では、256本のキャッシュラインCLN0、…、CLN255のすべてに異なるセットインデックス0〜255が割り振られている。この場合、メモリーアレイ612には、セットインデックスフィールドSIDが共通するメインメモリー62のアドレス群のうち、タグフィールドTGFが共通するアドレスだけが同時にマップ可能である。すなわち、それらのアドレスのワードだけが同時にキャッシュ可能である。   (E) In the memory array 612 of the cache memory 61M shown in FIG. 5B, different set indexes 0 to 255 are allocated to all 256 cache lines CLN0,..., CLN255. In this case, only addresses having the same tag field TGF can be mapped to the memory array 612 at the same time among the address groups of the main memory 62 having the same set index field SID. That is, only words at those addresses can be cached simultaneously.

その他に、メモリーアレイ612の含む256本のキャッシュラインが同数ずつ、たとえば64本ずつのグループ(「ウェイ」または「セグメント」という。)に分割され、異なるウェイのキャッシュラインに同じセットインデックスが割り振られてもよい。セットインデックスが共通するキャッシュライン群を「セット」という。1つのセットのキャッシュラインには、セットインデックスフィールド、たとえば中間6ビットが共通するメインメモリー62のアドレス群のうち、タグフィールドの異なるアドレスが、最大でウェイと同数まで同時にマップ可能である。   In addition, the 256 cache lines included in the memory array 612 are divided into the same number, for example, 64 groups (referred to as “ways” or “segments”), and the same set index is allocated to the cache lines of different ways. May be. A group of cache lines having a common set index is called a “set”. A set index field, for example, an address group of the main memory 62 having a common middle 6 bits, can be mapped simultaneously to a maximum of the same number of ways as the number of ways.

図5の(b)が示すようにメモリーアレイ612が単一のウェイしか含まない場合、キャッシュロックダウンはキャッシュコントローラー611に対し、図6の(b)が示すように、すべてのキャッシュラインにおいてキャッシュミスに伴う有効ビットvの無効化とデータセクションDTSへのワードの上書きとの両方を禁止することにより実現する。一方、メモリーアレイ612が複数のウェイに分割されている場合、キャッシュコントローラー611はセットごとに、次のキャッシュミスの際に有効ビットを無効化すべきキャッシュライン(「ビクティム」という。)を選択する。したがって、コア61Cは、ビクティムの選択から除外すべきウェイをキャッシュコントローラー611に指定することにより、キャッシュロックダウンをウェイ単位で実現可能である。指定されたウェイでは、いずれのセットに所属するキャッシュラインもビクティムには選択されないので、いずれのキャッシュラインでもワードが上書きされない。こうして、データセクションへのワードの上書きが禁止されるまでもなく、そのウェイにはワードがロックダウンされる。   If memory array 612 contains only a single way as shown in FIG. 5B, cache lockdown will cause cache controller 611 to cache all cache lines as shown in FIG. This is realized by prohibiting both invalidation of the valid bit v due to a miss and overwriting of a word in the data section DTS. On the other hand, when the memory array 612 is divided into a plurality of ways, the cache controller 611 selects, for each set, a cache line (referred to as “victim”) whose valid bit should be invalidated at the next cache miss. Accordingly, the core 61C can realize cache lockdown in units of ways by designating the way to be excluded from the selection of victims to the cache controller 611. In the designated way, no cache line belonging to any set is selected as a victim, and therefore no word is overwritten on any cache line. Thus, the word is locked down in that way without overwriting the word into the data section.

(F)MFP100には後処理装置が外付けされてもよい。この場合、印刷ジョブの処理には、後処理装置の含む機構部の制御が追加される。したがって、画像形成プログラムの模擬実行では、後処理装置のメカコンも併せて実行されてもよい。この場合、印刷条件には、後処理の要否とその種類とを規定する項目が付加されているので、これらの項目に合わせて異なる態様で後処理装置からの応答情報が模擬的に作成されてもよい。   (F) A post-processing device may be externally attached to MFP 100. In this case, control of a mechanism unit included in the post-processing device is added to the print job processing. Therefore, in the simulated execution of the image forming program, the mechanical control of the post-processing apparatus may also be executed. In this case, since the items for specifying the necessity and type of post-processing are added to the printing conditions, response information from the post-processing device is created in a simulated manner in a different manner according to these items. May be.

図13の(a)は、MFP100に外付けされた中継ユニット140と後処理装置150との外観を示す斜視図である。中継ユニット140は、排紙トレイ46に代わり、それが取り外されたMFP100の筐体部分に組み込まれる。中継ユニット140は、排紙口42からシートを受け取って後処理装置150へ中継する。後処理装置150は、MFP100からの指示に応じて、排紙口42から中継ユニット140を通して受け取ったシートの束に対して後処理を行う。この後処理には、たとえばシートの束を整合する処理と、その束をステープルで綴じる処理とを含む。後処理装置150の上側排紙トレイ151にはシートが排紙口42から送出されたときの状態のままで積載され、下側排紙トレイ152にはシートの束が整合され、またはステープルで閉じられて積載される。   FIG. 13A is a perspective view showing the external appearances of the relay unit 140 and the post-processing device 150 that are externally attached to the MFP 100. The relay unit 140 is incorporated in the casing portion of the MFP 100 from which the relay tray 140 is removed instead of the paper discharge tray 46. The relay unit 140 receives a sheet from the paper discharge port 42 and relays it to the post-processing device 150. In response to an instruction from the MFP 100, the post-processing device 150 performs post-processing on a bundle of sheets received from the paper discharge outlet 42 through the relay unit 140. This post-processing includes, for example, processing for aligning a bundle of sheets and processing for binding the bundle with staples. Sheets are stacked on the upper discharge tray 151 of the post-processing apparatus 150 as they are delivered from the discharge outlet 42, and a bundle of sheets is aligned on the lower discharge tray 152 or closed with staples. Loaded.

図13の(b)は、中継ユニット140と後処理装置150とに内蔵されたシートの搬送経路を示す模式図である。排紙口42は中継ユニット140内の経路へ繋がる。この経路には搬送ローラー群141、142、143が設置され、排紙口42から送出されたシートを後処理装置150へ中継する。後処理装置150では給紙ローラー161が、中継ユニット140からシートを受け取って筐体の中に引き込む。振分爪162は、その基端基端のまわりに揺動することによって先端を上下に移動させる。これにより、振分爪162は、給紙ローラー161が引き込んだシートを上側排紙ローラー163または縦送ローラー群164へ振り分ける。上側排紙ローラー163は、給紙ローラー161から振分爪162に沿って移動してきたシートを上側排紙トレイ151へ排紙する。搬送ローラー群164は、給紙ローラー161から振分爪162に沿って移動してきたシートを後処理部166へ向けて反転ローラー165まで搬送する。反転ローラー165はまず正転し、搬送ローラー群164が送出したシートを後処理部166へ送り込む。反転ローラー165は次に逆転し、後処理後のシートの束を後処理部166から引き出す。後処理部166は反転ローラー165から受け取ったシートを所定の枚数、蓄積して束にし、その束に対して整合処理、ステープルでの綴じ処理等の後処理を施す。下側排紙ローラー167は、反転ローラー165が後処理部166から引き出したシートの束を下側排紙トレイ152へ排紙する。   FIG. 13B is a schematic diagram illustrating a sheet conveyance path built in the relay unit 140 and the post-processing device 150. The paper discharge port 42 is connected to a route in the relay unit 140. Conveying roller groups 141, 142, and 143 are installed on this path, and the sheet sent from the paper discharge port 42 is relayed to the post-processing device 150. In the post-processing device 150, the paper feed roller 161 receives the sheet from the relay unit 140 and pulls it into the housing. The sorting claw 162 moves the tip up and down by swinging around its proximal end. As a result, the sorting claw 162 sorts the sheet pulled by the paper feed roller 161 to the upper paper discharge roller 163 or the vertical feed roller group 164. The upper paper discharge roller 163 discharges the sheet that has moved from the paper supply roller 161 along the sorting claw 162 to the upper paper discharge tray 151. The transport roller group 164 transports the sheet that has moved from the paper feed roller 161 along the sorting claw 162 toward the post-processing unit 166 to the reverse roller 165. The reversing roller 165 first rotates forward, and feeds the sheet sent by the transport roller group 164 to the post-processing unit 166. The reverse roller 165 then reverses and pulls out the post-processed sheet bundle from the post-processing unit 166. The post-processing unit 166 accumulates a predetermined number of sheets received from the reversing roller 165 to form a bundle, and performs post-processing such as alignment processing and staple binding processing on the bundle. The lower discharge roller 167 discharges the sheet bundle drawn from the post-processing unit 166 by the reverse roller 165 to the lower discharge tray 152.

図13の(b)は示していないが、中継ユニット140と後処理装置150との搬送経路にも複数の通紙センサーが設置されている。これらのセンサーを利用して後処理装置150は、経路上を搬送中のシートの位置を検知して主制御部60へ通知する。この通知に応じて主制御部60は、図13の(b)が示す可動部材141−143、161−167の駆動用モーターまたはソレノイドを制御する。たとえば、シート搬送のタイミングに遅れが生じているか否かが判断され、それに基づき、中継ユニット140と後処理装置150との搬送経路上におけるジャム等の搬送不良が検出される。   Although (b) in FIG. 13 is not shown, a plurality of paper passing sensors are also installed in the transport path between the relay unit 140 and the post-processing device 150. Using these sensors, the post-processing device 150 detects the position of the sheet being conveyed on the path and notifies the main controller 60 of the detected position. In response to this notification, the main controller 60 controls the driving motors or solenoids of the movable members 141-143 and 161-167 shown in FIG. For example, it is determined whether or not there is a delay in the sheet conveyance timing, and based on the determination, a conveyance failure such as a jam on the conveyance path between the relay unit 140 and the post-processing device 150 is detected.

画像形成プログラムの模擬実行では後処理制御プログラム、特に、図13の(b)が示す可動部材141−143、161−167の制御プログラムも実行される。後処理制御プログラムの含むワードもキャッシュメモリー61Mにキャッシュされ、模擬実行後にロックダウンされる。
模擬実行では、後処理制御プログラムの含むワードのうち、後処理装置150の駆動部に対するI/Oアクセス命令をコア61Cはスキップする。一方、コア61Cは、その命令に応じて後処理装置150の駆動部が自身のレジスターに書き込むはずの応答情報、たとえば通紙センサーの検出信号に関する情報を模擬的に作成し、制御に利用する。この情報は、シートがジャム等の不具合を起こすことなく正常に後処理される場合に、中継ユニット140と後処理装置150との内部の通紙センサーがそのシートを検出すべきタイミング等、後処理の正常な進行に伴う応答情報を模倣する。
In the simulation execution of the image forming program, a post-processing control program, particularly a control program for the movable members 141-143 and 161-167 shown in FIG. Words included in the post-processing control program are also cached in the cache memory 61M and locked down after the simulation execution.
In the simulation execution, the core 61C skips the I / O access command for the drive unit of the post-processing device 150 among the words included in the post-processing control program. On the other hand, in response to the command, the core 61C creates response information that the drive unit of the post-processing device 150 should write in its own register, for example, information related to the detection signal of the paper passing sensor, and uses it for control. This information is used for post-processing such as when the sheet passing sensor in the relay unit 140 and the post-processing device 150 should detect the sheet when the sheet is normally post-processed without causing a problem such as a jam. Mimic response information associated with normal progression of

コア61Cは特に、模擬的な応答情報を印刷条件に合わせて変更する。たとえば、後処理の要否に応じてシートの排紙先151、152が異なるので、駆動すべき搬送ローラーの種類と振分爪162の先端の向きとが異なる。1束あたりのシートの枚数が異なれば、後処理部166からの束の搬送速度の目標値が異なるので、反転ローラー165と下側排紙ローラー167との駆動モーターの回転数が異なる。これらの違いに合わせて、シートを検出すべき通紙センサーの種類、その検出のタイミング等、模擬的な応答情報の内容が変更される。   In particular, the core 61C changes the simulated response information according to the printing conditions. For example, since the sheet discharge destinations 151 and 152 differ depending on whether or not post-processing is necessary, the type of the transport roller to be driven and the direction of the tip of the sorting claw 162 are different. If the number of sheets per bundle is different, the target value of the conveyance speed of the bundle from the post-processing unit 166 is different, and therefore the rotation speeds of the drive motors for the reverse roller 165 and the lower discharge roller 167 are different. In accordance with these differences, the contents of the simulated response information such as the type of the sheet passing sensor that should detect the sheet and the timing of the detection are changed.

こうして、画像形成プログラムの模擬実行の完了時、キャッシュメモリー61Mには、後処理制御プログラムの含むワードのうち、印刷条件に適ったワードがロックダウンされる。その結果、キャッシュメモリー61Mにロックダウンさせるべきデータ量が最適化される。さらに、本実行におけるキャッシュヒット率が高いレベルで安定化するので、後処理制御において保証されるべき各タスクの最大実行時間を短縮し、後処理制御の応答精度をμ秒程度の高レベルに維持することが可能である。   In this way, when the simulation execution of the image forming program is completed, the words suitable for the printing conditions among the words included in the post-processing control program are locked down in the cache memory 61M. As a result, the amount of data to be locked down in the cache memory 61M is optimized. Furthermore, since the cache hit rate in this execution is stabilized at a high level, the maximum execution time of each task to be guaranteed in post-processing control is shortened, and the response accuracy of post-processing control is maintained at a high level of about microseconds. Is possible.

本発明は画像形成装置に関し、上記のとおり、主制御部60が画像形成プログラムの本実行に先立ってそのプログラムを模擬実行し、そのプログラムのうち印刷条件に適った部分をキャッシュメモリー61Mにロックダウンする。このように、本発明は明らかに産業上利用可能である。   The present invention relates to an image forming apparatus, and as described above, the main control unit 60 simulates and executes the program prior to the main execution of the image forming program, and locks down a portion of the program that meets the printing conditions in the cache memory 61M. To do. Thus, the present invention is clearly industrially applicable.

100 MFP
130 プリンター
10 給送部
11 給紙カセット
12P、12F、12R 給送ローラー群
13 縦送ローラー
14 タイミングローラー
20 作像部
21Y、21M、21C、21K 感光体ユニット
22Y、22M、22C、22K 1次転写ローラー
23 中間転写ベルト
23R 中間転写ベルトの駆動ローラー
23L 中間転写ベルトの従動ローラー
25Y、25M、25C、25K 感光体ドラム
24 2次転写ローラー
26 露光部
30 定着部
31 定着ローラー
32 加圧ローラー
40 排紙部
41 切換爪
42 排紙口
43 排紙ローラー
44 反転口
45 反転ローラー
46 排紙トレイ
47 反転トレイ
50 操作部
51 操作パネル
60 主制御部
61 CPU
61C コア
61M キャッシュメモリー
611 キャッシュコントローラー
612 メモリーアレイ
62 メインメモリー
1FS、2FS 給紙センサー
CS 縦送センサー
TS タイミングセンサー
ES 排紙センサー
1RS、2RS 通紙センサー
100 MFP
130 Printer 10 Feeding unit 11 Feed cassette 12P, 12F, 12R Feeding roller group 13 Vertical feeding roller 14 Timing roller 20 Image forming unit 21Y, 21M, 21C, 21K Photosensitive unit 22Y, 22M, 22C, 22K Primary transfer Roller 23 Intermediate transfer belt 23R Intermediate transfer belt drive roller 23L Intermediate transfer belt driven roller 25Y, 25M, 25C, 25K Photosensitive drum 24 Secondary transfer roller 26 Exposure unit 30 Fixing unit 31 Fixing roller 32 Pressure roller 40 Paper discharge Portion 41 Switching claw 42 Paper discharge port 43 Paper discharge roller 44 Reversing port 45 Reversing roller 46 Paper discharge tray 47 Reverse tray 50 Operation unit 51 Operation panel 60 Main control unit 61 CPU
61C Core 61M Cache memory 611 Cache controller 612 Memory array 62 Main memory 1FS, 2FS Paper feed sensor CS Vertical feed sensor TS Timing sensor ES Paper discharge sensor 1RS, 2RS Paper feed sensor

Claims (10)

リアルタイム性が要求される画像形成プログラムと、必ずしもリアルタイム性が要求されない他のプログラムとの実行に1つのキャッシュメモリーを共用する画像形成装置であって、
前記画像形成プログラムを模擬実行し、当該模擬実行の完了後に前記画像形成プログラムを本実行する実行手段と、
前記画像形成プログラムの模擬実行に先立ち、本実行の際に従うべき印刷条件を取得する条件取得手段と、
前記画像形成プログラムの模擬実行中、前記条件取得手段が取得した印刷条件に合わせて異なる命令とデータとを前記画像形成プログラムから前記実行手段に読み出させ、当該命令に従って前記実行手段から装置各部へ送信されるべき制御出力を遮断し、装置各部に設けられたセンサーから当該制御出力に応じて送出されるはずの検出信号を模擬的に、当該印刷条件に合わせて異なる態様で作成して前記実行手段へ渡す入出力模擬手段と、
前記画像形成プログラムの模擬実行の完了後、本実行に先立って前記キャッシュメモリーに、模擬実行中に記憶した命令とデータとをロックダウンさせるキャッシュロックダウン(CLD)手段と、
を備えた画像形成装置。
An image forming apparatus sharing one cache memory for execution of an image forming program that requires real-time processing and another program that does not necessarily require real-time processing,
An execution means for executing the image forming program in a simulated manner and executing the image forming program after the simulation execution is completed;
Prior to the simulation execution of the image forming program, condition acquisition means for acquiring the printing conditions to be followed during the main execution;
During simulation execution of the image forming program, different instructions and data are read from the image forming program according to the printing conditions acquired by the condition acquisition unit, and the execution unit is transferred from the execution unit to each part of the apparatus according to the instructions. The control output to be transmitted is cut off, and a detection signal that should be sent according to the control output from a sensor provided in each part of the apparatus is created in a different manner according to the printing conditions and executed Input / output simulation means to be passed to the means;
A cache lockdown (CLD) means for locking down instructions and data stored in the cache memory prior to the actual execution after the simulation execution of the image forming program is completed;
An image forming apparatus.
前記キャッシュメモリーに加えてメインメモリーとプロセッサーとを含む制御部と、
シートを搬送し、搬送中のシートの上に画像を形成する機構部と、
ユーザーまたは外部の電子機器からデータを受け付ける操作部と、
を更に備え、
前記メインメモリーは、前記画像形成プログラムと前記他のプログラムとを記憶し、
前記画像形成プログラムは、前記機構部を前記制御部に制御させるプログラムを含み、
前記他のプログラムは、前記操作部が前記条件取得手段として機能するように、前記操作部を前記制御部に制御させるプログラムを含み、
前記プロセッサーは、前記実行手段として機能すると共に、前記画像形成プログラムの模擬実行により前記入出力模擬手段と前記CLD手段としても機能する
ことを特徴とする請求項1に記載の画像形成装置。
A control unit including a main memory and a processor in addition to the cache memory;
A mechanism that conveys the sheet and forms an image on the sheet being conveyed;
An operation unit for receiving data from a user or an external electronic device;
Further comprising
The main memory stores the image forming program and the other program,
The image forming program includes a program that causes the control unit to control the mechanism unit,
The other program includes a program that causes the control unit to control the operation unit so that the operation unit functions as the condition acquisition unit.
The image forming apparatus according to claim 1, wherein the processor functions as the execution unit and also functions as the input / output simulation unit and the CLD unit by simulating execution of the image forming program.
前記入出力模擬手段は、前記画像形成プログラムの含む命令のうち前記機構部へのアクセス命令を前記実行手段にスキップさせることにより、当該アクセス命令に従って前記実行手段から前記機構部へ送信されるべき制御出力を遮断することを特徴とする請求項2に記載の画像形成装置。   The input / output simulation unit causes the execution unit to skip an access command to the mechanism unit among commands included in the image forming program, so that the control to be transmitted from the execution unit to the mechanism unit according to the access command. The image forming apparatus according to claim 2, wherein the output is cut off. 前記実行手段は、前記機構部のウォームアップ中、またはリカバリー中に、前記画像形成プログラムを模擬実行することを特徴とする請求項2または請求項3に記載の画像形成装置。   The image forming apparatus according to claim 2, wherein the execution unit simulates and executes the image forming program during warm-up or recovery of the mechanism unit. 前記条件取得手段が印刷条件を更新する度に、前記実行手段は前記画像形成プログラムを模擬実行することを特徴とする請求項2から請求項4までのいずれかに記載の画像形成装置。   5. The image forming apparatus according to claim 2, wherein the execution unit simulates and executes the image forming program every time the condition acquisition unit updates a printing condition. 前記条件取得手段が取得した印刷条件が示すシートの給紙場所または排紙場所に合わせて、前記入出力模擬手段は、模擬的に作成すべき検出信号の態様を変更することを特徴とする請求項1から請求項5までのいずれかに記載の画像形成装置。   The input / output simulation unit changes a mode of a detection signal to be generated in a simulated manner in accordance with a sheet feeding place or a sheet discharge place indicated by a printing condition acquired by the condition acquisition unit. The image forming apparatus according to any one of claims 1 to 5. 前記条件取得手段が取得した印刷条件が片面印刷と両面印刷とのいずれを示すかに応じて、前記入出力模擬手段は、模擬的に作成すべき検出信号の態様を変更することを特徴とする請求項1から請求項6までのいずれかに記載の画像形成装置。   The input / output simulation unit changes a mode of a detection signal to be simulated according to whether the printing condition acquired by the condition acquisition unit indicates single-sided printing or double-sided printing. The image forming apparatus according to claim 1. 前記条件取得手段が取得した印刷条件が示すシートのサイズ、紙種、または姿勢に合わせて、前記入出力模擬手段は、模擬的に作成すべき検出信号の態様を変更することを特徴とする請求項1から請求項7までのいずれかに記載の画像形成装置。   The input / output simulation unit changes a mode of a detection signal to be generated in a simulated manner in accordance with a sheet size, a paper type, or a posture indicated by a printing condition acquired by the condition acquisition unit. The image forming apparatus according to claim 1. 前記条件取得手段が取得した印刷条件がカラーモードとモノクロモードとのいずれを示すかに応じて、前記入出力模擬手段は、模擬的に作成すべき検出信号の態様を変更することを特徴とする請求項1から請求項8までのいずれかに記載の画像形成装置。   The input / output simulation unit changes a mode of a detection signal to be simulated according to whether the printing condition acquired by the condition acquisition unit indicates a color mode or a monochrome mode. The image forming apparatus according to claim 1. 後処理装置が外付けされているか否かに応じて、前記入出力模擬手段は、模擬的に作成すべき検出信号の態様を変更することを特徴とする請求項1から請求項9までのいずれかに記載の画像形成装置。   10. The input / output simulation unit changes a mode of a detection signal to be simulated in accordance with whether or not a post-processing device is externally attached. An image forming apparatus according to claim 1.
JP2016162681A 2016-08-23 2016-08-23 Image forming device Active JP6750396B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016162681A JP6750396B2 (en) 2016-08-23 2016-08-23 Image forming device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016162681A JP6750396B2 (en) 2016-08-23 2016-08-23 Image forming device

Publications (2)

Publication Number Publication Date
JP2018030267A true JP2018030267A (en) 2018-03-01
JP6750396B2 JP6750396B2 (en) 2020-09-02

Family

ID=61304222

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016162681A Active JP6750396B2 (en) 2016-08-23 2016-08-23 Image forming device

Country Status (1)

Country Link
JP (1) JP6750396B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111275675A (en) * 2020-01-17 2020-06-12 佛山高明龙悦包装有限公司 Packaging film quality inspection machine and control method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04239444A (en) * 1990-06-01 1992-08-27 Dowbrands Inc Dispenser container with tear strip equipped with terminal tab
US6044478A (en) * 1997-05-30 2000-03-28 National Semiconductor Corporation Cache with finely granular locked-down regions
JP2010226283A (en) * 2009-03-23 2010-10-07 Konica Minolta Business Technologies Inc Information processing apparatus
JP2018013587A (en) * 2016-07-20 2018-01-25 コニカミノルタ株式会社 Image forming apparatus
JP6668966B2 (en) * 2016-06-16 2020-03-18 コニカミノルタ株式会社 Image forming device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04239444A (en) * 1990-06-01 1992-08-27 Dowbrands Inc Dispenser container with tear strip equipped with terminal tab
US6044478A (en) * 1997-05-30 2000-03-28 National Semiconductor Corporation Cache with finely granular locked-down regions
JP2010226283A (en) * 2009-03-23 2010-10-07 Konica Minolta Business Technologies Inc Information processing apparatus
JP6668966B2 (en) * 2016-06-16 2020-03-18 コニカミノルタ株式会社 Image forming device
JP2018013587A (en) * 2016-07-20 2018-01-25 コニカミノルタ株式会社 Image forming apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111275675A (en) * 2020-01-17 2020-06-12 佛山高明龙悦包装有限公司 Packaging film quality inspection machine and control method thereof

Also Published As

Publication number Publication date
JP6750396B2 (en) 2020-09-02

Similar Documents

Publication Publication Date Title
CN105093892B (en) Image forming apparatus
JP6264310B2 (en) Image forming sheet supply unit selection method, image forming apparatus, and information processing apparatus
JP4574441B2 (en) Image forming apparatus and control method thereof
JP6750396B2 (en) Image forming device
US10788782B2 (en) Image forming apparatus locks down storage area of cache memory stores portion of image forming program for executing real-time image forming process
US8630555B2 (en) Printing apparatus and control method for printing apparatus
JP2008125247A (en) Drive controller of a plurality of motors and image forming apparatus
JP4545496B2 (en) Electrical equipment
JP7102166B2 (en) Information processing equipment, control methods and programs for information processing equipment
JP6668966B2 (en) Image forming device
JP2005017395A (en) Image forming apparatus
US10754293B1 (en) Image forming apparatus having heater, temperature sensor and controller which disables print suspend operation
JP5459473B2 (en) Paper feeding device and image forming apparatus
JP5589774B2 (en) Image forming apparatus and image forming program
JP2010198443A (en) Image forming apparatus
JPH11143148A (en) Image processor and image processing method
CN111638633A (en) Image forming apparatus with a toner supply device
JP5541097B2 (en) Image forming apparatus and image forming program
JP2000039801A (en) Image forming device
JP2009025990A (en) Management method of storage device, control method of consumables supply arrangement, consumables supply arrangement, and computer program
JP2006217028A (en) Image forming apparatus
JP2006068917A (en) Information storage medium
JP2004020963A (en) Image forming device and its control method
JP2000280543A (en) Imaging apparatus
JP2006295241A (en) Image forming apparatus and its control program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190521

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200305

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A132

Effective date: 20200317

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200515

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200602

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200703

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200727

R150 Certificate of patent or registration of utility model

Ref document number: 6750396

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150