JP2004140652A - Communication system - Google Patents

Communication system Download PDF

Info

Publication number
JP2004140652A
JP2004140652A JP2002304174A JP2002304174A JP2004140652A JP 2004140652 A JP2004140652 A JP 2004140652A JP 2002304174 A JP2002304174 A JP 2002304174A JP 2002304174 A JP2002304174 A JP 2002304174A JP 2004140652 A JP2004140652 A JP 2004140652A
Authority
JP
Japan
Prior art keywords
data
transmission
slave station
station
transmission data
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.)
Granted
Application number
JP2002304174A
Other languages
Japanese (ja)
Other versions
JP3798363B2 (en
Inventor
Hiroshi Kubota
窪田 博
Kazumasa Tanaka
田中 一正
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.)
ALGO SYSTEM KK
Original Assignee
ALGO SYSTEM KK
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 ALGO SYSTEM KK filed Critical ALGO SYSTEM KK
Priority to JP2002304174A priority Critical patent/JP3798363B2/en
Publication of JP2004140652A publication Critical patent/JP2004140652A/en
Application granted granted Critical
Publication of JP3798363B2 publication Critical patent/JP3798363B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a communication system for controlling an industrial apparatus connected to a sub-station at a high speed by restricting a decrease in effective transmission speed of transmission data, such as command and parameter. <P>SOLUTION: Individual IDs are added to two or more transmission data generated and transmitted at a key station 1, and these plurality of different IDs are assigned to each sub-stations 101, 201. In the key station 1, an operation of transmitting sequentially the transmission data for use of each ID in a predetermined cycle is treated as one transmission loop. The key station 1 transmits repeatedly the transmission loop while each of transmission data is rewritten. Then, sub-stations 101, 201 extract and analyze only transmission data to which self station identification ID is added, and generate response data and send a reply to the key station 1 in a prescribed response cycle. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
この発明は、親局と産業機器等が接続された子局とを通信線で接続し、親局にて子局に接続された産業機器を制御する通信システムに関するものである。
【0002】
【従来の技術】
従来、複数の産業機器を一カ所で遠隔制御する方法としては、作業者がコマンドおよびパラメータ等を入力する中央装置と、各産業機器に接続または内蔵された機器制御部とをそれぞれ配線し、前記中央装置で制御する産業機器を選択して制御命令を送る方法が採用されていた。しかしながら、このような配線を用いて、複数の産業機器を中央装置で選択的に制御する方法では、制御する産業機器の数が増加すれば、それに伴い配線数も増加するため遠隔制御システム全体が大型化し、設備費が増大してしまう。
【0003】
このため、近年、中央装置と各産業機器の機器制御部とを配線する方法に変わり、親局(中央装置側)と子局(各産業機器側)とを通信線で接続し、親局でコマンドおよびパラメータを生成して通信網を介して送信し、子局はこれらコマンドおよびパラメータを解析して、接続されている産業機器を制御する通信システムが多く採用されている。
【0004】
このような通信線を介した通信による産業機器の通信システムの一つとして、親局でコマンドおよびパラメータ等の送信データとこれを識別するためのIDとを生成し、順次通信線を介して各子局に出力して、各子局では、子局毎に異なる単一のIDを設定し、このIDに基づいて受信した送信データの中から必要分のみを抽出して解析し、産業機器を制御する通信システムがある。このシステムでは、複数の送信データの発信をID設定数分行うことを1送信ループとし、該送信ループを送信データを書き換えながら連続して行うことで、比較的簡単な送信データを高速で送受信している(例えば、非特許文献1参照。)。
【0005】
【非特許文献1】
“1m.sec.以内の信号伝送”、[online]、[2002年9月27日検索]、インターネット<URL:http://www.internix.co.jp/products/step/hls.htm >
【0006】
【発明が解決しようとする課題】
ところが、前述のような従来の通信システムでは、送信データは所定の送信周期で送信されており、所定周期内の1回当たりの送信データのデータ量であるビット長は、例えば16bits等のように、予め設定されている。
【0007】
このため、1回分の送信データが所定のビット長(上記の場合では、16bits)を超える場合は、まず送信し得るビット長内で、適切なビット長分を利用して送信データを発信し、次の送信ループ以降で残りの送信データを発信しなければならなかった。
【0008】
これにより、例えば、送信データが子局に接続された産業機器を制御するコマンドやパラメータであった場合、子局が産業機器を制御するに必要なコマンドおよびパラメータを複数の送信ループに亘り送受信しなくてはならなくなり、実効通信速度が低下してしまため、産業機器を高速に制御することができない。
【0009】
この発明の目的は、コマンドおよびパラメータ等の送信データの実効通信速度の低下を抑制し、子局に接続された産業機器を高速で制御する通信システムを提供することにある。
【0010】
【課題を解決するための手段】
この発明に示す通信システムは、IDを1送信ループ内で複数設定する子局データ制御手段と、設定された複数のIDに基づいて前記1送信ループ内で複数回送信データを抽出する子局通信制御手段とを備えて子局を構成することを特徴としている。
【0011】
この構成では、子局データ制御手段で1送信ループ内に複数のIDを設定することで、1送信ループ内に複数回送信データが抽出される。このため、親局で生成される複数の送信データが、1送信ループ内の1回の送信で割り当てられる、1つのIDに対応したデータ量(ビット長)よりも大きい場合でも、子局は、これら複数の送信データを複数送信ループに亘り受信する必要がなくなり、1送信ループ内でこれら複数の送信データが受信される。
【0012】
また、この発明に示す通信システムの子局データ制御手段は、送信データを記憶する第1の子局記憶手段と、応答データを記憶する第2の子局記憶手段とを備えたことを特徴としている。
【0013】
この構成では、子局が受信した送信データを第1の子局記憶手段に記憶しておくことで、連続して親局から発信される送信データを受信しながら、必要な送信データの解析を行い、子局に接続されている産業機器を制御する命令を生成し出力する動作を、送信周期に同期させながら行う必要が無くなり、任意のタイミングで、送信データの解析、産業機器への制御命令の生成、出力が行われる。また、応答データを第2の子局記憶手段に記憶しておくことで、産業機器からのデータを解析し、応答データを生成し、IDに関連付けして返信する動作を、応答周期に同期させながら行う必要が無くなり、任意のタイミングで、産業機器からのデータ解析、応答データの生成が行われる。
【0014】
また、この発明に示す通信システムは、それぞれ異なる複数のIDに付加された関連性を有する複数の送信データに、同一のパーティーコードを付加し、子局データ制御手段で、パーティーコードに基づいて受信した複数の送信データを関連付けすることを特徴としている。
【0015】
この構成では、一連の送信データ、例えば、産業機器を制御する場合のコマンドおよびそのパラメータに同一パーティーコードを添付することで、子局ではこれらの送信データの関連性が容易に識別される。また、コマンドおよびパラメータのデータ量(ビット長)が大きく、1送信ループ内のID数に対応させられない場合でも、他の送信ループで発信し、子局がこの同一パーティーコードを識別することで、一連のコマンドおよびパラメータが確実に識別され解析される。
【0016】
また、この発明に示す通信システムは、それぞれ異なる複数のIDに付加された関連性を有する複数の応答データに、同一のパーティーコードを付加し、親局データ制御手段で、パーティーコードに基づいて返信された複数の応答データを関連付けすることを特徴としている。
【0017】
この構成では、前述の複数の送信データにパーティコードが添付された場合と同様に、複数の応答データに同一のパーティーコードが添付されることで、複数の応答データの関連性が親局で確実に識別される。
【0018】
【発明の実施の形態】
本発明の第1の実施形態に係る通信システムについて、図を参照して説明する。
図1は、本実施形態に係る通信システムの主要部を示すブロック図である。
また、図2は図1に示す通信システムを用いて親局から子局への送信、および子局から親局への返信を行う場合のタイミングを示す概念図である。
【0019】
図1に示すように、通信システムは、親局1と、複数の子局101,201と、これらを接続する通信線10,11とから構成されており、それぞれに子局101,102に制御される産業機器が接続されている。
【0020】
親局1は、送信データを生成する親局データ制御部2と、親局通信制御部3と、表示部4とから構成され、子局101,201は、それぞれ子局データ制御部102,202と、子局通信制御部103,203と、機器制御部104,204とから構成されている。
【0021】
親局1は親局通信制御部3で通信線10,11に接続されており、子局101,201は、それぞれの子局通信制御部103,203で通信線10,11に接続されている。
【0022】
親局データ制御部2は、子局101,201に接続された産業機器を制御するための送信データを生成し、子局101,102から返信された応答データを解析して表示部4に出力する。親局通信制御部3は送信データを所定送信周期で発信するとともに、子局から返信された応答データを受信するデータ送受信部と、前記送信データを一時記憶する親局第1メモリ32aと、データ送受信部31で受信した応答データを一時記憶する親局第2メモリ32bとからなる。ここで、送信データとしては機器制御用のコマンドおよびパラメータであり、制御する機器が接続されている子局を識別するための複数のIDがそれぞれ付加されている。
【0023】
子局データ制御部102は、子局用通信制御部103で受信した送信データを解析して、機器制御部104に出力し、この送信データに対する応答データを生成し、子局通信制御部103に出力する。また子局データ制御部102は、予め子局101に割り当てられ、該子局を識別する前記IDを設定するID設定部121を備えている。
子局データ制御部202は、子局データ制御部102と同じ構成であり、ID設定部221で設定するIDのみが異なる。
【0024】
このような通信システムを用いて、図2に示すようなタイミングで送信データおよび応答データを送受信する。
【0025】
図2において、実線矢印は送信データ、破線矢印は応答データを示す。
親局通信制御部3は、親局データ制御部2で順次生成され、それぞれに異なるIDが付加された送信データを所定送信周期で通信線10を介して各子局101,201に同時に発信する。そして、予め設定したID数(本実施形態では「6」)だけ送信データを行うと1送信ループが終了し、再度初期IDに戻り、新たな送信データにIDが付加されて発信される。このように、親局通信制御部3は予め設定されたID数に応じて、設定された送信ループを繰り返して、送信データを発信し続ける。
【0026】
一方、子局101,201は、受信した送信データのIDを識別して、それぞれに対応する送信データのみを抽出して応答データを生成し、IDとともに所定応答周期で返信する。
【0027】
ここで、例えば、図2に示すように、ID1,3,5が子局101に割り当てられ、ID2,4,6が子局201に割り当てられた場合について説明する。
【0028】
親局データ制御部2は、子局101に接続された産業機器に対するコマンドやパラメータ等の子局101に対する送信データを親局第1メモリ32aに、ID1,3,5に対応させて記憶させる。また、子局201に接続された産業機器に対するコマンドやパラメータ等の子局201に対する送信データを親局第1メモリ32aに、ID2,4,6に対応させて記憶させる。親局通信制御部3はこれらID付きの送信データを読み出し、子局101,201にIDの小さい送信データから順に送信する。そして、各子局101,201がID1,3,5の送信データを順に受信すると、子局101の子局データ制御部102はこれらの送信データを抽出する。そして、該送信データに対応する応答データを順次生成し、子局通信制御部103に出力し、該子局通信制御部103は通信線11を介して親局側に返信する。次に、ID2,4,6の送信データを各子局101,201が順次受信すると、子局201の子局データ制御部202はこの送信データを抽出する。そして、該送信データに対応する応答データを生成し、子局通信制御部203に出力し、該子局通信制御部203は通信線11を介して親局側に返信する。親局1は、親局通信制御部3で各子局101,201からのID付き応答データを受信すると、親局第2メモリ32bに記憶させ、親局データ制御部2はこの親局第2メモリ32bに記憶された応答データをIDに基づいて解析し、表示部4に出力する等の所定の処理を行う。 ここで、それぞれのIDが割り当てられた応答データは、ID1〜6がそれぞれ順に所定応答周期で返信されるように制御されている。
【0029】
このような全二重通信方式を用いて、制御用送信データおよびこれに対応する応答データを親局と各子局間で通信する。
【0030】
次に、図1に示す通信システムを用いて産業機器を制御する一例として、子局101に接続された1次元の位置決め装置を制御する方法を示す。本実施形態では1次元の位置決め装置として、パルスモータを例にして説明する。
【0031】
親局1は、子局101に接続されている位置決め装置のパルスモータを時計方向に回転させて10万パルス分の位置移動を行う命令を作業者から入力されると、親局データ制御部2は、パルスモータを時計方向に回転させる、すなわち、+方向に移動させるコマンドの送信データ(以下、単に「コマンド」という。)と、移動量である10万パルスというパラメータの送信データ(以下、単に「パラメータ」という。)を生成する。ここで、1送信ループ内の各1回の送信のデータ量(以下、「1ワード」という。)を2進数で16ビットとした場合、1ワードでは65536パルスしか表すことができない。このため、前記10万パルスのパラメータを送信するためには、少なくとも2ワード(32ビット)が必要となる。親局データ制御部2は、前記コマンドを1ワードに割り当て、前記パラメータを2ワードに割り当て、コマンドをID1に対応させ、パラメータをそれぞれID3,5に対応させて、親局通信制御部3の親局第1メモリ32aにIDの小さい順に記憶させる。データ送受信部31は親局第1メモリ32aに記憶されたコマンドおよびパラメータを付加されているIDの小さい順に前記送信周期で順次発信する。なお、ID2,4,6は他の子局201に割り当てられており、データ送受信部31はこれらID2,4,6に付加されたコマンドおよびパラメータも含み、ID1〜6の順に発信する。
【0032】
子局101の子局データ制御部102のID設定部121には、予めID1,3,5が設定されており、子局通信制御部103に順次IDを切り換えて入力すると、子局通信制御部103はID設定部121から入力されたIDに応じて、順次受信したコマンドおよびパラメータを抽出し、子局データ制御部102に出力する。子局データ制御部102は入力されたコマンドおよびパラメータを解析して、機器制御部104に出力し、機器制御部104はパルスモータを所定方向(時計方向)に所定量(10万パルス分)駆動させる。
【0033】
次に、親局1から、子局101に現在位置(パルスモータの停止位置状況)を確認するコマンドを送信する場合、ID1には現在位置確認のコマンドが、ID3,5にはパラメータが無いままで送信される。子局101は、前述の場合と同様にID設定部121でIDを1,3,5と順に切り換えることで、現在位置確認のコマンドを子局データ制御部102に入力させる。そして、子局データ制御部102は、機器制御部104に、パルスモータが移動した際に記憶された静止位置データを読み出し、ID1,3,5に割り当てて、子局通信制御部103を介して返信する。親局1は、親局通信制御部3のデータ送受信部31を介して受信したIDおよび静止位置データを親局第2メモリ32bで一時記憶し、親局データ制御部2で解析して、表示部4に出力し、表示部4には現在位置が表示される。
【0034】
ここで、子局101は、IDを切換えながらコマンドおよびパラメータを受信し、且つこのコマンドおよびパラメータに対して応答データを生成するため、子局データ制御部102と子局通信制御部103との間にタイミング信号50を送受信している。
【0035】
このような構成とすることで、親局と複数の子局との間で所定周期でデータの送受信を行う場合で、送受信するデータ量が1送信ループ内の1回分に送信可能なデータ量を超える場合であっても、1送信ループ内に複数回、データを送受信することができるので、データ送受信の実効速度の低下を抑制することができる。
【0036】
次に、第2の実施形態に係る通信システムについて、図を参照して説明する。
【0037】
図3は本実施形態に示す通信システムの主要部を示すブロック図である。図3において、123aは送信データを一時記憶する子局第1メモリ、123bは応答データを一時記憶する子局第2メモリである。また、223aは子局データ制御部202における、送信データを一時記憶する子局第1メモリ、223bは子局データ制御部202における、送信データを一時記憶する子局第2メモリである。他の構成は、図1に示した通信システムと同じであり、図中に同じ符号を記している。また、通信のシステムにおいて、図1の通信システムと同じ動作の部分は説明を省略する。
【0038】
子局101の子局通信制御部103が受信したコマンドおよびパラメータは、設定されているIDが整合するもののみが抽出され子局第1メモリ123aに記憶される。子局第1メモリ123aには設定されたIDに対応する記憶領域が確保されており、このIDに基づいてコマンドおよびパラメータが記憶される。子局第1メモリ123aに記憶されたコマンドおよびパラメータは、子局データ制御部102に入力され、解析されて、機器制御部104に出力される。そして、子局データ制御部102は応答データを生成し、子局第2メモリ123bに応答データを出力する。子局第2メモリ123bには設定されたIDに対応する記憶領域が確保されており、このIDに基づいて応答データが記憶される。記憶されたデータは子局通信制御部103に入力され、所定応答周期で返信される。
【0039】
子局201は、設定されるIDが異なることを除き、前述の子局101と同じ構造であり同じ動作を行う。
【0040】
このような構成とすることにより、受信したコマンドおよびパラメータと、生成した応答データとをそれぞれ一時記憶することができるので、子局101,201の子局データ制御部102,202は、任意のタイミングでコマンドおよびパラメータを解析したり、応答データを生成することができる。これにより、複数のデータ処理を略同時に行う必要がある場合に、子局データ制御部102,202のデータ処理の順序を任意に組み合わせることができるので、各データ処理間で割り込み処理を行うことを抑制することができ、実質的にデータ処理およびこれに関連するデータ送受信の実効速度の低下を抑制することができる。
【0041】
なお、本実施形態では、子局通信制御部103と子局第1メモリ123aおよび子局第2メモリ123bとを互いに別の素子で構成したが、子局通信制御部103を構成する素子のメモリを利用して送信データや応答データを記憶してもよい。
【0042】
また、本実施形態では、子局第1メモリ123a,223aおよび子局第2メモリ123b,223bは、子局101,201にそれぞれ独立して設置しているが、子局通信制御手段103,203に備えられたメモリを、子局第1メモリ123a,223aおよび子局第2メモリ223a,223bとして利用してもよい。
【0043】
次に、第3の実施形態に示す通信システムの構成について、図を参照して説明する。
【0044】
本実施形態に示す通信システムは、図3に示した通信システムと同じ構成であり、送信データおよび応答データに、複数のIDに付加された、関連性を有するコマンドおよびパラメータを関連付けるパーティーコードを有する通信システムである。
【0045】
図4はパーティーコードを付した送信データのビットパターンを示した図である。
【0046】
親局1のデータ制御部2は、前述のようにコマンドおよびパラメータ等の送信データを生成し、それぞれに異なるIDを付加する。ここで、それぞれのコマンドおよびパラメータに、同一パーティーコードを付加する。
【0047】
2ビットのパーティコードを付加する場合の一例を、図4を参照して説明する。ここで、1ワードは16ビットとし、コマンドは8ビット、パラメータは17ビットとする。
【0048】
コマンドは8ビットであるため、0〜7ビットの下位バイトをコマンドに利用し、8〜15ビットが予備ビットとなる。これを利用し、14,15ビットの2ビットをパーティーコードに利用する。また、パラメータは17ビットであるため、2ワードを利用し、且つ該2ワードの上下位12ビットを利用すると、各ワードの12〜15ビットが予備ビットとなる。これを利用し、コマンドの場合と同様に14,15ビットの2ビットをパーティーコードに利用する。このように2ビットをパーティーコードに利用することで、「0,0」、「0,1」、「1,0」、「1,1」の4種のパーティーコードを利用することができる。
【0049】
なお、パーティーコードは14,15ビットに限らず、任意のビット位置と任意のビット数で利用してもよい。
【0050】
同一のパーティーコードを付加した場合における送信データおよび応答データの通信フローを、図5を参照して説明する。
【0051】
図5は、親局1と子局101との間の送信データ、応答データの流れを示したデータフロー図である。
【0052】
親局1のデータ制御部2は、コマンドおよびパラメータ等の送信データを生成する。これらの送信データにおいて、コマンドのIDを「1」、パラメータのIDを「3,5」とし、それぞれに同じパーティーコード「0,1」を付加する(s1)。生成されたコマンドおよびパラメータは、親局通信制御手段3の親局第1メモリ32aに、それぞれ記憶される(s2,s3,s4)。データ送受信部31は、親局第1メモリ32aに記憶されているコマンドおよびパラメータを、ID番号の小さい順に所定送信周期で子局101,201に発信する(s5,s6,s7)。
【0053】
ここで、図示されていないが、ID=2,4,6については、子局201用のコマンドおよびパラメータに割り当てられており、ID=1,3,5と同様に親局第1メモリ32aに記憶されて、その内容は子局201用のコマンド、パラメータおよびパーティーコードとなる。そして、データ送受信部31はID=1〜6に関連するコマンドおよびパラメータを小さい方から順に発信している。
【0054】
子局101のID設定部121は、まずID=1を設定し、子局通信制御部103に出力する(s101)。子局通信制御部103はコマンドを受信し、ID設定部121から入力されたID=1と整合し、子局第1メモリ123aに出力し(s102→s103→s104)、子局第1メモリ123aはこれを記憶する(s105)。
【0055】
次に、ID設定部121はID=3に設定を変更し、子局通信制御部103に出力する(s106)。子局通信制御部103はパラメータを受信し、ID設定部122から入力されたID=3と整合し、子局第1メモリ123aに出力し(s107→s108→s109)、子局第1メモリ123aはこれを記憶する(s110)。
【0056】
そして、ID設定部121はID=5に設定を変更し、子局通信制御部103に出力する(s111)。子局通信制御部103はパラメータを受信し、ID設定部121から入力されたID=5と整合し、子局第1メモリ123aに出力し(s112→s113→s114)、子局第1メモリ123aはこれを記憶する(s115)。
【0057】
子局データ制御部102は子局第1メモリ123aに記憶されたID=1,3,5のコマンドおよびパラメータを読み出し解析して、パーティーコードを識別する(s116)。そして、パーティーコードが一致すれば、これら一連のコマンドとパラメータを機器制御部104に出力する。
【0058】
また、子局データ制御部102は解析したコマンドおよびパラメータに対し応答データを生成し、ID=1,3,5をそれぞれ付加して、さらにパーティーコード(0,1)を付加して、子局第2メモリ123bに記憶させる(s201→s202)。子局通信制御部103は子局第2メモリ123bから応答データをIDの小さい順に読み出し、所定応答周期で親局通信制御部3に出力する(s203,s204,s205)。親局通信制御部3はデータ送受信部31で応答データを順次受信し、親局第2メモリ32bに記憶する(s21→s22,s23→s24,s25→s26)。親局1のデータ制御部2は応答データを解析し、パーティーコードを識別する(s27)。そして、パーティーコードが一致すれば、これら一連の応答データを処理して、表示器4に出力する。
【0059】
なお、パーティーコードはコマンド毎に「01」の次は「10」、「11」のように変化させるとともに、親局から子局へ送信される送信データに付加するパーティーコードとこれに対応する子局からの応答データに付加するパーティーコードは同じ値とする。
【0060】
このような構成とすることで、親局は送信データと応答データとの関連性を容易に確認することができる。また、複数の応答ループに亘り関連性のある複数の応答データを受信する場合にもその関連性を容易に識別し、応答データの解析を容易に行うことができ、通信の実効速度の低下を抑制することができる。
【0061】
また、子局は、親局から送信されるコマンドとパラメータとの関連性およびパラメータ等の一つのデータが複数のワードに分けられていても、容易にその関連性を識別することができ、通信の実効速度の低下を抑制することができる。
【0062】
なお、前述の実施形態では、全二重通信方式の通信システムについて説明したが、半二重通信方式であってもよい。この場合、図1、図3の2系統の通信線10,11は1系統でよい。
【0063】
また、親局および子局の通信制御部では、1個のIDについて1ワード16ビットのデータしか行うことができない場合を説明したが、1個のIDについて複数ワード(例えば、4ワード64ビット)のデータを通信することができる通信制御部を用いた場合にも、上述の構成は適用することができる。
【0064】
また、前述の実施形態では、子局を2つ用いたが、2つに限らず複数の子局を備える通信システムに適用することができる。
【0065】
また、前述の実施形態では、親局、子局ともに、複数のメモリを備えているが、これらを統一し、1つのメモリで記憶を行ってもよい。
【0066】
また、親局は図1、図3において符号1で示したが、親局データ制御部2はパソコン、表示部4はパソコン用に用いられる表示モニタを用い、親局通信制御部3は通信ボードとしてパソコンに装着するような構成であってもよい。
【0067】
【発明の効果】
この発明に示す通信システムによれば、1つの子局に複数のIDを設定することで、1回の送信ループ内で複数回コマンドおよびパラメータを抽出することができるため、親局で生成されるコマンドおよびパラメータが、1つのIDに対応したデータ量(ビット長)よりも大きい場合でも、子局は、このコマンドおよびパラメータを複数の送信ループに亘り受信する必要がなくなり、1回の送信ループ内でこのコマンドおよびパラメータを受信することができる。これにより、パラメータ等のデータ量が多い場合にも通信の実効速度が低下することを抑制することができる。
【0068】
また、この発明に示す通信システムによれば、子局が受信した送信データを記憶手段に記憶しておくことで、送信データを受信しながら、必要な送信データの解析を行い、子局に接続されている産業機器を制御する命令を生成し出力する動作を、送信周期に同期させながら行う必要が無くなり、任意のタイミングで、送信データの解析、産業機器への制御命令の生成、出力を行うことができる。また、応答データを記憶手段に記憶しておくことで、産業機器からのデータを解析し、応答データを生成し、IDに関連付けして返信する動作を、応答周期に同期させながら行う必要が無くなり、任意のタイミングで、産業機器からのデータ解析、応答データの生成を行うことができる。これにより、それぞれの処理が重なり合い、割り込み処理をする等の問題を回避することができ、通信の実効速度の低下をさらに抑制することができる。
【0069】
また、この発明に示す通信システムによれば、一連のコマンドおよびパラメータに同一のパーティーコードを付加することで、送信されるコマンドおよびパラメータ等の複数の送信データ間の関連性を容易に認識することができる。また、コマンドおよびパラメータ等の送信データのデータ量(ビット長)が大きく、1回の送信ループ内のIDだけで対応させられない場合でも、次の送信ループで送信し、子局がこの同一パーティーコードを識別することで、一連のコマンドおよびパラメータを確実に解析することができる。
【0070】
また、この発明に示す通信システムによれば、前述の送信データにパーティコードを付加した場合と同様に、複数の応答データに同一のパーティーコードを添付することで、複数の応答データの関連性を容易に認識することができる。また、複数の送信ループに亘る応答データであっても、これらの応答データの関連性が認識できるので親局で確実に解析することができる。
【図面の簡単な説明】
【図1】第1の実施形態に係る通信システムの主要部を示すブロック図
【図2】図1に示す通信システムを用いて親局から子局への送信、および子局から親局への返信を行う場合のタイミングを示す概念図
【図3】第2の実施形態に示す通信システムの主要部を示すブロック図
【図4】パーティーコードを付した送信データのビットパターンを示した図
【図5】親局と子局との間の送信データ、応答データの流れを示したデータフロー図
【符号の説明】
1−親局
2−親局データ制御部
3−親局通信制御部
31−データ送受信部
32a−親局第1メモリ
32b−親局第2メモリ
4−表示部
101,201−子局
102,202−子局データ制御部
121,221−ID設定部
103,203−子局通信制御部
104,204−機器制御部
123a,223a−子局第1メモリ
123b,223b−子局第2メモリ
10,11−通信線
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a communication system in which a master station and a slave station to which industrial equipment and the like are connected are connected by a communication line, and the master station controls the industrial equipment connected to the slave station.
[0002]
[Prior art]
Conventionally, as a method of remotely controlling a plurality of industrial devices in one place, a central device in which an operator inputs commands and parameters, and a device control unit connected to or embedded in each industrial device are wired, A method of selecting an industrial device controlled by a central device and sending a control command has been adopted. However, in the method of selectively controlling a plurality of industrial devices with the central device using such wiring, as the number of industrial devices to be controlled increases, the number of wirings increases accordingly, so that the entire remote control system is required. The size increases, and the equipment cost increases.
[0003]
For this reason, in recent years, the method has been changed to a method of wiring a central device and a device control unit of each industrial device. 2. Description of the Related Art Communication systems that generate commands and parameters and transmit the generated commands and parameters via a communication network, analyze the commands and parameters by a slave station, and control connected industrial equipment are often used.
[0004]
As one of the communication systems of industrial equipment by communication via such a communication line, transmission data such as commands and parameters and an ID for identifying the transmission data are generated in a master station, and each of the data is sequentially transmitted through the communication line. Output to the slave stations, each slave station sets a different single ID for each slave station, extracts and analyzes only necessary data from the transmission data received based on this ID, and There is a communication system to control. In this system, transmission of a plurality of transmission data is performed for a set number of IDs as one transmission loop, and the transmission loop is continuously performed while rewriting the transmission data, so that relatively simple transmission data can be transmitted and received at a high speed. (For example, see Non-Patent Document 1).
[0005]
[Non-patent document 1]
“Signal transmission within 1 m.sec.”, [Online], [searched on September 27, 2002], Internet <URL: http: // www. internix. co. jp / products / step / hls. htm>
[0006]
[Problems to be solved by the invention]
However, in the conventional communication system described above, the transmission data is transmitted at a predetermined transmission cycle, and the bit length, which is the data amount of transmission data per one time within the predetermined cycle, is, for example, 16 bits. Are set in advance.
[0007]
Therefore, if the transmission data for one transmission exceeds a predetermined bit length (16 bits in the above case), the transmission data is transmitted using an appropriate bit length within the bit length that can be transmitted first, The remaining transmission data had to be transmitted after the next transmission loop.
[0008]
Thus, for example, when the transmission data is a command or parameter for controlling an industrial device connected to a slave station, the slave station transmits and receives commands and parameters necessary for controlling the industrial device over a plurality of transmission loops. Indispensable, and the effective communication speed is reduced, so that industrial equipment cannot be controlled at high speed.
[0009]
An object of the present invention is to provide a communication system that suppresses a decrease in the effective communication speed of transmission data such as commands and parameters and controls industrial equipment connected to a slave station at high speed.
[0010]
[Means for Solving the Problems]
A communication system according to the present invention is a slave station data control means for setting a plurality of IDs in one transmission loop, and a slave station communication for extracting transmission data a plurality of times in the one transmission loop based on the set plurality of IDs. A slave station is provided with the control means.
[0011]
In this configuration, the slave station data control means sets a plurality of IDs in one transmission loop, so that transmission data is extracted a plurality of times in one transmission loop. For this reason, even when the plurality of transmission data generated by the master station is larger than the data amount (bit length) corresponding to one ID assigned by one transmission in one transmission loop, There is no need to receive the plurality of transmission data over a plurality of transmission loops, and the plurality of transmission data is received within one transmission loop.
[0012]
Further, the slave station data control means of the communication system according to the present invention includes a first slave station storage means for storing transmission data, and a second slave station storage means for storing response data. I have.
[0013]
In this configuration, by storing the transmission data received by the slave station in the first slave station storage means, it is possible to analyze necessary transmission data while continuously receiving transmission data transmitted from the master station. It is not necessary to perform the operation of generating and outputting instructions to control the industrial equipment connected to the slave station while synchronizing with the transmission cycle, and it is possible to analyze transmission data and control industrial equipment at any timing. Is generated and output. Further, by storing the response data in the second slave station storage means, the operation of analyzing the data from the industrial equipment, generating the response data, and associating with the ID and returning the response data is synchronized with the response cycle. This eliminates the need to perform this, and data analysis from the industrial equipment and generation of response data are performed at an arbitrary timing.
[0014]
Further, the communication system according to the present invention adds the same party code to a plurality of transmission data having a relevance associated with a plurality of different IDs and receives the same based on the party code by the slave station data control means. It is characterized by associating a plurality of pieces of transmission data.
[0015]
In this configuration, by attaching the same party code to a series of transmission data, for example, a command for controlling industrial equipment and its parameters, the slave station can easily identify the relevance of these transmission data. Even when the data amount (bit length) of the command and the parameter is large and cannot correspond to the number of IDs in one transmission loop, the transmission is made in another transmission loop, and the slave station identifies the same party code. , A series of commands and parameters are reliably identified and analyzed.
[0016]
Further, the communication system according to the present invention adds the same party code to a plurality of pieces of response data having relevance added to a plurality of different IDs, and the master station data control means returns a response based on the party code. It is characterized by associating a plurality of pieces of response data.
[0017]
In this configuration, the same party code is attached to a plurality of response data, as in the case where a party code is attached to a plurality of transmission data described above, so that the master station can ensure the relevance of the plurality of response data. Is identified.
[0018]
BEST MODE FOR CARRYING OUT THE INVENTION
A communication system according to a first embodiment of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram showing a main part of the communication system according to the present embodiment.
FIG. 2 is a conceptual diagram showing timing when transmission from the master station to the slave station and reply from the slave station to the master station are performed using the communication system shown in FIG.
[0019]
As shown in FIG. 1, the communication system includes a master station 1, a plurality of slave stations 101 and 201, and communication lines 10 and 11 for connecting these stations. Industrial equipment is connected.
[0020]
The master station 1 includes a master station data control unit 2 for generating transmission data, a master station communication control unit 3, and a display unit 4. The slave stations 101 and 201 are slave station data control units 102 and 202, respectively. And slave station communication control units 103 and 203, and device control units 104 and 204.
[0021]
The master station 1 is connected to the communication lines 10 and 11 by the master station communication control unit 3, and the slave stations 101 and 201 are connected to the communication lines 10 and 11 by the slave station communication control units 103 and 203, respectively. .
[0022]
The master station data control unit 2 generates transmission data for controlling industrial equipment connected to the slave stations 101 and 201, analyzes response data returned from the slave stations 101 and 102, and outputs the response data to the display unit 4. I do. The master station communication control unit 3 transmits a transmission data at a predetermined transmission cycle and receives a response data returned from the slave station, a master station first memory 32a for temporarily storing the transmission data, The master station second memory 32b temporarily stores the response data received by the transmission / reception unit 31. Here, the transmission data is a command and a parameter for device control, and a plurality of IDs for identifying a slave station to which the device to be controlled is connected are respectively added.
[0023]
The slave station data control unit 102 analyzes the transmission data received by the slave station communication control unit 103, outputs the data to the device control unit 104, generates response data to the transmission data, and sends the response data to the slave station communication control unit 103. Output. Further, the slave station data control section 102 includes an ID setting section 121 which is assigned to the slave station 101 in advance and sets the ID for identifying the slave station.
The slave station data control unit 202 has the same configuration as the slave station data control unit 102, and differs only in the ID set by the ID setting unit 221.
[0024]
By using such a communication system, transmission data and response data are transmitted and received at timings shown in FIG.
[0025]
In FIG. 2, solid arrows indicate transmission data, and broken arrows indicate response data.
The master station communication control unit 3 sequentially transmits transmission data sequentially generated by the master station data control unit 2 and having different IDs added thereto to the slave stations 101 and 201 via the communication line 10 at a predetermined transmission cycle. . When transmission data is transmitted for a predetermined number of IDs ("6" in the present embodiment), one transmission loop is completed, the initial ID is returned again, and an ID is added to new transmission data and transmitted. In this way, the master station communication control unit 3 repeats the set transmission loop according to the preset number of IDs, and continues to transmit transmission data.
[0026]
On the other hand, the slave stations 101 and 201 identify the ID of the received transmission data, extract only the transmission data corresponding to each, generate response data, and return the response data together with the ID in a predetermined response cycle.
[0027]
Here, for example, as shown in FIG. 2, a case where IDs 1, 3, and 5 are assigned to the slave station 101 and IDs 2, 4, and 6 are assigned to the slave station 201 will be described.
[0028]
The master station data control unit 2 stores transmission data for the slave station 101, such as commands and parameters for the industrial equipment connected to the slave station 101, in the master station first memory 32a in association with the IDs 1, 3, and 5. In addition, transmission data for the slave station 201 such as commands and parameters for the industrial equipment connected to the slave station 201 is stored in the master station first memory 32a in association with the IDs 2, 4, and 6. The master station communication control unit 3 reads the transmission data with the ID, and transmits the transmission data with the smaller ID to the slave stations 101 and 201 in ascending order. Then, when each of the slave stations 101 and 201 receives the transmission data of ID1, 3, and 5 in order, the slave station data control unit 102 of the slave station 101 extracts these transmission data. Then, response data corresponding to the transmission data is sequentially generated and output to the slave station communication control unit 103. The slave station communication control unit 103 returns the response data to the master station via the communication line 11. Next, when the slave stations 101 and 201 sequentially receive the transmission data of IDs 2, 4, and 6, the slave station data control unit 202 of the slave station 201 extracts the transmission data. Then, response data corresponding to the transmission data is generated and output to the slave station communication control unit 203. The slave station communication control unit 203 returns the response data to the master station via the communication line 11. When the master station communication control section 3 receives the response data with ID from each of the slave stations 101 and 201, the master station 1 stores it in the master station second memory 32b. The response data stored in the memory 32b is analyzed based on the ID, and a predetermined process such as outputting to the display unit 4 is performed. Here, the response data to which the respective IDs are assigned is controlled so that IDs 1 to 6 are respectively returned in a predetermined response cycle.
[0029]
Using such a full-duplex communication method, control transmission data and response data corresponding thereto are communicated between the master station and each slave station.
[0030]
Next, as an example of controlling industrial equipment using the communication system shown in FIG. 1, a method of controlling a one-dimensional positioning device connected to the slave station 101 will be described. In this embodiment, a pulse motor will be described as an example of a one-dimensional positioning device.
[0031]
When the operator inputs a command to rotate the pulse motor of the positioning device connected to the slave station 101 clockwise to move the position by 100,000 pulses from the operator, the master station data control unit 2 Is transmission data of a command for rotating the pulse motor clockwise, that is, movement in the + direction (hereinafter, simply referred to as “command”), and transmission data of a parameter of 100,000 pulses (hereinafter simply referred to as a movement amount). "Parameter") is generated. Here, when the data amount of each transmission in one transmission loop (hereinafter, referred to as “one word”) is 16 bits in binary, one word can represent only 65536 pulses. Therefore, at least two words (32 bits) are required to transmit the parameter of 100,000 pulses. The master station data control unit 2 assigns the command to one word, assigns the parameter to two words, associates the command with ID1, and associates the parameters with ID3 and ID5 respectively. The station first memory 32a is stored in ascending order of ID. The data transmission / reception unit 31 sequentially transmits the commands and parameters stored in the master station first memory 32a in the transmission cycle in ascending order of the ID to which the command and parameter are added. Note that IDs 2, 4, and 6 are assigned to other slave stations 201, and the data transmission / reception unit 31 transmits commands in the order of IDs 1 to 6, including commands and parameters added to these IDs 2, 4, and 6.
[0032]
IDs 1, 3, and 5 are set in advance in the ID setting section 121 of the slave station data control section 102 of the slave station 101. When the IDs are sequentially switched and input to the slave station communication control section 103, the slave station communication control section 103 extracts commands and parameters sequentially received according to the ID input from the ID setting unit 121, and outputs them to the slave station data control unit 102. The slave station data control unit 102 analyzes the input commands and parameters and outputs the analyzed commands and parameters to the device control unit 104. The device control unit 104 drives the pulse motor in a predetermined direction (clockwise) by a predetermined amount (for 100,000 pulses). Let it.
[0033]
Next, when the master station 1 transmits a command for confirming the current position (the state of the stop position of the pulse motor) to the slave station 101, ID1 is a command for confirming the current position, and ID3 and ID5 have no parameters. Sent by The slave station 101 switches the ID to 1, 3, and 5 in order by the ID setting unit 121 in the same manner as described above, thereby causing the slave station data control unit 102 to input a command for confirming the current position. Then, the slave station data control unit 102 reads out the stationary position data stored when the pulse motor moves to the device control unit 104, assigns the data to the IDs 1, 3, and 5, and, via the slave station communication control unit 103. Reply. The master station 1 temporarily stores the ID and the stationary position data received via the data transmission / reception unit 31 of the master station communication control unit 3 in the master station second memory 32b, analyzes the display data in the master station data control unit 2, and displays the data. The current position is displayed on the display unit 4.
[0034]
Here, the slave station 101 receives a command and a parameter while switching IDs, and generates response data to the command and the parameter, so that the slave station data control unit 102 and the slave station communication control unit 103 The timing signal 50 is transmitted and received.
[0035]
With such a configuration, when data is transmitted and received between the master station and a plurality of slave stations at a predetermined cycle, the amount of data to be transmitted and received is reduced by the amount of data that can be transmitted in one transmission loop. Even in the case of exceeding, since data can be transmitted and received a plurality of times within one transmission loop, a decrease in the effective speed of data transmission and reception can be suppressed.
[0036]
Next, a communication system according to a second embodiment will be described with reference to the drawings.
[0037]
FIG. 3 is a block diagram showing a main part of the communication system shown in the present embodiment. In FIG. 3, reference numeral 123a denotes a slave station first memory for temporarily storing transmission data, and reference numeral 123b denotes a slave station second memory for temporarily storing response data. A slave station first memory 223a temporarily stores transmission data in the slave station data control unit 202, and a slave station second memory 223b temporarily stores transmission data in the slave station data control unit 202. The other configuration is the same as that of the communication system shown in FIG. 1, and the same reference numerals are given in the figure. In the communication system, the description of the same operation as the communication system of FIG. 1 will be omitted.
[0038]
Only the commands and parameters received by the slave station communication control unit 103 of the slave station 101 that match the set IDs are extracted and stored in the slave station first memory 123a. A storage area corresponding to the set ID is secured in the slave station first memory 123a, and commands and parameters are stored based on the ID. The commands and parameters stored in the slave station first memory 123a are input to the slave station data control unit 102, analyzed, and output to the device control unit 104. Then, the slave station data control unit 102 generates response data, and outputs the response data to the slave station second memory 123b. A storage area corresponding to the set ID is secured in the slave station second memory 123b, and response data is stored based on this ID. The stored data is input to the slave station communication control unit 103 and returned at a predetermined response cycle.
[0039]
The slave station 201 has the same structure and performs the same operation as the slave station 101 except that the set ID is different.
[0040]
With such a configuration, the received commands and parameters and the generated response data can be temporarily stored, respectively, so that the slave station data control units 102 and 202 of the slave stations 101 and 201 can perform any timing. Can analyze commands and parameters and generate response data. Thereby, when it is necessary to perform a plurality of data processes substantially simultaneously, the order of the data processes of the slave station data control units 102 and 202 can be arbitrarily combined, so that an interrupt process is performed between the data processes. Therefore, it is possible to substantially suppress a decrease in the effective speed of data processing and data transmission / reception related thereto.
[0041]
In the present embodiment, the slave station communication control unit 103 and the slave station first memory 123a and the slave station second memory 123b are configured by different elements from each other. May be used to store transmission data and response data.
[0042]
In the present embodiment, the slave station first memories 123a and 223a and the slave station second memories 123b and 223b are installed independently in the slave stations 101 and 201, respectively. May be used as the slave station first memories 123a and 223a and the slave station second memories 223a and 223b.
[0043]
Next, the configuration of the communication system according to the third embodiment will be described with reference to the drawings.
[0044]
The communication system shown in the present embodiment has the same configuration as the communication system shown in FIG. 3 and has a party code for associating transmission commands and response data with related commands and parameters added to a plurality of IDs. It is a communication system.
[0045]
FIG. 4 is a diagram showing a bit pattern of transmission data with a party code.
[0046]
The data control unit 2 of the master station 1 generates transmission data such as commands and parameters as described above, and adds different IDs to each of them. Here, the same party code is added to each command and parameter.
[0047]
An example in which a 2-bit party code is added will be described with reference to FIG. Here, one word is 16 bits, the command is 8 bits, and the parameter is 17 bits.
[0048]
Since the command is 8 bits, lower bytes of 0 to 7 bits are used for the command, and 8 to 15 bits are reserved bits. Using this, two bits of 14 and 15 bits are used for the party code. Further, since the parameter is 17 bits, if 2 words are used and the upper and lower 12 bits of the 2 words are used, 12 to 15 bits of each word are reserved bits. Using this, two bits of 14 and 15 bits are used for the party code as in the case of the command. By using two bits for the party code in this manner, four types of party codes of “0,0”, “0,1”, “1,0”, and “1,1” can be used.
[0049]
The party code is not limited to 14, 15 bits, and may be used at any bit position and any number of bits.
[0050]
The communication flow of the transmission data and the response data when the same party code is added will be described with reference to FIG.
[0051]
FIG. 5 is a data flow diagram showing the flow of transmission data and response data between master station 1 and slave station 101.
[0052]
The data control unit 2 of the master station 1 generates transmission data such as commands and parameters. In these transmission data, the command ID is "1" and the parameter ID is "3, 5", and the same party code "0, 1" is added to each (s1). The generated command and parameter are respectively stored in the master station first memory 32a of the master station communication control means 3 (s2, s3, s4). The data transmission / reception unit 31 transmits commands and parameters stored in the master station first memory 32a to the slave stations 101 and 201 in a predetermined transmission cycle in ascending order of the ID number (s5, s6, s7).
[0053]
Here, although not shown, ID = 2, 4, and 6 are assigned to commands and parameters for the slave station 201, and are stored in the master station first memory 32a in the same manner as ID = 1, 3, and 5. The contents are stored as commands, parameters, and party codes for the slave station 201. The data transmission / reception unit 31 transmits commands and parameters related to ID = 1 to 6 in ascending order.
[0054]
The ID setting unit 121 of the slave station 101 first sets ID = 1 and outputs the ID to the slave station communication control unit 103 (s101). The slave station communication control unit 103 receives the command, matches the ID input from the ID setting unit 121, outputs the command to the slave station first memory 123a (s102 → s103 → s104), and outputs the slave station first memory 123a. Stores this (s105).
[0055]
Next, the ID setting unit 121 changes the setting to ID = 3, and outputs it to the slave station communication control unit 103 (s106). The slave station communication control unit 103 receives the parameter, matches the ID = 3 input from the ID setting unit 122, outputs the parameter to the slave station first memory 123a (s107 → s108 → s109), and outputs the slave station first memory 123a. Stores this (s110).
[0056]
Then, the ID setting unit 121 changes the setting to ID = 5 and outputs it to the slave station communication control unit 103 (s111). The slave station communication control unit 103 receives the parameter, matches the ID = 5 input from the ID setting unit 121, outputs the parameter to the slave station first memory 123a (s112 → s113 → s114), and sets the slave station first memory 123a. Stores this (s115).
[0057]
The slave station data control unit 102 reads and analyzes the commands and parameters of ID = 1, 3, 5 stored in the slave station first memory 123a and identifies the party code (s116). Then, if the party codes match, a series of these commands and parameters are output to the device control unit 104.
[0058]
Further, the slave station data control unit 102 generates response data for the analyzed command and parameter, adds ID = 1, 3, 5 respectively, and further adds a party code (0, 1) to the slave station. It is stored in the second memory 123b (s201 → s202). The slave station communication control unit 103 reads response data from the slave station second memory 123b in ascending order of the ID, and outputs the response data to the master station communication control unit 3 at a predetermined response cycle (s203, s204, s205). The master station communication control unit 3 sequentially receives response data in the data transmission / reception unit 31 and stores it in the master station second memory 32b (s21 → s22, s23 → s24, s25 → s26). The data control unit 2 of the master station 1 analyzes the response data and identifies the party code (s27). When the party codes match, the series of response data is processed and output to the display 4.
[0059]
The party code is changed from "01" to "10" or "11" for each command, and the party code added to the transmission data transmitted from the master station to the slave station and the corresponding child code are added. The party code added to the response data from the station has the same value.
[0060]
With such a configuration, the master station can easily confirm the association between the transmission data and the response data. Also, when a plurality of related response data are received over a plurality of response loops, the relevance can be easily identified, the response data can be easily analyzed, and the reduction in the effective communication speed can be reduced. Can be suppressed.
[0061]
Also, the slave station can easily identify the relationship between the command and the parameter transmitted from the master station and the relationship even if one data such as the parameter is divided into a plurality of words, Can be prevented from lowering the effective speed.
[0062]
In the above-described embodiment, the communication system of the full-duplex communication system has been described, but a half-duplex communication system may be used. In this case, the two communication lines 10 and 11 in FIGS. 1 and 3 may be one system.
[0063]
Also, the case where the communication control units of the master station and the slave station can perform only one word of 16 bits for one ID has been described, but a plurality of words (for example, 4 words and 64 bits) can be obtained for one ID. The above configuration can also be applied to a case where a communication control unit capable of communicating the above data is used.
[0064]
Further, in the above-described embodiment, two slave stations are used. However, the present invention is not limited to two and can be applied to a communication system including a plurality of slave stations.
[0065]
In the above-described embodiment, each of the master station and the slave station has a plurality of memories. However, these memories may be unified and stored in one memory.
[0066]
1 and 3, the master station data control section 2 uses a personal computer, the display section 4 uses a display monitor used for the personal computer, and the master station communication control section 3 uses a communication board. May be attached to a personal computer.
[0067]
【The invention's effect】
According to the communication system shown in the present invention, a command and a parameter can be extracted a plurality of times in one transmission loop by setting a plurality of IDs in one slave station. Even when the command and the parameter are larger than the data amount (bit length) corresponding to one ID, the slave station does not need to receive the command and the parameter over a plurality of transmission loops. Can receive this command and parameters. As a result, even when the amount of data such as parameters is large, it is possible to suppress a decrease in the effective communication speed.
[0068]
Further, according to the communication system shown in the present invention, by storing the transmission data received by the slave station in the storage means, necessary transmission data is analyzed while receiving the transmission data, and the slave station is connected to the slave station. There is no need to perform the operation of generating and outputting instructions for controlling the industrial equipment being performed in synchronization with the transmission cycle, and the transmission data is analyzed, and the control instruction for the industrial equipment is generated and output at an arbitrary timing. be able to. In addition, by storing the response data in the storage unit, it is not necessary to analyze the data from the industrial equipment, generate the response data, and return the data in association with the ID while synchronizing with the response cycle. Data analysis from industrial equipment and generation of response data can be performed at any timing. As a result, it is possible to avoid problems such as overlapping of respective processes and performing interrupt processing, and it is possible to further suppress a decrease in the effective communication speed.
[0069]
According to the communication system shown in the present invention, by adding the same party code to a series of commands and parameters, it is possible to easily recognize the relationship between a plurality of transmission data such as commands and parameters to be transmitted. Can be. Further, even when the data amount (bit length) of transmission data such as commands and parameters is large and cannot be made to correspond only by the ID in one transmission loop, the transmission is performed in the next transmission loop and the slave station transmits the same party. By identifying the code, a series of commands and parameters can be reliably analyzed.
[0070]
Further, according to the communication system shown in the present invention, the same party code is attached to a plurality of response data, as in the case where the party code is added to the transmission data, so that the relevance of the plurality of response data can be improved. It can be easily recognized. Further, even in the case of response data over a plurality of transmission loops, the relevance of these response data can be recognized, so that the master station can reliably analyze the response data.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a main part of a communication system according to a first embodiment.
FIG. 2 is a conceptual diagram showing timing when transmission from a master station to a slave station and reply from the slave station to the master station are performed using the communication system shown in FIG. 1;
FIG. 3 is a block diagram illustrating a main part of a communication system according to a second embodiment;
FIG. 4 is a diagram showing a bit pattern of transmission data to which a party code is added.
FIG. 5 is a data flow diagram showing a flow of transmission data and response data between a master station and a slave station.
[Explanation of symbols]
1-Master station
2-Master station data control unit
3-Master station communication control unit
31-Data transmission / reception unit
32a-Master station first memory
32b—Master station second memory
4-Display section
101, 201-slave station
102, 202-slave station data control unit
121, 221-ID setting unit
103, 203-slave station communication control unit
104, 204-device control unit
123a, 223a-slave station first memory
123b, 223b-slave station second memory
10, 11-communication line

Claims (4)

親局と複数の子局とが通信網で接続され、
前記親局は、前記複数の子局を識別する予め設定された数のIDのそれぞれに、所定データ単位で形成された送信データを付加するとともに、前記子局から返信された応答データを解析する親局データ制御手段と、複数の前記送信データを順次発信するとともに、前記応答データを受信する親局通信制御手段とを備え、
前記複数の子局は、前記親局から発信された送信データを受信して、前記IDに基づき自局に関する送信データのみを抽出するとともに、応答データを前記親局に返信する子局通信制御手段と、前記送信データを解析するとともに、該送信データに対する応答データを生成して前記IDを付加する子局データ制御手段とを備え、
前記複数の送信データの発信をID設定数分行うことを1送信ループとして、該送信ループを送信データを書き換えながら連続して行う通信システムにおいて、
前記子局データ制御手段は前記IDを前記1送信ループ内で複数設定し、前記子局通信制御手段は設定された複数のIDに基づいて1送信ループ内で複数回送信データを抽出することを特徴とする通信システム。
A master station and a plurality of slave stations are connected by a communication network,
The master station adds transmission data formed in a predetermined data unit to each of a predetermined number of IDs for identifying the plurality of slave stations, and analyzes response data returned from the slave station. Master station data control means, and sequentially transmits a plurality of the transmission data, comprising a master station communication control means to receive the response data,
The plurality of slave stations receive transmission data transmitted from the master station, extract only transmission data relating to the own station based on the ID, and return response data to the master station. And slave station data control means for analyzing the transmission data and generating response data to the transmission data and adding the ID.
In a communication system in which transmission of the plurality of transmission data is performed for a set number of IDs as one transmission loop, the transmission loop is continuously performed while rewriting transmission data.
The slave station data control means sets a plurality of IDs in the one transmission loop, and the slave station communication control means extracts transmission data a plurality of times in one transmission loop based on the set plurality of IDs. Communication system characterized by the following.
前記子局は、前記送信データを記憶する第1の子局記憶手段と、前記応答データを記憶する第2の子局記憶手段とを備えた請求項1に記載の通信システム。The communication system according to claim 1, wherein the slave station includes first slave station storage means for storing the transmission data, and second slave station storage means for storing the response data. 前記複数のIDに付加された、互いに関連性を有する前記複数の送信データに、同一のパーティーコードを付加し、
前記子局データ制御手段は、前記パーティーコードに基づいて、前記複数のIDにそれぞれ付加された送信データ同士を関連付け処理する請求項1または請求項2に記載の通信システム。
The same party code is added to the plurality of transmission data, which are added to the plurality of IDs and are related to each other,
The communication system according to claim 1 or 2, wherein the slave station data control means associates transmission data respectively added to the plurality of IDs with each other based on the party code.
前記複数のIDに付加された、互いに関連性を有する前記複数の応答データに、同一のパーティーコードを付加し、
前記親局データ制御手段は、前記パーティーコードに基づいて、前記複数のIDにそれぞれ付加された応答データ同士を関連付け処理する請求項1〜3のいずれかに記載の通信システム。
The same party code is added to the plurality of response data, which are added to the plurality of IDs and are related to each other,
The communication system according to any one of claims 1 to 3, wherein the master station data control means associates response data added to the plurality of IDs with each other based on the party code.
JP2002304174A 2002-10-18 2002-10-18 Communications system Expired - Fee Related JP3798363B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002304174A JP3798363B2 (en) 2002-10-18 2002-10-18 Communications system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002304174A JP3798363B2 (en) 2002-10-18 2002-10-18 Communications system

Publications (2)

Publication Number Publication Date
JP2004140652A true JP2004140652A (en) 2004-05-13
JP3798363B2 JP3798363B2 (en) 2006-07-19

Family

ID=32451674

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002304174A Expired - Fee Related JP3798363B2 (en) 2002-10-18 2002-10-18 Communications system

Country Status (1)

Country Link
JP (1) JP3798363B2 (en)

Also Published As

Publication number Publication date
JP3798363B2 (en) 2006-07-19

Similar Documents

Publication Publication Date Title
US8050624B2 (en) Distributed process control system and method utilizing wireless communication of packet messages
CN106021163B (en) For carrying out scrambled method and apparatus to high speed data transfer
JP6111288B2 (en) Arrangement and method for handling electronic components
US10095201B2 (en) Reconfigurable control system for controlling a target apparatus, and method for reconfiguration during operation of the control system
WO2003077221A3 (en) Method, device and system for providing a single user interface to a pluralty of devices
WO2007079439A3 (en) Apparatus and method for wireless process control
CN104471495B (en) Control device and control method
CN105452970A (en) Monitoring control system, monitoring control device, and controller
US20170277172A1 (en) Sim system, control method therefor and production informatization system
WO2018179125A1 (en) Network configuration information generation method and communication device
US20180011467A1 (en) Plc control data generation device, plc control data generation method, and plc control data generation program
JP5285461B2 (en) Wireless network structure
JP2004140652A (en) Communication system
KR200488268Y1 (en) Apparatus for controlling in IoT device power
JP5558151B2 (en) Programmable controller, programmable controller management device, and module name determination method program
US11489697B2 (en) Transmission of data on a local bus
JP2019068677A (en) Interface device
KR100515749B1 (en) System and method of controlling display
JP2009298578A (en) Call registration device of elevator and elevator device
JP6618574B1 (en) Control device, communication system, and control program
JP2006185263A (en) Plant-monitoring man-machine device
JP2005204081A (en) Interface bridge apparatus
CN113711542A (en) Network machine
RU167659U1 (en) WI-FI Indoor Climate Control System Unit
RU167658U1 (en) BLUETOOTH INDOOR CLIMATE CONTROL SYSTEM

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041110

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051220

A521 Written amendment

Effective date: 20060117

Free format text: JAPANESE INTERMEDIATE CODE: A523

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Effective date: 20060404

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060419

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Year of fee payment: 3

Free format text: PAYMENT UNTIL: 20090428

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

Free format text: PAYMENT UNTIL: 20120428

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees