JP2003099278A - Photoelectric sensor system - Google Patents
Photoelectric sensor systemInfo
- Publication number
- JP2003099278A JP2003099278A JP2001292634A JP2001292634A JP2003099278A JP 2003099278 A JP2003099278 A JP 2003099278A JP 2001292634 A JP2001292634 A JP 2001292634A JP 2001292634 A JP2001292634 A JP 2001292634A JP 2003099278 A JP2003099278 A JP 2003099278A
- Authority
- JP
- Japan
- Prior art keywords
- program
- unit
- interface unit
- firmware
- communication
- 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
Links
Landscapes
- Read Only Memory (AREA)
- Stored Programmes (AREA)
- Length Measuring Devices By Optical Means (AREA)
Abstract
(57)【要約】 (修正有)
【課題】 光電センサのファームウェアを、書き換え可
能とする。
【解決手段】 アンプ分離型光電センサのアンプユニッ
トと、データ処理装置との間の通信を中継するインタフ
ェースユニット1とを有し、アンプユニット2には、プ
ログラムメモリとプログラムを実行するCPUが内蔵さ
れている。プログラムメモリ内の書き換え許容領域に
は、センサプログラムが格納されており、書き換え禁止
領域には、通信を介してインタフェースユニット1から
入手したプログラムによりセンサプログラムを書き換え
るブートプログラムが格納されている。インタフェース
ユニット1には、プログラムメモリとファームウェアを
実行するCPUが内蔵されており、プログラムメモリ内
にはデータ処理装置からアンプユニット2への通信中継
機能を定義するプログラムが格納されている。データ処
理装置から送り込んだプログラムにより、アンプユニッ
ト内のセンサプログラムを書き換え可能とした。
(57) [Summary] (With correction) [Problem] To make rewritable firmware of a photoelectric sensor. SOLUTION: An amplifier unit of the amplifier-separated photoelectric sensor and an interface unit 1 for relaying communication between the data processing device and the amplifier unit 2 include a program memory and a CPU for executing a program. ing. The sensor program is stored in the rewrite permitted area in the program memory, and the boot program for rewriting the sensor program by the program obtained from the interface unit 1 through communication is stored in the rewrite prohibited area. The interface unit 1 has a built-in CPU for executing a program memory and firmware. The program memory stores a program that defines a communication relay function from the data processing device to the amplifier unit 2. The sensor program in the amplifier unit can be rewritten by the program sent from the data processing device.
Description
【発明の詳細な説明】Detailed Description of the Invention
【0001】[0001]
【発明の属する技術分野】この発明は、例えば変位セン
サや測長センサ等のように、搭載されたマイクロプロセ
ッサにより投受光を媒介として高度の検出アルゴリズム
を実現する高機能光電センサに好適な光電センサシステ
ムに係り、特に、光電センサのファームウェアを例えば
据付状態のままで書き換え可能とし、ユーザ個々の計測
仕様にきめ細かく対応できるようにした光電センサシス
テムに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a photoelectric sensor suitable for a high-performance photoelectric sensor, such as a displacement sensor or a length measuring sensor, which implements an advanced detection algorithm by means of a built-in microprocessor through light emission and reception. The present invention relates to a system, and more particularly, to a photoelectric sensor system in which firmware of a photoelectric sensor can be rewritten, for example, in an installed state so that the measurement specifications of individual users can be finely met.
【0002】[0002]
【従来の技術】昨今、例えば変位センサや測長センサ等
のように、搭載されたマイクロプロセッサにより投受光
を媒介として高度の検出アルゴリズムを実現する各種の
高機能光電センサが出現している。なお、当業者にはよ
く知られているように、変位センサの計測原理は、図2
9(a)に示されるように、光源からの照射光像を別の
角度から位置検出素子(PSD)に導き、三角測距演算
により物体の高さ等を計測するものである。測長センサ
の計測原理は、図29(b)に示されるように、光源と
受光素子(PD)との間に平行光による光カーテンを張
り、受光素子の受光量出力に基づいて、光カーテンを遮
る物体の長さを計測するものである。2. Description of the Related Art Recently, various high-performance photoelectric sensors, such as displacement sensors and length measuring sensors, have been developed which realize a high-level detection algorithm by means of a built-in microprocessor through light transmission and reception. As well known to those skilled in the art, the measurement principle of the displacement sensor is as shown in FIG.
As shown in FIG. 9A, the irradiation light image from the light source is guided to the position detection element (PSD) from another angle, and the height of the object is measured by the triangulation distance calculation. As shown in FIG. 29 (b), the measurement principle of the length measuring sensor is that a light curtain with parallel light is provided between the light source and the light receiving element (PD), and the light curtain is output based on the light receiving amount output of the light receiving element. It measures the length of an object that intercepts.
【0003】これらの高機能光電センサの据付に際して
は、各ユーザの計測仕様に合わせて様々な調整が必要と
される。調整項目としては、計測アルゴリズム固有の項
目(各種の検出しきい値等)のほかに、計測アルゴリズ
ムの如何に拘わらず共通の項目等が存在する。共通項目
としては、例えば、入力側ノイズフィルタを実現する移
動平均化処理に関する各種の定数(データサンプリング
個数、データサンプリング周期等)、出力側における不
安定動作防止のためのタイマ処理に関する各種の定数
(タイマ時間等)、が挙げられる。When installing these high-performance photoelectric sensors, various adjustments are required according to the measurement specifications of each user. As the adjustment items, in addition to the items specific to the measurement algorithm (various detection thresholds, etc.), there are common items regardless of the measurement algorithm. Common items include, for example, various constants related to moving averaging processing that realizes an input side noise filter (data sampling number, data sampling period, etc.), various constants related to timer processing for preventing unstable operation on the output side ( Timer time, etc.).
【0004】そのため、メーカー側としては、そのよう
なユーザ側の事情を想定して、それらの調整が予想され
る項目に関しては、ある程度の範囲内においてユーザ側
におけるパラメータ変更による対応を可能としている。
一般に、この種のパラメータ変更操作は、センサケース
表面に配置された設定キーや7セグメント表示器等を使
用して行われる。Therefore, on the manufacturer side, in consideration of such a situation on the user side, it is possible to cope with items for which adjustments are expected by changing parameters on the user side within a certain range.
Generally, this kind of parameter changing operation is performed using a setting key, a 7-segment display or the like arranged on the surface of the sensor case.
【0005】[0005]
【発明が解決しようとする課題】昨今、ユーザ側におけ
る制御仕様の複雑高度化により、最適パラメータの値は
ユーザ毎に大きく異なり、全てのユーザにとって満足の
得られるパラメータ変更範囲をメーカ側で予め用意する
ことは困難となりつつある。と言うのは、パラメータに
よっては、変更範囲をあまり大きくとると、センサ計測
仕様を規定するファームウェアのメモリ配置にも影響を
与えるからである。とは言え、全てのユーザに満足の得
られるパラメータ変更範囲を製品の品揃えにより対応す
ることは、他品種少量生産を余儀なくされ、コスト高と
なる。Recently, due to the complicated and sophisticated control specifications on the user side, the optimum parameter values greatly differ from user to user, and the manufacturer prepares in advance a parameter change range that is satisfactory for all users. It is becoming difficult to do. This is because depending on the parameter, if the change range is set too large, it affects the memory layout of the firmware that defines the sensor measurement specifications. However, it is inevitable to produce a small amount of other products, and the cost will be high if the parameter change range that satisfies all users is handled by the product lineup.
【0006】また、この種の高機能光電センサにあって
は、広範なユーザ仕様に対応すべく、様々な補助機能を
予め搭載して、それらをユーザにより選択させる傾向に
あるが、このことによりプロセッサの負荷が増大して応
答速度の低下が将来される。この場合にも、全てのユー
ザに満足の得られる計測仕様を製品の品揃えにより対応
することは、他品種少量生産を余儀なくされ、コスト高
となる。Further, in this kind of high-performance photoelectric sensor, there is a tendency that various auxiliary functions are installed in advance so that the user can select them in order to cope with a wide range of user specifications. The load on the processor will increase and the response speed will decrease in the future. Also in this case, it is inevitable to produce a small amount of other types and to increase the cost, in order to satisfy the measurement specifications satisfying all users by assorting the products.
【0007】さらに、アンプ分離型の光電センサの分野
では、計測原理の異なる様々なセンサヘッドユニットが
新たに開発される傾向にあるが、その場合、そのような
センサヘッドユニットに合わせてその都度新たに専用の
アンプユニットを購入せざるを得ないとすれば、ユーザ
の負担が大きい。Further, in the field of the amplifier-separated type photoelectric sensor, various sensor head units having different measurement principles tend to be newly developed. In that case, new sensor head units are newly added in accordance with such sensor head units. If we had to purchase a dedicated amplifier unit for the above, the burden on the user would be heavy.
【0008】この発明は、上述の問題点に着目してなさ
れたものであり、その目的とするところは、光電センサ
のファームウェアを、例えば据付状態のままでも、書き
換え可能とし、ユーザ個々の計測仕様にきめ細かく対応
できるようにした光電センサシステムを提供することに
ある。The present invention has been made in view of the above problems, and an object thereof is to make it possible to rewrite the firmware of a photoelectric sensor, for example, even in the installed state, and to make measurement specifications for each user. It is an object of the present invention to provide a photoelectric sensor system capable of responding to each of the problems in detail.
【0009】この発明のさらに他の目的並びに作用効果
については、以下の明細書の記載を参照することによ
り、当業者であれば容易に理解されるであろう。Other objects and operational effects of the present invention will be easily understood by those skilled in the art by referring to the following description of the specification.
【0010】[0010]
【課題を解決するための手段】本発明の光電センサシス
テムは、アンプ分離型光電センサのアンプユニットと、
アンプユニットとパソコン等のデータ処理装置との間に
介在されて両者間における通信を中継するインタフェー
スユニットと、を有する。なお、アンプユニットと定義
したのは当業者の通称に習ったものに過ぎない。一般に
この種のアンプユニットは、光電センサのセンサヘッド
ユニットと電気コードおよびコネクタを介して結合され
る。また、アンプユニットのケースは一般的には小型直
方体状であり、二以上のケースをDINレールを介して
一列横隊に連結することがしばしば行われる。また、こ
こで言う光電センサには、変位センサ、測長センサ等の
ように、搭載されたマイクロプロセッサにより投受光を
媒介として高度の検出アルゴリズムを実現する各種の高
機能光電センサが含まれる。A photoelectric sensor system of the present invention comprises an amplifier unit of an amplifier-separated photoelectric sensor,
And an interface unit that is interposed between the amplifier unit and a data processing device such as a personal computer to relay communication between the two. The amplifier unit is defined only by what is commonly known to those skilled in the art. Generally, an amplifier unit of this type is connected to a sensor head unit of a photoelectric sensor via an electric cord and a connector. Further, the case of the amplifier unit is generally a small rectangular parallelepiped shape, and it is often the case that two or more cases are connected to a single row platoon via a DIN rail. Further, the photoelectric sensor referred to here includes various high-performance photoelectric sensors such as a displacement sensor and a length measuring sensor that realize an advanced detection algorithm through light transmission and reception by a built-in microprocessor.
【0011】アンプユニットには、当該アンプユニット
の機能を定義するファームウェアを格納するプログラム
メモリと、プログラムメモリ内のファームウェアを実行
するマイクロプロセッサとを含むCPUが内蔵されてい
る。The amplifier unit has a built-in CPU including a program memory that stores firmware that defines the function of the amplifier unit, and a microprocessor that executes the firmware in the program memory.
【0012】プロクラムメモリ内には、書き換え許容領
域と書き換え禁止領域とが定義されている。ここで、プ
ログラムメモリの素子構成としては、フラッシュメモリ
やEEPROM等が含まれる。A rewrite permitted area and a rewrite prohibited area are defined in the program memory. Here, the element configuration of the program memory includes a flash memory, an EEPROM and the like.
【0013】書き換え許容領域には、センサとしての機
能を定義するファームウェアに相当するセンサプログラ
ムが格納されており、書き換え禁止領域には、通信を介
してインタフェースユニットから入手したプログラムに
よりセンサプログラムの全部又は一部を書き換える機能
を定義するファームウェアに相当するブートプログラム
が格納されている。ここで、『書き換える機能』には、
通追加する機能や削除する機能も含まれる。A sensor program corresponding to firmware defining a function as a sensor is stored in the rewritable area, and all or all of the sensor programs are stored in the rewritable area by a program obtained from the interface unit via communication. The boot program corresponding to the firmware that defines the function of partially rewriting is stored. Here, in the "rewriting function",
It also includes functions to add and delete.
【0014】インタフェースユニットには、当該インタ
フェースユニットの機能を定義するファームウェアを格
納するプログラムメモリと、プログラムメモリ内のファ
ームウェアを実行するマイクロプロセッサとを含むCP
Uが内蔵されている。The interface unit includes a CP including a program memory that stores firmware that defines the function of the interface unit, and a microprocessor that executes the firmware in the program memory.
U is built in.
【0015】プログラムメモリ内には、パソコン等のデ
ータ処理装置からアンプユニットへの通信中継機能を定
義するファームウェアに相当するインタフェースプログ
ラムが格納されている。The program memory stores an interface program corresponding to firmware that defines a communication relay function from a data processing device such as a personal computer to an amplifier unit.
【0016】このような構成によれば、インタフェース
ユニットを経由してパソコン等のデータ処理装置から通
信を介して送り込んだプログラムにより、アンプユニッ
ト内のセンサプログラムの全部又は一部を書き換え可能
となる。したがって、光電センサのファームウェアを、
例えば据付状態のままでも、書き換え可能とし、ユーザ
個々の計測仕様にきめ細かく対応可能となる。With such a configuration, it is possible to rewrite all or part of the sensor program in the amplifier unit by the program sent from the data processing device such as a personal computer via the interface unit via communication. Therefore, the firmware of the photoelectric sensor
For example, rewriting is possible even in the installed state, and it is possible to finely correspond to the measurement specifications of each user.
【0017】本発明の好ましい実施の形態では、インタ
フェースユニットのプログラムメモリ内には、パソコン
等のデータ処理装置から通信を介して入手したプロクラ
ムによりインタフェースプログラムの全部又は一部を書
き換える機能を定義するファームウェアに相当するブー
トプロクラムが格納されており、それにより、インタフ
ェースユニットに拡張性が付与される。すなわち、アン
プユニットのファームウェアが新しく書き換えられたこ
とにより、新規のコマンドが追加されたような場合に
も、インタフェースユニット内のファームウェアをこれ
に対応して書き換えることにより、新たな機能を有する
アンプユニットにも対応が可能となるのである。In a preferred embodiment of the present invention, the firmware defining the function of rewriting all or part of the interface program in the program memory of the interface unit by a program obtained through communication from a data processing device such as a personal computer. Is stored in the boot program, which provides the interface unit with expandability. That is, even if a new command is added due to a new rewrite of the amplifier unit firmware, the firmware in the interface unit can be rewritten correspondingly so that the amplifier unit has a new function. Will be possible.
【0018】本発明の好ましい実施の形態では、インタ
フェースユニットのプログラムメモリ内には、アンプユ
ニットからパソコン等のデータ処理装置への通信中継機
能を定義するファームウェアに相当するインタフェース
プログラムが格納されており、それにより、アンプユニ
ットにて生成された検出値等のデータをインタフェース
ユニットを経由してパソコン等のデータ処理装置へと送
り込み可能とされる。すなわち、これにより、アンプユ
ニット内で生成された検出光量値や判定値等をパソコン
等のデータ処理装置に送り込むことより、パソコンの画
面上に光量値や判定値を時系列的に例えばグラフ表示さ
せて、計測対象物体の監視を行うこと等が可能となるの
である。In a preferred embodiment of the present invention, an interface program corresponding to a firmware defining a communication relay function from the amplifier unit to a data processing device such as a personal computer is stored in the program memory of the interface unit, As a result, the data such as the detection value generated by the amplifier unit can be sent to the data processing device such as a personal computer via the interface unit. That is, as a result, the detected light amount value and the judgment value generated in the amplifier unit are sent to a data processing device such as a personal computer to display the light amount value and the judgment value on the screen of the personal computer in a time series manner, for example, as a graph. Thus, it becomes possible to monitor the object to be measured.
【0019】本発明の好ましい実施の形態では、アンプ
ユニットおよびインタフェースユニットは、それぞれ、
大量一括データ通信に適した第1の通信プロトコルと少
量逐次データ通信に適した第2の通信プロトコルとの双
方をサポートしており、ファームウェアに相当するプロ
グラムの送受信に際しては第1の通信プロトコルを採用
し、コマンドや検出値データの送受信に際しては第2の
通信プロトコルを採用する、こととされる。これによ
り、通信データの種類や通信データ量に応じて最適な通
信プロトコルを採用することで、通信の信頼性と迅速性
とを共に満足させることが出来る。In a preferred embodiment of the present invention, the amplifier unit and the interface unit are respectively
Supports both the first communication protocol suitable for large-volume batch data communication and the second communication protocol suitable for small-quantity sequential data communication, and adopts the first communication protocol when transmitting / receiving a program corresponding to firmware. However, the second communication protocol is adopted when transmitting and receiving the command and the detected value data. As a result, by adopting an optimum communication protocol according to the type of communication data and the amount of communication data, it is possible to satisfy both reliability and speed of communication.
【0020】本発明の好ましい実施の形態にあっては、
アンプユニットにおけるセンサプログラムの書き換え中
にあっては、センサヘッドユニットからの投光を停止す
る、こととされる。これにより、特に、センサヘッドユ
ニットの投光用光源としてレーザダイオードが採用され
たような場合において、センサヘッドの前面を不用意に
覗き込んだことによる、眼の損傷の虞を未然に防止する
ことができる。In a preferred embodiment of the present invention,
It is said that the light emission from the sensor head unit is stopped during the rewriting of the sensor program in the amplifier unit. Thereby, in particular, when a laser diode is used as a light source for projecting light of the sensor head unit, it is possible to prevent the risk of eye damage due to careless looking into the front surface of the sensor head. You can
【0021】本発明の好ましい実施の形態では、アンプ
ユニットのケースとインタフェースユニットのケースと
は並列に配置可能となされ、かつ両ユニットが並列に配
置されている状態において、アンプユニットからセンサ
ヘッドユニットへ向かう電気コードの引き出し方向とイ
ンタフェースユニットからRS232C等のパソコン対
応汎用コネクタへ向かう電気コードの引き出し方向とは
同一とされ、さらに、インタフェースユニットのユーザ
と対面する上面には通信状態を示す表示パネルが配置さ
れる。これにより、ケースから電気コードを引き出して
その先端にパソコン用コネクタ(RS232Cコネクタ
等)を取り付けていることから、インタフェースユニッ
トのケースに大型のコネクタを内蔵することが不要とな
り、ケースの小型化を維持して、アンプユニットとの隣
接結合可能性を担保できる。加えて、このような構成を
採用すると、制御盤内等にDINレール等を介して複数
のユニットを整列配置した場合にも、電気コードの引き
出し方向が規則的なものとなり、結束の際の電気コード
の取り扱いが容易となる他、ケースの上面が空き領域と
なるため、ここに表示パネルを配置することで、通信動
作表示の視認性を向上させることができる。In a preferred embodiment of the present invention, the case of the amplifier unit and the case of the interface unit can be arranged in parallel, and in a state where both units are arranged in parallel, from the amplifier unit to the sensor head unit. The direction of pulling out the electric cord and the direction of pulling out the electric cord from the interface unit to the general-purpose connector for personal computer such as RS232C are the same, and a display panel showing the communication state is arranged on the upper surface of the interface unit facing the user. To be done. As a result, since the electric cord is pulled out from the case and the connector for the personal computer (RS232C connector, etc.) is attached to the tip of the electric cord, it is not necessary to incorporate a large-sized connector in the case of the interface unit, and the miniaturization of the case is maintained. As a result, the possibility of adjacent connection with the amplifier unit can be secured. In addition, if such a configuration is adopted, even when a plurality of units are aligned in a control panel or the like via a DIN rail or the like, the electric cords are pulled out in a regular direction, and the electric cords used for bundling In addition to facilitating the handling of the code, since the upper surface of the case is an empty area, the visibility of the communication operation display can be improved by disposing the display panel here.
【0022】本発明のアンプユニットは、アンプ分離型
光電センサのアンプユニットであって、当該アンプユニ
ットの機能を定義するファームウェアを格納するプログ
ラムメモリと、プログラムメモリ内のファームウェアを
実行するマイクロプロセッサとを含むCPUが内蔵され
ている。The amplifier unit of the present invention is an amplifier unit of an amplifier-separated photoelectric sensor, and includes a program memory that stores firmware that defines the function of the amplifier unit, and a microprocessor that executes the firmware in the program memory. It includes a built-in CPU.
【0023】プロクラムメモリ内には、書き換え許容領
域と書き換え禁止領域とが定義されており、書き換え許
容領域には、センサとしての機能を定義するファームウ
ェアに相当するセンサプログラムが格納されており、書
き換え禁止領域には、通信を介して入手したプログラム
によりセンサプログラムの全部又は一部を書き換える機
能を定義するファームウェアに相当するブートプログラ
ムが格納されている。それにより、パソコン等のデータ
処理装置から通信を介して送り込んだプログラムによ
り、アンプユニット内のセンサプログラムの全部又は一
部を書き換え可能とされる。In the program memory, a rewritable area and a rewritable area are defined. In the rewritable area, a sensor program corresponding to a firmware that defines a function as a sensor is stored, and the rewrite is prohibited. The area stores a boot program corresponding to firmware that defines the function of rewriting all or part of the sensor program by the program obtained through communication. As a result, all or part of the sensor program in the amplifier unit can be rewritten by the program sent from a data processing device such as a personal computer via communication.
【0024】本発明アンプユニットの好ましい実施形態
にあっては、アンプユニットにおけるセンサプログラム
の書き換え中にあっては、センサヘッドユニットからの
投光を停止する。In a preferred embodiment of the amplifier unit of the present invention, light emission from the sensor head unit is stopped during rewriting of the sensor program in the amplifier unit.
【0025】本発明のインタフェースユニットは、アン
プユニットとパソコン等のデータ処理装置との間に介在
されて両者間における通信を中継する機能を有する。ま
た、その内部には、当該インタフェースユニットの機能
を定義するファームウェアを格納するプログラムメモリ
と、プログラムメモリ内のファームウェアを実行するマ
イクロプロセッサとを含むCPUが内蔵されている。The interface unit of the present invention is interposed between the amplifier unit and a data processing device such as a personal computer and has a function of relaying communication between the two. In addition, a CPU that includes a program memory that stores firmware that defines the function of the interface unit and a microprocessor that executes the firmware in the program memory is incorporated therein.
【0026】加えて、インタフェースユニットのプログ
ラムメモリ内には、パソコン等のデータ処理装置から通
信を介して入手したプロクラムによりインタフェースプ
ログラムの全部又は一部を書き換える機能を定義するフ
ァームウェアに相当するブートプロクラムが格納されて
いる。それにより、アンプユニットの構成に応じた拡張
性が付与されている。In addition, in the program memory of the interface unit, there is a boot program corresponding to firmware that defines a function of rewriting all or part of the interface program by the program obtained through communication from a data processing device such as a personal computer. It is stored. Thereby, expandability according to the configuration of the amplifier unit is given.
【0027】本発明インタフェースユニットの好ましい
実施の形態にあっては、プログラムメモリ内には、アン
プユニットからパソコン等のデータ処理装置への通信中
継機能を定義するファームウェアに相当するインタフェ
ースプログラムが格納されており、それにより、アンプ
ユニットにて生成された検出値等のデータをインタフェ
ースユニットを経由してパソコン等のデータ処理装置へ
と送り込み可能とされる。In a preferred embodiment of the interface unit of the present invention, the program memory stores an interface program corresponding to firmware that defines a communication relay function from the amplifier unit to a data processing device such as a personal computer. Therefore, the data such as the detection value generated by the amplifier unit can be sent to the data processing device such as a personal computer through the interface unit.
【0028】本発明インタフェースユニットの好ましい
実施の形態にあっては、大量一括データ通信に適した第
1の通信プロトコルと少量逐次データ通信に適した第2
の通信プロトコルとの双方をサポートしており、ファー
ムウェアに相当するプログラムの送受信に際しては第1
の通信プロトコルを採用し、コマンドや検出値データの
送受信に際しては第2の通信プロトコルを採用する、こ
ととされる。In a preferred embodiment of the interface unit of the present invention, a first communication protocol suitable for large-quantity batch data communication and a second communication protocol suitable for small-quantity sequential data communication.
It supports both the communication protocols of
It is said that the second communication protocol is adopted when transmitting and receiving the command and the detection value data.
【0029】本発明インタフェースユニットの好ましい
実施の形態にあっては、アンプユニットと同一規格のケ
ースを有し、かつインタフェースユニットからRS23
2C等のパソコン対応汎用コネクタへ向かう電気コード
のケースからの引き出し方向は、アンプユニットからセ
ンサヘッドユニットへ向かう電気コードの引き出し方向
と同一とされ、さらに、ユーザと対面するケース上面に
は通信状態を示す表示パネルが配置されている。In a preferred embodiment of the interface unit of the present invention, it has a case of the same standard as the amplifier unit, and the interface unit is RS23.
The direction of pulling out the electric cord from the case toward the general-purpose connector for personal computer such as 2C is the same as the direction of pulling out the electric cord from the amplifier unit to the sensor head unit, and the upper surface of the case facing the user has a communication state. The display panel shown is arranged.
【0030】以上述べた本発明は、光電センサにみなら
ず、その他のアンプ分離型センサ(例えば、近接セン
サ、超音波センサ等)にも広く応用が可能である。The present invention described above can be widely applied not only to the photoelectric sensor but also to other amplifier separation type sensors (for example, proximity sensor, ultrasonic sensor, etc.).
【0031】[0031]
【発明の実施の形態】以下に、この発明の好適な一実施
形態を添付図面を参照しながら詳細に説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A preferred embodiment of the present invention will be described in detail below with reference to the accompanying drawings.
【0032】本発明が適用されたインタフェースユニッ
トとアンプユニットとの隣接結合状態を示す斜視図が図
1に示されている。同図に示されるように、インタフェ
ースユニット1とアンプユニット2とは、例えばDIN
レール等を介して、隣接結合状態で一列に取り付けられ
る。FIG. 1 is a perspective view showing a state in which an interface unit and an amplifier unit to which the present invention is applied are connected adjacent to each other. As shown in the figure, the interface unit 1 and the amplifier unit 2 are, for example, DIN
It is attached in a line in a state of being adjacently connected via a rail or the like.
【0033】この例では、インタフェースユニット1の
ケース10とアンプユニット2のケース20とは同一の
規格を有する。それらのケース10,20はDINレー
ルと直交する方向へやや細長い直方体形状の形態を有す
る。すなわち、インタフェースユニットのケース10に
は、前面10Aと、後面10Bと、左側面10Cと、右
側面10Dと、上面10Eと、底面10Fとが設けら
れ、六面体の箱状形態を有する。In this example, the case 10 of the interface unit 1 and the case 20 of the amplifier unit 2 have the same standard. The cases 10 and 20 have a rectangular parallelepiped shape slightly elongated in the direction orthogonal to the DIN rail. That is, the case 10 of the interface unit is provided with the front surface 10A, the rear surface 10B, the left side surface 10C, the right side surface 10D, the top surface 10E, and the bottom surface 10F, and has a hexahedral box shape.
【0034】同様に、アンプユニットのケース20に
は、前面20Aと、後面20Bと、左側面20Cと、右
側面20Dと、上面20Eと、底面20Fとが設けら
れ、六面体の形態を有する。Similarly, the case 20 of the amplifier unit is provided with a front surface 20A, a rear surface 20B, a left side surface 20C, a right side surface 20D, a top surface 20E and a bottom surface 20F, and has a hexahedral shape.
【0035】アンプユニット2の前面20Fからは、電
気コード7が引き出されている。この電気コード7に
は、入力線、出力線、電源線等が含まれている。入力線
はアンプユニット2に対して各種の指令を外部から与え
るためのものであり、出力線はアンプユニット2の内部
で生成されたスイッチング出力やアナログ出力等を外部
へ出力するためのものであり、電源線はアンプユニット
2の内部回路に対する電源を供給すると共に、後述する
隣接結合コネクタ24を介してインタフェースユニット
1に対して電源を分配するためのものでもある。An electric cord 7 is pulled out from the front surface 20F of the amplifier unit 2. The electric cord 7 includes an input line, an output line, a power line, and the like. The input line is for giving various commands to the amplifier unit 2 from the outside, and the output line is for outputting switching output, analog output, etc. generated inside the amplifier unit 2 to the outside. The power supply line is for supplying power to the internal circuit of the amplifier unit 2 and for distributing power to the interface unit 1 via the adjacent coupling connector 24 described later.
【0036】アンプユニット2の後面20Bから引き出
された電気コード5には後述するセンサヘッドユニット
7との間で信号をやりとりする各種の信号線が含まれて
いる。これらの信号線の中には、センサヘッドユニット
7において生成された受光光量信号等も含まれている。
この電気コード5の先端には丸型コネクタ6が取り付け
られている。この丸型コネクタ6は、図示しないセンサ
ヘッドユニット7から引き出された電気コードの先端に
取り付けられた同様な丸型コネクタ9と結合される。The electric cord 5 pulled out from the rear surface 20B of the amplifier unit 2 includes various signal lines for exchanging signals with the sensor head unit 7 described later. These signal lines also include a received light amount signal generated in the sensor head unit 7.
A circular connector 6 is attached to the tip of the electric cord 5. The circular connector 6 is connected to a similar circular connector 9 attached to the tip of an electric cord drawn from a sensor head unit 7 (not shown).
【0037】変位センサ用のセンサヘッドユニットの斜
視図が図2に示されている。同図に示されるセンサヘッ
ドユニット7は、直方体状のケース70を有する。ケー
ス70の前面側には投受光窓71が設けられ、また後面
側からは電気コード8が引き出され、その先端には丸型
コネクタ9が取り付けられている。そして、この丸型コ
ネクタ9と先ほどの丸型コネクタ6とが結合される。こ
のようにアンプ分離型の光電センサにあっては、丸型コ
ネクタ9と丸型コネクタ6とを着脱することによって、
必要に応じ、アンプユニット2とセンサヘッドユニット
7とを分離することができる。A perspective view of a sensor head unit for a displacement sensor is shown in FIG. The sensor head unit 7 shown in the figure has a case 70 having a rectangular parallelepiped shape. A light projecting / receiving window 71 is provided on the front surface side of the case 70, an electric cord 8 is pulled out from the rear surface side, and a round connector 9 is attached to the tip thereof. Then, the round connector 9 and the above-mentioned round connector 6 are coupled. In this way, in the amplifier-separated photoelectric sensor, by attaching and detaching the circular connector 9 and the circular connector 6,
If necessary, the amplifier unit 2 and the sensor head unit 7 can be separated.
【0038】再び図1に戻って、インタフェースユニッ
ト1の後面10Bからは電気コード3が引き出され、こ
の電気コード3の先端にはパソコン側の該当するコネク
タと接続されるRS−232Cコネクタ4が取り付けら
れている。電気コード3内には、インタフェースユニッ
ト1とパソコンPCとの間でデータのやりとりを行うた
めの通信線が含まれている。Returning to FIG. 1 again, the electric cord 3 is pulled out from the rear surface 10B of the interface unit 1, and the RS-232C connector 4 connected to the corresponding connector on the personal computer side is attached to the tip of the electric cord 3. Has been. The electric cord 3 includes a communication line for exchanging data between the interface unit 1 and the personal computer PC.
【0039】また、図から明らかなように、インタフェ
ースユニット1のケース10のサイズは、RS−232
Cコネクタ4のサイズと比較して明らかなように、十分
小型に形成されている。As is apparent from the figure, the size of the case 10 of the interface unit 1 is RS-232.
As is clear from the comparison with the size of the C connector 4, it is formed in a sufficiently small size.
【0040】インタフェースユニット1の上面には開閉
可能な透明カバー13が設けられている。また、この透
明カバー13の下には、当該インタフェースユニット1
における通信状態を表示するための表示パネル14が配
置されている。A transparent cover 13 which can be opened and closed is provided on the upper surface of the interface unit 1. The interface unit 1 is provided under the transparent cover 13.
A display panel 14 for displaying the communication state in is arranged.
【0041】表示パネル14の一例が図7に示されてい
る。同図に示されるように、この表示パネル14上に
は、パソコンPCとのシリアル通信に関する動作表示灯
であるビジー表示灯14A、エラー表示灯14B、セン
サ(アンプユニット2)との通信における動作表示灯で
あるビジー表示灯14C、エラー表示灯14D、動作電
源のオン/オフ状態を示す電源表示灯14Eが設けられ
ている。An example of the display panel 14 is shown in FIG. As shown in the figure, on the display panel 14, a busy display lamp 14A, an error display lamp 14B, which are operation display lamps related to serial communication with the personal computer PC, and an operation display in communication with the sensor (amplifier unit 2). There are provided a busy indicator lamp 14C, an error indicator lamp 14D, and a power indicator lamp 14E that indicates an ON / OFF state of operating power.
【0042】図1〜図6を参照して明らかなように、イ
ンタフェースユニットのケース10は比較的小型に構成
されてはいるものの、ユーザと対面するその上面10E
を有効に活用して、ここに通信状態に関する表示パネル
14を配置しているのである。このような表示パネル1
4の配置を可能としているのは、ケース10内にRS−
232Cコネクタ4を無理やり組み込むことなく、この
RS−232Cコネクタ4をケース10から引き出され
た電気コード3の先端に取り付けているからである。こ
のような構成を採用すると、RS−232Cコネクタ4
に無理な力がかかったとしても、そのような力が電気コ
ード3によって干渉されるため、本体ケース10に損傷
を与えることがない。逆に、インタフェースユニット1
のケース10にRS−232Cコネクタ4を固定的に取
り付けたとすれば、コネクタの接続離脱作業に際し、ケ
ース10側に無理な力がかかって、ケースを破損させた
り、コネクタの接続不良を発生させたりする虞れがあ
る。As is apparent from FIGS. 1 to 6, although the case 10 of the interface unit has a relatively small size, its upper surface 10E facing the user is shown.
The display panel 14 relating to the communication state is arranged here by effectively utilizing. Such a display panel 1
4 can be arranged by RS- in the case 10.
This is because the RS-232C connector 4 is attached to the tip of the electric cord 3 pulled out from the case 10 without forcibly incorporating the 232C connector 4. If such a configuration is adopted, the RS-232C connector 4
Even if an unreasonable force is applied to the main body case 10, the electric cord 3 interferes with such force, so that the main body case 10 is not damaged. Conversely, the interface unit 1
Assuming that the RS-232C connector 4 is fixedly attached to the case 10, the case 10 may be unnecessarily applied with force during connection / disconnection work of the connector, resulting in damage to the case or connection failure of the connector. There is a risk of
【0043】インタフェースユニット1のケース10及
びアンプユニット2のケース20の左右両側面には、図
4〜図6に示されるように、スライド蓋12及びスライ
ド蓋22が設けられている。これらのスライド蓋12,
22を開くと、その内部にはコネクタ窓23が臨み、そ
の窓の中に隣接結合コネクタ24が露出する。従って、
インタフェースユニット1とアンプユニット2とは、相
対向する側面に露出する隣接結合コネクタ24同士を噛
み合わせることによって、電気的並びに機械的に結合さ
れる。尚、それらユニット1,2全体の固定は図3に示
されるようにDINレールDLを介して行われることは
言うまでもない。As shown in FIGS. 4 to 6, slide lids 12 and 22 are provided on the left and right side surfaces of the case 10 of the interface unit 1 and the case 20 of the amplifier unit 2, respectively. These slide lids 12,
When the opening 22 is opened, the connector window 23 is exposed inside, and the adjacent coupling connector 24 is exposed in the window. Therefore,
The interface unit 1 and the amplifier unit 2 are electrically and mechanically coupled to each other by engaging adjacent coupling connectors 24 exposed on opposite side surfaces. Needless to say, the fixing of the units 1 and 2 is performed via the DIN rail DL as shown in FIG.
【0044】インタフェースユニット1とアンプユニッ
ト2との隣接結合状態を示す平面図が図3に示されてい
る。同図に示されるように、それら2つのユニット1,
2を隣接結合させると、インタフェースユニット1の後
面10Bから引き出された電気コード3と、アンプユニ
ット2の後面20Bから引き出された電気コード5とは
同一の方向へ引き出される結果となる。他方、アンプユ
ニット2の前面から引き出された電気コードは、DIN
レールDLと直交する方向で電気コード3,5とは反対
の方向へと延びる結果となる。そのため、これらのユニ
ット1,2を制御盤の盤面等にDINレールDLを介し
て取り付ける場合においても、電気コード3,5,7が
機能別に整理されて引き出される結果、その取り扱いが
簡便なものとなり、多数のユニットを並列に配置する場
合にあっては、その結束作業が容易となる。FIG. 3 is a plan view showing a state in which the interface unit 1 and the amplifier unit 2 are adjacently connected to each other. As shown in the figure, these two units 1,
When the two are adjacently coupled, the electric cord 3 pulled out from the rear surface 10B of the interface unit 1 and the electric cord 5 pulled out from the rear surface 20B of the amplifier unit 2 are pulled out in the same direction. On the other hand, the electrical cord pulled out from the front of the amplifier unit 2 is DIN
As a result, it extends in the direction opposite to the electric cords 3 and 5 in the direction orthogonal to the rail DL. Therefore, even when these units 1 and 2 are mounted on the surface of the control panel or the like via the DIN rail DL, the electric cords 3, 5, and 7 are arranged and pulled out according to their functions, and the handling thereof is simplified. When a large number of units are arranged in parallel, the bundling work becomes easy.
【0045】尚、図1〜図6において、11はDINレ
ールDLとの結合を行うためのDINレール嵌合溝であ
る。1 to 6, reference numeral 11 denotes a DIN rail fitting groove for connecting with the DIN rail DL.
【0046】次に、図8,図27,図28を参照しなが
ら、インタフェースユニット1並びにアンプユニット2
の電気的なハードウェア構成について説明する。Next, referring to FIGS. 8, 27 and 28, the interface unit 1 and the amplifier unit 2
The electrical hardware configuration of will be described.
【0047】センサシステム全体のハードウェア構成図
が図8に示されている。同図に示されるように、このセ
ンサシステムには、例えばノート型のパソコン801
と、1台のインタフェースユニット1と、このインタフ
ェースユニット1に順次接続された2台のアンプユニッ
ト2,2とが含まれている。A hardware configuration diagram of the entire sensor system is shown in FIG. As shown in the figure, this sensor system includes, for example, a notebook personal computer 801.
It includes one interface unit 1 and two amplifier units 2 and 2 which are sequentially connected to the interface unit 1.
【0048】パソコン801とインタフェースユニット
1とは、先に説明したように、RS−232Cコネクタ
4並びに電気コード3を介して結合される。図8におい
て、符号CCと記されているのが、図1〜図6に示され
た電気コード3に相当する。The personal computer 801 and the interface unit 1 are connected to each other via the RS-232C connector 4 and the electric cord 3 as described above. In FIG. 8, the symbol CC is equivalent to the electric cord 3 shown in FIGS.
【0049】インタフェースユニット1内にはドライバ
IC802とCPU803とが含まれている。ドライバ
IC802はRS232C通信をサポートする。CPU
803には、当該インタフェースユニットの機能を定義
するファームウェアを格納するプログラムメモリと、プ
ログラムメモリ内のファームウェアを実行するマイクロ
プロセッサとが含まれている。The interface unit 1 includes a driver IC 802 and a CPU 803. The driver IC 802 supports RS232C communication. CPU
803 includes a program memory that stores firmware that defines the function of the interface unit, and a microprocessor that executes the firmware in the program memory.
【0050】このインタフェースユニット1のより詳細
な内部構成を示す回路ブロック図が図27に示されてい
る。同図に示されるように、インタフェースユニット1
内には、通信用CPU(M16C/62)2701と、
アンプユニット側回路ボード2702と、パソコンとの
通信を実現するためのRS−232Cドライバ2703
と、電源リセット回路2705と、表示用LEDグルー
プ2706と、電源回路2707と、が含まれている。
また、アンプ側の回路ボード2702には、アンプとの
接続コネクタ24と、電流の流入防止回路(電源非投入
時の)2702aとが含まれている。尚、LEDグルー
プ2706は、アンプユニット2のケース上面20Eに
配置される表示パネルに相当する。FIG. 27 is a circuit block diagram showing a more detailed internal structure of the interface unit 1. As shown in the figure, the interface unit 1
A communication CPU (M16C / 62) 2701 and
RS-232C driver 2703 for realizing communication between the amplifier unit side circuit board 2702 and the personal computer
A power supply reset circuit 2705, a display LED group 2706, and a power supply circuit 2707.
The circuit board 2702 on the amplifier side includes a connector 24 for connecting to the amplifier and a current inflow prevention circuit 2702a (when the power is off). The LED group 2706 corresponds to a display panel arranged on the case upper surface 20E of the amplifier unit 2.
【0051】次に、アンプユニット2の内部構成につい
て説明する。アンプユニット2の内部には、当該アンプ
ユニットの機能を定義するファームウェアを格納するプ
ログラムメモリと、プログラムメモリ内のファームウェ
アを実行するマイクロプロセッサとを含むCPU80
4,805が含まれている。これらのCPU804,8
05は、インタフェースユニット1内にCPU803か
ら延びるシリアルバスラインBS0,BS1を介して結
ばれている。加えて、インタフェースユニット1内のC
PU803と、シリアルバスラインBS0,BS1に結
ばれたアンプユニット2内のCPU804,805と
は、バケツリレー方式でシリアルにデータを転送するシ
リアル伝送ラインBBによっても結ばれている。Next, the internal structure of the amplifier unit 2 will be described. Inside the amplifier unit 2, a CPU 80 including a program memory that stores firmware that defines the function of the amplifier unit, and a microprocessor that executes the firmware in the program memory.
4,805 are included. These CPUs 804, 8
05 is connected to the interface unit 1 via serial bus lines BS0 and BS1 extending from the CPU 803. In addition, C in the interface unit 1
The PU 803 and the CPUs 804 and 805 in the amplifier unit 2 connected to the serial bus lines BS0 and BS1 are also connected to each other by a serial transmission line BB that serially transfers data by a bucket brigade method.
【0052】シリアルバスラインBS0,BS1は主と
してコマンドやプログラムデータの送受信等に使用され
るのに対し、バケツリレー方式でデータを伝送する伝送
ラインBBは、アンプユニット内で生成された光量デー
タ、判定値、計測データ等を各アンプユニットからイン
タフェースユニット1へと垂れ流し的に送り出さすのに
使用される。尚、このラインBBを使用したデータ転送
に際しては、ハンドシェイク処理が併用される。The serial bus lines BS0 and BS1 are mainly used for transmitting and receiving commands and program data, etc., while the transmission line BB for transmitting data by the bucket brigade method is used for the light quantity data generated in the amplifier unit and for judging. It is used to send out values, measurement data, etc. from each amplifier unit to the interface unit 1 in a continuous manner. It should be noted that handshake processing is also used when data is transferred using this line BB.
【0053】アンプユニットの内部回路のより詳細な構
成が図28のブロック図が示されている。同図に示され
るように、アンプユニット2の内部には、CPU280
1と、電流の流入防止回路(電源非投入時の)2802
と、電流の流入防止回路(電源非投入時の)2803
と、電源リセット回路2806と、EEPROM1 2
807と、アナログ出力回路2808と、外部出力回路
2809と、外部入力回路2810と、外部入出力線2
811とが含まれている。A more detailed structure of the internal circuit of the amplifier unit is shown in the block diagram of FIG. As shown in the figure, the CPU 280 is installed inside the amplifier unit 2.
1 and current inflow prevention circuit (when power is off) 2802
And current inflow prevention circuit (when power is off) 2803
Power supply reset circuit 2806 and EEPROM 12
807, analog output circuit 2808, external output circuit 2809, external input circuit 2810, and external input / output line 2
811 and are included.
【0054】先に述べたように、CPU2801は、当
該アンプユニットの機能を定義するファームウェアを格
納するプログラムメモリと、プログラムメモリ内のファ
ームウェアを実行するマイクロプロセッサとを含んでい
る。アナログ出力回路2808は、当該アンプユニット
2内で生成された各種のアナログ出力を外部入出力線2
811を介して外部へと出力するためのものである。As described above, the CPU 2801 includes a program memory that stores the firmware that defines the function of the amplifier unit and a microprocessor that executes the firmware in the program memory. The analog output circuit 2808 outputs various analog outputs generated in the amplifier unit 2 to the external input / output line 2
It is for outputting to the outside via 811.
【0055】外部出力回路2809は、当該アンプユニ
ットで生成されたHIGH,PASS,LOW等の判定
出力を外部入出力線2811へと出力する。The external output circuit 2809 outputs to the external input / output line 2811 the determination output such as HIGH, PASS, or LOW generated by the amplifier unit.
【0056】外部入力回路2810は、外部入出力線2
811を介して到来する各種の指令を、CPU2801
へ入力するために使用される。これらの指令には、タイ
ミング指令、リセット指令、零リセット指令等が含まれ
ている。The external input circuit 2810 is connected to the external input / output line 2
Various commands arriving via 811 are sent to the CPU 2801.
Used to fill in. These commands include timing commands, reset commands, zero reset commands, and the like.
【0057】次に、インタフェースユニット1並びにア
ンプユニット2のソフトウェア構成について説明する。Next, the software configurations of the interface unit 1 and the amplifier unit 2 will be described.
【0058】インタフェースユニットのソフトウェア構
成を示すフローチャート(その1)が図9に示されてい
る。同図に示されるように、センサの接続処理にあって
は、まず、インタフェースユニット1においては、通信
割り込み待ちの状態となる(ステップ901)。ここ
で、通信割り込み待ちには、PC(パソコン)からの通
信受信待ちと、センサからの垂れ流しデータ受信待ちと
の双方の割り込み待機処理が含まれる。尚、ここでセン
サからの垂れ流しデータとは、先に図8を参照して説明
したデータラインBBを介して行われるものであり、ア
ンプユニット2を構成するCPU804,805では、
バケツリレー方式により順次各チャンネルのアンプユニ
ット2で生成された計測データを、下位側から上位側へ
と向けて垂れ流しており、これがインタフェースユニッ
ト1の受信ポートRxD1へ到来するのである。このデ
ータの到来は、割り込みポートINT0への割り込み信
号によって割り込みが可能となる。FIG. 9 is a flow chart (No. 1) showing the software configuration of the interface unit. As shown in the figure, in the sensor connection process, the interface unit 1 first enters a communication interrupt waiting state (step 901). Here, the waiting for communication interrupt includes both waiting for communication from the PC (personal computer) and waiting for reception of data flowing from the sensor. Note that the data flowing from the sensor here is data that is performed via the data line BB described above with reference to FIG. 8, and in the CPUs 804 and 805 that configure the amplifier unit 2,
The measurement data sequentially generated by the amplifier unit 2 of each channel by the bucket brigade method is flowed from the lower side to the upper side, and this reaches the reception port RxD1 of the interface unit 1. The arrival of this data can be interrupted by an interrupt signal to the interrupt port INT0.
【0059】一方、PC(パソコン)801からのデー
タの到来は、ドライバIC802を介して受信ポートR
xD1で受信される。逆にPC(パソコン)801への
データ送信は送信ポートTxD1からドライバIC80
2を介して行われる。On the other hand, the arrival of data from the PC (personal computer) 801 is received by the receiving port R via the driver IC 802.
It is received at xD1. Conversely, data transmission to the PC (personal computer) 801 is from the transmission port TxD1 to the driver IC 80.
2 via.
【0060】この状態において、上位(PC,PDA)
からの受信割り込みが確認されると、次いで受信データ
の解析が行われる(ステップ902)。その後、受信デ
ータ解析結果に基づいて、その受信されたデータが、フ
ラッシュ書き換えに関する命令か否かの判定が行われる
(ステップ903)。ここで、『フラッシュ』とあるの
は、当該インタフェースユニットの機能を定義するファ
ームウェアを格納するプログラムメモリであるフラッシ
ュメモリを指している。In this state, the upper level (PC, PDA)
When the reception interrupt from is confirmed, the received data is then analyzed (step 902). After that, it is determined whether the received data is a command related to flash rewriting based on the received data analysis result (step 903). Here, "flash" refers to a flash memory that is a program memory that stores firmware that defines the function of the interface unit.
【0061】ここで、受信データを解析した結果(ステ
ップ902)、それがフラッシュ書き換えに関する命令
と判定されると(ステップ903YES)、図10のフ
ローチャートに進んで、そのフラッシュ書き換えに関す
る命令が、インタフェースユニット内部アンプソフトの
書き換え命令であるか否かの判定が行われる(ステップ
1001)。Here, as a result of analyzing the received data (step 902), if it is determined that the command is flash rewriting (YES in step 903), the process proceeds to the flowchart of FIG. It is determined whether the command is a rewriting command for the internal amplifier software (step 1001).
【0062】ここで、インタフェースユニット内部アン
プソフト書き換え命令ではないと判定されると(ステッ
プ1001NO)、続いて書き換え対象がインタフェー
スユニットか否かの判定が行われる(ステップ100
3)。ここで、書き換え対象がインタフェースユニット
であると判定されると(ステップ1003YES)、イ
ンタフェースユニット表示灯を全て点灯して、インタフ
ェースユニットのファームウェアを書き換えている旨を
ユーザに示唆するための処理を実行する(ステップ10
06)。If it is determined that the instruction is not the interface unit internal amplifier software rewriting command (step 1001 NO), then it is determined whether the rewriting target is the interface unit (step 100).
3). Here, if it is determined that the rewriting target is the interface unit (step 1003 YES), all the interface unit indicators are turned on, and processing for indicating to the user that the firmware of the interface unit is being rewritten is executed. (Step 10
06).
【0063】続いて、インタフェースユニットフラッシ
ュ書き換えシーケンス(PC→IFU)が実行され(ス
テップ1007)、実行完了と共に通常処理への復帰が
行われる(ステップ1008)。Subsequently, the interface unit flash rewriting sequence (PC → IFU) is executed (step 1007), and when the execution is completed, the normal processing is restored (step 1008).
【0064】インタフェースユニット内のフラッシュメ
モリ書き換え時におけるパソコンとインタフェースユニ
ットとの間の処理シーケンス図(その1〜その3)が図
15〜図17に示されている。15 to 17 are processing sequence diagrams (No. 1 to No. 3) between the personal computer and the interface unit at the time of rewriting the flash memory in the interface unit.
【0065】図15には、フラッシュメモリイレーズ命
令、センサアンプリセット命令、フラッシュステータス
確認命令の処理が示されている。同図において処理が開
始されると、パソコン側からIFユニット側へ向けて、
CompoWayでフラッシュメモリイレーズ命令を送
信する処理を実行する(ステップ1501)。続いて、
インタフェースユニットの側では、パソコン側へ向け
て、CompoWayで正常レスポンスを送信し(ステ
ップ1502)、その後イレーズを実行してリセット処
理を完了する(ステップ1503)。FIG. 15 shows the processing of a flash memory erase command, a sensor amplifier reset command, and a flash status confirmation command. When the process is started in the figure, from the personal computer side to the IF unit side,
A process of transmitting a flash memory erase command is executed by CompoWay (step 1501). continue,
On the interface unit side, a normal response is transmitted by CompoWay to the personal computer side (step 1502), and then erase is executed to complete the reset process (step 1503).
【0066】図16には、フラッシュメモリ書き換え命
令の処理が示されている。同図において処理が開始され
ると、パソコンの側ではインタフェースユニット側へ向
けて、CompoWayでフラッシュメモリ書き換え命
令を送信する(ステップ1601)。FIG. 16 shows the processing of the flash memory rewrite command. In the figure, when the process is started, the personal computer side sends a flash memory rewrite command by CompoWay toward the interface unit side (step 1601).
【0067】続いて、インタフェースユニット側では、
パソコン側へ向けて、CompoWayで正常レスポン
スを送信する(ステップ1602)。この正常レスポン
スの送信を受けて、パソコン側では、Xmodem通信
に切り換え、NAK待ちの状態となる(ステップ160
4)。Then, on the interface unit side,
A normal response is transmitted by CompoWay to the personal computer side (step 1602). In response to the transmission of this normal response, the personal computer side switches to Xmodem communication and enters the NAK waiting state (step 160).
4).
【0068】一方、インタフェースユニット側では、1
秒経過後、Xmodem通信を起動し、パソコン側へ向
けてNAKを送信する(ステップ1603)。続いて、
パソコン側では、NAK受信後、インタフェースユニッ
ト側へ向けて、128バイトを送信する(ステップ16
05)。On the other hand, on the interface unit side, 1
After a lapse of seconds, Xmodem communication is activated and NAK is sent to the personal computer side (step 1603). continue,
On the personal computer side, after receiving NAK, 128 bytes are transmitted toward the interface unit side (step 16).
05).
【0069】続いて、インタフェースユニット側では、
128バイトの送信を受けて、パソコン側へとACKを
返信する(ステップ1606)。続いて、パソコン側で
は、インタフェースユニット側へと、次の128バイト
を送信する(ステップ1607)。Then, on the interface unit side,
Upon receiving the transmission of 128 bytes, ACK is returned to the personal computer side (step 1606). Subsequently, the personal computer side transmits the next 128 bytes to the interface unit side (step 1607).
【0070】続いて、インタフェースユニット側では、
256バイトの書き込みを実行し、書き込み終了後、パ
ソコン側へ向けてACKを送信する(ステップ160
8)。続いて、パソコン側では、以後全プログラムを送
信するまで128バイトの送信を繰り返す(ステップ1
609)。Then, on the interface unit side,
Writing of 256 bytes is executed, and after completion of writing, ACK is sent to the personal computer side (step 160).
8). Subsequently, the personal computer side repeats the transmission of 128 bytes until the entire program is transmitted (step 1
609).
【0071】その後、インタフェースユニットの側で
は、全プログラム書き換えが終了したならば、Xmod
em通信を終了し、CompoWayの受信待ち状態と
なる(ステップ1610)。同様に、パソコン側では、
全プログラム送信終了後、CompoWayの切り換え
を行う(ステップ1611)。Thereafter, on the interface unit side, when the rewriting of all programs is completed, Xmod
The em communication is ended, and a waiting state for CompoWay is received (step 1610). Similarly, on the PC side,
After transmission of all programs is completed, the CompoWay is switched (step 1611).
【0072】図17には、フラッシュメモリ読み込み命
令の処理が示されている。同図において処理が開始され
ると、パソコン側では、インタフェースユニット側へ向
けて、CompoWayでフラッシュメモリ読み込み命
令を送信する(ステップ1701)。FIG. 17 shows the processing of the flash memory read instruction. When the process is started in the figure, the personal computer side sends a flash memory read command by CompoWay toward the interface unit side (step 1701).
【0073】続いて、インタフェースユニット側では、
パソコン側へ向けて、CompoWayで正常レスポン
スを送信する(ステップ1702)。続いて、パソコン
側では、正常レスポンスの送信を受けて、Xmodem
通信に切り換え、インタフェースユニット側へとNAK
を送信する(ステップ1703)。Then, on the interface unit side,
A normal response is transmitted by CompoWay to the personal computer side (step 1702). Then, on the personal computer side, after receiving the normal response, Xmodem
Switch to communication and NAK to the interface unit side
Is transmitted (step 1703).
【0074】続いて、インタフェースユニット側では、
Xmodem通信へと切り換え、NAK待ちの状態とな
る(ステップ1704)。その後、NAKが受信された
ならば、パソコン側へ向けて、128バイトを送信する
(ステップ1705)。続いてパソコン側では、128
バイトの送信を受けて、インタフェースユニット側へ
と、ACKを送信する(ステップ1706)。Then, on the interface unit side,
The mode is switched to the Xmodem communication, and the NAK waiting state is set (step 1704). After that, when NAK is received, 128 bytes are transmitted to the personal computer side (step 1705). Then, on the PC side, 128
In response to the byte transmission, ACK is transmitted to the interface unit side (step 1706).
【0075】続いて、インタフェースユニット側では、
以後全プログラムが送信完了するまで128バイト毎に
送信を繰り返す(ステップ1707)。その後、全プロ
グラムの受信が終了したならば、CompoWayの切
り換えを実行する(ステップ1709)。一方、インタ
フェースユニットの側では、終了時Xmodem通信を
終了し、CompoWay受信待ちの状態となる(ステ
ップ1708)。Then, on the interface unit side,
After that, the transmission is repeated every 128 bytes until the transmission of all programs is completed (step 1707). After that, when the reception of all the programs is completed, the switching of CompoWay is executed (step 1709). On the other hand, on the side of the interface unit, the Xmodem communication at the time of termination is terminated, and a state of waiting for CompoWay reception is set (step 1708).
【0076】以上、図15〜図17を参照して説明した
処理が順次実行される結果、インタフェースユニット内
のフラッシュメモリ書き換えが完了する。As a result of the sequential execution of the processing described with reference to FIGS. 15 to 17, the rewriting of the flash memory in the interface unit is completed.
【0077】再び図10へ戻って、書き換え対象がイン
タフェースユニットではないと判定されると(ステップ
1003NO)、インタフェースユニットフラッシュ書
き換えシーケンス(PC→IFU→AMP)が実行され
(ステップ1004)、実行終了後通常処理への復帰が
行われる(ステップ1005)。Returning to FIG. 10 again, if it is determined that the rewriting target is not the interface unit (step 1003 NO), the interface unit flash rewriting sequence (PC → IFU → AMP) is executed (step 1004), and after the execution is completed. Return to normal processing is performed (step 1005).
【0078】アンプユニット内のフラッシュメモリ書き
換え時における(PC→IFユニット→AMPユニッ
ト)処理シーケンス(その1〜その3)が図22〜図2
4に示されている。22 to 2 show the processing sequence (No. 1 to No. 3) when rewriting the flash memory in the amplifier unit (PC → IF unit → AMP unit).
4 is shown.
【0079】図22には、フラッシュメモリイレーズ命
令、フラッシュステータス確認命令、センサアンプリセ
ット命令の処理が示されている。同図において処理が開
始されると、パソコン側では、CompoWayでフラ
ッシュイレーズ命令を送信する(ステップ2201)。FIG. 22 shows processing of a flash memory erase command, a flash status confirmation command, and a sensor amplifier reset command. When the process is started in the figure, the personal computer sends a flash erase command by CompoWay (step 2201).
【0080】続いて、インタフェースユニット側では、
アンプユニット側へ向けて、COMMデータでフラッシ
ュ書き換えモード移行コマンドを送信する(ステップ2
202)。続いて、アンプユニット側では、インタフェ
ースユニット側へ向けて、正常受信レスポンスを返信
し、フラッシュ書き換えモードへ移行後、フラッシュデ
ータプロトコルに切り換える(ステップ2203)。Then, on the interface unit side,
A flash rewrite mode transition command is transmitted as COMM data to the amplifier unit side (step 2).
202). Subsequently, the amplifier unit side returns a normal reception response to the interface unit side, switches to the flash rewrite mode, and then switches to the flash data protocol (step 2203).
【0081】続いて、インタフェースユニット側では、
アンプユニット側へ向けて、フラッシュデータでイレー
ズコマンドを送信する(ステップ2204)。続いてア
ンプユニット側では、イレーズ処理を実行した後、イン
タフェースユニット側へ向けて、『OK』を送信する
(ステップ2205)。Then, on the interface unit side,
An erase command is transmitted as flash data toward the amplifier unit side (step 2204). Subsequently, after the erase process is executed on the amplifier unit side, "OK" is transmitted toward the interface unit side (step 2205).
【0082】続いて、インタフェースユニット側では、
パソコン側へ向けて、CompoWayで正常レスポン
スを送信する(ステップ2206)。尚、CompoD
ATAでのフラッシュ書き換えモード移行コマンドは通
常モードからフラッシュ書き換えモードへ移行するとき
の初回のみ必要である。Then, on the interface unit side,
A normal response is transmitted by CompoWay to the personal computer side (step 2206). In addition, CompoD
The flash rewrite mode transition command in ATA is necessary only for the first time when transitioning from the normal mode to the flash rewrite mode.
【0083】図23には、フラッシュメモリ書き換え命
令の処理が示されている。同図において処理が開始され
ると、パソコン側では、インタフェースユニット側へ向
けて、CompoWayでフラッシュメモリ読み込み命
令を送信する(ステップ2301)。FIG. 23 shows the processing of the flash memory rewrite command. When the processing is started in the figure, the personal computer side transmits a flash memory read command by CompoWay toward the interface unit side (step 2301).
【0084】続いて、インタフェースユニット側では、
パソコン側へ向けて、CompoWayで正常レスポン
スを送信する(ステップ2302)。続いて、パソコン
側では、Xmodem通信に切り換え後、NAK待ち状
態となる(ステップ2303)。Then, on the interface unit side,
A normal response is transmitted by CompoWay to the personal computer side (step 2302). Subsequently, on the personal computer side, after switching to Xmodem communication, the PC enters a NAK waiting state (step 2303).
【0085】続いて、インタフェースユニット側では、
1秒経過後、Xmodem通信を起動し、パソコン側へ
とNAKを送信する(ステップ2304)。続いてパソ
コン側では、NAKを受信後、インタフェースユニット
側へ向けて128バイトを送信する(ステップ230
5)。Then, on the interface unit side,
After 1 second, Xmodem communication is activated and NAK is transmitted to the personal computer side (step 2304). Subsequently, on the personal computer side, after receiving NAK, 128 bytes are transmitted to the interface unit side (step 230).
5).
【0086】続いて、インタフェースユニット側では、
パソコン側へ向けてACKを返信する(ステップ230
6)。続いて、パソコンの側では、インタフェースユニ
ット側へ向けて、次の128バイトを送信する(ステッ
プ2307)。Then, on the interface unit side,
ACK is sent back to the personal computer (step 230)
6). Subsequently, the personal computer side transmits the next 128 bytes toward the interface unit side (step 2307).
【0087】続いてインタフェースユニット側では、ア
ンプユニット側へ向けて、フラッシュデータでフラッシ
ュメモリ書き換え命令を送信する(ステップ230
8)。続いて、アンプユニット側では、書き換え処理を
実行し、『OK』をインタフェースユニット側へと送信
する(ステップ2309)。Subsequently, on the interface unit side, a flash memory rewrite command is transmitted as flash data toward the amplifier unit side (step 230).
8). Then, the amplifier unit side executes the rewriting process, and transmits "OK" to the interface unit side (step 2309).
【0088】続いてインタフェースユニット側では、パ
ソコン側へ向けて、CompoWayで正常レスポンス
を送信する(ステップ2310)。次いでパソコン側で
は、全プログラムが送信するまで128バイト毎の送信
を繰り返す(ステップ2311)。以後、インタフェー
スユニットの側では、全プログラム書き換えが終了する
のを待って、Xmodem通信を終了し、CompoW
ay受信待ちの状態となる(ステップ2312)。他
方、パソコン側では、全プログラム送信終了後、Com
poWayの切り換えを行う(ステップ2313)。Then, on the interface unit side, a normal response is transmitted by CompoWay toward the personal computer side (step 2310). Next, the personal computer side repeats transmission every 128 bytes until all programs are transmitted (step 2311). After that, on the interface unit side, the Xmodem communication is terminated by waiting for the completion of the rewriting of all programs, and the CompoW
The aye reception standby state is set (step 2312). On the other hand, on the PC side, after sending all programs,
The poWay is switched (step 2313).
【0089】図14には、フラッシュメモリ読み込み命
令の処理が示されている。同図において処理が開始され
ると、パソコン側では、インタフェースユニット側へ向
けて、CompoWayでフラッシュメモリ読み込み命
令を送信する(ステップ2401)。FIG. 14 shows the processing of the flash memory read instruction. In the figure, when the process is started, the personal computer side sends a flash memory read command by CompoWay toward the interface unit side (step 2401).
【0090】続いてインタフェースユニット側では、パ
ソコン側へ向けて、CompoWayで正常レスポンス
を送信する(ステップ2402)。その後、Xmode
m通信に切り換え、NAK待ちの状態となる(ステップ
2404)。一方、正常レスポンスを受けたパソコンの
側では、Xmodem通信に切り換え、インタフェース
ユニット側へとNAKを送信する(ステップ240
3)。続いて、インタフェースユニット側では、アンプ
ユニット側へ向けて、フラッシュデータでフラッシュメ
モリ読み込み命令を送信する(ステップ2405)。Then, on the interface unit side, a normal response is transmitted by CompoWay toward the personal computer side (step 2402). Then Xmode
The communication is switched to m communication and the NAK wait state is set (step 2404). On the other hand, the personal computer side that has received the normal response switches to Xmodem communication and transmits NAK to the interface unit side (step 240).
3). Then, on the interface unit side, a flash memory read command is transmitted as flash data toward the amplifier unit side (step 2405).
【0091】続いて、アンプユニット側では、インタフ
ェースユニット側へ向けて、読み込みデータを返信する
(ステップ2406)。続いて、インタフェースユニッ
ト側では、NAKを受信後、パソコン側へ向けて128
バイトを送信する(ステップ2407)。続いてパソコ
ン側では、インタフェースユニット側へ向けて、ACK
を送信する(ステップ2408)。Subsequently, the amplifier unit side returns the read data toward the interface unit side (step 2406). Then, on the interface unit side, after receiving the NAK, toward the personal computer side 128
The byte is transmitted (step 2407). Then, on the personal computer side, send an ACK to the interface unit side.
Is transmitted (step 2408).
【0092】続いて、インタフェースユニット側では、
全プログラムの送信が終了するまで128バイト毎の送
信を繰り返す(ステップ2409)。そして、256バ
イト書き込みを実行し、書き込み終了後ACKをパソコ
ン側へと返送する(ステップ2410)。続いてパソコ
ン側では、全プログラム受信終了後、CompoWay
の切り換えを行う(ステップ2411)。インタフェー
スユニット側では、終了時Xmodem通信を終了し、
CompoWay受信待ちの状態となる(ステップ24
12)。Then, on the interface unit side,
Transmission of every 128 bytes is repeated until the transmission of all programs is completed (step 2409). Then, writing of 256 bytes is executed, and after the writing is completed, an ACK is returned to the personal computer side (step 2410). Then, on the personal computer side, after receiving all programs, CompoWay
Is switched (step 2411). On the interface unit side, the Xmodem communication is terminated at the end,
Waiting for CompoWay reception (step 24)
12).
【0093】再び図10に戻って、インタフェースユニ
ット内部アンプソフトの書き換え命令であると判定され
ると(ステップ1001YES)、インタフェースユニ
ットフラッシュ書き換えシーケンス(IFU→AMP)
が実行され(ステップ1002)、終了後通常処理への
復帰が行われる(ステップ1005)。Returning to FIG. 10 again, if it is determined that the rewriting command is for the interface unit internal amplifier software (step 1001 YES), the interface unit flash rewriting sequence (IFU → AMP).
Is executed (step 1002), and after completion, the normal processing is restored (step 1005).
【0094】アンプユニット内のフラッシュメモリ書き
換え時におけるインタフェースユニットとアンプユニッ
トとの間の処理シーケンス(その1〜その2)が図25
並びに図26に示されている。FIG. 25 shows the processing sequence (No. 1 and No. 2) between the interface unit and the amplifier unit when rewriting the flash memory in the amplifier unit.
And FIG. 26.
【0095】図25には、フラッシュメモリイレーズ命
令、センサアンプリセット命令の処理が示されている。
同図において処理が開始されると、インタフェースユニ
ットの側では、アンプユニットへ向けて、COMMデー
タでフラッシュ書き換えモード移行コマンドを送信する
(ステップ2501)。続いて、アンプユニット側で
は、正常受信レスポンスを返信し、フラッシュ書き換え
モードへ移行後、フラッシュデータプロトコルへの切り
換えを行う(ステップ2502)。FIG. 25 shows the processing of the flash memory erase command and the sensor amplifier reset command.
When the processing is started in the figure, the interface unit transmits a flash rewrite mode transition command as COMM data to the amplifier unit (step 2501). Then, the amplifier unit side returns a normal reception response, switches to the flash rewrite mode, and then switches to the flash data protocol (step 2502).
【0096】続いて、インタフェースユニット側では、
アンプユニット側へ向けて、フラッシュデータでイレー
ズコマンドを送信する(ステップ2503)。続いて、
アンプユニット側では、イレーズ処理を実行した後、
『OK』をインタフェースユニットの側へと送信する
(ステップ2504)。Then, on the interface unit side,
An erase command is transmitted as flash data to the amplifier unit side (step 2503). continue,
On the amplifier unit side, after performing erase processing,
"OK" is transmitted to the interface unit side (step 2504).
【0097】続いて、インタフェースユニット側では、
CompoWayで正常レスポンスを送信する(ステッ
プ2505)。Then, on the interface unit side,
A normal response is transmitted by CompoWay (step 2505).
【0098】尚、このデータでのフラッシュ書き換えモ
ード移行コマンドは通常モードからフラッシュ書き換え
モードへ移行するときの初回のみが必要である。The flash rewrite mode transition command with this data is required only for the first time when transitioning from the normal mode to the flash rewrite mode.
【0099】図26には、フラッシュメモリ書き換え命
令の処理が示されている。同図において処理が開始され
ると、インタフェースユニットの側では、アンプユニッ
ト側へ向けて、フラッシュデータでフラッシュメモリ書
き換え命令送信を行い、128バイト送信を行う(ステ
ップ2601)。続いて、アンプユニット側では、書き
換えを実行した後、『OK』をインタフェースユニット
へと送信する(ステップ2602)。FIG. 26 shows the processing of the flash memory rewrite command. In the figure, when the processing is started, the interface unit side transmits a flash memory rewrite command with flash data toward the amplifier unit side, and transmits 128 bytes (step 2601). Then, on the amplifier unit side, after rewriting, "OK" is transmitted to the interface unit (step 2602).
【0100】続いて、インタフェースユニットの側で
は、CompoWayで正常レスポンスを送信し(ステ
ップ2603)、その後全プログラムの送信が完了する
まで128バイト毎に送信を繰り返し(ステップ260
4)、全プログラムの書き換えが終了した後、Xmod
em通信を終了し、CompoWay受信待ちの状態に
復帰する(ステップ2605)。Subsequently, the interface unit transmits a normal response by CompoWay (step 2603), and thereafter repeats transmission every 128 bytes until transmission of all programs is completed (step 260).
4) After all programs have been rewritten, Xmod
The em communication is ended, and the state of waiting for reception of CompoWay is restored (step 2605).
【0101】再び図9に戻って、フラッシュ書き換えに
関する命令ではないと判定されると(ステップ903N
O)、図11へ進んで、命令の対象がインタフェースユ
ニットであるか否かの判定を行う(ステップ110
1)。ここで命令対象がインタフェースユニットである
と判定されると(ステップ1101YES)、コマンド
内容に応じた処理を実行し(ステップ1107)、PC
用レスポンスコマンドを作成し(ステップ1108)、
PCへレスポンスコマンドを送信する(ステップ110
9)。Returning to FIG. 9 again, if it is determined that the instruction is not a flash rewriting instruction (step 903N).
O), proceeding to FIG. 11, it is determined whether the target of the instruction is the interface unit (step 110).
1). If it is determined that the command target is the interface unit (YES in step 1101), the process according to the command content is executed (step 1107), and the PC
Response command is created (step 1108),
Send a response command to the PC (step 110)
9).
【0102】これに対して、命令対象がインタフェース
ユニットでないと判定されると(ステップ1101N
O)、センサ用通信コマンドを作成し(ステップ110
2)、センサへコマンドを送信し(ステップ110
3)、センサからのレスポンスがあるのを待って(ステ
ップ1104)、PC用レスポンスコマンドを作成し
(ステップ1105)、PCへレスポンスコマンドを送
信する(ステップ1106)。On the other hand, if it is determined that the instruction target is not the interface unit (step 1101N
O) to create a sensor communication command (step 110).
2) Send a command to the sensor (step 110)
3) Waiting for a response from the sensor (step 1104), creating a PC response command (step 1105), and transmitting the response command to the PC (step 1106).
【0103】次に、アンプユニットのソフトウェア構成
を示すフローチャートが図12に示されている。同図に
おいて処理が開始されると、インタフェースユニットか
らの通信受信割り込みがあるのを待って、受信データの
解析を行う(ステップ1201)。Next, a flow chart showing the software configuration of the amplifier unit is shown in FIG. When the process is started in the figure, the reception data is analyzed after waiting for a communication reception interrupt from the interface unit (step 1201).
【0104】ここで、フラッシュ書き換えに関する命令
であると判定されると(ステップ1202YES)、書
き換え対象となるアンプユニットが自分のチャンネルで
あるかどうかの判定を行う(ステップ1208)。ここ
で自分のチャンネルでないと判定されると(ステップ1
208NO)、何もせずに通常処理へと復帰する(ステ
ップ1215)。If it is determined that the command is a flash rewriting command (YES in step 1202), it is determined whether or not the amplifier unit to be rewritten is its own channel (step 1208). If it is determined that it is not your channel (step 1
208 NO), and returns to normal processing without doing anything (step 1215).
【0105】これに対して、書き換え対象となるアンプ
ユニットが自分のチャンネルであれば(ステップ120
8YES)、センサアンプの全ての表示灯を消灯した後
(ステップ1209)、HIGH,PASS,LOWの
各表示灯を全て点灯して、センサアンプのファームウェ
アを書き換えている旨をユーザに示唆する(ステップ1
210)。加えて、レーザダイオードをオフさせて、不
用意な覗き込みによっても、ユーザが目を損傷したりし
ないように配慮する(ステップ1211)。その後、ア
ナログ出力を規定値に固定し(ステップ1212)、セ
ンサアンプフラッシュ書き換えシーケンス処理を実行し
(ステップ1213)、終了後通常処理への復帰を行う
(ステップ1214)。On the other hand, if the amplifier unit to be rewritten is its own channel (step 120)
8 YES), after turning off all the indicator lights of the sensor amplifier (step 1209), all the indicator lights of HIGH, PASS, and LOW are turned on to indicate to the user that the firmware of the sensor amplifier is being rewritten (step 1209). 1
210). In addition, the laser diode is turned off so that the user will not be injured by an accidental look (step 1211). After that, the analog output is fixed to a specified value (step 1212), the sensor amplifier flash rewriting sequence processing is executed (step 1213), and after the completion, the normal processing is restored (step 1214).
【0106】これに対して、受信データを解析した結果
(ステップ1201)、フラッシュ書き換えに関する命
令ではないと判定されると(ステップ1202NO)、
さらに自分のチャンネルが命令対象か否かの判定を行う
(ステップ1203)。ここで、自分のチャンネルが命
令対象でないと判定されれば(ステップ1203N
O)、何もせずに通常処理へと復帰する(ステップ12
04)。これに対して、自分のチャンネルが命令対象で
あれば(ステップ1203YES)、コマンドに応じた
処理を実施した後(ステップ1205)、レスポンスコ
ードを作成し(ステップ1206)、インタフェースユ
ニットへとコマンドの送信を行う(ステップ120
7)。On the other hand, as a result of analyzing the received data (step 1201), if it is determined that the command is not the flash rewriting command (NO in step 1202),
Further, it is judged whether or not the own channel is a command target (step 1203). Here, if it is determined that the user's channel is not the command target (step 1203N
O), and returns to normal processing without doing anything (step 12).
04). On the other hand, if the user's own channel is the target of the command (YES in step 1203), the process corresponding to the command is executed (step 1205), the response code is created (step 1206), and the command is transmitted to the interface unit. (Step 120)
7).
【0107】以上、各フローチャート並びに処理シーケ
ンス図を参照して説明したように、本発明によれば、イ
ンタフェースユニット内並びに任意のアンプユニット内
におけるファームウェアを自在に書き換えることができ
る。この書き換えは、アンプユニットの据付状態のまま
で行うことができ、メーカ側では製品納入後、いつでも
必要な時にユーザのファームウェアをユーザ仕様に応じ
てきめ細かく設定ないし調整することができる。As described above with reference to the respective flowcharts and processing sequence diagrams, according to the present invention, the firmware in the interface unit and in any amplifier unit can be freely rewritten. This rewriting can be performed while the amplifier unit is installed, and the manufacturer can finely set or adjust the user's firmware according to the user's specifications at any time after the product is delivered.
【0108】そのため、本発明によれば、従前のユーザ
の個々の仕様に合わせて品揃えを増すという手法を採用
することなく、この種の光電センサのカスタマイズ化を
実現することができ、ユーザサイドにおけるこの種の光
電センサの使い勝手を格段に向上させることができる。Therefore, according to the present invention, this type of photoelectric sensor can be customized without adopting the conventional method of increasing the product lineup in accordance with the individual specifications of the user. The usability of this type of photoelectric sensor in can be significantly improved.
【0109】加えて、アンプユニットのみならず、イン
タフェースユニットのファームウェアについても、適宜
に書き換え可能としているため、将来的にアンプユニッ
トの機能が拡張された場合にも、その都度インタフェー
スユニットを購入し直す必要がなく、共通の1台のイン
タフェースユニットを購入しさえすれば、ユーザはその
後のセンサ機能拡張に合わせて、適切なファーム書き換
え処理を実現することができる。In addition, not only the amplifier unit but also the firmware of the interface unit can be rewritten as appropriate, so that even if the function of the amplifier unit is expanded in the future, the interface unit is purchased again each time. There is no need, and if only one common interface unit is purchased, the user can implement an appropriate firmware rewriting process according to the subsequent expansion of the sensor function.
【0110】また、この発明では、アンプユニットのフ
ァーム書き換え中にあっては、レーザダイオードの発光
が停止するようにしたため、不用意な覗き込みにより、
ユーザの目に損傷を与える虞れも確実に回避することが
できる。さらに、アンプユニット並びにインタフェース
ユニットのファーム書き換え中にあっては、既存の表示
灯を利用して特徴的な表示態様を実行することにより、
ユーザに対しファーム書き換え中である旨を確実に報知
して、正常動作中とファーム書き換え中との違いを明瞭
に知らしめることができる。Further, according to the present invention, the light emission of the laser diode is stopped during the rewriting of the firmware of the amplifier unit.
It is possible to surely avoid the possibility of damaging the user's eyes. Further, while the amplifier unit and the interface unit are being rewritten, by executing the characteristic display mode by using the existing indicator light,
The user can be surely notified that the firmware is being rewritten, and the difference between normal operation and firmware rewriting can be clearly notified.
【0111】本発明を適用することによるプログラム書
き換えの概念を示す説明図が図13に示されている。同
図(a)はアンプユニットのプログラム書き換え例であ
って、この場合当初のアンプユニットには変位センサ用
のセンサ基本検出処理が格納されていたのに対し、変更
後のファームウェアにおいては、センサ基本検出処理は
変位センサ用から測長センサ用へと書き換えられること
となる。このような書き換え処理を利用すれば、当初変
位センサとして購入した光電センサを、センサヘッドの
みを測長センサに取り替えて使用するような場合、それ
に合わせてアンプユニットを購入し直す必要がなくな
り、ユーザ側の使い勝手が格段に向上する。An explanatory view showing the concept of program rewriting by applying the present invention is shown in FIG. FIG. 9A shows an example of rewriting the program of the amplifier unit. In this case, the sensor unit basic detection processing for the displacement sensor was stored in the original amplifier unit, whereas the sensor basic detection process was changed in the changed firmware. The detection process is rewritten from the displacement sensor to the length measuring sensor. If such a rewriting process is used, when the photoelectric sensor originally purchased as the displacement sensor is used by replacing only the sensor head with the length measuring sensor, it is not necessary to repurchase the amplifier unit accordingly, and the user does not need to purchase it again. The usability on the side is dramatically improved.
【0112】同図(b)は、インタフェースユニットの
プログラム書き換え例を示すものであり、この例にあっ
ては、当初のインタフェースユニットソフトウェア構成
に対し、新コマンドを追加することによって、アンプユ
ニットの拡張による新規プログラムへの自在な対応を可
能とするものである。FIG. 13B shows an example of rewriting the program of the interface unit. In this example, the amplifier unit is expanded by adding a new command to the original interface unit software configuration. It enables flexible response to new programs.
【0113】このように、本発明のセンサシステムを利
用すれば、アンプユニット並びにインタフェースユニッ
トの何れにおいても任意のファームウェア書き換えが可
能となり、特にこの種のアンプ分離型センサの分野にお
いては、装置の使い勝手を格段に向上させることができ
る。As described above, by using the sensor system of the present invention, it is possible to rewrite any firmware in both the amplifier unit and the interface unit. Especially, in the field of this type of amplifier separation type sensor, the usability of the device is improved. Can be significantly improved.
【0114】図14には、アンプユニット内のフラッシ
ュメモリの格納内容を示すメモリマップが示されてい
る。同図(a)にはアンプユニット内フラッシュROM
のメモリマップが示されており、同図から明らかなよう
に、ブロック1〜ブロック6はフラッシュROM書き換
え対象領域とされ、ブロック0についてはフラッシュR
OM書き換えプログラム領域書き込みは行わないように
設定されている。そして、このブロック0にはブロック
1〜ブロック6の書き換えのためのファームウェアに相
当するブートプログラムが格納される。FIG. 14 shows a memory map showing the stored contents of the flash memory in the amplifier unit. A flash ROM in the amplifier unit is shown in FIG.
As shown in the figure, blocks 1 to 6 are flash ROM rewrite target areas, and block 0 is flash R.
The OM rewrite program area is set not to be written. A boot program corresponding to firmware for rewriting blocks 1 to 6 is stored in the block 0.
【0115】尚、先に説明したファームウェア書き換え
時におけるレーザ停止処理や特別な表示対象によるLE
D点灯処理についても、このブートプログラム領域に格
納される。すなわち、ブロック0に格納されるブートプ
ログラムは、図12に示されるアンプユニットのソフト
ウェア構成に相当するものである。The laser stop processing at the time of rewriting the firmware described above and the LE by the special display target are performed.
The D lighting process is also stored in this boot program area. That is, the boot program stored in the block 0 corresponds to the software configuration of the amplifier unit shown in FIG.
【0116】このように、本発明にあっては、アンプユ
ニット内フラッシュROMにブートプログラム領域(ブ
ロック0)を設け、通信処理を介して受信されたプログ
ラムにより、ブロック1〜ブロック0のプログラム領域
の内容を全部又は一部選択的に書き換え、または削除、
追加できるようにしているため、単にプログラムメモリ
の内容を外部から直接書き込む場合に比べ、パソコン側
の操作ないし処理が単純なものとなり、誰でも何時でも
簡単にアンプユニット内のファームウェアを選択的に書
き換えることが可能となるのである。As described above, in the present invention, the boot program area (block 0) is provided in the flash ROM in the amplifier unit, and the program area received from the block 1 to the block 0 is changed by the program received through the communication process. Selectively rewrite or delete all or part of the contents,
Since it can be added, the operation or processing on the personal computer side is simpler than writing the contents of the program memory directly from the outside, and anyone can easily selectively rewrite the firmware in the amplifier unit at any time. It becomes possible.
【0117】以上説明したファームウェアの書き換え処
理に際し、インタフェースユニットとアンプユニットの
間の通信におけるキャラクタビット(DATA)の内容
を示す説明図が図18に示されている。FIG. 18 is an explanatory diagram showing the contents of character bits (DATA) in the communication between the interface unit and the amplifier unit in the above-described firmware rewriting process.
【0118】同図に示されるように、インタフェースユ
ニットとアンプユニットとの間の通信におけるキャラク
タビットは9ビットとされており、図中A部が1ビッ
ト、図中B部が8ビットとされる。A部には0が格納さ
れ、B部にはアドレス、コマンド、データ1、データ2
〜、データ256、SUM等が格納される。As shown in the figure, the character bit in the communication between the interface unit and the amplifier unit is 9 bits, the A part in the figure is 1 bit and the B part in the figure is 8 bits. . 0 is stored in the A part, and address, command, data 1, data 2 in the B part.
~, Data 256, SUM, etc. are stored.
【0119】次に、インタフェースユニットとアンプユ
ニットとの間でやり取りされるパケットの形態を示す説
明図(その1〜その3)が図19〜図21に示されてい
る。Next, FIGS. 19 to 21 are explanatory diagrams (Nos. 1 to 3) showing the form of packets exchanged between the interface unit and the amplifier unit.
【0120】同図に示されるように、ファームの書き換
え処理のためには、フラッシュメモリイレーズ命令、ア
ンプユニットリセット命令、フラッシュメモリ読み込み
命令、フラッシュメモリ書き換え命令、フラッシュステ
ータス確認命令、『OK』『NG』レスポンス等が使用
される。それら各コマンドないしレスポンスのフォーマ
ットは、図19〜図21の各表に明示される通りであ
る。As shown in the figure, the flash memory erase instruction, the amplifier unit reset instruction, the flash memory read instruction, the flash memory rewrite instruction, the flash status confirmation instruction, "OK" and "NG" are used for the firmware rewrite processing. ] Responses etc. are used. The format of each command or response is as clearly shown in each table of FIGS.
【0121】以上説明した本発明のセンサシステムにお
いては、従前のアンプユニットと同一規格のケースを有
するインタフェースユニットが使用される。このインタ
フェースユニットは、従前のアンプユニットのケースと
隣接してDINレールにより装着され、隣接対向面に設
けられた隣接結合コネクタ24を介して相互に信号のや
り取りが可能とされる。In the sensor system of the present invention described above, the interface unit having the case of the same standard as the conventional amplifier unit is used. This interface unit is mounted by a DIN rail adjacent to the case of a conventional amplifier unit, and signals can be exchanged with each other via an adjacent coupling connector 24 provided on an adjacent opposing surface.
【0122】加えて、パソコンとのデータ通信に関して
は、汎用のコネクタであるRS232Cを介して行われ
る。このRS−232Cコネクタは、インタフェースユ
ニット1のケース10に組み込まれるものではなく、ケ
ース10から引き出された電気コード3の先端に取り付
けられる。そのため、RS232Cコネクタ4は、イン
タフェースユニットのケース10のサイズに影響を与え
ない。In addition, data communication with a personal computer is performed via RS232C which is a general-purpose connector. The RS-232C connector is not incorporated in the case 10 of the interface unit 1, but is attached to the tip of the electric cord 3 pulled out from the case 10. Therefore, the RS232C connector 4 does not affect the size of the case 10 of the interface unit.
【0123】換言すれば、RS232Cコネクタ4をイ
ンタフェースユニットのケース10の内部に組み込まな
かったことによって、ケース10を小型化に維持するこ
とができ、加えてRS232Cコネクタへ繋がる電気コ
ード3の引き出し方向は、隣接するアンプユニットから
センサヘッドユニットに向かう電気コード5の引き出し
方向と同一とされている。In other words, since the RS232C connector 4 is not incorporated in the case 10 of the interface unit, the case 10 can be kept small, and the electric cord 3 connected to the RS232C connector can be pulled out in a different direction. The direction of drawing out the electric cord 5 from the adjacent amplifier unit to the sensor head unit is the same.
【0124】そのため、制御盤内に多数のアンプユニッ
トとインタフェースユニットとを配置する場合において
も、電気コード3及び5の引き回しが整然と行われるこ
ととなり、加えてインタフェースユニット10の上面1
0Eに生じた空所に表示パネル14を配置することがで
き、この表示パネル14を図7に示される構成とすれ
ば、インタフェースユニット1を介して行われる中継処
理の通信状態をユーザに対し的確に知らせることができ
る。Therefore, even when a large number of amplifier units and interface units are arranged in the control panel, the electric cords 3 and 5 are laid out in order, and in addition, the upper surface 1 of the interface unit 10 is arranged.
The display panel 14 can be arranged in the vacant space generated in 0E, and if the display panel 14 has the configuration shown in FIG. 7, the communication state of the relay processing performed via the interface unit 1 can be accurately confirmed to the user. Can be informed.
【0125】さらに、このように電気コード3をインタ
フェースユニットのケース10から引き出し、その先端
にRS232Cコネクタ4を取り付ける手法を採用すれ
ば、RS232Cコネクタ4のサイズがインタフェース
ユニットのケースのサイズに影響を与えなくなり、その
結果インタフェースユニット1とアンプユニット2で同
一規格のケースを採用することが可能となり、部品管理
の簡素化によりコストダダウンも可能となる。Further, if the method of pulling out the electric cord 3 from the case 10 of the interface unit and attaching the RS232C connector 4 to the tip thereof is adopted, the size of the RS232C connector 4 affects the size of the case of the interface unit. As a result, the interface unit 1 and the amplifier unit 2 can adopt the same standard case, and the cost can be reduced by simplifying the parts management.
【0126】尚、以上説明した通り本発明の光電センサ
システムは、アンプユニット並びにインタフェースユニ
ットのファームウェアを任意に書き換え可能とするもの
であるが、このような考え方は、光電センサに限らず、
任意のセンサ、中でもアンプ分離型センサに広く採用が
可能である。すなわち、このようなセンサとしては、近
接センサや超音波センサを挙げることができる。As described above, the photoelectric sensor system of the present invention allows the firmware of the amplifier unit and the interface unit to be rewritten arbitrarily, but such an idea is not limited to the photoelectric sensor.
It can be widely adopted as an arbitrary sensor, especially an amplifier separation type sensor. That is, such a sensor may be a proximity sensor or an ultrasonic sensor.
【0127】[0127]
【発明の効果】以上の説明で明らかなように、本発明に
よれば、光電センサのファームウェアを、例えば据付状
態のままでも、書き換え可能とし、ユーザ個々の計測仕
様にきめ細かく対応できると言う効果が得られる。As is apparent from the above description, according to the present invention, it is possible to rewrite the firmware of the photoelectric sensor, for example, even in the installed state, and it is possible to finely respond to the measurement specifications of each user. can get.
【図1】IFユニットとAMPユニットとの隣接結合状
態を示す斜視図である。FIG. 1 is a perspective view showing a state in which an IF unit and an AMP unit are adjacently connected to each other.
【図2】変位センサ用のセンサヘッドユニットの斜視図
である。FIG. 2 is a perspective view of a sensor head unit for a displacement sensor.
【図3】IFユニットとAMPユニットとの隣接結合状
態を示す平面図である。FIG. 3 is a plan view showing an adjacent connection state of an IF unit and an AMP unit.
【図4】IFユニットとAMPユニットとの分離状態を
示す斜視図である。FIG. 4 is a perspective view showing a separated state of an IF unit and an AMP unit.
【図5】IFユニットの斜め前方より見た斜視図であ
る。FIG. 5 is a perspective view of the IF unit as seen obliquely from the front.
【図6】IFユニットの斜め後方より見た斜視図であ
る。FIG. 6 is a perspective view of the IF unit as seen obliquely from behind.
【図7】IFユニットの表示パネルの斜視図である。FIG. 7 is a perspective view of a display panel of an IF unit.
【図8】センサシステム全体の電気的なハードウェア構
成図である。FIG. 8 is an electrical hardware configuration diagram of the entire sensor system.
【図9】IFユニットのソフトウェア構成を示すフロー
チャート(その1)である。FIG. 9 is a flowchart (part 1) showing the software configuration of the IF unit.
【図10】IFユニットのソフトウェア構成を示すフロ
ーチャート(その2)である。FIG. 10 is a flowchart (part 2) showing the software configuration of the IF unit.
【図11】IFユニットのソフトウェア構成を示すフロ
ーチャート(その3)である。FIG. 11 is a flowchart (part 3) showing the software configuration of the IF unit.
【図12】AMPユニットのソフトウェア構成を示すフ
ローチャートである。FIG. 12 is a flowchart showing a software configuration of an AMP unit.
【図13】プログラム書き換えの概念を示す説明図であ
る。FIG. 13 is an explanatory diagram showing the concept of program rewriting.
【図14】AMPユニットに内蔵されるフラッシュメモ
リの格納内容を示すフローチャートである。FIG. 14 is a flowchart showing stored contents of a flash memory incorporated in an AMP unit.
【図15】IFユニットに内蔵されるフラッシュメモリ
書き換え時におけるパソコンとIFユニットとの間の処
理シーケンス図(その1)である。FIG. 15 is a processing sequence diagram (part 1) between a personal computer and an IF unit when rewriting a flash memory built in the IF unit.
【図16】IFユニットに内蔵されるフラッシュメモリ
書き換え時におけるパソコンとIFユニットとの間の処
理シーケンス図(その2)である。FIG. 16 is a processing sequence diagram (No. 2) between the personal computer and the IF unit when rewriting the flash memory built in the IF unit.
【図17】IFユニットに内蔵されるフラッシュメモリ
書き換え時におけるパソコンとIFユニットとの間の処
理シーケンス図(その3)である。FIG. 17 is a processing sequence diagram (3) between the personal computer and the IF unit at the time of rewriting the flash memory built in the IF unit.
【図18】IFユニットとAMPユニットとの間の通信
におけるキャラクタビット(DATA)の内容を示す図
である。FIG. 18 is a diagram showing the content of character bits (DATA) in communication between an IF unit and an AMP unit.
【図19】IFユニットとAMPユニットとの間でやり
とりされるパケットの形態を示す説明図(その1)であ
る。FIG. 19 is an explanatory diagram (part 1) showing a form of a packet exchanged between the IF unit and the AMP unit.
【図20】IFユニットとAMPユニットとの間でやり
とりされるパケットの形態を示す説明図(その2)であ
る。FIG. 20 is an explanatory diagram (part 2) showing the form of the packet exchanged between the IF unit and the AMP unit.
【図21】IFユニットとAMPユニットとの間でやり
とりされるパケットの形態を示す説明図(その3)であ
る。FIG. 21 is an explanatory diagram (part 3) showing the form of the packet exchanged between the IF unit and the AMP unit.
【図22】AMPユニットに内蔵されるフラッシュメモ
リ書き換え時における(PC−IFユニット−AMPユ
ニット)処理シーケンス(その1)を示す図である。FIG. 22 is a diagram showing a (PC-IF unit-AMP unit) processing sequence (No. 1) at the time of rewriting the flash memory built in the AMP unit.
【図23】AMPユニットに内蔵されるフラッシュメモ
リ書き換え時における(PC−IFユニット−AMPユ
ニット)処理シーケンス(その2)を示す図である。FIG. 23 is a diagram showing a (PC-IF unit-AMP unit) processing sequence (No. 2) at the time of rewriting the flash memory built in the AMP unit.
【図24】AMPユニットに内蔵されるフラッシュメモ
リ書き換え時における(PC−IFユニット−AMPユ
ニット)処理シーケンス(その3)を示す図である。FIG. 24 is a diagram showing a (PC-IF unit-AMP unit) processing sequence (No. 3) at the time of rewriting the flash memory built in the AMP unit.
【図25】AMPユニットに内蔵されるフラッシュメモ
リ書き換え時におけるIFユニットとAMPユニットと
の間の処理シーケンス(その1)FIG. 25 is a processing sequence (part 1) between the IF unit and the AMP unit when rewriting the flash memory built in the AMP unit.
【図26】AMPユニットに内蔵されるフラッシュメモ
リ書き換え時におけるIFユニットとAMPユニットと
の間の処理シーケンス(その2)FIG. 26 is a processing sequence (part 2) between the IF unit and the AMP unit when rewriting the flash memory built in the AMP unit.
【図27】IFユニットの回路構成をより詳細に示すブ
ロック図である。FIG. 27 is a block diagram showing the circuit configuration of the IF unit in more detail.
【図28】AMPユニットの回路構成をより詳細に示す
ブロック図である。FIG. 28 is a block diagram showing in more detail the circuit configuration of the AMP unit.
【図29】光電センサヘッドの代表的な構成例を示す図
である。FIG. 29 is a diagram showing a typical configuration example of a photoelectric sensor head.
1 インタフェースユニット 2 アンプユニット 3 電気コード(通信線等) 4 RS232Cコネクタ 5 電気コード(光量信号線等) 6 丸形コネクタ 7 電気コード(電源線、入力線、出力線等) 8 電気コード(光量信号線等) 9 丸形コネクタ 10 インタフェースユニットのケース 10A 前面 10B 後面 10C 左側面 10D 右側面 10E 上面 10F 底面 11 DINレール嵌合溝 12 スライド蓋 13 透明カバー 14 表示パネル 14A ビジー表示灯 14B エラー表示灯 14C ビジー表示灯 14D エラー表示灯 14E 電源表示灯 15 コード引き出し口 20 アンプユニットのケース 20A 前面 20B 後面 20C 左側面 20D 右側面 20E 上面 20F 底面 22 スライド蓋 23 コネクタ窓 24 隣接結合コネクタ 801 ノート型パソコン 802 ドライバIC 803 インタフェースユニット内のCPU 804 AMPユニット内のCPU(CH1) 805 AMPユニット内のCPU(CH2) 1 interface unit 2 amplifier unit 3 electric cords (communication lines, etc.) 4 RS232C connector 5 Electric cord (light quantity signal line, etc.) 6 Round connector 7 Electric cord (power line, input line, output line, etc.) 8 Electric cord (light quantity signal line, etc.) 9 Round connector 10 Interface unit case 10A front 10B rear 10C left side 10D right side 10E upper surface 10F bottom 11 DIN rail fitting groove 12 Slide lid 13 transparent cover 14 Display panel 14A busy indicator light 14B Error indicator light 14C busy indicator light 14D error indicator 14E Power indicator 15 cord outlet 20 Amplifier unit case 20A front 20B rear 20C left side 20D right side 20E upper surface 20F bottom 22 Slide lid 23 Connector window 24 Adjacent coupling connector 801 Notebook PC 802 driver IC 803 CPU in interface unit CPU (CH1) in the 804 AMP unit CPU (CH2) in the 805 AMP unit
フロントページの続き (72)発明者 細田 亨 京都市下京区塩小路通堀川東入南不動堂町 801番地 オムロン株式会社内 Fターム(参考) 2F065 AA02 FF09 FF24 GG00 JJ00 PP22 QQ00 QQ28 SS06 5B025 AD04 AD05 AE00 5B076 BA00 BB06 Continued front page (72) Inventor Toru Hosoda Shimogyo-ku, Kyoto-shi Shioji-dori Horikawa Higashiiri Minamifudo-cho 801 OMRON Corporation F term (reference) 2F065 AA02 FF09 FF24 GG00 JJ00 PP22 QQ00 QQ28 SS06 5B025 AD04 AD05 AE00 5B076 BA00 BB06
Claims (17)
トと、アンプユニットとパソコン等のデータ処理装置と
の間に介在されて両者間における通信を中継するインタ
フェースユニットと、を有し、 アンプユニットには、 当該アンプユニットの機能を定義するファームウェアを
格納するプログラムメモリと、プログラムメモリ内のフ
ァームウェアを実行するマイクロプロセッサとを含むC
PUが内蔵されており、 プロクラムメモリ内には、書き換え許容領域と書き換え
禁止領域とが定義されており、 書き換え許容領域には、センサとしての機能を定義する
ファームウェアに相当するセンサプログラムが格納され
ており、 書き換え禁止領域には、通信を介してインタフェースユ
ニットから入手したプログラムによりセンサプログラム
の全部又は一部を書き換える機能を定義するファームウ
ェアに相当するブートプログラムが格納されており、 インタフェースユニットには、 当該インタフェースユニットの機能を定義するファーム
ウェアを格納するプログラムメモリと、プログラムメモ
リ内のファームウェアを実行するマイクロプロセッサと
を含むCPUが内蔵されており、 プログラムメモリ内には、パソコン等のデータ処理装置
からアンプユニットへの通信中継機能を定義するファー
ムウェアに相当するインタフェースプログラムが格納さ
れており、 それにより、インタフェースユニットを経由してパソコ
ン等のデータ処理装置から送り込んだプログラムによ
り、アンプユニット内のセンサプログラムの全部又は一
部を書き換え可能としたことを特徴とする光電センサシ
ステム。1. An amplifier unit of an amplifier-separated photoelectric sensor, and an interface unit that is interposed between the amplifier unit and a data processing device such as a personal computer and relays communication between the two units. , Including a program memory that stores firmware that defines the function of the amplifier unit, and a microprocessor that executes the firmware in the program memory
It has a built-in PU, and the program memory defines a rewritable area and a rewritable area. In the rewritable area, a sensor program corresponding to firmware that defines the function as a sensor is stored. In the rewrite prohibited area, a boot program corresponding to firmware that defines the function of rewriting all or part of the sensor program by the program obtained from the interface unit via communication is stored. A CPU including a program memory that stores firmware that defines the function of the interface unit and a microprocessor that executes the firmware in the program memory is built in. The program memory includes a data processing device such as a personal computer. The interface program corresponding to the firmware that defines the communication relay function from the amplifier unit to the amplifier unit is stored. Therefore, the program sent from the data processing device such as a personal computer via the interface unit causes the sensor program in the amplifier unit to be stored. A photoelectric sensor system characterized in that all or part of the above can be rewritten.
モリ内には、パソコン等のデータ処理装置から通信を介
して入手したプロクラムによりインタフェースプログラ
ムの全部又は一部を書き換える機能を定義するファーム
ウェアに相当するブートプロクラムが格納されており、 それにより、インタフェースユニットにも拡張性が付与
されていることを特徴とする請求項1に記載の光電セン
サシステム。2. The program memory of the interface unit stores a boot program corresponding to firmware defining a function of rewriting all or part of the interface program by a program obtained from a data processing device such as a personal computer through communication. The photoelectric sensor system according to claim 1, wherein the interface unit is provided with expandability.
モリ内には、アンプユニットからパソコン等のデータ処
理装置への通信中継機能を定義するファームウェアに相
当するインタフェースプログラムが格納されており、 それにより、アンプユニットにて生成された検出値等の
データをインタフェースユニットを経由してパソコン等
のデータ処理装置へと送り込み可能とした請求項1に記
載の光電センサシステム。3. The interface unit program memory stores an interface program corresponding to firmware that defines a communication relay function from the amplifier unit to a data processing device such as a personal computer. The photoelectric sensor system according to claim 1, wherein the generated data such as a detected value can be sent to a data processing device such as a personal computer through an interface unit.
ニットは、それぞれ、大量一括データ通信に適した第1
の通信プロトコルと少量逐次データ通信に適した第2の
通信プロトコルとの双方をサポートしており、ファーム
ウェアに相当するプログラムの送受信に際しては第1の
通信プロトコルを採用し、コマンドや検出値データの送
受信に際しては第2の通信プロトコルを採用する、こと
を特徴とする請求項3に記載の光電センサシステム。4. The amplifier unit and the interface unit are each a first unit suitable for mass data communication.
It supports both the first communication protocol and the second communication protocol suitable for small-volume sequential data communication. When transmitting and receiving the program equivalent to the firmware, the first communication protocol is adopted, and the command and the detection value data are transmitted and received. The photoelectric sensor system according to claim 3, wherein a second communication protocol is adopted in this case.
ムの書き換え中にあっては、センサヘッドユニットから
の投光を停止することを特徴とする請求項1に記載の光
電センサシステム。5. The photoelectric sensor system according to claim 1, wherein light emission from the sensor head unit is stopped during rewriting of the sensor program in the amplifier unit.
スユニットのケースとは並列に配置可能となされ、かつ
両ユニットが並列に配置されている状態において、アン
プユニットからセンサヘッドユニットへ向かう電気コー
ドの引き出し方向とインタフェースユニットからRS2
32C等のパソコン対応汎用コネクタへ向かう電気コー
ドの引き出し方向とは同一とされ、さらに、インタフェ
ースユニットのユーザと対面する上面には通信状態を示
す表示パネルが配置されている請求項1に記載の光電セ
ンサシステム。6. A case of the amplifier unit and a case of the interface unit can be arranged in parallel, and in a state where both units are arranged in parallel, a direction of withdrawing the electric cord from the amplifier unit to the sensor head unit and Interface unit to RS2
2. The photoelectric conversion device according to claim 1, wherein a direction of pulling out an electric cord toward a general-purpose connector for a personal computer such as 32C is the same, and a display panel showing a communication state is arranged on the upper surface of the interface unit facing the user. Sensor system.
トであって、 当該アンプユニットの機能を定義するファームウェアを
格納するプログラムメモリと、プログラムメモリ内のフ
ァームウェアを実行するマイクロプロセッサとを含むC
PUが内蔵されており、 プロクラムメモリ内には、書き換え許容領域と書き換え
禁止領域とが定義されており、 書き換え許容領域には、センサとしての機能を定義する
ファームウェアに相当するセンサプログラムが格納され
ており、 書き換え禁止領域には、通信を介して入手したプログラ
ムによりセンサプログラムの全部又は一部を書き換える
機能を定義するファームウェアに相当するブートプログ
ラムが格納されており、 それにより、パソコン等のデータ処理装置から通信を介
して送り込んだプログラムにより、アンプユニット内の
センサプログラムの全部又は一部を書き換え可能とした
ことを特徴とするアンプユニット。7. An amplifier unit of an amplifier-separated photoelectric sensor, which includes a program memory that stores firmware that defines the function of the amplifier unit, and a microprocessor that executes the firmware in the program memory.
It has a built-in PU, and the program memory defines a rewritable area and a rewritable area. In the rewritable area, a sensor program corresponding to firmware that defines the function as a sensor is stored. In the rewrite prohibited area, a boot program corresponding to the firmware that defines the function of rewriting all or part of the sensor program by the program obtained through communication is stored. An amplifier unit characterized in that all or a part of a sensor program in the amplifier unit can be rewritten by a program sent from the device via communication.
ムの書き換え中にあっては、センサヘッドユニットから
の投光を停止することを特徴とする請求項7に記載のア
ンプユニット。8. The amplifier unit according to claim 7, wherein the light emission from the sensor head unit is stopped during the rewriting of the sensor program in the amplifier unit.
理装置との間に介在されて両者間における通信を中継す
るインタフェースユニットであって、 当該インタフェースユニットの機能を定義するファーム
ウェアを格納するプログラムメモリと、プログラムメモ
リ内のファームウェアを実行するマイクロプロセッサと
を含むCPUが内蔵されており、かつインタフェースユ
ニットのプログラムメモリ内には、パソコン等のデータ
処理装置から通信を介して入手したプロクラムによりイ
ンタフェースプログラムの全部又は一部を書き換える機
能を定義するファームウェアに相当するブートプロクラ
ムが格納されており、 それにより、アンプユニットの構成に応じた拡張性が付
与されていることを特徴とする請求項1に記載のインタ
フェースユニット。9. An interface unit which is interposed between an amplifier unit and a data processing device such as a personal computer and relays communication between them, and a program memory for storing firmware defining the function of the interface unit, A CPU including a microprocessor for executing the firmware in the program memory is built in, and the interface unit program memory has all or all of the interface programs according to a program obtained through communication from a data processing device such as a personal computer. 2. The interface unit according to claim 1, wherein a boot program corresponding to firmware that defines a function of rewriting a part of the program is stored, thereby providing expandability according to the configuration of the amplifier unit. Door.
ットからパソコン等のデータ処理装置への通信中継機能
を定義するファームウェアに相当するインタフェースプ
ログラムが格納されており、 それにより、アンプユニットにて生成された検出値等の
データをインタフェースユニットを経由してパソコン等
のデータ処理装置へと送り込み可能とした請求項9に記
載のインタフェースユニット。10. The program memory stores an interface program corresponding to firmware that defines a communication relay function from the amplifier unit to a data processing device such as a personal computer, and is thereby generated by the amplifier unit. The interface unit according to claim 9, wherein data such as a detected value can be sent to a data processing device such as a personal computer via the interface unit.
信プロトコルと少量逐次データ通信に適した第2の通信
プロトコルとの双方をサポートしており、ファームウェ
アに相当するプログラムの送受信に際しては第1の通信
プロトコルを採用し、コマンドや検出値データの送受信
に際しては第2の通信プロトコルを採用する、ことを特
徴とする請求項10に記載のインタフェースユニット。11. A first communication protocol suitable for large-quantity batch data communication and a second communication protocol suitable for small-quantity sequential data communication are supported, and the first communication protocol is used for transmitting and receiving a program corresponding to firmware. 11. The interface unit according to claim 10, wherein the communication protocol is adopted, and the second communication protocol is adopted when transmitting and receiving the command and the detection value data.
有し、かつインタフェースユニットからRS232C等
のパソコン対応汎用コネクタへ向かう電気コードのケー
スからの引き出し方向は、アンプユニットからセンサヘ
ッドユニットへ向かう電気コードの引き出し方向と同一
とされ、さらに、ユーザと対面するケース上面には通信
状態を示す表示パネルが配置されている請求項9〜11
のいずれかに記載のインタフェースユニット。12. An electric cord having a case of the same standard as the amplifier unit and extending from the interface unit to a general-purpose connector compatible with a personal computer such as RS232C is pulled out from the case of the electric cord extending from the amplifier unit to the sensor head unit. 12. A display panel which is in the same direction as the pull-out direction and is arranged on the upper surface of the case facing the user to indicate the communication state.
Interface unit according to any one of.
と、アンプユニットとパソコン等のデータ処理装置との
間に介在されて両者間における通信を中継するインタフ
ェースユニットと、を有し、 アンプユニットには、 当該アンプユニットの機能を定義するファームウェアを
格納するプログラムメモリと、プログラムメモリ内のフ
ァームウェアを実行するマイクロプロセッサとを含むC
PUが内蔵されており、 プロクラムメモリ内には、書き換え許容領域と書き換え
禁止領域とが定義されており、 書き換え許容領域には、センサとしての機能を定義する
ファームウェアに相当するセンサプログラムが格納され
ており、 書き換え禁止領域には、通信を介してインタフェースユ
ニットから入手したプログラムによりセンサプログラム
の全部又は一部を書き換える機能を定義するファームウ
ェアに相当するブートプログラムが格納されており、 インタフェースユニットには、 当該インタフェースユニットの機能を定義するファーム
ウェアを格納するプログラムメモリと、プログラムメモ
リ内のファームウェアを実行するマイクロプロセッサと
を含むCPUが内蔵されており、 プログラムメモリ内には、パソコン等のデータ処理装置
からアンプユニットへの通信中継機能を定義するファー
ムウェアに相当するインタフェースプログラムが格納さ
れており、 それにより、インタフェースユニットを経由してパソコ
ン等のデータ処理装置から送り込んだプログラムによ
り、アンプユニット内のセンサプログラムの全部又は一
部を書き換え可能としたことを特徴とするセンサシステ
ム。13. An amplifier unit of an amplifier-separated type sensor, and an interface unit interposed between the amplifier unit and a data processing device such as a personal computer to relay communication between them, and the amplifier unit includes: C including a program memory that stores firmware that defines the function of the amplifier unit, and a microprocessor that executes the firmware in the program memory
It has a built-in PU, and the program memory defines a rewritable area and a rewritable area. In the rewritable area, a sensor program corresponding to firmware that defines the function as a sensor is stored. In the rewrite prohibited area, a boot program corresponding to firmware that defines the function of rewriting all or part of the sensor program by the program obtained from the interface unit via communication is stored. A CPU including a program memory that stores firmware that defines the function of the interface unit and a microprocessor that executes the firmware in the program memory is built in. The program memory includes a data processing device such as a personal computer. The interface program corresponding to the firmware that defines the communication relay function from the amplifier unit to the amplifier unit is stored. Therefore, the program sent from the data processing device such as a personal computer via the interface unit causes the sensor program in the amplifier unit to be stored. A sensor system characterized in that all or part of the above can be rewritten.
メモリ内には、パソコン等のデータ処理装置から通信を
介して入手したプロクラムによりインタフェースプログ
ラムの全部又は一部を書き換える機能を定義するファー
ムウェアに相当するブートプロクラムが格納されてお
り、 それにより、インタフェースユニットに拡張性が付与さ
れていることを特徴とする請求項13に記載のセンサシ
ステム。14. A boot program corresponding to firmware that defines a function of rewriting all or part of an interface program by a program obtained through communication from a data processing device such as a personal computer is stored in the program memory of the interface unit. 14. The sensor system according to claim 13, wherein the interface unit is provided with expandability.
メモリ内には、アンプユニットからパソコン等のデータ
処理装置への通信中継機能を定義するファームウェアに
相当するインタフェースプログラムが格納されており、 それにより、アンプユニットにて生成された検出値等の
データをインタフェースユニットを経由してパソコン等
のデータ処理装置へと送り込み可能とした請求項13に
記載のセンサシステム。15. The interface unit program memory stores an interface program corresponding to firmware that defines a communication relay function from the amplifier unit to a data processing device such as a personal computer. 14. The sensor system according to claim 13, wherein the generated data such as detected values can be sent to a data processing device such as a personal computer via an interface unit.
ユニットは、それぞれ、大量一括データ通信に適した第
1の通信プロトコルと少量逐次データ通信に適した第2
の通信プロトコルとの双方をサポートしており、ファー
ムウェアに相当するプログラムの送受信に際しては第1
の通信プロトコルを採用し、コマンドや検出値データの
送受信に際しては第2の通信プロトコルを採用する、こ
とを特徴とする請求項15に記載のセンサシステム。16. The amplifier unit and the interface unit respectively include a first communication protocol suitable for large-scale batch data communication and a second communication protocol suitable for small-quantity sequential data communication.
It supports both the communication protocols of
16. The sensor system according to claim 15, wherein the communication protocol is used, and the second communication protocol is used when transmitting and receiving the command and the detection value data.
ースユニットのケースとは並列に配置可能となされ、か
つ両ユニットが並列に配置されている状態において、ア
ンプユニットからセンサヘッドユニットへ向かう電気コ
ードの引き出し方向とインタフェースユニットからRS
232C等のパソコン対応汎用コネクタへ向かう電気コ
ードの引き出し方向とは同一とされ、さらに、インタフ
ェースユニットのユーザと対面する上面には通信状態を
示す表示パネルが配置されている請求項13に記載のセ
ンサシステム。17. A case of the amplifier unit and a case of the interface unit can be arranged in parallel, and in a state where both units are arranged in parallel, a direction of withdrawing an electric cord from the amplifier unit to the sensor head unit and Interface unit to RS
14. The sensor according to claim 13, wherein a direction of drawing out an electric cord toward a general-purpose personal computer connector such as 232C is the same, and a display panel showing a communication state is arranged on the upper surface of the interface unit facing the user. system.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001292634A JP2003099278A (en) | 2001-09-25 | 2001-09-25 | Photoelectric sensor system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001292634A JP2003099278A (en) | 2001-09-25 | 2001-09-25 | Photoelectric sensor system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2003099278A true JP2003099278A (en) | 2003-04-04 |
Family
ID=19114560
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2001292634A Pending JP2003099278A (en) | 2001-09-25 | 2001-09-25 | Photoelectric sensor system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2003099278A (en) |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| GB2409740A (en) * | 2003-12-23 | 2005-07-06 | Agilent Technologies Inc | A measurement interface for transferring bootstrap information |
| JP2005326387A (en) * | 2003-09-19 | 2005-11-24 | Omron Corp | Continuous sensor system |
| JP2006018423A (en) * | 2004-06-30 | 2006-01-19 | Omron Corp | Amplifier discrete type visual sensor |
| JP2006129465A (en) * | 2004-09-30 | 2006-05-18 | Sunx Ltd | Detection switch |
| US7092842B2 (en) | 2003-09-19 | 2006-08-15 | Omron Corporation | Multiple sensor system |
| CN100456793C (en) * | 2004-02-13 | 2009-01-28 | 夏普株式会社 | Communication method, communication system, and information receiving device used in the communication system |
| US8628506B2 (en) | 2008-06-30 | 2014-01-14 | Kimberly-Clark Worldwide, Inc. | Multifunctional monitoring device for absorbent articles |
| WO2019244751A1 (en) * | 2018-06-19 | 2019-12-26 | Jig-Saw株式会社 | Device control method, control apparatus, and system |
-
2001
- 2001-09-25 JP JP2001292634A patent/JP2003099278A/en active Pending
Cited By (20)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP2418458A2 (en) | 2003-09-19 | 2012-02-15 | Omron Corporation | Multiple sensor system |
| JP2005326387A (en) * | 2003-09-19 | 2005-11-24 | Omron Corp | Continuous sensor system |
| JP2012093360A (en) * | 2003-09-19 | 2012-05-17 | Omron Corp | Expansion unit to be applied to displacement sensor system |
| EP2418458A3 (en) * | 2003-09-19 | 2012-03-21 | Omron Corporation | Multiple sensor system |
| US7092842B2 (en) | 2003-09-19 | 2006-08-15 | Omron Corporation | Multiple sensor system |
| US7305321B2 (en) | 2003-09-19 | 2007-12-04 | Omron Corporation | Multiple sensor system |
| US7333912B2 (en) | 2003-09-19 | 2008-02-19 | Omron Corporation | Multiple sensor system |
| EP1517115A3 (en) * | 2003-09-19 | 2009-03-25 | Omron Corporation | Multiple sensor system |
| GB2409740B (en) * | 2003-12-23 | 2007-01-17 | Agilent Technologies Inc | A measurement interface |
| DE102004036784B4 (en) * | 2003-12-23 | 2007-01-25 | Agilent Technologies, Inc. (n.d.Ges.d.Staates Delaware), Palo Alto | Measuring device, interface method for a measuring device and input system for a measuring device |
| US7437486B2 (en) | 2003-12-23 | 2008-10-14 | Agilent Technologies, Inc. | Configurable measurement interface coupled to a front-end subsystem and a back-end subsystem for receiving a set of bootstrap information |
| GB2409740A (en) * | 2003-12-23 | 2005-07-06 | Agilent Technologies Inc | A measurement interface for transferring bootstrap information |
| CN100456793C (en) * | 2004-02-13 | 2009-01-28 | 夏普株式会社 | Communication method, communication system, and information receiving device used in the communication system |
| JP2006018423A (en) * | 2004-06-30 | 2006-01-19 | Omron Corp | Amplifier discrete type visual sensor |
| JP2006129465A (en) * | 2004-09-30 | 2006-05-18 | Sunx Ltd | Detection switch |
| US8628506B2 (en) | 2008-06-30 | 2014-01-14 | Kimberly-Clark Worldwide, Inc. | Multifunctional monitoring device for absorbent articles |
| WO2019244751A1 (en) * | 2018-06-19 | 2019-12-26 | Jig-Saw株式会社 | Device control method, control apparatus, and system |
| JP2019219873A (en) * | 2018-06-19 | 2019-12-26 | Jig−Saw株式会社 | Device control method, control apparatus, and system |
| TWI740159B (en) * | 2018-06-19 | 2021-09-21 | 日商基索股份有限公司 | Machine control method, control device and system |
| US11928453B2 (en) | 2018-06-19 | 2024-03-12 | Jig-Saw Inc. | Control method, control device, and system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6786764B2 (en) | Adapters, computer systems, and methods that utilize a signal pass-through | |
| JP5346726B2 (en) | Continuous sensor system, network unit, and sensor unit | |
| US8013616B2 (en) | Type A USB receptacle with plug detection | |
| JP5589543B2 (en) | Video signal transmission apparatus and signal transmission program | |
| JP5349185B2 (en) | Photoelectric sensor and photoelectric sensor system | |
| JP2003099278A (en) | Photoelectric sensor system | |
| US8346510B2 (en) | Continuously-arranged sensor system, network unit, and sensor unit | |
| JP5096382B2 (en) | Continuous sensor system, network unit, and sensor unit | |
| CN101393542B (en) | Embedded equipment and method for supporting USB interface by GPIO terminal port | |
| US7124235B2 (en) | USB apparatus with switchable host/hub functions and control method thereof | |
| CN100590441C (en) | Detection method and detection device for display device connection state | |
| CN101296132A (en) | Method, system and device for monitoring network interface card | |
| EP2876515B1 (en) | System and method for an input-driven, switching-enabled, display device for an automation controller | |
| CN102298416A (en) | Server system | |
| KR0147782B1 (en) | Method and apparatus for controlling portable terminals | |
| KR20060111202A (en) | Display apparatus and control method thereof, communication system | |
| JP2003337988A (en) | Twin photoelectric sensor system | |
| JP2005516309A (en) | Software upgrade system for home appliances | |
| JP4058589B2 (en) | Linked sensor system | |
| CN1893605B (en) | Electronic device and control method thereof | |
| CN210804048U (en) | Power distribution parameter reader-writer | |
| KR20030027975A (en) | Wireless Modem for Remote Telemetering | |
| US20060195272A1 (en) | Real-time measuring system used for motor driver | |
| KR20040060363A (en) | Apparatus and method for indicating connection state of input/output cable | |
| CN202522885U (en) | Wireless remote aquarium controller |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20050708 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050714 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050912 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20051007 |