JPH06201413A - Sensor drive - Google Patents
Sensor driveInfo
- Publication number
- JPH06201413A JPH06201413A JP34845492A JP34845492A JPH06201413A JP H06201413 A JPH06201413 A JP H06201413A JP 34845492 A JP34845492 A JP 34845492A JP 34845492 A JP34845492 A JP 34845492A JP H06201413 A JPH06201413 A JP H06201413A
- Authority
- JP
- Japan
- Prior art keywords
- sensor
- sensor device
- data
- program
- data table
- 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
- Testing Or Calibration Of Command Recording Devices (AREA)
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
(57)【要約】
【目的】センサの追加や変更に容易に対応しうるセンサ
駆動装置を得る。
【構成】CPU10によるセンサデバイス駆動用の汎用
プログラム20と、各センサデバイス16の駆動等に必
要な固有データからなるデータテーブル22とを用意
し、センサの追加や変更の場合にはデータテーブル22
の変更だけで対応できるように構成する。
(57) [Abstract] [Purpose] To obtain a sensor drive device capable of easily responding to addition or modification of a sensor. A general-purpose program 20 for driving a sensor device by a CPU 10 and a data table 22 composed of unique data necessary for driving each sensor device 16 are prepared, and a data table 22 is added when a sensor is added or changed.
It is configured so that it can be handled only by changing.
Description
【0001】[0001]
【産業上の利用分野】本発明は、センサ駆動装置に係
り、特にセンサの追加や変更に容易に対応しうるものに
関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a sensor driving device, and more particularly to a device capable of easily adding or changing a sensor.
【0002】[0002]
【従来の技術】最近、センサから計測データを直接収集
してコンピュータに入力し、所定のデータ処理を行い、
実時間でその結果を出力するシステムが考案されてい
る。このシステムにおけるセンサ駆動装置は、従来、一
般に、図4に示すように構成されている。すなわち、C
PU10と外部のセンサデバイス16とはセンサインタ
フェイスボード14を介して接続され、CPU10はメ
モリ12に格納されているプログラムに従ってセンサデ
バイス16を駆動させる(センサの制御とデータ収
集)。そして、複数のセンサデバイス16を駆動する場
合には、センサデバイス16ごとに個別のセンサインタ
フェイスボード14を使用し、個別のデバイスアドレス
を設定する。2. Description of the Related Art Recently, measurement data is directly collected from a sensor and input to a computer to perform predetermined data processing,
A system has been devised that outputs the result in real time. The sensor drive device in this system has conventionally been generally configured as shown in FIG. That is, C
The PU 10 and the external sensor device 16 are connected via the sensor interface board 14, and the CPU 10 drives the sensor device 16 in accordance with a program stored in the memory 12 (sensor control and data collection). When driving a plurality of sensor devices 16, a separate sensor interface board 14 is used for each sensor device 16 and a separate device address is set.
【0003】こうしたセンサデバイスの駆動は、通常、
メモリ12内のプログラムに従ってCPU10からセン
サインタフェイスボード14にセンサデバイス16に応
じた指令を出すことによってなされる。このときの信号
データの流れは図5に示す通りである。すなわち、CP
U10は、制御プログラムに従ってセンサインタフェイ
スボード14に駆動するセンサデバイス16に応じたセ
ンサ起動指令を出力し、そのセンサインタフェイスボー
ド14を通して当該センサデバイス16を制御する。当
該センサデバイス16によって収集された計測データは
センサインタフェイスボード14を通してCPU10に
伝達され、CPU10はデータ処理プログラムに従って
当該センサデバイス16に応じた計測データの演算処理
を実行する。したがって、センサの駆動方式には汎用性
がある。Driving such a sensor device is usually
This is done by issuing a command according to the sensor device 16 from the CPU 10 to the sensor interface board 14 according to the program in the memory 12. The flow of signal data at this time is as shown in FIG. That is, CP
The U10 outputs a sensor activation command corresponding to the sensor device 16 driven to the sensor interface board 14 according to the control program, and controls the sensor device 16 through the sensor interface board 14. The measurement data collected by the sensor device 16 is transmitted to the CPU 10 through the sensor interface board 14, and the CPU 10 executes arithmetic processing of the measurement data according to the sensor device 16 according to the data processing program. Therefore, the driving method of the sensor has versatility.
【0004】[0004]
【発明が解決しようとする課題】しかしながら、このよ
うな従来のセンサ駆動方式にあっては、メモリ12内の
プログラムとセンサインタフェイスボード14とデバイ
スアドレスとがそれぞれ1対1に対応しているため、セ
ンサの追加や変更を行う場合には、センサデバイスの個
数およびその種類ならびにそれらのデータ演算方式に合
わせてメモリ12内のプログラム(制御プログラムとデ
ータ処理プログラム)を変更しなければならない。However, in such a conventional sensor driving system, the program in the memory 12, the sensor interface board 14, and the device address correspond to each other on a one-to-one basis. When adding or changing sensors, the programs (control program and data processing program) in the memory 12 must be changed according to the number and types of sensor devices and their data operation methods.
【0005】本発明は、このような従来技術の問題点に
鑑みてなされたものであり、プログラムを変更せずに容
易にセンサの追加や変更に対応しうるセンサ駆動装置を
提供することを目的とする。The present invention has been made in view of the above problems of the prior art, and an object of the present invention is to provide a sensor drive device capable of easily adding or changing a sensor without changing a program. And
【0006】[0006]
【課題を解決するための手段】上記目的を達成するため
の本発明は、センサデバイスの制御と計測データの演算
を行う制御演算手段と、当該制御演算手段に接続された
すべてのセンサデバイスに共通して使用可能な前記制御
演算手段に適合する汎用プログラムを格納する第1記憶
手段と、各センサデバイスの駆動に必要な固有データの
テーブルを格納する第2記憶手段とを有することを特徴
とする。The present invention for achieving the above object is common to control arithmetic means for controlling a sensor device and arithmetic operation of measurement data, and all sensor devices connected to the control arithmetic means. And a second storage means for storing a table of unique data necessary for driving each sensor device. .
【0007】[0007]
【作用】このように構成した本発明にあっては、選択さ
れたセンサデバイスを駆動させる際に、制御演算手段
は、第1記憶手段に格納されている汎用プログラムに従
って、第2記憶手段に格納されているデータテーブル中
の当該センサデバイスに対応する固有データをルックア
ップしながら当該センサデバイスを制御して計測データ
を収集し所定の演算を実行する。したがって、センサデ
バイスの追加や変更を行う場合にも、汎用プログラムを
変更することなくデータテーブルの変更を行うだけで容
易に対応することができる。In the present invention thus constructed, when the selected sensor device is driven, the control calculation means is stored in the second storage means in accordance with the general-purpose program stored in the first storage means. While looking up the unique data corresponding to the sensor device in the stored data table, the sensor device is controlled to collect measurement data and execute a predetermined calculation. Therefore, even when the sensor device is added or changed, it can be easily dealt with by simply changing the data table without changing the general-purpose program.
【0008】[0008]
【実施例】以下、本発明の一実施例を図面に基づいて説
明する。図1は本発明の一実施例によるセンサ駆動装置
の概略構成図、図2は本実施例のデータテーブルの一例
を示す図、図3は本実施例の動作を示すフローチャート
である。なお、図4と共通する部分には同一の符号を付
してある。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a schematic configuration diagram of a sensor driving device according to an embodiment of the present invention, FIG. 2 is a diagram showing an example of a data table of the present embodiment, and FIG. 3 is a flowchart showing an operation of the present embodiment. The same parts as those in FIG. 4 are designated by the same reference numerals.
【0009】このセンサ駆動装置は、図1に示すよう
に、センサデバイス16の制御とこれから得られた計測
データを演算する制御演算手段であるCPU10と、こ
のCPU10により実行される汎用プログラム20を格
納する第1記憶手段12Aと各センサデバイス16の駆
動に必要な固有データが設定されたデータテーブル22
を格納する第2記憶手段12Bとをもつメモリ12と、
CPU10と各センサデバイス16とを結びつけるセン
サインタフェイスボード14とを有する。センサインタ
フェイスボード14は各センサデバイス16ごとに設け
られている。本実施例では、二次元画像センサ16Aに
加えて一次元測距センサ16Bを追加した例を図示して
いる。二次元画像センサ16Aはセンサインタフェイス
ボード14Aを介してCPU10に接続され、また、一
次元測距センサ16Bはセンサインタフェイスボード1
4Bを介してCPU10に接続されている。そして、こ
れらCPU10やメモリ12、センサインタフェイスボ
ード14A,Bはそれぞれ基板の形でラック18内に収
納されている。As shown in FIG. 1, this sensor driving device stores a CPU 10 which is a control calculation means for controlling the sensor device 16 and calculating measurement data obtained from this, and a general-purpose program 20 executed by this CPU 10. A data table 22 in which unique data necessary for driving the first storage unit 12A and each sensor device 16 is set.
A memory 12 having a second storage means 12B for storing
It has a sensor interface board 14 that connects the CPU 10 and each sensor device 16. The sensor interface board 14 is provided for each sensor device 16. In the present embodiment, an example in which a one-dimensional distance measuring sensor 16B is added in addition to the two-dimensional image sensor 16A is shown. The two-dimensional image sensor 16A is connected to the CPU 10 via the sensor interface board 14A, and the one-dimensional distance measuring sensor 16B is the sensor interface board 1.
It is connected to the CPU 10 via 4B. The CPU 10, the memory 12, and the sensor interface boards 14A and 14B are respectively housed in the rack 18 in the form of substrates.
【0010】CPU10は、メモリ12内の汎用プログ
ラム20に従って、同じメモリ12内のデータテーブル
22をルックアップしながら、駆動するセンサデバイス
16の制御と計測データの演算処理を行う。汎用プログ
ラム20は、どのセンサデバイス16にも共通して使え
るプログラムであって、センサデバイス16の制御なら
びにデータ演算処理に関してCPU10に行わせるべき
処理とその手順が記述されている。また、データテーブ
ル22はセンサデバイス16の制御とデータ収集・演算
に必要な固有データを、接続されているセンサデバイス
16のすべてについて設定したものであって、図2にそ
のデータテーブルの一例を示してある。図2に示すよう
に、データテーブル22には、使用するセンサデバイス
16の設定に必要なパラメータ(データリードアドレ
ス、リード方式、データ長、ワークエリアアドレス)
や、センサデバイス16を接続するアドレス(デバイス
アドレス)、センサ16の種類(センサタイプ)、取り
込んだデータから何を算出するかを示すパラメータ(演
算方式)等があらかじめ設定されている。センサデバイ
ス16を追加しまたは変更する場合には、これに合わせ
てデータテーブル22を変更する。つまり、センサデバ
イス16を追加する場合には追加センサデバイス分の固
有データをデータテーブル22に追加し、またセンサデ
バイス16を変更する場合にはデータテーブル22中の
変更部分のデータを書き替える。このとき、汎用プログ
ラム20の変更は一切必要ない。The CPU 10 controls the sensor device 16 to be driven and arithmetically processes the measurement data while looking up the data table 22 in the same memory 12 according to the general-purpose program 20 in the memory 12. The general-purpose program 20 is a program that can be used in common with any sensor device 16, and describes processes and procedures to be performed by the CPU 10 regarding control of the sensor device 16 and data arithmetic processing. Further, the data table 22 is set with specific data necessary for control of the sensor device 16 and data collection / calculation for all the connected sensor devices 16, and FIG. 2 shows an example of the data table. There is. As shown in FIG. 2, the data table 22 has parameters (data read address, read method, data length, work area address) necessary for setting the sensor device 16 to be used.
An address for connecting the sensor device 16 (device address), a type of the sensor 16 (sensor type), a parameter (calculation method) indicating what to calculate from the captured data, and the like are set in advance. When the sensor device 16 is added or changed, the data table 22 is changed accordingly. That is, when the sensor device 16 is added, the unique data for the additional sensor device is added to the data table 22, and when the sensor device 16 is changed, the changed data in the data table 22 is rewritten. At this time, there is no need to change the general-purpose program 20.
【0011】このように構成されたセンサ駆動装置の動
作を図3のフローチャートに基づいて説明するが、ここ
では、二次元画像センサ16Aを駆動する場合を例にと
って説明する。The operation of the sensor driving device thus configured will be described with reference to the flow chart of FIG. 3, but here, the case of driving the two-dimensional image sensor 16A will be described as an example.
【0012】まず、CPU10は、外部入力信号または
プログラムに基づいて、駆動するセンサデバイス16を
選択する(S1)。ここでは、二次元画像センサ16A
を選択する。それから、汎用プログラム20を読み込み
(S2)、データテーブル22中の二次元画像センサ1
6Aの部分をルックアップしながら(S3)、制御プロ
グラムに従って二次元画像センサ16Aの制御を実行す
る(S4)。具体的には、二次元画像センサ16Aに対
してデータ取り起動信号ならびにデータ取りに必要なパ
ラメータ設定信号をセンサインタフェイスボード14A
を通じて出力して、二次元画像センサ16Aの制御を行
なう。それから、二次元画像センサ16Aが収集した計
測データをセンサインタフェイスボード14Aを通じて
取り込む(S5)。それから、CPU10は、取り込ん
だ計測データに対して、データテーブル22をルックア
ップしつつデータ処理プログラムに従って、例えば穴中
心座標値(x,y)を求める演算処理を実行する(S
6)。この演算結果は制御指令またはレポートの形で出
力される。以上の動作を、駆動する所定の数のセンサデ
バイス16すべてについて実行する(S7)。なお、一
次元測距センサ16Bについては、被測定物との間の直
線距離Lが計測される。First, the CPU 10 selects the sensor device 16 to be driven based on an external input signal or program (S1). Here, the two-dimensional image sensor 16A
Select. Then, the general-purpose program 20 is read (S2), and the two-dimensional image sensor 1 in the data table 22 is read.
While looking up the portion 6A (S3), the two-dimensional image sensor 16A is controlled according to the control program (S4). Specifically, the sensor interface board 14A sends a data acquisition start signal and a parameter setting signal necessary for data acquisition to the two-dimensional image sensor 16A.
To output the output through the two-dimensional image sensor 16A. Then, the measurement data collected by the two-dimensional image sensor 16A is loaded through the sensor interface board 14A (S5). Then, the CPU 10 performs an arithmetic process on the captured measurement data according to a data processing program while looking up the data table 22 to obtain a hole center coordinate value (x, y), for example (S).
6). The calculation result is output in the form of a control command or a report. The above operation is executed for all of the predetermined number of driven sensor devices 16 (S7). The linear distance L between the one-dimensional distance measuring sensor 16B and the object to be measured is measured.
【0013】このように、本実施例によれば、CPU1
0によるセンサデバイス16の駆動方式について、従来
のように直接プログラムによりセンサデバイス16にア
クセスするのではなく、どのセンサデバイス16にも共
通の汎用プログラム20のほか各センサデバイス16の
駆動に必要な固有データからなるデータテーブル22を
用意し、これら汎用プログラム20とデータテーブル2
2とを組み合わせる方式としたので、センサデバイス1
6の追加や変更を行う場合にも、汎用プログラム20を
一切変更することなくデータテーブル22の変更を行う
だけで容易に対応することができる。As described above, according to this embodiment, the CPU 1
Regarding the driving method of the sensor device 16 by 0, instead of directly accessing the sensor device 16 by a program as in the conventional case, a general program 20 common to any sensor device 16 and a unique program necessary for driving each sensor device 16 are provided. A data table 22 consisting of data is prepared, and these general-purpose program 20 and data table 2 are prepared.
Since the method of combining with 2 is adopted, the sensor device 1
Even in the case of adding or modifying 6, the general-purpose program 20 can be easily dealt with by simply modifying the data table 22.
【0014】[0014]
【発明の効果】以上述べたように本発明によれば、プロ
グラムの変更なしにデータテーブルの変更だけでセンサ
デバイスの追加や変更に対応できるようになる。As described above, according to the present invention, the addition or change of the sensor device can be coped with only by changing the data table without changing the program.
【図1】本発明の一実施例によるセンサ駆動装置の概略
構成図である。FIG. 1 is a schematic configuration diagram of a sensor driving device according to an embodiment of the present invention.
【図2】本実施例のデータテーブルの一例を示す図であ
る。FIG. 2 is a diagram showing an example of a data table of the present embodiment.
【図3】本実施例の動作を示すフローチャートである。FIG. 3 is a flowchart showing the operation of this embodiment.
【図4】従来のセンサ駆動装置の一例を示す概略構成図
である。FIG. 4 is a schematic configuration diagram showing an example of a conventional sensor driving device.
【図5】図4の装置における信号データの流れを示すブ
ロック図である。5 is a block diagram showing a flow of signal data in the apparatus of FIG.
10…CPU(制御演算手段) 12…メモリ(第1記憶手段、第2記憶手段) 14…センサインタフェイスボード 16…センサデバイス 20…汎用プログラム 22…データテーブル 10 ... CPU (control calculation means) 12 ... Memory (first storage means, second storage means) 14 ... Sensor interface board 16 ... Sensor device 20 ... General-purpose program 22 ... Data table
Claims (1)
を行う制御演算手段と、 当該制御演算手段に接続されたすべてのセンサデバイス
に共通して使用可能な前記制御演算手段に適合する汎用
プログラムを格納する第1記憶手段と、 各センサデバイスの駆動に必要な固有データを格納する
第2記憶手段と、 を有することを特徴とするセンサ駆動装置。1. A control calculation means for controlling a sensor device and calculating measurement data, and a general-purpose program adapted to the control calculation means that can be commonly used by all the sensor devices connected to the control calculation means. A sensor drive device comprising: a first storage means for storing; and a second storage means for storing unique data necessary for driving each sensor device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP34845492A JPH06201413A (en) | 1992-12-28 | 1992-12-28 | Sensor drive |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP34845492A JPH06201413A (en) | 1992-12-28 | 1992-12-28 | Sensor drive |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH06201413A true JPH06201413A (en) | 1994-07-19 |
Family
ID=18397118
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP34845492A Pending JPH06201413A (en) | 1992-12-28 | 1992-12-28 | Sensor drive |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH06201413A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2004059401A1 (en) * | 2002-11-29 | 2004-07-15 | Siemens Aktiengesellschaft | Method and device for analysing a technical system, in addition to a computer program product |
| JP2022090284A (en) * | 2020-12-07 | 2022-06-17 | 株式会社日立製作所 | Sensing system and detection method |
-
1992
- 1992-12-28 JP JP34845492A patent/JPH06201413A/en active Pending
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2004059401A1 (en) * | 2002-11-29 | 2004-07-15 | Siemens Aktiengesellschaft | Method and device for analysing a technical system, in addition to a computer program product |
| US7289940B2 (en) | 2002-11-29 | 2007-10-30 | Siemens Aktiengesellschaft | Method and device for analyzing a technical system, in addition to a computer program product |
| JP2022090284A (en) * | 2020-12-07 | 2022-06-17 | 株式会社日立製作所 | Sensing system and detection method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH07311610A (en) | Coordinate system setting method using visual sensor | |
| US4661899A (en) | Numerical control system | |
| US6662082B2 (en) | System for operating a robot with easy programming | |
| JPH06201413A (en) | Sensor drive | |
| JP6859965B2 (en) | Setting support device and setting support program | |
| CN113348415B (en) | Device state reproducing device, method and storage medium | |
| JP3307553B2 (en) | Measuring method and measuring device for numerically controlled machine tool | |
| JP2001074623A (en) | Test apparatus control method and test apparatus | |
| JPH0579927A (en) | Optical measuring method for stress | |
| JP2799009B2 (en) | Programmable controller | |
| JP3213958B2 (en) | Cycle time measuring device | |
| JPS58119006A (en) | Program control method of numerical control machine tool | |
| JPH03154104A (en) | Positioning controller | |
| JPH0614330B2 (en) | Microprocessor device | |
| JPH061461B2 (en) | CPU control method | |
| JPH0799487B2 (en) | Communication method in numerical control device | |
| JPH0773819B2 (en) | NC device | |
| JPH0594215A (en) | Servomotor controller | |
| JPH02308310A (en) | Measuring method for positioning time | |
| JP3101358U (en) | Load measuring device | |
| JPS63116214A (en) | Programming device | |
| JPH0681029U (en) | Digitizer | |
| JPH0670763B2 (en) | Controller self-diagnosis device | |
| JPH0682285B2 (en) | Programmable controller | |
| JPH0782378B2 (en) | Numerical control device |