JP3702605B2 - Transmission system having trigger function and time interval measuring method of input / output signal thereof - Google Patents
Transmission system having trigger function and time interval measuring method of input / output signal thereof Download PDFInfo
- Publication number
- JP3702605B2 JP3702605B2 JP26066997A JP26066997A JP3702605B2 JP 3702605 B2 JP3702605 B2 JP 3702605B2 JP 26066997 A JP26066997 A JP 26066997A JP 26066997 A JP26066997 A JP 26066997A JP 3702605 B2 JP3702605 B2 JP 3702605B2
- Authority
- JP
- Japan
- Prior art keywords
- signal
- transmission signal
- trigger condition
- slave station
- output
- 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 - Fee Related
Links
Images
Landscapes
- Small-Scale Networks (AREA)
- Measurement Of Unknown Time Intervals (AREA)
- Selective Calling Equipment (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は スレーブ局とマスタ局とからなる伝送システム及び入出力信号の時間間隔測定方法に関する。
【0002】
【従来の技術】
工場や物流設備などで通信機能を持つセンサ、アクチュエータ、インバータ、サーボ等の機器(これをスレーブ局と呼ぶ)と、それらの機器を通信回線を介して制御するコントローラ(マスタ局と呼ぶ)とからなる伝送システムがある。
【0003】
図10は、従来の伝送システムの構成図である。スレーブ局10、11、12は信号線L1を介してマスタ局15のインターフェース部IF1と接続されており、スレーブ局20、21、22は信号線L2を介してマスタ局15のインターフェース部IF2と接続されている。また、測定装置16は、信号の時間間隔を測定する装置であり、入力端子H1が信号線L1に接続され、入力端子H2が信号線L2に接続されている。測定装置16の入力端子H3には測定対象の入出力信号に対応する伝送信号を指定する情報がユーザにより入力され、出力端子H4からは、測定対象の伝送信号の時間差が許容値以下か否かを示す判定結果q4が出力される。
【0004】
図11は、スレーブ局10、20、マスタ局15及び測定装置16の動作を示す図である。
スレーブ局10は、例えばセンサであり、センサの入力信号IN1の立ち上がりを検出すると、信号線L1上にマスタ局15宛にセンサの検出信号Sa1を出力する。マスタ局15は、受信した信号がセンサの検出信号Sa1であると認識すると、信号線L2上にスレーブ局20宛に伝送信号Sb1を出力する。スレーブ局20は、例えばアクチュエータであり、マスタ局15からの伝送信号Sb1を受信してアクチュエータを駆動し、同時に駆動状態を示す出力信号OUT1を出力する。
【0005】
測定装置16は、スレーブ局10の入力信号IN1と、スレーブ局20から出力される出力信号OUT1との時間間隔が許容値以下か否か、つまりセンサの入力を検出してから一定時間以内にアクチュエータが動作したか否かを判定する。この場合、測定装置16は、上記の入出力信号IN1、OUT1を直接測定することができないので、その代わりに入力端子H1に入力する伝送信号Sa1と、入力端子H2に入力する伝送信号Sb1との時間差t1を測定して、その値が許容値t0’以下か否かを判定し、判定結果q4を出力する。
【0006】
マスタ局15は、測定装置16から出力される判定結果q4を監視し、正のパルス信号が出力されたときには、上記の入出力信号IN1、OUT1を入力または出力するセンサとアクチュエータが正常に動作しているものと判断し、判定結果q4としてパルス信号が出力されないときには、センサとアクチュエータに異常が発生したものと判断して異常処理を実行する。
【0007】
次に、従来の測定装置16の動作を図12の機能説明図を参照して説明する。
測定装置16には信号線L1、L2上の伝送信号が信号q1、q2として入力されている(図12▲1▼)。測定装置16は、入力信号IN1、出力信号OUT1に対応する伝送信号Sa1、Sb1の立ち上がりを検出して伝送信号Sa1とSb1の時間差t1を測定する(図12▲2▼)。そして、時間差t1の許容値t0をメモリから読み出し(図12▲3▼)、その許容値t0’と測定した時間差t1とを比較する(図12▲4▼)。測定した時間差t1が許容値t0’以下であれば、判定結果q4として正のパルス信号を出力し、測定した時間差t1が許容値t0’を超えていればパルス信号を出力しない。
【0008】
【発明が解決しようとする課題】
上述したように測定装置16が入力信号IN1と出力信号OUT1との時間間隔が許容値以下となっているか否かを判定する場合に、入力信号IN1と出力信号OUT1を直接測定できないときには、代わりにその入力信号IN1、出力信号OUT1に対応する信号線上の伝送信号Sa1、Sb1の時間差t1を測定し、その時間差t1が許容値t0’以下か否かを判定することが行われる。その場合、測定装置16に、例えば伝送信号Sa1、Sb1の立ち上がりを検出する回路を設けて、伝送信号Sa1の立ち上がりから伝送信号Sb1の立ち上がりまでの時間が測定される。
【0009】
従来の測定装置16は、上記のような特定の入出力信号に対応する伝送信号の時間差を測定することはできるが、信号線上を伝送される任意の伝送信号の時間差を測定する機能を持っていなかった。
【0010】
また、信号線上を伝送される伝送信号がデータ圧縮されている場合は、従来の測定装置16では、圧縮されたデータの時間間隔を測定することができなかった。
【0011】
本発明の課題は、入出力信号の時間間隔を信号線上の伝送信号から簡単に測定できるようにすることである。
また、他の課題は、信号線上を伝送される伝送信号がデータ圧縮されている場合でも、伝送信号の時間間隔を測定できるようにすることである。
【0012】
【課題を解決するための手段】
本発明のトリガ機能を持つ伝送システムは、複数のスレーブ局の内の1つのスレーブ局が入力信号の変化を検出したとき、検出結果を伝送信号としてマスタ局に送信し、マスタ局が前記伝送信号に基づいて他のスレーブ局を制御する制御信号を伝送信号として送信し、前記他のスレーブ局が出力信号を出力する伝送システムにおいて、前記1つのスレーブ局の入力信号と該入力信号の状態の変化と前記他のスレーブ局の出力信号と該出力信号の状態の変化が指定されたとき、指定された入力信号と前記1つのスレーブ局から送信される伝送信号と前記伝送信号の状態の変化を規定する開始用トリガ条件とを対応づけて記憶すると共に、指定された出力信号と前記他のスレーブ局に送信する伝送信号と前記他のスレーブ局に送信する前記伝送信号の状態の変化を規定する終了用トリガ条件とを対応づけて記憶する記憶手段と、前記1つのスレーブ局から送信される伝送信号の状態の変化が、前記記憶手段に記憶されている前記開始用トリガ条件と一致するか否か、前記他のスレーブ局に送信する前記伝送信号の状態の変化が前記記憶手段に記憶されている前記終了用トリガ条件と一致するか否かを判定するトリガ条件判定手段と、前記トリガ条件判定手段により前記1つのスレーブ局から送信される前記伝送信号の状態の変化が前記開始用トリガ条件と一致すると判定されたとき測定開始信号を出力し、前記他のスレーブ局に送信する前記伝送信号の状態の変化が前記終了用トリガ条件と一致すると判定されたとき測定終了信号を出力する出力手段とをマスタ局が有し、前記マスタ局から出力される前記測定開始信号と前記測定終了信号とに基づいて前記1つのスレーブ局から送信される前記伝送信号と前記マスタ局から前記他のスレーブ局に送信される前記伝送信号の時間差が許容値以下か否かを判定する測定装置とを備えるトリガ機能を持つ伝送システム。
【0013】
本発明では、測定対象の入出力信号の時間間隔を測定する場合に、その入出力信号に対応する伝送信号とその伝送信号の状態の変化を規定する情報を、測定開始を示す開始用トリガ条件、測定終了を示す終了用トリガ条件として、入出力信号に対応させて記憶させ、測定対象の伝送信号の状態の変化が開始用トリガ条件または終了用トリガ条件と一致したとき、測定開始または終了を示す信号を出力するようにした。
【0014】
従って、マスタ局側で、入出力信号に対応する信号線上の伝送信号とその伝送信号のトリガ条件を定めることにより、例えば入出力信号の時間間隔を測定する測定装置側で測定対象の伝送信号の立ち上がり、あるいは立ち下がりを検出する必要がなくなる。また、マスタ局は入出力信号と伝送信号とを対応づけて、その伝送信号のトリガ条件を定めるだけでよいので、トリガ条件の設定が簡単に行え、測定対象の入出力信号が変更された場合にも柔軟に対応できる。
【0015】
さらに、マスタ局にデータの解凍手段を設けることで、信号線上を伝送される伝送信号がデータ圧縮されていても、その伝送信号を解凍して元のデータから入出力信号に対応する伝送信号とそのトリガ条件を定めることができる。これにより、従来の測定装置ではできなかった圧縮された伝送信号の時間間隔の測定が可能となる。
【0016】
【発明の実施の形態】
以下、本発明の実施の形態を図面を参照して説明する。図1は、本発明の第1の実施の形態の伝送システムのシステム構成を示す図である。同図において、信号線L1には、スレーブ局10、11、12、マスタ局30のインターフェース部IF1及び測定装置31の入力端子H1が接続されている。また、信号線L2には、スレーブ局20、21、22、マスタ局30及び測定装置31の入力端子H2が接続されている。なお、スレーブ局10〜12、20〜22は、例えば、通信機能を有するセンサ、アクチュエータ、インバータ、サーボ等の機器からなり、マスタ局30はそれらの機器を制御するプログラマブルコントローラからなる。なお、スレーブ局としてプログラマブルコントローラを用い、上位のマスタ局のプログラマブルコントローラが下位のスレーブ局のプログラマブルコントローラを制御するような構成としてもよい。また、図1は、スレーブ局10〜12とスレーブ局20〜22がそれぞれ別の信号線L1、L2に接続されている例を示しているが、スレーブ局10〜12、20〜22が同一の信号線に接続されていてもよい。
【0017】
マスタ局30の出力端子q5、q6からは、測定装置31における時間間隔の測定タイミングを決めるトリガ信号q5、q6が測定装置31の入力端子H5、H6に出力され、マスタ局30の入力端子q7には、測定装置31の出力端子H7から出力される測定対象の入出力信号を指定する情報とその入出力信号のトリガ条件等が入力される。
【0018】
測定装置31の入力端子H3には、測定対象の入力信号IN1と出力信号OUT1を指定する情報とそのトリガ条件がユーザにより入力され、出力端子H4からは入力信号IN1と出力信号OUT1との時間間隔が許容値以下か否かを判定した判定結果q4が出力される。
【0019】
次に、図2は、マスタ局30の構成を示すブロック図である。マスタ局30は、信号線L1の信号が入力するインターフェース32と、信号線L2の信号が入力するインターフェース33と、後述する入出力信号のトリガ情報、伝送信号のトリガ情報等を記憶するメモリ34と、マイクロコンピュータ35からの指示に従って測定装置31にトリガ信号q5、q6を出力、あるいは測定装置31から入出力信号のトリガ条件等が入力される入出力部36と、マスタ局30の状態等を表示する表示器37と、それらの回路を制御するマイクロコンピュータ35とからなる。
【0020】
次に、以上のような構成のスレーブ局10、20、マスタ局30及び測定装置31の動作を、図3を参照して説明する。
スレーブ局10は、例えばセンサであり、センサの入信号IN1の立ち上がりを検出すると、信号線L1上にマスタ装置30宛にセンサの検出信号として伝送信号Sa1を出力する。マスタ局30は、伝送信号Sa1を受信すると、信号線L2上にスレーブ局20宛に伝送信号Sb1を出力する。スレーブ局20は、例えばアクチュエータであり、マスタ局30から伝送信号Sb1を受信すると、アクチュエータを駆動し、同時にアクチュエータの駆動状態を示す信号を出力信号OUT1として外部に出力する。
【0021】
また、マスタ局30は、入力信号IN1に対応する伝送信号S10を定め、その立ち上がりにトリガ信号q5を測定装置31に出力し、出力信号OUT1に対応する伝送信号S20を定め、その立ち上がりにトリガ信号q6を測定装置31に出力する。
【0022】
測定装置31は、トリガ信号q5、q6を利用して伝送信号Sa1とSb1の時間差t1を測定して、その時間t1が許容値t0’以下か否か、つまりセンサの入力信号を検出してからアクチュエータが動作するまでの時間が一定時間以下を否かを判定する。そして、許容値以下であれば判定結果q4として正のパルス信号を、例えばマスタ局30に出力する。マスタ局30は、判定結果q4として正のパルス信号を検出したときに、センサ及びアクチュエータが正常に動作しているものと判断し、パルス信号が出力されなければ、何らかの異常が発生したものと判断して異常処理を実行する。
【0023】
次に、マスタ局30と測定装置31の機能を図4により説明する。例えば、ユーザが測定対象の入力信号IN1と出力信号OUT1を指定し、それらの信号の状態の変化を設定すると、測定装置31からマスタ装置30に入力信号IN1と出力信号OUT1を指定する情報と、それらの信号のトリガ条件TRG1、TRG2と、それらの信号の時間間隔の許容値t0が出力される(図4▲1▼)。
【0024】
マスタ局30は、測定装置31により指定された入力信号IN1と出力信号OUT1に、信号線L1上の伝送信号S10と信号線L2上の伝送信号S20を対応させ、さらに入力信号IN1のトリガ条件TRG1と出力信号OUT1のトリガ条件TRG2に対応する伝送信号S10とS20のトリガ条件TRGA1とTRGA2を作成する(図4▲2▼)。
【0025】
例えば、図5の説明図に示すように、入力信号IN1の測定開始を示す開始用トリガ条件TRG1が、入力信号IN1の状態がローレベルからハイレベルに変化する立ち上がりであれば、その入力信号IN1に対応する伝送信号S10がローレベルからハイレベルに変化する信号の立ち上がりが、伝送信号S10の開始用トリガ条件TRGA1としてマスタ局30のメモリ34に書き込まれる。同様に出力信号OUT1の測定終了を示す終了用トリガ条件TRG2が、出力信号OUT1の状態がローレベルからハイレベルに変化する信号の立ち上がりであれば、その出力信号OUT1に対応する伝送信号S20がローレベルからハイレベルに変化する信号の立ち上がりが、信号S20の終了用トリガ条件TRGA2としてメモり34に書き込まれる。
【0026】
図6は、マスタ局30のメモリ34に記憶される入出力信号と伝送信号との対応関係を示す図である。測定装置31から入力信号IN1と出力信号OUT1を指定する情報とそれらのトリガ条件TRG1、TRG2が出力されると、マスタ局30は、入力信号IN1に対して番号N1を、その入力信号IN1に対応する伝送信号S10に番号M1を定め、両者を図6に示すように対応づけてメモリ34に記憶する。同様に出力信号OUT1に対して番号Njを定め、その出力信号OUT1に対応する伝送信号S20に番号Mkを定め、両者を図6に示すように対応づけてメモリ34に記憶する。
【0027】
また、図7は、測定装置31から出力されるトリガ情報と、そのトリガ情報から作成される伝送信号のトリガ情報との対応関係を示す図である。入出力信号の測定開始を示すトリガ条件TRG1が入力信号IN1の立ち上がりであれば、その入力信号IN1に対応する伝送信号S10のトリガ条件TRGA1として伝送信号S10の立ち上がりがメモリ34に記憶される。同様に測定終了を示すトリガ条件TRG2が出力信号OUT1の立ち上がりであれば、その出力信号OUT1に対応する伝送信号S20のトリガ条件TRGA2として伝送信号S20の立ち上がりがメモリ34に記憶される。また、図7には示していないが、入力信号IN1と出力信号OUT1の時間間隔の許容値t0と、その入出力信号に対応する伝送信号S10、S20の時間間隔の許容値t0’が記憶されている。
【0028】
なお、図7のトリガ情報は、図6の入出力信号と伝送信号の番号と対応づけて記憶されており、入出力信号が定まれば、入出力信号のトリガ条件、対応する伝送信号、そのトリガ条件及び時間間隔の許容値を求めることができる。
【0029】
また、入出力信号と伝送信号及びその伝送信号のトリガ条件とを対応づける方法としては、上記に述べたように入出力信号と伝送信号に番号を割り当てる方法に限らず、単に入出力信号とそれに対応する伝送信号とその伝送信号のトリガ条件と時間間隔の許容値を対応づけてメモリ34に記憶するようにしてもよい。
【0030】
図4に戻り、マスタ局30は、信号線L1上の伝送信号S10と信号線L2の伝送信号S20のトリガ条件TRGA1、TRGA2が成立したとき、つまり伝送信号S10、S20の立ち上がり時に、それぞれトリガ信号q5、q6を測定装置31に出力する(図4▲3▼)。
【0031】
測定装置31は、入力端子H1、H2から入力する信号線L1、L2上の信号q1、q2を(図▲4▼)、トリガ信号q5、q6でトリガし、つまりトリガ信号q5の立ち上がりのタイミングで伝送信号Sa1をトリガし、トリガ信号q6の立ち上がりのタイミングで伝送信号Sb1をトリガし(図4▲5▼)、伝送信号Sa1とSb1の時間差t1を測定する(図4▲6▼)。
【0032】
次に、メモリ34から伝送信号Sa1、Sb1の時間間隔の許容値t0を読み出し(図4▲7▼)、測定値t1が許容値t0以下か否かを判定する(図4▲8▼)。そして、その判定結果を出力する(図4▲9▼)。
【0033】
伝送信号Sa1とSb1の時間差t1がその許容値t0’以下(入力信号IN1と出力信号OUT1の時間間隔が許容値t0以下)で、判定結果が良のときには、図3に示すように測定装置31から判定結果q4として正のパルス信号が出力され、判定結果が不良のときには、パルス信号は出力されない。
【0034】
この第1の実施の形態では、測定対象の入出力信号に対応する伝送信号がトリガ条件を満足するとき、マスタ局30が、トリガ信号q5、q6を測定装置31に出力するようにしたので、測定装置31側では測定対象の伝送信号の状態の変化を検出する機能を有しなくとも、入出力信号の時間間隔を測定できる。
【0035】
また、この実施の形態では、測定対象の入出力信号が変更となったときでも、変更となった入出力信号に対応する伝送信号を定め、そのトリガ条件を作成するだけでよいので、測定対象の入出力信号の変更に対して柔軟に対応できる。
【0036】
次に、圧縮された伝送信号からトリガ条件を作成できるようにした本発明の第2の実施の形態を説明する。この第2の実施の形態の伝送システムの構成は、基本的には図1と同様である。この実施の形態は、マスタ局30が圧縮されたデータを解凍する機能を有している。
【0037】
以下、マスタ局30における処理動作を図8のフローチャートを参照して説明する。先ず、信号線L1から伝送信号を受信し、受信した伝送信号が圧縮されたデータを否かを判断する(図8、ST1)。圧縮されたデータであればそのデータを解凍する(ST2)。
【0038】
図9(1)に示すように、圧縮されたデータD1は、データの数とデータの値とを一対とし、それら1対のデータが複数集まって構成されている。例えば、図9(1)の圧縮されたデータD1は、「11・50・101」であるので、最初のデータは「1」の値が1ビット続き、2番目のデータは「0」が5ビット続き、3番目のデータは「1」が10ビット続くことを示している。従って、解凍後のデータD2(同図(2))は、最初に「1」が1ビット、次に「0」が5ビット、その次に「1」が10ビット続くデータとなる。
【0039】
同様に、図9(3)の圧縮データD3は、「11・10・11・30・101」であるので、解凍後のデータD4は(同図(4))、最初に「1」が1ビット、次に「0」が1ビット、次に「1」が1ビット、次に「0」が3ビット、最後に「1」が10ビット続くデータとなる。
【0040】
解凍後のデータの3ビット目が「0」か「1」かにより、伝送信号の状態の変化が表されている。Sa1=0からSa1=1に変化したときが、伝送信号Sa1の立ち上がりを示している。
【0041】
図8に戻り、信号線L1の伝送信号q1の状態とトリガ条件が一致するか否かを判定する(ST3)。トリガ条件が一致しなければ、そこで処理を終了する。例えば、伝送信号S10の立ち上がりと同じタイミングで、解凍したデータの3ビット目がSa1=0からSa1=1に変化した場合には、伝送信号S10のトリガ条件を満たすので、マスタ局30はトリガ信号q5を測定装置31に出力する(ST4)。同様に信号線L2の伝送信号q2についてもトリガ条件と一致するか否かを判定し、トリガ条件が一致したならトリガ信号q6を測定装置31に出力する。
【0042】
測定装置31は、上述した第1の実施の形態と同様にトリガ信号q5、q6の受信タイミングにおける信号Sa1、Sb1の時間差t1を測定し、測定した時間差t1が許容値t0以下か否かを判定する。
【0043】
この第2の実施の形態によれば、スレーブ局10、20とマスタ局30との間を伝送される伝送信号が圧縮されている場合に、マスタ局30がデータの解凍機能を有し、解凍したデータがトリガ条件を満足するか否かを判定するようにしたので、従来の測定装置16では測定できなかった圧縮された伝送信号の時間間隔を測定することが可能となる。
【0044】
【発明の効果】
本発明は、マスタ局が測定対象の入出力信号に対応する伝送信号のトリガ条件を定め、伝送信号の状態の変化がトリガ条件を満たすか否かを判定するようにしたので、例えば測定装置が伝送信号の状態の変化を検出する機能を持たなくとも入出力信号の時間間隔を測定することができる。また、マスタ局が信号線上を伝送される圧縮された伝送信号を解凍して、解凍した伝送信号がトリガ条件を満たすか否かを判定するようにしたので、従来の測定装置では測定できなかった圧縮された伝送信号の時間間隔を測定することが可能となった。
【図面の簡単な説明】
【図1】第1の実施の形態の伝送システムの構成を示す図である。
【図2】マスタ局30の構成を示すブロック図である。
【図3】第1の実施の形態の測定装置31の動作を示す図である。
【図4】第1の実施の形態のマスタ局30及び測定装置31の機能説明図である。
【図5】実施の形態のマスタ局30のトリガ情報の説明図である。
【図6】入出力信号と伝送信号との対応関係を示す図である。
【図7】入出力信号のトリガ条件と伝送信号のトリガ条件との対応関係を示す図である。
【図8】第2の実施の形態のマスタ局30の受信動作を示すフローチャートである。
【図9】第2の実施の形態のマスタ局30の受信データの処理の説明図である。
【図10】従来の伝送システムの構成を示す図である。
【図11】従来の測定装置16の動作を示す図である。
【図12】従来の測定装置16の機能説明図である。
【符号の説明】
10〜12、20〜22 スレーブ局
30 マスタ局
31 測定装置[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a transmission system comprising a slave station and a master station and a method for measuring time intervals of input / output signals.
[0002]
[Prior art]
Sensors, actuators, inverters, servos and other devices that have communication functions in factories and logistics facilities (called slave stations) and controllers that control those devices via communication lines (called master stations) There is a transmission system.
[0003]
FIG. 10 is a configuration diagram of a conventional transmission system. The
[0004]
FIG. 11 is a diagram illustrating operations of the
The
[0005]
The
[0006]
The
[0007]
Next, the operation of the conventional
Transmission signals on the signal lines L1, L2 are input to the
[0008]
[Problems to be solved by the invention]
As described above, when the
[0009]
The
[0010]
Further, when the transmission signal transmitted on the signal line is data-compressed, the
[0011]
An object of the present invention is to make it possible to easily measure a time interval of input / output signals from a transmission signal on a signal line.
Another problem is to be able to measure the time interval of the transmission signal even when the transmission signal transmitted on the signal line is data-compressed.
[0012]
[Means for Solving the Problems]
In the transmission system having a trigger function of the present invention, when one of the plurality of slave stations detects a change in the input signal, the detection result is transmitted to the master station as a transmission signal, and the master station transmits the transmission signal. In the transmission system in which the control signal for controlling the other slave station is transmitted as a transmission signal based on the transmission signal, and the other slave station outputs the output signal, the input signal of the one slave station and the change of the state of the input signal When the output signal of the other slave station and the change of the state of the output signal are specified, the specified input signal, the transmission signal transmitted from the one slave station, and the change of the state of the transmission signal are defined. The start trigger condition to be stored is stored in association with each other, and the designated output signal, the transmission signal to be transmitted to the other slave station, and the transmission to be transmitted to the other slave station Storage means for associating and storing a termination trigger condition that prescribes a change in the state of the signal, and a change in the state of a transmission signal transmitted from the one slave station is stored in the storage means. Trigger condition determination that determines whether or not the trigger condition matches, and whether or not the change in the state of the transmission signal transmitted to the other slave station matches the termination trigger condition stored in the storage means And a trigger signal determining means for outputting a measurement start signal when it is determined that a change in state of the transmission signal transmitted from the one slave station matches the trigger condition for start, and the other slave station The master station has output means for outputting a measurement end signal when it is determined that the change in the state of the transmission signal transmitted to the terminal trigger condition is matched, and the master station The time difference between the transmission signal transmitted from the one slave station and the transmission signal transmitted from the master station to the other slave station is allowed based on the measurement start signal and the measurement end signal output from the master station. A transmission system having a trigger function comprising a measuring device that determines whether or not the value is equal to or less than a value.
[0013]
In the present invention, when the time interval of the input / output signal to be measured is measured, the transmission trigger corresponding to the input / output signal and the information defining the change in the state of the transmission signal are set to the start trigger condition indicating the start of measurement. As an end trigger condition indicating the end of measurement, store it in correspondence with the input / output signal, and when the change in the state of the transmission signal to be measured matches the start trigger condition or the end trigger condition, The signal shown is output.
[0014]
Therefore, by determining the transmission signal on the signal line corresponding to the input / output signal and the trigger condition of the transmission signal on the master station side, for example, the measurement apparatus side that measures the time interval of the input / output signal determines the transmission signal to be measured. There is no need to detect rising or falling. In addition, since the master station only needs to associate the input / output signal with the transmission signal and determine the trigger condition of the transmission signal, the trigger condition can be easily set and the input / output signal to be measured is changed. Can respond flexibly.
[0015]
Further, by providing a data decompression means in the master station, even if the transmission signal transmitted on the signal line is data compressed, the transmission signal is decompressed and the transmission signal corresponding to the input / output signal from the original data The trigger condition can be defined. As a result, it is possible to measure the time interval of the compressed transmission signal that was not possible with the conventional measuring apparatus.
[0016]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a diagram showing a system configuration of a transmission system according to a first embodiment of this invention. In the figure, the signal line L1 is connected to the
[0017]
From the output terminals q5 and q6 of the
[0018]
Information specifying the input signal IN1 and output signal OUT1 to be measured and the trigger condition are input by the user to the input terminal H3 of the measuring
[0019]
Next, FIG. 2 is a block diagram showing the configuration of the
[0020]
Next, operations of the
The
[0021]
The
[0022]
The measuring
[0023]
Next, functions of the
[0024]
The
[0025]
For example, as shown in the explanatory diagram of FIG. 5, if the start trigger condition TRG1 indicating the start of measurement of the input signal IN1 is a rising edge where the state of the input signal IN1 changes from low level to high level, the input signal IN1 The rising edge of the signal at which the transmission signal S10 corresponding to the signal changes from the low level to the high level is written in the
[0026]
FIG. 6 is a diagram illustrating a correspondence relationship between input / output signals and transmission signals stored in the
[0027]
FIG. 7 is a diagram illustrating a correspondence relationship between trigger information output from the
[0028]
The trigger information in FIG. 7 is stored in association with the input / output signal and transmission signal numbers in FIG. 6. When the input / output signal is determined, the trigger condition of the input / output signal, the corresponding transmission signal, Trigger conditions and time interval tolerances can be determined.
[0029]
In addition, the method of associating the input / output signal with the transmission signal and the trigger condition of the transmission signal is not limited to the method of assigning numbers to the input / output signal and the transmission signal as described above. The corresponding transmission signal, the trigger condition of the transmission signal, and the allowable time interval may be stored in the
[0030]
Returning to FIG. 4, the
[0031]
The measuring
[0032]
Next, the allowable value t0 of the time interval between the transmission signals Sa1 and Sb1 is read from the memory 34 (FIG. 4 (7)), and it is determined whether or not the measured value t1 is equal to or less than the allowable value t0 (FIG. 4 (8)). Then, the determination result is output ((9) in FIG. 4).
[0033]
When the time difference t1 between the transmission signals Sa1 and Sb1 is equal to or smaller than the allowable value t0 ′ (the time interval between the input signal IN1 and the output signal OUT1 is equal to or smaller than the allowable value t0) and the determination result is good, the measuring
[0034]
In the first embodiment, when the transmission signal corresponding to the input / output signal to be measured satisfies the trigger condition, the
[0035]
Further, in this embodiment, even when the input / output signal to be measured is changed, it is only necessary to define the transmission signal corresponding to the changed input / output signal and create the trigger condition thereof. Can flexibly respond to changes in the input / output signals
[0036]
Next, a second embodiment of the present invention in which a trigger condition can be created from a compressed transmission signal will be described. The configuration of the transmission system according to the second embodiment is basically the same as that shown in FIG. In this embodiment, the
[0037]
Hereinafter, the processing operation in the
[0038]
As shown in FIG. 9 (1), the compressed data D1 is composed of a pair of the number of data and the value of the data, and a plurality of such pairs of data are collected. For example, since the compressed data D1 in FIG. 9A is “11, 50, 101”, the value of “1” continues for 1 bit in the first data, and “0” is 5 in the second data. The bit continues and the third data indicates that “1” continues for 10 bits. Therefore, the decompressed data D2 ((2) in the figure) is data in which “1” is 1 bit, “0” is 5 bits, and “1” is 10 bits.
[0039]
Similarly, since the compressed data D3 in FIG. 9 (3) is “11, 10, 11, 30, 101”, the decompressed data D4 ((4) in FIG. 9) is “1” is 1 at first. Bit, then “0” is 1 bit, then “1” is 1 bit, then “0” is 3 bits, and finally “1” is 10 bits.
[0040]
The change in the state of the transmission signal is represented by whether the third bit of the decompressed data is “0” or “1”. The change from Sa1 = 0 to Sa1 = 1 indicates the rise of the transmission signal Sa1.
[0041]
Returning to FIG. 8, it is determined whether or not the state of the transmission signal q1 of the signal line L1 matches the trigger condition (ST3). If the trigger conditions do not match, the process ends there. For example, when the third bit of the decompressed data changes from Sa1 = 0 to Sa1 = 1 at the same timing as the rising edge of the transmission signal S10, the trigger condition of the transmission signal S10 is satisfied. q5 is output to the measuring device 31 (ST4). Similarly, it is determined whether or not the transmission signal q2 of the signal line L2 matches the trigger condition. If the trigger condition matches, the trigger signal q6 is output to the measuring
[0042]
The measuring
[0043]
According to the second embodiment, when a transmission signal transmitted between the
[0044]
【The invention's effect】
In the present invention, the master station determines the trigger condition of the transmission signal corresponding to the input / output signal to be measured, and determines whether or not the change in the state of the transmission signal satisfies the trigger condition. The time interval between input and output signals can be measured without a function for detecting a change in the state of the transmission signal. In addition, since the master station decompresses the compressed transmission signal transmitted on the signal line and determines whether or not the decompressed transmission signal satisfies the trigger condition, it could not be measured by the conventional measuring apparatus. It became possible to measure the time interval of the compressed transmission signal.
[Brief description of the drawings]
FIG. 1 is a diagram illustrating a configuration of a transmission system according to a first embodiment.
2 is a block diagram showing a configuration of a
FIG. 3 is a diagram illustrating an operation of the
FIG. 4 is an explanatory diagram of functions of the
FIG. 5 is an explanatory diagram of trigger information of the
FIG. 6 is a diagram illustrating a correspondence relationship between input / output signals and transmission signals.
FIG. 7 is a diagram illustrating a correspondence relationship between a trigger condition for an input / output signal and a trigger condition for a transmission signal.
FIG. 8 is a flowchart illustrating a reception operation of the
FIG. 9 is an explanatory diagram of received data processing of the
FIG. 10 is a diagram illustrating a configuration of a conventional transmission system.
FIG. 11 is a diagram showing the operation of a
FIG. 12 is a functional explanatory diagram of a
[Explanation of symbols]
10-12, 20-22
Claims (5)
前記1つのスレーブ局の入力信号と該入力信号の状態の変化と前記他のスレーブ局の出力信号と該出力信号の状態の変化が指定されたとき、指定された前記入力信号と前記1つのスレーブ局から送信される前記伝送信号と前記伝送信号の状態の変化を規定する開始用トリガ条件とを対応づけて記憶すると共に、指定された前記出力信号と前記他のスレーブ局に送信する前記伝送信号と前記他のスレーブ局に送信する前記伝送信号の状態の変化を規定する終了用トリガ条件とを対応づけて記憶する記憶手段と、
前記1つのスレーブ局から送信される前記伝送信号の状態の変化が、前記記憶手段に記憶されている前記開始用トリガ条件と一致するか否か、前記他のスレーブ局に送信する前記伝送信号の状態の変化が前記記憶手段に記憶されている前記終了用トリガ条件と一致するか否かを判定するトリガ条件判定手段と、
前記トリガ条件判定手段により前記1つのスレーブ局から送信される前記伝送信号の状態の変化が前記開始用トリガ条件と一致すると判定されたとき測定開始信号を出力し、前記他のスレーブ局に送信する前記伝送信号の状態の変化が前記終了用トリガ条件と一致すると判定されたとき測定終了信号を出力する出力手段とをマスタ局が有し、
前記マスタ局から出力される前記測定開始信号と前記測定終了信号とに基づいて前記1つのスレーブ局から送信される前記伝送信号と前記マスタ局から前記他のスレーブ局に送信される前記伝送信号の時間差が許容値以下か否かを判定する測定装置とを備えることを特徴とするトリガ機能を持つ伝送システム。 When one slave station of a plurality of slave stations detects a change in input signal, the detection result is transmitted as a transmission signal to the master station, and the master station controls other slave stations based on the transmission signal. In a transmission system in which a signal is transmitted as a transmission signal and the other slave station outputs an output signal ,
When the input signal of the one slave station, the change of the state of the input signal, the output signal of the other slave station, and the change of the state of the output signal are designated, the designated input signal and the one slave The transmission signal transmitted from the station and the start trigger condition for defining the change in the state of the transmission signal are stored in association with each other, and the designated output signal is transmitted to the other slave station. And storage means for storing the termination trigger condition for defining a change in the state of the transmission signal transmitted to the other slave station in association with each other ,
Whether the change in state of the transmission signal transmitted from the one slave station matches the start trigger condition stored in the storage means, whether the transmission signal transmitted to the other slave station Trigger condition determining means for determining whether or not a change in state matches the termination trigger condition stored in the storage means ;
When it is determined by the trigger condition determining means that the change in state of the transmission signal transmitted from the one slave station matches the trigger condition for start, a measurement start signal is output and transmitted to the other slave station The master station has output means for outputting a measurement end signal when it is determined that a change in the state of the transmission signal matches the end trigger condition,
The transmission signal transmitted from the one slave station and the transmission signal transmitted from the master station to the other slave station based on the measurement start signal and the measurement end signal output from the master station. A transmission system having a trigger function, comprising: a measuring device that determines whether or not the time difference is equal to or less than an allowable value .
前記トリガ条件判定手段は、前記解凍手段で解凍された測定対象の伝送信号の状態の変化が前記開始用トリガ条件または終了用トリガ条件と一致するか否かを判定することを特徴とする請求項1記載のトリガ機能を持つ伝送システム。When the transmission signal transmitted from the slave station to the master station is compressed, the master station has decompression means for returning the compressed transmission signal to the state before compression,
The trigger condition determining means determines whether or not a change in the state of a transmission signal to be measured decompressed by the decompressing means matches the start trigger condition or the end trigger condition. A transmission system having the trigger function according to 1.
測定対象の入力信号と出力信号のトリガ条件を外部から受信する受信手段と、
前記受信手段で受信されたトリガ条件に基づいて前記記憶手段に記憶されている前記測定対象の伝送信号の開始用トリガ条件及び終了用トリガ条件を更新する更新手段を有することを特徴とする請求項1または2記載のトリガ機能を持つ伝送システム。 The one slave station is a sensor, the master station is a programmable controller, and the other slave station is a device to be controlled,
Receiving means for receiving the trigger condition of the input signal and the output signal to be measured from the outside,
The update means for updating a start trigger condition and an end trigger condition of the transmission signal to be measured stored in the storage means based on the trigger condition received by the receiving means. A transmission system having a trigger function according to 1 or 2.
前記1つのスレーブ局の入力信号と該入力信号の状態の変化と前記他のスレーブ局の出力信号と該出力信号の状態の変化が指定されたとき、指定された前記入力信号と前記1つのスレーブ局から送信される前記伝送信号と前記1つのスレーブ局から送信される前記伝送信号の状態の変化を規定する開始用トリガ条件とを対応づけて記憶すると共に、指定された前記出力信号と前記他のスレーブ局に送信する前記伝送信号と前記他のスレーブ局に送信する前記伝送信号の状態の変化を規定する終了用トリガ条件とを対応づけて前記マス タ局の記憶手段に記憶し、
前記1つのスレーブ局から送信される前記伝送信号の状態の変化が前記記憶手段に記憶されている前記開始用トリガ条件と一致するか否か、前記他のスレーブ局に送信する前記伝送信号の状態の変化が前記記憶手段に記憶されている前記終了用トリガ条件と一致するか否かを前記マスタ局が判定し、
前記1つのスレーブ局から送信される前記伝送信号の状態の変化が前記開始用トリガ条件と一致すると判定されたとき測定開始信号を測定装置に出力し、前記マスタ局から前記他のスレーブ局に送信する前記伝送信号の状態の変化が前記終了用トリガ条件と一致すると判定されたとき測定終了信号を前記マスタ局から測定装置に出力し、
前記測定装置が前記マスタ局から出力される前記測定開始信号と前記測定終了信号とに基づいて前記1つのスレーブ局から送信される前記伝送信号と前記マスタ局から前記他のスレーブ局に送信される前記伝送信号の時間差が許容値以下か否かを判定する伝送システムの入出力信号の時間間隔測定方法。 When one slave station of a plurality of slave stations detects a change in input signal, the detection result is transmitted as a transmission signal to the master station, and the master station controls other slave stations based on the transmission signal. In the method for measuring time intervals of input / output signals in a transmission system in which a signal is transmitted as a transmission signal and the other slave station outputs an output signal .
When the input signal of the one slave station, the change of the state of the input signal, the output signal of the other slave station, and the change of the state of the output signal are designated, the designated input signal and the one slave The transmission signal transmitted from the station and the trigger condition for start defining the change in the state of the transmission signal transmitted from the one slave station are stored in association with each other, and the designated output signal and the other wherein the termination trigger conditions specified changes in the state of the transmission signal in correspondence stored in the storage means of the master station to the transmission signal to be transmitted in the slave station and transmitted to the other slave stations,
Whether the change in the state of the transmission signal transmitted from the one slave station matches the start trigger condition stored in the storage means, the state of the transmission signal transmitted to the other slave station The master station determines whether or not the change in the condition matches the termination trigger condition stored in the storage means ,
When it is determined that the change in the state of the transmission signal transmitted from the one slave station matches the start trigger condition, a measurement start signal is output to the measurement device and transmitted from the master station to the other slave station When it is determined that the change in the state of the transmission signal matches the trigger condition for termination, a measurement end signal is output from the master station to the measurement device ,
The measurement apparatus transmits the transmission signal transmitted from the one slave station and the master station to the other slave station based on the measurement start signal and the measurement end signal output from the master station. A method for measuring a time interval of input / output signals of a transmission system for determining whether or not a time difference of the transmission signals is equal to or less than an allowable value .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP26066997A JP3702605B2 (en) | 1997-09-25 | 1997-09-25 | Transmission system having trigger function and time interval measuring method of input / output signal thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP26066997A JP3702605B2 (en) | 1997-09-25 | 1997-09-25 | Transmission system having trigger function and time interval measuring method of input / output signal thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH11103307A JPH11103307A (en) | 1999-04-13 |
JP3702605B2 true JP3702605B2 (en) | 2005-10-05 |
Family
ID=17351131
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP26066997A Expired - Fee Related JP3702605B2 (en) | 1997-09-25 | 1997-09-25 | Transmission system having trigger function and time interval measuring method of input / output signal thereof |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3702605B2 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5079180B1 (en) * | 2011-11-15 | 2012-11-21 | 株式会社 エニイワイヤ | Fault detection method and slave station terminal used for that method |
WO2013124974A1 (en) * | 2012-02-22 | 2013-08-29 | 株式会社エニイワイヤ | Fault detection method and slave station terminal used for said method |
CN104145482B (en) * | 2012-03-09 | 2018-01-30 | 株式会社爱霓威亚 | Interlock abnormal detection method and be used in the secondary terminal machine of this method |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0636888B2 (en) * | 1991-08-02 | 1994-05-18 | 株式会社興和 | Manufacturing method of casting snow-melting nozzle |
JPH10341271A (en) * | 1997-06-07 | 1998-12-22 | Horiba Ltd | Communication error detection method in digital communication system |
-
1997
- 1997-09-25 JP JP26066997A patent/JP3702605B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JPH11103307A (en) | 1999-04-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20090083465A1 (en) | Method for Automatic Configuration of a Process Control System and Corresponding Process Control System | |
JPH0812615B2 (en) | Data security device having fault tolerance and method thereof | |
EP0164421B1 (en) | Programmable controller | |
JP3702605B2 (en) | Transmission system having trigger function and time interval measuring method of input / output signal thereof | |
JPH03196729A (en) | Error display device for data transmission system | |
JPS6051136B2 (en) | Data error detection method | |
JP3321365B2 (en) | I / O devices and centralized monitoring system | |
JP7596867B2 (en) | Switch system and switch | |
JP3057539B2 (en) | Communication emulator device | |
JPS60167547A (en) | Signal transmitter | |
JPH11143790A (en) | Control signal inputting and outputting device | |
JPH04284511A (en) | Abnormality detector for programmable controller | |
JPH05307512A (en) | Communication terminal equipment | |
JPH07210782A (en) | Data processing device | |
JP3030475B2 (en) | Display controller in disaster prevention display system | |
JPH08298513A (en) | Control communication system | |
JPH09311716A (en) | Lan device | |
JPH066422A (en) | Communication tester | |
JP2603159B2 (en) | Node check device for serial control device and method therefor | |
JPH0324601A (en) | Control method | |
JPH0275007A (en) | Controller | |
JP2001034373A (en) | Input/output device for digital data | |
JPS59140749A (en) | Analyzer of time-division multiplex transmission system | |
JPH05145602A (en) | Data transmitter | |
JPS63131695A (en) | Signal transmitter for remote supervisory and controlling equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20040218 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20050228 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050405 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050603 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20050628 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20050711 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080729 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090729 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090729 Year of fee payment: 4 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090729 Year of fee payment: 4 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090729 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100729 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110729 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110729 Year of fee payment: 6 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110729 Year of fee payment: 6 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110729 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120729 Year of fee payment: 7 |
|
LAPS | Cancellation because of no payment of annual fees |