JP2014125318A - Printer - Google Patents

Printer Download PDF

Info

Publication number
JP2014125318A
JP2014125318A JP2012283732A JP2012283732A JP2014125318A JP 2014125318 A JP2014125318 A JP 2014125318A JP 2012283732 A JP2012283732 A JP 2012283732A JP 2012283732 A JP2012283732 A JP 2012283732A JP 2014125318 A JP2014125318 A JP 2014125318A
Authority
JP
Japan
Prior art keywords
paper
tray
paper feed
trays
closing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2012283732A
Other languages
Japanese (ja)
Inventor
Fei Cheng
飛 程
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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2012283732A priority Critical patent/JP2014125318A/en
Publication of JP2014125318A publication Critical patent/JP2014125318A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a printer having a plurality of paper feeding portions, which provides a technique that can expect paper feeding from an appropriate paper feeding tray while suppressing time and labor of a user.SOLUTION: A printer 100 changes the order of priority for opened/closed paper feeding trays 51-53 to the highest priority on condition that open/close sensors 61-63 detect the opening and closing of the paper feeding trays 51-53, and further determines a paper feeding execution tray for executing paper feeding according to the priority. Then, size of the paper fed from the paper feeding execution tray is obtained in a conveyance path 11 by a paper sensor 77. Thus, the size of the paper fed from the paper feeding execution tray is obtained. Further, the detected size of the paper is stored in tray information 35 as the paper size of the paper feeding execution tray.

Description

本発明は,複数の給紙トレイを備える印刷装置に関する。   The present invention relates to a printing apparatus including a plurality of paper feed trays.

従来から,用紙を収容する給紙トレイを複数備える印刷装置が知られている。このような印刷装置の技術としては,例えば,給紙トレイに優先順位を設け,収容されている用紙サイズが同じ給紙トレイが複数あった場合に,優先順位に従って決定した給紙トレイから用紙を搬入する技術が知られている。   2. Description of the Related Art Conventionally, printing apparatuses including a plurality of paper feed trays that store paper are known. As a technology of such a printing apparatus, for example, when priority is given to the paper feed trays and there are a plurality of paper feed trays having the same size, the paper is fed from the paper feed trays determined according to the priority. The technology to carry in is known.

また,印刷装置が給紙トレイに収容されている用紙のサイズを認識する技術としては,例えば特許文献1に,複数の用紙カセット(給紙トレイ)を有する画像記録装置であって,ある用紙カセットが開放された際,ユーザに対して用紙サイズの入力を促すメッセージを表示する技術が開示されている。   Further, as a technology for recognizing the size of paper stored in a paper feed tray by a printing apparatus, for example, Patent Document 1 discloses an image recording apparatus having a plurality of paper cassettes (paper feed trays). A technique for displaying a message prompting the user to input a paper size when the is opened is disclosed.

特開2003−107964号公報JP 2003-107964 A

しかしながら,前記した従来の技術には,次のような問題があった。すなわち,特許文献1に開示されている技術のように,給紙トレイの開閉の度に給紙トレイに対する設定を促されると,ユーザにとって煩わしい。また,メッセージを表示したとしても,ユーザが必ず用紙サイズを設定するとは限らない。用紙サイズが未設定の状態が継続すると,不適切な給紙トレイが選択される可能性が高まる。   However, the conventional technique described above has the following problems. That is, as in the technique disclosed in Patent Document 1, if the user is prompted to set the paper feed tray each time the paper feed tray is opened or closed, it is troublesome for the user. Even if a message is displayed, the user does not always set the paper size. If the paper size is not set, the possibility of selecting an inappropriate paper feed tray increases.

本発明は,前記した従来の技術が有する問題点を解決するためになされたものである。すなわちその課題とするところは,複数の給紙部を有する印刷装置であって,ユーザの手間を抑えつつ,適切な給紙トレイからの給紙が期待できる技術を提供することにある。   The present invention has been made to solve the above-described problems of the prior art. That is, an object of the present invention is to provide a technology that is a printing apparatus having a plurality of paper feeding units and that can expect paper feeding from an appropriate paper feeding tray while reducing the labor of the user.

この課題の解決を目的としてなされた印刷装置は,用紙を収容する複数の給紙トレイと,前記各給紙トレイの開閉を検知する開閉検知部と,前記各給紙トレイから給紙された用紙の搬送路である用紙搬送路と,前記用紙搬送路を通って搬送された用紙に,画像を印刷する印刷部と,給紙を実行する前記各給紙トレイの優先順位を記憶する順位記憶部と,前記各給紙トレイに設定される用紙のサイズを記憶するサイズ記憶部と,前記各給紙トレイから前記用紙搬送路に給紙された用紙のサイズを取得する取得部と,制御部とを備え,前記制御部は,前記優先順位に従って,給紙を実行する前記給紙トレイである実行トレイを決定する決定処理と,前記実行トレイから給紙された用紙の,前記取得部にて取得されたサイズを,前記実行トレイに設定される用紙のサイズとして前記サイズ記憶部に記憶する設定処理と,前記開閉検知部によって前記給紙トレイの開閉が検知されたことを条件として,検知された前記給紙トレイである特定トレイを前記優先順位の最上位に変更する変更処理とを実行することを特徴としている。   In order to solve this problem, a printing apparatus includes a plurality of paper feed trays that store paper, an open / close detection unit that detects opening and closing of each of the paper feed trays, and paper fed from each of the paper feed trays. A sheet conveyance path, a printing unit that prints an image on the sheet conveyed through the sheet conveyance path, and a rank storage unit that stores the priority order of each of the sheet feeding trays that perform sheet feeding A size storage unit that stores the size of paper set in each of the paper feed trays, an acquisition unit that acquires the size of paper fed from each of the paper feed trays to the paper transport path, and a control unit; The control unit is configured to determine, according to the priority order, a determination process for determining an execution tray that is the paper feed tray for performing paper feeding, and acquisition of the paper fed from the execution tray by the acquisition unit Set the specified size in the execution tray. The specific tray which is the detected paper feed tray is set on the condition that the size storage unit stores the size of the paper to be processed and the opening / closing detection unit detects the opening / closing of the paper feed tray. It is characterized by executing change processing for changing to the highest priority.

本明細書に開示される印刷装置は,開閉検知部によって給紙トレイの開閉が検知されたことを条件として,開閉が検知された給紙トレイの優先順位を最上位に変更する。そして,優先順位に従って,給紙を実行する実行トレイを決定する。さらに,実行トレイから給紙された用紙のサイズが,取得部にて取得され,取得されたサイズが,実行トレイに設定される用紙のサイズとして記憶部に記憶される。なお,優先順位は,ユーザによって手動で順位変更可能であってもよいし,ユーザによる順位変更が不可能であってもよい。また,給紙トレイごとの用紙のサイズの設定は,ユーザによって手動で設定可能であってもよいし,ユーザによる設定が不可能であってもよい。また,変更処理の実行タイミングは,給紙トレイの開閉が検知されたことを条件とすればよく,例えば,給紙トレイの開閉検知後直ぐに実行してもよいし,検知後であって最初の印刷の前に実行してもよい。   The printing apparatus disclosed in the present specification changes the priority order of the paper feed trays detected to be opened / closed on the condition that the opening / closing detector detects the opening / closing of the paper feed tray. Then, the execution tray for executing paper feeding is determined according to the priority order. Further, the size of the paper fed from the execution tray is acquired by the acquisition unit, and the acquired size is stored in the storage unit as the size of the paper set in the execution tray. The priority may be manually changeable by the user, or may not be changeable by the user. In addition, the setting of the paper size for each paper feed tray may be manually set by the user, or may not be set by the user. The execution timing of the change process may be on condition that the opening / closing of the paper feed tray is detected. For example, the change processing may be executed immediately after the detection of the opening / closing of the paper feed tray, It may be executed before printing.

すなわち,本明細書に開示される印刷装置では,給紙トレイが開閉された場合に,その給紙トレイを自動的に最優先に変更する。従って,早期にその給紙トレイから用紙が給紙されるので,その給紙トレイに実際に収容されている用紙のサイズを早期に取得できる。さらに,取得された用紙のサイズにより,その給紙トレイに設定される用紙のサイズを更新できる。つまり,ユーザによる設定操作が無くても,開閉された給紙トレイのサイズが早期に更新される。その結果として,その後の印刷では,適切な給紙トレイの選択が期待できる。   That is, in the printing apparatus disclosed in this specification, when the paper feed tray is opened and closed, the paper feed tray is automatically changed to the highest priority. Accordingly, since paper is fed from the paper feed tray at an early stage, the size of the paper actually stored in the paper feed tray can be obtained early. Furthermore, the paper size set in the paper feed tray can be updated according to the obtained paper size. That is, even if there is no setting operation by the user, the size of the opened / closed paper feed tray is updated early. As a result, selection of an appropriate paper feed tray can be expected for subsequent printing.

また,前記制御部は,前記変更処理によって最上位に変更された前記特定トレイから用紙が給紙された後,前記特定トレイの前記優先順位を変更前の順位に変更する後変更処理を実行するとよい。このようにすれば,開閉された給紙トレイからの給紙によってその給紙トレイのサイズが更新された後は,優先順位が元に戻される。用紙サイズの取得後は,優先順位を元に戻す方が,ユーザの意図に合う可能性が高いので好ましい。なお,変更前の順位に戻すタイミングは,1枚の用紙の搬送完了後であってもよいし,1つのジョブの実行完了後であってもよい。   The control unit may execute post-change processing for changing the priority order of the specific tray to a pre-change order after paper is fed from the specific tray that has been changed to the top by the change processing. Good. In this way, after the size of the paper feed tray is updated by paper feed from the opened and closed paper feed trays, the priority order is restored. After obtaining the paper size, it is preferable to restore the priority order because it is more likely to match the user's intention. Note that the timing of returning to the order before the change may be after completion of conveyance of one sheet or after completion of execution of one job.

さらに,前記制御部は,前記開閉検知部が前記給紙トレイの開閉を検知不能な状態から検知可能な状態に変化したことを条件として,当該開閉検知部の検知対象となる前記給紙トレイを前記優先順位の最上位に変更する不能復帰変更処理を実行するとよい。開閉検知部が検知不能状態となっている期間中は,検知対象の給紙トレイが開閉されたか否かを認識できない。つまり,認識できない間に給紙トレイが開閉された可能性があるため,その給紙トレイを優先順位の最上位に変更して,用紙サイズを取得することが望ましい。なお,検知不能状態とは,例えば,電源オフ状態,スリープモード,故障状態が該当する。   Further, the control unit changes the paper feed tray to be detected by the open / close detection unit on the condition that the open / close detection unit has changed from a state in which the open / close of the paper feed tray cannot be detected to a state in which the open / close detection can be detected. It is preferable to execute an impossible return changing process for changing to the highest priority. During the period when the open / close detection unit is in the undetectable state, it is not possible to recognize whether the paper feed tray to be detected has been opened or closed. In other words, since there is a possibility that the paper feed tray has been opened and closed while it cannot be recognized, it is desirable to change the paper feed tray to the highest priority order and acquire the paper size. The undetectable state corresponds to, for example, a power-off state, a sleep mode, and a failure state.

また,本明細書に開示される印刷装置は,前記各給紙トレイ内に用紙があるか否かを検知する用紙検知部を備え,前記変更処理では,前記開閉検知部によって開閉が検知された前記給紙トレイについて前記用紙検知部が用紙無しを検知している場合,当該給紙トレイの前記優先順位を変更しないとよい。用紙無しの状態で給紙トレイが開閉された場合には,同じサイズの用紙が収容される可能性が高い。そのため,優先順位を変更して用紙のサイズを更新しなくても不適切な用紙が給紙される可能性は低く,優先順位を変更せず,制御の複雑化を回避する方が好ましい。   Further, the printing apparatus disclosed in the present specification includes a paper detection unit that detects whether or not there is paper in each of the paper feed trays. In the change process, the opening / closing is detected by the open / close detection unit. When the paper detection unit detects no paper for the paper feed tray, the priority order of the paper feed trays should not be changed. If the paper feed tray is opened and closed with no paper, there is a high possibility that paper of the same size will be stored. For this reason, it is unlikely that inappropriate paper is fed without changing the priority order and updating the paper size, and it is preferable to avoid changing the priority order and avoid complicated control.

また,本明細書に開示される印刷装置は,前記用紙搬送路で用紙ジャムが発生したか否かを検知するジャム検知部を備え,前記変更処理では,前記ジャム検知部によって用紙ジャムが検知されている期間中に,前記開閉検知部によって前記給紙トレイの開閉が検知された場合,当該給紙トレイの前記優先順位を変更しないとよい。用紙ジャムが発生している状態で給紙トレイが開閉された場合には,異なるサイズの用紙が収容される可能性は低い。そのため,優先順位を変更して用紙のサイズを取得しなくても不適切な用紙が給紙される可能性は低く,優先順位を変更せず,制御の複雑化を回避する方が好ましい。   The printing apparatus disclosed in the present specification further includes a jam detection unit that detects whether or not a paper jam has occurred in the paper conveyance path. In the change process, the jam detection unit detects the paper jam. If the opening / closing detection unit detects the opening / closing of the sheet feeding tray during the period, the priority order of the sheet feeding tray may not be changed. When the paper feed tray is opened and closed in a state where a paper jam has occurred, it is unlikely that paper of different sizes will be stored. For this reason, it is unlikely that inappropriate paper is fed without changing the priority order and acquiring the paper size, and it is preferable not to change the priority order and avoid complicated control.

さらに,前記制御部は,前記印刷部での印刷制御の開始を契機に前記変更処理を実行し,前記変更処理では,前記開閉検知部にて複数の前記給紙トレイの開閉が検知されている場合,前記複数の給紙トレイの前記優先順位を前記順位記憶部に記憶されている前記優先順位に従って最上位から順になるように変更するとよい。印刷制御の開始を契機に変更処理を実行することにより,給紙トレイの開閉順に関わらず,開閉された複数の給紙トレイの優先順位を纏めて変更する。例えば,開閉検知を契機に変更処理を実行した場合と異なり,優先順位が近時の開閉順とならないので,ユーザの意図と合う順位となる可能性が高い。なお,基準となる優先順位は,初期の優先順位であってもよいし,印刷制御の開始時の優先順位であってもよい。   Further, the control unit executes the change process in response to the start of print control in the printing unit, and in the change process, the opening / closing detection unit detects opening / closing of the plurality of paper feed trays. In this case, the priorities of the plurality of paper feed trays may be changed so as to be in order from the highest order according to the priorities stored in the order storage unit. By executing the change process at the start of printing control, the priority order of the opened and closed paper feed trays is collectively changed regardless of the order of opening and closing of the paper feed trays. For example, unlike when changing processing is triggered by opening / closing detection, the priority order is not the latest opening / closing order, so it is highly likely that the order matches the user's intention. The reference priority order may be an initial priority order or a priority order at the start of print control.

また,本明細書に開示される印刷装置は,前記給紙トレイの給紙頻度に関する情報である頻度情報を記憶する頻度記憶部を備え,前記変更処理では,前記開閉検知部にて複数の前記給紙トレイの開閉が検知されている場合,前記複数の給紙トレイの前記優先順位を,前記頻度情報に基づいて,給紙頻度が高いほど上位に変更するとよい。給紙頻度が高い給紙トレイを優先する方が,実情に適した優先順位となることが期待できる。なお,頻度情報としては,例えば,給紙回数,ジョブ単位の実行回数,直近の利用時間が該当する。   The printing apparatus disclosed in the present specification further includes a frequency storage unit that stores frequency information that is information related to a paper feed frequency of the paper feed tray. In the change process, the open / close detection unit includes a plurality of the opening / closing detection units. When opening / closing of the sheet feeding tray is detected, the priority order of the plurality of sheet feeding trays may be changed to higher rank as the sheet feeding frequency is higher based on the frequency information. It can be expected that priority is given to a paper feed tray having a high paper feed frequency in accordance with the actual situation. The frequency information includes, for example, the number of paper feeds, the number of executions for each job, and the most recent usage time.

また,本明細書に開示される印刷装置は,前記給紙トレイの給紙頻度に関する情報である頻度情報を記憶する頻度記憶部を備え,前記変更処理では,前記頻度情報に基づいて,給紙頻度が閾値以下の前記給紙トレイについては前記優先順位を変更しないとよい。給紙頻度が低い給紙トレイについては,早期に用紙のサイズを認識する必要性が低い。そのため,優先順位を変更せず,制御の複雑化を回避する方が好ましい。   The printing apparatus disclosed in the present specification further includes a frequency storage unit that stores frequency information that is information related to the paper feed frequency of the paper feed tray. In the change process, a paper feed is performed based on the frequency information. It is preferable that the priority order is not changed for the paper feed tray whose frequency is equal to or lower than the threshold value. For a paper feed tray with a low paper feed frequency, there is little need to recognize the paper size at an early stage. Therefore, it is preferable not to change the priority order and to avoid complication of control.

また,前記決定処理では,印刷データに設定されているサイズと同じサイズが設定されている前記給紙トレイの中から,前記優先順位に従って前記実行トレイを決定するとよい。このようにすれば,印刷データに設定されているサイズと同じサイズが設定されている給紙トレイを実行トレイにする。従って,印刷データと合致しない用紙への印刷を回避でき,無駄な印刷の低減が期待できる。   In the determination process, the execution tray may be determined in accordance with the priority order from the paper feed trays having the same size as the size set in the print data. In this way, a paper feed tray having the same size as that set in the print data is set as the execution tray. Therefore, printing on paper that does not match the print data can be avoided, and wasteful printing can be expected to be reduced.

本発明によれば,複数の給紙部を有する印刷装置であって,ユーザの手間を抑えつつ,適切な給紙トレイからの給紙が期待できる技術が実現される。   According to the present invention, it is a printing apparatus having a plurality of paper feed units, and a technology that can expect paper feed from an appropriate paper feed tray while reducing the effort of the user is realized.

実施の形態に係るプリンタの構成を示す説明図である。FIG. 2 is an explanatory diagram illustrating a configuration of a printer according to an embodiment. プリンタの電気的構成を示すブロック図である。FIG. 2 is a block diagram illustrating an electrical configuration of a printer. トレイ情報の例を示す説明図である。It is explanatory drawing which shows the example of tray information. 第1の形態の印刷処理の手順を示すフローチャートである。6 is a flowchart illustrating a procedure of printing processing according to a first embodiment. 順位変更処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of an order change process. トレイ情報の例を示す説明図である。It is explanatory drawing which shows the example of tray information. トレイ情報の例を示す説明図である。It is explanatory drawing which shows the example of tray information. 実行トレイ決定処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of an execution tray determination process. 後変更処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of a post-change process. 第2の形態の印刷処理の手順を示すフローチャートである。10 is a flowchart illustrating a procedure of printing processing according to a second embodiment. 印刷時実行トレイ決定処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the execution tray determination process at the time of printing.

以下,本発明を具体化した実施の形態について,添付図面を参照しつつ詳細に説明する。本形態は,画像形成機能を備えたプリンタに本発明を適用したものである。   DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments embodying the present invention will be described below in detail with reference to the accompanying drawings. In this embodiment, the present invention is applied to a printer having an image forming function.

[プリンタの構成]
本形態のプリンタ100は,図1に示すように,用紙に画像を印刷する印刷部10を内部に備え,上面に操作パネル40を備えている。印刷部10は,周知の電子写真方式によって用紙にトナー像を形成するプロセス部5と,用紙をプロセス部5に沿って搬送する搬送ベルト7と,形成されたトナー像を用紙に定着させる定着部8とを備えている。操作パネル40は,液晶ディスプレイと,スタートキー,ストップキー,テンキー等から構成されるボタン群とを備えている。この操作パネル40により動作状況の表示やユーザによる入力操作が可能になっている。
[Printer configuration]
As shown in FIG. 1, the printer 100 according to this embodiment includes a printing unit 10 that prints an image on a sheet, and an operation panel 40 on an upper surface. The printing unit 10 includes a process unit 5 that forms a toner image on a sheet by a known electrophotographic method, a conveyance belt 7 that conveys the sheet along the process unit 5, and a fixing unit that fixes the formed toner image on the sheet. 8 and. The operation panel 40 includes a liquid crystal display and a group of buttons including a start key, a stop key, a numeric keypad, and the like. This operation panel 40 enables display of operation status and input operation by the user.

プリンタ100の下部には,画像の形成に供される用紙を収容する給紙トレイが複数備えられている。本形態のプリンタ100は,給紙トレイとして,トレイA51,トレイB52,トレイC53の3つを有している。トレイA51,トレイB52,トレイC53は,それぞれ個別に,開閉可能である。なお,プリンタ100は,トレイA51,トレイB52,トレイC53の各給紙トレイに収容されている用紙のサイズを直接検知することはできない。トレイA51,トレイB52,トレイC53は,複数の給紙トレイの一例である。   A plurality of paper feed trays are provided below the printer 100 to store paper used for image formation. The printer 100 according to this embodiment has three trays A51, B52, and C53 as paper feed trays. The tray A51, tray B52, and tray C53 can be opened and closed individually. Note that the printer 100 cannot directly detect the size of the sheets stored in the respective trays A51, B52, and C53. The tray A51, the tray B52, and the tray C53 are an example of a plurality of paper feed trays.

各給紙トレイ51〜53には,それぞれ,収容されている用紙を搬送路11に引き出す給紙ローラ71,72,73が設けられている。印刷部10にて印刷に使用される用紙は,トレイA51,トレイB52,トレイC53のいずれかから給紙され,搬送路11を通ってプロセス部5に搬送される。図1中では,搬送路11を,一点鎖線で示している。搬送路11は,用紙搬送路の一例である。   Each of the paper feed trays 51 to 53 is provided with paper feed rollers 71, 72, and 73 that draw out the stored paper to the transport path 11. The paper used for printing in the printing unit 10 is fed from one of the tray A 51, the tray B 52, and the tray C 53, and is conveyed to the process unit 5 through the conveyance path 11. In FIG. 1, the conveyance path 11 is indicated by a one-dot chain line. The conveyance path 11 is an example of a paper conveyance path.

また,搬送路11中には,用紙を搬送する搬送ローラ74,75と,検出位置での用紙の有無を検知する用紙センサ77とが設けられている。用紙センサ77による用紙の検出位置は,用紙の搬送方向について,全ての給紙ローラ71,72,73より下流側であり,かつ,印刷部10のプロセス部5より上流側である。そして,プリンタ100は,用紙センサ77の検出位置での用紙搬送速度と,用紙センサ77の検出結果とから,搬送中の用紙の搬送方向のサイズを取得することができる。用紙センサ77は,取得部の一例である。   Further, in the transport path 11, transport rollers 74 and 75 for transporting paper and a paper sensor 77 for detecting the presence or absence of paper at the detection position are provided. The detection position of the paper by the paper sensor 77 is downstream of all the paper feed rollers 71, 72, 73 and upstream of the process unit 5 of the printing unit 10 in the paper transport direction. Then, the printer 100 can acquire the size in the transport direction of the paper being transported from the paper transport speed at the detection position of the paper sensor 77 and the detection result of the paper sensor 77. The paper sensor 77 is an example of an acquisition unit.

[プリンタの電気的構成]
続いて,プリンタ100の電気的構成について説明する。プリンタ100は,図2に示すように,CPU31と,ROM32と,RAM33と,不揮発性記憶部34とを備えている。プリンタ100は,さらに,印刷部10と,操作パネル40と,ネットワークインターフェース37と,用紙センサ77とを備え,CPU31によって制御される。ネットワークインターフェース37は,LAN等に接続される。
[Electrical configuration of printer]
Next, the electrical configuration of the printer 100 will be described. As shown in FIG. 2, the printer 100 includes a CPU 31, a ROM 32, a RAM 33, and a nonvolatile storage unit 34. The printer 100 further includes a printing unit 10, an operation panel 40, a network interface 37, and a paper sensor 77, and is controlled by the CPU 31. The network interface 37 is connected to a LAN or the like.

プリンタ100は,さらに,各種の検知部を備えている。各給紙トレイ51〜53には,それぞれ,開状態か閉状態かを検知する開閉センサと,給紙トレイ51〜53内に用紙があるか否かを検知する用紙有無センサとが備えられている。給紙トレイの開状態とは,その給紙トレイが自装置から引き出されている状態である。プリンタ100は,開状態の給紙トレイから用紙を給紙することはできない。また,閉状態とは,その給紙トレイが自装置に取り付けられている状態である。   The printer 100 further includes various detection units. Each of the paper feed trays 51 to 53 is provided with an open / close sensor for detecting whether the paper is in an open state or a closed state, and a paper presence / absence sensor for detecting whether or not there is paper in the paper feed trays 51 to 53. Yes. The open state of the paper feed tray is a state in which the paper feed tray is pulled out from the own apparatus. The printer 100 cannot feed paper from the open paper feed tray. The closed state is a state in which the paper feed tray is attached to the apparatus.

具体的に,プリンタ100は,トレイA51の開閉を検知する開閉センサ61と,トレイB52の開閉を検知する開閉センサ62と,トレイC53の開閉を検知する開閉センサ63とを有している。さらに,プリンタ100は,トレイA51の用紙の有無を検知する用紙有無センサ65と,トレイB52の用紙の有無を検知する用紙有無センサ66と,トレイC53の用紙の有無を検知する用紙有無センサ67とを有している。   Specifically, the printer 100 includes an open / close sensor 61 that detects opening / closing of the tray A51, an open / close sensor 62 that detects opening / closing of the tray B52, and an open / close sensor 63 that detects opening / closing of the tray C53. Further, the printer 100 includes a paper presence sensor 65 that detects the presence of paper in the tray A51, a paper presence sensor 66 that detects the presence of paper in the tray B52, and a paper presence sensor 67 that detects the presence of paper in the tray C53. have.

プリンタ100は,開閉センサ61〜63が,検知対象の給紙トレイ51〜53の閉状態を検知している状態から,開状態を検知し,再び閉状態を検知したとき,その給紙トレイの開閉を検知する。以下では,開閉が検知された給紙トレイを,開閉したトレイとする。開閉センサ61,開閉センサ62,開閉センサ63は,それぞれ開閉検知部の一例である。用紙有無センサ65,用紙有無センサ66,用紙有無センサ67は,それぞれ用紙検知部の一例である。   The printer 100 detects the open state from the state in which the open / close sensors 61 to 63 detect the closed state of the paper feed trays 51 to 53 to be detected, and when the open state is detected again, the printer 100 Detects opening and closing. Hereinafter, the paper feed tray whose opening / closing is detected is referred to as an opened / closed tray. The open / close sensor 61, the open / close sensor 62, and the open / close sensor 63 are examples of an open / close detection unit. Each of the paper presence sensor 65, the paper presence sensor 66, and the paper presence sensor 67 is an example of a paper detection unit.

さらに,プリンタ100は,搬送路11中のどこかで用紙がジャム状態となったことを検出するジャム検知部69を有している。ジャム検知部69は,複数の箇所の用紙センサ等の協働によって,用紙の搬送不良を検知するものでもよい。例えば,各給紙トレイ51〜53からの給紙を開始してから,用紙センサ77にて用紙を検出するまでの時間に基づいて,用紙のジャムを検出する場合には,用紙センサ77がジャム検知部69を兼ねる。   Further, the printer 100 includes a jam detection unit 69 that detects that the paper is jammed somewhere in the conveyance path 11. The jam detection unit 69 may detect a paper conveyance failure by cooperation of paper sensors or the like at a plurality of locations. For example, when paper jam is detected based on the time from the start of paper feeding from each of the paper feed trays 51 to 53 until the paper sensor 77 detects the paper, the paper sensor 77 detects the jam. It also serves as the detection unit 69.

ROM32には,プリンタ100を制御するための各種制御プログラムや各種設定,初期値等が記憶されている。RAM33は,各種制御プログラムが読み出される作業領域として,あるいは,データを一時的に記憶する記憶領域として利用される。CPU31は,ROM32から読み出した制御プログラムに従って,その処理結果をRAM33または不揮発性記憶部34に記憶させながら,プリンタ100の各構成要素を制御する。CPU31は,制御部の一例である。   The ROM 32 stores various control programs for controlling the printer 100, various settings, initial values, and the like. The RAM 33 is used as a work area from which various control programs are read, or as a storage area for temporarily storing data. The CPU 31 controls each component of the printer 100 while storing the processing result in the RAM 33 or the nonvolatile storage unit 34 in accordance with the control program read from the ROM 32. The CPU 31 is an example of a control unit.

また,不揮発性記憶部34には,各給紙トレイ51〜53に関する情報を含むトレイ情報35が記憶される。トレイ情報35には,図3に示すように,給紙トレイごとに,優先順位,用紙サイズ,給紙頻度,開閉後優先順位,状態の情報が記憶されている。優先順位は,例えば,ユーザによって設定された給紙トレイの使用順位の情報であってもよいし,予めプリンタ100に設定された初期状態の順位であってもよい。プリンタ100は,印刷指示に給紙トレイが指示されていない場合には,優先順位の記憶内容に従って,各給紙トレイ51〜53から給紙する。   Further, the non-volatile storage unit 34 stores tray information 35 including information regarding each of the paper feed trays 51 to 53. As shown in FIG. 3, the tray information 35 stores priority order, paper size, paper feed frequency, priority after opening and closing, and status information for each paper feed tray. For example, the priority order may be information on the order of use of the paper feed trays set by the user, or may be the order of the initial state set in advance in the printer 100. The printer 100 feeds paper from each of the paper feed trays 51 to 53 according to the stored contents of the priority order when the paper feed tray is not designated in the print instruction.

用紙サイズは,各給紙トレイ51〜53に収容されている用紙のサイズの情報である。用紙サイズは,ユーザによって設定されることも,プリンタ100が用紙センサ77を用いて取得することもある。給紙頻度は,各給紙トレイ51〜53からの給紙を実行する頻度に関する頻度情報である。給紙頻度としては,例えば,給紙回数,ジョブ単位の利用回数,直近に給紙した給紙トレイから遡っての給紙順が該当する。図3の例では,頻度情報として,給紙頻度が予め決めた閾値より高いか低いかの情報を記憶している。   The paper size is information on the size of the paper stored in each of the paper feed trays 51 to 53. The paper size may be set by the user or may be acquired by the printer 100 using the paper sensor 77. The paper feed frequency is frequency information relating to the frequency of paper feed from each of the paper feed trays 51 to 53. Examples of the paper feed frequency include the number of paper feeds, the number of uses for each job, and the order of paper feed back from the most recent paper feed tray. In the example of FIG. 3, information on whether the paper feeding frequency is higher or lower than a predetermined threshold is stored as frequency information.

開閉後優先順位は,給紙トレイ51〜53の開閉が検知された後に優先順位に代えて使用される,一時的な順位の情報である。状態は,各給紙トレイ51〜53が開閉後であるか否かの情報である。なお,開閉後優先順位の初期状態での内容は,優先順位と同じとすればよい。開閉後優先順位と状態についての詳細は後述する。不揮発性記憶部34のトレイ情報35は,順位記憶部,サイズ記憶部,頻度記憶部の一例である。   The post-open / close priority is temporary order information used in place of the priority after the opening / closing of the paper feed trays 51 to 53 is detected. The status is information as to whether or not each of the paper feed trays 51 to 53 has been opened and closed. The contents in the initial state of the priority after opening and closing may be the same as the priority. Details of the priority and state after opening and closing will be described later. The tray information 35 of the nonvolatile storage unit 34 is an example of a rank storage unit, a size storage unit, and a frequency storage unit.

[印刷処理]
[第1の形態]
以下,プリンタ100による印刷動作を実現する処理の手順について,図4のフローチャートを参照しつつ説明する。まず,第1の形態の印刷処理について説明する。第1の形態の印刷処理には,給紙トレイであるトレイA51,トレイB52,トレイC53の少なくとも1つが開閉された場合に,その給紙トレイの開閉後優先順位を最上位に変更する処理が含まれる。
[Print processing]
[First embodiment]
Hereinafter, the procedure of the process for realizing the printing operation by the printer 100 will be described with reference to the flowchart of FIG. First, the printing process of the first embodiment will be described. In the printing process of the first embodiment, when at least one of tray A51, tray B52, and tray C53, which are paper feed trays, is opened / closed, the priority order after opening / closing the paper feed tray is changed to the highest order. included.

この印刷処理は,プリンタ100の主電源の入力,または,スリープモードからの復帰を契機にCPU31によって実行される。なお,スリープモードは,省電力のためにプリンタ100の一部への給電を停止した状態のことである。プリンタ100は,スリープモードでは,印刷不能であり,給紙トレイからの給紙を行わない。   This printing process is executed by the CPU 31 when the main power of the printer 100 is input or when the printer 100 returns from the sleep mode. The sleep mode is a state in which power supply to a part of the printer 100 is stopped for power saving. The printer 100 cannot print in the sleep mode and does not feed paper from the paper feed tray.

印刷処理では,まず,開閉センサ61〜63のうちの1つが検知不能状態から回復したか否かを判断する(S101)。検知不能状態とは,開閉センサ61〜63が給紙トレイ51〜53の開閉を検知できない状態のことである。例えば,プリンタ100のスリープモード中における開閉センサ61〜63が,検知不能状態に該当する。検知不能状態から回復した開閉センサ61〜63があると判断した場合は(S101:Yes),回復した開閉センサ61〜63の検知対象である給紙トレイ51〜53を対象トレイとして,順位変更処理を実行する(S102)。   In the printing process, first, it is determined whether one of the open / close sensors 61 to 63 has recovered from the undetectable state (S101). The undetectable state is a state in which the open / close sensors 61 to 63 cannot detect the open / close of the paper feed trays 51 to 53. For example, the open / close sensors 61 to 63 during the sleep mode of the printer 100 correspond to the undetectable state. If it is determined that there are the open / close sensors 61 to 63 recovered from the undetectable state (S101: Yes), the rank changing process is performed using the paper feed trays 51 to 53 that are the detection targets of the recovered open / close sensors 61 to 63 as target trays. Is executed (S102).

一方,検知不能状態から回復した開閉センサ61〜63がないと判断した場合は(S101:No),給紙トレイ51〜53のうちに,開閉センサ61〜63によって開閉が検知されたトレイがあるか否かを判断する(S103)。CPU31は,開閉したトレイがあると判断した場合は(S103:Yes),開閉したトレイを対象トレイとして,順位変更処理を実行する(S102)。   On the other hand, when it is determined that there are no open / close sensors 61 to 63 recovered from the undetectable state (S101: No), among the paper feed trays 51 to 53, there is a tray whose open / close is detected by the open / close sensors 61 to 63. Whether or not (S103). When the CPU 31 determines that there is an opened / closed tray (S103: Yes), the CPU 31 executes the order changing process using the opened / closed tray as the target tray (S102).

続いて,S102にて実行される順位変更処理について,図5のフローチャートを参照して説明する。順位変更処理は,検知不能状態から回復した開閉センサ,または,開閉を検知した開閉センサがあった場合に,その開閉センサの検知対象である対象トレイの開閉後優先順位を最上位に変更する処理である。本処理は,対象トレイが1つの場合の処理である。   Next, the order changing process executed in S102 will be described with reference to the flowchart of FIG. The order change process is a process for changing the priority order after opening / closing of the target tray, which is the detection target of the open / close sensor, to the top when there is an open / close sensor that has recovered from the undetectable state or has detected open / close. It is. This processing is processing when there is one target tray.

順位変更処理では,まず,プリンタ100が用紙ジャム状態であったか否かを判断する(S201)。開閉センサ61〜63によって開閉が検知された時に,ジャム検知部69によって用紙ジャムが検知されていた場合は,用紙ジャム状態であったと判断する。用紙ジャム状態であったと判断した場合には(S201:Yes),単に用紙ジャムからの回復のために,給紙トレイ51〜53が開閉された可能性が高い。従って,対象トレイの開閉後優先順位を変更することなく,順位変更処理を終了する。   In the order change process, first, it is determined whether or not the printer 100 is in a paper jam state (S201). If a paper jam is detected by the jam detection unit 69 when opening / closing is detected by the open / close sensors 61 to 63, it is determined that the paper jam has occurred. If it is determined that the paper jam has occurred (S201: Yes), there is a high possibility that the paper feed trays 51-53 have been opened and closed simply to recover from the paper jam. Therefore, the order changing process is terminated without changing the priority order after opening / closing the target tray.

一方,用紙ジャム状態ではないと判断した場合には(S201:No),対象トレイが用紙なしであったか否かを判断する(S203)。開閉センサ61〜63によって開閉が検知された時に,対象トレイの用紙の有無を検出する用紙有無センサ65〜67によって,対象トレイの用紙なしが検出されていた場合は,用紙なしであったと判断する。用紙なしであったと判断した場合には(S203:Yes),用紙の補充のためにトレイが開閉された可能性が高い。そして,単に用紙の補充のために開閉されたのであれば,用紙サイズの変更が行われる可能性は低い。従って,対象トレイが用紙なしであった場合には,対象トレイの開閉後優先順位を変更することなく,順位変更処理を終了する。   On the other hand, if it is determined that the sheet is not jammed (S201: No), it is determined whether or not the target tray has no sheet (S203). When the open / close sensors 61 to 63 detect the open / close of the target tray, when the open / closed sensors 65 to 67 detect the presence / absence of the paper in the target tray, it is determined that there is no paper. . If it is determined that there is no paper (S203: Yes), there is a high possibility that the tray has been opened and closed to replenish paper. If the paper is simply opened and closed for paper replenishment, the possibility of changing the paper size is low. Therefore, when the target tray is out of paper, the order changing process is terminated without changing the priority order after opening and closing of the target tray.

対象トレイが用紙ありと判断した場合には(S203:No),対象トレイの開閉後優先順位を最上位に変更する(S204)。そのために,CPU31は,トレイ情報35中の開閉後優先順位の欄(図3参照)に,対象トレイを最上位とした仮の優先順位を記憶する。さらに,対象トレイの状態が開閉後であることを記憶する(S205)。さらに,対象外のトレイについても,開閉後優先順位に基づいて順次繰り下げ,開閉後優先順位を2位から順に決定し記憶する(S206)。これで全トレイの開閉後優先順位が決定されたので,順位変更処理を終了する。   If it is determined that there is paper in the target tray (S203: No), the priority after opening / closing of the target tray is changed to the top (S204). For this purpose, the CPU 31 stores a provisional priority order with the target tray as the highest order in the post-open / close priority order column (see FIG. 3) in the tray information 35. Further, the fact that the state of the target tray is after opening and closing is stored (S205). Further, the non-target trays are also sequentially lowered based on the priority after opening / closing, and the priority after opening / closing is determined and stored in order from the second place (S206). Since the priority order after opening and closing of all trays is determined, the order changing process is terminated.

図3には,全てのトレイが開閉後ではない例を示した。この例では,開閉後優先順位として,優先順位と同じ情報が記憶されている。後述するように,状態が開閉後であるトレイが無い場合には,開閉後優先順位の情報は使用されないので,どのような内容になっていてもよい。そして,例えば,図3に示した状態から,トレイC53が開閉された場合には,図6に示すように,開閉後優先順位の欄に仮の順位が記憶される。つまり,トレイC53の開閉後優先順位が「1」に変更され,トレイC53の状態が「開閉後」に変更される。さらに,他の給紙トレイ51,52の開閉後優先順位は,優先順位に基づいて決定される。なお,優先順位の欄は変更されない。   FIG. 3 shows an example in which all trays are not opened and closed. In this example, the same information as the priority order is stored as the priority order after opening and closing. As will be described later, when there is no tray whose state is after opening and closing, the information on the priority after opening and closing is not used, so any content may be used. Then, for example, when the tray C53 is opened / closed from the state shown in FIG. 3, the temporary order is stored in the post-open / close priority order column as shown in FIG. That is, the priority after opening / closing of the tray C53 is changed to “1”, and the state of the tray C53 is changed to “after opening / closing”. Furthermore, the priority after opening / closing of the other paper feed trays 51 and 52 is determined based on the priority. The priority column is not changed.

順位変更処理では,最上位に変更される対象トレイだけでなく,対象外のトレイの開閉後優先順位も決定している。そして,開閉後のトレイがある場合には,優先順位に代えて,開閉後優先順位に基づいて,給紙する給紙トレイ51〜53が決定される。例えば,印刷実行中に最上位の給紙トレイ51〜53の用紙がなくなった場合には,次順の給紙トレイ51〜53から順に給紙する。   In the order change process, not only the target tray to be changed to the highest level but also the priority order after opening / closing of the target tray is determined. If there is a tray that has been opened and closed, the paper feed trays 51 to 53 to be fed are determined based on the priority order after opening and closing instead of the priority order. For example, when the uppermost paper feed trays 51 to 53 run out during printing, paper is fed in order from the next paper feed tray 51 to 53.

図4に戻り,S102の順位変更処理が終了したので,S104に進み,印刷指示を受けたか否かを判断する。また,開閉センサ61〜63が検知不能状態から回復した対象トレイも,開閉した対象トレイもないと判断された場合にも(S103:No),印刷指示を受けたか否かを判断する(S104)。印刷指示を受けていないと判断した場合は(S104:No),電源オフまたはスリープモードとなるか否かを判断する(S105)。   Returning to FIG. 4, since the order changing process in S <b> 102 has been completed, the process proceeds to S <b> 104 to determine whether a print instruction has been received. Further, when it is determined that there is no target tray that has been recovered from the undetectable state by the open / close sensors 61 to 63 (S103: No), it is determined whether a print instruction has been received (S104). . If it is determined that the print instruction has not been received (S104: No), it is determined whether the power is turned off or the sleep mode is set (S105).

例えば,ユーザに電源スイッチを押された場合には,電源オフとなる。また,例えば,ユーザによる指示入力や印刷データの受信等がない状態が予め決めた時間以上継続すると,スリープモードとなる。電源オフまたはスリープモードとなると判断した場合には(S105:Yes),印刷処理を終了する。一方,電源オフまたはスリープモードとならないと判断した場合には(S105:No),S101に戻る。そして,S101からS105までを繰り返して,印刷指示を受けるか,または,電源オフまたはスリープモードとなるまで待機する。   For example, when the user presses the power switch, the power is turned off. Further, for example, when a state where there is no instruction input or print data reception by the user continues for a predetermined time or longer, the sleep mode is set. If it is determined that the power is turned off or the sleep mode is set (S105: Yes), the printing process is terminated. On the other hand, if it is determined that the power is not turned off or the sleep mode is not set (S105: No), the process returns to S101. Then, S101 to S105 are repeated to receive a print instruction, or to wait until the power is turned off or the sleep mode is set.

なお,待機中に,再び給紙トレイ51〜53のいずれかが開閉されれば,再び順位変更処理を実行する。例えば,図3に示した状態からトレイC53が開閉され,図6に示すように,開閉後優先順位の欄に仮の順位が記憶されてから,さらに,トレイA51が開閉された場合には,図7に示すようになる。後で開閉されたトレイA51の開閉後優先順位が「1」となり,先に開閉されたトレイC53の開閉後優先順位は,「2」に変更される。そして,状態の欄には,トレイA51,トレイC53のいずれについても「開閉後」が記憶される。   If any of the paper feed trays 51 to 53 is opened and closed again during standby, the order changing process is executed again. For example, when the tray C53 is opened / closed from the state shown in FIG. 3 and a temporary order is stored in the post-open / close priority column as shown in FIG. As shown in FIG. The priority after opening / closing of the tray A51 opened / closed later becomes “1”, and the priority after opening / closing of the tray C53 opened / closed first is changed to “2”. In the status column, “after opening / closing” is stored for both tray A51 and tray C53.

一方,印刷指示を受けたと判断した場合は(S104:Yes),実行トレイ決定処理を実行する(S106)。続いて,S106にて実行される実行トレイ決定処理について,図8を参照して説明する。   On the other hand, if it is determined that a print instruction has been received (S104: Yes), execution tray determination processing is executed (S106). Next, the execution tray determination process executed in S106 will be described with reference to FIG.

実行トレイ決定処理の実行を開始すると,CPU31は,印刷指示に給紙トレイが指定されているか否かを判断する(S301)。ユーザによって給紙トレイが指定されている場合には(S301:Yes),指定されているトレイを実行トレイに決定する(S302)。ユーザの指示が有る場合には,給紙トレイの優先順位に関わらず,ユーザに指定されたトレイを使用するほうがよい。   When execution of the execution tray determination process is started, the CPU 31 determines whether or not a paper feed tray is specified in the print instruction (S301). When the paper feed tray is designated by the user (S301: Yes), the designated tray is determined as the execution tray (S302). When there is a user instruction, it is better to use the tray specified by the user regardless of the priority order of the paper feed trays.

印刷指示に給紙トレイの指定がない場合には(S301:No),トレイ情報35を参照して,状態が開閉後となっている給紙トレイ51〜53があるか否かを判断する(S303)。状態が開閉後の給紙トレイ51〜53がないと判断した場合には(S303:No),全トレイのうちから,優先順位に基づいて実行トレイを決定する。すなわち,設定されている用紙サイズが,印刷データの用紙サイズと同じサイズである給紙トレイ51〜53を選択し,そのうちから,優先順位が最上位の給紙トレイ51〜53を実行トレイに決定する(S304)。なお,同じサイズのトレイがない場合には,例えば,印刷を中断し,警告表示を行うとよい。さらに,次位以下のトレイは,優先順位に基づいて決定される。そして,実行トレイを決定したら,実行トレイ決定処理を終了する。   If the paper feed tray is not specified in the print instruction (S301: No), it is determined whether or not there is a paper feed tray 51-53 whose state is after opening / closing with reference to the tray information 35 (S301: No). S303). When it is determined that there is no paper tray 51 to 53 after opening / closing (S303: No), the execution tray is determined based on the priority order among all trays. That is, the paper feed trays 51 to 53 whose selected paper size is the same as the paper size of the print data are selected, and the paper feed trays 51 to 53 having the highest priority are determined as execution trays. (S304). If there is no tray of the same size, for example, printing may be interrupted and a warning displayed. Furthermore, the trays below the next level are determined based on the priority order. When the execution tray is determined, the execution tray determination process ends.

一方,状態が開閉後の給紙トレイ51〜53があると判断した場合には(S303:Yes),開閉後の給紙トレイ51〜53を優先して実行トレイを決定する。そのために,状態が開閉後で,かつ,設定されている用紙サイズが印刷データの用紙サイズと同じサイズである給紙トレイ51〜53があるか否かを判断する(S305)。この条件を満たす給紙トレイ51〜53がないと判断した場合には(S305:No),状態が開閉後ではなくても,用紙サイズが印刷データと一致する給紙トレイ51〜53を優先して実行トレイに決定する(S304)。さらに,次位以下のトレイは,開閉後優先順位に基づいて決定される。そして,実行トレイ決定処理を終了する。   On the other hand, when it is determined that there are the paper feed trays 51 to 53 that have been opened and closed (S303: Yes), the execution tray is determined with priority on the paper feed trays 51 to 53 that have been opened and closed. Therefore, it is determined whether or not there are paper feed trays 51 to 53 whose state is after opening and closing and whose set paper size is the same as the paper size of the print data (S305). If it is determined that there are no paper feed trays 51 to 53 that satisfy this condition (S305: No), priority is given to the paper feed trays 51 to 53 whose paper size matches the print data even if the state is not open / closed. To determine the execution tray (S304). Furthermore, the trays below the next are determined based on the priority after opening and closing. Then, the execution tray determination process ends.

状態が開閉後で,かつ,設定されている用紙サイズが印刷データの用紙サイズと同じサイズであるような給紙トレイ51〜53があると判断した場合には(S305:Yes),そのトレイを実行トレイに決定する。これらの条件を満たす給紙トレイ51〜53が複数ある場合には,開閉後優先順位が最上位の給紙トレイ51〜53を実行トレイに決定する(S306)。さらに,次位以下のトレイは,開閉後優先順位に基づいて決定される。そして,実行トレイ決定処理を終了する。   If it is determined that there are paper feed trays 51 to 53 whose state is after opening and closing and the set paper size is the same as the paper size of the print data (S305: Yes), the tray is Determine the execution tray. If there are a plurality of paper feed trays 51 to 53 that satisfy these conditions, the paper feed trays 51 to 53 with the highest priority after opening and closing are determined as execution trays (S306). Furthermore, the trays below the next are determined based on the priority after opening and closing. Then, the execution tray determination process ends.

図4に戻り,S106の実行トレイ決定処理が終了したので,印刷する(S107)。つまり,CPU31は,実行トレイに決定された給紙トレイ51〜53から用紙を給紙させて,印刷部10に,印刷データに基づく印刷を行わせる。また,印刷のために給紙した時には,給紙された用紙を用紙センサ77にて検出させ,搬送速度の情報を用いて用紙サイズを取得する(S108)。なお,S108は,実質的にはS107の実行中に並行して実行される。   Returning to FIG. 4, since the execution tray determination process of S106 is completed, printing is performed (S107). That is, the CPU 31 feeds paper from the paper feed trays 51 to 53 determined as the execution tray, and causes the printing unit 10 to perform printing based on the print data. When the paper is fed for printing, the paper sensor 77 detects the fed paper and acquires the paper size using the information on the conveyance speed (S108). Note that S108 is substantially executed in parallel with the execution of S107.

CPU31は,印刷が終了したら,トレイ情報35の実行トレイに関する情報を変更する後変更処理を実行する(S109)。続いて,S109にて実行される後変更処理について,図9を参照して説明する。後変更処理では,CPU31は,実行トレイに決定したトレイについてのトレイ情報35を書き換える。   When the printing is finished, the CPU 31 executes a change process after changing the information related to the execution tray in the tray information 35 (S109). Subsequently, the post-change process executed in S109 will be described with reference to FIG. In the post-change process, the CPU 31 rewrites the tray information 35 for the tray determined as the execution tray.

具体的には,実行トレイの用紙サイズを,図4のS108にて取得された用紙サイズに更新する(S401)。このとき,それまで設定されていた用紙サイズと,S108にて取得された用紙サイズとが異なっていた場合には,更新したことをユーザに報知するとよい。例えば,操作パネル40への表示,印刷を実行したユーザへのエラーメッセージの送付をしてもよい。   Specifically, the paper size of the execution tray is updated to the paper size acquired in S108 of FIG. 4 (S401). At this time, if the paper size set so far is different from the paper size acquired in S108, the user may be notified of the update. For example, an error message may be sent to the user who executed display or printing on the operation panel 40.

次に,実行トレイの状態を開閉なしとする(S402)。さらに,開閉後優先順位の欄を,開閉後優先順位および優先順位に基づいて変更する(S403)。例えば,他に状態が開閉後のトレイがあれば,そのトレイの開閉後優先順位を最上位とする。あるいは,開閉後の状態のトレイがなくなった場合には,開閉後優先順位の内容と優先順位と同じとしてもよい。さらに,必要があれば,実行トレイの給紙頻度の情報を変更する(S404)。なお,S401〜S404の手順はこれに限らず,どの順に実行してもよいし,並行して実行してもよい。これで,後変更処理を終了する。   Next, it is assumed that the execution tray is not opened or closed (S402). Furthermore, the post-open / close priority column is changed based on the post-open / close priority and priority (S403). For example, if there is another tray that has been opened / closed, the priority after opening / closing the tray is set to the highest. Alternatively, when there are no more trays in the opened / closed state, the contents of the priority order after opening / closing may be the same as the priority order. Further, if necessary, information on the feeding frequency of the execution tray is changed (S404). In addition, the procedure of S401-S404 is not restricted to this, You may perform in any order and may be performed in parallel. This completes the post-change process.

図4に戻り,S109の後変更処理が終了したので,電源オフまたはスリープモードとなるか否かを判断する(S105)。電源オフまたはスリープモードとなると判断した場合には(S105:Yes),印刷処理を終了する。一方,電源オフまたはスリープモードとならないと判断した場合には(S105:No),S101に戻る。これで,印刷処理を終了する。   Returning to FIG. 4, since the post-change process in S109 is completed, it is determined whether the power is turned off or the sleep mode is set (S105). If it is determined that the power is turned off or the sleep mode is set (S105: Yes), the printing process is terminated. On the other hand, if it is determined that the power is not turned off or the sleep mode is not set (S105: No), the process returns to S101. This completes the printing process.

前述したように,第1の形態の印刷処理では,ユーザによる設定操作が無くても,開閉されたトレイから優先して給紙され,開閉された給紙トレイの用紙サイズが早期に更新される。例えば,開閉されたトレイに,設定されたサイズと異なるサイズの用紙が収納された場合でも,サイズを変更したことを報知するので,ユーザが早期に気づき,適切な処置が期待できる。さらに,用紙サイズの情報の更新後は,給紙されたトレイの状態は開閉後ではなくなり,変更前の開閉後優先順位に戻される。従って,用紙サイズの確認後は,ユーザの期待に沿う開閉後優先順位となり,好ましい。   As described above, in the printing process according to the first embodiment, paper is preferentially fed from the opened / closed tray even if there is no setting operation by the user, and the paper size of the opened / closed paper feed tray is updated early. . For example, even when a paper having a size different from the set size is stored in the opened / closed tray, the change in size is notified, so that the user can quickly notice and expect appropriate measures. Furthermore, after the paper size information is updated, the state of the fed tray is no longer after the opening / closing, and is returned to the priority after opening / closing before the change. Therefore, after the confirmation of the paper size, the priority order after opening and closing that meets the user's expectations is preferable.

[第2の形態]
続いて,プリンタ100による印刷動作を実現する第2の形態の印刷処理の手順について,図10のフローチャートを参照しつつ説明する。第2の形態の印刷処理では,給紙トレイの開閉後優先順位を最上位に変更する処理を,印刷指示を受けてから実行する。この点,印刷指示がなくても,トレイが開閉される度に実行する第1の形態とは異なる。第1の形態と同様の処理には,同じ符号を付して,詳細な説明を省略する。
[Second form]
Next, the procedure of the printing process according to the second embodiment for realizing the printing operation by the printer 100 will be described with reference to the flowchart of FIG. In the printing process of the second form, the process of changing the priority after opening / closing of the paper feed tray to the highest order is executed after receiving the print instruction. In this regard, even if there is no print instruction, this is different from the first embodiment executed every time the tray is opened and closed. The same processes as those in the first embodiment are denoted by the same reference numerals, and detailed description thereof is omitted.

まず,第1の形態と同様に,検知不能状態から回復した開閉センサ61〜63があるか否かの判断(S101),及び,開閉したトレイがあるか否かの判断(S103)を行う。本形態では,回復した開閉センサ61〜63がある場合や,開閉したトレイがある場合には,まず,トレイ情報35の状態の欄だけを書き換える。   First, as in the first embodiment, it is determined whether or not there are open / close sensors 61 to 63 recovered from the undetectable state (S101), and whether or not there is an open / closed tray (S103). In this embodiment, when there is a recovered open / close sensor 61-63 or when there is an open / closed tray, only the status column of the tray information 35 is rewritten first.

すなわち,回復した開閉センサ61〜63があると判断した場合には(S101:Yes),回復した開閉センサ61〜63の検知対象の給紙トレイ51〜53が対象トレイであり,その対象トレイの状態を開閉後に変更する(S502)。また,開閉したトレイがあると判断した場合には(S103:Yes),開閉した給紙トレイ51〜53が対象トレイであり,その対象トレイの状態を開閉後に変更する(S502)。   That is, when it is determined that there are recovered open / close sensors 61 to 63 (S101: Yes), the paper feed trays 51 to 53 to be detected by the recovered open / close sensors 61 to 63 are target trays, and The state is changed after opening and closing (S502). If it is determined that there is an opened / closed tray (S103: Yes), the opened / closed paper feed trays 51 to 53 are target trays, and the state of the target tray is changed after opening / closing (S502).

次に,印刷指示を受けたか否かを判断する(S104)。そして,印刷指示を受けていないと判断した場合には(S104:No),電源オフまたはスリープモードとなるか否かを判断する(S105)。電源オフまたはスリープモードとなると判断した場合には(S105:Yes),印刷処理を終了する。一方,電源オフまたはスリープモードとならないと判断した場合には(S105:No),S101に戻る。そして,S101,S103,S104,S105の判断を繰り返して,待機する。つまり,本形態では,CPU31は,印刷指示を受けていない間は,トレイ情報35の状態の欄を変更するのみで,開閉後優先順位の変更は行わない。   Next, it is determined whether or not a print instruction has been received (S104). If it is determined that a print instruction has not been received (S104: No), it is determined whether the power is turned off or the sleep mode is set (S105). If it is determined that the power is turned off or the sleep mode is set (S105: Yes), the printing process is terminated. On the other hand, if it is determined that the power is not turned off or the sleep mode is not set (S105: No), the process returns to S101. And it repeats the determination of S101, S103, S104, and S105, and waits. That is, in this embodiment, the CPU 31 only changes the status column of the tray information 35 while not receiving a print instruction, and does not change the priority after opening / closing.

印刷指示を受けたと判断した場合には(S104:Yes),トレイ情報35を参照して,状態が開閉後の給紙トレイ51〜53があるか否かを判断する(S506)。状態が開閉後となっている給紙トレイ51〜53がないと判断した場合には(S506:No),印刷指示またはトレイ情報35の優先順位に従って,実行トレイを決定する(S507)。つまり,印刷指示に給紙トレイが指定されている場合には,印刷指示を優先する。印刷指示にトレイの指定がなければ,第1の形態のS304と同様に,トレイ情報35に基づいて実行トレイを決定する。   If it is determined that a print instruction has been received (S104: Yes), the tray information 35 is referred to and it is determined whether or not there are paper trays 51 to 53 whose states have been opened and closed (S506). If it is determined that there are no paper feed trays 51 to 53 that are in the opened / closed state (S506: No), the execution tray is determined according to the print instruction or the priority order of the tray information 35 (S507). That is, when a paper feed tray is specified in the print instruction, the print instruction is given priority. If no tray is specified in the print instruction, the execution tray is determined based on the tray information 35, as in S304 of the first embodiment.

一方,状態が開閉後となっている給紙トレイ51〜53があると判断した場合には(S506:Yes),開閉後のトレイが優先されるように,給紙トレイ51〜53の開閉後優先順位を決定する。そのために,印刷時実行トレイ決定処理を実行する(S509)。続いて,S509にて実行される印刷時実行トレイ決定処理について,図11のフローチャートを参照して説明する。   On the other hand, when it is determined that there are paper feed trays 51 to 53 that are in the opened / closed state (S506: Yes), the paper trays 51 to 53 are opened and closed so that the opened / closed tray is given priority. Determine priority. For this purpose, a print execution tray determination process is executed (S509). Next, the print time execution tray determination process executed in S509 will be described with reference to the flowchart of FIG.

印刷時実行トレイ決定処理では,まず,第1の形態の実行トレイ決定処理(図8参照)と同様に,印刷指示に給紙トレイが指定されているか否かを判断する(S301)。ユーザによって給紙トレイが指定されている場合には(S301:Yes),指定されているトレイを実行トレイに決定する(S302)。 実行トレイが決定されたら,印刷時実行トレイ決定処理を終了する。   In the execution tray determination process at the time of printing, first, as in the execution tray determination process of the first embodiment (see FIG. 8), it is determined whether or not a paper feed tray is specified in the print instruction (S301). When the paper feed tray is designated by the user (S301: Yes), the designated tray is determined as the execution tray (S302). When the execution tray is determined, the printing execution tray determination process is terminated.

一方,ユーザの指示がない場合は(S301:No),状態が開閉後となっているトレイのうちで,用紙サイズが印刷データのサイズと同じサイズのトレイがあるか否かを判断する(S601)。状態が開閉後で,かつ,用紙サイズが印刷データのサイズと同じサイズのトレイがないと判断した場合には(S601:No),状態が開閉後でなくても,用紙サイズが印刷データのサイズと同じサイズのトレイを優先して使用する。つまり,用紙サイズが印刷データのサイズと同じサイズのトレイのうち,優先順位が最上位のトレイを実行トレイに決定する(S602)。実行トレイを決定したら,他のトレイの順位を決定し(S603),印刷時実行トレイ決定処理を終了する。なお,次位以下のトレイについては,優先順位に基づいて決定する。   On the other hand, if there is no instruction from the user (S301: No), it is determined whether there is a tray whose paper size is the same as the size of the print data among the trays whose states are after opening and closing (S601). ). If it is determined that there is no tray having the same size as the print data size after the open / close state (S601: No), the paper size is the print data size even if the state is not open / closed. Priority is given to the same size tray. That is, the tray having the highest priority among the trays having the same paper size as the print data size is determined as the execution tray (S602). When the execution tray is determined, the order of other trays is determined (S603), and the execution tray determination process for printing is terminated. The trays below the next level are determined based on the priority order.

一方,状態が開閉後で,かつ,用紙サイズが印刷データのサイズと同じサイズのトレイがあると判断した場合には(S601:Yes),この2つの条件を満たすトレイが複数あるか否かを判断する(S604)。この2つの条件を満たすトレイが1つだけであると判断した場合には(S604:No),その該当するトレイを実行トレイに決定する(S605)。つまり,状態が開閉後で,かつ,用紙サイズが印刷データのサイズと同じサイズのトレイを実行トレイとする。実行トレイを決定したら,他のトレイの順位を決定し(S603),印刷時実行トレイ決定処理を終了する。   On the other hand, if it is determined that there is a tray whose state is the same as the size of the print data after the open / close state (S601: Yes), it is determined whether there are a plurality of trays satisfying these two conditions. Judgment is made (S604). If it is determined that there is only one tray that satisfies these two conditions (S604: No), the corresponding tray is determined as the execution tray (S605). That is, a tray whose state is after opening and closing and whose paper size is the same as the size of the print data is set as the execution tray. When the execution tray is determined, the order of other trays is determined (S603), and the execution tray determination process for printing is terminated.

状態が開閉後で,かつ,用紙サイズが印刷データのサイズと同じサイズのトレイが複数あると判断した場合には(S604:Yes),そのうちの優先順位が最上位のトレイを実行トレイに決定する(S606)。つまり,印刷実行時までに開閉された全てのトレイのうち,優先順位が最上位のトレイを実行トレイとする。開閉の度に開閉後優先順位の欄が変更される第1の形態とは異なり,本形態では,開閉の順序に関わらず,実行トレイが決定される。実行トレイを決定したら,他のトレイの順位を決定し(S603),印刷時実行トレイ決定処理を終了する。   If it is determined that there are a plurality of trays whose states are the same as the size of the print data after the open / close state (S604: Yes), the tray with the highest priority among them is determined as the execution tray. (S606). That is, the tray with the highest priority among all trays opened and closed by the execution of printing is set as the execution tray. Unlike the first mode in which the post-open / close priority column is changed each time the switch is opened / closed, in this embodiment, the execution tray is determined regardless of the opening / closing sequence. When the execution tray is determined, the order of other trays is determined (S603), and the execution tray determination process for printing is terminated.

図10に戻り,S509の印刷時実行トレイ決定処理において決定された実行トレイから給紙して,印刷を実行する。第1の形態(図4参照)と同様に,印刷を実行し(S107),実行トレイの用紙サイズを取得する(S108)。さらに,後変更処理を実行する(S109)。そして,電源オフまたはスリープモードとなるか否かを判断する(S105)。電源オフまたはスリープモードとなると判断した場合には(S105:Yes),印刷処理を終了する。一方,電源オフまたはスリープモードとならないと判断した場合には(S105:No),S101に戻る。これで,印刷処理を終了する。   Returning to FIG. 10, the paper is fed from the execution tray determined in the printing execution tray determination process in S509, and printing is executed. As in the first mode (see FIG. 4), printing is executed (S107), and the paper size of the execution tray is acquired (S108). Further, post-change processing is executed (S109). Then, it is determined whether the power is turned off or the sleep mode is set (S105). If it is determined that the power is turned off or the sleep mode is set (S105: Yes), the printing process is terminated. On the other hand, if it is determined that the power is not turned off or the sleep mode is not set (S105: No), the process returns to S101. This completes the printing process.

前述したように,第2の形態の印刷処理では,第1の形態と同様に,ユーザによる設定操作が無くても,開閉されたトレイから優先して給紙され,開閉された給紙トレイの用紙サイズが早期に更新される。一方,本形態では,第1の形態とは異なり,印刷指示を受けた後に,それまでに開閉された全ての給紙トレイの優先順位に基づいて実行トレイが決定される。つまり,給紙トレイ51〜53の開閉順に関わらず実行トレイが決定されるので,ユーザの意図と合う可能性が高い。   As described above, in the printing process of the second form, similarly to the first form, even if there is no setting operation by the user, paper is fed preferentially from the opened and closed trays, The paper size is updated early. On the other hand, in the present embodiment, unlike the first embodiment, after receiving a print instruction, the execution tray is determined based on the priority order of all the paper feed trays that have been opened and closed. That is, since the execution tray is determined regardless of the opening / closing order of the sheet feeding trays 51 to 53, there is a high possibility that it matches the user's intention.

以上,詳細に説明したように,本形態のプリンタ100は,開閉センサ61〜63によって給紙トレイ51〜53の開閉が検知されたことを条件として,開閉された給紙トレイ51〜53の開閉後優先順位を最上位に変更する。さらに,開閉後優先順位に従って,給紙を実行する実行トレイを決定する。そして,実行トレイから給紙された用紙のサイズが,搬送路11中で用紙センサ77によって取得される。これにより,実行トレイから給紙された用紙のサイズが取得される。さらに,取得された用紙サイズは,実行トレイの用紙サイズとしてトレイ情報35に記憶される。つまり,開閉された給紙トレイ51〜53から優先的に給紙され,自動的にそのトレイの用紙サイズが設定される。そのため,ユーザによる設定操作を待つことなく,開閉された給紙トレイ51〜53の用紙サイズが早期に更新される。従って,複数の給紙トレイ51〜53を有するプリンタ100であって,ユーザの手間を抑えつつ,適切な給紙トレイ51〜53からの給紙が期待できる。   As described above in detail, the printer 100 according to the present embodiment opens and closes the opened and closed sheet feeding trays 51 to 53 on the condition that the opening and closing sensors 61 to 63 detect the opening and closing of the sheet feeding trays 51 to 53. Change the post priority to the top. Further, the execution tray for executing paper feeding is determined according to the priority after opening and closing. Then, the size of the paper fed from the execution tray is acquired by the paper sensor 77 in the transport path 11. Thereby, the size of the paper fed from the execution tray is acquired. Further, the acquired paper size is stored in the tray information 35 as the paper size of the execution tray. That is, paper is preferentially fed from the opened and closed paper feed trays 51 to 53, and the paper size of the tray is automatically set. Therefore, the paper sizes of the opened and closed paper feed trays 51 to 53 are updated early without waiting for a setting operation by the user. Therefore, the printer 100 having a plurality of paper feed trays 51 to 53 can be expected to feed paper from the appropriate paper feed trays 51 to 53 while reducing the time and effort of the user.

なお,本実施の形態は単なる例示にすぎず,本発明を何ら限定するものではない。したがって本発明は当然に,その要旨を逸脱しない範囲内で種々の改良,変形が可能である。例えば,プリンタに限らず,複写機,複合機,FAX等,複数のトレイのいずれかから給紙して印刷する機能を備えるものであれば適用可能である。また,印刷部10の印刷方式は,電子写真方式に限らず,インクジェット方式でもよい。また,本発明は,カラー印刷が可能な装置にも,モノクロ印刷専用の装置にも適用可能である。   Note that this embodiment is merely an example, and does not limit the present invention. Therefore, the present invention can naturally be improved and modified in various ways without departing from the gist thereof. For example, the present invention is not limited to a printer, and can be applied as long as it has a function of feeding and printing from any of a plurality of trays, such as a copying machine, a multifunction machine, and a FAX. The printing method of the printing unit 10 is not limited to the electrophotographic method, and may be an ink jet method. The present invention can be applied to an apparatus capable of color printing and an apparatus dedicated to monochrome printing.

また,例えば,上記の形態では,印刷を実行した後,後変更処理(図9)のS403にて,開閉後優先順位を優先順位に戻すとしているが,必ずしも戻さなくてもよい。ただし,戻した方が,給紙トレイ51〜53を自動選択として印刷するユーザにとっては,ユーザの意図に沿うので好ましい。また,実行トレイの給紙頻度の変更(S404)は,しなくてもよい。   Further, for example, in the above embodiment, after executing printing, the post-opening / closing priority order is returned to the priority order in S403 of the post-change process (FIG. 9), but it is not always necessary to return it. However, the return is preferable for the user who prints the paper feed trays 51 to 53 as the automatic selection because it conforms to the user's intention. Also, the execution tray feed frequency need not be changed (S404).

また,主電源のオフ状態またはスリープモードで,複数の開閉センサ61〜63が検知不能状態となる装置においては,電源オン時またはスリープモードからの復帰時に,複数の給紙トレイが検知不能状態から回復した対象トレイとなる。このような装置では,第2の形態を実施することが望ましい。第1の形態を実施する場合には,図5の順位変更処理において,例えば,優先順位に基づいて,対象トレイ間での優先順位を決定すればよい。   In the apparatus in which the plurality of open / close sensors 61 to 63 cannot be detected when the main power is off or in the sleep mode, the plurality of paper feed trays are not detected when the power is turned on or when the sleep mode is restored. It becomes the recovered target tray. In such an apparatus, it is desirable to implement the second embodiment. In the case of implementing the first embodiment, in the order changing process of FIG. 5, for example, the priority order among the target trays may be determined based on the priority order.

また,例えば,第2の形態の印刷時実行トレイ決定処理(図11)において,開閉後で優先対象となるトレイが複数ある場合(S604でYes),優先順位に代えて給紙頻度の情報に基づいて実行トレイを決定してもよい。つまり,S606で,給紙頻度の高いトレイを実行トレイに決定してもよい。また,第1の形態においても,対象トレイが複数ある場合には,給紙頻度の情報を用いて順位を決定してもよい。   Also, for example, when there are a plurality of trays to be prioritized after opening and closing in the printing execution tray determination process (FIG. 11) of the second form (Yes in S604), the information on the paper feeding frequency is used instead of the priority order. The execution tray may be determined based on this. That is, in S606, a tray with a high sheet feeding frequency may be determined as an execution tray. Also in the first embodiment, when there are a plurality of target trays, the order may be determined using the information on the paper feeding frequency.

また,例えば,開閉したトレイの給紙頻度が閾値以下である場合には,そのトレイの開閉後優先順位を上位に変更しないとしてもよい。例えば,第1の形態の印刷処理(図4)のS101,S103,第2の形態の印刷処理(図10)のS101,S103の少なくとも1つのステップで,対象となるトレイの給紙頻度を参照する。そして,給紙頻度が閾値以下である場合には,対象トレイとせず,Noと判断するとしてもよい。このようにすれば,給紙頻度の低いトレイでは,開閉されても開閉後優先順位が上位に変更されない。給紙頻度の低いトレイは,早期に用紙のサイズを認識する必要性が小さい。そのため,制御の複雑化を回避する方が好ましい。   Further, for example, when the paper feeding frequency of the opened / closed tray is equal to or lower than the threshold value, the priority after opening / closing of the tray may not be changed to higher. For example, reference is made to the paper feed frequency of the target tray in at least one of the steps S101 and S103 of the first type printing process (FIG. 4) and S101 and S103 of the second type printing process (FIG. 10). To do. If the paper feed frequency is equal to or less than the threshold, it may be determined as No, not the target tray. In this way, in a tray with a low sheet feeding frequency, the priority after opening / closing is not changed to higher rank even if the tray is opened / closed. A tray with a low paper feeding frequency is less likely to recognize the paper size at an early stage. Therefore, it is preferable to avoid complication of control.

また,例えば,実行トレイ決定処理(図8)または印刷時実行トレイ決定処理(図11),において,用紙サイズが印刷データのサイズと同じか否かの判断(S305,S601)はしなくてもよい。つまり,用紙サイズに関わらず,開閉したトレイを優先的に使用するとしてもよい。   Further, for example, in the execution tray determination process (FIG. 8) or the print execution tray determination process (FIG. 11), it is not necessary to determine whether the paper size is the same as the print data size (S305, S601). Good. That is, the opened and closed tray may be used preferentially regardless of the paper size.

また,例えば,第2の形態においても,用紙ジャムや用紙なしが検出されている状態で開閉されたトレイは,開閉後としないこととしてもよい。つまり,図10のS502で,用紙ジャムや用紙なしではない場合に限り開閉後とするとしてもよい。   For example, also in the second embodiment, a tray that is opened and closed in a state where a paper jam or no paper is detected may not be opened and closed. That is, after S502 in FIG. 10, it may be after opening and closing only when there is no paper jam or no paper.

また,例えば,トレイ情報35に記憶されていた実行トレイの用紙サイズの情報と,印刷時に取得された用紙サイズとが異なる内容である場合には,操作パネル40に用紙サイズを更新する旨の表示を行ってもよい。あるいは,用紙サイズの更新をするか否かをユーザに問い合わせてもよい。   Further, for example, when the information on the paper size of the execution tray stored in the tray information 35 is different from the paper size acquired at the time of printing, an indication to update the paper size on the operation panel 40 is displayed. May be performed. Alternatively, the user may be inquired whether or not to update the paper size.

また,例えば,後変更処理の実行タイミングは,1枚の印刷が終了したらとしてもよいし,1ジョブの印刷が終了してからとしてもよい。   Further, for example, the execution timing of the post-change process may be after the printing of one sheet is finished or after the printing of one job is finished.

また,例えば,印刷指示に給紙トレイが指定されている場合には,開閉後の給紙トレイがあっても印刷指示を優先するとしたが,これに限らない。印刷指示にトレイの指定があっても,開閉後のトレイから優先して給紙するとしてもよい。すなわち,実行トレイ決定処理(図8)および印刷時実行トレイ決定処理(図11)におけるS301は無くてもよい。   Also, for example, when a paper feed tray is specified in the print instruction, the print instruction is given priority even if there is a paper tray that has been opened and closed, but this is not restrictive. Even if the tray is specified in the print instruction, paper may be fed preferentially from the opened / closed tray. That is, S301 in the execution tray determination process (FIG. 8) and the print execution tray determination process (FIG. 11) may be omitted.

また,実施の形態に開示されている処理は,単一のCPU,複数のCPU,ASICなどのハードウェア,またはそれらの組み合わせで実行されてもよい。また,実施の形態に開示されている処理は,その処理を実行するためのプログラムを記録した記録媒体,または方法等の種々の態様で実現することができる。   The processing disclosed in the embodiments may be executed by a single CPU, a plurality of CPUs, hardware such as an ASIC, or a combination thereof. Further, the processing disclosed in the embodiment can be realized in various modes such as a recording medium or a method recording a program for executing the processing.

10 印刷部
11 搬送路
31 CPU
34 不揮発性記憶部
35 トレイ情報
51,52,53 給紙トレイ
61,62,63 開閉センサ
69 ジャム検知部
71,72,73 用紙有無センサ
77 用紙センサ
DESCRIPTION OF SYMBOLS 10 Printing part 11 Conveyance path 31 CPU
34 Nonvolatile storage unit 35 Tray information 51, 52, 53 Paper feed tray 61, 62, 63 Open / close sensor 69 Jam detection unit 71, 72, 73 Paper presence sensor 77 Paper sensor

Claims (9)

用紙を収容する複数の給紙トレイと,
前記各給紙トレイの開閉を検知する開閉検知部と,
前記各給紙トレイから給紙された用紙の搬送路である用紙搬送路と,
前記用紙搬送路を通って搬送された用紙に,画像を印刷する印刷部と,
給紙を実行する前記各給紙トレイの優先順位を記憶する順位記憶部と,
前記各給紙トレイに設定される用紙のサイズを記憶するサイズ記憶部と,
前記各給紙トレイから前記用紙搬送路に給紙された用紙のサイズを取得する取得部と,
制御部と,
を備え,
前記制御部は,
前記優先順位に従って,給紙を実行する前記給紙トレイである実行トレイを決定する決定処理と,
前記実行トレイから給紙された用紙の,前記取得部にて取得されたサイズを,前記実行トレイに設定される用紙のサイズとして前記サイズ記憶部に記憶する設定処理と,
前記開閉検知部によって前記給紙トレイの開閉が検知されたことを条件として,検知された前記給紙トレイである特定トレイを前記優先順位の最上位に変更する変更処理と,
を実行することを特徴とする印刷装置。
A plurality of paper feed trays for storing paper,
An open / close detector for detecting the open / close of each of the paper feed trays;
A paper transport path that is a transport path for paper fed from each of the paper feed trays;
A printing unit that prints an image on a sheet conveyed through the sheet conveyance path;
An order storage unit for storing priorities of the respective paper feed trays that perform paper feeding;
A size storage unit for storing the paper size set in each of the paper feed trays;
An acquisition unit for acquiring a size of a sheet fed from each of the sheet feeding trays to the sheet conveyance path;
A control unit;
With
The controller is
A determination process for determining an execution tray which is the paper supply tray for executing paper supply according to the priority order;
A setting process for storing, in the size storage unit, the size of the paper fed from the execution tray acquired by the acquisition unit as the size of the paper set in the execution tray;
A change process for changing the specific tray, which is the detected paper feed tray, to the top of the priority order on the condition that the open / close detection unit detects the opening / closing of the paper feed tray;
The printing apparatus characterized by performing.
請求項1に記載する印刷装置において,
前記制御部は,
前記変更処理によって最上位に変更された前記特定トレイから用紙が給紙された後,前記特定トレイの前記優先順位を変更前の順位に変更する後変更処理
を実行することを特徴とする印刷装置。
The printing apparatus according to claim 1,
The controller is
After the sheet is fed from the specific tray that has been changed to the highest level by the change process, a post-change process is executed to change the priority of the specific tray to the order before the change. .
請求項1または請求項2に記載する印刷装置において,
前記制御部は,
前記開閉検知部が前記給紙トレイの開閉を検知不能な状態から検知可能な状態に変化したことを条件として,当該開閉検知部の検知対象となる前記給紙トレイを前記優先順位の最上位に変更する不能復帰変更処理
を実行することを特徴とする印刷装置。
In the printing apparatus according to claim 1 or 2,
The controller is
On the condition that the opening / closing detection unit has changed from a state in which the opening / closing of the sheet feeding tray cannot be detected to a state in which it can be detected, the sheet feeding tray to be detected by the opening / closing detection unit A printing apparatus characterized by executing an impossible return changing process to be changed.
請求項1から請求項3のいずれか1つに記載する印刷装置において,
前記各給紙トレイ内に用紙があるか否かを検知する用紙検知部を備え,
前記変更処理では,前記開閉検知部によって開閉が検知された前記給紙トレイについて前記用紙検知部が用紙無しを検知している場合,当該給紙トレイの前記優先順位を変更しないことを特徴とする印刷装置。
In the printing apparatus according to any one of claims 1 to 3,
A paper detector for detecting whether or not there is paper in each of the paper feed trays;
In the changing process, when the paper detection unit detects the absence of paper for the paper feed tray whose opening / closing is detected by the open / close detection unit, the priority order of the paper feed tray is not changed. Printing device.
請求項1から請求項4のいずれか1つに記載する印刷装置において,
前記用紙搬送路で用紙ジャムが発生したか否かを検知するジャム検知部を備え,
前記変更処理では,前記ジャム検知部によって用紙ジャムが検知されている期間中に,前記開閉検知部によって前記給紙トレイの開閉が検知された場合,当該給紙トレイの前記優先順位を変更しないことを特徴とする印刷装置。
In the printing apparatus according to any one of claims 1 to 4,
A jam detecting unit for detecting whether or not a paper jam has occurred in the paper transport path;
In the changing process, when opening / closing of the paper feed tray is detected by the open / close detection unit during a period when paper jam is detected by the jam detection unit, the priority order of the paper feed tray is not changed. A printing apparatus characterized by the above.
請求項1から請求項5のいずれか1つに記載する印刷装置において,
前記制御部は,前記印刷部での印刷制御の開始を契機に前記変更処理を実行し,
前記変更処理では,前記開閉検知部にて複数の前記給紙トレイの開閉が検知されている場合,前記複数の給紙トレイの前記優先順位を前記順位記憶部に記憶されている前記優先順位に従って最上位から順になるように変更することを特徴とする印刷装置。
In the printing apparatus as described in any one of Claims 1-5,
The control unit executes the change process in response to the start of printing control in the printing unit,
In the change process, when the open / close detection unit detects the opening / closing of a plurality of the paper feed trays, the priority order of the plurality of paper feed trays is determined according to the priority order stored in the order storage unit. A printing apparatus that is changed in order from the top.
請求項1から請求項6のいずれか1つに記載する印刷装置において,
前記給紙トレイの給紙頻度に関する情報である頻度情報を記憶する頻度記憶部を備え,
前記変更処理では,前記開閉検知部にて複数の前記給紙トレイの開閉が検知されている場合,前記複数の給紙トレイの前記優先順位を,前記頻度情報に基づいて,給紙頻度が高いほど上位に変更することを特徴とする印刷装置。
The printing apparatus according to any one of claims 1 to 6,
A frequency storage unit that stores frequency information that is information related to the paper feed frequency of the paper feed tray;
In the change process, when the opening / closing detection unit detects the opening / closing of a plurality of the sheet feeding trays, the priority order of the plurality of sheet feeding trays is determined based on the frequency information. A printing apparatus characterized by changing to a higher rank.
請求項1から請求項6のいずれか1つに記載する印刷装置において,
前記給紙トレイの給紙頻度に関する情報である頻度情報を記憶する頻度記憶部を備え,
前記変更処理では,前記頻度情報に基づいて,給紙頻度が閾値以下の前記給紙トレイについては前記優先順位を変更しないことを特徴とする印刷装置。
The printing apparatus according to any one of claims 1 to 6,
A frequency storage unit that stores frequency information that is information related to the paper feed frequency of the paper feed tray;
In the changing process, the priority order is not changed for the paper feed tray having a paper feed frequency equal to or less than a threshold based on the frequency information.
請求項1から請求項8のいずれか1つに記載する印刷装置において,
前記決定処理では,印刷データに設定されているサイズと同じサイズが設定されている前記給紙トレイの中から,前記優先順位に従って前記実行トレイを決定することを特徴とする印刷装置。
The printing apparatus according to any one of claims 1 to 8,
In the determining process, the execution tray is determined in accordance with the priority order from the sheet feeding trays having the same size as the size set in the print data.
JP2012283732A 2012-12-26 2012-12-26 Printer Pending JP2014125318A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012283732A JP2014125318A (en) 2012-12-26 2012-12-26 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012283732A JP2014125318A (en) 2012-12-26 2012-12-26 Printer

Publications (1)

Publication Number Publication Date
JP2014125318A true JP2014125318A (en) 2014-07-07

Family

ID=51405121

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012283732A Pending JP2014125318A (en) 2012-12-26 2012-12-26 Printer

Country Status (1)

Country Link
JP (1) JP2014125318A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018002942A1 (en) * 2016-06-27 2018-01-04 Hewlett-Packard Development Company, L.P. User input based print tray control

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6127843A (en) * 1984-07-17 1986-02-07 Canon Inc Image forming device with priority mode
JPS6270130A (en) * 1985-09-19 1987-03-31 Sharp Corp Sheet handling device
JPH09297437A (en) * 1996-05-02 1997-11-18 Canon Inc Image forming device and recording medium selecting and feeding method therefor
JP2011207584A (en) * 2010-03-30 2011-10-20 Brother Industries Ltd Image forming device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6127843A (en) * 1984-07-17 1986-02-07 Canon Inc Image forming device with priority mode
JPS6270130A (en) * 1985-09-19 1987-03-31 Sharp Corp Sheet handling device
JPH09297437A (en) * 1996-05-02 1997-11-18 Canon Inc Image forming device and recording medium selecting and feeding method therefor
JP2011207584A (en) * 2010-03-30 2011-10-20 Brother Industries Ltd Image forming device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018002942A1 (en) * 2016-06-27 2018-01-04 Hewlett-Packard Development Company, L.P. User input based print tray control
US10432808B2 (en) 2016-06-27 2019-10-01 Hewlett-Packard Development Company, L.P. User input based print tray control

Similar Documents

Publication Publication Date Title
JP6165082B2 (en) Image forming apparatus and image forming method
US10191434B2 (en) Image formation system and control program
JP2009203074A (en) Image forming device, printing medium supplying method, and computer program
JP5009632B2 (en) Image forming apparatus
JP2018017893A (en) Image formation device
US20140176971A1 (en) Image forming apparatus, non-transitory computer-readable recording medium storing an image forming program, and image forming method
JP6269560B2 (en) Image forming apparatus and image forming system
JP6312383B2 (en) Image forming apparatus, control method thereof, and program
JP2019181703A (en) Image formation apparatus, tray decision method and computer program
JP2013052988A (en) Printing apparatus, control method for the same, and program
JP2019117525A (en) Image forming system, image forming apparatus, control method, and control program
JP2014125318A (en) Printer
JP6213151B2 (en) Image forming apparatus
JP4352900B2 (en) Paper feeder
JP5637162B2 (en) Image forming apparatus
JP5949223B2 (en) Image forming apparatus
JP5562113B2 (en) Image forming apparatus
JP2007091442A (en) Image forming device
JP5861816B2 (en) Image forming apparatus, control apparatus for image forming apparatus, and image forming system
JP2016115221A (en) Image forming apparatus, image forming system, and image forming method, and program
JP2009216780A (en) Image forming apparatus, its printing control method and program
US9841715B2 (en) Image forming apparatus, method for controlling image forming apparatus
JP6481401B2 (en) Image forming apparatus, paper conveying method, and program
JP5234274B2 (en) Image forming apparatus
JP6003159B2 (en) Image forming system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150911

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160606

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160614

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160728

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20161227