JP3409242B2 - Sensor device remote control method, sensor control system, and sensor device - Google Patents

Sensor device remote control method, sensor control system, and sensor device

Info

Publication number
JP3409242B2
JP3409242B2 JP32631497A JP32631497A JP3409242B2 JP 3409242 B2 JP3409242 B2 JP 3409242B2 JP 32631497 A JP32631497 A JP 32631497A JP 32631497 A JP32631497 A JP 32631497A JP 3409242 B2 JP3409242 B2 JP 3409242B2
Authority
JP
Japan
Prior art keywords
signal
sensor device
sensor
control
control signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP32631497A
Other languages
Japanese (ja)
Other versions
JPH11161303A (en
Inventor
達也 松永
新 中村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Omron Corp
Original Assignee
Omron Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Omron Corp filed Critical Omron Corp
Priority to JP32631497A priority Critical patent/JP3409242B2/en
Publication of JPH11161303A publication Critical patent/JPH11161303A/en
Application granted granted Critical
Publication of JP3409242B2 publication Critical patent/JP3409242B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明はプログラマブルコン
トローラ等のコントローラとこのコントローラに接続さ
れるセンサ制御システム、センサ装置及びそのリモート
コントロール方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a controller such as a programmable controller, a sensor control system connected to the controller, a sensor device and a remote control method thereof.

【0002】[0002]

【従来の技術】工場等の組立搬送ラインには物品の通過
等を検知するための多数のセンサ装置が設けられ、又こ
れらのセンサ装置からの信号を読取り、搬送経路の切換
えや各種の加工装置等を動作させるためにプログラマブ
ルコントローラ等の制御装置が接続されている。このよ
うな制御システムでは、従来各センサの物体検知の閾値
の設定などでは、センサの夫々で可変抵抗器等を操作し
て設定するようにしている。しかしセンサが多機能化す
るにつれてセンサの位置での閾値設定等が難しくなり、
センサに接続されているプログラマブルコントローラか
らそのセンサの機能を切換えたり閾値を設定したいとい
う要望がある。通常センサとプログラマブルコントロー
ラ等を電気的に接続し信号を相互に伝送する場合には、
一機能について1つの入出力回路や入出力ラインを設け
ることが考えられる。又相互の通信を汎用のユニットで
行うには、プログラマブルコントローラ側にRS232
C等の専用の通信ユニットを設け、各センサ側にもこの
通信ユニットに対応したインターフェースや通信ドライ
バを設けることが必要となる。
2. Description of the Related Art A number of sensor devices for detecting passage of articles are installed on an assembly and transportation line of a factory or the like, and signals from these sensor devices are read to switch transportation routes and various processing devices. A control device such as a programmable controller is connected to operate the above. In such a control system, conventionally, when setting a threshold value for detecting an object of each sensor, a variable resistor or the like is operated by each sensor. However, as the sensor becomes multifunctional, it becomes difficult to set the threshold value at the sensor position,
There is a desire to switch the function of the sensor or set a threshold value from a programmable controller connected to the sensor. Normally, when electrically connecting a sensor and a programmable controller etc. and transmitting signals to each other,
It is conceivable to provide one input / output circuit or input / output line for one function. In order to perform mutual communication with a general-purpose unit, RS232 must be installed on the programmable controller side.
It is necessary to provide a dedicated communication unit such as C, and also to provide an interface and a communication driver corresponding to this communication unit on each sensor side.

【0003】[0003]

【発明が解決しようとする課題】このように従来の一機
能に対してセンサに1つの外部入力線を割当てる方法で
は、機能を増加させるとより多くの入力回路や入力線が
必要となり、センサの小型化,低価格化やシステム全体
の省配線化の妨げになるという欠点があった。又RS2
32C等のシリアル通信方式を用いる場合には、センサ
及びプログラマブルコントローラ側でシリアル通信に対
応する通信ユニットを設ける必要があり、センサを小型
化することが難しくなるという欠点があった。又プログ
ラマブルコントローラはサイクルタイムにより最大0.
1秒の時間誤差が発生するため、センサ側がこれと同期
をとることが難しく、有効なリモートコントロールを行
うことができないという欠点があった。
As described above, in the conventional method of allocating one external input line to a sensor for one function, if the number of functions is increased, more input circuits and input lines are needed, and It had the drawbacks of hindering downsizing, cost reduction, and wiring saving for the entire system. Also RS2
When a serial communication system such as 32C is used, it is necessary to provide a communication unit compatible with serial communication on the side of the sensor and the programmable controller, and it is difficult to reduce the size of the sensor. Also, the programmable controller has a maximum of 0.
Since a time error of 1 second occurs, it is difficult for the sensor side to synchronize with this, and effective remote control cannot be performed.

【0004】本発明はこのような従来の問題点を解消す
るためになされたものであって、プログラマブルコント
ローラ等の制御機能を実現するために広く用いられてい
るラダープログラムを用いてセンサ装置の制御信号を生
成することによって、現状のコントローラシステムに適
用するようにしたものである。
The present invention has been made to solve such conventional problems, and controls a sensor device by using a ladder program which is widely used to realize a control function of a programmable controller or the like. The signal is generated so that it can be applied to the current controller system.

【0005】[0005]

【課題を解決するための手段】本願の請求項1の発明
は、ラダープログラムによって任意の信号が作成可能な
コントローラと、前記コントローラに接続されたセンサ
装置とを有するリモートコントロールシステムにおける
リモートコントロール方法であって、前記コントローラ
でラダープログラムによって生成されるシリアル信号を
前記センサ装置の制御信号として送出することにより、
前記センサ装置を制御することを特徴とするものであ
る。ここでセンサ装置の制御信号とはセンサ装置の検出
動作の動作条件を変化させるための信号とする。
The invention according to claim 1 of the present application is a remote control method in a remote control system having a controller capable of generating an arbitrary signal by a ladder program and a sensor device connected to the controller. By sending a serial signal generated by a ladder program in the controller as a control signal for the sensor device,
It is characterized in that the sensor device is controlled. Here, the control signal of the sensor device is a signal for changing the operating condition of the detection operation of the sensor device.

【0006】本願の請求項2の発明は、ラダープログラ
ムによって任意の信号が作成可能なコントローラと、前
記コントローラに接続されたセンサ装置とを有するセン
サ制御システムにおいて、前記コントローラは、ラダー
プログラムによって生成したシリアル信号を前記センサ
装置の制御信号として出力するものであり、前記センサ
装置は、前記コントローラより送信される制御信号をそ
の時間に基づいて識別すると共に、該制御内容を実行す
る機能を有することを特徴とするものである。ここでセ
ンサ装置の制御信号とはセンサ装置の検出動作の動作条
件を変化させるための信号とする。
According to a second aspect of the present invention, in a sensor control system having a controller capable of creating an arbitrary signal by a ladder program and a sensor device connected to the controller, the controller is generated by the ladder program. A serial signal is output as a control signal of the sensor device, and the sensor device has a function of identifying a control signal transmitted from the controller based on the time and executing the control content. It is a feature. Here, the control signal of the sensor device is a signal for changing the operating condition of the detection operation of the sensor device.

【0007】本願の請求項3の発明は、請求項2のセン
サ制御システムにおいて、前記制御信号は、信号の立上
りとこれに続く一定時間幅の信号をスタートビットと
し、該スタートビットに続けて所定時間幅を単位とした
所定ビット数を連続させた複数ビットのシリアル信号か
ら成ることを特徴とするものである。ここでセンサ装置
の制御信号とはセンサ装置の検出動作の動作条件を変化
させるための信号とする。
According to a third aspect of the present invention, in the sensor control system according to the second aspect, the control signal has a rising edge of the signal and a signal of a constant time width following the rising edge of the signal as a start bit, and a predetermined value following the start bit. It is characterized in that it is composed of a serial signal of a plurality of bits in which a predetermined number of bits are consecutive with the time width as a unit. Here, the control signal of the sensor device is a signal for changing the operating condition of the detection operation of the sensor device.

【0008】本願の請求項4の発明は、外部状態の検出
機能を有するセンサ手段と、外部からの信号を入力する
入力手段と、前記入力手段より入力された信号の立上り
に続く一定時間幅のスタートビットとこれに続く所定ビ
ット数のシリアル信号を受信し、所定ビット数の受信時
間の信号受信後に送出された制御信号を識別する制御信
号識別手段と、識別された制御信号の制御内容を実行す
る制御手段と、を具備することを特徴とするものであ
る。
According to a fourth aspect of the present invention, a sensor means having a function of detecting an external state, an input means for inputting a signal from the outside, and a constant time width following a rise of the signal input from the input means are provided. Control signal identification means for identifying a control signal transmitted after receiving a start bit and a serial signal of a predetermined number of bits following the start bit and receiving a signal of a reception time of a predetermined number of bits, and executing control contents of the identified control signal And a control means for controlling the operation.

【0009】ここで物体の外部状態の検出機能とは物体
の有無を検知したり物体までの距離を測定し、又は外部
の圧力や加重の重さ,速度,温度等の物理量測定、光量
や色情報、光波長成分等の検出機能を有するものとす
る。又制御信号はセンサ手段の検出の閾値を変化させる
などの検出のための条件を変化させるための信号とす
る。
Here, the function of detecting the external state of the object is to detect the presence or absence of the object or measure the distance to the object, or to measure the physical quantity such as external pressure or weight of weight, speed, temperature, light quantity or color. It shall have the function of detecting information, light wavelength components, etc. Further, the control signal is a signal for changing conditions for detection such as changing the detection threshold of the sensor means.

【0010】[0010]

【発明の実施の形態】図1は本発明の実施の形態のセン
サ装置とプログラマブルコントローラとの構成を示す概
略図である。プログラマブルコントローラ1は通常複数
のセンサ装置や加工装置等が接続されることが多く、こ
れらの装置をラダープログラムによって制御する機能を
有している。ここでは1つのセンサ装置2が接続されて
いる例を示している。プログラマブルコントローラ1は
プログラマブルコントローラ本体と出力ユニット,入力
ユニットを有しており、出力ユニットを介してセンサ装
置2にリモートコントロール信号を送信する。又センサ
装置2から検知信号又はアンサーバック信号を入力ユニ
ットを介して受付ける。一方センサ装置2は例えば物体
を検出するための光電センサや近接センサのようにセン
サ機能を有しており、又この実施の形態によりプログラ
マブルコントローラからのリモートコントロール信号を
受信し、アンサーバック信号を出力するための外部入力
部と外部出力部とを有している。
1 is a schematic diagram showing the configuration of a sensor device and a programmable controller according to an embodiment of the present invention. The programmable controller 1 is usually connected to a plurality of sensor devices, processing devices, etc., and has a function of controlling these devices by a ladder program. Here, an example in which one sensor device 2 is connected is shown. The programmable controller 1 has a programmable controller main body, an output unit, and an input unit, and transmits a remote control signal to the sensor device 2 via the output unit. Further, it receives a detection signal or an answerback signal from the sensor device 2 via the input unit. On the other hand, the sensor device 2 has a sensor function such as a photoelectric sensor or a proximity sensor for detecting an object, and receives a remote control signal from the programmable controller and outputs an answerback signal according to this embodiment. It has an external input unit and an external output unit for operating.

【0011】図2は本実施の形態によるプログラマブル
コントローラ1の詳細な構成を示すブロック図である。
本図においてプログラマブルコントローラ1は命令入力
部11,ラダープログラム作成手段12,制御信号出力
部13,出力ユニット14を有しており、又センサ装置
からの信号を受付ける入力ユニット15と受付けた信号
を識別する信号識別部16,アンサーバック確認部1
7,切換部18,計測信号処理部19,表示部20を有
している。命令入力部11はキーボード等によって構成
され、ラダープログラムの入力時やプログラムの実行時
等に用いられる。ラダープログラム作成手段12は命令
内容識別部12a,コード信号作成部12b,コード記
憶部12c及び内部タイマ12dを含んで構成されてお
り、命令入力部11から入力された命令内容を識別して
ラダープログラムのコードを生成し、そのコードを記憶
しておく。又命令入力部11からのプログラムの開始信
号に基づいて、あらかじめコード記憶部12cに保持さ
れているコードからラダープログラムを実行し、内部タ
イマ12dを用いて制御信号を生成して出力するもので
ある。制御信号出力部13はこうして生成された制御信
号を出力ユニット14を介してセンサ装置2側に出力す
るものである。又制御信号出力部13は切換部18に切
換信号を出力し、アンサーバック確認処理まで信号識別
部16の出力を計測信号処理部19に伝送しないように
切換えるものとする。又入力ユニット15はセンサ装置
2からの信号である検知信号及びアンサーバック信号を
受付け、信号識別部16に出力する。信号識別部16は
物体の有無等を示す計測信号とアンサーバック信号とを
識別するものである。又アンサーバック信号が送られた
場合にアンサーバック確認部17に出力する。アンサー
バック確認部17は正常終了のアンサーバック信号であ
ればその状態を表示すると共に、切換部18を計測信号
側に切換えるものである。計測信号処理部19はセンサ
装置からの物体検知信号等を処理するものである。
FIG. 2 is a block diagram showing a detailed configuration of the programmable controller 1 according to this embodiment.
In this figure, the programmable controller 1 has a command input section 11, a ladder program creating means 12, a control signal output section 13, and an output unit 14, and distinguishes the input unit 15 that receives a signal from the sensor device and the received signal. Signal identifying unit 16 and answer back confirmation unit 1
7, a switching unit 18, a measurement signal processing unit 19, and a display unit 20. The command input unit 11 is composed of a keyboard or the like, and is used when a ladder program is input or the program is executed. The ladder program creating means 12 includes an instruction content identification unit 12a, a code signal creation unit 12b, a code storage unit 12c, and an internal timer 12d, and identifies the instruction content input from the instruction input unit 11 to identify the ladder program. The code is generated and the code is stored. Also, based on a program start signal from the instruction input unit 11, a ladder program is executed from the code stored in the code storage unit 12c in advance, and a control signal is generated and output using the internal timer 12d. . The control signal output unit 13 outputs the control signal thus generated to the sensor device 2 side via the output unit 14. Further, the control signal output unit 13 outputs a switching signal to the switching unit 18, and switches so that the output of the signal identifying unit 16 is not transmitted to the measurement signal processing unit 19 until answer back confirmation processing. The input unit 15 also receives a detection signal and an answerback signal, which are signals from the sensor device 2, and outputs them to the signal identifying section 16. The signal identifying section 16 identifies the measurement signal indicating the presence or absence of an object and the answerback signal. When an answer back signal is sent, the answer back signal is output to the answer back confirmation unit 17. The answer-back confirmation unit 17 displays the state of an answer-back signal of normal termination and switches the switching unit 18 to the measurement signal side. The measurement signal processing unit 19 processes an object detection signal or the like from the sensor device.

【0012】一方センサ装置2は図3に示すように、外
部入力部31,制御信号入力検知部32,制御信号時間
計測部33,制御信号識別部34及び制御部35を有し
ている。外部入力部31はプログラマブルコントローラ
1からの信号を受付けるものであり、制御信号入力検知
部32はその入力の立上り及び立下りのタイミング信号
を抽出するものである。又制御信号時間計測部33はそ
のタイミングから制御信号の時間を計測するものであ
り、制御信号識別部34はこの計測時間により制御信号
の内容を識別するものである。又制御部35は識別され
た制御信号に応じて制御内容を実行する機能を有してお
り、例えばメモリ部36に保持されている各バンクを切
換えたり、その閾値を変更処理するものである。又制御
部35はこの操作を終了すると終了信号をアンサーバッ
ク信号作成部37に出力する。アンサーバック信号作成
部37は正常に操作内容の処理が終了した場合、又は異
常終了した場合にそれに応じたアンサーバック信号を生
成するものである。又センサ装置2は物体の有無等の外
部の状態を検出するためのセンサ部38とセンシング処
理部39,計測信号出力部40を有している。センサ部
38,センシング処理部39は制御部35で設定された
閾値によって物体の有無を判別するものであり、その出
力は計測信号出力部40に与えられる。計測信号出力部
40はセンシング処理部39からの信号により物体の有
無等の検知信号を生成するものであって、切換部41に
与える。切換部41はプログラマブルコントローラ1に
出力する信号を検知信号とにアンサーバック信号のいず
れかに切換えるものであって、外部出力部42を介して
出力する。
On the other hand, as shown in FIG. 3, the sensor device 2 has an external input section 31, a control signal input detection section 32, a control signal time measuring section 33, a control signal identifying section 34 and a control section 35. The external input unit 31 receives a signal from the programmable controller 1, and the control signal input detection unit 32 extracts a rising timing signal and a falling timing signal of the input. The control signal time measuring unit 33 measures the time of the control signal from the timing, and the control signal identifying unit 34 identifies the content of the control signal based on this measurement time. Further, the control unit 35 has a function of executing control contents in accordance with the identified control signal, and for example, switches each bank held in the memory unit 36 or changes the threshold value thereof. When the control section 35 completes this operation, it outputs an end signal to the answerback signal creating section 37. The answer-back signal generation unit 37 generates an answer-back signal in response to normal termination of processing of the operation content or abnormal termination. Further, the sensor device 2 has a sensor section 38 for detecting an external state such as the presence or absence of an object, a sensing processing section 39, and a measurement signal output section 40. The sensor unit 38 and the sensing processing unit 39 determine the presence or absence of an object according to the threshold value set by the control unit 35, and the output thereof is given to the measurement signal output unit 40. The measurement signal output unit 40 generates a detection signal such as the presence / absence of an object based on the signal from the sensing processing unit 39, and supplies it to the switching unit 41. The switching unit 41 switches the signal output to the programmable controller 1 to either the detection signal or the answerback signal, and outputs the signal via the external output unit 42.

【0013】次に本実施の形態に用いられる制御信号の
仕様について説明する。プログラマブルコントローラ1
よりセンサ装置2に出力される制御信号は、図4(a)
に示すようにスタートビットに続けて4ビットのNRZ
のシリアル信号によって構成され、この制御信号終了後
に一定時間を開けて再び制御信号が続けて出力される。
ここでスタートビットは信号の立上り後一定時間幅だけ
Hレベルとなるビットであり、ここではあらかじめプロ
グラマブルコントローラのサイクルタイム等に基づく最
大誤差である0.1秒の誤差を考慮し、この時間幅を
0.3秒とする。尚図中では(秒)を省略して示してい
る。又スタートビットに続けて送出される制御信号の各
ビットについても0.3秒の時間が割当てられており、
この時間幅によって例えば4ビットの制御信号が連続し
て生成される。図5,図6は制御信号と制御コード及び
機能の一例を示すものである。
Next, the specifications of the control signals used in this embodiment will be described. Programmable controller 1
The control signal output from the sensor device 2 is shown in FIG.
As shown in, the start bit is followed by a 4-bit NRZ
The control signal is continuously output again after a certain period of time has elapsed after the end of the control signal.
Here, the start bit is a bit that becomes H level for a certain time width after the signal rises, and here, this time width is set considering the error of 0.1 second which is the maximum error based on the cycle time of the programmable controller. 0.3 seconds. In the figure, (seconds) is omitted. Also, a time of 0.3 seconds is allocated to each bit of the control signal transmitted after the start bit,
With this time width, for example, a 4-bit control signal is continuously generated. 5 and 6 show examples of control signals, control codes and functions.

【0014】例えばセンサ装置が光電センサの場合に
は、光電センサが異なった検出対象物に対して夫々異な
る閾値等をあらかじめ設定できるようにバンク切換機能
を有するものとし、プログラマブルコントローラ1から
伝送する制御コードに図5,図6に示すようにNo.1〜
No.15の機能を割当てる。即ち制御コード「000
0」は図5に示すようにスタートビットの後はLレベル
が1.2秒間連続するものであり、これによってセンサ
装置の機能をバンク1に切換える。又制御コード「10
00」はスタートビットを含めて0.6秒のみがHレベ
ルであり、その後0.9秒間はLレベルを保つ信号であ
り、これによってバンク2に切換えられる。同様にして
バンク3,4への切換えやティーチング,閾値1から8
への変更等が前述した入出力ユニットを介してプログラ
マブルコントローラ1からセンサ装置2に伝送される。
図4(b)はプログラマブルコントローラからあるセン
サ装置への制御信号を示しており、時刻t1 〜t2 の間
にバンク1の選択、続けて時刻t3 〜t4 の間にバンク
1でのティーチング信号が入力されたことを示してい
る。
For example, when the sensor device is a photoelectric sensor, the photoelectric sensor has a bank switching function so that different threshold values can be set in advance for different detection objects, and the control transmitted from the programmable controller 1 is performed. As shown in FIGS. 5 and 6, the code has No. 1 to
No. Allocate 15 functions. That is, the control code "000
As shown in FIG. 5, the "0" is such that the L level continues for 1.2 seconds after the start bit, whereby the function of the sensor device is switched to the bank 1. Control code "10
"00" is a signal which is at H level for 0.6 seconds including the start bit, and is kept at L level for 0.9 seconds thereafter, whereby the bank 2 is switched. Similarly, switching to banks 3 and 4, teaching, thresholds 1 to 8
To the sensor device 2 from the programmable controller 1 via the above-mentioned input / output unit.
FIG. 4B shows a control signal from the programmable controller to a certain sensor device. Bank 1 is selected between times t 1 and t 2 , and then bank 1 is selected between times t 3 and t 4 . Indicates that a teaching signal has been input.

【0015】ここでバンクの切換えの一例について説明
する。センサ装置が複数の物体の色を検出するカラーマ
ークセンサの場合には、検出すべき色に応じてその閾値
が変化する。従って例えば赤,緑,青の三色の発光ダイ
オードを同軸で時分割で投光レンズを介して投光し、そ
の反射光を分離してフォトダイオードで検出し、その割
合によって色を検出することができる。検出対象の色に
応じてその閾値をあらかじめバンク1〜バンク4に登録
しておき、これらのバンクを切換えることによって異な
った色を夫々最適な閾値で検出することができる。又セ
ンサ装置の閾値を設定するために物体を所定の位置に配
置した状態でティーチングモードとすると、そのときの
受光レベルからその物体を確実に検出できるように閾値
を設定するといった処理が行われる。
An example of bank switching will be described here. In the case where the sensor device is a color mark sensor that detects the colors of a plurality of objects, the threshold value changes according to the color to be detected. Therefore, for example, light-emitting diodes of three colors of red, green, and blue are coaxially time-divisionally projected through a light-projecting lens, the reflected light is separated and detected by a photodiode, and the color is detected by the ratio. You can The thresholds are registered in advance in banks 1 to 4 according to the color to be detected, and different colors can be detected with the optimum thresholds by switching these banks. Further, when the teaching mode is set in a state where the object is arranged at a predetermined position in order to set the threshold value of the sensor device, a process of setting the threshold value so that the object can be surely detected from the light receiving level at that time is performed.

【0016】図7は前述したNo.0〜15の制御信号を
プログラマブルコントローラ1で生成するためのラダー
プログラムを示す図である。本図においてシンボル「0
0000」は入力のリレーシンボルを示しており、「0
0100」は出力のリレーシンボルを示している。又
「05000」,「05001」,「05002」はそ
の他の内部補助リレー、「TIM000」,「TIM0
01」,「TIM002」は内部タイマを示している。
ここで制御機能No.0〜15の各制御信号を出力するた
めのタイマTIM000,TIM001,TIM002
の設定値#XXXX,#YYYY,#ZZZZを以下に
示す。
FIG. 7 shows the above-mentioned No. It is a figure which shows the ladder program for producing | generating the control signal of 0-15 with the programmable controller 1. In this figure, the symbol "0
"0000" indicates an input relay symbol, and "0"
“0100” indicates an output relay symbol. "05000", "05001", and "05002" are other internal auxiliary relays, and "TIM000" and "TIM0".
"01" and "TIM002" indicate internal timers.
Here, the control function No. Timers TIM000, TIM001, TIM002 for outputting control signals 0 to 15
The setting values #XXXX, #YYYY, #ZZZZ are shown below.

【表1】 [Table 1]

【0017】例えばNo.10の制御信号を出力する際に
は「TIM000」に0003(0.3s)、「TIM
001」に0006(0.6s)、「TIM002」に
0006(0.6s)を設定する。こうすればこのラダ
ープログラムに基づいて入力リレー「00000」をオ
ンとすると、図8(a),(b),(c)にタイムチャ
ートを示すように入力のタイミングに応じて内部リレー
「50000」が自己保持し、0.3秒後にタイマ「T
IM000」が動作して内部リレー「05001」が自
己保持する。又その時点から0.6秒後にタイマ「TI
M001」が動作し、その時点から更に0.6秒後にタ
イマ「TIM002」が動作する。このため内部リレー
「5000」,「5001」,「5002」は図示のタ
イムチャートのように動作し、出力リレー「0010
0」より図8(h)に示すようにスタートビットに続け
て「0001」が得られることとなる。その他の制御信
号も同様にして内部タイマのタイマ値のみを設定するこ
とによって生成することができる。
For example, No. When outputting 10 control signals, "TIM000" displays 0003 (0.3s), "TIM".
001 "is set to 0006 (0.6s), and" TIM002 "is set to 0006 (0.6s). In this way, if the input relay "00000" is turned on based on this ladder program, the internal relay "50000" will be output according to the input timing as shown in the time charts of FIGS. 8 (a), (b) and (c). Self-holds and the timer "T
The IM000 "operates and the internal relay" 05001 "holds itself. In addition, the timer "TI
M001 ”operates, and a timer“ TIM002 ”operates 0.6 seconds after that. Therefore, the internal relays “5000”, “5001”, “5002” operate like the time chart shown in the figure, and the output relay “0010”.
From "0", "0001" is obtained following the start bit as shown in FIG. Other control signals can be similarly generated by setting only the timer value of the internal timer.

【0018】次にプログラマブルコントローラ1とセン
サ装置2の動作について図9のフローチャートを参照し
つつ説明する。プログラマブルコントローラ1は制御信
号の出力を開始すると、まずステップS1においてあら
かじめ作成されたラダープログラムの機能を選択し、制
御信号を出力する。これは前述したラダープログラムに
おいてタイマ値を切換えることによってNo.1〜15の
いずれかの制御信号を出力することができる。ステップ
S2において制御信号の出力中はセンサ装置2から得ら
れた計測結果を無効状態とし、制御信号の出力を終える
と出力の終了を報知する(ステップS3)。次いでセン
サ装置2からのアンサーバックを待つ待機状態となる
(ステップS4)。そしてステップS5においてアンサ
ーバック信号を受信すると正常終了かどうかを判別す
る。正常終了であれば、続いてセンサ装置より得られる
信号を計測結果として有効とし、制御信号の出力処理を
終了する(ステップS6)。又ステップS5においてア
ンサーバック信号が正常終了でなければ、ステップS7
においてエラー処理を行い処理を終える。
Next, the operations of the programmable controller 1 and the sensor device 2 will be described with reference to the flowchart of FIG. When the programmable controller 1 starts to output the control signal, first, the function of the ladder program created in advance in step S1 is selected and the control signal is output. This is set by switching the timer value in the ladder program described above. The control signal of any of 1 to 15 can be output. During the output of the control signal in step S2, the measurement result obtained from the sensor device 2 is set to the invalid state, and when the output of the control signal ends, the end of the output is notified (step S3). Next, a standby state waiting for an answer back from the sensor device 2 is set (step S4). Then, when the answer back signal is received in step S5, it is determined whether or not the operation is normally completed. If it is normal termination, then the signal obtained from the sensor device is validated as the measurement result, and the output processing of the control signal is terminated (step S6). If the answer back signal is not normally terminated in step S5, step S7
At, error processing is performed and the processing ends.

【0019】一方センサ装置2は動作を開始すると図1
0のまずステップS11において制御信号が入力された
かどうかを検知する。制御信号が入力されていなければ
計測動作を継続する(ステップS12)。図4,図5に
示すように制御信号が入力されると、まずスタートビッ
トが入力され信号が立上る。従ってその立上りがステッ
プS11で検知されると、ステップS13,S14に進
んで計測処理を中断して制御信号の時間計測を行う。そ
してステップS15において一定時間、即ち制御信号の
出力時間として設定されている1.5秒及びこの出力に
より予想されるプログラマブルコントローラ1の最大誤
差である0.3秒を加えた1.8秒が経過し、又は制御
信号の終了が送出されたかどうかを判別する。この時間
が経過し又は制御信号が送出が終了すると、ステップS
16において制御信号の判別を実行する。即ち前述した
1.8秒の間のパルス数及びパルスのオン時間,オフ時
間に基づいて制御信号を判別する。そしてステップS1
7に進んで制御信号に対応した制御内容を実行する。例
えば図5のNo.1〜4ではバンクの切換処理を行い、N
o.5ではティーチングモードに移る。又図5,図6のN
o.6〜11では設定された閾値への変更処理を行う。
そしてステップS18に進んでこれらの処理が正常に終
了したかどうかを判別し、正常終了時にはステップS1
9において正常終了のアンサーバック信号を出力し、正
常に終了していなければステップS20において異常終
了のアンサーバック信号を出力する。そしてステップS
21において計測処理を再び開始してステップS11に
戻る。
On the other hand, when the sensor device 2 starts to operate,
First, in step S11, it is detected whether or not a control signal is input. If the control signal is not input, the measurement operation is continued (step S12). When the control signal is input as shown in FIGS. 4 and 5, the start bit is input and the signal rises. Therefore, when the rise is detected in step S11, the process proceeds to steps S13 and S14 to interrupt the measurement process and measure the time of the control signal. Then, in step S15, a fixed time, that is, 1.5 seconds set as the output time of the control signal and 1.8 seconds obtained by adding 0.3 seconds which is the maximum error of the programmable controller 1 expected from this output have elapsed. Or whether the end of the control signal has been sent. When this time elapses or the transmission of the control signal ends, step S
At 16, the control signal is discriminated. That is, the control signal is discriminated on the basis of the number of pulses and the ON time and OFF time of the pulse in the above 1.8 seconds. And step S1
In step 7, the control content corresponding to the control signal is executed. For example, in FIG. In 1 to 4, bank switching processing is performed and N
o. At 5, the teaching mode is entered. Also, N in FIGS.
o. In 6 to 11, change processing to the set threshold value is performed.
Then, the process proceeds to step S18, and it is determined whether or not these processes are normally completed.
An answerback signal indicating normal termination is output at 9, and an answerback signal indicating abnormal termination is output at step S20 if not normally terminated. And step S
In 21, the measurement process is started again and the process returns to step S11.

【0020】こうすればプログラマブルコントローラが
有しているラダープログラム作成・実行処理のソフトウ
ェアをそのまま用いて、センサ装置のコントロールを行
うことができる。又この実施の形態のようにプログラマ
ブルコントローラの出力誤差を考慮した制御信号仕様と
すれば、システムとしての応答時間を最適にすることが
できる。尚この実施の形態ではプログラマブルコントロ
ーラによってラダープログラムを作成するようにしてい
るが、ラダープログラムを作成できなくともラダープロ
グラムを実行して任意のシリアル信号を出力できる機能
があれば、足りる。更にこの実施の形態ではプログラマ
ブルコントローラによってセンサ装置を制御するように
しているが、ラダープログラムを作成しシリアル信号を
出力できる機能があれば、他の形式のコントローラであ
ってもよい。
In this way, the sensor device can be controlled by using the ladder program creation / execution processing software of the programmable controller as it is. Further, if the control signal specifications are set in consideration of the output error of the programmable controller as in this embodiment, the response time of the system can be optimized. In this embodiment, the ladder program is created by the programmable controller. However, even if the ladder program cannot be created, a function that can execute the ladder program and output an arbitrary serial signal is sufficient. Further, in this embodiment, the sensor device is controlled by the programmable controller, but another type of controller may be used as long as it has a function of creating a ladder program and outputting a serial signal.

【0021】[0021]

【発明の効果】以上詳細に説明したように本発明によれ
ば、コントローラとセンサとが接続されているシステム
のままで制御信号を伝送することができ、センサのリモ
ートコントロールシステムを構築することができる。又
コントローラからラダープログラムによってセンサに制
御信号を出力するようにしているため、コントローラの
機種や機能,製造元に依存することなくリモートコント
ロールシステムを構築することができる。更に一旦作成
した制御信号出力用のラダープログラムはこの制御信号
を適用した他のセンサ装置でもそのまま使用することが
できるため、センサ装置の機能の変更等を容易に行うこ
とができ、システム構築の工数を削減することができ
る。更に制御信号出力用ラダープログラムは記憶媒体や
ドキュメントによってユーザに提供することができ、ユ
ーザのプログラム作成手間を削減することができるとい
う効果が得られる。
As described above in detail, according to the present invention, a control signal can be transmitted in a system in which a controller and a sensor are connected, and a remote control system for the sensor can be constructed. it can. Further, since the controller outputs the control signal to the sensor by the ladder program, the remote control system can be constructed without depending on the controller model, function and manufacturer. Further, since the ladder program for outputting the control signal once created can be used as it is in other sensor devices to which this control signal is applied, the function of the sensor device can be easily changed, and the number of man-hours for system construction can be increased. Can be reduced. Further, the control signal output ladder program can be provided to the user by a storage medium or a document, and the effect of reducing the user's program preparation work can be obtained.

【図面の簡単な説明】[Brief description of drawings]

【図1】本実施の形態によるリモートコントロールシス
テムの全体システムを示すブロック図である。
FIG. 1 is a block diagram showing an overall system of a remote control system according to the present embodiment.

【図2】本実施の形態によるプログラマブルコントロー
ラの構成を示すブロック図である。
FIG. 2 is a block diagram showing a configuration of a programmable controller according to the present embodiment.

【図3】本実施の形態によるセンサ装置の構成を示すブ
ロック図である。
FIG. 3 is a block diagram showing a configuration of a sensor device according to the present embodiment.

【図4】本実施の形態による制御信号フォーマットとそ
の信号例を示すタイムチャートである。
FIG. 4 is a time chart showing a control signal format and its signal example according to the present embodiment.

【図5】本実施の形態による制御信号と制御コード及び
センサの機能の一例を示す図(その1)である。
FIG. 5 is a diagram (part 1) showing an example of functions of a control signal, a control code, and a sensor according to the present embodiment.

【図6】本実施の形態による制御信号と制御コード及び
センサの機能の一例を示す図(その2)である。
FIG. 6 is a diagram (part 2) showing an example of the functions of the control signal, the control code, and the sensor according to the present embodiment.

【図7】本実施の形態によるリモートコントロールシス
テムのラダープログラムの一例を示す図である。
FIG. 7 is a diagram showing an example of a ladder program of the remote control system according to the present embodiment.

【図8】本実施の形態によるラダープログラムの実行時
の各リレーの動作と生成される制御信号を示すタイムチ
ャートである。
FIG. 8 is a time chart showing the operation of each relay and the generated control signal when the ladder program according to the present embodiment is executed.

【図9】本実施の形態によるリモートコントロール装置
の動作を示すフローチャートである。
FIG. 9 is a flowchart showing an operation of the remote control device according to the present embodiment.

【図10】本実施の形態によるリモートコントロールシ
ステムのセンサ装置の動作を示すフローチャートであ
る。
FIG. 10 is a flowchart showing the operation of the sensor device of the remote control system according to the present embodiment.

【符号の説明】[Explanation of symbols]

1 プログラマブルコントローラ 2 センサ装置 11 命令入力部 12 ラダープログラム作成手段 13 制御信号出力部 14 出力ユニット 15 入力ユニット 16 信号識別部 17 アンサーバック確認部 18 切換部 19 計測信号処理部 20 表示部 32 制御信号入力検知部 33 制御信号時間計測部 34 制御信号識別部 35 制御部 36 メモリ部 37 アンサーバック信号作成部 38 センサ部 39 センシング処理部 40 計測信号出力部 41 切換部 1 programmable controller 2 sensor device 11 Command input section 12 Ladder program creation means 13 Control signal output section 14 Output unit 15 Input unit 16 Signal identification section 17 Answerback Confirmation Section 18 Switching unit 19 Measurement signal processing unit 20 Display 32 Control signal input detector 33 Control signal time measurement unit 34 Control signal identification section 35 control unit 36 memory 37 Answerback Signal Creation Department 38 Sensor section 39 Sensing processing unit 40 Measurement signal output section 41 Switching unit

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G05B 19/02 - 19/05 ─────────────────────────────────────────────────── ─── Continuation of the front page (58) Fields surveyed (Int.Cl. 7 , DB name) G05B 19/02-19/05

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 ラダープログラムによって任意の信号が
作成可能なコントローラと、前記コントローラに接続さ
れたセンサ装置とを有するリモートコントロールシステ
ムにおけるリモートコントロール方法であって、 前記コントローラでラダープログラムによって生成され
るシリアル信号を前記センサ装置の制御信号として送出
することにより、前記センサ装置を制御することを特徴
とするセンサ装置のリモートコントロール方法。
1. A remote control method in a remote control system having a controller capable of creating an arbitrary signal by a ladder program and a sensor device connected to the controller, wherein the serial generated by the ladder program by the controller. A remote control method for a sensor device, wherein the sensor device is controlled by sending a signal as a control signal for the sensor device.
【請求項2】 ラダープログラムによって任意の信号が
作成可能なコントローラと、前記コントローラに接続さ
れたセンサ装置とを有するセンサ制御システムにおい
て、 前記コントローラは、ラダープログラムによって生成し
たシリアル信号を前記センサ装置の制御信号として出力
するものであり、 前記センサ装置は、前記コントローラより送信される制
御信号をその時間に基づいて識別すると共に、該制御内
容を実行する機能を有するものであることを特徴とする
センサ制御システム。
2. A sensor control system having a controller capable of creating an arbitrary signal by a ladder program and a sensor device connected to the controller, wherein the controller outputs a serial signal generated by the ladder program to the sensor device. The sensor device outputs a control signal, and the sensor device has a function of identifying a control signal transmitted from the controller based on its time and having a function of executing the control content. Control system.
【請求項3】 前記制御信号は、信号の立上りとこれに
続く一定時間幅の信号をスタートビットとし、該スター
トビットに続けて所定時間幅を単位とした所定ビット数
を連続させた複数ビットのシリアル信号から成るもので
あることを特徴とする請求項2記載のセンサ制御システ
ム。
3. The control signal comprises a start bit which is a signal of a rising edge of a signal and a fixed time width following the rising edge of the signal, and a plurality of bits which are consecutive with a predetermined number of bits in units of a predetermined time width following the start bit. The sensor control system according to claim 2, wherein the sensor control system comprises a serial signal.
【請求項4】 外部状態の検出機能を有するセンサ手段
と、 外部からの信号を入力する入力手段と、 前記入力手段より入力された信号の立上りに続く一定時
間幅のスタートビットとこれに続く所定ビット数のシリ
アル信号を受信し、所定ビット数の受信時間の信号受信
後に送出された制御信号を識別する制御信号識別手段
と、 識別された制御信号の制御内容を実行する制御手段と、
を具備することを特徴とするセンサ装置。
4. A sensor means having a function of detecting an external state, an input means for inputting a signal from the outside, a start bit having a constant time width following a rising edge of the signal input from the input means, and a predetermined value following the start bit. Control signal identifying means for receiving a serial signal of a bit number and identifying a control signal sent after receiving a signal of a receiving time of a predetermined bit number; and a control means for executing a control content of the identified control signal,
A sensor device comprising:
JP32631497A 1997-11-27 1997-11-27 Sensor device remote control method, sensor control system, and sensor device Expired - Lifetime JP3409242B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32631497A JP3409242B2 (en) 1997-11-27 1997-11-27 Sensor device remote control method, sensor control system, and sensor device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32631497A JP3409242B2 (en) 1997-11-27 1997-11-27 Sensor device remote control method, sensor control system, and sensor device

Publications (2)

Publication Number Publication Date
JPH11161303A JPH11161303A (en) 1999-06-18
JP3409242B2 true JP3409242B2 (en) 2003-05-26

Family

ID=18186386

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32631497A Expired - Lifetime JP3409242B2 (en) 1997-11-27 1997-11-27 Sensor device remote control method, sensor control system, and sensor device

Country Status (1)

Country Link
JP (1) JP3409242B2 (en)

Also Published As

Publication number Publication date
JPH11161303A (en) 1999-06-18

Similar Documents

Publication Publication Date Title
CA1333942C (en) Data setting system for terminal units in remote supervisory and controlling system employing multiplex data transmission
KR910015137A (en) Fiber optic link control safety system
US5945921A (en) Apparatus and method for confirming remote control command response
JP4766349B2 (en) Field equipment
JP3409242B2 (en) Sensor device remote control method, sensor control system, and sensor device
JPH05210470A (en) Printer and method for processing its type selection
JP2616530B2 (en) Communication device
JP3069409B2 (en) Self-diagnosis method of interrupt response time of multiplex transmission system
JP2703634B2 (en) Address Duplication Detection Method for Remote Monitoring and Control System
JP2000231403A (en) Remote input and output system and slave device for the same
JPS63184191A (en) Self-fire alarm system
JPH08114463A (en) Amplifier separating type sensor, amplifier separating type sensor system and threshold value setting method thereof
JP2003108204A (en) System for managing sensors and sensor management program
JP2830318B2 (en) Two-way remote control device
JP3322433B2 (en) Electric shutter device
JP2003256976A (en) Sensor system
JPH0646829B2 (en) Time division multiplex transmission system
JPS62214974A (en) Printer
KR960016274B1 (en) Home bus interface apparatus
JP2514474Y2 (en) Vending machine detector
JPH113484A (en) Signal transmitter having communication function
JPH03117244A (en) Transmission system
JP2599453Y2 (en) Nurse call device
JP2003222680A (en) Unit and system for sensor
JP4688122B2 (en) Security sensor

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090320

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090320

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100320

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100320

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110320

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110320

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120320

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120320

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130320

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140320

Year of fee payment: 11

EXPY Cancellation because of completion of term