Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5953789B2 - Image forming apparatus - Google Patents
[go: Go Back, main page]

JP5953789B2 - Image forming apparatus - Google Patents

Image forming apparatus Download PDF

Info

Publication number
JP5953789B2
JP5953789B2 JP2012028108A JP2012028108A JP5953789B2 JP 5953789 B2 JP5953789 B2 JP 5953789B2 JP 2012028108 A JP2012028108 A JP 2012028108A JP 2012028108 A JP2012028108 A JP 2012028108A JP 5953789 B2 JP5953789 B2 JP 5953789B2
Authority
JP
Japan
Prior art keywords
reel
task
operation request
control unit
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2012028108A
Other languages
Japanese (ja)
Other versions
JP2013163335A (en
Inventor
雄吾 ▲浜▼川
雄吾 ▲浜▼川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2012028108A priority Critical patent/JP5953789B2/en
Publication of JP2013163335A publication Critical patent/JP2013163335A/en
Application granted granted Critical
Publication of JP5953789B2 publication Critical patent/JP5953789B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Handling Of Sheets (AREA)
  • Handling Of Continuous Sheets Of Paper (AREA)
  • Controlling Rewinding, Feeding, Winding, Or Abnormalities Of Webs (AREA)

Description

本発明は、印刷部から排出された被記録媒体を巻き取るリールを備える画像形成装置に関する。   The present invention relates to an image forming apparatus including a reel for winding a recording medium ejected from a printing unit.

印刷済みの被記録媒体を巻き取るリール(スクローラー)を備えた画像形成装置が知られている(特許文献1、参照。)。特許文献1において、被記録媒体によってテンションローラーの移動量を監視する監視タスクを実行する。そして、監視タスクは、テンションローラーの移動量が所定量となった場合に、動作要求を出力してリールを動作させる。これにより、被記録媒体のテンションに応じてリールを動作させることができ、被記録媒体のテンションを調整できる。   An image forming apparatus including a reel (scroller) for winding a printed recording medium is known (see Patent Document 1). In Patent Document 1, a monitoring task for monitoring the amount of movement of the tension roller by a recording medium is executed. The monitoring task outputs an operation request to operate the reel when the amount of movement of the tension roller reaches a predetermined amount. Accordingly, the reel can be operated according to the tension of the recording medium, and the tension of the recording medium can be adjusted.

特開2004−107021号公報JP 2004-107021 A

特許文献1においてリールの動作要求を受け付けてからリールの動作が終了するまでには期間を要するため、先行の動作要求に応じたリールの動作が終了する前に、後続の動作要求が出力される場合もあった。この場合、先行の動作要求に応じたリールの動作が終了するまでは、監視タスクは後続の動作要求に対する応答を得ることができず、当該応答が得られるまで待機状態となる。従って、先行の動作要求に応じたリールの動作が終了するまでは、監視タスクによる監視が行われず、画像形成装置が動作不能になるという問題があった。特に、監視タスクがテンションローラーの移動量以外の他の状態も監視する場合、当該監視タスクが監視すべき状態のすべてを監視することができなくなり、画像形成装置が動作不能になりやすい。さらに、リールの動作要求を出力するタスクが複数存在する場合には、複数の動作要求が短期間の間に連続して出力される可能性が高くなり、画像形成装置が動作不能になりやすい。
本発明の目的は、前記課題にかんがみてなされたもので、リールの動作要求が複数連続して受け付けられた場合でも動作不能となり難い画像形成装置の提供を目的とする。
In Patent Document 1, since it takes a period of time for the reel operation to be completed after the reel operation request is received, the subsequent operation request is output before the reel operation corresponding to the preceding operation request is completed. There was a case. In this case, the monitoring task cannot obtain a response to the subsequent operation request until the operation of the reel corresponding to the previous operation request is completed, and enters a standby state until the response is obtained. Therefore, there is a problem that the monitoring by the monitoring task is not performed until the operation of the reel in response to the preceding operation request is completed, and the image forming apparatus becomes inoperable. In particular, when the monitoring task also monitors other states than the amount of movement of the tension roller, it is impossible to monitor all the states to be monitored by the monitoring task, and the image forming apparatus tends to become inoperable. Further, when there are a plurality of tasks that output reel operation requests, there is a high possibility that a plurality of operation requests are output continuously in a short period of time, and the image forming apparatus tends to become inoperable.
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and an object of the present invention is to provide an image forming apparatus that is unlikely to become inoperable even when a plurality of reel operation requests are continuously received.

前記課題を解決するために本発明の画像形成装置は、印刷部に搬送された被記録媒体に対して液滴を吐出する吐出ヘッドと、被記録媒体が印刷部へと巻き出されるロールと、印刷部から排出された被記録媒体を巻き取るリールと、ロールとリールとの間で印刷部を経由するように被記録媒体を搬送する搬送ローラーと、制御部とを備える。制御部は、搬送ローラーとリールとの間における被記録媒体の張力状態を検知する張力センサーを含む複数のセンサーを監視するセンサー監視タスクを実行する。また、センサー監視タスクによって制御部は、張力状態が所定状態となった場合にリールの動作を要求する動作要求を出力する。なお、センサー監視タスクは、動作要求を出力すると待機状態となる。さらに、制御部は、吐出ヘッドと搬送ローラーとロールとリールとを連携して制御する印刷シーケンスを実行させ、当該印刷シーケンスにおいてリールの動作タイミングが到来した場合に動作要求を出力する印刷制御タスクを実行する。なお、印刷制御タスクは、動作要求を出力すると待機状態となる。   In order to solve the above problems, an image forming apparatus of the present invention includes a discharge head that discharges droplets to a recording medium conveyed to a printing unit, a roll that unwinds the recording medium to the printing unit, A reel that winds up the recording medium discharged from the printing unit, a conveyance roller that conveys the recording medium between the roll and the reel so as to pass through the printing unit, and a control unit are provided. The control unit executes a sensor monitoring task for monitoring a plurality of sensors including a tension sensor that detects a tension state of the recording medium between the conveyance roller and the reel. Also, the sensor monitoring task causes the control unit to output an operation request for requesting a reel operation when the tension state becomes a predetermined state. The sensor monitoring task enters a standby state when an operation request is output. Further, the control unit executes a print sequence for controlling the ejection head, the transport roller, the roll, and the reel in cooperation, and performs a print control task for outputting an operation request when the operation timing of the reel comes in the print sequence. Run. The print control task enters a standby state when an operation request is output.

さらに、制御部は、動作要求が出力された場合に、リールを動作させるためのリール制御処理を実行するとともに、待機状態を解除するための応答メッセージを当該動作要求の出力元のタスクに出力するリールタスクを実行する。そして、リールタスクによって制御部は、リール制御処理の実行中に動作要求が出力された場合に、実行中のリール制御処理の終了を待つことなく応答メッセージを当該動作要求の出力元のタスクに出力する。   Further, when an operation request is output, the control unit executes a reel control process for operating the reel, and outputs a response message for releasing the standby state to the task that is the output source of the operation request. Perform a reel task. Then, when an operation request is output during execution of the reel control process, the control unit outputs a response message to the task that has output the operation request without waiting for the reel control process being executed to end. To do.

前記の構成において、リールタスクによって制御部は、リール制御処理の実行中に後続の動作要求が出力された場合に、実行中のリール制御処理の終了を待つことなく応答メッセージを当該動作要求の出力元のタスクに出力する。従って、制御部は、実行中のリール制御処理の終了を待つことなく、後続の動作要求の出力元のタスクを続行することができる。すなわち、連続して複数の動作要求が受け付けられた場合でも、動作要求の出力元のタスクが長期間にわたって待機状態となることが防止できるため、画像形成装置が動作不能となることが防止できる。   In the above configuration, when a subsequent operation request is output during execution of the reel control process, the control unit outputs a response message without waiting for completion of the reel control process being executed. Output to the original task. Therefore, the control unit can continue the task from which the subsequent operation request is output without waiting for the reel control process being executed to end. That is, even when a plurality of operation requests are received in succession, it is possible to prevent the task from which the operation request is output from being in a standby state for a long period of time, thereby preventing the image forming apparatus from becoming inoperable.

また、センサー監視タスクによって制御部は、リールの動作を指示するためのスイッチの操作状態を監視し、操作状態が所定状態となった場合に動作要求を出力してセンサー監視タスクを待機状態としてもよい。これにより、リールの動作をユーザーが指示するスイッチを備えた構成においても、センサー監視タスクが長期間にわたって待機状態となることが防止できる。また、ユーザーによるスイッチの操作に起因して、印刷制御タスクが長期間にわたって待機状態となることが防止できる。   Further, the control unit monitors the operation state of the switch for instructing the operation of the reel by the sensor monitoring task, and outputs an operation request when the operation state becomes a predetermined state, and sets the sensor monitoring task in the standby state. Good. Thereby, even in a configuration including a switch for the user to instruct the operation of the reel, the sensor monitoring task can be prevented from being in a standby state for a long period of time. Further, it is possible to prevent the print control task from being in a standby state for a long period due to the user's operation of the switch.

さらに、リールタスクによって制御部は、リール制御処理の実行中に動作要求が出力された場合に、当該動作要求に応じたリール制御処理を実行させないようにしてもよい。リール制御処理の実行中に後続の動作要求が出力された場合には、当該後続の動作要求に応じたリール制御処理が実行できるタイミングが当該後続の動作要求の出力から大きく遅れ得る。そのため、後続の動作要求に応じてリールを動作させる段階で、後続の動作要求に応じてリールを動作させることが不適切となり得る。後続の動作要求に応じてリールを動作させるまでに、被記録媒体の張力状態や、スイッチの操作状態や、印刷シーケンスにおける処理の進捗状況が変化し得るからである。従って、リール制御処理の実行中に動作要求が出力された場合に、当該動作要求に応じたリール制御処理を実行させないようにすることにより、不適切なリールの動作を防止できる。   Furthermore, when an operation request is output during execution of the reel control processing, the control unit may not execute the reel control processing corresponding to the operation request by the reel task. When a subsequent operation request is output during execution of the reel control process, the timing at which the reel control process corresponding to the subsequent operation request can be executed can be greatly delayed from the output of the subsequent operation request. Therefore, it may be inappropriate to operate the reel in response to the subsequent operation request at the stage of operating the reel in response to the subsequent operation request. This is because the tension state of the recording medium, the switch operation state, and the progress of processing in the printing sequence can change before the reel is operated in response to a subsequent operation request. Accordingly, when an operation request is output during execution of the reel control process, inappropriate reel operation can be prevented by preventing the reel control process corresponding to the operation request from being executed.

さらに、本発明のように、リールの動作要求を処理する手法は、プログラムや方法としても適用可能である。また、以上のような装置、プログラム、方法は、単独の装置として実現される場合もあれば、複合的な機能を有する装置に組み込まれてもよい。   Further, the method of processing a reel operation request as in the present invention can also be applied as a program or method. Moreover, the above apparatuses, programs, and methods may be implemented as a single apparatus, or may be incorporated into an apparatus having multiple functions.

プリンターのブロック図である。It is a block diagram of a printer. (2A)はプリンターの側面図、(2B)〜(2E)はリールの側面図である。(2A) is a side view of the printer, and (2B) to (2E) are side views of the reel. (3A)〜(3C)はプリンターの動作を示すシーケンス図である。(3A) to (3C) are sequence diagrams illustrating the operation of the printer.

ここでは、下記の順序に従って本発明の実施の形態について説明する。
(1)プリンターの構成:
(2)プリンターの動作:
(3)変形例:
Here, embodiments of the present invention will be described in the following order.
(1) Printer configuration:
(2) Printer operation:
(3) Modification:

(1)プリンターの構成:
図1は本発明の一実施形態にかかる画像形成装置としてのプリンター1の構成を示すブロック図である。プリンター1は、制御部10と吐出ヘッド制御回路11とキャリッジ制御回路12と搬送制御回路13とセンサー制御回路14とを備える。制御部10は、図示しないCPUとRAMとROMとを備える。CPUは、ROMに記録された制御プログラムPをRAMにロードして実行する。制御プログラムPの機能によりCPUは、各制御回路11〜14を制御するための処理を実行する。
(1) Printer configuration:
FIG. 1 is a block diagram showing a configuration of a printer 1 as an image forming apparatus according to an embodiment of the present invention. The printer 1 includes a control unit 10, an ejection head control circuit 11, a carriage control circuit 12, a transport control circuit 13, and a sensor control circuit 14. The control unit 10 includes a CPU, a RAM, and a ROM (not shown). The CPU loads the control program P recorded in the ROM into the RAM and executes it. With the function of the control program P, the CPU executes processing for controlling the control circuits 11 to 14.

吐出ヘッド制御回路11は、吐出ヘッドHDにおいて液滴としてのインク滴の吐出を制御するための回路である。本実施形態において、吐出ヘッドHDはインク滴をノズルごとに吐出させる複数のピエゾ素子を備え、吐出ヘッド制御回路11は、当該複数のピエゾ素子に対して駆動電圧を選択的に印加させる。具体的に、吐出ヘッド制御回路11は、駆動電圧を生成する駆動電圧生成回路と、印刷画像データに基づいてノズルごとにインクを吐出させるか否かを規定した吐出データを生成する吐出制御回路とを備える。そして、吐出ヘッド制御回路11は、制御部10の指令に基づいて、ノズルがインクを吐出させる吐出タイミングごとに、駆動電圧と吐出データとを吐出ヘッドHDに出力する。   The ejection head control circuit 11 is a circuit for controlling ejection of ink droplets as droplets in the ejection head HD. In the present embodiment, the ejection head HD includes a plurality of piezo elements that eject ink droplets for each nozzle, and the ejection head control circuit 11 selectively applies a drive voltage to the plurality of piezo elements. Specifically, the ejection head control circuit 11 includes a drive voltage generation circuit that generates a drive voltage, an ejection control circuit that generates ejection data that defines whether or not to eject ink for each nozzle based on print image data, and Is provided. The ejection head control circuit 11 outputs a drive voltage and ejection data to the ejection head HD at each ejection timing at which the nozzle ejects ink based on a command from the control unit 10.

キャリッジ制御回路12は、吐出ヘッドHDが取り付けられたキャリッジCRを主走査方向に移動させるキャリッジモーター12aを制御するための回路である。すなわち、キャリッジ制御回路12は、制御部10の指令に基づいて、キャリッジモーター12aに駆動電流を供給する。   The carriage control circuit 12 is a circuit for controlling the carriage motor 12a that moves the carriage CR to which the ejection head HD is attached in the main scanning direction. That is, the carriage control circuit 12 supplies a drive current to the carriage motor 12a based on a command from the control unit 10.

図2Aは、プリンター1の搬送系を模式的に示す側面図である。図2Aに示すように、キャリッジCRはプラテンK上に搬送された被記録媒体としてのロール紙Mの記録面に対向するように備えられている。また、キャリッジCRに取り付けられた吐出ヘッドHDのノズルがロール紙Mの記録面に対向する。吐出ヘッドHDのノズルから吐出したインク滴を着弾させることによって、プラテンK上に搬送されたロール紙Mの記録面上にインクのドットを記録できる。また、吐出ヘッドHDにおいてインク滴を吐出させながら、キャリッジCRとともに吐出ヘッドHDを主走査方向(紙面奥行方向)に主走査させることにより、ロール紙M上において主走査方向にドット列を記録できる。   FIG. 2A is a side view schematically illustrating the conveyance system of the printer 1. As shown in FIG. 2A, the carriage CR is provided so as to face the recording surface of the roll paper M as a recording medium conveyed on the platen K. Further, the nozzles of the ejection head HD attached to the carriage CR face the recording surface of the roll paper M. By causing ink droplets ejected from the nozzles of the ejection head HD to land, ink dots can be recorded on the recording surface of the roll paper M conveyed on the platen K. In addition, by ejecting ink droplets from the ejection head HD and performing main scanning of the ejection head HD together with the carriage CR in the main scanning direction (the depth direction of the paper surface), a dot row can be recorded on the roll paper M in the main scanning direction.

搬送制御回路13は、搬送モーター13aとロールモーター13bとリールモーター13cとを制御する回路である。すなわち、搬送制御回路13は、制御部10の指令に基づいて搬送モーター13aとロールモーター13bとリールモーター13cに駆動電流を供給する。   The conveyance control circuit 13 is a circuit that controls the conveyance motor 13a, the roll motor 13b, and the reel motor 13c. That is, the transport control circuit 13 supplies a drive current to the transport motor 13a, the roll motor 13b, and the reel motor 13c based on the command of the control unit 10.

図2Aに示すようにプリンター1において、円柱状の巻芯にロール紙Mが巻き付けられたロールRRがセットされている。なお、インク滴のドットが記録される記録面がロールRRの径方向外側となり、当該記録面の裏面がロールRRの径方向内側となるように、ロール紙Mが巻芯に巻き付けられている。なお、図2Aは、ロールRRの巻芯の軸方向の外側から見て示す図である。図2Aにおいて記録面が上となるようにロール紙MがプラテンK上に搬送される。ロールモーター13bは、ロールRRを回転駆動させるためのモーターであり、ロールRRを巻芯の中心軸まわりに回転駆動させる。ロールRRは、主として搬送ローラーARとロールRRとの間においてロール紙Mに作用する張力を適正な範囲に維持するために駆動する。   As shown in FIG. 2A, in the printer 1, a roll RR in which roll paper M is wound around a cylindrical core is set. Note that the roll paper M is wound around the core so that the recording surface on which ink droplet dots are recorded is on the radially outer side of the roll RR and the back surface of the recording surface is on the radially inner side of the roll RR. Note that FIG. 2A is a view seen from the outside in the axial direction of the core of the roll RR. In FIG. 2A, the roll paper M is conveyed onto the platen K so that the recording surface faces up. The roll motor 13b is a motor for rotationally driving the roll RR, and rotationally drives the roll RR around the central axis of the winding core. The roll RR is driven mainly to maintain the tension acting on the roll paper M between the transport roller AR and the roll RR within an appropriate range.

搬送モーター13aは、ロールRRとリールREとの間でロール紙Mを搬送するための搬送ローラーARを駆動するモーターである。図2Aに示すように、搬送ローラーARは、従動ローラーPRと対向するように備えられている。搬送ローラーARと従動ローラーPRとは、それぞれ円柱状に形成されており、軸方向がロールRRの巻芯と一致する。ロール紙Mは、搬送ローラーARと従動ローラーPRとの間に挟み込まれる。そして、搬送ローラーARが中心軸まわりに回転駆動することにより、ロール紙MはプラテンK上を搬送される。ロール紙Mの搬送方向は、キャリッジCRの主走査方向に直交する副走査方向である。搬送制御回路13は、搬送モーター13aを駆動させることにより、ロール紙Mを印刷部Wに搬送させる。印刷部Wとは、ロール紙Mの搬送経路においてインク滴がロール紙Mに吐出される領域であり、ロール紙Mの搬送経路のうち吐出ヘッドHDと対向する領域を指す。キャリッジCRの主走査とロール紙Mの搬送とを行うことにより、ロール紙Mの記録面上における二次元方向にインク滴のドットを記録し、印刷画像を形成できる。さらに、搬送制御回路13は、搬送モーター13aを駆動させることにより、ロール紙Mを印刷部Wから排出する。   The transport motor 13a is a motor that drives a transport roller AR for transporting the roll paper M between the roll RR and the reel RE. As shown in FIG. 2A, the transport roller AR is provided so as to face the driven roller PR. The transport roller AR and the driven roller PR are each formed in a cylindrical shape, and the axial direction coincides with the core of the roll RR. The roll paper M is sandwiched between the transport roller AR and the driven roller PR. Then, the roll paper M is transported on the platen K by the transport roller AR being driven to rotate around the central axis. The transport direction of the roll paper M is a sub-scanning direction orthogonal to the main scanning direction of the carriage CR. The conveyance control circuit 13 conveys the roll paper M to the printing unit W by driving the conveyance motor 13a. The printing unit W is an area where ink droplets are ejected onto the roll paper M in the transport path of the roll paper M, and refers to an area facing the ejection head HD in the transport path of the roll paper M. By performing the main scanning of the carriage CR and the conveyance of the roll paper M, dots of ink droplets are recorded in a two-dimensional direction on the recording surface of the roll paper M, and a printed image can be formed. Furthermore, the conveyance control circuit 13 discharges the roll paper M from the printing unit W by driving the conveyance motor 13a.

リールREは、円柱状の巻芯RE1と、当該巻芯RE1を回転可能に保持する保持部RE2とを備える。巻芯RE1は、軸方向がロールRRの巻芯および搬送ローラーARと従動ローラーPRと一致し、中心軸まわりに回転駆動する。巻芯RE1が回転駆動することにより、印刷部Wから排出されたロール紙Mを巻芯RE1にて巻き取る。リールモーター13cは、巻芯RE1を回転駆動させるモーターである。以上のように、ロール紙MはロールRRとリールREとの間で印刷部Wを経由するように搬送される。   The reel RE includes a cylindrical core RE1 and a holding part RE2 that rotatably holds the core RE1. The core RE1 has an axial direction that coincides with the core of the roll RR, the transport roller AR, and the driven roller PR, and is driven to rotate around the central axis. When the winding core RE1 is rotationally driven, the roll paper M discharged from the printing unit W is taken up by the winding core RE1. The reel motor 13c is a motor that rotationally drives the core RE1. As described above, the roll paper M is conveyed between the roll RR and the reel RE via the printing unit W.

保持部RE2には、テンションバーRE3が取り付けられている。テンションバーRE3は、棒状のアーム部RE3aを有し、当該アーム部RE3aの長さ方向両端のそれぞれに自由端RE3bと接続端RE3cとが備えられている。接続端RE3cは保持部RE2に対して回転可能に連結されており、テンションバーRE3は接続端RE3cを中心とした回転方向に揺動する。搬送ローラーARとリールREの巻芯RE1との間で搬送されているロール紙Mに対して、アーム部RE3aが接触することなく、自由端RE3bが上側から摺接する。テンションバーRE3に外力が作用しない場合、自重によって自由端RE3bが下降するようにテンションバーRE3が揺動する。しかし、搬送ローラーARとリールREとの間におけるロール紙Mの張力が大きくなるほど、テンションバーRE3の自重に抗して自由端RE3bが上方(紙面時計回り)に押し上げられる。   A tension bar RE3 is attached to the holding part RE2. The tension bar RE3 has a rod-shaped arm portion RE3a, and a free end RE3b and a connection end RE3c are provided at both ends in the length direction of the arm portion RE3a. The connection end RE3c is rotatably connected to the holding part RE2, and the tension bar RE3 swings in the rotation direction around the connection end RE3c. The free end RE3b is in sliding contact with the roll paper M being conveyed between the conveyance roller AR and the reel RE1 without the arm portion RE3a coming into contact with the roll RE. When no external force acts on the tension bar RE3, the tension bar RE3 swings so that the free end RE3b is lowered by its own weight. However, as the tension of the roll paper M between the transport roller AR and the reel RE increases, the free end RE3b is pushed upward (clockwise on the paper surface) against the weight of the tension bar RE3.

図2B〜図2Eは、リールREの側面図である。アーム部RE3aの長さ方向の水平面に対する紙面時計回りの角度を揺動角θとする。搬送ローラーARとリールREとの間におけるロール紙Mの張力が大きくなるほど、テンションバーRE3は紙面時計回りに回転し、揺動角θが大きくなる。アーム部RE3aが揺動できる揺動角θは機械的に制限されている。接続端RE3cには遮光板RE3dが取り付けられており、当該遮光板RE3dはテンションバーRE3とともに揺動する。保持部RE2における遮光板RE3dの揺動範囲に張力センサーとしての上側光センサーS1と下側光センサーS2とが備えられている。上側光センサーS1は、下側光センサーS2よりも上側に備えられている。また、遮光板RE3dの回転移動方向における上側光センサーS1と下側光センサーS2との距離は、テンションバーRE3の長さ方向に直交する遮光板RE3dの幅よりも短い。   2B to 2E are side views of the reel RE. The angle clockwise with respect to the horizontal plane in the length direction of the arm part RE3a is defined as a swing angle θ. As the tension of the roll paper M between the transport roller AR and the reel RE increases, the tension bar RE3 rotates in the clockwise direction on the paper surface and the swing angle θ increases. The swing angle θ at which the arm part RE3a can swing is mechanically limited. A light shielding plate RE3d is attached to the connection end RE3c, and the light shielding plate RE3d swings together with the tension bar RE3. An upper optical sensor S1 and a lower optical sensor S2 are provided as tension sensors in the swing range of the light shielding plate RE3d in the holding unit RE2. The upper photosensor S1 is provided above the lower photosensor S2. Further, the distance between the upper light sensor S1 and the lower light sensor S2 in the rotational movement direction of the light shielding plate RE3d is shorter than the width of the light shielding plate RE3d orthogonal to the length direction of the tension bar RE3.

上側光センサーS1と下側光センサーS2とは、遮光板RE3dによって遮光された場合に光を検出せず、遮光板RE3dによって遮光されなかった場合に光を検出する。本実施形態では、図2Dに示すように遮光板RE3dによって下側光センサーS2が遮光されず(黒丸)、上側光センサーS1が遮光された(破線白丸)場合、ロール紙Mが適正張力状態であることとする。図2Bに示すように下降している遮光板RE3dによって下側光センサーS2のみが遮光される状態は、ロール紙Mが低張力状態であるとされる。さらに、図2Cに示すように遮光板RE3dによって上側光センサーS1と下側光センサーS2との双方が遮光される状態も、ロール紙Mの低張力状態であるとされる。一方、図2Eに示すように上側光センサーS1と下側光センサーS2の双方が遮光されない状態は、ロール紙Mが高張力状態であるとされる。   The upper light sensor S1 and the lower light sensor S2 do not detect light when blocked by the light blocking plate RE3d, and detect light when not blocked by the light blocking plate RE3d. In the present embodiment, as shown in FIG. 2D, when the lower light sensor S2 is not shielded by the light shielding plate RE3d (black circle) and the upper light sensor S1 is shielded (dotted white circle), the roll paper M is in an appropriate tension state. Suppose that there is. As shown in FIG. 2B, the state in which only the lower light sensor S2 is shielded by the light-shielding plate RE3d that is descending is defined as the roll paper M being in a low tension state. Furthermore, as shown in FIG. 2C, the state in which both the upper light sensor S1 and the lower light sensor S2 are shielded by the light shielding plate RE3d is also the low tension state of the roll paper M. On the other hand, as shown in FIG. 2E, when the upper light sensor S1 and the lower light sensor S2 are not shielded from light, the roll paper M is in a high tension state.

センサー制御回路14は、上側光センサーS1、下側光センサーS2、温度センサーS3、ロータリーエンコーダーS4、紙端センサーS5、スイッチセンサーS6等の各種センサーを制御するための回路である。温度センサーS3は、吐出ヘッドHD等の温度を計測する。ロータリーエンコーダーS4は、ロールRR、搬送ローラーAR、リールRE等の回転量を計測する。紙端センサーS5は、キャリッジCRから所定距離の検出位置Aに備えられている。紙端センサーS5は、ロール紙Mに対して検査光を照射し、当該検査光のロール紙Mにおける透過光または反射光の状態に基づいて検出位置Aにおけるロール紙Mの存在有無を検知する。スイッチセンサーS6は、リールREの動作モードを指示するためのスイッチSWの操作状態を監視するセンサーである。本実施形態では、リールREの動作モードとして、自動モードまたは手動モードが指示される。例えば、スイッチセンサーS6は、スイッチSWの機械的な操作状態に応じて変化する導通状態や受光状態等を検出するセンサーである。自動モードとは、搬送ローラーARとリールREとの間におけるロール紙Mの張力状態に応じてリールREを動作させるモードである。手動モードとは、スイッチSWに対する操作に応じて強制的にロール紙Mを巻き取るようにリールREを動作させるモードである。   The sensor control circuit 14 is a circuit for controlling various sensors such as the upper light sensor S1, the lower light sensor S2, the temperature sensor S3, the rotary encoder S4, the paper edge sensor S5, and the switch sensor S6. The temperature sensor S3 measures the temperature of the ejection head HD and the like. The rotary encoder S4 measures the amount of rotation of the roll RR, the transport roller AR, the reel RE, and the like. The paper edge sensor S5 is provided at a detection position A at a predetermined distance from the carriage CR. The paper edge sensor S5 irradiates the roll paper M with inspection light, and detects the presence or absence of the roll paper M at the detection position A based on the state of transmitted light or reflected light of the inspection light on the roll paper M. The switch sensor S6 is a sensor that monitors the operation state of the switch SW for instructing the operation mode of the reel RE. In the present embodiment, an automatic mode or a manual mode is instructed as the operation mode of the reel RE. For example, the switch sensor S6 is a sensor that detects a conduction state, a light reception state, and the like that change according to a mechanical operation state of the switch SW. The automatic mode is a mode in which the reel RE is operated according to the tension state of the roll paper M between the transport roller AR and the reel RE. The manual mode is a mode in which the reel RE is operated so as to forcibly wind the roll paper M in accordance with an operation on the switch SW.

図1に示すように制御プログラムPは、センサー監視部P1と印刷制御部P2とリール制御部P3とを含む。制御部10は、マルチタスクが実行可能であり、センサー監視部P1と印刷制御部P2とリール制御部P3の機能に基づくタスクを並行して実行する。すなわち、制御部10は、センサー監視部P1の機能によるセンサー監視タスクと、印刷制御部P2の機能による印刷制御タスクを常時実行し、リール制御部P3の機能によるリール制御タスクとをそれぞれ常時実行する。   As shown in FIG. 1, the control program P includes a sensor monitoring unit P1, a print control unit P2, and a reel control unit P3. The control unit 10 can execute multitasking, and executes tasks based on the functions of the sensor monitoring unit P1, the print control unit P2, and the reel control unit P3 in parallel. That is, the control unit 10 always executes a sensor monitoring task based on the function of the sensor monitoring unit P1, a print control task based on the function of the print control unit P2, and a reel control task based on the function of the reel control unit P3. .

センサー監視部P1は、複数のセンサーS1〜S6を監視するセンサー監視タスクを制御部10に実行させるモジュールである。このセンサー監視タスクによって制御部10は、搬送ローラーARとリールREとの間におけるロール紙Mの張力状態が所定状態となったことをトリガーとしてリールREの動作要求Qを出力する。具体的に、制御部10は、上側光センサーS1と下側光センサーS2を監視し、ロール紙Mの張力状態が図2Bに示す低張力状態(S1:受光,S2:遮光)となったことをトリガーとして、図2Dに示す適正張力状態(S1:遮光,S2:受光)となるまでロール紙Mを巻き取るように巻芯RE1を回転駆動させる動作要求Qを出力する。   The sensor monitoring unit P1 is a module that causes the control unit 10 to execute a sensor monitoring task for monitoring the plurality of sensors S1 to S6. With this sensor monitoring task, the control unit 10 outputs a reel RE operation request Q triggered by the tension state of the roll paper M between the transport roller AR and the reel RE becoming a predetermined state. Specifically, the control unit 10 monitors the upper light sensor S1 and the lower light sensor S2, and the tension state of the roll paper M is in the low tension state shown in FIG. 2B (S1: light reception, S2: light shielding). Is used as a trigger to output an operation request Q for rotating the winding core RE1 so as to wind up the roll paper M until the proper tension state shown in FIG. 2D (S1: light shielding, S2: light reception) is obtained.

さらに、センサー監視タスクによって制御部10は、ロール紙Mの張力状態が図2Dに示す適正張力状態(S1:遮光,S2:受光)であり、かつ、ロールRRがロール紙Mを巻き取る方向に回転する場合に、ロール紙Mを巻き取る方向と反対方向に巻芯RE1を回転駆動させる動作要求Qを出力する。すなわち、ロールRRがロール紙Mを巻き取る方向に回転してロール紙Mの張力を増大させようとする場合には、適正張力状態を維持するようにリールREを動作させる。センサー監視部P1の機能により制御部10は、動作要求Qを出力するとセンサー監視タスクを待機状態とする。   Further, according to the sensor monitoring task, the control unit 10 causes the tension state of the roll paper M to be in an appropriate tension state (S1: light shielding, S2: light reception) shown in FIG. When rotating, an operation request Q for rotating the winding core RE1 in the direction opposite to the direction of winding the roll paper M is output. That is, when the roll RR is rotated in the direction of winding the roll paper M to increase the tension of the roll paper M, the reel RE is operated so as to maintain an appropriate tension state. When the operation request Q is output by the function of the sensor monitoring unit P1, the control unit 10 sets the sensor monitoring task in a standby state.

さらに、センサー監視タスクによって制御部10は、リールの動作を指示するためのスイッチSWの操作状態をスイッチセンサーS6によって監視する。具体的に制御部10は、スイッチSWの操作状態が手動モードを指示する状態となったことをトリガーとして、ロール紙Mを巻き取るように巻芯RE1を回転駆動させる動作要求Qを出力する。また、センサー監視部P1の機能により制御部10は、スイッチSWの操作状態に応じて動作要求Qを出力した場合も、センサー監視タスクを待機状態とする。   Further, the control unit 10 monitors the operation state of the switch SW for instructing the reel operation by the switch sensor S6 by the sensor monitoring task. Specifically, the control unit 10 outputs an operation request Q for rotationally driving the core RE1 so as to wind up the roll paper M, triggered by the fact that the operation state of the switch SW is in a state instructing the manual mode. Further, the control unit 10 sets the sensor monitoring task in the standby state even when the operation request Q is output according to the operation state of the switch SW by the function of the sensor monitoring unit P1.

印刷制御部P2は、キャリッジCRと吐出ヘッドHDと搬送ローラーARとロールRRとリールREとを連携して制御する印刷シーケンスを実行させ、当該印刷シーケンスにおいてリールREの動作タイミングが到来した場合に動作要求Qを出力して印刷制御タスクを制御部10に実行させるモジュールである。すなわち、制御部10は、印刷シーケンスにおいて吐出ヘッド制御回路11とキャリッジ制御回路12と搬送制御回路13とを制御する。制御部10が印刷制御タスクによって印刷シーケンスを実行することにより、キャリッジCRの主走査と、吐出ヘッドHDによるインク滴の吐出と、ロール紙Mの搬送(副走査)とを連携して行うことにより、ロール紙Mに印刷画像を形成できる。この印刷制御タスクによって制御部10は、リールREの動作タイミングが到来したことをトリガーとして動作要求Qを出力する。また、印刷制御部P2の機能により制御部10は、動作要求Qを出力すると印刷制御タスクを待機状態とする。   The print control unit P2 executes a print sequence for controlling the carriage CR, the discharge head HD, the transport roller AR, the roll RR, and the reel RE in cooperation with each other, and operates when the operation timing of the reel RE comes in the print sequence. This module outputs a request Q and causes the control unit 10 to execute a print control task. That is, the control unit 10 controls the ejection head control circuit 11, the carriage control circuit 12, and the conveyance control circuit 13 in the printing sequence. When the control unit 10 executes the printing sequence by the printing control task, the main scanning of the carriage CR, the ejection of ink droplets by the ejection head HD, and the conveyance (sub-scanning) of the roll paper M are performed in cooperation. A printed image can be formed on the roll paper M. With this print control task, the control unit 10 outputs an operation request Q triggered by the arrival of the operation timing of the reel RE. Further, the control unit 10 sets the print control task in a standby state when the operation request Q is output by the function of the print control unit P2.

本実施形態において、制御部10は、印刷シーケンスの一処理として、ロールRRにおけるロール紙Mの残量推定処理を実行する。この残量推定処理において、印刷制御部P2の機能により制御部10は、キャリッジCRと吐出ヘッドHDとの動作を停止させた状態で、搬送ローラーARを所定回転数だけ回転駆動させる。そして、印刷制御部P2の機能により制御部10は、搬送ローラーARが所定回転数だけ回転駆動するのに追従して回転したロールRRの回転数を取得する。そして、印刷制御部P2の機能により制御部10は、搬送ローラーARの回転数とロールRRの回転数の回転数との比、および、搬送ローラーARの径(既知)とに基づいて、ロールRRの径(ロール径)を特定する。さらに、印刷制御部P2の機能により制御部10は、ロールRRのロール径に基づいてロールRRにおけるロール紙Mの残量を推定する。   In the present embodiment, the control unit 10 performs a remaining amount estimation process for the roll paper M in the roll RR as one process of the printing sequence. In this remaining amount estimation process, the control unit 10 rotates the transport roller AR by a predetermined number of rotations while the operations of the carriage CR and the ejection head HD are stopped by the function of the print control unit P2. And the control part 10 acquires the rotation speed of the roll RR rotated following the rotation of the conveyance roller AR by a predetermined rotation speed by the function of the printing control part P2. And by the function of the printing control unit P2, the control unit 10 causes the roll RR to be based on the ratio between the rotation speed of the transport roller AR and the rotation speed of the roll RR and the diameter (known) of the transport roller AR. The diameter (roll diameter) is specified. Further, the control unit 10 estimates the remaining amount of the roll paper M in the roll RR based on the roll diameter of the roll RR by the function of the print control unit P2.

ここで、残量推定処理において搬送ローラーARとロール紙Mとの間に滑りが生じると、正確にロールRRのロール径が測定できなくなる。一方、張力状態に応じてリールREがロール紙Mを巻き取ると、ロール紙Mの張力が不安定となり、搬送ローラーARとロール紙Mとの間に滑りが生じさせ得る。従って、印刷制御部P2の機能により制御部10は、残量推定処理において搬送ローラーARを回転駆動させる期間においては、リールREの動作を停止させる。そして、印刷制御部P2の機能により制御部10は、残量推定処理において搬送ローラーARを回転駆動させる期間が終了すると、リールREの動作タイミングが到来したとして、ロール紙Mを巻き取るように巻芯RE1を回転駆動させる動作要求Qを出力する。これにより、残量推定処理にて生じたロール紙Mの弛みを解消できる。   Here, if slip occurs between the transport roller AR and the roll paper M in the remaining amount estimation process, the roll diameter of the roll RR cannot be measured accurately. On the other hand, when the reel RE winds the roll paper M according to the tension state, the tension of the roll paper M becomes unstable, and slippage may occur between the transport roller AR and the roll paper M. Accordingly, the control unit 10 stops the operation of the reel RE during the period in which the transport roller AR is rotationally driven in the remaining amount estimation process by the function of the print control unit P2. Then, the function of the printing control unit P2 allows the control unit 10 to wind the roll paper M so that the reel RE comes at the operation timing when the period during which the conveyance roller AR is rotationally driven in the remaining amount estimation process has ended. An operation request Q for rotating the lead RE1 is output. Thereby, the slack of the roll paper M generated in the remaining amount estimation process can be eliminated.

リール制御部P3は、動作要求Qが出力された場合に、リールREを動作させるためのリール制御処理を実行するとともに、待機状態を解除するための応答メッセージGを当該動作要求Qの出力元のタスクに出力するリールタスクを制御部10に実行させるモジュールである。このリールタスクによって制御部10は、センサー監視タスクと印刷制御タスクとの間のタスク間通信によって動作要求Qを受け付ける。リールタスクによって制御部10は、動作要求Qを受け付けると、原則として、当該動作要求Qに応じてリール制御処理を実行する。リール制御処理は、準備処理と駆動処理とを含む。準備処理においてリール制御部P3の機能により制御部10は、リールREの動作条件を設定する。例えば、リール制御部P3の機能により制御部10は、リールREの動作条件として、ロールモーター13bを回転駆動させる方向や速度や期間等を動作要求Q等に基づいて設定する。この準備処理においてリールREの動作条件を設定すると、リール制御部P3の機能により制御部10は、当該動作条件に基づいてロールモーター13bを駆動させる駆動処理を実行する。これにより、ロールモーター13bが駆動し、リールREの巻芯RE1が回転駆動する。   When the operation request Q is output, the reel control unit P3 executes a reel control process for operating the reel RE and outputs a response message G for releasing the standby state from the output source of the operation request Q. This is a module for causing the control unit 10 to execute a reel task to be output to a task. With this reel task, the control unit 10 receives the operation request Q through inter-task communication between the sensor monitoring task and the print control task. When the operation request Q is received by the reel task, in principle, the control unit 10 executes a reel control process in accordance with the operation request Q. The reel control process includes a preparation process and a drive process. In the preparation process, the control unit 10 sets the operation condition of the reel RE by the function of the reel control unit P3. For example, the function of the reel control unit P3 causes the control unit 10 to set, as the operation condition of the reel RE, the direction, speed, period, and the like for rotationally driving the roll motor 13b based on the operation request Q and the like. When the operation condition of the reel RE is set in this preparation process, the control unit 10 executes a driving process for driving the roll motor 13b based on the operation condition by the function of the reel control unit P3. As a result, the roll motor 13b is driven, and the core RE1 of the reel RE is rotationally driven.

上述のように、リールタスクによって制御部10は、動作要求Qを受け付けると、原則として、当該動作要求Qに応じてリール制御処理を実行する。ただし、リールタスクによって制御部10は、動作要求Qが準備処理の実行中に出力されていた場合には、当該動作要求Qに応じた準備処理を実行させない。すなわち、リールタスクによって制御部10は、先行の動作要求Qに応じた準備処理をすでに実行している場合には、後続の動作要求Qを受け付けても準備処理を実行させない。   As described above, when the operation request Q is received by the reel task, the control unit 10 executes the reel control process according to the operation request Q in principle. However, when the operation request Q is output during the execution of the preparation process, the control unit 10 does not cause the preparation process corresponding to the operation request Q to be executed by the reel task. In other words, when the reel task performs the preparation process corresponding to the preceding operation request Q, the control unit 10 does not execute the preparation process even if the subsequent operation request Q is received.

さらに、リールタスクによって制御部10は、動作要求Qを受け付けると、即座に、応答メッセージGを当該動作要求Qの出力元のタスクに出力する。動作要求Qが準備処理の非実行時に出力されていた場合、リールタスクによって制御部10は、動作要求Qの出力と同時に動作要求Qを受け付け、即座に、応答メッセージGを当該動作要求Qの出力元のタスクに出力する。一方、動作要求Qが準備処理の実行中に出力されていた場合、リールタスクによって制御部10は、実行中の準備処理の終了と同時に動作要求Qを受け付け、即座に、応答メッセージGを当該動作要求Qの出力元のタスクに出力する。すなわち、リールタスクによって制御部10は、実行中の準備処理が終了すると、当該準備処理に続いて実行する駆動処理の終了を待つことなく、応答メッセージGを出力する。制御部10は、応答メッセージGが出力されると、当該応答メッセージGの出力先のタスクの待機状態を解除する。これにより、動作要求Qが準備処理の実行中に出力されていたか否かに拘わらず、当該動作要求Qの出力元のタスクの待機状態を早期に解除できる。   Furthermore, when the control unit 10 accepts the operation request Q by the reel task, it immediately outputs a response message G to the task that is the source of the operation request Q. When the operation request Q is output when the preparation process is not executed, the control unit 10 receives the operation request Q simultaneously with the output of the operation request Q by the reel task, and immediately outputs a response message G of the operation request Q. Output to the original task. On the other hand, if the operation request Q is output during the execution of the preparation process, the control unit 10 accepts the operation request Q simultaneously with the end of the execution of the preparation process being executed, and immediately sends the response message G to the operation message. Output to the task that is the source of request Q. That is, when the preparatory process being executed is completed by the reel task, the control unit 10 outputs the response message G without waiting for the end of the drive process executed following the preparatory process. When the response message G is output, the control unit 10 cancels the standby state of the task to which the response message G is output. As a result, regardless of whether or not the operation request Q was output during the execution of the preparation process, the standby state of the task from which the operation request Q is output can be released early.

(2)プリンターの動作:
図3A〜図3Cは、プリンター1の制御部10が実行する各タスクのシーケンス図である。図3Aは、センサー監視タスクによって制御部10が、ロール紙Mを巻き取るようにリールREを動作させる手動モードのスイッチSWの操作状態を検知し、その後、図2Bに示すようにロール紙Mが低張力状態(S1:受光,S2:遮光)であることを検知した場合の動作例を示す。図3Aに示すように、リールタスクによって制御部10は、動作要求Qに応じて準備処理を開始すると同時にRAM10bの所定領域に記録されている有効フラグを消去(OFF)する。リールタスクによって制御部10は、準備処理が終了すると同時にRAM10bに有効フラグを記録する。リールタスクによって制御部10は、動作要求Qが出力されたタイミングにおいて有効フラグが記録されていたか否かを判定する。動作要求Qが出力されたタイミングにおいて有効フラグが記録されていた場合、リールタスクによって制御部10は、動作要求Qに応じて準備処理を実行する。一方、動作要求Qが出力されたタイミングにおいて有効フラグが記録されてなかった場合、リールタスクによって制御部10は、動作要求Qに応じた準備処理を実行しない。以下、図3Aの動作例を時系列に説明する。
(2) Printer operation:
3A to 3C are sequence diagrams of each task executed by the control unit 10 of the printer 1. In FIG. 3A, the control unit 10 detects the operation state of the switch SW in the manual mode for operating the reel RE so as to wind up the roll paper M by the sensor monitoring task, and then the roll paper M is detected as shown in FIG. 2B. An operation example when it is detected that the state is a low tension state (S1: light reception, S2: light shielding) is shown. As shown in FIG. 3A, the control unit 10 starts the preparation process in response to the operation request Q by the reel task, and at the same time, erases (OFF) the valid flag recorded in the predetermined area of the RAM 10b. By the reel task, the control unit 10 records a valid flag in the RAM 10b at the same time as the preparation process is completed. By the reel task, the control unit 10 determines whether or not the valid flag is recorded at the timing when the operation request Q is output. When the valid flag is recorded at the timing when the operation request Q is output, the control unit 10 performs a preparation process according to the operation request Q by the reel task. On the other hand, when the valid flag is not recorded at the timing when the operation request Q is output, the control unit 10 does not execute the preparation process according to the operation request Q by the reel task. Hereinafter, the operation example of FIG. 3A will be described in time series.

図3Aにおいて、まずセンサー監視タスクによって制御部10は、手動モードのスイッチSWの操作状態を検知したことをトリガーとして最初の動作要求Qを出力し、センサー監視タスクを待機状態(ハッチング)とする。すると、リールタスクによって制御部10は、動作要求Qが出力されたタイミングにおいて有効フラグが記録されていたか否かを判定する。図3Aの場合、最初の動作要求Qが出力されたタイミングでは準備処理が実行中でないため、有効フラグが記録されていることとなる。従って、リールタスクによって制御部10は、最初の動作要求Qに応じて準備処理を開始するとともに、即座に、応答メッセージGを動作要求Qの送信元のセンサー監視タスクに出力する。これにより、センサー監視タスクの待機状態は早期に解除され、センサー監視タスクによって制御部10は、各センサーS1〜S6の監視を早期に再開できる。次に、センサー監視タスクによって制御部10は、最初の動作要求Qに応じた準備処理の終了前において、ロール紙Mが低張力状態であることを検知したことをトリガーとして2回目の動作要求Qを出力し、センサー監視タスクを待機状態とする。   In FIG. 3A, the control unit 10 first outputs a first operation request Q triggered by the detection of the operation state of the switch SW in the manual mode by the sensor monitoring task, and puts the sensor monitoring task into a standby state (hatching). Then, by the reel task, the control unit 10 determines whether or not a valid flag has been recorded at the timing when the operation request Q is output. In the case of FIG. 3A, since the preparation process is not being executed at the timing when the first operation request Q is output, a valid flag is recorded. Therefore, the control unit 10 starts the preparation process in response to the first operation request Q by the reel task, and immediately outputs the response message G to the sensor monitoring task that is the transmission source of the operation request Q. Thereby, the standby state of the sensor monitoring task is released early, and the control unit 10 can resume monitoring of the sensors S1 to S6 early by the sensor monitoring task. Next, the sensor monitoring task causes the control unit 10 to detect that the roll paper M is in a low tension state before the end of the preparation process corresponding to the first operation request Q, and to trigger the second operation request Q. Is output and the sensor monitoring task is set to the standby state.

次に、最初の動作要求Qに応じた準備処理が終了する。最初の動作要求Qに応じた準備処理が終了すると、リールタスクによって制御部10は、駆動処理を実行しリールモーター13cを駆動させるとともに、準備処理の実行中に消去されていた有効フラグを再度記録する。さらに、最初の動作要求Qに応じた準備処理が終了すると、リールタスクによって制御部10は、準備処理の実行中に出力されていた動作要求Qを受け付ける。そして、リールタスクによって制御部10は、2回目の動作要求Qが出力されたタイミングにおいて有効フラグが記録されていたか否かを判定する。図3Aの場合、2回目の動作要求Qが出力されたタイミングでは最初の動作要求Qに応じた準備処理が実行中であるため、有効フラグが消去されていることとなる。従って、リールタスクによって制御部10は、最初の動作要求Qに応じて準備処理を実行することなく、即座に、応答メッセージGを2回目の動作要求Qの送信元のセンサー監視タスクに出力する。すなわち、最初の動作要求Qに応じた駆動処理の終了を待つことなく、応答メッセージGを2回目の動作要求Qの送信元のセンサー監視タスクに出力する。これにより、センサー監視タスクの待機状態は早期に解除され、センサー監視タスクによって制御部10は、各センサーS1〜S6の監視を早期に再開できる。従って、各センサーS1〜S6の監視結果に基づくプリンター1の各処理を続行することができ、プリンター1が動作不能となることが防止できる。   Next, the preparation process corresponding to the first operation request Q ends. When the preparation process corresponding to the first operation request Q is completed, the control unit 10 executes the driving process to drive the reel motor 13c by the reel task, and re-records the valid flag that has been erased during the execution of the preparation process. To do. Further, when the preparation process corresponding to the first operation request Q is completed, the control unit 10 receives the operation request Q output during execution of the preparation process by the reel task. Then, by the reel task, the control unit 10 determines whether or not the valid flag is recorded at the timing when the second operation request Q is output. In the case of FIG. 3A, since the preparation process corresponding to the first operation request Q is being executed at the timing when the second operation request Q is output, the valid flag is erased. Accordingly, the control unit 10 immediately outputs the response message G to the sensor monitoring task that is the transmission source of the second operation request Q without executing the preparation process according to the first operation request Q by the reel task. That is, without waiting for the end of the driving process corresponding to the first operation request Q, the response message G is output to the sensor monitoring task that is the transmission source of the second operation request Q. Thereby, the standby state of the sensor monitoring task is released early, and the control unit 10 can resume monitoring of the sensors S1 to S6 early by the sensor monitoring task. Therefore, each process of the printer 1 based on the monitoring results of the sensors S1 to S6 can be continued, and the printer 1 can be prevented from becoming inoperable.

図3Bは、センサー監視タスクによって制御部10が、ロール紙Mを巻き取るようにリールREを動作させる手動モードのスイッチSWの操作状態を2回連続して検知した場合の動作例を示す。例えば、ユーザーが短期間の間にリールREの動作モードを、自動モード→手動モード(最初)→自動モード→手動モード(2回目)に切り替えるようにスイッチSWを操作した場合には、手動モードのスイッチSWの操作状態が2回連続して検知される。図3Bの場合も、図3Aの場合と同様に、最初の動作要求Qに応じた準備処理の終了後、即座に、2回目の動作要求Qの送信元のセンサー監視タスクに応答メッセージGが出力される。これにより、ユーザーがスイッチSWを連続して操作した場合でも、各センサーS1〜S6の監視結果に基づくプリンター1の各処理を続行することができ、プリンター1が動作不能となることが防止できる。   FIG. 3B shows an operation example when the controller 10 detects the operation state of the switch SW in the manual mode for operating the reel RE so as to wind up the roll paper M twice continuously by the sensor monitoring task. For example, if the user operates the switch SW so that the operation mode of the reel RE is switched from automatic mode → manual mode (first) → automatic mode → manual mode (second time) in a short period of time, The operation state of the switch SW is detected twice in succession. In the case of FIG. 3B, as in the case of FIG. 3A, the response message G is output to the sensor monitoring task that is the transmission source of the second operation request Q immediately after the preparation process corresponding to the first operation request Q is completed. Is done. Thereby, even when the user operates the switch SW continuously, each process of the printer 1 based on the monitoring results of the sensors S1 to S6 can be continued, and the printer 1 can be prevented from becoming inoperable.

図3Cは、印刷制御タスクによって制御部10が印刷シーケンスを実行する場合の動作例を示す。この印刷シーケンスにおいて、制御部10は、ロール径を測定することとする。ロール径の測定においては、ロール紙Mの張力変動を抑制するためにリールREにてロール紙Mの巻き取り動作を行わせることなく、ロール紙Mが所定量搬送される。図3Cにおいて、印刷制御タスクによって制御部10は、ロール径の測定が終了するタイミングにおいて、リールREの動作タイミングTが到来したこととする。そして、印刷制御タスクによって制御部10は、ロール径の測定が終了すると同時に、ロール径の測定において弛んだロール紙MをリールREによって巻き取る最初の動作要求Qを出力する。そして、最初の動作要求Qに応じた準備処理の実行中において、センサー監視タスクによって制御部10は、図2Bに示すようにロール紙Mが低張力状態(S1:受光,S2:遮光)であることを検知し、2回の動作要求Qを出力している。2回の動作要求Qの出力によりセンサー監視タスクは待機状態となるが、最初の動作要求Qに応じた準備処理の終了後に2回の動作要求Qの応答メッセージが出力されるため、センサー監視タスクの待機状態を早期に解除することができる。従って、印刷制御タスクとセンサー監視タスクとが連続して複数の動作要求Qを出力する場合でも、プリンター1が動作不能となることが防止できる。   FIG. 3C shows an operation example when the control unit 10 executes the print sequence by the print control task. In this printing sequence, the control unit 10 measures the roll diameter. In the measurement of the roll diameter, the roll paper M is conveyed by a predetermined amount without causing the reel RE to take up the roll paper M in order to suppress the tension fluctuation of the roll paper M. In FIG. 3C, it is assumed that the operation timing T of the reel RE has arrived at the timing when the measurement of the roll diameter is completed by the control unit 10 by the print control task. Then, at the same time as the measurement of the roll diameter is completed, the control unit 10 outputs the first operation request Q for winding the roll paper M loosened in the measurement of the roll diameter by the reel RE. Then, during the execution of the preparation process corresponding to the first operation request Q, the control unit 10 causes the roll paper M to be in a low tension state (S1: light reception, S2: light shielding) as shown in FIG. 2B by the sensor monitoring task. Is detected, and two operation requests Q are output. The sensor monitoring task enters a standby state by the output of the operation request Q twice, but since the response message of the operation request Q is output twice after completion of the preparation process corresponding to the first operation request Q, the sensor monitoring task The standby state can be released early. Therefore, even when the print control task and the sensor monitoring task output a plurality of operation requests Q in succession, it is possible to prevent the printer 1 from becoming inoperable.

(3)変形例:
前記実施形態では画像形成装置を含むプリンター1がインク滴を吐出させる例を示したが、インク滴以外の液滴を吐出させてもよい。さらに、液滴は、ピエゾ素子の機械変化による加圧によって吐出されるものに限られず、気泡の発生による加圧によって吐出されてもよい。さらに、被記録媒体は、ロール紙Mに限らず、単票紙であってもよいし、紙以外であってもよい。
(3) Modification:
In the embodiment, the example in which the printer 1 including the image forming apparatus ejects ink droplets is shown, but droplets other than ink droplets may be ejected. Furthermore, the droplets are not limited to those ejected by pressurization due to mechanical changes of the piezo elements, but may be ejected by pressurization due to the generation of bubbles. Further, the recording medium is not limited to the roll paper M but may be a cut sheet or other than paper.

1…プリンター、10…制御部、11…吐出ヘッド制御回路、12…キャリッジ制御回路、12a…キャリッジモーター、13…搬送制御回路、13a…搬送モーター、13b…ロールモーター、13c…リールモーター、14…センサー制御回路、P…制御プログラム、P1…センサー監視部、P2…印刷制御部、P3…リール制御部、AR…搬送ローラー、CR…キャリッジ、RE…リール、RE1…巻芯、RE2…保持部、RE3…テンションバー、RE3a…アーム部、RE3b…接続端、RE3c…自由端、RE3d…遮光板、RR…ロール、S1…上側光センサー、S2…下側光センサー、S3…温度センサー、S4…ロータリーエンコーダー、S5…紙端センサー、S6…スイッチセンサー、G…応答メッセージ、HD…吐出ヘッド、K…プラテン、M…ロール紙、PR…従動ローラー、Q…動作要求、W…印刷部。   DESCRIPTION OF SYMBOLS 1 ... Printer, 10 ... Control part, 11 ... Discharge head control circuit, 12 ... Carriage control circuit, 12a ... Carriage motor, 13 ... Conveyance control circuit, 13a ... Conveyance motor, 13b ... Roll motor, 13c ... Reel motor, 14 ... Sensor control circuit, P ... control program, P1 ... sensor monitoring unit, P2 ... print control unit, P3 ... reel control unit, AR ... transport roller, CR ... carriage, RE ... reel, RE1 ... core, RE2 ... holding unit, RE3 ... tension bar, RE3a ... arm part, RE3b ... connection end, RE3c ... free end, RE3d ... light shielding plate, RR ... roll, S1 ... upper light sensor, S2 ... lower light sensor, S3 ... temperature sensor, S4 ... rotary Encoder, S5 ... Paper edge sensor, S6 ... Switch sensor, G ... Response message, HD ... Discharge Head, K ... platen, M ... roll paper, PR ... driven roller, Q ... operation request, W ... printing unit.

Claims (3)

印刷部に搬送された被記録媒体に対して液滴を吐出する吐出ヘッドと、前記被記録媒体を前記印刷部へと巻き出すロールと、前記印刷部から排出された前記被記録媒体を巻き取るリールと、前記ロールと前記リールとの間で前記印刷部を経由するように前記被記録媒体を搬送する搬送ローラーと、を備える画像形成装置であって、
前記搬送ローラーと前記リールとの間における前記被記録媒体の張力状態を検知する張力センサーを含む複数のセンサーを監視し、前記張力状態が所定状態となった場合に前記リールの動作を要求する動作要求を出力して待機状態となるタスクであるセンサー監視タスクと、
前記吐出ヘッドと前記搬送ローラーと前記ロールと前記リールとを連携して制御する印刷シーケンスを実行させ、当該印刷シーケンスにおいて前記リールの動作タイミングが到来した場合に前記動作要求を出力して前記待機状態となるタスクである印刷制御タスクと、
前記動作要求が出力された場合に、前記リールを動作させるためのリール制御処理を実行するとともに、前記待機状態を解除するための応答メッセージを当該動作要求の出力元のタスクに出力するリールタスクと、を実行する制御部と、を備え、
前記リール制御処理は、準備処理と前記準備処理後に動作する駆動処理とを有し、
前記リールタスクは
前記準備処理を実行する前に前記動作要求を入力した場合に、前記準備処理を実行し、前記応答メッセージを当該動作要求の出力元のタスクに出力し、
前記準備処理の実行中に前記動作要求を入力した場合に、前記準備処理終了時、前記応答メッセージを当該動作要求の出力元のタスクに出力する、
画像形成装置。
A discharge head that discharges droplets to a recording medium conveyed to a printing unit, a roll that unwinds the recording medium to the printing unit, and a recording medium that is discharged from the printing unit An image forming apparatus comprising: a reel; and a transport roller configured to transport the recording medium so as to pass through the printing unit between the roll and the reel.
An operation that monitors a plurality of sensors including a tension sensor that detects a tension state of the recording medium between the conveyance roller and the reel, and requests the operation of the reel when the tension state becomes a predetermined state. Sensor monitoring task, which is a task that outputs a request and enters standby state,
A print sequence for controlling the discharge head, the transport roller, the roll, and the reel in cooperation is executed, and when the operation timing of the reel comes in the print sequence, the operation request is output and the standby state A print control task that is
A reel task that executes a reel control process for operating the reel when the operation request is output, and outputs a response message for releasing the standby state to a task that outputs the operation request; , and a control unit for executing,
The reel control process includes a preparation process and a driving process that operates after the preparation process,
The reel task,
When the operation request is input before executing the preparation process, the preparation process is executed, and the response message is output to the task that is the output source of the operation request,
When the operation request is input during execution of the preparation process , when the preparation process ends, the response message is output to the task that is the output source of the operation request.
Image forming apparatus.
前記センサー監視タスクによって前記制御部は、前記リールの動作を指示するためのスイッチの操作状態を監視し、前記操作状態が所定状態となった場合に前記動作要求を出力して前記センサー監視タスクを前記待機状態とする、
請求項1に記載の画像形成装置。
According to the sensor monitoring task, the control unit monitors an operation state of a switch for instructing the operation of the reel, and outputs the operation request when the operation state becomes a predetermined state to execute the sensor monitoring task. The standby state,
The image forming apparatus according to claim 1.
前記リールタスクによって前記制御部は、前記リール制御処理の実行中に前記動作要求が出力された場合に、当該動作要求に応じた前記リール制御処理を実行させない、
請求項1または請求項2のいずれかに記載の画像形成装置。
When the operation request is output during execution of the reel control process, the control unit does not execute the reel control process according to the operation request by the reel task.
The image forming apparatus according to claim 1.
JP2012028108A 2012-02-13 2012-02-13 Image forming apparatus Expired - Fee Related JP5953789B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012028108A JP5953789B2 (en) 2012-02-13 2012-02-13 Image forming apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012028108A JP5953789B2 (en) 2012-02-13 2012-02-13 Image forming apparatus

Publications (2)

Publication Number Publication Date
JP2013163335A JP2013163335A (en) 2013-08-22
JP5953789B2 true JP5953789B2 (en) 2016-07-20

Family

ID=49175020

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012028108A Expired - Fee Related JP5953789B2 (en) 2012-02-13 2012-02-13 Image forming apparatus

Country Status (1)

Country Link
JP (1) JP5953789B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7739960B2 (en) * 2021-11-15 2025-09-17 セイコーエプソン株式会社 Printing device and estimation method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04112060A (en) * 1990-09-03 1992-04-14 Omron Corp Feed controller for printer
JP2752953B2 (en) * 1996-04-18 1998-05-18 甲府日本電気株式会社 Control method of paper transport device of printer
JP2002073301A (en) * 2000-09-04 2002-03-12 Seiko Epson Corp Information processing system and method, printer device, and storage medium storing computer readable program
JP4399151B2 (en) * 2002-09-18 2010-01-13 武藤工業株式会社 Winding device for recording device
JP5081602B2 (en) * 2007-12-14 2012-11-28 株式会社ミマキエンジニアリング Printer device

Also Published As

Publication number Publication date
JP2013163335A (en) 2013-08-22

Similar Documents

Publication Publication Date Title
JP7292821B2 (en) Sheet feeding device and printing device
US9415589B2 (en) Printing apparatus and method for color-correcting printing on recording medium
US10597248B2 (en) Medium feeding apparatus
US9102176B2 (en) Image forming apparatus, image forming method, and non-transitory computer-readable storage medium
CN108656736B (en) Printing device and control method of printing device
JP5953789B2 (en) Image forming apparatus
JP2009226839A (en) Image recording device
US8439475B2 (en) Image recording apparatus and method for controlling the apparatus
JP2012166324A (en) Paper cutting apparatus and printing apparatus
JP2012045860A (en) Device and method of recording
JP5578248B2 (en) Recording device
JP5195318B2 (en) Motor control apparatus, recording apparatus, and motor control method
JP5031289B2 (en) Image recording device
JP6753463B2 (en) Recording control method of an inkjet recording device and an inkjet recording device
EP2921443B1 (en) Recording apparatus, method for transporting recording medium, and method for notifying information of remaining amount of recording medium
JP2015139891A (en) Printing control apparatus, printing apparatus, and printing method
JP2014043025A (en) Recording apparatus, conveyance apparatus, and control method
JP7293444B2 (en) printer
US20080179824A1 (en) Medium transporting apparatus and method
JP6427918B2 (en) Feeding device and image recording device
JP2007245626A (en) Image forming apparatus
JP6384142B2 (en) Liquid ejection device
JP5751320B2 (en) Recording apparatus and recording method
JP5488814B2 (en) Recording device, control program
JP2008168984A (en) Medium conveying apparatus and medium conveying method

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20150107

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150119

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20151013

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20151020

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20151214

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160530

R150 Certificate of patent or registration of utility model

Ref document number: 5953789

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees