JP2021096235A - Measuring unit, measure, and method for manufacturing measure - Google Patents

Measuring unit, measure, and method for manufacturing measure Download PDF

Info

Publication number
JP2021096235A
JP2021096235A JP2020189632A JP2020189632A JP2021096235A JP 2021096235 A JP2021096235 A JP 2021096235A JP 2020189632 A JP2020189632 A JP 2020189632A JP 2020189632 A JP2020189632 A JP 2020189632A JP 2021096235 A JP2021096235 A JP 2021096235A
Authority
JP
Japan
Prior art keywords
light receiving
pattern
color
reading means
measure
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
JP2020189632A
Other languages
Japanese (ja)
Inventor
一典 石橋
Kazunori Ishibashi
一典 石橋
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.)
Fujitsu Component Ltd
Original Assignee
Fujitsu Component Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Component Ltd filed Critical Fujitsu Component Ltd
Priority to US17/113,556 priority Critical patent/US11333480B2/en
Priority to CN202011456532.8A priority patent/CN112985525A/en
Publication of JP2021096235A publication Critical patent/JP2021096235A/en
Pending legal-status Critical Current

Links

Images

Abstract

To provide a measuring unit and a measure that can reduce the width of a measure more.SOLUTION: A measuring unit 1 includes: a plurality of irradiation units 8 and light reception units 9 arranged in a length direction at regular intervals, the irradiation units and the light reception units optically reading a plurality of patterns from a measure 7A with a color pattern including a plurality of patterns arranged in a length direction at regular intervals; and a micro computer 3 for converting the pattern read by the light reception units 9 into a value of the notation system of base N (N is at least 3) and calculating the scale value of the measure on the basis of data which defines the relation between the value of the notation system of base N and the scale value of the measure.SELECTED DRAWING: Figure 2

Description

本発明は、計測器、メジャー及びメジャーの製造方法に関する。 The present invention relates to a measuring instrument, a tape measure, and a method for manufacturing a tape measure.

物の長さを計測した長さデータを外部端末に直接入力することが可能な計測システムが知られている(例えば、特許文献1参照)。この計測システムでは、メジャーに印刷された2色のドットパターンを読み取り、読み出されたパターンを長さデータに変換して送信している。 There is known a measurement system capable of directly inputting length data obtained by measuring the length of an object to an external terminal (see, for example, Patent Document 1). In this measurement system, a two-color dot pattern printed on a major is read, and the read pattern is converted into length data and transmitted.

また、寸法測定機能付きのハンディターミナルが知られている(例えば、特許文献2)。さらに、メジャーに印刷されたパターンを光学的に読み取る技術が知られている(例えば、特許文献3〜5)。 Further, a handy terminal having a dimensional measurement function is known (for example, Patent Document 2). Further, a technique for optically reading a pattern printed on a major is known (for example, Patent Documents 3 to 5).

特開平7−35535号公報Japanese Unexamined Patent Publication No. 7-35535 特開平10−105639号公報Japanese Unexamined Patent Publication No. 10-105639 特開2009−75013号公報JP-A-2009-75013 特開平5−272916号公報Japanese Unexamined Patent Publication No. 5-272916 特開平7−294238号公報Japanese Unexamined Patent Publication No. 7-294238

幅方向に複数のパターンを備えた複数行のパターンが印刷されているメジャーでは、1行のパターンが1つの計測値に対応しているため、メジャーで測定可能な長さを長くすると、1行のパターンを構成するパターン数も多くしなければならず、メジャーの幅を大きくする必要がある。 In a measure in which a multi-line pattern with multiple patterns in the width direction is printed, one line pattern corresponds to one measured value. Therefore, if the length that can be measured by the measure is increased, one line is used. The number of patterns that make up the pattern of is also required to be large, and the width of the measure needs to be increased.

一方、コンベックスタイプのスチールメジャーのように湾曲しているメジャーの場合、メジャーの幅方向に複数パターンが印刷されていると、センサと各パターンとの距離が幅方向の位置によって変わってしまうため、各センサの読取結果に誤差の出るおそれがある。例えば、中央部分でセンサに向けて湾曲しているメジャーの場合、メジャー中央に位置するパターンに対向配置されたセンサはメジャーと近接しているのに対し、メジャーの幅方向の端部に位置するセンサはメジャーから離れるため、同じ色のパターンを読み取っていたとしても中央のセンサと端部のセンサとのそれぞれの受光量が変わるなどの影響が出て、パターンの色を正確に検出できない可能性がある。この問題はスチールメジャーだけではなく、検出器が傾いた場合やメジャーがよれた場合などには樹脂製のメジャーでも生じ得る。 On the other hand, in the case of a curved measure such as a convex type steel measure, if multiple patterns are printed in the width direction of the measure, the distance between the sensor and each pattern changes depending on the position in the width direction. There is a risk that the reading result of each sensor will have an error. For example, in the case of a measure that is curved toward the sensor at the center, the sensor that is placed facing the pattern located in the center of the measure is close to the measure, but is located at the end of the measure in the width direction. Since the sensor is far from the measure, even if the pattern of the same color is read, the amount of light received by the center sensor and the end sensor may change, and the pattern color may not be detected accurately. There is. This problem can occur not only with a steel tape measure, but also with a resin tape measure when the detector is tilted or the tape measure is twisted.

本発明は、メジャーの幅をより小さくできる計測器およびメジャーを提供することを一つの目的とする。また、本発明は、センサとパターンとの距離に起因するパターン読取の不具合を防止する計測器及びメジャーを提供することを一つの目的とする。さらに、本発明は、長さ方向の大きさを小さくさせることが可能な計測器、メジャー及びメジャーの製造方法を提供することを目的とする。 One object of the present invention is to provide a measuring instrument and a tape measure capable of reducing the width of the tape measure. Another object of the present invention is to provide a measuring instrument and a tape measure for preventing a pattern reading defect caused by a distance between a sensor and a pattern. Furthermore, an object of the present invention is to provide a measuring instrument, a tape measure, and a method for manufacturing a tape measure, which can reduce the size in the length direction.

上記目的を達成するため、明細書に開示された計測器は、長さ方向に一定間隔で配置された複数のパターンを含むカラーパターンを有するメジャーから、前記複数のパターンを光学的に読み取り且つ前記長さ方向に前記一定間隔で配置される複数の第1読取手段と、前記複数の第1読取手段で読み取られたパターンをN進数(Nは3以上)の値に変換する変換手段と、前記N進数の値と前記メジャーの目盛値との関係を規定したデータに基づいて、前記メジャーの目盛値を算出する算出手段と、を備えることを特徴とする。 In order to achieve the above object, the measuring instrument disclosed in the specification optically reads the plurality of patterns from a measure having a color pattern including a plurality of patterns arranged at regular intervals in the length direction, and said that the plurality of patterns are optically read. A plurality of first reading means arranged at regular intervals in the length direction, a conversion means for converting a pattern read by the plurality of first reading means into an N-ary number (N is 3 or more), and the above. It is characterized by comprising a calculation means for calculating the scale value of the measure based on the data defining the relationship between the value of the N-ary number and the scale value of the measure.

本発明によれば、メジャーの幅をより小さくできるとともに、湾曲するメジャーにおけるセンサとパターンとの距離に起因するパターンの読み取り不具合にも対応することができる。 According to the present invention, the width of the measure can be made smaller, and it is also possible to deal with a pattern reading defect caused by the distance between the sensor and the pattern in the curved measure.

第1の実施の形態に係る長さ計測器の構成図である。It is a block diagram of the length measuring instrument which concerns on 1st Embodiment. 3セットの受光部を有する計測器がメジャーを読み取る例を示す図である。It is a figure which shows the example which the measuring instrument which has 3 sets of light receiving part reads a measure. 3つのパターンにメジャーの1つの目盛値を割り当てたテーブルの一例を示す図である。It is a figure which shows an example of the table which assigned one scale value of a measure to three patterns. メジャーのカラーパターンの一例を示す図である。It is a figure which shows an example of the color pattern of a measure. 計測器で実行される計測処理を示すフローチャートである。It is a flowchart which shows the measurement process executed by a measuring instrument. 各受光部で検出される色の番号と検出される電圧値との対応関係を示す図である。It is a figure which shows the correspondence relationship between the color number detected by each light receiving part, and the detected voltage value. S4の色判定処理を示すフローチャートである。It is a flowchart which shows the color determination process of S4. 受光部が2つのパターンの境界を読み取った場合の2つのパターンの色番号、電圧値、及び対応する色番号の関係を示す図である。It is a figure which shows the relationship between the color number, the voltage value, and the corresponding color number of two patterns when the light receiving part reads the boundary of two patterns. 第2の実施の形態に係る計測器がメジャーを読み取る例を示す図である。It is a figure which shows the example which the measuring instrument which concerns on 2nd Embodiment reads a measure. 3つの受光部で検出される色番号と、目盛換算に使用する受光部との関係を示す図である。It is a figure which shows the relationship between the color number detected by three light receiving parts, and the light receiving part used for scale conversion. 第2の実施の形態に係る計測器で実行される計測処理を示すフローチャートである。It is a flowchart which shows the measurement process executed by the measuring instrument which concerns on 2nd Embodiment. S34の色判定処理を示すフローチャートである。It is a flowchart which shows the color determination process of S34. S34の色判定処理を示すフローチャートである。It is a flowchart which shows the color determination process of S34. S35の境界判定処理を示すフローチャートである。It is a flowchart which shows the boundary determination process of S35. (A)は第1の実施の形態に係る計測器の第1変形例を示す図であり、(B)は第1の実施の形態に係る計測器1の第2変形例を示す図である。(A) is a diagram showing a first modification of the measuring instrument according to the first embodiment, and (B) is a diagram showing a second modification of the measuring instrument 1 according to the first embodiment. .. (A)は第2の実施の形態に係る計測器の第1変形例を示す図であり、(B)は第2の実施の形態に係る計測器の第2変形例を示す図である。(A) is a diagram showing a first modification of the measuring instrument according to the second embodiment, and (B) is a diagram showing a second modification of the measuring instrument according to the second embodiment. (A)〜(D)は、幅方向に1列に配置された4つの受光部9を用いてカラーパターンを読み取るために、長さ方向に1列に配置された複数のパターンを、幅方向に4列に配置されたカラーパターンに変換する方法を示す図である。In (A) to (D), in order to read a color pattern using four light receiving units 9 arranged in a row in the width direction, a plurality of patterns arranged in a row in the length direction are arranged in the width direction. It is a figure which shows the method of converting into the color pattern arranged in 4 columns. 図17(A)の1列のカラーパターンを、図17(D)の4列のカラーパターンに配置する方法を示すフローチャートである。It is a flowchart which shows the method of arranging the color pattern of 1 column of FIG. 17A in the color pattern of 4 columns of FIG. 17D. 図17(A)のメジャー、4つの受光部で読み取られる値と、パターンNoと、3進数及び10進数の変換値との対応関係を示す図である。It is a figure which shows the correspondence relationship between the value read by the measure of FIG. (A)〜(D)は、長さ方向に1列に配置された複数のパターン及び4つの受光部を、幅方向に2列に配置された複数のパターン及び幅方向に2列に配置された4つの受光部に変換する方法を示す図である。In (A) to (D), a plurality of patterns arranged in one row in the length direction and four light receiving portions are arranged in two rows in the width direction and a plurality of patterns arranged in two rows in the width direction. It is a figure which shows the method of converting into four light receiving parts. (A)〜(D)は、長さ方向に1列に配置された複数のパターン及び4つの受光部を、幅方向に2列に配置された複数のパターン及び幅方向に2列に配置された4つの受光部に変換する方法の変形例を示す図である。In (A) to (D), a plurality of patterns arranged in one row in the length direction and four light receiving portions are arranged in two rows in the width direction and a plurality of patterns arranged in two rows in the width direction. It is a figure which shows the modification of the method of converting into four light receiving parts.

以下、図面を参照しながら本発明の実施の形態を説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.

(第1の実施の形態)
図1は、第1の実施の形態に係る長さ計測器の構成図である。長さ計測器は、例えば洋服店における採寸で使用されるが、他の目的で使用されてもよい。
(First Embodiment)
FIG. 1 is a configuration diagram of a length measuring instrument according to the first embodiment. The length measuring instrument is used for measuring in a clothing store, for example, but may be used for other purposes.

長さ計測器(以下「計測器」という)1は、メジャー7Aに付されたカラーパターンを読み取る読取部2と、読取部2で読み取られたデータから測定対象の長さを算出するマイコン3(Micro Computer)と、算出された測定対象の長さのデータを有線又は無線で外部端末10に送信する通信部4と、測定の開始をマイコン3に指示するスイッチ5と、読取部2、マイコン3及び通信部4に電力を供給するバッテリ6と、メジャー7Aを格納する格納部7とを備えている。マイコン3は、データやフラグなどを保存するバッファ3Aを備えている。 The length measuring instrument (hereinafter referred to as “measuring instrument”) 1 is a reading unit 2 that reads a color pattern attached to the measure 7A, and a microcomputer 3 (a microcomputer 3 that calculates the length of a measurement target from the data read by the reading unit 2). Micro Computer), a communication unit 4 that transmits the calculated length data of the measurement target to the external terminal 10 by wire or wirelessly, a switch 5 that instructs the microcomputer 3 to start measurement, a reading unit 2, and a microcomputer 3. A battery 6 for supplying power to the communication unit 4 and a storage unit 7 for storing the measure 7A are provided. The microcomputer 3 includes a buffer 3A for storing data, flags, and the like.

測定対象物の長さを測定又は判定する測定システムは、図1の計測器1及び外部端末10の組合せで構成するのではなく、外部端末10を用いない単独の計測器1により構成してもよい。計測器1と外部端末10を組み合わせる場合、測定対象の長さを算出する処理を、図1のマイコン3に代えて外部端末10で行ってもよい。このとき、計測器1は読取部2が読み取った読取値を外部端末10に送信する。外部端末10を用いない場合、計測器1が第1〜第3の実施の形態に記載された外部端末10の機能を実行するようにしてもよい。測定システムは、さらに、サーバ、記憶装置又は任意の種類の通信装置などの他の装置を備えていてもよい。 The measuring system that measures or determines the length of the object to be measured is not composed of the combination of the measuring instrument 1 and the external terminal 10 of FIG. 1, but may be configured by a single measuring instrument 1 that does not use the external terminal 10. Good. When the measuring instrument 1 and the external terminal 10 are combined, the process of calculating the length of the measurement target may be performed by the external terminal 10 instead of the microcomputer 3 of FIG. At this time, the measuring instrument 1 transmits the reading value read by the reading unit 2 to the external terminal 10. When the external terminal 10 is not used, the measuring instrument 1 may execute the function of the external terminal 10 described in the first to third embodiments. The measurement system may further include other devices such as servers, storage devices or any type of communication device.

測定システムは、例えば、測定された長さを記憶する機能や、洋服を作る際の採寸などの目的のために測定された長さを加工する機能を備えていてもよい。これらの機能は、外部端末10又は他の装置でソフトウエアを実行することで実現可能である。 The measuring system may have, for example, a function of storing the measured length and a function of processing the measured length for a purpose such as measuring when making clothes. These functions can be realized by executing the software on the external terminal 10 or another device.

読取部2は、カラーパターンに光を照射する複数の照射部8と、カラーパターンからの反射光を受光し、受光量に応じた値の電流又は電圧を出力する複数の受光部9とを備えている。照射部8は例えばLED(Light Emitting Diode)であり、受光部9はフォトトランジスタである。照射部8は、赤外線、可視光線、紫外線などの光を照射し、受光部9はパターンからの反射光を受光する。特に説明がない限り、1つの照射部8と1つの受光部9は1セットで使用されるが、後述するように1つの照射部8と複数の受光部9とを1セットで使用してもよい。複数の受光部を互いに区別する必要がある場合には、受光部の参照番号は9A1〜9A4、9B1〜9B4又は9C1のように表示する。以下、照射部8と受光部9のセットを「受光部9」と総称する場合がある。なお、読取部2は受光部9に相当する機能を最低限備えていればよい。 The reading unit 2 includes a plurality of irradiation units 8 that irradiate the color pattern with light, and a plurality of light receiving units 9 that receive the reflected light from the color pattern and output a current or voltage of a value corresponding to the amount of received light. ing. The irradiation unit 8 is, for example, an LED (Light Emitting Diode), and the light receiving unit 9 is a phototransistor. The irradiation unit 8 irradiates light such as infrared rays, visible light, and ultraviolet rays, and the light receiving unit 9 receives the reflected light from the pattern. Unless otherwise specified, one irradiation unit 8 and one light receiving unit 9 are used as one set, but as described later, one irradiation unit 8 and a plurality of light receiving units 9 may be used as one set. Good. When it is necessary to distinguish a plurality of light receiving parts from each other, the reference numbers of the light receiving parts are displayed as 9A1 to 9A4, 9B1 to 9B4 or 9C1. Hereinafter, the set of the irradiation unit 8 and the light receiving unit 9 may be collectively referred to as the “light receiving unit 9”. The reading unit 2 may have at least a function corresponding to the light receiving unit 9.

マイコン3は、CPU(Central Processing Unit)等のプロセッサ及び不揮発性メモリを含み、変換手段、算出手段及び判定手段として機能する。マイコン3は照射部8のオン/オフを制御し、受光部9が出力する電流値又は電圧値を読み取る。色によって光の反射率が異なり、受光部9の受光量は反射率に応じて変動するため、マイコン3は受光部9から出力される電流値又は電圧値によって各パターンの色の判断が可能である。そして、マイコン3は、各受光部9で検出された色を3進数又は10進数の値に変換し、後述するテーブルを用いて変換された3進数又は10進数の値に対応するメジャー7Aの目盛値を求める。これにより、測定対象物の長さが算出される。 The microcomputer 3 includes a processor such as a CPU (Central Processing Unit) and a non-volatile memory, and functions as a conversion means, a calculation means, and a determination means. The microcomputer 3 controls the on / off of the irradiation unit 8 and reads the current value or the voltage value output by the light receiving unit 9. Since the reflectance of light differs depending on the color and the amount of light received by the light receiving unit 9 varies according to the reflectance, the microcomputer 3 can determine the color of each pattern based on the current value or voltage value output from the light receiving unit 9. is there. Then, the microcomputer 3 converts the color detected by each light receiving unit 9 into a ternary or decimal value, and the scale of the measure 7A corresponding to the converted ternary or decimal value using the table described later. Find the value. As a result, the length of the object to be measured is calculated.

メジャー7Aのおもて面には目盛りが長さ方向に沿って印刷されており、裏面にはN(N≧3。以下同様)色を用いたカラーパターンが印刷されている。カラーパターンの詳細については後述する。格納部7は計測器1の筐体に取り外し可能に取り付けられている。図1ではメジャー7Aは格納部7に収容されているが、計測器がメジャーを読み取ることができる限り、メジャー7Aは格納部7又は計測器1に収容されていなくてもよい。例えば、計測器1は、メジャー7Aを収容せず、メジャー7Aをスライド可能に通すスリットを備えていてもよい。 Scales are printed along the length direction on the front surface of the major 7A, and a color pattern using N (N ≧ 3, the same applies hereinafter) color is printed on the back surface. The details of the color pattern will be described later. The storage unit 7 is detachably attached to the housing of the measuring instrument 1. In FIG. 1, the measure 7A is housed in the storage unit 7, but the measure 7A may not be housed in the storage unit 7 or the measuring instrument 1 as long as the measuring instrument can read the measure. For example, the measuring instrument 1 may not accommodate the measure 7A and may include a slit through which the measure 7A is slidably passed.

外部端末10は、コンピュータ又はスマートホンのような有線又は無線の通信機能を有する通信端末であり、測定対象の長さのデータを通信部4から受信し、データベースに登録して管理する。長さのデータを登録するデータベースは、外部端末10に内蔵されていてもよいし、アクセス可能な状態で外部端末10の外部に設けられていてもよい。さらに、測定された長さデータを加工するためのソフトウエアが、外部端末10に、又は外部端末10がアクセス可能な他の装置に格納されていてもよい。 The external terminal 10 is a communication terminal having a wired or wireless communication function such as a computer or a smart phone, receives data of a length to be measured from the communication unit 4, registers it in a database, and manages it. The database for registering the length data may be built in the external terminal 10 or may be provided outside the external terminal 10 in an accessible state. Further, software for processing the measured length data may be stored in the external terminal 10 or in another device accessible to the external terminal 10.

図2は、本実施の形態によるメジャー7Aの裏面に印刷されるカラーパターンの一例を示す図面である。本実施の形態では、照射部8及び受光部9のセットを3つ有する計測器1を用いて、メジャー7Aのカラーパターンを読み取る例を示す。図2の縦方向がメジャー7Aの幅方向であり、図2の横方向がメジャー7Aの長さ方向、かつ計測器1に対するメジャー7Aの移動方向である。 FIG. 2 is a drawing showing an example of a color pattern printed on the back surface of the measure 7A according to the present embodiment. In this embodiment, an example of reading the color pattern of the major 7A by using the measuring instrument 1 having three sets of the irradiation unit 8 and the light receiving unit 9 is shown. The vertical direction of FIG. 2 is the width direction of the measure 7A, the horizontal direction of FIG. 2 is the length direction of the measure 7A, and the moving direction of the measure 7A with respect to the measuring instrument 1.

図2のメジャー7Aには、長さ方向に一列に一定間隔Xで配置された複数のパターンから構成されるカラーパターンが印刷されている。各パターンは3つの異なる色のいずれかの色を持ち、各色には0、1あるいは2のいずれかの値が割り当てられている。図2の例では、各パターンは白、青、黒のいずれかの色を有し、白に対して「0」、青に対して「1」、黒に対して「2」の値が割り当てられている。なお、図2のパターンには色に対応する「0」〜「2」の値が図示されているが、これは理解を容易にするためのものであり、これらの数値はメジャー7Aに印刷する必要がない。同様に、理解容易のためパターン間の境界線も図示されているが、メジャー7Aにはこのような境界線を引く必要もない。 On the tape measure 7A of FIG. 2, a color pattern composed of a plurality of patterns arranged in a row at regular intervals X in the length direction is printed. Each pattern has one of three different colors, and each color is assigned a value of 0, 1 or 2. In the example of FIG. 2, each pattern has a color of white, blue, or black, and is assigned a value of "0" for white, "1" for blue, and "2" for black. Has been done. In the pattern of FIG. 2, the values of "0" to "2" corresponding to the colors are shown, but these values are printed on the measure 7A for easy understanding. No need. Similarly, the boundaries between the patterns are also shown for ease of understanding, but it is not necessary to draw such boundaries on the measure 7A.

また、図2の例では、長さ方向に隣接する3つのパターンが1つの単位パターンを構成しており、1つの単位パターンに対して1つの3進値が割り当てられる。 Further, in the example of FIG. 2, three patterns adjacent to each other in the length direction constitute one unit pattern, and one ternary value is assigned to one unit pattern.

なお、読取部2の読取により「0」〜「2」に対応する3値を出力できればよいため、各パターンを「異なる色」あるいは異なる色相で印刷する必要はない。各パターンを光学的に区別できれば、個々のパターンの濃淡や反射率を変えたカラーパターンを用いてもよく、例えば「薄い赤」、「少し濃い赤」、「さらに濃い赤」といったように、同一色相で明度や彩度が異なるパターンを印刷してもよい。また、読取部2で区別が可能ならば、色の違いが視覚的に区別できなくてもよい。本願では、このような明度や彩度の相違や、他の異なる反射率を実現する態様も「異なる色」として扱う。各パターンの形状などを変えてパターンの反射率を異ならせてもよく、パターンの「反射率」に着目するのであれば便宜上これらも「異なる色」と見なすことができる。 It is not necessary to print each pattern in "different colors" or different hues because it is sufficient that the three values corresponding to "0" to "2" can be output by reading the reading unit 2. If each pattern can be optically distinguished, color patterns with different shades and reflectances of each pattern may be used, for example, "light red", "slightly dark red", "darker red", and so on. Patterns having different lightness and saturation depending on the hue may be printed. Further, if the reading unit 2 can distinguish the colors, the difference in color may not be visually distinguishable. In the present application, such a difference in brightness and saturation and other modes for realizing different reflectances are also treated as "different colors". The reflectance of the patterns may be different by changing the shape of each pattern, and if the "reflectance" of the pattern is focused on, these can also be regarded as "different colors" for convenience.

パターンの長さでもある間隔Xは、メジャー7Aで計測可能な単位長さに対応する。計測器1には、メジャー7Aのカラーパターンからの反射光を検出する3つの受光部9A1〜9A3及び3つの照射部8が、各パターンと同じ間隔Xで配置されている。各受光部9Aは、1単位パターンを構成するパターンのいずれか1つを読み取る。尚、照射部8及び受光部9の組の個数は、1単位パターンを構成するパターン数などに応じて2個又は4個以上でもよい。また、後述するように照射部8の数は1単位パターンを構成するパターン数と同一でなくてもよい。 The interval X, which is also the length of the pattern, corresponds to the unit length measurable by the measure 7A. In the measuring instrument 1, three light receiving units 9A1 to 9A3 and three irradiation units 8 for detecting the reflected light from the color pattern of the major 7A are arranged at the same interval X as each pattern. Each light receiving unit 9A reads any one of the patterns constituting the 1 unit pattern. The number of pairs of the irradiation unit 8 and the light receiving unit 9 may be two or four or more depending on the number of patterns constituting one unit pattern and the like. Further, as will be described later, the number of irradiation units 8 does not have to be the same as the number of patterns constituting one unit pattern.

受光部9は、パターンからの反射光に応じた値の電圧を出力する。マイコン3は、受光部9から出力される電圧値に基づいて各パターンの色を判別する。本実施の形態では、受光部9の出力電圧が2.0V、1.5V又は1.0Vである場合、マイコン3はパターンの色をそれぞれ白、青又は黒と判断する。マイコン3は必要に応じて、読み取られた色を対応する3進値「0」〜「2」に置き換える。 The light receiving unit 9 outputs a voltage having a value corresponding to the reflected light from the pattern. The microcomputer 3 determines the color of each pattern based on the voltage value output from the light receiving unit 9. In the present embodiment, when the output voltage of the light receiving unit 9 is 2.0V, 1.5V or 1.0V, the microcomputer 3 determines that the pattern color is white, blue or black, respectively. The microcomputer 3 replaces the read color with the corresponding ternary values "0" to "2" as needed.

メジャー7Aの移動方向とパターンの配列方向が同一であるため、メジャー7Aが1パターン分の長さだけ移動するたびに、それぞれの受光部9A1〜9A3が読み取るパターンも長さ方向にひとつずつずれる。3つの受光部9A1〜9A3は複数の第1読取手段として機能する。 Since the moving direction of the major 7A and the arrangement direction of the patterns are the same, each time the major 7A moves by the length of one pattern, the patterns read by the light receiving units 9A1 to 9A3 are also shifted by one in the length direction. The three light receiving units 9A1 to 9A3 function as a plurality of first reading means.

バッファ3Aは、受光部9A1〜9A3が読み取る単位パターンに対してメジャー7Aの目盛値を割り当てたテーブルを備えている。テーブルの一例を図3に示し、対応するカラーパターンを図4に示す。 The buffer 3A includes a table in which the scale values of the measure 7A are assigned to the unit patterns read by the light receiving units 9A1 to 9A3. An example of the table is shown in FIG. 3, and the corresponding color pattern is shown in FIG.

計測器1は、長さ方向に隣接する3つのパターンで構成される1単位パターンを読み取る。図3では、計測器1が読み取った3つのパターンの色、各単位パターンに対応する3進数、3進数から変換された10進数、および単位パターンに対応する目盛り値が対応づけられている。 The measuring instrument 1 reads a 1-unit pattern composed of three patterns adjacent to each other in the length direction. In FIG. 3, the colors of the three patterns read by the measuring instrument 1, the ternary number corresponding to each unit pattern, the decimal number converted from the ternary number, and the scale value corresponding to the unit pattern are associated with each other.

図3のL番目の単位パターンは、図4のカラーパターンのうち先頭からL番目〜L+2番目の3つのパターンの組合せに相当する。例えば、図3の3番目の単位パターンは、図4の3番目〜5番目の3パターンの組合せに相当する。 The L-th unit pattern in FIG. 3 corresponds to a combination of the three L-th to L + 2nd patterns from the beginning among the color patterns in FIG. For example, the third unit pattern in FIG. 3 corresponds to a combination of the third to fifth patterns in FIG.

メジャー7Aでは、先頭から末尾までの各単位パターンの構成が重複しないようにパターンの色が配置されている。 In the measure 7A, the patterns are arranged so that the configurations of the unit patterns from the beginning to the end do not overlap.

本実施形態のカラーパターンは3進数によって表現されているが、図3に示すテーブルでは、単位パターンに対応する3進数は昇順又は降順に配列されていない。さらに、3進値から変換される10進値も、10進数の昇順または降順に配列されていない。一方、昇順でテーブルに配列されている目盛値は、テーブルの3進値あるいは10進値とは数学的に対応していない。例えば、図3の4段目における3進値「101」は、数学的には10進数の「10」を意味するが、目盛値「3」に割り当てられている。このため、本実施の形態では、テーブルを用いて昇順/降順ではない3進値/10進値と昇順の目盛値との対応を判別している。 The color pattern of the present embodiment is represented by a ternary number, but in the table shown in FIG. 3, the ternary numbers corresponding to the unit pattern are not arranged in ascending or descending order. Furthermore, the decimal values converted from the ternary values are also not arranged in ascending or descending decimal order. On the other hand, the scale values arranged in the table in ascending order do not mathematically correspond to the ternary or decimal values of the table. For example, the ternary value "101" in the fourth row of FIG. 3 mathematically means the decimal number "10", but is assigned to the scale value "3". Therefore, in the present embodiment, the correspondence between the ternary value / decimal value that is not in ascending / descending order and the scale value in ascending order is determined by using a table.

マイコン3は図3のテーブルに基づいて受光部9A1〜9A3が読み取る3つのパターンに対応する目盛値を判定し、通信部4が外部端末10へ目盛値を送信する。 The microcomputer 3 determines the scale values corresponding to the three patterns read by the light receiving units 9A1 to 9A3 based on the table of FIG. 3, and the communication unit 4 transmits the scale values to the external terminal 10.

図5は、計測器1で実行される計測処理を示すフローチャートである。 FIG. 5 is a flowchart showing a measurement process executed by the measuring instrument 1.

照射部8は、長さの計測処理の開始前には消灯している。メジャー7Aを用いて計測対象の長さを測る際に利用者がスイッチ5を操作すると、計測器1は図5に示す計測処理を実行する。 The irradiation unit 8 is turned off before the start of the length measurement process. When the user operates the switch 5 when measuring the length of the measurement target using the tape measure 7A, the measuring instrument 1 executes the measurement process shown in FIG.

長さを測るためにスイッチ5が操作されると、マイコン3が全ての照射部8を点灯する(S1)。その結果、各パターンからの反射光を各受光部9A1〜9A3が受光するので、マイコン3は受光部9A1〜9A3の出力電圧値を読み出し(S2)、その後照射部8を消灯する(S3)。次に、マイコン3は受光部9の出力電圧から各パターンの色判定処理を行う(S4)。色判定処理の詳細は後述する。 When the switch 5 is operated to measure the length, the microcomputer 3 lights all the irradiation units 8 (S1). As a result, since the light receiving units 9A1 to 9A3 receive the reflected light from each pattern, the microcomputer 3 reads out the output voltage values of the light receiving units 9A1 to 9A3 (S2), and then turns off the irradiation unit 8 (S3). Next, the microcomputer 3 performs color determination processing for each pattern from the output voltage of the light receiving unit 9 (S4). The details of the color determination process will be described later.

次いで、マイコン3は、色判定処理で異常が検出されたか否かを判別する(S5)。例えば、いずれかの受光部9の出力電圧値が検出されるべき所定の電圧の範囲に対応しない場合、マイコン3は異常を検出したと判断する。色判定処理で異常が検出された場合には(S5でYES)、本処理を終了する。色判定処理で異常が検出されない場合には(S5でNO)、マイコン3は、受光部9A1〜9A3が読み取ったパターンの色から、単位パターンに対応する3進値および/又は10進値を算出する(S6)。 Next, the microcomputer 3 determines whether or not an abnormality has been detected in the color determination process (S5). For example, if the output voltage value of any of the light receiving units 9 does not correspond to a predetermined voltage range to be detected, the microcomputer 3 determines that an abnormality has been detected. If an abnormality is detected in the color determination process (YES in S5), this process ends. If no abnormality is detected in the color determination process (NO in S5), the microcomputer 3 calculates the ternary value and / or the decimal value corresponding to the unit pattern from the color of the pattern read by the light receiving units 9A1 to 9A3. (S6).

マイコン3は、S6で算出された値と比較する図3のテーブルの目盛値に対応するLの値を0に設定して初期化する(L=0)(S7)。次いでマイコン3は、S6で算出された値が図3のテーブルのL番目の目盛値と一致するか否かを判別する(S8)。S6で算出された値がL番目の目盛値と一致する場合には(S8でYES)、マイコン3はその目盛値をバッファ3Aに保存し(S11)、本処理を終了する。バッファ3Aに保存した目盛値は、通信部4を使用して外部端末10に送信される。一方、S6で算出された値がL番目の目盛値と一致しない場合には(S8でNO)、マイコン3はLの値を1インクリメントする(L=L+1)(S9)。そして、マイコン3は、全ての目盛値(L=0〜26)のチェックが完了したか否かを判別する(S10)。全ての目盛値のチェックが完了していない場合には(S10でNO)、S8に戻る。一方、全ての目盛値のチェックが完了した場合には(S10でYES)、本処理を終了する。S10でYESと判定された場合、読み取られた単位パターンに対応する単位パターンが図3のテーブルに設定されていないため、エラーとして処理される。 The microcomputer 3 initializes by setting the value of L corresponding to the scale value in the table of FIG. 3 to be compared with the value calculated in S6 to 0 (L = 0) (S7). Next, the microcomputer 3 determines whether or not the value calculated in S6 matches the L-th scale value in the table of FIG. 3 (S8). If the value calculated in S6 matches the L-th scale value (YES in S8), the microcomputer 3 saves the scale value in the buffer 3A (S11), and ends this process. The scale value stored in the buffer 3A is transmitted to the external terminal 10 using the communication unit 4. On the other hand, if the value calculated in S6 does not match the L-th scale value (NO in S8), the microcomputer 3 increments the L value by 1 (L = L + 1) (S9). Then, the microcomputer 3 determines whether or not all the scale values (L = 0 to 26) have been checked (S10). If all the scale values have not been checked (NO in S10), the process returns to S8. On the other hand, when all the scale value checks are completed (YES in S10), this process ends. If YES is determined in S10, the unit pattern corresponding to the read unit pattern is not set in the table of FIG. 3, and is treated as an error.

図6は、パターンの色の番号と各受光部9の検出値である出力電圧値との対応関係を示す図である。受光部9の出力電圧値が2.0V±5%であるとき、色番号は1になる。受光部9の検出値が1.5V±5%であるとき、色番号は2になる。受光部9の検出値が1.0V±5%であるとき、色番号は3になる。マイコン3は、このような対応関係を利用してS4の処理を行う。 FIG. 6 is a diagram showing a correspondence relationship between the color number of the pattern and the output voltage value which is the detected value of each light receiving unit 9. When the output voltage value of the light receiving unit 9 is 2.0 V ± 5%, the color number becomes 1. When the detected value of the light receiving unit 9 is 1.5 V ± 5%, the color number becomes 2. When the detected value of the light receiving unit 9 is 1.0 V ± 5%, the color number becomes 3. The microcomputer 3 performs the processing of S4 by utilizing such a correspondence relationship.

図7は、S4の色判定処理を示すフローチャートである。 FIG. 7 is a flowchart showing the color determination process of S4.

マイコン3は、初期値として色判定処理の対象となる受光部9Anを9A1に設定する(n=1)(S21)。次にマイコン3は、判定対象となる色番号mの初期値として1を設定する(m=1)(S22)。そしてマイコン3は、受光部9Anで検出された電圧値が、色番号mに対応する図6の電圧値の範囲に含まれるか否かを判別する(S23)。 The microcomputer 3 sets the light receiving unit 9An, which is the target of the color determination process, to 9A1 as an initial value (n = 1) (S21). Next, the microcomputer 3 sets 1 as the initial value of the color number m to be determined (m = 1) (S22). Then, the microcomputer 3 determines whether or not the voltage value detected by the light receiving unit 9An is included in the voltage value range of FIG. 6 corresponding to the color number m (S23).

受光部9Anの電圧値が色番号mに対応する電圧値の範囲に含まれない場合には(S23でNO)、マイコン3は色番号mの値を1インクリメントする(m=m+1)(S24)。マイコン3は、全ての色番号に対応する電圧値のチェックが完了したか否かを判別する(S25)。 If the voltage value of the light receiving unit 9An is not included in the voltage value range corresponding to the color number m (NO in S23), the microcomputer 3 increments the value of the color number m by 1 (m = m + 1) (S24). .. The microcomputer 3 determines whether or not the check of the voltage values corresponding to all the color numbers has been completed (S25).

全ての色番号に対応する電圧値のチェックが完了していない場合には(S25でNO)、処理はS23に戻る。一方、全ての色番号に対応する電圧値のチェックが完了した場合には(S25でYES)、マイコン3は、検出結果が異常であると判断し(S26)、本処理を終了する。 If the check of the voltage values corresponding to all the color numbers is not completed (NO in S25), the process returns to S23. On the other hand, when the check of the voltage values corresponding to all the color numbers is completed (YES in S25), the microcomputer 3 determines that the detection result is abnormal (S26), and ends this process.

受光部9Anの電圧値が色番号mに対応する電圧値の範囲に含まれる場合には(S23でYES)、マイコン3は、受光部9Anの値を1インクリメントする(n=n+1)(S27)。 When the voltage value of the light receiving unit 9An is included in the voltage value range corresponding to the color number m (YES in S23), the microcomputer 3 increments the value of the light receiving unit 9An by 1 (n = n + 1) (S27). ..

マイコン3は、全ての受光部9Anのチェックが完了したか否かを判別する(S28)。全ての受光部9Anのチェックが完了していない場合には(S28でNO)、S22に戻り、受光部9An+1についての処理を行う。全ての受光部9Anのチェックが完了した場合には(S28でYES)、本処理を終了する。 The microcomputer 3 determines whether or not all the light receiving units 9An have been checked (S28). If all the light receiving units 9An have not been checked (NO in S28), the process returns to S22 and the light receiving unit 9An + 1 is processed. When the checks of all the light receiving units 9An are completed (YES in S28), this process ends.

以上説明したように、第1の実施の形態によれば、受光部9がメジャー7Aの長さ方向に一列に一定間隔で配置され、メジャー7Aの長さ方向に一定間隔で配置されたパターンを光学的に読み取る。メジャー7Aには一列のカラーパターンが印刷されていればよいので、メジャーの幅をより小さくでき、コンベックスタイプのメジャーなど、湾曲しているメジャーにも対応することができる。 As described above, according to the first embodiment, the light receiving portions 9 are arranged in a row in the length direction of the measure 7A at regular intervals, and the pattern is arranged at regular intervals in the length direction of the measure 7A. Read optically. Since it is sufficient that a single row of color patterns is printed on the measure 7A, the width of the measure can be made smaller, and a curved measure such as a convex type measure can be supported.

(第2の実施の形態)
図8は、受光部9が2つのパターンの境界を読み取った場合の、隣接する2つのパターンそれぞれの色番号、受光部9が出力する電圧値、及び電圧値に対応する色番号の関係を示す図である。「色番号(1色目)」は受光部9に対してメジャー7Aの長さ方向の一方側に位置するパターンを指し、「色番号(2色目)」は長さ方向の他方側に位置するパターンを指す。尚、受光部9が色番号1、2、3のパターンを読み取った場合の検出値は、図6に示すようにそれぞれ約2V、約1.5V、約1Vである。
(Second Embodiment)
FIG. 8 shows the relationship between the color numbers of the two adjacent patterns, the voltage value output by the light receiving unit 9, and the color number corresponding to the voltage value when the light receiving unit 9 reads the boundary between the two patterns. It is a figure. The "color number (first color)" refers to a pattern located on one side of the measuring unit 7A in the length direction with respect to the light receiving portion 9, and the "color number (second color)" refers to a pattern located on the other side in the length direction. Point to. The detected values when the light receiving unit 9 reads the patterns of the color numbers 1, 2 and 3, are about 2V, about 1.5V and about 1V, respectively, as shown in FIG.

図8の1段目あるいは3段目のように、受光部9が色番号1のパターンと色番号2のパターンとの境界を読み取った場合には、電圧値は2.0Vと1.5Vとの中間値にあたる約1.75Vになる。しかし、電圧1.75Vに対応する対応する色がないので、マイコン3は検出結果が異常であると判断できる。同様に、図8の4段目あるいは6段目のように、受光部9が色番号2のパターンと色番号3のパターンとの境界を読み取った場合には、電圧値は中間値の約1.25Vになるが、1.25Vに対応する色がないので、この場合もマイコン3は検出結果が異常であると判断できる。 When the light receiving unit 9 reads the boundary between the pattern of color number 1 and the pattern of color number 2 as in the first or third stage of FIG. 8, the voltage values are 2.0 V and 1.5 V. It becomes about 1.75V which corresponds to the intermediate value of. However, since there is no corresponding color corresponding to the voltage of 1.75 V, the microcomputer 3 can determine that the detection result is abnormal. Similarly, when the light receiving unit 9 reads the boundary between the pattern of color number 2 and the pattern of color number 3 as in the fourth or sixth stage of FIG. 8, the voltage value is about 1 of the intermediate value. Although it becomes .25V, since there is no color corresponding to 1.25V, the microcomputer 3 can determine that the detection result is abnormal in this case as well.

一方、図8の2段目あるいは5段目のように、受光部9が色番号1のパターンと色番号3のパターンとの境界を読み取った場合には、受光部9の出力電圧値は約1.5Vになる。1.5Vの電圧値は色番号2の色に対応しているため、色番号1のパターンと色番号3のパターンとの境界を読み取っているにも関わらず、マイコン3は、受光部9が色番号2のパターンを読み取ったものとして検出結果が正常であると判断してしまう。つまり、マイコン3は、受光部9Aからの電圧値だけでは、受光部9が色番号2のパターンを読み取ったのか、又は色番号1のパターンと色番号3のパターンとの境界を読み取ったのかを判断することができない。 On the other hand, when the light receiving unit 9 reads the boundary between the pattern of the color number 1 and the pattern of the color number 3 as in the second or fifth stage of FIG. 8, the output voltage value of the light receiving unit 9 is about. It becomes 1.5V. Since the voltage value of 1.5 V corresponds to the color of the color number 2, the light receiving unit 9 of the microcomputer 3 has the light receiving unit 9 even though the boundary between the pattern of the color number 1 and the pattern of the color number 3 is read. It is determined that the detection result is normal as if the pattern of color number 2 was read. That is, the microcomputer 3 determines whether the light receiving unit 9 reads the pattern of the color number 2 or the boundary between the pattern of the color number 1 and the pattern of the color number 3 only by the voltage value from the light receiving unit 9A. I can't judge.

2つのパターンの境界が読み取られたか否かを判断するために、第2の実施の形態に係る計測器1Aは、3セットの受光部9(9A1〜9A3)に加えて、4セットの受光部9(9B1〜9B3、9C1)を備えている。 In order to determine whether or not the boundary between the two patterns has been read, the measuring instrument 1A according to the second embodiment has four sets of light receiving units 9 (9A1 to 9A3) in addition to the three sets of light receiving units 9 (9A1 to 9A3). 9 (9B1 to 9B3, 9C1) is provided.

第2の実施の形態に係る計測器1Aがメジャー7Aを読み取る例を図9に示す。受光部9B1〜9B3は第2読取手段として機能し、受光部9C1は第3読取手段として機能する。 FIG. 9 shows an example in which the measuring instrument 1A according to the second embodiment reads the measure 7A. The light receiving units 9B1 to 9B3 function as a second reading means, and the light receiving units 9C1 function as a third reading means.

図9では省略されているが、計測器1Aは、第1の実施の形態に係る計測器1と同様に、マイコン3、バッファ3A、通信部4、スイッチ5、バッテリ6、格納部7、及びメジャー7Aを備えている。計測器1Aは計測器1と比べると照射部8及び受光部9の個数が異なるが、その他の構成は同一である。 Although omitted in FIG. 9, the measuring instrument 1A includes a microcomputer 3, a buffer 3A, a communication unit 4, a switch 5, a battery 6, a storage unit 7, and the same as the measuring instrument 1 according to the first embodiment. It has a major 7A. The number of the irradiation unit 8 and the light receiving unit 9 of the measuring instrument 1A is different from that of the measuring instrument 1, but the other configurations are the same.

図9の受光部9A1〜9A3は、図3の受光部9A1〜9A3と同様に間隔Xで配置されている。一方、図9の受光部9B1〜9B3は、受光部9A1〜9A3から長さ方向の図示左側にそれぞれ間隔Yだけ離れて、間隔Xで配置されている。受光部9C1は、長さ方向に受光部9A1から図示右側に間隔Zだけ離れた位置に配置されている。間隔Y及び間隔Zは間隔Xよりも短い。間隔Yと間隔Zは、一方が大きくてもよいし、同一でもよい。図9の受光部9C1は受光部9A1に対応して配置されているが、受光部9A2に対して受光部9B2の反対側に配置されていてもよく、受光部9A3に対して受光部9B3の反対側に配置されていてもよい。 The light receiving parts 9A1 to 9A3 of FIG. 9 are arranged at intervals X in the same manner as the light receiving parts 9A1 to 9A3 of FIG. On the other hand, the light receiving units 9B1 to 9B3 in FIG. 9 are arranged at intervals X on the left side of the drawing in the length direction with a distance Y from each of the light receiving units 9B1 to 9B3. The light receiving unit 9C1 is arranged at a position separated from the light receiving unit 9A1 in the length direction by an interval Z on the right side of the drawing. Interval Y and Interval Z are shorter than Interval X. One of the intervals Y and the interval Z may be large or the same. Although the light receiving unit 9C1 in FIG. 9 is arranged corresponding to the light receiving unit 9A1, it may be arranged on the opposite side of the light receiving unit 9B2 with respect to the light receiving unit 9A2, and the light receiving unit 9B3 may be arranged with respect to the light receiving unit 9A3. It may be located on the opposite side.

受光部9A1〜9A3は通常の長さ計測に使用する受光部とする。一方、受光部9A1〜9A3が2つのパターンの境界を読み取った場合は、受光部9A1〜9A3の代わりに受光部9B1〜9B3を長さ計測に使用する。尚、受光部9A1〜9A3は1つのパターンの長さと等しい間隔Xで配置されているので、受光部9A1が2つのパターンの境界を読み取っている場合には、受光部9A2や受光部9A3も2つのパターンの境界を読み取る。このため、受光部9B1〜9B3を長さ計測に用いるか否かを判断するには、受光部9A1〜9A3のいずれか一つ、例えば受光部9A1が境界を読み取っているか否かを判断すれば十分である。受光部9A1が境界を読み取っているか否かは、マイコン3が、受光部9A1、受光部9B1及び受光部9C1で読み取られたパターンの色に基づいて判断することができる。 The light receiving parts 9A1 to 9A3 are light receiving parts used for normal length measurement. On the other hand, when the light receiving units 9A1 to 9A3 read the boundary between the two patterns, the light receiving units 9B1 to 9B3 are used for length measurement instead of the light receiving units 9A1 to 9A3. Since the light receiving units 9A1 to 9A3 are arranged at intervals X equal to the length of one pattern, when the light receiving unit 9A1 is reading the boundary between the two patterns, the light receiving units 9A2 and the light receiving unit 9A3 are also 2 Read the boundaries between the two patterns. Therefore, in order to determine whether or not the light receiving units 9B1 to 9B3 are used for length measurement, it is necessary to determine whether or not any one of the light receiving units 9A1 to 9A3, for example, the light receiving unit 9A1 is reading the boundary. It is enough. Whether or not the light receiving unit 9A1 is reading the boundary can be determined by the microcomputer 3 based on the colors of the patterns read by the light receiving unit 9A1, the light receiving unit 9B1, and the light receiving unit 9C1.

受光部9Aのセットと受光部9Bのセットとは互いに間隔Yだけ位置がずれているため、受光部9B1〜9B3を長さの計測に使用する場合には、マイコン3は、受光部9B1〜9B3の読取結果から算出されるメジャー7Aの目盛値から間隔Yを減算して長さを計測してもよい。 Since the set of the light receiving unit 9A and the set of the light receiving unit 9B are displaced by the distance Y from each other, when the light receiving units 9B1 to 9B3 are used for length measurement, the microcomputer 3 uses the light receiving units 9B1 to 9B3. The length may be measured by subtracting the interval Y from the scale value of the measure 7A calculated from the reading result of.

図10は、受光部9A1、受光部9B1及び受光部9C1が検出する色番号と、目盛換算(長さ計測)に使用する受光部との関係を示す図である。 FIG. 10 is a diagram showing the relationship between the color numbers detected by the light receiving unit 9A1, the light receiving unit 9B1 and the light receiving unit 9C1 and the light receiving unit used for scale conversion (length measurement).

受光部9B1および受光部9C1は、受光部9A1が1つのパターンのみを読み取っているときに受光部9B1あるいは受光部9C1の少なくとも一方が受光部9A1と同一のパターンを読み取るように、受光部9A1から間隔Xよりも短い間隔Y及び間隔Zだけ離れた位置に配置される。この場合、図10の1〜5行目に示すように、受光部9A1が読み取るパターンの色と、受光部9B1あるいは受光部9C1の少なくとも一方が読み取るパターンの色とが同一な場合、マイコン3は、受光部9A1が2つのパターンの境界を読み取っていないと判断する。受光部9A1が単一のパターンを読み取っていると判断された場合、長さ計測に使用する受光部は受光部9A1〜9A3とする。 The light receiving unit 9B1 and the light receiving unit 9C1 are arranged from the light receiving unit 9A1 so that at least one of the light receiving unit 9B1 or the light receiving unit 9C1 reads the same pattern as the light receiving unit 9A1 when the light receiving unit 9A1 reads only one pattern. It is arranged at a position separated by an interval Y and an interval Z shorter than the interval X. In this case, as shown in the 1st to 5th lines of FIG. 10, when the color of the pattern read by the light receiving unit 9A1 and the color of the pattern read by at least one of the light receiving unit 9B1 or the light receiving unit 9C1 are the same, the microcomputer 3 is used. , It is determined that the light receiving unit 9A1 does not read the boundary between the two patterns. When it is determined that the light receiving unit 9A1 is reading a single pattern, the light receiving unit used for length measurement is the light receiving unit 9A1 to 9A3.

一方、受光部9A1が色番号1のパターンと色番号3のパターンとの境界を読み取った場合には、図10の6〜7行目に示すように、受光部9B1と9C1は色番号1あるいは色番号3に対応する検出値を出力するのに対し、受光部9A1は色番号1と色番号3との中間に相当する色番号2に相当する検出値を出力するため、受光部9A1、受光部9B1及び受光部9C1が検出するパターンの色はそれぞれ異なる。このように、受光部9A1で検出した色が受光部9B1及び受光部9C1で検出した色と異なる場合には、マイコン3は、受光部9B1が2つのパターンの境界を読み取っていると判断する。この場合、長さ計測に使用する受光部は受光部9B1〜9B3とする。 On the other hand, when the light receiving unit 9A1 reads the boundary between the pattern of the color number 1 and the pattern of the color number 3, the light receiving units 9B1 and 9C1 have the color number 1 or as shown in the 6th to 7th lines of FIG. While the light receiving unit 9A1 outputs the detection value corresponding to the color number 3, the light receiving unit 9A1 outputs the detection value corresponding to the color number 2 corresponding to the middle between the color number 1 and the color number 3, so that the light receiving unit 9A1 receives the light. The colors of the patterns detected by the unit 9B1 and the light receiving unit 9C1 are different from each other. When the color detected by the light receiving unit 9A1 is different from the color detected by the light receiving unit 9B1 and the light receiving unit 9C1, the microcomputer 3 determines that the light receiving unit 9B1 is reading the boundary between the two patterns. In this case, the light receiving units used for length measurement are the light receiving units 9B1 to 9B3.

上記では、受光部9Bは、受光部9Aが2つのパターンの境界を読み取っているか否かの判別と、受光部9Aが境界を読み取っている場合の受光部9Aに代わる長さ計測との2つの目的で使用されている。後者については、受光部9A1〜9A3と同数の受光部9B1〜9B3を要する。一方、前者の目的で使用する場合は、受光部9B1〜9B3のいずれか一つがあればよい。 In the above, the light receiving unit 9B determines whether or not the light receiving unit 9A is reading the boundary between the two patterns, and measures the length instead of the light receiving unit 9A when the light receiving unit 9A is reading the boundary. It is used for the purpose. The latter requires the same number of light receiving units 9B1 to 9B3 as the light receiving units 9A1 to 9A3. On the other hand, when used for the former purpose, any one of the light receiving units 9B1 to 9B3 may be provided.

図11は、第2の実施の形態に係る計測器1Aで実行される計測処理を示すフローチャートである。 FIG. 11 is a flowchart showing a measurement process executed by the measuring instrument 1A according to the second embodiment.

スイッチ5が操作されると、マイコン3が全ての照射部8を点灯する(S31)。その後、全ての受光部9A1〜9A3、9B1〜9B3及び9C1の電圧値を読み出し(S32)、照射部8を消灯する(S33)。次に、マイコン3は、受光部9の出力に基づき、色判定処理及び境界判定処理を行う(S34,S35)。色判定処理及び境界判定処理の詳細は後述する。 When the switch 5 is operated, the microcomputer 3 lights all the irradiation units 8 (S31). After that, the voltage values of all the light receiving units 9A1 to 9A3, 9B1 to 9B3, and 9C1 are read out (S32), and the irradiation unit 8 is turned off (S33). Next, the microcomputer 3 performs color determination processing and boundary determination processing based on the output of the light receiving unit 9 (S34, S35). Details of the color determination process and the boundary determination process will be described later.

次いで、マイコン3は、S5と同様に、色判定処理で異常が検出されたか否かを判別する(S36)。色判定処理で異常が検出された場合には(S36でYES)、本処理を終了する。色判定処理で異常が検出されない場合には(S36でNO)、マイコン3は、境界判定処理の結果から、長さ計測に使用する受光部を受光部9A1〜9A3とするか否かを判別する(S37)。 Next, the microcomputer 3 determines whether or not an abnormality has been detected in the color determination process, as in S5 (S36). If an abnormality is detected in the color determination process (YES in S36), this process ends. If no abnormality is detected in the color determination process (NO in S36), the microcomputer 3 determines from the result of the boundary determination process whether or not the light receiving unit used for the length measurement is the light receiving unit 9A1 to 9A3. (S37).

受光部9A1〜9A3を長さ計測に用いる場合には(S37でYES)、マイコン3は、受光部9A1〜9A3が検出した各パターンの色から3進数の値又は10進数の値を算出する(S38)。受光部9B1〜9B3を長さ計測に用いる場合には(S37でNO)、マイコン3は、受光部9B1〜9B3が検出した各パターンの色から3進数の値又は10進数の値を算出する(S39)。S38及びS39の後、マイコン3は、S38又はS39で算出された値と比較する図3のテーブルの目盛値(行)に対応するLを0に設定する(L=0)(S40)。次にマイコン3は、図3のテーブルを参照し、S38又はS39で算出された値がL番目の目盛値と一致するか否かを判別する(S41)。S38又はS39で算出された値がL番目の目盛値と一致する場合には(S41でYES)、マイコン3は、その目盛値をバッファ3Aに保存し(S44)、本処理を終了する。バッファ3Aに保存した目盛値は、通信部4を使用して外部端末10に送信される。 When the light receiving units 9A1 to 9A3 are used for length measurement (YES in S37), the microcomputer 3 calculates a ternary value or a decimal number value from the color of each pattern detected by the light receiving units 9A1 to 9A3 (YES in S37). S38). When the light receiving units 9B1 to 9B3 are used for length measurement (NO in S37), the microcomputer 3 calculates a ternary value or a decimal number value from the color of each pattern detected by the light receiving units 9B1 to 9B3 (NO in S37). S39). After S38 and S39, the microcomputer 3 sets L corresponding to the scale value (row) in the table of FIG. 3 to be compared with the value calculated in S38 or S39 to 0 (L = 0) (S40). Next, the microcomputer 3 refers to the table of FIG. 3 and determines whether or not the value calculated in S38 or S39 matches the L-th scale value (S41). If the value calculated in S38 or S39 matches the L-th scale value (YES in S41), the microcomputer 3 saves the scale value in the buffer 3A (S44) and ends this process. The scale value stored in the buffer 3A is transmitted to the external terminal 10 using the communication unit 4.

一方、S38又はS39で算出された値がL番目の目盛値と一致しない場合には(S41でNO)、マイコン3はLの値を1インクリメントする(L=L+1)(S42)。そして、マイコン3は全ての目盛値(L=0〜26)のチェックが完了したか否かを判別する(S43)。全ての目盛値のチェックが完了していない場合には(S43でNO)、S41に戻る。一方、全ての目盛値のチェックが完了した場合には(S43でYES)、本処理を終了する。 On the other hand, if the value calculated in S38 or S39 does not match the L-th scale value (NO in S41), the microcomputer 3 increments the L value by 1 (L = L + 1) (S42). Then, the microcomputer 3 determines whether or not all the scale values (L = 0 to 26) have been checked (S43). If all the scale values have not been checked (NO in S43), the process returns to S41. On the other hand, when all the scale value checks are completed (YES in S43), this process ends.

図12及び図13は、S34の色判定処理を示すフローチャートである。 12 and 13 are flowcharts showing the color determination process of S34.

マイコン3は、色判定処理の対象となる受光部9Anを9A1に設定し(n=1)(S51)、色番号mを1に設定する(m=1)(S52)。次いでマイコン3は、受光部9Anの電圧値が色番号mに対応する電圧値の範囲に含まれるか否かを判別する(S53)。受光部9Anの電圧値が色番号mに対応する電圧値の範囲に含まれない場合には(S53でNO)、マイコン3はmの値を1インクリメントする(m=m+1)(S54)。マイコン3は全ての色番号に対応する電圧値のチェックが完了したか否かを判別する(S55)。 The microcomputer 3 sets the light receiving unit 9An, which is the target of the color determination process, to 9A1 (n = 1) (S51), and sets the color number m to 1 (m = 1) (S52). Next, the microcomputer 3 determines whether or not the voltage value of the light receiving unit 9An is included in the voltage value range corresponding to the color number m (S53). When the voltage value of the light receiving unit 9An is not included in the voltage value range corresponding to the color number m (NO in S53), the microcomputer 3 increments the value of m by 1 (m = m + 1) (S54). The microcomputer 3 determines whether or not the check of the voltage values corresponding to all the color numbers has been completed (S55).

全ての色番号に対応する電圧値のチェックが完了していない場合には(S55でNO)、S53に戻る。全ての色番号に対応する電圧値のチェックが完了した場合には(S55でYES)、マイコン3は、受光部9Anの異常を示す異常値フラグをバッファ3Aにセットし(S56)、S59に進む。 If the check of the voltage values corresponding to all the color numbers is not completed (NO in S55), the process returns to S53. When the check of the voltage values corresponding to all the color numbers is completed (YES in S55), the microcomputer 3 sets the abnormal value flag indicating the abnormality of the light receiving unit 9An in the buffer 3A (S56), and proceeds to S59. ..

一方、受光部9Anの電圧値が色番号mに対応する電圧値の範囲に含まれる場合には(S53でYES)、マイコン3は、受光部9Anの値を1インクリメントする(n=n+1)(S57)。マイコン3は、全ての受光部9Anのチェックが完了したか否かを判別する(S58)。全ての受光部9Anのチェックが完了していない場合には(S58でNO)、S52に戻る。全ての受光部9Anのチェックが完了した場合には(S58でYES)、S59に進み、受光部9Bに関する処理を行う。 On the other hand, when the voltage value of the light receiving unit 9An is included in the voltage value range corresponding to the color number m (YES in S53), the microcomputer 3 increments the value of the light receiving unit 9An by 1 (n = n + 1) (n = n + 1). S57). The microcomputer 3 determines whether or not all the light receiving units 9An have been checked (S58). If the checks of all the light receiving units 9An have not been completed (NO in S58), the process returns to S52. When all the light receiving units 9An have been checked (YES in S58), the process proceeds to S59 to perform processing related to the light receiving unit 9B.

マイコン3は、色判定処理の対象となる受光部9Biを9B1に設定し(i=1)(S59)、色番号mに1を設定する(m=1)(S60)。次いでマイコン3は、受光部9Biの電圧値が色番号mに対応する電圧値の範囲に含まれるか否かを判別する(S61)。受光部9Biの電圧値が色番号mに対応する電圧値の範囲に含まれない場合には(S61でNO)、マイコン3は、mの値を1インクリメントする(m=m+1)(S62)。マイコン3は、全ての色番号に対応する電圧値のチェックが完了したか否かを判別する(S63)。 The microcomputer 3 sets the light receiving unit 9Bi, which is the target of the color determination process, to 9B1 (i = 1) (S59), and sets the color number m to 1 (m = 1) (S60). Next, the microcomputer 3 determines whether or not the voltage value of the light receiving unit 9Bi is included in the voltage value range corresponding to the color number m (S61). If the voltage value of the light receiving unit 9Bi is not included in the voltage value range corresponding to the color number m (NO in S61), the microcomputer 3 increments the value of m by 1 (m = m + 1) (S62). The microcomputer 3 determines whether or not the check of the voltage values corresponding to all the color numbers has been completed (S63).

全ての色番号に対応する電圧値のチェックが完了していない場合には(S63でNO)、S61に戻る。一方、全ての色番号に対応する電圧値のチェックが完了した場合には(S63でYES)、マイコン3は、受光部9Biの異常を示す異常値フラグをバッファ3Aにセットし(S64)、S67に進む。 If the check of the voltage values corresponding to all the color numbers is not completed (NO in S63), the process returns to S61. On the other hand, when the check of the voltage values corresponding to all the color numbers is completed (YES in S63), the microcomputer 3 sets the abnormal value flag indicating the abnormality of the light receiving unit 9Bi in the buffer 3A (S64), and S67. Proceed to.

受光部9Biの電圧値が色番号mに対応する電圧値の範囲に含まれる場合には(S61でYES)、マイコン3は受光部9Biの値を1インクリメントする(i=i+1)(S65)。そして、マイコン3は、全ての受光部9Biのチェックが完了したか否かを判別する(S66)。全ての受光部9Biのチェックが完了していない場合には(S66でNO)、S60に戻る。全ての受光部9Biのチェックが完了した場合には(S66でYES)、S67に進み、受光部9C1に関する処理を行う。 When the voltage value of the light receiving unit 9Bi is included in the voltage value range corresponding to the color number m (YES in S61), the microcomputer 3 increments the value of the light receiving unit 9Bi by 1 (i = i + 1) (S65). Then, the microcomputer 3 determines whether or not all the light receiving units 9Bi have been checked (S66). If the checks of all the light receiving units 9Bi have not been completed (NO in S66), the process returns to S60. When all the checks of the light receiving unit 9Bi are completed (YES in S66), the process proceeds to S67 and the process related to the light receiving unit 9C1 is performed.

マイコン3は、色番号mとして1を設定する(m=1)(S67)。次にマイコン3は、受光部9C1の電圧値が色番号mに対応する電圧値の範囲に含まれるか否かを判別する(S68)。受光部9C1の電圧値が色番号mに対応する電圧値の範囲に含まれない場合には(S68でNO)、マイコン3はmの値を1インクリメントする(m=m+1)(S69)。そして、マイコン3は、全ての色番号に対応する電圧値のチェックが完了したか否かを判別する(S70)。全ての色番号に対応する電圧値のチェックが完了していない場合には(S70でNO)、S68に戻る。全ての色番号に対応する電圧値のチェックが完了した場合には(S70でYES)、マイコン3は、受光部9C1の異常を示す異常値フラグをバッファ3Aにセットし(S71)、本処理を終了する。 The microcomputer 3 sets 1 as the color number m (m = 1) (S67). Next, the microcomputer 3 determines whether or not the voltage value of the light receiving unit 9C1 is included in the voltage value range corresponding to the color number m (S68). If the voltage value of the light receiving unit 9C1 is not included in the voltage value range corresponding to the color number m (NO in S68), the microcomputer 3 increments the value of m by 1 (m = m + 1) (S69). Then, the microcomputer 3 determines whether or not the check of the voltage values corresponding to all the color numbers has been completed (S70). If the check of the voltage values corresponding to all the color numbers is not completed (NO in S70), the process returns to S68. When the check of the voltage values corresponding to all the color numbers is completed (YES in S70), the microcomputer 3 sets the abnormal value flag indicating the abnormality of the light receiving unit 9C1 in the buffer 3A (S71), and performs this process. finish.

また、受光部9C1の電圧値が色番号mに対応する電圧値の範囲に含まれる場合には(S68でYES)、本処理を終了する。 If the voltage value of the light receiving unit 9C1 is included in the voltage value range corresponding to the color number m (YES in S68), this process ends.

図14は、S35の境界判定処理を示すフローチャートである。 FIG. 14 is a flowchart showing the boundary determination process of S35.

マイコン3は、受光部9A1〜9A3の電圧値が正常値であるか否かを判別する(S81)。受光部9の電圧値がいずれかの色番号mに対応する電圧値の範囲に含まれる場合に、マイコン3は受光部9の電圧値が正常値であると判断する。各受光部9A1〜9A3の電圧値が正常値である場合には(S81でYES)、マイコン3は、各受光部9B1〜9B3の電圧値が正常値であるか否かを判別する(S82)。いずれかの受光部9B1〜9B3の電圧値が正常値でない場合には(S82でNO)、マイコン3は、受光部9A1〜9A3の電圧値を使用して長さ計測を行い(S84)、本処理を終了する。 The microcomputer 3 determines whether or not the voltage values of the light receiving units 9A1 to 9A3 are normal values (S81). When the voltage value of the light receiving unit 9 is included in the voltage value range corresponding to any of the color numbers m, the microcomputer 3 determines that the voltage value of the light receiving unit 9 is a normal value. When the voltage values of the light receiving units 9A1 to 9A3 are normal values (YES in S81), the microcomputer 3 determines whether or not the voltage values of the light receiving units 9B1 to 9B3 are normal values (S82). .. If the voltage values of any of the light receiving units 9B1 to 9B3 are not normal values (NO in S82), the microcomputer 3 measures the length using the voltage values of the light receiving units 9A1 to 9A3 (S84). End the process.

一方、各受光部9B1〜9B3の電圧値が正常値である場合には(S82でYES)、マイコン3は受光部9A1で検出した色が受光部9B1で検出した色と一致するか否かを判定する(S83)。受光部9A1で検出した色が受光部9B1で検出した色と一致する場合には(S83でYES)、S84に進む。一方、受光部9A1で検出した色が受光部9B1で検出した色と一致しない場合には(S83でNO)、マイコン3は、受光部9C1の電圧値が正常値であるか否かを判別する(S85)。 On the other hand, when the voltage values of the light receiving units 9B1 to 9B3 are normal values (YES in S82), the microcomputer 3 determines whether or not the color detected by the light receiving unit 9A1 matches the color detected by the light receiving unit 9B1. Judgment (S83). If the color detected by the light receiving unit 9A1 matches the color detected by the light receiving unit 9B1 (YES in S83), the process proceeds to S84. On the other hand, when the color detected by the light receiving unit 9A1 does not match the color detected by the light receiving unit 9B1 (NO in S83), the microcomputer 3 determines whether or not the voltage value of the light receiving unit 9C1 is a normal value. (S85).

受光部9C1の電圧値が正常値でない場合には(S85でNO)、マイコン3は検出結果が異常であると判断し(S88)、本処理を終了する。一方、受光部9C1の電圧値が正常値である場合には(S85でYES)、マイコン3は、受光部9A1で検出した色が受光部9C1で検出した色と一致するか否かを判定する(S86)。受光部9A1で検出した色が受光部9C1で検出した色と一致する場合には(S86でYES)、S84に進む。一方、受光部9A1で検出した色が受光部9C1で検出した色と一致しない場合には(S86でNO)、マイコン3は受光部9B1〜9B3の電圧値を使用して長さ計測を行い(S87)、本処理を終了する。 If the voltage value of the light receiving unit 9C1 is not a normal value (NO in S85), the microcomputer 3 determines that the detection result is abnormal (S88), and ends this process. On the other hand, when the voltage value of the light receiving unit 9C1 is a normal value (YES in S85), the microcomputer 3 determines whether or not the color detected by the light receiving unit 9A1 matches the color detected by the light receiving unit 9C1. (S86). If the color detected by the light receiving unit 9A1 matches the color detected by the light receiving unit 9C1 (YES in S86), the process proceeds to S84. On the other hand, if the color detected by the light receiving unit 9A1 does not match the color detected by the light receiving unit 9C1 (NO in S86), the microcomputer 3 measures the length using the voltage values of the light receiving units 9B1 to 9B3 (NO). S87), this process is terminated.

受光部9A1〜9A3のいずれかの電圧値が正常値でない場合には(S81でNO)、マイコン3は受光部9B1〜9B3の電圧値が正常値であるか否かを判別する(S89)。受光部9B1〜9B3のいずれかの電圧値が正常値でない場合には(S89でNO)、マイコン3は検出結果が異常であると判断し(S91)、本処理を終了する。一方、受光部9B1〜9B3の電圧値が正常値である場合には(S89でYES)、マイコン3は、受光部9B1〜9B3の電圧値を使用して長さを計測し(S90)、本処理を終了する。 When any of the voltage values of the light receiving units 9A1 to 9A3 is not a normal value (NO in S81), the microcomputer 3 determines whether or not the voltage values of the light receiving units 9B1 to 9B3 are normal values (S89). If any of the voltage values of the light receiving units 9B1 to 9B3 is not a normal value (NO in S89), the microcomputer 3 determines that the detection result is abnormal (S91), and ends this process. On the other hand, when the voltage values of the light receiving units 9B1 to 9B3 are normal values (YES in S89), the microcomputer 3 measures the length using the voltage values of the light receiving units 9B1 to 9B3 (S90). End the process.

図15(A)は、第1の実施の形態に係る計測器1の第1変形例を示す図である。図15(B)は、第1の実施の形態に係る計測器1の第2変形例を示す図である。 FIG. 15A is a diagram showing a first modification of the measuring instrument 1 according to the first embodiment. FIG. 15B is a diagram showing a second modification of the measuring instrument 1 according to the first embodiment.

第1の実施の形態に係る計測器1では、図2に示すように、パターンの長さXが受光部9及び照射部8を長さ方向に配列するために必要な長さよりも長いので、複数セットの受光部9はメジャー7Aの長さ方向に一列に配列されている。 In the measuring instrument 1 according to the first embodiment, as shown in FIG. 2, the length X of the pattern is longer than the length required for arranging the light receiving unit 9 and the irradiation unit 8 in the length direction. The plurality of sets of light receiving units 9 are arranged in a row in the length direction of the measure 7A.

しかしながら、図15(A)に示すように、パターンの長さXが1セットの受光部9を長さ方向に配列するために必要な長さPよりも短い場合には、複数セットの受光部9をメジャー7Aの長さ方向に一列に配列することはできない。この場合、図15(A)に示すように、複数セットの受光部9(9A1〜9A3)をメジャー7Aの幅方向にずらして複数列で配置してもよい。このような配置でも、第1の実施の形態と同様に測定対象物の長さを計測することができるとともに、より分解能の高い計測が可能となる。 However, as shown in FIG. 15A, when the length X of the pattern is shorter than the length P required for arranging one set of light receiving parts 9 in the length direction, a plurality of sets of light receiving parts are set. 9 cannot be arranged in a row in the length direction of the measure 7A. In this case, as shown in FIG. 15A, a plurality of sets of light receiving units 9 (9A1 to 9A3) may be arranged in a plurality of rows by shifting them in the width direction of the measure 7A. Even with such an arrangement, the length of the object to be measured can be measured as in the first embodiment, and the measurement with higher resolution becomes possible.

さらに、図15(B)に示すように、複数の受光部9A1〜9A3が反射光を受光できる範囲15内に1つの照射部8を配置してもよい。この場合、受光部9A1〜9A3がメジャー7Aの幅方向に複数列で配置される。このような配置でも、第1の実施の形態と同様に測定対象物の長さを計測することができ、照射部8の個数を削減することが可能となる。このため、計測器1の消費電力や製造コストを低減できる。 Further, as shown in FIG. 15B, one irradiation unit 8 may be arranged within the range 15 in which the plurality of light receiving units 9A1 to 9A3 can receive the reflected light. In this case, the light receiving units 9A1 to 9A3 are arranged in a plurality of rows in the width direction of the measure 7A. Even with such an arrangement, the length of the object to be measured can be measured as in the first embodiment, and the number of irradiation units 8 can be reduced. Therefore, the power consumption and the manufacturing cost of the measuring instrument 1 can be reduced.

図16(A)は、第2の実施の形態に係る計測器1の第1変形例を示す図である。図16(B)は、第2の実施の形態に係る計測器1の第2変形例を示す図である。 FIG. 16A is a diagram showing a first modification of the measuring instrument 1 according to the second embodiment. FIG. 16B is a diagram showing a second modification of the measuring instrument 1 according to the second embodiment.

図16(A)に示すように、複数セットの受光部9(9A1〜9A3、9B1〜9B3、9C1)をメジャー7Aの幅方向に複数列で配置してもよい。このような配置でも、第2の実施の形態と同様に測定対象物の長さを計測することができ、より分解能の高い計測が可能となる。 As shown in FIG. 16A, a plurality of sets of light receiving units 9 (9A1 to 9A3, 9B1 to 9B3, 9C1) may be arranged in a plurality of rows in the width direction of the measure 7A. Even with such an arrangement, the length of the object to be measured can be measured as in the second embodiment, and measurement with higher resolution becomes possible.

さらに、図16(B)に示すように、複数の受光部9A1、9B1及び9C1が反射光を受光できる範囲16A内に1つの照射部8を配置し、受光部9A1、9B2及び9A2が反射光を受光できる範囲16B内に1つの照射部8を配置し、受光部9A2、9B3及び9A3が反射光を受光できる範囲16C内に1つの照射部8を配置してもよい。この場合、受光部9A1〜9A3、9B1〜9B3及び9C1がメジャー7Aの幅方向に複数列で配置される。このような配置でも、測定対象物の長さを計測することができ、且つ照射部8の個数を削減することが可能となる。このため、計測器1の消費電力や製造コストを低減できる。 Further, as shown in FIG. 16B, one irradiation unit 8 is arranged within the range 16A in which the plurality of light receiving units 9A1, 9B1 and 9C1 can receive the reflected light, and the light receiving units 9A1, 9B2 and 9A2 are the reflected light. One irradiation unit 8 may be arranged in the range 16B capable of receiving light, and one irradiation unit 8 may be arranged in the range 16C in which the light receiving units 9A2, 9B3 and 9A3 can receive the reflected light. In this case, the light receiving units 9A1 to 9A3, 9B1 to 9B3, and 9C1 are arranged in a plurality of rows in the width direction of the measure 7A. Even with such an arrangement, the length of the object to be measured can be measured, and the number of irradiation units 8 can be reduced. Therefore, the power consumption and the manufacturing cost of the measuring instrument 1 can be reduced.

以上説明したように、第2の実施の形態によれば、マイコン3は、受光部9A1と、間隔Xよりも短い間隔Yだけ長さ方向に受光部9A1から長さ方向に離れた受光部9B1及び間隔Xよりも短い間隔Zだけ受光部9A1から長さ方向且つ受光部9B1とは逆側に離れた受光部9C1とで読み取られた色に基づいて、受光部9A1〜9A3が境界を読み取っているか否かを判定する。よって、ある1つのパターンを読み取った場合の受光部9A1の出力値が2つのパターンの境界を読み取った場合の受光部9A1の出力値と同じであっても、マイコン3は受光部9A1が2つのパターンの境界を読み取ったか否かを判定することができ、測定対象物の長さを正確に測定することができる。 As described above, according to the second embodiment, the microcomputer 3 has a light receiving unit 9A1 and a light receiving unit 9B1 separated from the light receiving unit 9A1 in the length direction by an interval Y shorter than the interval X. The light receiving units 9A1 to 9A3 read the boundary based on the color read by the light receiving unit 9C1 in the length direction from the light receiving unit 9A1 and away from the light receiving unit 9B1 by the interval Z shorter than the interval X. Judge whether or not. Therefore, even if the output value of the light receiving unit 9A1 when reading a certain pattern is the same as the output value of the light receiving unit 9A1 when reading the boundary between the two patterns, the microcomputer 3 has two light receiving units 9A1. It can be determined whether or not the boundary of the pattern has been read, and the length of the object to be measured can be accurately measured.

受光部9A1〜9A3が2つのパターンの境界を検出している場合は、受光部9A1〜9A3の代わりに受光部9B1〜9B3を使用するので、測定対象物の長さを正確に測定することができる。 When the light receiving units 9A1 to 9A3 detect the boundary between the two patterns, the light receiving units 9B1 to 9B3 are used instead of the light receiving units 9A1 to 9A3, so that the length of the object to be measured can be measured accurately. it can.

上記実施の形態では、1単位パターンを隣接する3つのパターンから構成しているが、単位パターンを構成するパターン数は2あるいは4以上でもよい。また、1単位パターンを構成する複数パターンが互いに隣接していなくてもよい。 In the above embodiment, one unit pattern is composed of three adjacent patterns, but the number of patterns constituting the unit pattern may be two or four or more. Further, the plurality of patterns constituting the one unit pattern do not have to be adjacent to each other.

上記実施の形態では3進数にてパターンを表現しているが、Nが3を超えるN進数としてもよい。 In the above embodiment, the pattern is expressed by a ternary number, but it may be an N-ary number in which N exceeds 3.

上記実施の形態では、単位パターンを構成するパターン数と受光部9Aあるいは受光部9Bの数は同数であるが、配列される受光部9A、9Bの数は単位パターンの数を超えてもよい。この場合、単位パターンを構成するパターン数が異なる複数種のメジャーを用いた計測を単一の計測器で行うことも可能となる。機能の切り替えは、スイッチ操作やソフトウエアの切り替え/書き換えで対応できる。 In the above embodiment, the number of patterns constituting the unit pattern and the number of the light receiving units 9A or the light receiving units 9B are the same, but the number of the light receiving units 9A and 9B arranged may exceed the number of the unit patterns. In this case, it is possible to perform measurement using a plurality of types of measures having different numbers of patterns constituting the unit pattern with a single measuring instrument. Functions can be switched by operating switches or switching / rewriting software.

(第3の実施の形態)
次に、第3の実施の形態について説明する。
(Third Embodiment)
Next, a third embodiment will be described.

上記のメジャー7Aでは、長さ方向に複数のパターンを1列に配置することで、メジャー7Aの幅が増大する課題及び幅方向に配置される受光部9の個数が増加する課題を解決している。 In the above-mentioned measure 7A, by arranging a plurality of patterns in a row in the length direction, the problem of increasing the width of the measure 7A and the problem of increasing the number of light receiving portions 9 arranged in the width direction are solved. There is.

しかしながら、メジャー7Aで測定可能な長さを長くしたい場合には、受光部9が読み取るパターン数を増やす必要があるため、長さ方向に1列に配置される受光部9の個数を増やさなければならない。このため、受光部9が長さ方向に1列に配置される場合には、計測器1が長さ方向に拡大してしまい、使い勝手が悪化する可能性がある。したがって、受光部9もしくは計測器1の長さ方向の大きさを小さくすることが望まれている。 However, if it is desired to increase the length that can be measured by the tape measure 7A, it is necessary to increase the number of patterns read by the light receiving unit 9, so that the number of light receiving units 9 arranged in a row in the length direction must be increased. It doesn't become. Therefore, when the light receiving units 9 are arranged in a row in the length direction, the measuring instrument 1 may expand in the length direction, which may deteriorate usability. Therefore, it is desired to reduce the size of the light receiving unit 9 or the measuring instrument 1 in the length direction.

そこで、第3の実施の形態では、受光部9を幅方向に2列以上配置し、各列に個別のカラーパターンを割り当てることにより、計測器1の長さ方向の大きさを小さくする。 Therefore, in the third embodiment, the size of the measuring instrument 1 in the length direction is reduced by arranging two or more rows of light receiving units 9 in the width direction and assigning individual color patterns to each row.

第3の実施の形態では、メジャー7Aのパターンの読み取り方法及び処理フローは、上述した第1又は第2の実施の形態と同じである。よって、マイコン3で実行されるソフトウエア又はファームウエアは第1又は第2の実施の形態のソフトウエア又はファームウエアから変更する必要はなく、メジャー7Aのパターンの配置及び受光部9の配置が変更される。なお、受光部9の構造は変更されず、受光部9の配置が変更される。 In the third embodiment, the pattern reading method and processing flow of the measure 7A are the same as those in the first or second embodiment described above. Therefore, the software or firmware executed by the microcomputer 3 does not need to be changed from the software or firmware of the first or second embodiment, and the arrangement of the pattern of the major 7A and the arrangement of the light receiving unit 9 are changed. Will be done. The structure of the light receiving unit 9 is not changed, and the arrangement of the light receiving unit 9 is changed.

図17(A)〜(D)は、幅方向に1列に配置された4つの受光部9を用いてカラーパターンを読み取るために、長さ方向に1列に配置された複数のパターンを、幅方向に4列に配置されたカラーパターンに変換する方法を示す図である。以下では、長さ方向の一列のカラーパターンを、1行のカラーパターンとして説明する場合がある。 17 (A) to 17 (D) show a plurality of patterns arranged in a row in the length direction in order to read a color pattern using the four light receiving units 9 arranged in a row in the width direction. It is a figure which shows the method of converting into the color pattern arranged in 4 columns in the width direction. In the following, a color pattern in a row in the length direction may be described as a color pattern in a row.

図17(A)のメジャー7Aには、長さ方向に一列に一定間隔Xで配置された複数のパターンを有するカラーパターンが印刷されている。各パターンは3つの異なる色のいずれかの色を持ち、0、1あるいは2のいずれかの値が割り当てられている。図17(A)では、「2」が割り当てられているパターンの例が示されていないが、図2と同様に、各パターンは白、青、黒のいずれかの色を有し、それぞれに対して「0」、「1」、「2」の値が割り当てられている。なお、図17(A)のパターン内の「0」〜「2」の値は理解を容易にするためのものであり、これらの数値はメジャー7Aに印刷する必要はない。同様に、理解容易のためパターン間の境界線も図示されているが、メジャー7Aにはこのような境界線を引く必要もない。 On the tape measure 7A of FIG. 17A, a color pattern having a plurality of patterns arranged in a row at regular intervals X in the length direction is printed. Each pattern has one of three different colors and is assigned a value of 0, 1 or 2. FIG. 17A does not show an example of a pattern to which "2" is assigned, but as in FIG. 2, each pattern has one of white, blue, and black colors, and each of them has a color of white, blue, or black. On the other hand, values of "0", "1", and "2" are assigned. The values of "0" to "2" in the pattern of FIG. 17A are for easy understanding, and it is not necessary to print these numerical values on the measure 7A. Similarly, the boundaries between the patterns are also shown for ease of understanding, but it is not necessary to draw such boundaries on the measure 7A.

また、図17(A)の例では、長さ方向に隣接する4つのパターンが1つの単位パターンを構成しており、1つの単位パターンに対して1つの3進値が割り当てられる。 Further, in the example of FIG. 17A, four patterns adjacent to each other in the length direction constitute one unit pattern, and one ternary value is assigned to one unit pattern.

パターンの長さでもある間隔Xは、メジャー7Aで計測可能な単位長さに対応する。計測器1には、メジャー7Aのカラーパターンからの反射光を検出する4つの受光部9A1〜9A4及び4つの照射部8が、各パターンと同じ間隔Xで配置されている。各受光部9Aは、1つのパターンを読み取る。図17(A)では、パターンの幅方向の長さY1は、間隔Xの長さと同じであるが、間隔Xの長さよりも大きくてもよい又は小さくてもよい。尚、照射部8及び受光部9の組の個数は、1単位パターンを構成するパターン数などに応じて2個又は4個以上でもよい。また、前述のように照射部8の数は1単位パターンを構成するパターン数と同一でなくてもよい。 The interval X, which is also the length of the pattern, corresponds to the unit length measurable by the measure 7A. In the measuring instrument 1, four light receiving units 9A1 to 9A4 and four irradiation units 8 for detecting reflected light from the color pattern of the major 7A are arranged at the same interval X as each pattern. Each light receiving unit 9A reads one pattern. In FIG. 17A, the length Y1 in the width direction of the pattern is the same as the length of the interval X, but may be larger or smaller than the length of the interval X. The number of pairs of the irradiation unit 8 and the light receiving unit 9 may be two or four or more depending on the number of patterns constituting one unit pattern and the like. Further, as described above, the number of irradiation units 8 does not have to be the same as the number of patterns constituting one unit pattern.

図17(A)の状態では、受光部9A1、9A2、9A3、9A4はそれぞれ1単位パターンの最右端、右から2つ目、右から3つ目、右から4つ目のパターンを読み取る。 In the state of FIG. 17A, the light receiving units 9A1, 9A2, 9A3, and 9A4 read the rightmost pattern, the second pattern from the right, the third pattern from the right, and the fourth pattern from the right, respectively.

メジャー7Aを図17(A)の状態から右に間隔Xだけ移動させた場合又は計測器1を左に間隔Xだけ移動させた場合、受光部9A1は、図17(A)の状態で受光部9A2が読み取っていたパターンを読み取る。図17(A)の状態からメジャー7Aを右に間隔2Xだけ移動させた場合又は計測器1を左に間隔2Xだけ移動させた場合、受光部9A1は受光部9A3が図17(A)で読み取っていたパターンを読み取る。図17(A)の状態からメジャー7Aを右に間隔3Xだけ移動させた場合又は計測器1を左に間隔3Xだけ移動させた場合、受光部9A1は受光部9A4が図17(A)で読み取っていたパターンを読み取る。 When the measure 7A is moved to the right by an interval X from the state of FIG. 17 (A) or the measuring instrument 1 is moved to the left by an interval X, the light receiving unit 9A1 is in the state of FIG. 17 (A). Read the pattern that 9A2 was reading. When the measure 7A is moved to the right by an interval of 2X or the measuring instrument 1 is moved to the left by an interval of 2X from the state of FIG. 17 (A), the light receiving unit 9A1 is read by the light receiving unit 9A3 in FIG. 17 (A). Read the pattern that was there. When the measure 7A is moved to the right by an interval of 3X or the measuring instrument 1 is moved to the left by an interval of 3X from the state of FIG. 17 (A), the light receiving unit 9A1 is read by the light receiving unit 9A4 in FIG. 17 (A). Read the pattern that was there.

したがって、受光部9A1〜9A4をメジャー7Aの幅方向に一列に並べてカラーパターンを読み取るためには、受光部9A2〜9A4が読み取る2〜4行目のカラーパターンを、長さ方向(図17(A)の左方向)に間隔Xの整数倍(1,2,3…)だけ受光部9A1が読み取る1行目のカラーパターンからずらして、1行目のカラーパターンの幅方向に配置すればよい。 Therefore, in order to arrange the light receiving units 9A1 to 9A4 in a row in the width direction of the measure 7A and read the color pattern, the color patterns in the 2nd to 4th rows read by the light receiving units 9A2 to 9A4 are set in the length direction (FIG. 17 (A) ) To the left) by an integral multiple (1, 2, 3 ...) Of the interval X, the color pattern of the first line may be shifted from the color pattern of the first line read by the light receiving unit 9A1 and arranged in the width direction of the color pattern of the first line.

図17(D)はメジャー7A上の4行のカラーパターンの一例を示す。2行目、3行目、4行目のカラーパターンは、1行目のカラーパターンと同じカラーパターンを図示左側にそれぞれ間隔X、間隔2X、間隔3Xだけずらして配置したものである。これにより、図17(D)の幅方向に1列に配置された受光部9A1〜9A4で読み取られる値は、図17(A)の長さ方向に1列に配置された受光部9A1〜9A4で読み取られる値と同一になる。 FIG. 17D shows an example of a four-line color pattern on the measure 7A. The color patterns on the second, third, and fourth lines are the same color patterns as the color patterns on the first line, which are arranged on the left side of the drawing with a gap X, a gap 2X, and a gap 3X, respectively. As a result, the values read by the light receiving units 9A1 to 9A4 arranged in a row in the width direction of FIG. 17 (D) are the light receiving units 9A1 to 9A4 arranged in a row in the length direction of FIG. 17 (A). It will be the same as the value read in.

図18は、図17(A)の1行のカラーパターンを、図17(D)の4行のカラーパターンに配置する方法を示すフローチャートである。 FIG. 18 is a flowchart showing a method of arranging the one-line color pattern of FIG. 17 (A) in the four-line color pattern of FIG. 17 (D).

まず、図17(A)の長さ方向に一定間隔で配置された複数のパターンを含む1行目のカラーパターンをコピーし、1行目のカラーパターンをパターンの幅方向の長さY1の整数倍だけ幅方向にずらして貼り付けることで、図17(B)に示す2行目〜4行目のカラーパターンを生成する(S101)。なお、図17(B)では、各行のパターンと各受光部9との関係を示すために、照射部8及び受光部9A1〜9A3のセットを仮想的に幅方向にずらした状態も図示している。図17(B)では、右から4つ目のカラーパターンを読み取る受光部9A4は1行目のカラーパターン上に配置されている。右から3つ目のカラーパターンを読み取る受光部9A3は2行目のカラーパターン上に配置されている。右から2つ目のカラーパターンを読み取る受光部9A2は3行目のカラーパターン上に配置されている。最右端のカラーパターンを読み取る受光部9A1は4行目のカラーパターン上に配置されている。 First, the color pattern of the first line including a plurality of patterns arranged at regular intervals in the length direction of FIG. 17A is copied, and the color pattern of the first line is an integer of the length Y1 in the width direction of the pattern. The color patterns of the 2nd to 4th lines shown in FIG. 17B are generated by shifting the colors by a factor of 2 in the width direction (S101). Note that FIG. 17B also illustrates a state in which the set of the irradiation unit 8 and the light receiving units 9A1 to 9A3 are virtually shifted in the width direction in order to show the relationship between the pattern of each row and each light receiving unit 9. There is. In FIG. 17B, the light receiving unit 9A4 that reads the fourth color pattern from the right is arranged on the color pattern on the first row. The light receiving unit 9A3 that reads the third color pattern from the right is arranged on the color pattern on the second line. The light receiving unit 9A2 that reads the second color pattern from the right is arranged on the color pattern on the third line. The light receiving unit 9A1 that reads the rightmost color pattern is arranged on the color pattern on the fourth line.

次に、図17(C)に示すように、2行目〜4行目のカラーパターンを、長さ方向(図17(C)の左方向)にそれぞれ間隔Xの1倍、2倍、3倍だけ1行目のカラーパターンからずらした位置にそれぞれ配置する(S102)。一方、図17(C)に図示される受光部9A1〜9A3のそれぞれは、図17(B)に図示した配置に対して、各行のカラーパターンをずらした量の分だけ長さ方向にずらして配置されている。これによって、受光部9A1〜9A4は幅方向に並んで配置される。 Next, as shown in FIG. 17 (C), the color patterns in the second to fourth rows are arranged in the length direction (to the left in FIG. 17 (C)) at 1 times, 2 times, and 3 times the interval X, respectively. They are arranged at positions deviated from the color pattern on the first line by a factor of 2 (S102). On the other hand, each of the light receiving units 9A1 to 9A3 shown in FIG. 17C is shifted in the length direction by the amount of the color pattern of each row shifted with respect to the arrangement shown in FIG. 17B. Have been placed. As a result, the light receiving units 9A1 to 9A4 are arranged side by side in the width direction.

以上により、図17(A)の状態から、図17(D)に示すような4行のカラーパターンを得ることができる。なお、図17(D)に示す「パターンNo.0」は、図17(A)の最右端のパターンから右から4つ目のパターンまでの単位パターンに対応し、「パターンNo.4」は図17(A)の右から5つ目のパターンから右から8つ目のパターンまでの単位パターンに対応する。 From the above, it is possible to obtain a four-line color pattern as shown in FIG. 17 (D) from the state of FIG. 17 (A). The "pattern No. 0" shown in FIG. 17 (D) corresponds to the unit pattern from the rightmost pattern to the fourth pattern from the right in FIG. 17 (A), and the "pattern No. 4" is It corresponds to the unit pattern from the fifth pattern from the right to the eighth pattern from the right in FIG. 17 (A).

図18の変換方法により作成された図17(D)のメジャー7Aは、(1)長さ方向に間隔Xで配置された複数のパターンを含む1行目のカラーパターンと、(2)1行目のカラーパターンから幅方向にずらされ、且つ長さ方向に間隔Xの整数倍(1,2,3…)だけ1行目のカラーパターンからずらされた位置に配置されたN行目(N=2以上の整数)のカラーパターンとを有する。図17(D)の2行目から4行目のカラーパターンは、1行目のカラーパターンから幅方向に長さY1の整数倍(1,2,3…)だけずれている。 The measure 7A of FIG. 17 (D) created by the conversion method of FIG. 18 has (1) a color pattern on the first line including a plurality of patterns arranged at intervals X in the length direction, and (2) one line. The Nth line (N) is shifted from the color pattern of the eyes in the width direction and is shifted from the color pattern of the first line by an integral multiple (1, 2, 3 ...) Of the interval X in the length direction. = 2 or more integers) and has a color pattern. The color patterns in the second to fourth rows of FIG. 17D are deviated from the color pattern in the first row by an integral multiple (1, 2, 3 ...) Of the length Y1 in the width direction.

尚、図17(D)に示すような4行のカラーパターン及び幅方向に1列に配置された受光部9A1〜9A4を使用する場合も、図5と同様の計測処理が実行される。つまり、マイコン3は、受光部9A1〜9A4で読み取ったパターンをN進数(Nは3以上)の値に変換し、当該N進数の値とメジャー7Aの目盛値との関係を規定したデータに基づいて、メジャー7Aの目盛値を算出する。 When using the four rows of color patterns as shown in FIG. 17D and the light receiving units 9A1 to 9A4 arranged in one column in the width direction, the same measurement processing as in FIG. 5 is executed. That is, the microcomputer 3 converts the pattern read by the light receiving units 9A1 to 9A4 into an N-ary value (N is 3 or more), and is based on the data defining the relationship between the N-ary value and the scale value of the measure 7A. Then, the scale value of the measure 7A is calculated.

図19は、図17(A)のメジャー、受光部9A1〜9A4で読み取られる値と、パターンNoと、3進数及び10進数の変換値との対応関係を示す図である。なお、パターンNoは単位パターンの識別番号であり、メジャー7Aの目盛り値に対応する。 FIG. 19 is a diagram showing a correspondence relationship between the values read by the major light receiving units 9A1 to 9A4 of FIG. 17A, the pattern No., and the conversion values of the binary number and the decimal number. The pattern No. is an identification number of the unit pattern and corresponds to the scale value of the measure 7A.

例えば、受光部9A1〜9A4がパターンNo4を読み取る場合、受光部9A1及び9A4が「1」の値を検出し、受光部9A2及び9A3が「0」の値を検出する。図19の受光部9A4〜9A1で読み取られるパターンNo4の値は、図17(D)のパターンNo4に対応する1行目〜4行目のカラーパターンにそれぞれ対応していることが分かる。 For example, when the light receiving units 9A1 to 9A4 read the pattern No4, the light receiving units 9A1 and 9A4 detect the value of "1", and the light receiving units 9A2 and 9A3 detect the value of "0". It can be seen that the values of the patterns No. 4 read by the light receiving units 9A4 to 9A1 of FIG. 19 correspond to the color patterns of the first to fourth rows corresponding to the patterns No. 4 of FIG. 17 (D), respectively.

したがって、図19から、図17(A)の長さ方向に1列に配置された受光部9A1〜9A4で読み取られる値は、図17(D)の幅方向に1列に配置された受光部9A1〜9A4で読み取られる値と同一になることが分かる。 Therefore, from FIG. 19, the values read by the light receiving units 9A1 to 9A4 arranged in a row in the length direction of FIG. 17 (A) are the light receiving units arranged in a row in the width direction of FIG. 17 (D). It can be seen that the values are the same as those read by 9A1 to 9A4.

図20(A)〜(D)は、長さ方向に1列に複数のパターンが配置されたカラーパターンを、幅方向に2列に配置された2つのカラーパターンに変換する方法を示す図である。 20 (A) to 20 (D) are diagrams showing a method of converting a color pattern in which a plurality of patterns are arranged in one row in the length direction into two color patterns arranged in two rows in the width direction. is there.

図20(A)の1行のカラーパターン及び長さ方向に1列に配置された受光部9A1〜9A4を、図20(D)の2行のカラーパターン及び幅方向に2列に配置された受光部9A1〜9A4に変換する場合も、図18と同様の方法が採用される。 The light receiving units 9A1 to 9A4 arranged in one row in the length direction and the color pattern in one row of FIG. 20 (A) were arranged in two columns in the two rows of color pattern and the width direction of FIG. 20 (D). When converting to the light receiving units 9A1 to 9A4, the same method as in FIG. 18 is adopted.

具体的には、図20(A)のカラーパターンをコピーし、1行目のカラーパターンからパターンの幅方向の長さY1の整数倍(ここでは1倍)だけ幅方向にずらして貼り付けることで2行目のカラーパターンを生成する(図18のS101)。図20(B)では、仮想的に幅方向にずらした状態の受光部9A1、9A2のそれぞれを示している。図20(B)に示すように、受光部9A3〜9A4は長さ方向に移動させずに1行目のカラーパターン上に配置されており、受光部9A1〜9A2は幅方向に移動して2行目のカラーパターン上に配置されている。 Specifically, the color pattern of FIG. 20A is copied and pasted by shifting the color pattern of the first line by an integral multiple (here, 1 time) of the length Y1 in the width direction of the pattern. Generates the color pattern of the second line with (S101 in FIG. 18). FIG. 20B shows each of the light receiving units 9A1 and 9A2 in a state of being virtually shifted in the width direction. As shown in FIG. 20B, the light receiving units 9A3 to 9A4 are arranged on the color pattern of the first line without moving in the length direction, and the light receiving parts 9A1 to 9A2 move in the width direction 2 It is arranged on the color pattern of the line.

次に、図20(C)に示すように、2行目のカラーパターンを、長さ方向(図20(C)の左方向)に間隔Xの整数倍だけ1行目のカラーパターンからずらした位置に配置する(図18のS102)。図20の例では、2行目のカラーパターンを1行目のカラーパターンに対して間隔2Xだけずらして配置している。2行目のカラーパターンをずらすのに合わせて、受光部9A1〜9A2のそれぞれは、図20(B)の位置に対して長さ方向(図示左側)に間隔2Xだけにずらして配置される。 Next, as shown in FIG. 20 (C), the color pattern in the second line is shifted from the color pattern in the first line in the length direction (to the left in FIG. 20 (C)) by an integral multiple of the interval X. It is arranged at the position (S102 in FIG. 18). In the example of FIG. 20, the color pattern of the second row is arranged so as to be offset by an interval of 2X with respect to the color pattern of the first row. Each of the light receiving portions 9A1 to 9A2 is arranged so as to be displaced by an interval of 2X in the length direction (left side in the drawing) with respect to the position in FIG.

以上により、図20(A)の状態から、図20(D)に示すような2行のカラーパターンを得ることができる。図20(D)では、2×2に配置された受光部9A1〜9A4を用いてカラーパターンを読み取って、長さを計測する。 From the above, it is possible to obtain a two-line color pattern as shown in FIG. 20 (D) from the state of FIG. 20 (A). In FIG. 20 (D), the color pattern is read by using the light receiving units 9A1 to 9A4 arranged in 2 × 2, and the length is measured.

図21(A)〜(D)は、長さ方向に1列に配置された複数のパターンを有するカラーパターンを、幅方向に2列に配置されたカラーパターンに変換する方法の変形例を示す図である。 21 (A) to 21 (D) show a modified example of a method of converting a color pattern having a plurality of patterns arranged in one row in the length direction into a color pattern arranged in two rows in the width direction. It is a figure.

図21(A)のカラーパターン及び長さ方向に1列に配置された受光部9A1〜9A4を、図21(D)の2行のカラーパターン及び幅方向に2列に配置された受光部9A1〜9A4に変換する場合も、図18と同様の方法が採用される。 The color patterns of FIG. 21 (A) and the light receiving units 9A1 to 9A4 arranged in one column in the length direction are shown in the two rows of color patterns of FIG. 21 (D) and the light receiving units 9A1 arranged in two columns in the width direction. When converting to ~ 9A4, the same method as in FIG. 18 is adopted.

図21(A)〜(D)は、図20(A)〜(D)と比べて、ずらされる受光部9のセットの種類と、2行目のカラーパターンのずらし量とを変更している。 21 (A) to 21 (D) change the type of set of the light receiving unit 9 to be shifted and the amount of shift of the color pattern in the second row as compared with FIGS. 20 (A) to 20 (D). ..

図21(C)では、2行目のカラーパターンを1行目のカラーパターンに対して間隔2Xだけ図示左側にずらしている。これに合わせ、偶数番目の受光部9A2、9A4で1行目のカラーパターンを読み取り、奇数番目の受光部9A1,9A3で2行目のカラーパターンを読み取る。受光部9A2と受光部9A1、受光部9A4と受光部9A3とは、それぞれ幅方向に並んでいる。また、受光部9A1と受光部9A3、受光部9A2と受光部9A4とは、それぞれ長さ方向に間隔2Xだけ離れている。図21(A)〜(D)のその他の処理は、図20(A)〜(D)の処理と同様である。 In FIG. 21C, the color pattern in the second row is shifted to the left side of the drawing by an interval of 2X with respect to the color pattern in the first row. In line with this, the even-numbered light receiving units 9A2 and 9A4 read the color pattern of the first line, and the odd-numbered light receiving units 9A1 and 9A3 read the color pattern of the second line. The light receiving unit 9A2 and the light receiving unit 9A1, the light receiving unit 9A4 and the light receiving unit 9A3 are arranged in the width direction, respectively. Further, the light receiving unit 9A1 and the light receiving unit 9A3, and the light receiving unit 9A2 and the light receiving unit 9A4 are separated from each other by a distance of 2X in the length direction. The other processes of FIGS. 21 (A) to 21 (D) are the same as the processes of FIGS. 20 (A) to 20 (D).

尚、図18と同様に、1行のカラーパターンをずらして計3行のカラーパターンを形成し、長さ方向に1列に配置された受光部9A1〜9A4を2列に配置して3行のカラーパターンを読み取るようにすることもできる。 As in FIG. 18, the color patterns in one row are shifted to form a total of three rows of color patterns, and the light receiving units 9A1 to 9A4 arranged in one column in the length direction are arranged in two columns in three rows. It is also possible to read the color pattern of.

また、第3の実施の形態では、受光部9A1〜9A4のみが使用されているが、第2の実施の形態及び図9と同様に、第3の実施の形態の計測器1が受光部9A1〜9A4に加えて受光部9B1〜9B4及び受光部9C1を備えていてもよい。この場合、第3の実施の形態の計測器1でも、図11の計測処理、図12及び図13の色判定処理、並びに図14の境界判定処理を実行することができる。 Further, in the third embodiment, only the light receiving units 9A1 to 9A4 are used, but as in the second embodiment and FIG. 9, the measuring instrument 1 of the third embodiment is the light receiving unit 9A1. In addition to ~ 9A4, light receiving units 9B1 to 9B4 and light receiving units 9C1 may be provided. In this case, the measuring instrument 1 of the third embodiment can also execute the measurement process of FIG. 11, the color determination process of FIGS. 12 and 13, and the boundary determination process of FIG.

以上説明したように、第3の実施の形態によれば、長さ方向に1列に配置された受光部9A1〜9A4で読み取られる値を変更せずに、受光部9A1〜9A4の配置やカラーパターンの行数を変更することができるので、メジャー7A及び受光部9の幅もしくは計測器1の幅を変更することができる。 As described above, according to the third embodiment, the arrangement and color of the light receiving units 9A1 to 9A4 are not changed without changing the values read by the light receiving units 9A1 to 9A4 arranged in a row in the length direction. Since the number of lines of the pattern can be changed, the width of the measure 7A and the light receiving unit 9 or the width of the measuring instrument 1 can be changed.

尚、本発明は上述した実施の形態に限定されるものではなく、その要旨を逸脱しない範囲内で種々変形して実施することが可能である。 The present invention is not limited to the above-described embodiment, and can be modified in various ways without departing from the gist thereof.

1 長さ計測器、2 読取部、3 マイコン、3A バッファ、4 通信部、5 スイッチ、6 バッテリ、7 格納部、7A メジャー、8 照射部、9,9A1〜9A4,9B1〜9B4,9Bi,9C1 受光部、10 外部端末
1 Length measuring instrument, 2 Reading unit, 3 Microcomputer, 3A buffer, 4 Communication unit, 5 Switch, 6 Battery, 7 Storage unit, 7A measure, 8 Irradiating unit, 9,9A1-9A4,9B1-9B4,9Bi, 9C1 Light receiving part, 10 external terminals

Claims (10)

長さ方向に一定間隔で配置された複数のパターンを含むカラーパターンを有するメジャーから、前記複数のパターンを光学的に読み取り且つ前記長さ方向に前記一定間隔で配置される複数の第1読取手段と、
前記複数の第1読取手段で読み取られたパターンをN進数(Nは3以上)の値に変換する変換手段と、
前記N進数の値と前記メジャーの目盛値との関係を規定したデータに基づいて、前記メジャーの目盛値を算出する算出手段と、
を備えることを特徴とする計測器。
A plurality of first reading means for optically reading the plurality of patterns from a measure having a color pattern including a plurality of patterns arranged at regular intervals in the length direction and arranging the plurality of patterns at regular intervals in the length direction. When,
A conversion means for converting a pattern read by the plurality of first reading means into an N-ary number (N is 3 or more), and a conversion means.
A calculation means for calculating the scale value of the measure based on the data defining the relationship between the N-ary value and the scale value of the measure, and
A measuring instrument characterized by being equipped with.
前記複数の第1読取手段の少なくとも一つから前記一定間隔よりも短い距離だけ前記長さ方向に離れた位置に配置される第2読取手段と、
前記複数の第1読取手段のいずれか一つから一定間隔よりも短い距離だけ、前記第2読取手段に対して前記長さ方向の反対の方向に離れた位置に配置される第3読取手段と、
前記複数の第1読取手段のいずれか一つと、前記第2読取手段と、前記第3読取手段との読み取り結果に基づいて、前記第1読取手段が隣接する二つの前記パターンの境界を読み取っているか否かを判定する判定手段と
を備えていることを特徴とする請求項1に記載の計測器。
A second reading means arranged at a position separated in the length direction by a distance shorter than the fixed interval from at least one of the plurality of first reading means.
With a third reading means arranged at a position shorter than a fixed interval from any one of the plurality of first reading means in a direction opposite to the length direction of the second reading means. ,
Based on the reading results of any one of the plurality of first reading means, the second reading means, and the third reading means, the first reading means reads the boundary between two adjacent patterns. The measuring instrument according to claim 1, further comprising a determination means for determining whether or not the presence is present.
前記第2読取手段は、前記複数の第1読取手段のそれぞれから前記一定間隔よりも短い距離だけ前記長さ方向に離れた位置に配置される複数の第2読取手段を含み、
前記判定手段が、前記第1読取手段が前記複数のパターンの境界を読み取っていると判定した場合に、前記変換手段は前記第1読取手段による読み取り結果に代えて前記複数の第2読取手段の読取結果を使用して長さを計測することを特徴とする請求項2に記載の計測器。
The second reading means includes a plurality of second reading means arranged at positions separated from each of the plurality of first reading means by a distance shorter than the fixed interval in the length direction.
When the determination means determines that the first reading means is reading the boundary of the plurality of patterns, the conversion means replaces the reading result by the first reading means with the plurality of second reading means. The measuring instrument according to claim 2, wherein the length is measured using the reading result.
前記第1読取手段は前記長さ方向に複数列で配置されることを特徴とする請求項1乃至3のいずれか1項に記載の計測器。 The measuring instrument according to any one of claims 1 to 3, wherein the first reading means is arranged in a plurality of rows in the length direction. 前記第1読取手段及び前記第2読取手段は、前記長さ方向に複数列で配置されることを特徴とする請求項2又は3に記載の計測器。 The measuring instrument according to claim 2 or 3, wherein the first reading means and the second reading means are arranged in a plurality of rows in the length direction. 請求項1乃至5のいずれか1項に記載の計測器で読み取られることを特徴とするメジャー。 A measure characterized by being read by the measuring instrument according to any one of claims 1 to 5. 長さ方向に一定間隔で配置された第1カラーパターンと、前記長さ方向に前記一定間隔の整数倍だけ前記第1カラーパターンからずらされ、前記第1カラーパターンの幅方向に配置される第2カラーパターンとを有するメジャーから、前記第1カラーパターンを光学的に読み取る第1読取手段と、
前記第1読取手段から前記幅方向にずらされた位置に配置され、前記第2カラーパターンを光学的に読み取る第2読取手段と、
前記第1読取手段及び前記第2読取手段で読み取られたパターンに基づいて、前記メジャーの目盛値を算出する算出手段と、
を備えることを特徴とする計測器。
A first color pattern arranged at regular intervals in the length direction and a first color pattern shifted from the first color pattern by an integral multiple of the fixed intervals in the length direction and arranged in the width direction of the first color pattern. A first reading means for optically reading the first color pattern from a measure having two color patterns,
A second reading means, which is arranged at a position shifted in the width direction from the first reading means and optically reads the second color pattern,
A calculation means for calculating the scale value of the measure based on the patterns read by the first reading means and the second reading means, and
A measuring instrument characterized by being equipped with.
前記第1読取手段及び前記第2読取手段で読み取られたパターンは、前記第1カラーパターンに含まれる複数のパターンを光学的に読み取り且つ前記長さ方向に前記一定間隔で配置される複数の読取部で読み取られたパターンと同一になることを特徴とする請求項7に記載の計測器。 The patterns read by the first reading means and the second reading means optically read a plurality of patterns included in the first color pattern and a plurality of readings arranged at regular intervals in the length direction. The measuring instrument according to claim 7, wherein the pattern is the same as the pattern read by the unit. 長さ方向に一定間隔で配置された第1カラーパターンと、
前記第1カラーパターンから幅方向にずらされ、且つ前記長さ方向に前記一定間隔の整数倍だけ前記第1カラーパターンからずらされた位置に配置された第2カラーパターンと
を有することを特徴とするメジャー。
The first color pattern arranged at regular intervals in the length direction,
It is characterized by having a second color pattern shifted from the first color pattern in the width direction and arranged at a position shifted from the first color pattern by an integral multiple of the fixed interval in the length direction. Major to do.
長さ方向に一定間隔で配置された第1カラーパターンをコピーし、
前記第1カラーパターンの幅方向にずらされ、且つ前記長さ方向に前記一定間隔の整数倍だけ前記第1カラーパターンからずらされた位置に第2カラーパターンとして前記コピーされた第1カラーパターンを配置し、前記第1カラーパターン及び前記第2カラーパターンを含むメジャーを生成する
ことを特徴とするメジャーの製造方法。
Copy the first color pattern arranged at regular intervals in the length direction,
The copied first color pattern as the second color pattern is placed at a position shifted in the width direction of the first color pattern and shifted from the first color pattern by an integral multiple of the fixed interval in the length direction. A method for manufacturing a measure, which comprises arranging and generating a measure including the first color pattern and the second color pattern.
JP2020189632A 2019-12-12 2020-11-13 Measuring unit, measure, and method for manufacturing measure Pending JP2021096235A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US17/113,556 US11333480B2 (en) 2019-12-12 2020-12-07 Measuring instrument and measure
CN202011456532.8A CN112985525A (en) 2019-12-12 2020-12-11 Measuring instrument, measuring standard and method for producing a measuring standard

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2019224854 2019-12-12
JP2019224854 2019-12-12

Publications (1)

Publication Number Publication Date
JP2021096235A true JP2021096235A (en) 2021-06-24

Family

ID=76431093

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020189632A Pending JP2021096235A (en) 2019-12-12 2020-11-13 Measuring unit, measure, and method for manufacturing measure

Country Status (1)

Country Link
JP (1) JP2021096235A (en)

Similar Documents

Publication Publication Date Title
CN110555327B (en) Measuring instrument, optical reader and optically readable measuring tool
CN101021426B (en) Position measuring arrangement
JP7058983B2 (en) Length measuring instrument, code and code conversion method
CN101900577B (en) Multi-optical axis photoelectronic sensor
JPH04309814A (en) Displacement measuring device
CN105373764A (en) Pixel sensing device capable of sensing in partition mode and operation method thereof
CN102124310A (en) Photometric/colorimetric device
US11415402B2 (en) Measuring instrument
JP6895199B2 (en) Polarity detector for patch cord
CN112985525A (en) Measuring instrument, measuring standard and method for producing a measuring standard
JP2021096235A (en) Measuring unit, measure, and method for manufacturing measure
JP3341024B2 (en) Small sensor device
JP6794995B2 (en) Optical property measuring device
KR101848093B1 (en) Lens meter
CN1987340B (en) Contact type displacement meter
JP2006208330A (en) Detecting sensor
CN113108695A (en) Measuring device, measuring tape and measuring method
JP7200333B2 (en) Code conversion method
JP5034511B2 (en) Photoelectric sensor
CN108627249B (en) Optical sensor and sensor system
JP4824955B2 (en) Detection sensor and detection sensor system
KR102170912B1 (en) Color palette used for digital portrait to define facial skin color, and method and apparatus using the same
CN102480286B (en) Photoswitch
JP3306169B2 (en) Lens meter
JP2002296149A (en) Lens meter