JP2022117609A - Printing apparatus and printing apparatus control method - Google Patents

Printing apparatus and printing apparatus control method Download PDF

Info

Publication number
JP2022117609A
JP2022117609A JP2021014200A JP2021014200A JP2022117609A JP 2022117609 A JP2022117609 A JP 2022117609A JP 2021014200 A JP2021014200 A JP 2021014200A JP 2021014200 A JP2021014200 A JP 2021014200A JP 2022117609 A JP2022117609 A JP 2022117609A
Authority
JP
Japan
Prior art keywords
optical sensor
value
variable resistance
shift register
resistance
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
JP2021014200A
Other languages
Japanese (ja)
Inventor
祐輔 濱野
Yusuke Hamano
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 JP2021014200A priority Critical patent/JP2022117609A/en
Publication of JP2022117609A publication Critical patent/JP2022117609A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Handling Of Sheets (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

To provide a printing apparatus in which a suitable resistance value is set for an optical sensor.SOLUTION: The printing apparatus is provided, comprising: a variable resistance circuit configured to include a plurality of resistance portions connected to each other and one or more driving elements that supply electric currents to each of the plurality of resistance portions; a first optical sensor and a second optical sensor that are connected to the variable resistance circuit; a selection circuit that selects whether the first optical sensor is connected to the variable resistance circuit or the second optical sensor is connected to the variable resistance circuit; a shift resistor that outputs a signal for selecting some or all of the one or more driving elements and turning on the elements; and a control unit that obtains a detected value by the first optical sensor or by the second optical sensor, controls the shift resistor on the basis of the detected value, and controls selection performed by the selection circuit.SELECTED DRAWING: Figure 4

Description

本発明は、印刷装置、及び印刷装置の制御方法に関する。 The present invention relates to a printing device and a method of controlling the printing device.

一般的に、光学センサーは感度バラツキが大きいことが知られている。このため、光学センサーを用いた検出器では、感度バラツキを吸収するために、光学センサーごとに応じた負荷抵抗値を設定する必要があった。このことは、特に、AD(Analog to Digital)値の読みを必要とする回路において必要であった。なお、光学センサーは、例えば、フォトセンサーなどと呼ばれてもよい。 It is generally known that optical sensors have large variations in sensitivity. For this reason, in detectors using optical sensors, it is necessary to set a load resistance value according to each optical sensor in order to absorb variations in sensitivity. This was particularly necessary in circuits requiring reading of AD (Analog to Digital) values. Note that the optical sensor may be called, for example, a photosensor.

一例として、特許文献1に記載されたプリンターでは、長尺状の紙のラベル間ギャップやマークを検出する光学センサーの調整を行うために、ボリューム抵抗器が用いられている(特許文献1の段落0045を参照。)。なお、ボリューム抵抗器としては、例えば、半固定抵抗器、トリマポテンショ、トリマー式アナログ可変抵抗器などがある。 As an example, in the printer described in Patent Document 1, a volume resistor is used to adjust an optical sensor that detects the gap between labels and marks on long paper (paragraph of Patent Document 1 0045). Note that the volume resistor includes, for example, a semi-fixed resistor, a trimmer potentiometer, a trimmer type analog variable resistor, and the like.

特開2005-041086号公報JP 2005-041086 A

上述のように、光学センサーでは感度にバラツキがあるため、発光側であるフォトダイオードの側、または、受光側であるフォトトランジスターの側の回路において、抵抗値による調整が必要である。 As described above, since optical sensors have variations in sensitivity, it is necessary to adjust the resistance value in the circuit on the photodiode side, which is the light emitting side, or on the side of the phototransistor, which is the light receiving side.

例えば、特許文献1に記載された技術では、ボリューム抵抗器が用いられているが、ボリューム抵抗器は機械的な構造を利用するため、手動でボリューム抵抗器の抵抗値を調整する必要があった。このため、ボリューム抵抗器の抵抗値が調整された後に、当該ボリューム抵抗器が修理やメンテナンスで交換されてしまうと、再度、新たなボリューム抵抗器を手動で調整する必要があり、手間が掛かる場合があった。また、ボリューム抵抗器は、手動で調整された後に、調整ツマミが動いてしまうことがあることから、ボリューム抵抗器を接着材で固定する必要がある場合があった。 For example, in the technique described in Patent Document 1, a volume resistor is used, but since the volume resistor uses a mechanical structure, it was necessary to manually adjust the resistance value of the volume resistor. . Therefore, if the volume resistor is replaced for repair or maintenance after the resistance value of the volume resistor has been adjusted, it is necessary to manually adjust the new volume resistor again, which can be time-consuming. was there. Also, since the adjustment knob may move after the volume resistor is manually adjusted, it may be necessary to fix the volume resistor with an adhesive.

具体例として、従来では、光学センサーごとに最適な負荷抵抗値を設定するために、光学センサーの負荷抵抗に、トリマー式アナログ可変抵抗が使用される場合があった。そして、光学センサーからの出力電圧が期待値になるように、当該トリマー式アナログ可変抵抗のトリマーが手動により順次変化させられて、当該トリマー式アナログ可変抵抗の可変抵抗値が調整される場合があった。しかしながら、この場合、例えば、メンテナンス等で可変抵抗回路が搭載された基板が交換される際に、可変抵抗値の引き継ぎを行うことができないため、手動により可変抵抗値を再度調整することが必要であった。 As a specific example, conventionally, in order to set an optimum load resistance value for each optical sensor, a trimmer-type analog variable resistor was sometimes used as the load resistance of the optical sensor. In some cases, the variable resistance value of the trimmer-type analog variable resistor is adjusted by sequentially changing the trimmer of the trimmer-type analog variable resistor so that the output voltage from the optical sensor becomes the expected value. rice field. However, in this case, for example, when the board on which the variable resistance circuit is mounted is replaced due to maintenance or the like, the variable resistance value cannot be inherited, so it is necessary to manually readjust the variable resistance value. there were.

他の具体例として、従来では、光学センサーごとに最適な負荷抵抗値を設定するために、光学センサーの負荷抵抗に、デジタルポテンションメータ(DPM)が使用される場合があった。そして、光学センサーからの出力電圧が期待値になるように、当該DPMの設定値が手動で変化させられることで当該DPMの抵抗値が順次変化させられて、当該DPMの可変抵抗値が調整される場合があった。 As another specific example, conventionally, in some cases, a digital potentiometer (DPM) was used for the load resistance of the optical sensor in order to set the optimum load resistance value for each optical sensor. Then, the resistance value of the DPM is sequentially changed by manually changing the setting value of the DPM so that the output voltage from the optical sensor becomes the expected value, and the variable resistance value of the DPM is adjusted. there was a case.

しかしながら、この場合、例えば、メンテナンス等で可変抵抗回路が搭載された基板が交換される際に、不揮発性メモリー等を用いてDPMの設定値を引き継ぐことが可能であるが、DPMは、一般的に、±30%程度の抵抗値バラツキを有している。このため、DPMの設定値の引き継ぎが行われても、引き継ぎ後のDPMの可変抵抗値が期待値と比べて大きくずれてしまう場合があった。そして、このような引き継ぎ時のバラツキが許容できない場合には、可変抵抗値を再度調整することが必要であった。 However, in this case, for example, when the board on which the variable resistance circuit is mounted is replaced due to maintenance or the like, it is possible to take over the set values of the DPM using a non-volatile memory or the like. In addition, there is a variation in resistance value of about ±30%. For this reason, even if the DPM set value is handed over, the variable resistance value of the DPM after the handover may deviate greatly from the expected value. In addition, when such variation at the time of handover cannot be tolerated, it is necessary to readjust the variable resistance value.

本発明に係る印刷装置の一態様は、
互いに接続された複数の抵抗部と、前記複数の抵抗部の各々に電流を流す1以上の駆動素子と、を含んで構成される可変抵抗回路と、
前記可変抵抗回路に接続される第1光学センサー及び第2光学センサーと、
前記第1光学センサーを前記可変抵抗回路と接続するのか、前記第2光学センサーを前記可変抵抗回路と接続するのかを選択する選択回路と、
前記1以上の前記駆動素子のうちの一部または全部の前記駆動素子を選択してオンにする信号を出力するシフトレジスタと、
前記第1光学センサー、または、前記第2光学センサーの検出値を取得し、前記検出値に基づいて前記シフトレジスタを制御するとともに、前記選択回路の選択を制御する制御部と、
を備える。
One aspect of the printing apparatus according to the present invention includes:
a variable resistance circuit including a plurality of resistors connected to each other and one or more drive elements for causing current to flow through each of the plurality of resistors;
a first optical sensor and a second optical sensor connected to the variable resistance circuit;
a selection circuit for selecting whether to connect the first optical sensor to the variable resistance circuit or to connect the second optical sensor to the variable resistance circuit;
a shift register that outputs a signal to select and turn on some or all of the one or more drive elements;
a control unit that acquires a detection value of the first optical sensor or the second optical sensor, controls the shift register based on the detection value, and controls selection of the selection circuit;
Prepare.

本発明に係る印刷装置の制御方法の一態様は、
印刷装置の制御方法であって、
前記印刷装置は、
互いに接続された複数の抵抗部と、前記複数の抵抗部の各々に電流を流す1以上の駆動素子と、を含んで構成される可変抵抗回路と、
前記可変抵抗回路に接続される第1光学センサー及び第2光学センサーと、
前記第1光学センサーを前記可変抵抗回路と接続するのか、前記第2光学センサーを前記可変抵抗回路と接続するのかを選択する選択回路と、
前記1以上の前記駆動素子のうちの一部または全部の前記駆動素子を選択してオンにする信号を出力するシフトレジスタと、
を備え、
前記印刷装置の制御部は、
前記選択回路の選択を制御する選択工程と、
前記選択回路が選択した前記第1光学センサー、または、前記第2光学センサーの検出値を取得し、前記検出値に基づいて前記シフトレジスタを制御するレジスター制御工程と、
を含む。
One aspect of the method for controlling a printing apparatus according to the present invention includes:
A control method for a printing device, comprising:
The printing device
a variable resistance circuit including a plurality of resistors connected to each other and one or more drive elements for causing current to flow through each of the plurality of resistors;
a first optical sensor and a second optical sensor connected to the variable resistance circuit;
a selection circuit for selecting whether to connect the first optical sensor to the variable resistance circuit or to connect the second optical sensor to the variable resistance circuit;
a shift register that outputs a signal to select and turn on some or all of the one or more drive elements;
with
The control unit of the printing device,
a selection step of controlling selection of the selection circuit;
a register control step of acquiring the detection value of the first optical sensor or the second optical sensor selected by the selection circuit and controlling the shift register based on the detection value;
including.

印刷装置の概略的な構成を示す図である。1 is a diagram showing a schematic configuration of a printing device; FIG. 記録紙の構成を示す平面図である。2 is a plan view showing the structure of recording paper; FIG. 印刷装置の制御構成を示す図である。3 is a diagram showing a control configuration of the printing device; FIG. 検出部及び制御部の構成を示す図である。It is a figure which shows the structure of a detection part and a control part. シフトレジスタの制御値と可変抵抗回路の合成抵抗値との関係を示す図である。FIG. 4 is a diagram showing the relationship between the control value of the shift register and the combined resistance value of the variable resistance circuit; 制御部によって行われる制御値決定処理の手順の一例を示す図である。FIG. 5 is a diagram showing an example of a procedure of control value determination processing performed by a control unit; 制御部によって行われる制御値計算処理の手順の一例を示す図である。FIG. 10 is a diagram showing an example of a procedure of control value calculation processing performed by a control unit; 反射型の光学式センサーを用いる場合の構成を示す図である。FIG. 10 is a diagram showing a configuration when using a reflective optical sensor;

以下、本発明の実施形態について、図面を参照して説明する。 BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, embodiments of the present invention will be described with reference to the drawings.

<印刷装置及び記録紙の構成>
図1は、実施形態に係る印刷装置1の概略的な構成を示す図である。印刷装置1は、記録紙収容部10と、搬送機構20と、印刷ヘッド30と、制御部50と、オートカッター61と、検出部70と、を筐体5の内部に備える。
<Configuration of printing device and recording paper>
FIG. 1 is a diagram showing a schematic configuration of a printing apparatus 1 according to an embodiment. The printing apparatus 1 includes a recording paper storage section 10 , a transport mechanism 20 , a print head 30 , a control section 50 , an auto cutter 61 and a detection section 70 inside a housing 5 .

図2は、実施形態に係る記録紙11の構成を示す平面図である。記録紙11は、印刷装置1の記録紙収容部10に収容される。記録紙11は、長尺の台紙12と、台紙12の表面に一定間隔で1列に貼り付けられた被検対象13を備える紙である。隣り合う被検対象13の間には、一定幅のギャップGが設けられている。本実施形態では、説明の便宜上、記録紙11のうち、台紙12のみの部分を台紙部12Aといい、台紙12に被検対象13が重ねられた部分を被検部13Aという。 FIG. 2 is a plan view showing the configuration of the recording paper 11 according to the embodiment. The recording paper 11 is stored in the recording paper storage unit 10 of the printing apparatus 1 . The recording paper 11 is a paper provided with a long mount 12 and test objects 13 pasted on the surface of the mount 12 in a row at regular intervals. A gap G having a constant width is provided between adjacent test objects 13 . In the present embodiment, for convenience of explanation, the portion of the recording paper 11 that is only the mount 12 is referred to as a mount portion 12A, and the portion where the test subject 13 is superimposed on the mount 12 is referred to as a test portion 13A.

ここで、本実施形態では、被検対象13は、ラベル、または、マーカーである。当該ラベルは、例えば、印刷が行われる領域である。当該マーカーは、例えば、黒色を有するブラックマーカーなどである。当該ラベル及び当該マーカーは、例えば、粘着剤あるいは接着剤などで、台紙12に貼られてもよい。記録紙11の平面が有する2個の面がそれぞれ表面、裏面と呼ばれる場合、例えば、ラベルが設けられる面が表面と呼ばれてもよく、マーカーが設けられる面が裏面と呼ばれてもよい。この場合、マーカーは、ラベルが設けられる面とは反対の面に設けられる。 Here, in this embodiment, the test object 13 is a label or a marker. The label is, for example, the area where the printing takes place. The marker is, for example, a black marker having black color. The labels and markers may be attached to the backing 12, for example, with an adhesive or adhesive. When the two sides of the plane of the recording paper 11 are called the front side and the back side, respectively, the side on which the label is provided may be called the front side, and the side on which the marker is provided may be called the back side, for example. In this case the markers are provided on the side opposite to the side on which the labels are provided.

一例として、被検対象13がラベルである場合、記録紙11の透過光の強度は、台紙部12Aと被検部13Aとでは、台紙部12Aの方が大きい。このため、透過型の光学式センサーを用いて、台紙部12Aと被検部13Aとを識別することが可能である。透過型の光学式センサーは、透過型センサーと呼ばれてもよい。他の例として、被検対象13がマーカーである場合、記録紙11の反射光の強度は、台紙部12Aと被検部13Aとでは、台紙部12Aの方が大きい。このため、反射型の光学式センサーを用いて、台紙部12Aと被検部13Aとを識別することが可能である。反射型の光学式センサーは、反射型センサーと呼ばれてもよい。 As an example, when the test object 13 is a label, the intensity of light transmitted through the recording paper 11 is higher in the mount portion 12A than in the test portion 13A. Therefore, it is possible to distinguish between the mount portion 12A and the test portion 13A using a transmissive optical sensor. A transmissive optical sensor may be referred to as a transmissive sensor. As another example, when the test object 13 is a marker, the intensity of the reflected light from the recording paper 11 is higher in the mount portion 12A than in the test portion 13A. Therefore, it is possible to distinguish between the mount portion 12A and the test portion 13A using a reflective optical sensor. A reflective optical sensor may be referred to as a reflective sensor.

まず、以下では、被検対象13がラベルである場合について説明する。 First, the case where the test object 13 is a label will be described below.

台紙12は、樹脂製フィルムや合成紙などの素材を一定幅の長尺の連続紙状に加工した剥離紙である。被検対象13がラベルである場合、当該ラベルは、例えば、白色などの不透明な素材からなるラベルシールである。当該ラベルの表面には印刷方式に適した表面加工が施されており、当該ラベルの裏面には粘着加工が施されている。当該印刷方式としては、例えば、インクジェット方式、あるいは、感熱方式、などがある。なお、台紙12及びラベルの材質、厚さ、色などは用途に応じて様々なものが用いられてもよい。 The mount 12 is a release paper made by processing a material such as a resin film or synthetic paper into a long continuous paper having a constant width. When the test subject 13 is a label, the label is, for example, a label sticker made of an opaque material such as white. The front surface of the label is subjected to a surface treatment suitable for the printing method, and the back surface of the label is subjected to an adhesive treatment. Examples of the printing method include an inkjet method and a thermal method. Various materials, thicknesses, colors, and the like of the mount 12 and the label may be used depending on the application.

再び、図1を参照して、印刷装置1について説明する。記録紙収容部10に収容された記録紙11は、搬送機構20によって印刷ヘッド30の印刷位置Aに搬送される。搬送機構20は、搬送ローラー21と、搬送ローラー21を駆動する駆動モーター23を備える。印刷装置1の筐体5の内部には、記録紙収容部10から印刷ヘッド30の印刷位置Aを経由して排紙口63に至る搬送路Tが形成される。搬送機構20は、制御部50によって制御されて、記録紙収容部10に収容された記録紙11を搬送路Tに沿って搬送する。 The printer 1 will be described with reference to FIG. 1 again. The recording paper 11 contained in the recording paper container 10 is conveyed to the printing position A of the print head 30 by the conveying mechanism 20 . The transport mechanism 20 includes a transport roller 21 and a drive motor 23 that drives the transport roller 21 . Inside the housing 5 of the printer 1 , a transport path T is formed from the recording paper container 10 to the paper discharge port 63 via the printing position A of the print head 30 . The transport mechanism 20 is controlled by the control unit 50 to transport the recording paper 11 accommodated in the recording paper accommodation unit 10 along the transport path T. As shown in FIG.

印刷ヘッド30は、制御部50によって制御されて、搬送機構20によって印刷位置Aに搬送された記録紙11に画像を印刷する。画像が形成された記録紙11は、搬送機構20によってオートカッター61の切断位置Bに搬送される。オートカッター61は、制御部50によって制御されて、印刷が施された記録紙11を切断する。オートカッター61によって切断された記録紙11は、排紙口63から筐体5の外部に排紙される。 The print head 30 prints an image on the recording paper 11 transported to the printing position A by the transport mechanism 20 under the control of the control unit 50 . The recording paper 11 on which the image is formed is conveyed to the cutting position B of the auto cutter 61 by the conveying mechanism 20 . The auto cutter 61 is controlled by the control unit 50 to cut the printed recording paper 11 . The recording paper 11 cut by the autocutter 61 is ejected to the outside of the housing 5 from the paper ejection port 63 .

検出部70は、光学センサー71を備え、記録紙11が搬送される搬送路Tであって、印刷ヘッド30の印刷位置Aよりも上流側に設けられる。なお、本実施形態では、記録紙収容部10に近い側を上流側と呼び、記録紙収容部10から遠い側を下流側と呼ぶ。光学センサー71は、搬送路Tの上方に配置された発光素子73と、搬送路Tの下方に配置された受光素子75を備える透過型の光学式センサーである。本実施形態では、搬送路Tの上方は、印刷ヘッド30の側に相当する。ここで、検出部70は、複数の光学センサー71を有し、複数の光学センサー71は、全てが図1に示すように印刷ヘッド30の印刷位置Aよりも上流側に設けられていてもよく、複数の光学センサー71の内のいくつかが、印刷ヘッド30の印刷位置Aの下流側に設けられてもよい。さらに、光学センサー71に含まれる発光素子73が搬送路Tの下方に配置され、受光素子75が搬送路Tの上方に配置されてもよい。なお、上方と下方とは逆であってもよい。 The detection unit 70 includes an optical sensor 71 and is provided upstream of the printing position A of the print head 30 on the transport path T along which the recording paper 11 is transported. In this embodiment, the side closer to the recording paper container 10 is called the upstream side, and the side farther from the recording paper container 10 is called the downstream side. The optical sensor 71 is a transmissive optical sensor including a light emitting element 73 arranged above the transport path T and a light receiving element 75 arranged below the transport path T. FIG. In this embodiment, the upper side of the transport path T corresponds to the print head 30 side. Here, the detection unit 70 has a plurality of optical sensors 71, and all of the plurality of optical sensors 71 may be provided upstream of the printing position A of the print head 30 as shown in FIG. , some of the plurality of optical sensors 71 may be provided downstream of the printing position A of the print head 30 . Furthermore, the light-emitting element 73 included in the optical sensor 71 may be arranged below the transport path T, and the light-receiving element 75 may be arranged above the transport path T. FIG. Note that the upward direction and the downward direction may be reversed.

発光素子73と受光素子75とは、搬送路Tを挟んで対向配置される。発光素子73は、制御部50によって制御されて、搬送路T上の検出位置Pに記録紙11が搬送されると、検出光を照射する。検出位置Pは、発光素子73が発する検出光が照射される搬送路T上の位置である。発光素子73によって照射された検出光は、記録紙11を透過して受光素子75によって受光される。このとき、検出位置Pに記録紙11の台紙部12Aが位置する場合と、被検部13Aが位置する場合とでは、受光素子75が受光する検出光の光量が変化する。このため、制御部50では、受光素子75からの出力の変化に基づいて、検出位置Pに台紙部12Aが位置するのか、または、被検部13Aが位置するのかを判定することができる。例えば、記録紙11として、台紙部12Aと被検部13Aとで光の透過率の差が所定の閾値以上のものを用いることで、記録紙11における被検対象13の検出精度を高めることができる。 The light-emitting element 73 and the light-receiving element 75 are arranged to face each other with the transport path T interposed therebetween. The light emitting element 73 is controlled by the control unit 50 to irradiate the detection light when the recording paper 11 is transported to the detection position P on the transport path T. FIG. The detection position P is a position on the transport path T irradiated with the detection light emitted by the light emitting element 73 . The detection light emitted by the light emitting element 73 passes through the recording paper 11 and is received by the light receiving element 75 . At this time, the light amount of the detection light received by the light receiving element 75 changes depending on whether the mount portion 12A of the recording paper 11 is positioned at the detection position P or when the test portion 13A is positioned. Therefore, the control unit 50 can determine whether the mounting paper portion 12A is positioned at the detection position P or whether the test portion 13A is positioned based on the change in the output from the light receiving element 75 . For example, by using the recording paper 11 in which the difference in light transmittance between the mount portion 12A and the test portion 13A is equal to or greater than a predetermined threshold value, the detection accuracy of the test object 13 on the recording paper 11 can be improved. can.

図3は、実施形態に係る印刷装置1の制御構成を示す図である。制御部50は、通信部80に接続される。制御部50は、例えば、CPU(CentralProcessing Unit)あるいはMPU(Micro Processing Unit)などを用いて構成される。通信部80は、ホストコンピューター7と印刷装置1とを通信可能に接続する。ここで、図3の例では、ホストコンピューター7と印刷装置1とが有線接続された場合を示すが、ホストコンピューター7と印刷装置1とは、無線LAN(LocalArea Network)、Bluetooth(登録商標)などの無線通信によって接続されてもよい。 FIG. 3 is a diagram showing the control configuration of the printing apparatus 1 according to the embodiment. The control section 50 is connected to the communication section 80 . The control unit 50 is configured using, for example, a CPU (Central Processing Unit) or an MPU (Micro Processing Unit). The communication unit 80 communicatively connects the host computer 7 and the printer 1 . Here, the example of FIG. 3 shows the case where the host computer 7 and the printing device 1 are connected by wire. may be connected by wireless communication.

通信部80は、ホストコンピューター7から受信した印刷データを制御部50に出力する。制御部50は、通信部80から印刷データが入力されると印刷処理動作を開始する。制御部50は、印刷処理動作において、駆動モーター23を駆動して記録紙11を搬送路Tに沿って搬送させる。また、制御部50は、入力される印刷データを不図示のメモリーに展開して印刷用の画素ごとのデータに変換する。制御部50は、変換したデータを印刷ヘッド30に出力し、印刷位置Aに搬送された記録紙11に画像を印刷させる。さらに、制御部50は、印刷データに含まれる制御命令に基づいてオートカッター61を駆動し、切断位置Bに搬送された記録紙11を切断する。 The communication unit 80 outputs print data received from the host computer 7 to the control unit 50 . When print data is input from the communication unit 80, the control unit 50 starts a print processing operation. The control unit 50 drives the drive motor 23 to transport the recording paper 11 along the transport path T in the print processing operation. Further, the control unit 50 develops input print data in a memory (not shown) and converts it into data for each pixel for printing. The control unit 50 outputs the converted data to the print head 30 and causes the recording paper 11 conveyed to the print position A to print an image. Furthermore, the control unit 50 drives the auto cutter 61 based on the control command included in the print data to cut the recording paper 11 conveyed to the cutting position B. FIG.

また、制御部50には、操作部90が接続される。操作部90には、印刷装置1の電源をオン、オフするための電源キーや、各種設定を行うためのメニューキー等の各種操作キーが設けられる。操作部90は、操作キーが操作されると、操作されたキーに対応した操作信号を制御部50に出力する。 An operation unit 90 is also connected to the control unit 50 . The operation unit 90 is provided with various operation keys such as a power key for turning on/off the power of the printing apparatus 1 and a menu key for performing various settings. When an operation key is operated, the operation section 90 outputs an operation signal corresponding to the operated key to the control section 50 .

また、制御部50には、検出部70が接続される。検出部70は、発光素子73が照射する検出光を受光素子75で受光して、受光した光量に対応する電圧について、増幅及びAD変換等の処理を施して、検出電圧を生成する。検出部70は、生成された検出電圧を制御部50に出力する。 A detection unit 70 is also connected to the control unit 50 . The detection unit 70 receives the detection light emitted by the light emitting element 73 with the light receiving element 75, performs processing such as amplification and AD conversion on the voltage corresponding to the amount of light received, and generates a detection voltage. The detection section 70 outputs the generated detection voltage to the control section 50 .

制御部50が備えるメモリーには、判定で使用される閾値などが記憶される。制御部50は、入力される検出電圧と判定で使用される閾値とを比較して、検出位置Pに被検部13Aが位置しているのか、または、台紙部12Aが位置しているのかを判定する。当該閾値は、入力される検出電圧が、被検部13Aに検出光が照射されたときの検出電圧であるのか、または、台紙部12Aに検出光が照射されたときの検出電圧であるのかを識別可能な電圧に設定されている。 The memory included in the control unit 50 stores thresholds and the like used in determination. The control unit 50 compares the input detection voltage with the threshold value used in the determination, and determines whether the test portion 13A is positioned at the detection position P or the mount portion 12A is positioned. judge. The threshold determines whether the detected voltage to be input is the detected voltage when the detection light is applied to the test area 13A or the detection voltage when the mount part 12A is applied with the detection light. Set to an identifiable voltage.

また、制御部50は、検出電圧と判定で使用される閾値との比較結果に基づいて、被検対象13の前端及び後端を検出する。具体的には、制御部50は、検出部70が有する複数の光学センサー71の各々において被検対象13の前端及び後端の少なくとも一方が検出された時間、複数の光学センサー71のそれぞれの検出位置P、及び搬送機構20による記録紙11の搬送速度に基づいて、被検対象13の搬送方向における長さや、ギャップGの幅などを検出することができる。 Also, the control unit 50 detects the front end and the rear end of the test object 13 based on the result of comparison between the detected voltage and the threshold value used in the determination. Specifically, the control unit 50 detects the time when at least one of the front end and the rear end of the test object 13 is detected by each of the plurality of optical sensors 71 included in the detection unit 70, and the detection of each of the plurality of optical sensors 71. Based on the position P and the transport speed of the recording paper 11 by the transport mechanism 20, the length of the test object 13 in the transport direction, the width of the gap G, and the like can be detected.

<検出部及び制御部の構成>
図4は、実施形態に係る検出部70及び制御部50の構成を示す図である。検出部70について、さらに詳しく説明する。制御部50は、SoC(Systemon a Chip)であってもよい。検出部70は、複数の光学センサー71としての光学センサー71a,71bと、可変抵抗回路111と、抵抗部131と、シフトレジスタ211と、選択回路81と、を備える。ここで、以下の説明において光学センサー71aが有する発光素子73を発光素子73aと称し、受光素子75を受光素子75aと称する場合がある。また、光学センサー71bが有する発光素子73を発光素子73bと称し、受光素子75を受光素子75bと称する場合がある。
<Structure of detection unit and control unit>
FIG. 4 is a diagram showing configurations of the detection unit 70 and the control unit 50 according to the embodiment. The detection unit 70 will be described in more detail. The control unit 50 may be an SoC (System on a Chip). The detection unit 70 includes optical sensors 71 a and 71 b as a plurality of optical sensors 71 , a variable resistance circuit 111 , a resistance section 131 , a shift register 211 and a selection circuit 81 . Here, in the following description, the light emitting element 73 of the optical sensor 71a may be referred to as the light emitting element 73a, and the light receiving element 75 may be referred to as the light receiving element 75a. Also, the light emitting element 73 of the optical sensor 71b may be referred to as a light emitting element 73b, and the light receiving element 75 may be referred to as a light receiving element 75b.

可変抵抗回路111は、複数である8個の抵抗部である第0抵抗部141-0~第7抵抗部141-7と、複数である8個の駆動素子である第0駆動素子161-0~第7駆動素子161-7を備える。可変抵抗回路111では、8個の抵抗部である第0抵抗部141-0~第7抵抗部141-7が並列に接続されている。抵抗部131は、可変抵抗回路111が備える8個の抵抗部である第0抵抗部141-0~第7抵抗部141-7と並列に接続されるように、配置されている。 The variable resistance circuit 111 includes a plurality of eight resistors, ie, the 0th resistor section 141-0 to the seventh resistor section 141-7, and a plurality of eight drive elements, ie, the 0th drive element 161-0. to the seventh drive element 161-7. In the variable resistance circuit 111, 0th resistance section 141-0 to 7th resistance section 141-7, which are eight resistance sections, are connected in parallel. The resistance section 131 is arranged so as to be connected in parallel with the 0th resistance section 141-0 to the 7th resistance section 141-7, which are the eight resistance sections included in the variable resistance circuit 111. FIG.

可変抵抗回路111では、8個の抵抗部である第0抵抗部141-0~第7抵抗部141-7のそれぞれと接地端との間に、8個の駆動素子である第0駆動素子161-0~第7駆動素子161-7のそれぞれが直列に接続されている。本実施形態では、8個の駆動素子である第0駆動素子161-0~第7駆動素子161-7のそれぞれがトランジスターである場合を説明する。なお、8個の駆動素子である第0駆動素子161-0~第7駆動素子161-7のそれぞれは、例えば、電界効果トランジスター(FET:Field EffectTransistor)であってもよい。 In the variable resistance circuit 111, the 0th driving element 161, which is the eight driving elements, is provided between each of the 0th resistance section 141-0 to the 7th resistance section 141-7, which are the eight resistance sections, and the ground terminal. -0 to seventh drive elements 161-7 are connected in series. In the present embodiment, eight drive elements, ie, the 0th drive element 161-0 to the 7th drive element 161-7, are each a transistor. Each of the 0th drive element 161-0 to the 7th drive element 161-7, which are the eight drive elements, may be, for example, a field effect transistor (FET).

具体的には、8個の抵抗部である第0抵抗部141-0~第7抵抗部141-7のそれぞれの一端と外部の抵抗部131の一端とが接続されている。8個の抵抗部である第0抵抗部141-0~第7抵抗部141-7のそれぞれの他端と、8個の駆動素子である第0駆動素子161-0~第7駆動素子161-7のそれぞれのコレクタ端子とが接続されている。そして、8個の駆動素子である第0駆動素子161-0~第7駆動素子161-7のそれぞれのエミッタ端子は接地端と接続されている。外部の抵抗部131の他端は接地端と接続されている。また、8個の抵抗部である第0抵抗部141-0~第7抵抗部141-7のそれぞれの一端及び外部の抵抗部131の一端は、選択回路81と接続されている。 Specifically, one end of each of the 0th resistance portion 141-0 to the 7th resistance portion 141-7, which are eight resistance portions, and one end of the external resistance portion 131 are connected. The other ends of the 0th resistance portion 141-0 to the 7th resistance portion 141-7, which are the 8 resistance portions, and the 0th drive element 161-0 to the 7th drive element 161-, which are the 8 drive elements. 7 are connected to respective collector terminals. The emitter terminals of the 0th driving element 161-0 to the 7th driving element 161-7, which are the eight driving elements, are connected to the ground terminal. The other end of the external resistor portion 131 is connected to the ground end. One end of each of the 0th resistance section 141-0 to the 7th resistance section 141-7, which are eight resistance sections, and one end of the external resistance section 131 are connected to the selection circuit 81. FIG.

選択回路81は、スイッチ82a,82bとインバーター83とを備える。スイッチ82aの一端は、光学センサー71aの受光素子75aの出力端と接続されている。スイッチ82bの一端は、光学センサー71bの受光素子75bの出力端と接続されている。そして、スイッチ82a,82bの他端が、8個の抵抗部である第0抵抗部141-0~第7抵抗部141-7のそれぞれの一端及び外部の抵抗部131の一端と接続されている。 The selection circuit 81 includes switches 82 a and 82 b and an inverter 83 . One end of the switch 82a is connected to the output end of the light receiving element 75a of the optical sensor 71a. One end of the switch 82b is connected to the output end of the light receiving element 75b of the optical sensor 71b. The other ends of the switches 82a and 82b are connected to one end of each of eight resistors, ie, the 0th resistor section 141-0 to the seventh resistor section 141-7, and to one end of the external resistor section 131. .

また、スイッチ82aには、制御部50が出力する制御信号が供給され、スイッチ82bには、制御部50が出力する制御信号の論理レベルがインバーター83により反転された反転制御信号が供給される。これにより、スイッチ82aがオンの状態である場合、スイッチ82bはオフの状態となり、スイッチ82aがオフの状態である場合、スイッチ82bはオンの状態となる。すなわち、スイッチ82aとスイッチ82bとは、制御部50が出力する制御信号に基づいて排他的にオンの状態となるように制御される。ここで、本実施形態では、スイッチ82a,82bのそれぞれについて、オンの状態はスイッチ82a,82bの一端と他端との間に電流が流れる状態を表しており、オフの状態はスイッチ82a,82bの一端と他端との間に電流が流れない状態を表している。 A control signal output from the control unit 50 is supplied to the switch 82a, and an inverted control signal obtained by inverting the logic level of the control signal output from the control unit 50 by an inverter 83 is supplied to the switch 82b. Thus, when the switch 82a is on, the switch 82b is off, and when the switch 82a is off, the switch 82b is on. That is, the switch 82a and the switch 82b are controlled to be in an ON state exclusively based on the control signal output from the control section 50. FIG. Here, in the present embodiment, for each of the switches 82a and 82b, the ON state represents a state in which a current flows between one end and the other end of the switches 82a and 82b, and the OFF state represents the switch 82a and 82b. represents a state in which no current flows between one end and the other end of the .

本実施形態では、選択回路81が有するスイッチ82aがオンの状態に制御されている場合、受光素子75aからの出力に応じた電圧が8個の抵抗部である第0抵抗部141-0~第7抵抗部141-7のそれぞれの一端及び外部の抵抗部131の一端に印加され、選択回路81が有するスイッチ82bがオンの状態に制御されている場合、受光素子75bからの出力に応じた電圧が8個の抵抗部である第0抵抗部141-0~第7抵抗部141-7のそれぞれの一端及び外部の抵抗部131の一端に印加される配置となっている。すなわち、選択回路81は、8個の抵抗部である第0抵抗部141-0~第7抵抗部141-7のそれぞれの一端及び外部の抵抗部131の一端に、受光素子75aからの出力に応じた電圧を印可するのか、受光素子75bからの出力に応じた電圧を印可するのかを選択する。 In the present embodiment, when the switch 82a included in the selection circuit 81 is controlled to be on, the voltage corresponding to the output from the light receiving element 75a changes from the 0th resistor section 141-0 to the 8th resistor section 141-0. 7 resistors 141-7 and one end of the external resistor 131, and when the switch 82b of the selection circuit 81 is controlled to be on, the voltage corresponding to the output from the light receiving element 75b is applied to one end of each of the 0th resistance portion 141-0 to the 7th resistance portion 141-7 and to one end of the external resistance portion 131, which are eight resistance portions. That is, the selection circuit 81 connects one end of each of the eight resistance portions 0th resistance portion 141-0 to the seventh resistance portion 141-7 and one end of the external resistance portion 131 to the output from the light receiving element 75a. It is selected whether to apply a voltage according to the output from the light receiving element 75b or to apply a voltage according to the output from the light receiving element 75b.

また、8個の抵抗部である第0抵抗部141-0~第7抵抗部141-7のそれぞれの一端及び外部の抵抗部131の一端は、制御部50の入力端と接続されている。これにより、受光素子75a又は受光素子75bからの出力に応じた電圧が制御部50の入力端に入力される。当該電圧は、抵抗部131の両端に印加される電圧に相当する。 Also, one end of each of the 0th resistance section 141-0 to the 7th resistance section 141-7, which are eight resistance sections, and one end of the external resistance section 131 are connected to the input terminal of the control section 50. FIG. Thereby, a voltage corresponding to the output from the light receiving element 75a or the light receiving element 75b is input to the input end of the control section 50. FIG. This voltage corresponds to the voltage applied across the resistor section 131 .

そして、制御部50は、選択回路81を介して光学センサー71aの受光素子75a、または、光学センサー71bの受光素子75bからの出力に応じた電圧が入力端に入力されると、当該電圧をAD変換機能によってアナログの信号からデジタルの信号へ変換する。すなわち、本実施形態では、当該電圧は、制御部50の外部の回路においてはアナログの信号によって表されており、制御部50に取り込まれるときにデジタルの信号へ変換される。 Then, when a voltage corresponding to the output from the light receiving element 75a of the optical sensor 71a or the light receiving element 75b of the optical sensor 71b is input to the input terminal through the selection circuit 81, the control unit 50 converts the voltage to AD. A conversion function converts an analog signal into a digital signal. That is, in the present embodiment, the voltage is represented by an analog signal in the circuit outside the control section 50 and is converted into a digital signal when taken into the control section 50 .

ここで、可変抵抗回路111の8個の抵抗部である第0抵抗部141-0~第7抵抗部141-7のそれぞれの抵抗値は、任意に設定されてもよい。また、8個の抵抗部である第0抵抗部141-0~第7抵抗部141-7のそれぞれの抵抗値は、例えば、同じであってもよく、または、1以上の抵抗値が異なってもよい。 Here, the resistance values of the 0th resistance section 141-0 to the 7th resistance section 141-7, which are the eight resistance sections of the variable resistance circuit 111, may be arbitrarily set. Further, the resistance values of the 0th resistance portion 141-0 to the 7th resistance portion 141-7, which are the eight resistance portions, may be, for example, the same, or at least one resistance value may be different. good too.

一例として、8個の抵抗部である第0抵抗部141-0~第7抵抗部141-7のそれぞれの抵抗値が、256[kΩ]、128[kΩ]、64[kΩ]、32[kΩ]、16[kΩ]、8[kΩ]、4[kΩ]、2[kΩ]であってもよい。この場合、抵抗部131の抵抗値は、22[kΩ]であってもよい。この場合、8個の抵抗部である第0抵抗部141-0~第7抵抗部141-7のそれぞれの抵抗値はすべて異なる。 As an example, the resistance values of the 0th resistance portion 141-0 to the 7th resistance portion 141-7, which are eight resistance portions, are 256 [kΩ], 128 [kΩ], 64 [kΩ], and 32 [kΩ]. ], 16 [kΩ], 8 [kΩ], 4 [kΩ], and 2 [kΩ]. In this case, the resistance value of the resistance section 131 may be 22 [kΩ]. In this case, the resistance values of the 0th resistance portion 141-0 to the 7th resistance portion 141-7, which are the eight resistance portions, are all different.

なお、抵抗部131及び8個の抵抗部である第0抵抗部141-0~第7抵抗部141-7のそれぞれとしては、バラツキが少ない抵抗を用いることができる。一般に、抵抗のバラツキは、±0.1%などのように、小さくすることができる。 Resistors with little variation can be used for each of the resistance section 131 and the 0th resistance section 141-0 to the 7th resistance section 141-7, which are the eight resistance sections. Generally, resistance variation can be small, such as ±0.1%.

ここで、抵抗部131及び8個の抵抗部である第0抵抗部141-0~第7抵抗部141-7のそれぞれは、例えば、1個の抵抗素子を用いて構成されてもよく、あるいは、2個以上の抵抗素子を組み合わせて構成されてもよい。また、抵抗部131及び8個の抵抗部である第0抵抗部141-0~第7抵抗部141-7のそれぞれは、例えば、抵抗素子以外の任意の素子の抵抗成分などを用いて構成されてもよい。 Here, each of the resistance section 131 and the eight resistance sections of the 0th resistance section 141-0 to the 7th resistance section 141-7 may be configured using, for example, one resistance element, or , may be configured by combining two or more resistive elements. In addition, each of the resistance section 131 and the eight resistance sections, ie, the 0th resistance section 141-0 to the 7th resistance section 141-7, is configured using, for example, the resistance component of any element other than the resistance element. may

シフトレジスタ211は、3個の入力端と、8個の出力端を備える。シフトレジスタ211の8個の出力端のそれぞれは、可変抵抗回路111の8個の駆動素子である第0駆動素子161-0~第7駆動素子161-7のそれぞれのベース端子と接続されている。これにより、シフトレジスタ211の8個の出力端のそれぞれから出力される信号の電圧を制御することで、可変抵抗回路111の8個の駆動素子である第0駆動素子161-0~第7駆動素子161-7のそれぞれごとに、オンの状態として駆動させるか、または、オフの状態として駆動させないかを制御することができる。これにより、シフトレジスタ211は、8個の駆動素子である第0駆動素子161-0~第7駆動素子161-7のそれぞれについて、選択的にオンの状態またはオフの状態にすることで、選択的に駆動させるか駆動させないかを制御することができる。 The shift register 211 has 3 input terminals and 8 output terminals. Each of the eight output terminals of the shift register 211 is connected to the respective base terminals of the 0th drive element 161-0 to the 7th drive element 161-7, which are the eight drive elements of the variable resistance circuit 111. . Thus, by controlling the voltage of the signal output from each of the eight output terminals of the shift register 211, the eight driving elements of the variable resistance circuit 111, ie, the 0th driving element 161-0 to the 7th driving element 161-0, are controlled. Each of the elements 161-7 can be controlled to be driven in the on state or not to be driven in the off state. As a result, the shift register 211 selectively turns on or off each of the 0th drive element 161-0 to the 7th drive element 161-7, which are the eight drive elements, thereby enabling selection. It is possible to control whether to drive or not to drive.

ここで、本実施形態では、8個の駆動素子である第0駆動素子161-0~第7駆動素子161-7のそれぞれについて、オンの状態はコレクタ端子とエミッタ端子との間に電流が流れる状態を表しており、オフの状態はコレクタ端子とエミッタ端子との間に電流が流れない状態を表している。 Here, in the present embodiment, current flows between the collector terminal and the emitter terminal of each of the 0th drive element 161-0 to the 7th drive element 161-7, which are the eight drive elements, in the ON state. The OFF state represents a state in which no current flows between the collector terminal and the emitter terminal.

可変抵抗回路111では、8個の抵抗部である第0抵抗部141-0~第7抵抗部141-7のうち、第0駆動素子161-0~第7駆動素子161-7のうちの対応するものがオンの状態となっている抵抗部の合成抵抗が、全体の抵抗となる。これにより、制御部50は、シフトレジスタ211の8個の出力端のそれぞれからの出力を制御することで、可変抵抗回路111の合成抵抗を切り替えることができる。また、可変抵抗回路111と外部の抵抗部131とでは、可変抵抗回路111の合成抵抗と外部の抵抗部131との合成抵抗が、全体の抵抗となる。 In the variable resistance circuit 111, among the 0th resistance section 141-0 to the 7th resistance section 141-7 which are the 8 resistance sections, the correspondence among the 0th drive element 161-0 to the 7th drive element 161-7 The total resistance is the combined resistance of the resistors that are in the ON state. Thereby, the control unit 50 can switch the combined resistance of the variable resistance circuit 111 by controlling the output from each of the eight output terminals of the shift register 211 . Further, in the variable resistance circuit 111 and the external resistance section 131, the combined resistance of the combined resistance of the variable resistance circuit 111 and the external resistance section 131 is the total resistance.

制御部50とシフトレジスタ211の3個の入力端のそれぞれとは、3個の信号線である第1信号線511~第3信号線513のそれぞれを介して、接続されている。シフトレジスタ211の3個の入力端のうち、1番目の入力端はシリアルデータの信号の入力端であり、2番目の入力端はシリアルクロック信号の入力端であり、3番目の入力端はラッチ信号の入力端である。これらは、制御部50からシフトレジスタ211に出力される。シフトレジスタ211では、3個の入力端に入力される信号に基づいて、8個の出力端から信号を出力する。本実施形態に係るシフトレジスタ211では、シリアル入力、パラレル出力である。 The control unit 50 and each of the three input terminals of the shift register 211 are connected via three signal lines, namely, a first signal line 511 to a third signal line 513, respectively. Of the three input terminals of the shift register 211, the first input terminal is the input terminal of the serial data signal, the second input terminal is the input terminal of the serial clock signal, and the third input terminal is the latch. This is the signal input end. These are output from the control unit 50 to the shift register 211 . The shift register 211 outputs signals from eight output terminals based on signals input to three input terminals. The shift register 211 according to this embodiment has serial input and parallel output.

そして、制御部50は、シリアルデータの信号を、第1信号線511を介して、シフトレジスタ211に出力し、シリアルクロック信号を、第2信号線512を介して、シフトレジスタ211に出力し、ラッチ信号を、第3信号線513を介して、シフトレジスタ211に出力する。 Then, the control unit 50 outputs the serial data signal to the shift register 211 via the first signal line 511, outputs the serial clock signal to the shift register 211 via the second signal line 512, A latch signal is output to the shift register 211 via the third signal line 513 .

また、制御部50は、第1記憶部311と第2記憶部312とを備える。ここで、第1記憶部311と第2記憶部312とは、例えば、同じ記憶装置などにおける異なる記憶領域として構成されてもよく、あるいは、異なる記憶装置などとして構成されてもよい。また、本実施形態では、第1記憶部311及び第2記憶部312が制御部50に備えられるが、他の構成例として、第1記憶部311及び第2記憶部312のうちの一方または両方が制御部50の外部に備えられてもよい。また、第1記憶部311と第2記憶部312は、例えば、不揮発性メモリーであってもよい。 The control unit 50 also includes a first storage unit 311 and a second storage unit 312 . Here, the first storage unit 311 and the second storage unit 312 may be configured as different storage areas in the same storage device or the like, or may be configured as different storage devices. Further, in the present embodiment, the first storage unit 311 and the second storage unit 312 are provided in the control unit 50, but as another configuration example, one or both of the first storage unit 311 and the second storage unit 312 may be provided outside the control unit 50 . Also, the first storage unit 311 and the second storage unit 312 may be, for example, non-volatile memories.

<基板>
ここで、本実施形態では、可変抵抗回路111とシフトレジスタ211と制御部50とは、同一の基板411に搭載されている。また、光学センサー71a,71bと、選択回路81とは、基板411とは別の被搭載部412に搭載されている。当該被搭載部412は、例えば、基板411とは別の基板であってもよく、あるいは、印刷装置1の筐体における所定箇所であってもよい。なお、選択回路81は、基板411に搭載されていてもよい。
<Substrate>
Here, in this embodiment, the variable resistance circuit 111 , the shift register 211 and the control section 50 are mounted on the same substrate 411 . Also, the optical sensors 71 a and 71 b and the selection circuit 81 are mounted on a mounting portion 412 different from the substrate 411 . The mounted portion 412 may be, for example, a substrate different from the substrate 411 , or may be a predetermined portion of the housing of the printing apparatus 1 . Note that the selection circuit 81 may be mounted on the substrate 411 .

<シフトレジスタの制御値>
第1記憶部311は、シフトレジスタ211の制御値を記憶する。制御部50は、第1記憶部311に記憶された制御値に基づいて、シフトレジスタ211に当該制御値を出力する。本実施形態では、当該制御値は、制御部50からシフトレジスタ211に出力されるシリアルデータ信号によって表される。ここで、第1記憶部311に記憶された制御値が、既に適した値に調整された値である場合、制御部50によって適した制御が行われる。なお、制御部50は、第1記憶部311に記憶された制御値を変更することで、当該制御値をより適した値へ更新してもよい。
<Shift register control value>
The first storage unit 311 stores control values of the shift register 211 . The control unit 50 outputs the control value to the shift register 211 based on the control value stored in the first storage unit 311 . In this embodiment, the control value is represented by a serial data signal output from the control section 50 to the shift register 211 . Here, when the control value stored in the first storage unit 311 is a value already adjusted to a suitable value, the control unit 50 performs suitable control. Note that the control unit 50 may change the control value stored in the first storage unit 311 to update the control value to a more suitable value.

図5は、実施形態に係るシフトレジスタ211の制御値と可変抵抗回路111の合成抵抗値との関係を示す図である。図5に示されるグラフにおいて、横軸はシフトレジスタ211の制御値を表しており、縦軸は可変抵抗回路111の合成抵抗値[kΩ]を表している。なお、図5の例では、縦軸は対数表示となっている。図5の例では、制御値は、8ビットに対応しており、0~255のいずれかの値となる。特性1011は、シフトレジスタ211の制御値と可変抵抗回路111の合成抵抗値との関係を表す。 FIG. 5 is a diagram showing the relationship between the control value of the shift register 211 and the combined resistance value of the variable resistance circuit 111 according to the embodiment. In the graph shown in FIG. 5 , the horizontal axis represents the control value of the shift register 211 and the vertical axis represents the combined resistance value [kΩ] of the variable resistance circuit 111 . In addition, in the example of FIG. 5, the vertical axis is displayed in logarithm. In the example of FIG. 5, the control value corresponds to 8 bits and has a value of 0-255. A characteristic 1011 represents the relationship between the control value of the shift register 211 and the combined resistance value of the variable resistance circuit 111 .

本実施形態では、シフトレジスタ211の制御値と、8個の抵抗部である第0抵抗部141-0~第7抵抗部141-7のうちでオンの状態とされる抵抗値の組み合わせとが、1対1で対応付けられている。本実施形態では、シフトレジスタ211の制御値が大きくなるほど、可変抵抗回路111の合成抵抗値は小さくなるように設定されている。本実施形態では、可変抵抗回路111の可変な合成抵抗値が、例えば、1[kΩ]~開放状態の範囲で変化し得る。図5の例では、制御部50からシフトレジスタ211に供給される制御値が大きくなるほど、可変抵抗回路111の合成抵抗値が小さくなる構成となっている。 In the present embodiment, the combination of the control value of the shift register 211 and the resistance value of the 0th resistance unit 141-0 to the 7th resistance unit 141-7, which are the eight resistance units, to be in the ON state is , are associated one-to-one. In this embodiment, the combined resistance value of the variable resistance circuit 111 is set to decrease as the control value of the shift register 211 increases. In this embodiment, the variable combined resistance value of the variable resistance circuit 111 can change, for example, within a range from 1 [kΩ] to an open state. In the example of FIG. 5, as the control value supplied from the control unit 50 to the shift register 211 increases, the combined resistance value of the variable resistance circuit 111 decreases.

<制御部によって行われる制御値を決定する処理>
図6は、実施形態に係る制御部50によって行われる制御値決定処理の手順の一例を示す図である。この制御値決定処理では、制御部50によって、光学センサー71a,71bのそれぞれに適した制御値を決定する。本実施形態では、制御部50によって、シフトレジスタ211に出力する制御値を変化させることで、適した値を探索する。本実施形態では、制御部50によって、デジタル制御が行われる。
<Processing for determining the control value performed by the control unit>
FIG. 6 is a diagram showing an example of the procedure of control value determination processing performed by the control unit 50 according to the embodiment. In this control value determination process, the control unit 50 determines control values suitable for each of the optical sensors 71a and 71b. In this embodiment, the controller 50 searches for a suitable value by changing the control value output to the shift register 211 . In this embodiment, digital control is performed by the control unit 50 .

(ステップS1)
制御部50は、選択回路81が光学センサー71a,71bを含む複数の光学センサー71から任意の光学センサー71を選択し、選択した光学センサー71の受光素子75からの出力に応じた電圧が可変抵抗回路111に入力されるように制御するための制御信号を選択回路81に出力する。そして、ステップS2の処理へ移行する。
(Step S1)
In the control unit 50, the selection circuit 81 selects an arbitrary optical sensor 71 from a plurality of optical sensors 71 including the optical sensors 71a and 71b, and the voltage corresponding to the output from the light receiving element 75 of the selected optical sensor 71 is applied to the variable resistor. A control signal for controlling input to the circuit 111 is output to the selection circuit 81 . Then, the process proceeds to step S2.

(ステップS2)
制御部50は、シフトレジスタ211へ出力する制御値を制御して、シフトレジスタ211から可変抵抗回路111に、16進数で“00h”のパラレル出力が行われるようにする。そして、ステップS3の処理へ移行する。
(Step S2)
The control unit 50 controls the control value to be output to the shift register 211 so that the shift register 211 outputs “00h” in hexadecimal in parallel to the variable resistance circuit 111 . Then, the process proceeds to step S3.

(ステップS3)
制御部50は、入力端に入力されるアナログ信号のAD値を取得する。このAD値は、選択回路81により選択されている光学センサー71の受光素子75によって検出された値に応じた値となる。そして、ステップS4の処理へ移行する。
(Step S3)
The control unit 50 acquires the AD value of the analog signal input to the input terminal. This AD value is a value corresponding to the value detected by the light receiving element 75 of the optical sensor 71 selected by the selection circuit 81 . Then, the process proceeds to step S4.

(ステップS4)
制御部50は、取得されたAD値が選択回路81により選択された光学センサー71の検出値の期待値であるか否かを判定する。当該期待値は、例えば、あらかじめ設定されている。当該期待値は、例えば、第1記憶部311などに記憶されてもよい。
(Step S4)
The control unit 50 determines whether the acquired AD value is the expected value of the detection value of the optical sensor 71 selected by the selection circuit 81 . The expected value is set in advance, for example. The expected value may be stored, for example, in the first storage unit 311 or the like.

そして、制御部50は、取得されたAD値が選択回路81により選択された光学センサー71の検出値の期待値であると判定された場合(ステップS4:YES)、そのときの制御値が、対応する光学センサー71に適した値であるとして、対応する光学センサー71と紐づけた状態で第1記憶部311に記憶する。そして、ステップS6の処理へ移行する。一方、制御部50は、取得されたAD値が選択回路81により選択された光学センサー71の検出値の期待値ではないと判定された場合(ステップS3:NO)、ステップS5の処理へ移行する。 Then, when the control unit 50 determines that the acquired AD value is the expected value of the detection value of the optical sensor 71 selected by the selection circuit 81 (step S4: YES), the control value at that time is As a value suitable for the corresponding optical sensor 71 , it is stored in the first storage unit 311 while being associated with the corresponding optical sensor 71 . Then, the process proceeds to step S6. On the other hand, when the control unit 50 determines that the acquired AD value is not the expected value of the detection value of the optical sensor 71 selected by the selection circuit 81 (step S3: NO), the process proceeds to step S5. .

(ステップS5)
制御部50は、シフトレジスタ211からのパラレル出力の値を1増加させる所謂インクリメントを実行する。そして、制御部50は、シフトレジスタ211への制御値を制御して、シフトレジスタ211から可変抵抗回路111に、増加後の値のパラレル出力が行われるようにする。そして、ステップS3の処理へ移行する。
(Step S5)
The control unit 50 performs so-called incrementing to increase the value of the parallel output from the shift register 211 by one. Then, the control unit 50 controls the control value to the shift register 211 so that the increased value is output in parallel from the shift register 211 to the variable resistance circuit 111 . Then, the process proceeds to step S3.

(ステップS6)
制御部50は、検出部70が備える複数の光学センサー71の全てにおいて、適した制御値の探索が完了しているか否かを判定する。そして、制御部50は、全ての光学センサー71において、適した制御値の探索が完了していると判定された場合(ステップS6:YES)、本フローの処理である制御値決定処理を終了する。一方、制御部50は、全ての光学センサー71において適した制御値の探索が完了していないと判定された場合(ステップS6:NO)、ステップS7の処理へ移行する。
(Step S6)
The control unit 50 determines whether or not searching for suitable control values has been completed in all of the plurality of optical sensors 71 provided in the detection unit 70 . Then, when it is determined that the search for suitable control values has been completed in all the optical sensors 71 (step S6: YES), the control unit 50 ends the control value determination processing, which is the processing of this flow. . On the other hand, when it is determined that the search for suitable control values has not been completed in all the optical sensors 71 (step S6: NO), the control unit 50 proceeds to the process of step S7.

(ステップS7)
制御部50は、選択回路81が光学センサー71a,71bを含む複数の光学センサー71から、適した制御値の探索が未完了の任意の光学センサー71を選択し、選択した光学センサー71の受光素子75からの出力に応じた電圧が可変抵抗回路111に入力されるように制御するための制御信号を選択回路81に出力する。そして、ステップS2の処理へ移行する。
(Step S7)
In the control unit 50, the selection circuit 81 selects an arbitrary optical sensor 71 for which the search for a suitable control value has not been completed from a plurality of optical sensors 71 including the optical sensors 71a and 71b, and selects the light receiving element of the selected optical sensor 71. A control signal is output to the selection circuit 81 for controlling the voltage corresponding to the output from 75 to be input to the variable resistance circuit 111 . Then, the process proceeds to step S2.

そして、制御部50は、検出部70が有する複数の光学センサー71の全ての光学センサー71であって、本実施形態においては、光学センサー71a,71bの双方における適した制御値の探索が完了するまで、本フローを継続する。そして、本フローが終了した後、制御部50は、複数の光学センサー71のいずれかを選択する制御信号を選択回路81に出力するとともに、第1記憶部311に記憶されている選択された光学センサー71に対応する制御値を用いてシフトレジスタ211を制御する。 Then, the control unit 50 searches all the optical sensors 71 of the plurality of optical sensors 71 of the detection unit 70, and in this embodiment, searches for suitable control values in both the optical sensors 71a and 71b are completed. Continue this flow until After this flow ends, the control unit 50 outputs a control signal for selecting one of the plurality of optical sensors 71 to the selection circuit 81, and outputs the selected optical sensor stored in the first storage unit 311. A control value corresponding to sensor 71 is used to control shift register 211 .

ここで、本フローの処理では、例えば、検出値に相当するAD値が最大になったとしても飽和しないように設定される。また、本実施形態では、台紙部12AでのAD値と、被検部13AでのAD値とで、S/N(Signalto NoiseRatio)が十分に大きくなるように設定される。具体例として、台紙部12AでのAD値が2.5[V]~3.0[V]の範囲に収まる値となり、被検部13AでのAD値が0.3[V]~0.5[V]の範囲に収まる値となるように設定される。 Here, in the processing of this flow, for example, even if the AD value corresponding to the detection value reaches its maximum, it is set so as not to saturate. In addition, in the present embodiment, the AD value of the mount portion 12A and the AD value of the test portion 13A are set so that the S/N (Signal to Noise Ratio) is sufficiently large. As a specific example, the AD value at the mount portion 12A is a value within the range of 2.5 [V] to 3.0 [V], and the AD value at the test portion 13A is 0.3 [V] to 0.3 [V]. It is set to a value within the range of 5 [V].

本実施形態では、光学センサー71の感度が高い場合には、感度が低い場合と比べて、可変抵抗回路111及び抵抗部131の合成抵抗を低く設定する。ここで、オームの法則から、AD値に対応する電圧は、光学センサー71の受光素子75から出力される電流と当該合成抵抗との乗算結果となる。光学センサー71の感度が高い場合には、感度が低い場合と比べて、当該電流が高くなり、それに対して、当該合成抵抗を低くする。本実施形態では、可変抵抗回路111の合成抵抗が調整されてから、印刷装置1が出荷される。例えば、AD値が0~3[V]に収まるように設定されてもよい。 In this embodiment, when the sensitivity of the optical sensor 71 is high, the combined resistance of the variable resistance circuit 111 and the resistance section 131 is set lower than when the sensitivity is low. According to Ohm's law, the voltage corresponding to the AD value is the product of the current output from the light receiving element 75 of the optical sensor 71 and the combined resistance. When the sensitivity of the optical sensor 71 is high, the current is high and the combined resistance is low compared to when the sensitivity is low. In this embodiment, the printing apparatus 1 is shipped after the combined resistance of the variable resistance circuit 111 is adjusted. For example, the AD value may be set within 0 to 3 [V].

なお、本フローの例では、可変抵抗回路111の合成抵抗が低い方から高い方へ変化させられる場合を示したが、逆に、可変抵抗回路111の合成抵抗が高い方から低い方へ変化させられる処理の手順が用いられてもよい。 In this flow example, the combined resistance of the variable resistance circuit 111 is changed from low to high. Any processing procedure that is used may be used.

<制御部によって行われる制御値を計算する処理>
図7は、実施形態に係る制御部50によって行われる制御値計算処理の手順の一例を示す図である。この処理では、制御部50によって、複数の光学センサー71のそれぞれに適した制御値を計算によって求める。すなわち、図7に示す処理は、複数の光学センサー71のそれぞれに対して実行される。本実施形態では、制御部50は、本フローの処理を自動的に実行する。第2記憶部312に、例えば、AD値に関する所定値が記憶されている。当該所定値は、AD値の目標値などと呼ばれてもよい。
<Process of calculating the control value performed by the control unit>
FIG. 7 is a diagram showing an example of the procedure of control value calculation processing performed by the control unit 50 according to the embodiment. In this process, the controller 50 obtains a control value suitable for each of the plurality of optical sensors 71 by calculation. That is, the processing shown in FIG. 7 is executed for each of the multiple optical sensors 71 . In this embodiment, the control unit 50 automatically executes the processing of this flow. For example, the second storage unit 312 stores a predetermined value related to the AD value. The predetermined value may be called a target AD value or the like.

本フローの処理では、所定の種別の記録紙11が用いられる。そして、制御部50によって、当該種別の記録紙11が使用される場合に適した制御値を計算する。 In the processing of this flow, a predetermined type of recording paper 11 is used. Then, the controller 50 calculates a control value suitable for the type of recording paper 11 used.

(ステップS11)
制御部50は、シフトレジスタ211に、所定の制御値を出力する。そして、ステップS12の処理へ移行する。当該所定の制御値は、例えば、あらかじめ設定されていてもよく、あるいは、ランダムに決定されてもよい。
(Step S11)
The control unit 50 outputs a predetermined control value to the shift register 211 . Then, the process proceeds to step S12. The predetermined control value may be preset or randomly determined, for example.

(ステップS12)
制御部50は、入力端に入力されるアナログ信号のAD値を取得する。このAD値は、選択回路81により選択された光学センサー71の受光素子75によって検出された値に応じた値となる。そして、ステップS13の処理へ移行する。
(Step S12)
The control unit 50 acquires the AD value of the analog signal input to the input terminal. This AD value is a value corresponding to the value detected by the light receiving element 75 of the optical sensor 71 selected by the selection circuit 81 . Then, the process proceeds to step S13.

ここで、本実施形態では、可変抵抗回路111で使用される第0抵抗部141-0~第7抵抗部141-7の抵抗値のバラツキを小さくすることができる。このため、制御部50は、可変抵抗回路111に設定された合成抵抗に相当する可変抵抗値と、光学センサー71からの出力電圧に基づいて、光学センサー71に流れる負荷電流を算出することが可能である。そして、制御部50は、光学センサー71の負荷電流に基づいて、光学センサー71の感度を精度良く計算することができる。 Here, in the present embodiment, variations in the resistance values of the 0th resistance section 141-0 to the 7th resistance section 141-7 used in the variable resistance circuit 111 can be reduced. Therefore, the control unit 50 can calculate the load current flowing through the optical sensor 71 based on the variable resistance value corresponding to the combined resistance set in the variable resistance circuit 111 and the output voltage from the optical sensor 71. is. Then, the control unit 50 can accurately calculate the sensitivity of the optical sensor 71 based on the load current of the optical sensor 71 .

光学センサー71の感度は、例えば、{(光学センサー71の感度)=(光学センサー71からの出力電圧)/(可変抵抗回路111及び抵抗部131の合成抵抗に相当する可変抵抗値)}によって計算することができる。これにより、光学センサー71の感度のバラツキを把握することが可能である。ここで、光学センサー71の感度は、必ずしも絶対値でなくてもよく、制御値が適しているか否かを評価することができる値であればよい。 The sensitivity of the optical sensor 71 is calculated by, for example, {(sensitivity of the optical sensor 71)=(output voltage from the optical sensor 71)/(variable resistance value corresponding to the combined resistance of the variable resistance circuit 111 and the resistance section 131)}. can do. This makes it possible to grasp variations in the sensitivity of the optical sensor 71 . Here, the sensitivity of the optical sensor 71 does not necessarily have to be an absolute value, as long as it is a value that can be used to evaluate whether or not the control value is suitable.

ここで、記録紙11として、光学特性が既知である種別の用紙が用いられる。ここでは、当該光学特性は、透過率の特性である。当該用紙に関する光学特性の情報が第2記憶部312にあらかじめ記憶される。このような情報は、例えば、ユーザーあるいは所定の装置によって第2記憶部312に登録されてもよく、また、ネットワークなどを介してダウンロードにより第2記憶部312に登録されてもよい。 Here, as the recording paper 11, a type of paper having known optical characteristics is used. Here, the optical property is a transmittance property. Information on the optical characteristics of the paper is pre-stored in the second storage unit 312 . Such information may be registered in the second storage unit 312 by, for example, a user or a predetermined device, or may be registered in the second storage unit 312 by downloading via a network or the like.

(ステップS13)
制御部50は、第2記憶部312に記憶されたAD値に関する所定値と、取得されたAD値を用いて、光学センサー71による検出結果に基づいて制御部50によって取得されるAD値と第2記憶部312に記憶されたAD値に関する所定値とを一致させるシフトレジスタ211の制御値を計算する。この処理では、当該制御値を、使用された種別の用紙にとって適した値とする。そして、本フローの処理を終了する。
(Step S13)
The control unit 50 uses the predetermined AD value stored in the second storage unit 312 and the acquired AD value to determine the AD value and the AD value acquired by the control unit 50 based on the detection result of the optical sensor 71 . 2 Calculate a control value for the shift register 211 that matches a predetermined value for the AD value stored in the storage unit 312 . In this process, the control value is set to a value suitable for the type of paper used. Then, the processing of this flow ends.

ここで、制御部50は、例えば、制御値の計算に用いられた記録紙11の種別と、計算された制御値と、を対応付けた情報を第1記憶部311に記憶する。そして、制御部50は、第1記憶部311に記憶された当該情報に基づいて、当該種別の記録紙11が用いられる場合に、当該種別に対応する制御値を使用する。これにより、印刷装置1では、例えば、用紙の交換時に、制御値を調整する作業をなくすことができる。 Here, for example, the control unit 50 stores in the first storage unit 311 information that associates the type of the recording paper 11 used for calculating the control value with the calculated control value. Based on the information stored in the first storage unit 311, the control unit 50 uses the control value corresponding to the type when the recording paper 11 of the type is used. As a result, in the printing apparatus 1, for example, it is possible to eliminate the work of adjusting the control values when replacing the paper.

例えば、ユーザーによって所定の種別の記録紙11が用いられるように印刷装置1に当該記録紙11がセットされる。また、当該種別を示す情報がユーザーによって印刷装置1に指示される。そして、制御部50は、当該種別に関する情報に基づいて、既に適した制御値が記憶されている場合には、当該制御値を使用する。一方、制御部50は、当該種別に関する情報に基づいて、未だに適した制御値が記憶されていない場合には、適した制御値を計算する。つまり、本実施形態では、制御部50は、複数の光学センサー71のそれぞれの感度を把握することで、所望のAD値が取得されるように、シフトレジスタ211の制御値を計算することができ、このため、毎回の調整作業を省略することができる。 For example, the recording paper 11 is set in the printing apparatus 1 so that the user can use the recording paper 11 of a predetermined type. Also, the user instructs the printing apparatus 1 to indicate the type. Based on the information about the type, if a suitable control value is already stored, the control unit 50 uses the control value. On the other hand, if a suitable control value is not yet stored, the control unit 50 calculates a suitable control value based on the information about the type. That is, in the present embodiment, the control unit 50 can calculate the control value of the shift register 211 so as to acquire the desired AD value by grasping the sensitivity of each of the plurality of optical sensors 71. Therefore, adjustment work every time can be omitted.

本実施形態では、図7に示される処理フローは、あらかじめ決められた記録紙11を用いて行われ、AD値が所定値となるように、可変抵抗回路111を制御するための制御値が決められる。あらかじめ決められた記録紙11は、調整用用紙あるいは推奨用紙などと呼ばれてもよい。あらかじめ決められた記録紙11について、例えば、透過型の光学式センサーが用いられる場合には透過率の特性が既知であってもよい。 In this embodiment, the processing flow shown in FIG. 7 is performed using a predetermined recording paper 11, and a control value for controlling the variable resistance circuit 111 is determined so that the AD value becomes a predetermined value. be done. The predetermined recording paper 11 may be called adjustment paper or recommended paper. For a predetermined recording paper 11, the transmittance characteristics may be known, for example, if a transmissive optical sensor is used.

ここで、当該所定値としては、例えば、1点の値であってもよく、あるいは、所定の範囲にある点の値の集合であってもよい。所定値は、このような集合である場合、所定の範囲に含まれる値に相当する。本実施形態では、第2記憶部312に、AD値の当該所定値、及び、あらかじめ決められた記録紙11に関する既知の情報が、記憶されている。このような既知の情報は、例えば、プロファイル情報と呼ばれてもよい。 Here, the predetermined value may be, for example, a single point value or a set of point values within a predetermined range. A predetermined value, in such a set, corresponds to a value that falls within a predetermined range. In this embodiment, the second storage unit 312 stores the predetermined value of the AD value and predetermined known information about the recording paper 11 . Such known information may be called profile information, for example.

本実施形態では、例えば、検出値に相当するAD値が最大になったとしても飽和しないように設定される。また、本実施形態では、台紙部12AでのAD値と、被検部13AでのAD値とで、S/Nが十分に大きくなるように設定される。具体例として、台紙部12AでのAD値が2.5[V]~3.0[V]の範囲に収まる値となり、被検部13AでのAD値が0.3[V]~0.5[V]の範囲に収まる値となるように設定される。 In this embodiment, for example, even if the AD value corresponding to the detection value reaches its maximum, it is set so as not to saturate. In addition, in the present embodiment, the S/N is set to be sufficiently large between the AD value of the mount portion 12A and the AD value of the test portion 13A. As a specific example, the AD value at the mount portion 12A is a value within the range of 2.5 [V] to 3.0 [V], and the AD value at the test portion 13A is 0.3 [V] to 0.3 [V]. It is set to a value within the range of 5 [V].

<反射型の光学センサー>
ここで、図1及び図4の例では、複数の光学センサー71としての光学センサー71a,71bがいずれもが透過型の光学式センサーであって、記録紙11の被検対象13がラベルである場合の例を示したが、光学センサー71a,71bの少なくとも一方が、反射型の光学式センサーであってもよい。この場合、例えば、記録紙11の被検対象13はマーカーである。
<Reflective optical sensor>
Here, in the examples of FIGS. 1 and 4, both the optical sensors 71a and 71b as the plurality of optical sensors 71 are transmissive optical sensors, and the test object 13 of the recording paper 11 is a label. Although an example of the case is shown, at least one of the optical sensors 71a and 71b may be a reflective optical sensor. In this case, for example, the test object 13 of the recording paper 11 is a marker.

図8は、反射型の光学式センサーを用いる場合の構成の一例を示す図である。図8には、反射型の光学式センサーとして検出部70が光学センサー71cを備える場合を例示している。 FIG. 8 is a diagram showing an example of a configuration when using a reflective optical sensor. FIG. 8 illustrates a case where the detection unit 70 includes an optical sensor 71c as a reflective optical sensor.

光学センサー71cは、発光素子73cと、受光素子75cとを備える。ここで、図8には、反射型検出位置P1を示している。また、記録紙11は、反射型の光学式センサーに使用される反射型記録紙であってもよい。なお、説明の便宜上、図8の例では、図1及び図4に示される透過型の光学式センサーが用いられる場合とは異なる符号を付しているが、検出部70が有する光学センサー71a,71bを含む複数の光学センサー71の内のいずれかが反射型の光学センサー71cに置き換えられてもよく、また、検出部70は、光学センサー71a,71bを含む複数の光学センサー71に加えて、光学センサー71cを有してもよい。 The optical sensor 71c includes a light emitting element 73c and a light receiving element 75c. Here, FIG. 8 shows the reflective detection position P1. Also, the recording paper 11 may be a reflective recording paper used for a reflective optical sensor. For convenience of explanation, in the example of FIG. Any one of the plurality of optical sensors 71 including 71b may be replaced with a reflective optical sensor 71c, and the detection unit 70, in addition to the plurality of optical sensors 71 including the optical sensors 71a and 71b, It may have an optical sensor 71c.

図8に示すように、光学センサー71cは、搬送路Tの下方に配置された発光素子73cと、搬送路Tの下方に配置された受光素子75cを備える。ここで、他の構成として、発光素子73cが搬送路Tの上方に配置され、受光素子75cが搬送路Tの上方に配置されてもよい。 As shown in FIG. 8, the optical sensor 71c includes a light emitting element 73c arranged below the transport path T and a light receiving element 75c arranged below the transport path T. As shown in FIG. Here, as another configuration, the light emitting element 73c may be arranged above the transport path T, and the light receiving element 75c may be arranged above the transport path T. FIG.

発光素子73cと受光素子75cは、搬送路Tに対して同じ側に配置される。発光素子73cは、制御部50によって制御されて、搬送路T上の反射型検出位置P1に記録紙11が搬送されると、検出光を照射する。反射型検出位置P1は、発光素子73cが発する検出光が照射される搬送路T上の位置である。発光素子73cによって照射された検出光は、記録紙11によって反射されて受光素子75cによって受光される。このとき、反射型検出位置P1に記録紙11の台紙部12Aが位置する場合と、被検部13Aが位置する場合とでは、受光素子75cが受光する検出光の光量が変化する。このため、受光素子75cからの出力の変化に基づいて、反射型検出位置P1に台紙部12Aが位置するのか、または、被検部13Aが位置するのかを判定することができる。例えば、記録紙11として、台紙部12Aと被検部13Aとの光の反射率の差が所定の閾値以上のものを用いることで、記録紙11における被検対象13の検出精度を高めることができる。 The light-emitting element 73c and the light-receiving element 75c are arranged on the same side of the transport path T. As shown in FIG. The light emitting element 73c is controlled by the control unit 50, and when the recording paper 11 is conveyed to the reflective detection position P1 on the conveying path T, the light emitting element 73c emits detection light. The reflective detection position P1 is a position on the transport path T irradiated with the detection light emitted by the light emitting element 73c. The detection light emitted by the light emitting element 73c is reflected by the recording paper 11 and received by the light receiving element 75c. At this time, the amount of detection light received by the light receiving element 75c changes depending on whether the mount portion 12A of the recording paper 11 is positioned at the reflective detection position P1 or when the test portion 13A is positioned. Therefore, based on the change in the output from the light receiving element 75c, it can be determined whether the mounting paper portion 12A is positioned at the reflective detection position P1 or whether the test portion 13A is positioned. For example, by using recording paper 11 in which the difference in light reflectance between the mounting paper portion 12A and the test portion 13A is equal to or greater than a predetermined threshold value, the detection accuracy of the test object 13 on the recording paper 11 can be improved. can.

ここで、検出部70が反射型の光学式センサーである光学センサー71cを有し、当該構成に図7に示される処理が適用される場合、記録紙11の光学特性として、反射率の特性が用いられる。つまり、あらかじめ決められた記録紙11について、例えば、反射型の光学式センサーが用いられる場合には、反射率の特性が既知であってもよい。 Here, when the detection unit 70 has the optical sensor 71c, which is a reflective optical sensor, and the processing shown in FIG. Used. That is, for a predetermined recording paper 11, for example, when a reflective optical sensor is used, the reflectance characteristics may be known.

<以上の実施形態について>
以上のように、本実施形態に係る印刷装置1では、光学センサー71a,71b,71cに対して、適した抵抗値を設定することができる。本実施形態に係る印刷装置1では、例えば、可変抵抗回路111の合成抵抗として、光学センサー71a,71b,71cを含む複数の光学センサー71の感度に応じた合成抵抗を設定することができる。
<Regarding the above embodiment>
As described above, in the printing apparatus 1 according to this embodiment, suitable resistance values can be set for the optical sensors 71a, 71b, and 71c. In the printing apparatus 1 according to this embodiment, for example, the combined resistance of the variable resistance circuit 111 can be set according to the sensitivities of the plurality of optical sensors 71 including the optical sensors 71a, 71b, and 71c.

本実施形態に係る印刷装置1では、例えば、光学センサー71a,71b,71cを含む複数の光学センサー71のそれぞれに対応するシフトレジスタ211の設定値情報を不揮発性メモリーなどに保存しておくことができる。そして、本実施形態に係る印刷装置1では、基板411の交換時において、シフトレジスタ211の設定値情報を引き継ぐことで、可変抵抗回路111の合成抵抗を引き継ぐことができ、これにより、基板411の交換時に光学センサー71a,71b,71cを調整することが不要となる。 In the printing apparatus 1 according to this embodiment, for example, setting value information of the shift registers 211 corresponding to each of the plurality of optical sensors 71 including the optical sensors 71a, 71b, and 71c can be stored in a nonvolatile memory or the like. can. In the printing apparatus 1 according to the present embodiment, when the substrate 411 is replaced, the set value information of the shift register 211 can be inherited, thereby inheriting the combined resistance of the variable resistance circuit 111 . It becomes unnecessary to adjust the optical sensors 71a, 71b, 71c at the time of replacement.

本実施形態に係る印刷装置1では、例えば、光学センサー71a,71b,71cの調整用の可変抵抗回路111を修理等で交換した場合においても、新たに手動による調整が不要であり、可変抵抗回路111の交換が容易になる。 In the printing apparatus 1 according to the present embodiment, for example, even if the variable resistance circuit 111 for adjusting the optical sensors 71a, 71b, and 71c is replaced due to repair or the like, new manual adjustment is not required. 111 replacement becomes easier.

特に、8個の抵抗部である第0抵抗部141-0~第7抵抗部141-7のそれぞれとして、抵抗値のバラツキが小さい抵抗を使用することで、例えば、DPMの場合と比べて、可変抵抗回路111の合成抵抗値のバラツキを±1%程度などに抑えることが可能である。 In particular, by using resistors with small variations in resistance value for each of the 0th resistor section 141-0 to the 7th resistor section 141-7, which are the eight resistor sections, compared to the case of DPM, for example, Variation in the combined resistance value of the variable resistance circuit 111 can be suppressed to about ±1%.

ここで、本実施形態では、可変抵抗回路111に8個の抵抗部である第0抵抗部141-0~第7抵抗部141-7が備えられる場合を示したが、可変抵抗回路111に備えられる複数の抵抗部の数としては、2以上の任意の数が用いられてもよい。また、本実施形態では、可変抵抗回路111に8個の駆動素子である第0駆動素子161-0~第7駆動素子161-7が備えられる場合を示したが、可変抵抗回路111に備えられる駆動素子の数としては、1以上の任意の数が用いられてもよい。 Here, in the present embodiment, the case where the variable resistance circuit 111 is provided with the 0th resistance unit 141-0 to the 7th resistance unit 141-7, which are eight resistance units, is shown. Any number of 2 or more may be used as the number of the plurality of resistance units provided. Further, in the present embodiment, the case where the variable resistance circuit 111 is provided with the 0th drive element 161-0 to the 7th drive element 161-7, which are eight drive elements, is shown. Any number of 1 or more may be used as the number of drive elements.

また、本実施形態では、可変抵抗回路111において、複数の抵抗部である第0抵抗部141-0~第7抵抗部141-7が並列に接続された場合を示したが、他の構成例として、複数の抵抗部が直列に接続された構成、あるいは、複数の抵抗部が直列と並列の組み合わせで接続された構成が用いられてもよい。 Further, in the present embodiment, the variable resistance circuit 111 has shown the case where the 0th resistance section 141-0 to the 7th resistance section 141-7, which are a plurality of resistance sections, are connected in parallel. Alternatively, a configuration in which a plurality of resistors are connected in series or a configuration in which a plurality of resistors are connected in series and in parallel may be used.

なお、複数の抵抗部が直列に接続された部分では、例えば、駆動素子がオンの状態にされた抵抗部が直列に接続される一方、駆動素子がオフの状態にされた抵抗部の代わりに並列に設けられた信号線が直列に接続される構成が用いられてもよい。また、複数の抵抗部が互いに接続される構成としては、例えば、複数の抵抗部のそれぞれが他の抵抗部と直接接続されてもよく、あるいは、複数の抵抗部のうちの1組以上が別の抵抗部を介して間接的に接続されてもよい。 Note that in the portion where a plurality of resistance units are connected in series, for example, while the resistance units whose drive elements are turned on are connected in series, instead of the resistance units whose drive elements are turned off, A configuration in which signal lines provided in parallel are connected in series may be used. In addition, as a configuration in which a plurality of resistance portions are connected to each other, for example, each of the plurality of resistance portions may be directly connected to another resistance portion, or one or more sets of the plurality of resistance portions may be connected separately. may be indirectly connected via a resistor of

また、本実施形態では、選択回路81は、光学センサー71aに対応するスイッチ82aと光学センサー71bに対応するスイッチ82bとを有し、制御部50がスイッチ82aとスイッチ82bとを排他的にオンの状態とすることで、光学センサー71a,71bとを選択しているが、選択回路81は、セレクターとして構成された、制御部50から入力される制御信号に基づいて、光学センサー71a,71bを含む複数の光学センサー71の1つを選択し、可変抵抗回路111と接続されてもよい。 In this embodiment, the selection circuit 81 has a switch 82a corresponding to the optical sensor 71a and a switch 82b corresponding to the optical sensor 71b. The selection circuit 81 includes the optical sensors 71a and 71b based on a control signal input from the control unit 50 configured as a selector. One of the multiple optical sensors 71 may be selected and connected to the variable resistance circuit 111 .

<構成例>
一構成例として、印刷装置(実施形態では、印刷装置1)では、互いに接続された複数の抵抗部(実施形態では、第0抵抗部141-0~第7抵抗部141-7)と、複数の抵抗部の各々に電流を流す1以上の駆動素子(実施形態では、第0駆動素子161-0~第7駆動素子161-7)と、を含んで構成される可変抵抗回路(実施形態では、可変抵抗回路111)と、可変抵抗回路に接続される第1光学センサー(実施形態では、光学センサー71a又は光学センサー71c)及び第2光学センサー(実施形態では、光学センサー71b又は光学センサー71c)と、第1光学センサーを可変抵抗回路と接続するのか、第2光学センサーを可変抵抗回路と接続するのかを選択する選択回路(実施形態では、選択回路81)と、1以上の駆動素子のうちの一部または全部の駆動素子を選択してオンにする信号を出力するシフトレジスタ(実施形態では、シフトレジスタ211)と、第1光学センサー、または、第2光学センサーの検出値を取得し、当該検出値に基づいてシフトレジスタを制御するとともに、選択回路の選択を制御する制御部(実施形態では、制御部50)と、を備える。
<Configuration example>
As one configuration example, in a printing apparatus (printing apparatus 1 in the embodiment), a plurality of resistance units (0th resistance unit 141-0 to 7th resistance unit 141-7 in the embodiment) connected to each other, and a plurality of and one or more drive elements (in the embodiment, 0th drive element 161-0 to 7th drive element 161-7) for causing a current to flow through each of the resistance portions of the variable resistance circuit (in the embodiment, , variable resistance circuit 111), and a first optical sensor (optical sensor 71a or optical sensor 71c in the embodiment) and a second optical sensor (optical sensor 71b or optical sensor 71c in the embodiment) connected to the variable resistance circuit. a selection circuit (selection circuit 81 in the embodiment) for selecting whether the first optical sensor is connected to the variable resistance circuit or the second optical sensor is connected to the variable resistance circuit; A shift register (shift register 211 in the embodiment) that outputs a signal to select and turn on some or all of the driving elements of the first optical sensor or the detection value of the second optical sensor, A control unit (control unit 50 in the embodiment) that controls the shift register based on the detected value and controls selection of the selection circuit.

一構成例として、印刷装置において、第1光学センサーは、透過光を用いて長尺状の第1台紙(実施形態では、透過光が検出される記録紙11の台紙12)に貼付されたラベル(実施形態では、ラベルが用いられる被検対象13)を検出する透過型センサー、または、反射光を用いて長尺状の第2台紙(実施形態では、反射光が検出される記録紙11の台紙12)に付されたマーク(実施形態では、マークが用いられる被検対象13)を検出する反射型センサーである。そして、制御部は、第1台紙または第2台紙の位置(実施形態では、検出位置P、または、反射型検出位置P1)における光学センサーの検出値が所定値になるように、シフトレジスタを制御して、可変抵抗回路の合成抵抗値を調整する。 As a configuration example, in a printing apparatus, the first optical sensor uses transmitted light to detect a label attached to a long first mount (in the embodiment, mount 12 of recording paper 11 on which transmitted light is detected). (In the embodiment, a transmission type sensor that detects the object 13 for which the label is used), or a long-shaped second mount (in the embodiment, the recording paper 11 whose reflected light is detected) using reflected light. It is a reflective sensor that detects a mark (test object 13 on which the mark is used in the embodiment) attached to the mount 12). Then, the control unit controls the shift register so that the detection value of the optical sensor at the position of the first mount or the second mount (detection position P or reflective detection position P1 in the embodiment) becomes a predetermined value. to adjust the combined resistance value of the variable resistance circuit.

一構成例として、印刷装置において、第1記憶部(実施形態では、第1記憶部311)を備える。そして、制御部は、第1台紙または第2台紙の位置における第1光学センサーの検出値が所定値になった場合におけるシフトレジスタの制御値を第1記憶部に記憶し、第1光学センサーによりラベルまたはマークを検出する場合に、第1記憶部から制御値を読み出してシフトレジスタを制御する。 As one configuration example, a printing apparatus includes a first storage unit (first storage unit 311 in the embodiment). Then, the control unit stores the control value of the shift register in the first storage unit when the detection value of the first optical sensor at the position of the first mount or the second mount reaches a predetermined value, and the first optical sensor When detecting a label or a mark, the control value is read from the first memory to control the shift register.

一構成例として、印刷装置において、可変抵抗回路が搭載される基板(実施形態では、基板411)と、光学センサーが搭載される被搭載部(実施形態では、被搭載部412)とは異なる。 As a configuration example, in a printing apparatus, a substrate on which a variable resistance circuit is mounted (substrate 411 in the embodiment) is different from a mounting portion on which an optical sensor is mounted (mounting portion 412 in the embodiment).

一構成例として、印刷装置において、第1光学センサーは、透過光を用いて長尺状の第1台紙に貼付されたラベルを検出する透過型センサー、または、反射光を用いて長尺状の第2台紙に付されたマークを検出する反射型センサーである。印刷装置は、第1台紙または第2台紙の位置における第1光学センサーの検出値に関する所定値を記憶する第2記憶部(実施形態では、第2記憶部312)を備える。制御部は、所定の制御値によりシフトレジスタを制御して、第1台紙または第2台紙の位置における第1光学センサーの検出値を取得し、当該検出値と当該所定の制御値と第2記憶部に記憶された所定値に基づき、シフトレジスタの制御値を計算する。 As one configuration example, in the printing apparatus, the first optical sensor may be a transmissive sensor that detects the label attached to the long first backing paper using transmitted light, or a long It is a reflective sensor that detects the mark attached to the second mount. The printing apparatus includes a second storage unit (second storage unit 312 in the embodiment) that stores a predetermined value related to the detection value of the first optical sensor at the position of the first mount or the second mount. The control unit controls the shift register with a predetermined control value to acquire the detection value of the first optical sensor at the position of the first mount or the second mount, and stores the detection value, the predetermined control value, and the second memory. A control value for the shift register is calculated based on the predetermined value stored in the unit.

一構成例として、印刷装置の制御方法(実施形態では、印刷装置1において行われる制御方法)であって、印刷装置は、互いに接続された複数の抵抗部と、複数の抵抗部の各々に電流を流す1以上の駆動素子と、を含んで構成される可変抵抗回路と、可変抵抗回路に接続される第1光学センサー及び第2光学センサーと、第1光学センサーを可変抵抗回路と接続するのか、第2光学センサーを可変抵抗回路と接続するのかを選択する選択回路と、1以上の駆動素子のうちの一部または全部の駆動素子を選択してオンにする信号を出力するシフトレジスタと、を備える。そして、印刷装置の制御部は、選択回路の選択を制御する選択工程(実施形態では、ステップS1又はステップS7)と、選択回路が選択した第1光学センサー、または、第2光学センサーの検出値を取得し、当該検出値に基づいてシフトレジスタを制御するレジスター制御工程(実施形態では、ステップS3~S5,S11~S13)。 As one configuration example, a printing device control method (in the embodiment, a control method performed in the printing device 1), wherein the printing device includes a plurality of resistors connected to each other and a current flowing through each of the plurality of resistors. one or more drive elements for flowing a variable resistance circuit; a first optical sensor and a second optical sensor connected to the variable resistance circuit; and a first optical sensor connected to the variable resistance circuit , a selection circuit for selecting whether to connect the second optical sensor to the variable resistance circuit; a shift register for selecting and outputting a signal to turn on some or all of the one or more driving elements; Prepare. Then, the control unit of the printing apparatus performs a selection step (step S1 or step S7 in the embodiment) for controlling selection of the selection circuit, and a detection value of the first optical sensor or the second optical sensor selected by the selection circuit. and controlling the shift register based on the detected value (steps S3 to S5 and S11 to S13 in the embodiment).

なお、以上に説明した印刷装置1などの任意の装置における任意の構成部の機能を実現するためのプログラムを、コンピューター読み取り可能な記録媒体に記録し、そのプログラムをコンピューターシステムに読み込ませて実行するようにしてもよい。なお、ここでいう「コンピューターシステム」とは、オペレーティングシステム(OS:Operating System)あるいは周辺機器等のハードウェアを含むものとする。また、「コンピューター読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD(CompactDisc)-ROM等の可搬媒体、コンピューターシステムに内蔵されるハードディスク等の記憶装置のことをいう。さらに「コンピューター読み取り可能な記録媒体」とは、インターネット等のネットワークあるいは電話回線等の通信回線を介してプログラムが送信された場合のサーバーやクライアントとなるコンピューターシステム内部の揮発性メモリーのように、一定時間プログラムを保持しているものも含むものとする。当該揮発性メモリーは、例えば、RAMであってもよい。記録媒体は、例えば、非一時的記録媒体であってもよい。 It should be noted that a program for realizing the functions of any component in any device such as the printing device 1 described above is recorded on a computer-readable recording medium, and the program is read and executed by a computer system. You may do so. The term "computer system" as used herein includes an operating system (OS) or hardware such as peripheral devices. In addition, "computer-readable recording medium" refers to portable media such as flexible discs, magneto-optical discs, ROMs, CD (Compact Disc)-ROMs, and storage devices such as hard discs built into computer systems. In addition, "computer-readable recording medium" means a certain amount of data, such as volatile memory inside a computer system that acts as a server or client when a program is transmitted via a network such as the Internet or a communication line such as a telephone line. It also includes those holding time programs. The volatile memory may be, for example, RAM. The recording medium may be, for example, a non-transitory recording medium.

また、上記のプログラムは、このプログラムを記憶装置等に格納したコンピューターシステムから、伝送媒体を介して、あるいは、伝送媒体中の伝送波により他のコンピューターシステムに伝送されてもよい。ここで、プログラムを伝送する「伝送媒体」は、インターネット等のネットワークあるいは電話回線等の通信回線のように情報を伝送する機能を有する媒体のことをいう。 Moreover, the above program may be transmitted from a computer system storing this program in a storage device or the like to another computer system via a transmission medium or by a transmission wave in a transmission medium. Here, the "transmission medium" for transmitting the program means a medium having a function of transmitting information, such as a network such as the Internet or a communication line such as a telephone line.

また、上記のプログラムは、前述した機能の一部を実現するためのものであってもよい。さらに、上記のプログラムは、前述した機能をコンピューターシステムにすでに記録されているプログラムとの組み合わせで実現できるもの、いわゆる差分ファイルであってもよい。差分ファイルは、差分プログラムと呼ばれてもよい。 Also, the above program may be for realizing part of the functions described above. Furthermore, the above program may be a so-called difference file, which can realize the functions described above in combination with a program already recorded in the computer system. A difference file may be referred to as a difference program.

また、以上に説明した印刷装置1などの任意の装置における任意の構成部の機能は、プロセッサーにより実現されてもよい。例えば、本実施形態における各処理は、プログラム等の情報に基づき動作するプロセッサーと、プログラム等の情報を記憶するコンピューター読み取り可能な記録媒体により実現されてもよい。ここで、プロセッサーは、例えば、各部の機能が個別のハードウェアで実現されてもよく、あるいは、各部の機能が一体のハードウェアで実現されてもよい。例えば、プロセッサーはハードウェアを含み、当該ハードウェアは、デジタル信号を処理する回路及びアナログ信号を処理する回路のうちの少なくとも一方を含んでもよい。例えば、プロセッサーは、回路基板に実装された1または複数の回路装置、あるいは、1または複数の回路素子のうちの一方または両方を用いて、構成されてもよい。回路装置としてはIC(Integrated Circuit)などが用いられてもよく、回路素子としては抵抗あるいはキャパシターなどが用いられてもよい。 Also, the functions of any component in any device such as the printing device 1 described above may be implemented by a processor. For example, each process in this embodiment may be realized by a processor operating based on information such as a program and a computer-readable recording medium storing information such as the program. Here, for the processor, for example, the function of each section may be implemented by separate hardware, or the function of each section may be implemented by integrated hardware. For example, a processor may include hardware, which may include at least one of circuitry for processing digital signals and circuitry for processing analog signals. For example, a processor may be configured using one or more circuit devices and/or one or more circuit elements mounted on a circuit board. An IC (Integrated Circuit) or the like may be used as the circuit device, and a resistor, capacitor, or the like may be used as the circuit element.

ここで、プロセッサーは、例えば、CPUであってもよい。ただし、プロセッサーは、CPUに限定されるものではなく、例えば、GPU(GraphicsProcessing Unit)、あるいは、DSP(Digital SignalProcessor)等のような、各種のプロセッサーが用いられてもよい。また、プロセッサーは、例えば、ASIC(Application Specific Integrated Circuit)によるハードウェア回路であってもよい。また、プロセッサーは、例えば、複数のCPUにより構成されていてもよく、あるいは、複数のASICによるハードウェア回路により構成されていてもよい。また、プロセッサーは、例えば、複数のCPUと、複数のASICによるハードウェア回路と、の組み合わせにより構成されていてもよい。また、プロセッサーは、例えば、アナログ信号を処理するアンプ回路あるいはフィルター回路等のうちの1以上を含んでもよい。 Here, the processor may be, for example, a CPU. However, the processor is not limited to a CPU, and various processors such as GPU (Graphics Processing Unit) or DSP (Digital Signal Processor) may be used. Also, the processor may be a hardware circuit based on, for example, an ASIC (Application Specific Integrated Circuit). Also, the processor may be composed of, for example, a plurality of CPUs, or may be composed of a plurality of ASIC hardware circuits. Also, the processor may be configured by, for example, a combination of multiple CPUs and multiple ASIC hardware circuits. The processor may also include one or more of, for example, amplifier circuits or filter circuits that process analog signals.

以上、実施形態について説明したが、本発明はこれらの実施形態に限られるものではなく、その要旨を逸脱しない範囲において種々の態様で実施することが可能である。例えば、上記の実施形態を適宜組み合わせることも可能である。 Although the embodiments have been described above, the present invention is not limited to these embodiments, and can be implemented in various forms without departing from the gist of the present invention. For example, it is also possible to combine the above embodiments as appropriate.

本発明は、実施形態で説明した構成と実質的に同一の構成(例えば、機能、方法及び結果が同一の構成、あるいは目的及び効果が同一の構成)を含む。また、本発明は、実施形態で説明した構成の本質的でない部分を置き換えた構成を含む。また、本発明は、実施形態で説明した構成と同一の作用効果を奏する構成又は同一の目的を達成することができる構成を含む。また、本発明は、実施形態で説明した構成に公知技術を付加した構成を含む。 The present invention includes configurations that are substantially the same as the configurations described in the embodiments (for example, configurations that have the same function, method, and result, or configurations that have the same purpose and effect). Moreover, the present invention includes configurations in which non-essential portions of the configurations described in the embodiments are replaced. In addition, the present invention includes a configuration that achieves the same effects or achieves the same purpose as the configurations described in the embodiments. In addition, the present invention includes configurations obtained by adding known techniques to the configurations described in the embodiments.

上述した実施形態から以下の内容が導き出される。 The following content is derived from the embodiment described above.

印刷装置の一態様は、
互いに接続された複数の抵抗部と、前記複数の抵抗部の各々に電流を流す1以上の駆動素子と、を含んで構成される可変抵抗回路と、
前記可変抵抗回路に接続される第1光学センサー及び第2光学センサーと、
前記第1光学センサーを前記可変抵抗回路と接続するのか、前記第2光学センサーを前記可変抵抗回路と接続するのかを選択する選択回路と、
前記1以上の前記駆動素子のうちの一部または全部の前記駆動素子を選択してオンにする信号を出力するシフトレジスタと、
前記第1光学センサー、または、前記第2光学センサーの検出値を取得し、前記検出値に基づいて前記シフトレジスタを制御するとともに、前記選択回路の選択を制御する制御部と、
を備える。
One aspect of the printing device includes:
a variable resistance circuit including a plurality of resistors connected to each other and one or more drive elements for causing current to flow through each of the plurality of resistors;
a first optical sensor and a second optical sensor connected to the variable resistance circuit;
a selection circuit for selecting whether to connect the first optical sensor to the variable resistance circuit or to connect the second optical sensor to the variable resistance circuit;
a shift register that outputs a signal to select and turn on some or all of the one or more drive elements;
a control unit that acquires a detection value of the first optical sensor or the second optical sensor, controls the shift register based on the detection value, and controls selection of the selection circuit;
Prepare.

この印刷装置によれば、選択回路が第1光学センサーと第2光学センサーとを含む複数の光学センサーのいずれかを選択し、シフトレジスタが1以上の駆動素子のうちの一部または全部の駆動素子を選択してオンにすることで、第1光学センサーと第2光学センサーとを含む複数の光学センサーのそれぞれに対して適した抵抗値を設定することができる。そして、第1光学センサーと第2光学センサーとを含む複数の光学センサーのそれぞれに適した抵抗値の情報として、シフトレジスタの設定値情報を不揮発性メモリーなどに保存しておくことで、基板が交換された場合においても、シフトレジスタの設定値情報を引き継ぐことができる。すなわち、可変抵抗回路の合成抵抗を引き継ぐことができる。これにより、基板の交換時に第1光学センサーと第2光学センサーとを含む複数の光学センサーを再度調整することが不要となる。 According to this printing apparatus, the selection circuit selects one of the plurality of optical sensors including the first optical sensor and the second optical sensor, and the shift register drives part or all of the one or more driving elements. By selecting and turning on the elements, suitable resistance values can be set for each of the plurality of optical sensors including the first optical sensor and the second optical sensor. Then, by storing set value information of the shift register in a non-volatile memory or the like as resistance value information suitable for each of the plurality of optical sensors including the first optical sensor and the second optical sensor, the substrate can be Even when the shift register is replaced, the set value information of the shift register can be handed over. That is, it is possible to take over the combined resistance of the variable resistance circuit. This eliminates the need to readjust the plurality of optical sensors including the first optical sensor and the second optical sensor when the substrate is replaced.

前記印刷装置の一態様において、
前記第1光学センサーは、透過光を用いて長尺状の第1台紙に貼付されたラベルを検出する透過型センサー、または、反射光を用いて長尺状の第2台紙に付されたマークを検出する反射型センサーであり、
前記制御部は、前記第1台紙または前記第2台紙の位置における前記第1光学センサーの検出値が所定値になるように、前記シフトレジスタを制御して、前記可変抵抗回路の合成抵抗値を調整してもよい。
In one aspect of the printing device,
The first optical sensor is a transmissive sensor that uses transmitted light to detect the label attached to the first elongated mount, or a mark attached to the second elongated mount using reflected light. is a reflective sensor that detects
The control unit controls the shift register so that the detection value of the first optical sensor at the position of the first mount or the second mount becomes a predetermined value, and adjusts the combined resistance value of the variable resistance circuit. may be adjusted.

前記印刷装置の一態様において、
第1記憶部を備え、
前記制御部は、前記第1台紙または前記第2台紙の位置における前記第1光学センサーの検出値が所定値になった場合における前記シフトレジスタの制御値を前記第1記憶部に記憶し、前記第1光学センサーにより前記ラベルまたは前記マークを検出する場合に、前記第1記憶部から前記制御値を読み出して前記シフトレジスタを制御してもよい。
In one aspect of the printing device,
A first storage unit is provided,
The control unit stores a control value of the shift register in the first storage unit when a detection value of the first optical sensor at the position of the first mount or the second mount reaches a predetermined value, and When the label or the mark is detected by the first optical sensor, the control value may be read out from the first storage section to control the shift register.

前記印刷装置の一態様において、
前記可変抵抗回路が搭載される基板と、前記第1光学センサー及び前記第2光学センサーが搭載される被搭載部とは異なってもよい。
In one aspect of the printing device,
A substrate on which the variable resistance circuit is mounted may be different from a mounting portion on which the first optical sensor and the second optical sensor are mounted.

前記印刷装置の一態様において、
前記第1光学センサーは、透過光を用いて長尺状の第1台紙に貼付されたラベルを検出する透過型センサー、または、反射光を用いて長尺状の第2台紙に付されたマークを検出する反射型センサーであり、
前記第1台紙または前記第2台紙の位置における前記第1光学センサーの検出値に関する所定値を記憶する第2記憶部を備え、
前記制御部は、所定の制御値により前記シフトレジスタを制御して、前記第1台紙または前記第2台紙の位置における前記第1光学センサーの検出値を取得し、当該検出値と前記所定の制御値と前記第2記憶部に記憶された前記所定値に基づき、前記シフトレジスタの制御値を計算してもよい。
In one aspect of the printing device,
The first optical sensor is a transmissive sensor that uses transmitted light to detect the label attached to the first elongated mount, or a mark attached to the second elongated mount using reflected light. is a reflective sensor that detects
A second storage unit that stores a predetermined value related to the detection value of the first optical sensor at the position of the first mount or the second mount,
The control unit controls the shift register with a predetermined control value to acquire a detection value of the first optical sensor at the position of the first mount or the second mount, and obtains the detection value and the predetermined control. A control value for the shift register may be calculated based on the value and the predetermined value stored in the second storage unit.

印刷装置の制御方法の一態様は、
印刷装置の制御方法であって、
前記印刷装置は、
互いに接続された複数の抵抗部と、前記複数の抵抗部の各々に電流を流す1以上の駆動素子と、を含んで構成される可変抵抗回路と、
前記可変抵抗回路に接続される第1光学センサー及び第2光学センサーと、
前記第1光学センサーを前記可変抵抗回路と接続するのか、前記第2光学センサーを前記可変抵抗回路と接続するのかを選択する選択回路と、
前記1以上の前記駆動素子のうちの一部または全部の前記駆動素子を選択してオンにする信号を出力するシフトレジスタと、
を備え、
前記印刷装置の制御部は、
前記選択回路の選択を制御する選択工程と、
前記選択回路が選択した前記第1光学センサー、または、前記第2光学センサーの検出値を取得し、前記検出値に基づいて前記シフトレジスタを制御するレジスター制御工程と、
を含む。
One aspect of a method for controlling a printing device includes:
A control method for a printing device, comprising:
The printing device
a variable resistance circuit including a plurality of resistors connected to each other and one or more drive elements for causing current to flow through each of the plurality of resistors;
a first optical sensor and a second optical sensor connected to the variable resistance circuit;
a selection circuit for selecting whether to connect the first optical sensor to the variable resistance circuit or to connect the second optical sensor to the variable resistance circuit;
a shift register that outputs a signal to select and turn on some or all of the one or more drive elements;
with
The control unit of the printing device,
a selection step of controlling selection of the selection circuit;
a register control step of acquiring the detection value of the first optical sensor or the second optical sensor selected by the selection circuit and controlling the shift register based on the detection value;
including.

この印刷装置の制御方法によれば、制御部が選択工程において、選択回路が第1光学センサーと第2光学センサーとを含む複数の光学センサーのいずれかを選択するように制御し、レジスター制御工程において、シフトレジスタが1以上の駆動素子のうちの一部または全部の駆動素子を選択してオンにすることで、第1光学センサーと第2光学センサーとを含む複数の光学センサーのそれぞれに対して適した抵抗値を設定するとともに、第1光学センサーと第2光学センサーとを含む複数の光学センサーのそれぞれに適した抵抗値の情報として、シフトレジスタの設定値情報を不揮発性メモリーなどに保存する。これにより、基板が交換された場合においても、シフトレジスタの設定値情報を引き継ぐことができる。すなわち、可変抵抗回路の合成抵抗を引き継ぐことができる。これにより、基板の交換時に第1光学センサーと第2光学センサーとを含む複数の光学センサーを再度調整することが不要となる。 According to this printing apparatus control method, in the selection step, the control unit controls the selection circuit to select one of the plurality of optical sensors including the first optical sensor and the second optical sensor, and the register control step for each of the plurality of optical sensors including the first optical sensor and the second optical sensor by selecting and turning on some or all of the one or more driving elements in the shift register In addition to setting a suitable resistance value for each of the plurality of optical sensors including the first optical sensor and the second optical sensor, the set value information of the shift register is stored in a non-volatile memory or the like as information on the resistance value suitable for each of the plurality of optical sensors. do. As a result, even when the board is replaced, the set value information of the shift register can be handed over. That is, it is possible to take over the combined resistance of the variable resistance circuit. This eliminates the need to readjust the plurality of optical sensors including the first optical sensor and the second optical sensor when the substrate is replaced.

1…印刷装置、5…筐体、7…ホストコンピューター、10…記録紙収容部、11…記録紙、12…台紙、12A…台紙部、13…被検対象、13A…被検部、20…搬送機構、21…搬送ローラー、23…駆動モーター、30…印刷ヘッド、50…制御部、61…オートカッター、63…排紙口、70…検出部、71,71a,71b,71c…光学センサー、73,73a,73b,73c…発光素子、75,75a,75b,75c…受光素子、80…通信部、81…選択回路、82a,82b…スイッチ、83…インバーター、90…操作部、111…可変抵抗回路、131…抵抗部、141-0…第0抵抗部、141-1…第1抵抗部、141-2…第2抵抗部、141-3…第3抵抗部、141-4…第4抵抗部、141-5…第5抵抗部、141-6…第6抵抗部、141-7…第7抵抗部、161-0…第0駆動素子、161-1…第1駆動素子、161-2…第2駆動素子、161-3…第3駆動素子、161-4…第4駆動素子、161-5…第5駆動素子、161-6…第6駆動素子、161-7…第7駆動素子、211…シフトレジスタ、311…第1記憶部、312…第2記憶部、411…基板、412…被搭載部、511…第1信号線、512…第2信号線、513…第3信号線、1011…特性、A…印刷位置、B…切断位置、G…ギャップ、P…検出位置、P1…反射型検出位置、T…搬送路
DESCRIPTION OF SYMBOLS 1... Printing apparatus 5... Housing 7... Host computer 10... Recording paper accommodation part 11... Recording paper 12... Mounting paper 12A... Mounting paper part 13... Test object 13A... Test part 20... Conveying mechanism 21 Conveying roller 23 Drive motor 30 Print head 50 Control unit 61 Auto cutter 63 Paper ejection port 70 Detection unit 71, 71a, 71b, 71c Optical sensor 73, 73a, 73b, 73c... Light emitting element 75, 75a, 75b, 75c... Light receiving element 80... Communication unit 81... Selection circuit 82a, 82b... Switch 83... Inverter 90... Operation unit 111... Variable Resistor circuit 131... Resistor part 141-0... 0th resistor part 141-1... First resistor part 141-2... Second resistor part 141-3... Third resistor part 141-4... Fourth Resistance section 141-5... Fifth resistance section 141-6... Sixth resistance section 141-7... Seventh resistance section 161-0... 0th drive element 161-1... First drive element 161- 2 Second drive element 161-3 Third drive element 161-4 Fourth drive element 161-5 Fifth drive element 161-6 Sixth drive element 161-7 Seventh drive Elements 211...Shift register 311...First storage part 312...Second storage part 411...Substrate 412...Mounted part 511...First signal line 512...Second signal line 513...Third signal Line, 1011...Characteristics, A...Printing position, B...Cutting position, G...Gap, P...Detection position, P1...Reflective detection position, T...Conveyance path

Claims (6)

互いに接続された複数の抵抗部と、前記複数の抵抗部の各々に電流を流す1以上の駆動素子と、を含んで構成される可変抵抗回路と、
前記可変抵抗回路に接続される第1光学センサー及び第2光学センサーと、
前記第1光学センサーを前記可変抵抗回路と接続するのか、前記第2光学センサーを前記可変抵抗回路と接続するのかを選択する選択回路と、
前記1以上の前記駆動素子のうちの一部または全部の前記駆動素子を選択してオンにする信号を出力するシフトレジスタと、
前記第1光学センサー、または、前記第2光学センサーの検出値を取得し、前記検出値に基づいて前記シフトレジスタを制御するとともに、前記選択回路の選択を制御する制御部と、
を備える印刷装置。
a variable resistance circuit including a plurality of resistors connected to each other and one or more drive elements for causing current to flow through each of the plurality of resistors;
a first optical sensor and a second optical sensor connected to the variable resistance circuit;
a selection circuit for selecting whether to connect the first optical sensor to the variable resistance circuit or to connect the second optical sensor to the variable resistance circuit;
a shift register that outputs a signal to select and turn on some or all of the one or more drive elements;
a control unit that acquires a detection value of the first optical sensor or the second optical sensor, controls the shift register based on the detection value, and controls selection of the selection circuit;
a printing device.
前記第1光学センサーは、透過光を用いて長尺状の第1台紙に貼付されたラベルを検出する透過型センサー、または、反射光を用いて長尺状の第2台紙に付されたマークを検出する反射型センサーであり、
前記制御部は、前記第1台紙または前記第2台紙の位置における前記第1光学センサーの検出値が所定値になるように、前記シフトレジスタを制御して、前記可変抵抗回路の合成抵抗値を調整する、
請求項1に記載の印刷装置。
The first optical sensor is a transmissive sensor that uses transmitted light to detect the label attached to the first elongated mount, or a mark attached to the second elongated mount using reflected light. is a reflective sensor that detects
The control unit controls the shift register so that the detection value of the first optical sensor at the position of the first mount or the second mount becomes a predetermined value, and adjusts the combined resistance value of the variable resistance circuit. adjust,
2. A printing device according to claim 1.
第1記憶部を備え、
前記制御部は、前記第1台紙または前記第2台紙の位置における前記第1光学センサーの検出値が所定値になった場合における前記シフトレジスタの制御値を前記第1記憶部に記憶し、前記第1光学センサーにより前記ラベルまたは前記マークを検出する場合に、前記第1記憶部から前記制御値を読み出して前記シフトレジスタを制御する、
請求項2に記載の印刷装置。
A first storage unit is provided,
The control unit stores a control value of the shift register in the first storage unit when a detection value of the first optical sensor at the position of the first mount or the second mount reaches a predetermined value, and reading the control value from the first storage unit and controlling the shift register when the first optical sensor detects the label or the mark;
3. A printing device according to claim 2.
前記可変抵抗回路が搭載される基板と、前記第1光学センサー及び前記第2光学センサーが搭載される被搭載部とは異なる、
請求項1から請求項3のいずれか1項に記載の印刷装置。
The substrate on which the variable resistance circuit is mounted is different from the mounting portion on which the first optical sensor and the second optical sensor are mounted,
The printing apparatus according to any one of claims 1 to 3.
前記第1光学センサーは、透過光を用いて長尺状の第1台紙に貼付されたラベルを検出する透過型センサー、または、反射光を用いて長尺状の第2台紙に付されたマークを検出する反射型センサーであり、
前記第1台紙または前記第2台紙の位置における前記第1光学センサーの検出値に関する所定値を記憶する第2記憶部を備え、
前記制御部は、所定の制御値により前記シフトレジスタを制御して、前記第1台紙または前記第2台紙の位置における前記第1光学センサーの検出値を取得し、当該検出値と前記所定の制御値と前記第2記憶部に記憶された前記所定値に基づき、前記シフトレジスタの制御値を計算する、
請求項1に記載の印刷装置。
The first optical sensor is a transmissive sensor that uses transmitted light to detect the label attached to the first elongated mount, or a mark attached to the second elongated mount using reflected light. is a reflective sensor that detects
A second storage unit that stores a predetermined value related to the detection value of the first optical sensor at the position of the first mount or the second mount,
The control unit controls the shift register with a predetermined control value to acquire a detection value of the first optical sensor at the position of the first mount or the second mount, and obtains the detection value and the predetermined control. calculating a control value for the shift register based on the value and the predetermined value stored in the second storage unit;
2. A printing device according to claim 1.
印刷装置の制御方法であって、
前記印刷装置は、
互いに接続された複数の抵抗部と、前記複数の抵抗部の各々に電流を流す1以上の駆動素子と、を含んで構成される可変抵抗回路と、
前記可変抵抗回路に接続される第1光学センサー及び第2光学センサーと、
前記第1光学センサーを前記可変抵抗回路と接続するのか、前記第2光学センサーを前記可変抵抗回路と接続するのかを選択する選択回路と、
前記1以上の前記駆動素子のうちの一部または全部の前記駆動素子を選択してオンにする信号を出力するシフトレジスタと、
を備え、
前記印刷装置の制御部は、
前記選択回路の選択を制御する選択工程と、
前記選択回路が選択した前記第1光学センサー、または、前記第2光学センサーの検出値を取得し、前記検出値に基づいて前記シフトレジスタを制御するレジスター制御工程と、
を含む、
印刷装置の制御方法。
A control method for a printing device, comprising:
The printing device
a variable resistance circuit including a plurality of resistors connected to each other and one or more drive elements for causing current to flow through each of the plurality of resistors;
a first optical sensor and a second optical sensor connected to the variable resistance circuit;
a selection circuit for selecting whether to connect the first optical sensor to the variable resistance circuit or to connect the second optical sensor to the variable resistance circuit;
a shift register that outputs a signal to select and turn on some or all of the one or more drive elements;
with
The control unit of the printing device,
a selection step of controlling selection of the selection circuit;
a register control step of acquiring the detection value of the first optical sensor or the second optical sensor selected by the selection circuit and controlling the shift register based on the detection value;
including,
A method of controlling a printing device.
JP2021014200A 2021-02-01 2021-02-01 Printing apparatus and printing apparatus control method Pending JP2022117609A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021014200A JP2022117609A (en) 2021-02-01 2021-02-01 Printing apparatus and printing apparatus control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021014200A JP2022117609A (en) 2021-02-01 2021-02-01 Printing apparatus and printing apparatus control method

Publications (1)

Publication Number Publication Date
JP2022117609A true JP2022117609A (en) 2022-08-12

Family

ID=82750357

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021014200A Pending JP2022117609A (en) 2021-02-01 2021-02-01 Printing apparatus and printing apparatus control method

Country Status (1)

Country Link
JP (1) JP2022117609A (en)

Similar Documents

Publication Publication Date Title
JP4375416B2 (en) Image forming system, image forming apparatus, and density correction method
US7271935B2 (en) Self-calibrating printer and printer calibration method
JP3293665B2 (en) Electronic drive circuit for multi-laser thermal transfer printer
US7284815B2 (en) Inkjet recording apparatus and ink determination method
US6795191B2 (en) Ultrasonically assisted optical media sensor system
JP4149867B2 (en) Printer and its control method
JP2022117609A (en) Printing apparatus and printing apparatus control method
JP5886094B2 (en) Printer sensor level adjustment device and sensor level adjustment method
JP7472448B2 (en) PRINTING DEVICE AND METHOD FOR CONTROLLING PRINTING DEVICE
JP2005231356A (en) Ink-jet recording device and ink discriminating method
JP2002002045A (en) Color sensor and color detecting method for ink ribbon
JP2010120219A (en) Printer and method for calibrating printer
JP2003285456A (en) Optical fixing unit, its illuminance correcting method and thermal printer
CN110202956B (en) Light emitting unit brightness configuration method and device in printer and printer
JP7292986B2 (en) code verification device
US20050163019A1 (en) Apparatus for and method of controlling photo diode using digital potentiometer
JP2001301273A (en) Printer
US20160119487A1 (en) Printing system and method of operation
CN210161771U (en) Thermal printer capable of automatically adjusting printing contrast
JP2004142212A (en) Thermal printer and its density correcting method
US20220004828A1 (en) Configuring color concentrations based on a white-point of print material
JP2006281450A (en) Thermal transfer printer apparatus
KR20220114900A (en) Method for setting print density of printer using light sensor and printer for performing the same
JP2004059179A (en) Detecting device, recording device and method for detecting recording medium
JP2005313497A (en) Recorder and method of calibration of optical sensor for the same

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20210915

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20211104