JP3785795B2 - Data processing device - Google Patents

Data processing device Download PDF

Info

Publication number
JP3785795B2
JP3785795B2 JP07433598A JP7433598A JP3785795B2 JP 3785795 B2 JP3785795 B2 JP 3785795B2 JP 07433598 A JP07433598 A JP 07433598A JP 7433598 A JP7433598 A JP 7433598A JP 3785795 B2 JP3785795 B2 JP 3785795B2
Authority
JP
Japan
Prior art keywords
communication
message
message creation
communication path
creation means
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP07433598A
Other languages
Japanese (ja)
Other versions
JPH11272311A (en
Inventor
雅幸 谷口
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP07433598A priority Critical patent/JP3785795B2/en
Publication of JPH11272311A publication Critical patent/JPH11272311A/en
Application granted granted Critical
Publication of JP3785795B2 publication Critical patent/JP3785795B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Programmable Controllers (AREA)
  • Communication Control (AREA)

Description

【0001】
【発明の属する技術分野】
この発明は、複数のプログラマブルコントローラ等の記憶装置を有する制御機器に対して通信を行うデータ処理装置に関するものである。
【0002】
【従来の技術】
図5は、従来のデータ処理装置の構成を示すブロック図である。
図において、1は入出力機器であるCRT2やキーボード3、及び接続されるプログラマブルコントローラ(以下、PCと称す)4a、4b、4c、4dを制御するコントローラ、2はCRT、3はキーボード、4a、4b、4c、4dはそれぞれ異なる通信プロトコルに基づく通信回線9a、9b、9c、9dにより接続されたPCである。
【0003】
コントローラ1は、ユーザプログラムを実行するCPU5、PC通信プログラム等のユーザプログラム12Aが展開されるメモリ6A、CRT2と接続するためのCRT用インターフェース7a、キーボード3と接続するためのキーボード用インターフェース7b、異なる通信プロトコルにより接続されるPCとのインターフェースであって、例えばプロトコルA用I/F8a、プロトコルB用I/F8bから構成される。
なお、PC(A)はA種類のPC、PC(B)はB種類のPC、PC(C)はC種類のPCを表わしている。
【0004】
図6は、PC内部のメモリ状態を示したメモリ状態図であり、例としてPC(C)4c、4dのメモリを示している。
図において、17はPC(C)4cのメモリであり、内部のデバイス領域17aに例えばデバイスW0からW99のデバイスデータが格納されている。18はPC(C)4dのメモリであり、内部のデバイス領域18aに例えばデバイスD0からD49のデバイスデータが格納されている。
【0005】
図7は、コントローラ1がPC4と通信を行うために使用する通信伝文構成を示した通信伝文構成図である。
図において、19は通信を行う伝文全体を表わし、その内容は、通信対象となるPCに対する通信経路を判断するために必要な要求元通信回線情報19c及び経由通信回線情報19dからなる通信経路伝文19aと、PC特有のコマンドを処理するためのPCコマンド伝文19bから構成されている。
【0006】
図8は、異なる通信回線を通り、異なるPC(A)4a、PC(B)4bをそれぞれ経由し、同一種類のPC(C)4c、4dからデータを収集するデータ処理処理方法を示したフローチャートであり、図を用いて従来のPCとの通信方法をデータ収集を例にして説明する。
【0007】
本従来例では、ユーザによる入出力機器の操作により、まず通信回線9aに接続されているPC(A)4aを経由し通信回線9cに接続されているPC(C)4cのメモリ17からデバイス領域17aの製品番号データであるデバイスW0〜W99、次に通信回線9bに接続されているPC(B)4bを経由し通信回線9dに接続されているPC(C)4dのメモリ18からデバイス領域18aの生産完了台数データであるデバイスD0〜D49、の順にデータ収集を行う場合のユーザプログラム12の例にとり説明する。
【0008】
ユーザによる入出力機器の操作により、まずステップS11において、PC(C)4cとの通信を行うため、PC(C)4cとの通信プロトコルに従って、PC(C)4cから製品番号データであるデバイスW0〜W99のデータ収集のためのPCコマンド伝文19b「デバイスデータ収集コマンド」と、通信経路である通信回線9a、9cに対応した通信経路伝文19aを作成し、一つの通信伝文19にする。
【0009】
具体的には、ユーザプログラム12には、PC4に対する通信伝文の形式が、コントローラ1への接続状況、PCの種類等に応じて予め想定して複数設定されている。
ユーザによる入出力機器の操作に応じて、ユーザプログラム12の中から接続状況、PCの種類により定められる通信伝文の形式を抽出(作成)し、該通信伝文の形式をもとに入力されたデータを加え、通信伝文19を完成させる。
【0010】
次にステップS12において、PC(A)4aを経由してPC(C)4cに通信するため、プロトコルA用I/F8aを介して通信回線9aをオープン(接続処理)し、ステップS13において、PC(A)4aを経由し、実際にPC(C)4cから製品番号データであるデバイスW0〜W99のデータ収集を行うための通信伝文19を使用してPC(A)4aと通信を行う。
【0011】
プロトコルA用I/F8aを介して送られた通信伝文19は、PC(A)4aにおいて自局宛の伝文か否かが判断され、通信路経路伝文19aから自局宛の伝文ではなくPC(C)4cに対するであると判断されるので、該伝文をの経由通信回線情報19dに基づき通信回線9cを介してPC(C)4cに流す。
PC(C)4cでは、受けた伝文が自局の形式にあった自局宛の伝文であると判断し、PCコマンド伝文19b中に書き込まれている命令「デバイスW0〜W99のデータ収集」に応じて製品番号データであるデバイスW0〜W99のデータをコントローラ1に対して送信する。
【0012】
その後、ステップS14において、通信回線9aをクローズし、PC(C)4cからのデバイスW0〜W99のデータ収集が終了する。
【0013】
次に異なる経路で接続されている同一種類のPCであるPC(C)4dから生産完了台数データであるデバイスD0〜D49のデータを収集するため、ユーザによる入出力機器に操作に基づき、ステップS15において、PC(C)4dとの通信を行うため、PC(C)4dとの通信プロトコルに従って、PC(C)4dから生産完了台数データであるデバイスD0〜D49のデータ収集のためのPCコマンド伝文19b「デバイスデータ収集コマンド」と、通信経路である通信回線9b、9dに対応した通信経路伝文19aを作成し、一つの通信伝文19にする。
【0014】
次にステップS16において、PC(B)4bを経由してPC(C)4dに通信するため、プロトコルB用I/F8bを介して通信回線9bをオープン(接続処理)し、ステップS17において、PC(B)4bを経由し、実際にPC(C)4dから生産完了台数データであるデバイスD0〜D49のデータ収集を行うための通信伝文19を使用してPC(C)4dと通信を行う。
【0015】
プロトコルB用I/F8bを介して送られた通信伝文19は、PC(B)4bにおいて自局宛の伝文か否かが判断され、通信路経路伝文19aから自局宛の伝文ではなくPC(C)4dに対するであると判断されるので、該伝文をの経由通信回線情報19dに基づき通信回線9dを介してPC(C)4dに流す。
PC(C)4dでは、受けた伝文が自局の形式にあった自局宛の伝文であると判断し、PCコマンド伝文19b中に書き込まれている命令「デバイスD0〜DW49のデータ収集」に応じて製品番号データであるデバイスD0〜D49のデータをコントローラ1に対して送信する。
【0016】
その後、ステップS18において、通信回線9bをクローズし、PC(C)4dからの生産完了台数データであるデバイスD0〜D49のデータ収集は終了である。
【0017】
【発明が解決しようとする課題】
データ通信方法では、異なる通信回線、通信先のPCの種類に応じて、各々PCと通信する伝文が異なっている。また、PC経由で他のPCとの通信の場合、経由する通信の通信伝文形式に合わせた伝文が必要である。
そのため、従来では、異なる通信回線、通信先のPCの種類、通信経由の状況に応じた何通りにも及ぶ通信形態を想定して、その通新形態に用いられる通信伝文を予め作成してユーザプログラムとして用意しておかなければならず、プログラムが肥大化し、性能も低下するという問題があった。
そして、この通信伝文を予め用意するに際しては、対象PCの専門知識、通信経路の専門知識を用いて専用の通信伝文作成手順に従って伝文を作成する必要があった。
また、新規に通信の種類や、PCの種類が追加されるたびに対応する伝文を作成する必要があり、プログラムが肥大化、複雑化するという問題があった。
【0018】
本発明は上記のような問題点を解決するためになされたもので、ユーザプログラムからは管理手段に対して統一した手順でアクセスするだけで、通信回線、通信経路、PCの特性を意識することなく、PCとの通信が可能になることを目的としている。
【0019】
【課題を解決するための手段】
この発明に係るデータ処理装置は、プログラマブルコントローラとの通信を行うデータ処理装置において、複数種類の通信プロトコルをそれぞれ制御する複数の通信プロトコル制御手段と、複数種類のプログラマブルコントローラに対応して、接続されるプログラマブルコントローラを制御するためのPCコマンドをそれぞれ作成する複数のPCコマンド伝文作成手段と、通信対象となるプログラマブルコントローラに到達するまでの複数の通信経路に応じた通信経路伝文をそれぞれ作成する複数の通信経路伝文作成手段と、ユーザが設定したデータに対応して、通信プロトコル制御手段及びPCコマンド伝文作成手段並びに通信経路伝文作成手段をそれぞれ抽出し、該抽出された通信プロトコル制御手段及びPCコマンド伝文作成手段並びに通信経路伝文作成手段を組み合わせる通信手順管理手段と、を備え、上記抽出された通信プロトコル制御手段に対応する通信回線に、上記抽出されたPCコマンド伝文作成手段及び通信経路伝文作成手段により作成された通信伝文を送信することを特徴とするものである。
【0020】
また、処理可能な通信プロトコル制御手段及びPCコマンド伝文作成手段並びに通信経路伝文作成手段の情報が予め登録された管理テーブルを備え、上記通信手順管理手段は、上記管理テーブルを参照して、ユーザが設定したデータに対応する通信プロトコル制御手段及びPCコマンド伝文作成手段並びに通信経路伝文作成手段をそれぞれ抽出するものである。
【0023】
【発明の実施の形態】
図1は、実施の形態1におけるのデータ処理装置の構成を示すブロック図である。
図において、1は入出力機器であるCRT2やキーボード3、及び接続されるPC4a、4b、4c、4dを制御するコントローラ、2はCRT、3はキーボード、4a、4b、4c、4dはそれぞれ異なる通信プロトコルに基づく通信回線9a、9b、9c、9dにより接続されたPCである。
【0024】
コントローラ1は、ユーザプログラムを実行するCPU5、PC通信プログラム等のユーザプログラム12及び通信回線制御手段16a、16bを管理する管理管理テーブル11並びにメモリ6内で動作するデータ処理手段10が展開されている。
が展開されるメモリ6、CRT2と接続するためのCRT用インターフェース7a、キーボード3と接続するためのキーボード用インターフェース7b、異なる通信プロトコルにより接続されるPCとのインターフェースであって、例えばプロトコルA用I/F8a、プロトコルB用I/F8bから構成される。
なお、PC(A)はA種類のPC、PC(B)はB種類のPC、PC(C)はC種類のPCを表わしている。
【0025】
図2はメモリ6内で動作するデータ処理手段6aの機能を示す機能図である。図において、14は通信伝文19のうち、通信回線9a〜9dに対応した通信経路伝文19aを作成する通信経路伝文作成手段であり、14aは例えばRS232Cである通信回線Aで接続されている通信回線A用通信経路伝文作成手段、14bは例えばイーサネット通信である通信回線Bで接続されている通信回線B用通信経路伝文作成手段、14cは例えばRS422である通信回線Cで接続されている通信回線C用通信経路伝文作成手段、14dは例えば独自LANである通信回線Dで接続されている通信回線D用通信経路伝文作成手段である。
【0026】
15は通信伝文19のうち、PC4a〜4dに対応したPCコマンド伝文19bを作成するPCコマンド伝文作成手段であり、15aはA種類のPC(A)専用のデバイス読み出し等のPCコマンドを作成するPC(A)用PCコマンド伝文作成手段、15b、15cは同様にB種類のPC(B)あるいはC種類のPC(C)専用のデバイス読み出し等のPCコマンドを作成するPC(B)用PCコマンド伝文作成手段、PC(C)用PCコマンド伝文作成手段である。
【0027】
16は通信時に使用するコントローラ側のプロトコル用I/F8a、8bに対応している通信プロトコル制御手段としての通信回線制御手段であり、16aは例えばRS232CであるプロトコルAに接続されているプロトコルA用通信回線制御手段、16bは例えばイーサネット通信であるプロトコルBに接続されているプロトコルB用通信回線制御手段である。
13は通信経路伝文作成手段14、PCコマンド伝文作成手段15、通信回線制御手段16を管理する管理テーブル11を用いて目的のPCと通信するための通信手順管理手段である。
【0028】
図3は、通信手順管理手段13が参照する管理テーブル11の内容を示した状態図であり、処理可能な通信経路伝文作成手段、PCコマンド伝文作成手段、通信回線制御手段の情報を予め登録されている。この三種類の手段は、PCに対する通信を行うために必要な手段であり、これらを組み合わせることによって、目的のPCに対して処理が可能となるものである。
図4は、本実施の形態のデータ処理手段10の動作を示すフローチャートである。
【0029】
次に、図を用いて本実施の形態の動作について説明する。
まず、ユーザが例えばユーザプログラムで用意した画面を用いて所定の通信経路を指定すると共に、通信の対象とするPCを選択すると、ユーザプログラム12から呼ばれる通信手順管理手段13は、ユーザにより指定された通信経路を元に、管理テーブル11からユーザの指定に対応する通信経路伝文作成手段14a、14b、14c、14dのいずれかを起動すると共に、ユーザにより指定された対象PCを元に、管理テーブル11から適切なPCコマンド伝文作成手段15a、15b、15cのいずれかを起動する。
【0030】
通信経路伝文作成手段14a、14b、14c、14dでは、ユーザ要求で指定された通信経路を元に、通信で使用する通信伝文19のうち、通信経路伝文19aを作成する。
PCコマンド伝文作成手段15a、15b、15cでは、ユーザ要求で指定されたPCコマンドを元に、通信で使用する通信伝文19のうち、PCコマンド伝文19bを作成する。
そして、作成された通信経路伝文19a及びPCコマンド伝文19bを合成して通信伝文を作成する。
【0031】
その後、ユーザから要求された使用通信回線を元に、適切な通信回線制御手段16a、16bの何れかを起動し、作成された通信伝文19を通信回線に送信し、結果を受信する。
【0032】
次に、コントローラ1の通信手順管理手段13の詳細動作を図4のフローチャートを用いて説明する。
図4は、ユーザプログラム12が通信手順管理手段13を呼び出し、異なる通信経路を通り、異なるPC(A)4a、PC(B)4bを経由し、同一種類のPC(C)4c、4dからデバイスデータを収集するフローチャートである。
本実施の形態では、まず、通信回線9aに接続されているPC(A)4aを経由し通信回線9cに接続されているPC(C)4cのメモリ17からデバイス領域17aの製品番号データであるデバイスW0〜W99、次に通信回線9bに接続されているPC(B)4bを経由し通信回線9dに接続されているPC(C)4dのメモリ18からデバイス領域18aの生産完了台数データであるデバイスD0〜D49の順にデータ収集を行う場合のユーザプログラム12の例を取り説明する。
【0033】
まず、PC(A)4aを経由し通信回線9cに接続されているPC(C)4cから製品番号データであるデバイスW0〜W99のデータを収集するため、ステップS1において、ユーザの入力(指示)に応じてユーザプログラム12は、通信手順管理手段13に対し、PC(C)4cから収集したい製品番号データであるデバイスW0〜W99を指定して、通信手順管理手段13を呼び出す。
【0034】
次に、ステップS2において、通信手順管理手段13は、管理テーブル11を参照し、ユーザの指示に応じた経由する通信回線9cに対応した通信経路伝文作成手段14cを起動させる。そしてこの起動に際して、コントローラ1からPC(C)4c迄の通信回線9a、9cの情報を指定する。
【0035】
起動された通信経路伝文作成手段14cでは、通信回線9a、9cの情報を通信伝文19の通信経路伝文19aにある要求元通信回線情報領域19cに要求元の通信回線の「情報9a」をセットし、経由通信回線情報領域19dに経由する通信回線の「情報9c」をセットし、通信経路伝文19aを作成する。
【0036】
次に、ステップS3にて、通信手順管理手段13は、管理テーブル11を参照し、通信対象であるPC(C)4cに対応したPC(C)用PCコマンド伝文作成手段15cに対してデバイスW0〜W99の収集コマンドを指定して起動させる。
起動されたPC(C)用PCコマンド伝文作成手段15cでは、PC(C)4c専用のデバイスW0〜W99の収集コマンドを通信伝文19のPCコマンド伝文19bにセットし、PCコマンド伝文19bを作成する。
【0037】
次に、ステップS4にて、通信手順管理手段13は、管理テーブル11を参照し、通信回線9aに対応するプロトコルA用通信回線制御手段16aを使用して、ステップS2、S3で作成した通信伝文19により通信を行うことにより、通信回線9aに接続されているPC(A)4aを経由し通信回線9cに接続されているPC(C)4cのメモリ17からデバイス領域17aの製品番号データであるデバイスW0〜W99のデータを収集する。
以上で、PC(C)4cからの製品番号データであるデバイスW0〜W99のデータ収集が終了する。
【0038】
次に、PC(B)4bを経由し通信回線9dに接続されているPC(C)4dから生産完了台数データであるデバイスD0〜D49のデータを収集するため、ステップS5において、ユーザの入力(指示)に応じてユーザプログラム12は、通信手順管理手段13に対しPC(C)4dから収集したい生産完了台数データであるデバイスD0〜D49を指定して通信手順管理手段13を呼び出す。
【0039】
次に、ステップS6にて、通信手順管理手段13は、管理テーブル11を参照し、ユーザの指示に応じた経由する通信回線9dに対応した通信経路伝文作成手段14dを起動する。そしてこの起動に際して、コントローラ1からPC(C)4d迄の通信回線9b、9dの情報を指定する。
【0040】
起動された通信経路伝文作成手段14dでは、通信回線9b、9dの情報を通信伝文19の通信経路伝文19aにある要求元通信回線情報領域19cに要求元の通信回線の「情報9b」をセットし、経由通信回線情報領域19dに経由する通信回線の「情報9d」をセットし、通信経路伝文19aを作成する。
【0041】
次に、ステップS7にて、通信手順管理手段13は管理テーブル11を参照し、通信対象であるPC(C)4dに対応したPC(C)用コマンド伝文作成手段15cに対しデバイスD0〜D49の収集コマンドを指定して起動させる。
起動されたPC(C)用PCコマンド伝文作成手段15cでは、PC(C)4d専用のデバイスD0〜D49の収集コマンドを通信伝文19のPCコマンド伝文19bにセットし、PCコマンド伝文19bを作成する。
【0042】
次に、ステップS8にて、通信手順管理手段13は、管理テーブル11を参照し、通信回線9bに対応するプロトコルB用通信回線制御手段16bを使用して、ステップS6、S7で作成した通信伝文19により通信を行うことにより、通信回線9bに接続されているPC(B)4bを経由し、通信回線9dに接続されているPC(C)4dのメモリ18からデバイス領域18aの生産完了台数データであるデバイスD0〜D49のデータを収集する。
以上で、PC(C)4dからの生産完了台数データであるデバイスD0〜D49のデータ収集が終了する。
【0043】
本実施の形態によれば、ユーザプログラム内にあらゆる通新形態を想定した通信経路伝文を予め用意することなく、ユーザの経路の指定に基づきユーザプログラムは統一したプログラムインタフェースを持つ通信手順管理手段13を使用して通信経路伝文を組み立て通信経路伝文を作成する。そのため、ユーザは各種通信手順を何等意識せずに統一された手順に沿ってPCとの通信を行うことができる。
また、通信経路、PC、通信回線別の対応する手順を管理テーブルで管理し組み立て利用するため、メモリ容量を大幅に削減できる。
また、コントローラに接続される新規の通信形態、PCの種類等が増えた場合でも、各々の対応する手段を用意し、管理テーブルに登録しておくだけで、ユーザからは通信手順を変更することなく新規の通信、PCに対応可能となる。
また、PCとコントローラとの通信は、同じ通信状況(通信伝文)で繰り返し行われる場合があるので、一度ユーザの設定により作成された通信伝文を所定のメモリに記憶しておけば、ユーザから再度同じ設定があった場合に格納しておいた通信伝文を瞬時に使用することができ、応答性が向上する。
【0044】
【発明の効果】
本発明に係るデータ処理装置によれば、ユーザにより通信対象を指定するだけで、異なる通信プロトコル、PC、通信経路での通信の通信プロトコルや通信手順を意識することなく必要な通信を行うことができる。
また、通信経路、PC、通信回線別の対応する手順みを利用するため、メモリ上最小の構成で、異なる通信プロトコルにより接続されているPCとの通信が容易に行える。
【図面の簡単な説明】
【図1】 本実施の形態によるデータ処理装置の構成を示すブロック図である。
【図2】 データ処理手段の機能を示す機能構成図である。
【図3】 管理テーブル内容を示した状態図である。
【図4】 データ処理手段の動作を示すフローチャートである。
【図5】 従来のデータ処理装置の構成を示すブロック図である。
【図6】 PCのメモリ内容を示したメモリ状態図である。
【図7】 通信伝文の構成を示した構成図である。
【図8】 従来のデータ処理方法を示すフローチャートである。
【符号の説明】
1 コントローラ、2 CRT、3 キーボード、4 PC、5 CPU、6 メモリ、6a データ処理手段、8 プロトコルインターフェース、9 通信回線、10 通信経路伝文作成手段、11 PCコマンド伝文作成手段、12通信回線制御手段13 通信手順管理手段、14 管理テーブル、15 ユーザプログラム。
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to data processing equipment for performing communication with the control device having a storage device such as a plurality of programmable controllers.
[0002]
[Prior art]
FIG. 5 is a block diagram showing a configuration of a conventional data processing apparatus.
In the figure, reference numeral 1 denotes an input / output device CRT2 or keyboard 3, and a controller that controls programmable controllers (hereinafter referred to as PCs) 4a, 4b, 4c, 4d, 2 a CRT, 3 a keyboard, 4a, 4b, 4c, and 4d are PCs connected by communication lines 9a, 9b, 9c, and 9d based on different communication protocols.
[0003]
The controller 1 includes a CPU 5 that executes a user program, a memory 6A in which a user program 12A such as a PC communication program is expanded, a CRT interface 7a for connection to the CRT 2, a keyboard interface 7b for connection to the keyboard 3, and the like. It is an interface with a PC connected by a communication protocol, and is composed of, for example, a protocol A I / F 8a and a protocol B I / F 8b.
PC (A) represents A type PC, PC (B) represents B type PC, and PC (C) represents C type PC.
[0004]
FIG. 6 is a memory state diagram showing the internal memory state of the PC. As an example, the memories of the PC (C) 4c and 4d are shown.
In the figure, reference numeral 17 denotes a PC (C) 4c memory, in which device data of devices W0 to W99, for example, are stored in an internal device area 17a. Reference numeral 18 denotes a memory of the PC (C) 4d, and device data of devices D0 to D49, for example, are stored in an internal device area 18a.
[0005]
FIG. 7 is a communication message configuration diagram showing a communication message configuration used for the controller 1 to communicate with the PC 4.
In the figure, 19 represents the entire message to be communicated, and the content of the message is a communication path transmission comprising request source communication line information 19c and transit communication line information 19d necessary for determining the communication path for the PC to be communicated. It consists of a sentence 19a and a PC command message 19b for processing a PC-specific command.
[0006]
FIG. 8 is a flowchart showing a data processing method for collecting data from the same type of PC (C) 4c and 4d through different communication lines and via different PC (A) 4a and PC (B) 4b. Therefore, a conventional communication method with a PC will be described using data collection as an example with reference to the drawings.
[0007]
In this conventional example, when the user operates the input / output device, the device area is firstly accessed from the memory 17 of the PC (C) 4c connected to the communication line 9c via the PC (A) 4a connected to the communication line 9a. Device area 18a from the memory 18 of the PC (C) 4d connected to the communication line 9d via the devices W0 to W99 which are the product number data 17a and then the PC (B) 4b connected to the communication line 9b An example of the user program 12 in the case of collecting data in the order of devices D0 to D49, which are the production completion number data, will be described.
[0008]
First, in step S11, when the user operates the input / output device, in order to communicate with the PC (C) 4c, the device W0 which is product number data from the PC (C) 4c according to the communication protocol with the PC (C) 4c. A PC command message 19b “device data collection command” for data collection of W˜99 and a communication path message 19a corresponding to the communication lines 9a and 9c which are communication paths are created as one communication message 19. .
[0009]
Specifically, in the user program 12, a plurality of communication message formats for the PC 4 are set in advance according to the connection status to the controller 1, the type of PC, and the like.
In accordance with the operation of the input / output device by the user, the communication message format determined by the connection status and PC type is extracted (created) from the user program 12 and input based on the communication message format. The communication message 19 is completed by adding the data.
[0010]
Next, in step S12, in order to communicate with the PC (C) 4c via the PC (A) 4a, the communication line 9a is opened (connection process) via the protocol A I / F 8a. (A) The communication with the PC (A) 4a is performed via the communication message 19 for collecting data of the devices W0 to W99 as the product number data from the PC (C) 4c via the 4a.
[0011]
The communication message 19 sent via the protocol A I / F 8a is determined by the PC (A) 4a as to whether or not the message is addressed to the own station, and the message addressed to the own station is determined from the communication path route message 19a. Therefore, the message is sent to the PC (C) 4c via the communication line 9c based on the via-communication line information 19d.
The PC (C) 4c determines that the received message is a message addressed to the own station in the form of the own station, and the instruction “data of devices W0 to W99” written in the PC command message 19b. In response to “collection”, data of devices W0 to W99, which is product number data, is transmitted to the controller 1.
[0012]
Thereafter, in step S14, the communication line 9a is closed, and the data collection of the devices W0 to W99 from the PC (C) 4c is completed.
[0013]
Next, in order to collect the data of the devices D0 to D49, which are the production completion number data, from the PC (C) 4d, which is the same type of PC connected through a different route, step S15 is performed based on the operation of the input / output device by the user. In order to communicate with the PC (C) 4d, the PC command transmission for collecting data of the devices D0 to D49, which are the production completion data, is transmitted from the PC (C) 4d according to the communication protocol with the PC (C) 4d. A sentence 19b “device data collection command” and a communication path message 19a corresponding to the communication lines 9b and 9d, which are communication paths, are created and made into one communication message 19.
[0014]
Next, in step S16, in order to communicate with the PC (C) 4d via the PC (B) 4b, the communication line 9b is opened (connection process) via the protocol B I / F 8b. (B) Communicate with PC (C) 4d via communication message 19 for collecting data of devices D0 to D49, which are actually production completion number data, from PC (C) 4d via 4b. .
[0015]
The communication message 19 sent via the protocol B I / F 8b is judged whether or not the message is addressed to the own station in the PC (B) 4b, and the message addressed to the own station is determined from the communication path route message 19a. Therefore, the message is sent to the PC (C) 4d via the communication line 9d based on the via-communication line information 19d.
The PC (C) 4d determines that the received message is a message addressed to the own station in the form of the own station, and the instruction “data of the devices D0 to DW49” written in the PC command message 19b. In response to “collection”, the data of the devices D0 to D49, which are product number data, are transmitted to the controller 1.
[0016]
Thereafter, in step S18, the communication line 9b is closed, and the data collection of the devices D0 to D49, which is the production completion number data from the PC (C) 4d, is completed.
[0017]
[Problems to be solved by the invention]
In the data communication method, the message to be communicated with each PC differs depending on the different communication line and the type of the destination PC. Further, in the case of communication with another PC via a PC, a message that matches the communication message format of the communication that passes through is required.
Therefore, in the past, assuming various communication forms according to different communication lines, types of PCs to be communicated with, and the situation via communication, a communication message used for the new communication form is created in advance. There was a problem that the program had to be prepared as a user program, and the program was enlarged and the performance was lowered.
When preparing this communication message in advance, it was necessary to create a message according to a dedicated communication message creation procedure using the expertise of the target PC and the expertise of the communication path.
Further, it is necessary to create a corresponding message every time a new communication type or PC type is added, and there is a problem that the program is enlarged and complicated.
[0018]
The present invention has been made to solve the above-described problems, and the user program is aware of the characteristics of the communication line, the communication path, and the PC only by accessing the management means in a unified procedure. The purpose is to enable communication with a PC.
[0019]
[Means for Solving the Problems]
A data processing device according to the present invention is connected to a plurality of communication protocol control means for controlling a plurality of types of communication protocols and a plurality of types of programmable controllers in a data processing device that communicates with a programmable controller. A plurality of PC command message creation means for creating PC commands for controlling each programmable controller and a communication path message for each of the plurality of communication paths to reach the programmable controller to be communicated. Corresponding to a plurality of communication path message creation means and data set by the user, a communication protocol control means, a PC command message creation means, and a communication path message creation means are respectively extracted, and the extracted communication protocol control Means and PC command message creation means Comprising a communication procedure management means for combining the communication path Denbun creating means, and the communication line corresponding to the communication protocol control means of the extracted by the extracted PC commands Denbun creating means and the communication path Denbun creating means The created communication message is transmitted .
[0020]
In addition, a management table in which information of processable communication protocol control means, PC command message creation means, and communication path message creation means is registered in advance is provided, and the communication procedure management means refers to the management table, The communication protocol control means, the PC command message creation means, and the communication path message creation means corresponding to the data set by the user are extracted .
[0023]
DETAILED DESCRIPTION OF THE INVENTION
FIG. 1 is a block diagram showing the configuration of the data processing apparatus according to the first embodiment.
In the figure, 1 is a controller that controls the CRT 2 and keyboard 3, which are input / output devices, and the PCs 4a, 4b, 4c and 4d connected, 2 is a CRT, 3 is a keyboard, 4a, 4b, 4c and 4d are different communications. It is a PC connected by communication lines 9a, 9b, 9c, 9d based on the protocol.
[0024]
The controller 1 includes a CPU 5 that executes a user program, a user program 12 such as a PC communication program, a management management table 11 that manages communication line control means 16a and 16b, and a data processing means 10 that operates in the memory 6. .
, A CRT interface 7a for connecting to the CRT 2, a keyboard interface 7b for connecting to the keyboard 3, and an interface with a PC connected by a different communication protocol, for example, protocol I I / F8a and protocol B I / F8b.
PC (A) represents A type PC, PC (B) represents B type PC, and PC (C) represents C type PC.
[0025]
FIG. 2 is a functional diagram showing the functions of the data processing means 6a operating in the memory 6. As shown in FIG. In the figure, 14 is a communication path message creating means for creating a communication path message 19a corresponding to the communication lines 9a to 9d among the communication messages 19, and 14a is connected by a communication line A, for example, RS232C. The communication path message creation means for communication line A, 14b is connected to the communication path message creation means for communication line B connected by communication line B, for example, Ethernet communication, and 14c is connected by communication line C, for example, RS422. The communication path message creating means for communication line C, 14d, for example, is a communication path message creating means for communication line D connected by the communication line D which is a unique LAN.
[0026]
15 is a PC command message creating means for creating a PC command message 19b corresponding to the PCs 4a to 4d in the communication message 19, and 15a is a PC command for reading a device dedicated to A type PC (A). The PC command message creation means for PC (A) to be created, 15b and 15c are similarly PC (B) for creating a PC command such as device reading dedicated to B type PC (B) or C type PC (C). PC command message creating means for PC, PC command message creating means for PC (C).
[0027]
16 is a communication line control means as a communication protocol control means corresponding to the controller side protocol I / Fs 8a and 8b used at the time of communication, and 16a is for the protocol A connected to the protocol A which is RS232C, for example. The communication line control means 16b is a communication line control means for protocol B connected to protocol B which is Ethernet communication, for example.
Reference numeral 13 denotes a communication procedure management means for communicating with the target PC using the management table 11 for managing the communication path message creation means 14, the PC command message creation means 15, and the communication line control means 16.
[0028]
FIG. 3 is a state diagram showing the contents of the management table 11 referred to by the communication procedure management means 13. Information on processable communication path message creation means, PC command message creation means, and communication line control means is stored in advance. It is registered. These three types of means are means necessary for communicating with the PC, and by combining these, processing can be performed for the target PC.
FIG. 4 is a flowchart showing the operation of the data processing means 10 of the present embodiment.
[0029]
Next, the operation of the present embodiment will be described with reference to the drawings.
First, when a user designates a predetermined communication path using a screen prepared by a user program, for example, and selects a PC to be communicated, the communication procedure management means 13 called from the user program 12 is designated by the user. Based on the communication path, one of the communication path message creation means 14a, 14b, 14c, and 14d corresponding to the user's designation is activated from the management table 11, and the management table is created based on the target PC designated by the user. 11 starts one of the appropriate PC command message creation means 15a, 15b, 15c.
[0030]
The communication path message creating means 14a, 14b, 14c, 14d creates a communication path message 19a among the communication messages 19 used in communication based on the communication path specified by the user request.
The PC command message creating means 15a, 15b, 15c creates a PC command message 19b among the communication messages 19 used for communication based on the PC command specified by the user request.
Then, a communication message is created by synthesizing the created communication path message 19a and the PC command message 19b.
[0031]
Thereafter, on the basis of the communication line used by the user, one of the appropriate communication line control means 16a and 16b is activated, the created communication message 19 is transmitted to the communication line, and the result is received.
[0032]
Next, the detailed operation of the communication procedure management means 13 of the controller 1 will be described using the flowchart of FIG.
In FIG. 4, the user program 12 calls the communication procedure management means 13, passes through different communication paths, passes through different PC (A) 4a and PC (B) 4b, and transmits the device from the same type of PC (C) 4c and 4d. It is a flowchart which collects data.
In the present embodiment, first, product number data in the device area 17a from the memory 17 of the PC (C) 4c connected to the communication line 9c via the PC (A) 4a connected to the communication line 9a. This is the production completion number data in the device area 18a from the memory 18 of the PC (C) 4d connected to the communication line 9d via the devices W0 to W99 and then the PC (B) 4b connected to the communication line 9b. An example of the user program 12 when data collection is performed in the order of the devices D0 to D49 will be described.
[0033]
First, in order to collect data of the devices W0 to W99 as product number data from the PC (C) 4c connected to the communication line 9c via the PC (A) 4a, in step S1, user input (instruction) In response to this, the user program 12 specifies the devices W0 to W99, which are product number data to be collected from the PC (C) 4c, and calls the communication procedure management unit 13 to the communication procedure management unit 13.
[0034]
Next, in step S2, the communication procedure management means 13 refers to the management table 11 and activates the communication path message creation means 14c corresponding to the communication line 9c that passes through according to the user's instruction. At the time of activation, information on the communication lines 9a and 9c from the controller 1 to the PC (C) 4c is designated.
[0035]
In the activated communication path message creating means 14 c, the information of the communication lines 9 a and 9 c is transferred to the request source communication line information area 19 c in the communication path message 19 a of the communication message 19 and “information 9 a” of the request source communication line. Is set, “Information 9c” of the communication line passing through the via communication line information area 19d is set, and the communication path message 19a is created.
[0036]
Next, in step S3, the communication procedure management means 13 refers to the management table 11 and sends a device to the PC (C) PC command message creation means 15c corresponding to the PC (C) 4c to be communicated. Start by specifying a collection command of W0 to W99.
In the activated PC command message creation means 15c for PC (C), the collection command of the devices W0 to W99 dedicated to the PC (C) 4c is set in the PC command message 19b of the communication message 19, and the PC command message 19b is created.
[0037]
Next, in step S4, the communication procedure management means 13 refers to the management table 11 and uses the protocol A communication line control means 16a corresponding to the communication line 9a to create the communication information created in steps S2 and S3. By communicating with the sentence 19, the product number data in the device area 17a is transmitted from the memory 17 of the PC (C) 4c connected to the communication line 9c via the PC (A) 4a connected to the communication line 9a. Data of certain devices W0 to W99 is collected.
This completes the data collection of the devices W0 to W99, which are product number data from the PC (C) 4c.
[0038]
Next, in order to collect the data of the devices D0 to D49, which is the production completion number data, from the PC (C) 4d connected to the communication line 9d via the PC (B) 4b, in step S5, the user input ( In response to the instruction, the user program 12 calls the communication procedure management unit 13 by designating the devices D0 to D49, which are the production completion number data to be collected from the PC (C) 4d, to the communication procedure management unit 13.
[0039]
Next, in step S6, the communication procedure management unit 13 refers to the management table 11 and activates the communication path message creation unit 14d corresponding to the communication line 9d through according to the user's instruction. At the time of activation, information on the communication lines 9b and 9d from the controller 1 to the PC (C) 4d is designated.
[0040]
In the activated communication path message creation means 14d, the information of the communication lines 9b and 9d is transferred to the request source communication line information area 19c in the communication path message 19a of the communication message 19 and the "information 9b" of the request source communication line. Is set, "Information 9d" of the communication line passing through the via communication line information area 19d is set, and the communication path message 19a is created.
[0041]
Next, in step S7, the communication procedure management means 13 refers to the management table 11, and the devices D0 to D49 are sent to the PC (C) command message creation means 15c corresponding to the PC (C) 4d to be communicated. Specify the collection command to start.
In the activated PC command message creating means 15c for PC (C), the collected commands of the devices D0 to D49 dedicated to the PC (C) 4d are set in the PC command message 19b of the communication message 19, and the PC command message 19b is created.
[0042]
Next, in step S8, the communication procedure management means 13 refers to the management table 11 and uses the communication line control means 16b for protocol B corresponding to the communication line 9b to create the communication information created in steps S6 and S7. The number of completed production of the device area 18a from the memory 18 of the PC (C) 4d connected to the communication line 9d via the PC (B) 4b connected to the communication line 9b by communicating with the sentence 19 Data of devices D0 to D49 as data is collected.
This completes the data collection for the devices D0 to D49, which are production completion data from the PC (C) 4d.
[0043]
According to the present embodiment, the communication procedure management means having a unified program interface based on the user's designation of the user program without preparing in advance a communication route message assuming any new form in the user program. 13 is used to assemble a communication path message and create a communication path message. Therefore, the user can communicate with the PC according to a unified procedure without being aware of various communication procedures.
In addition, since the corresponding procedure for each communication path, PC, and communication line is managed and assembled in the management table, the memory capacity can be greatly reduced.
In addition, even if new communication modes, types of PCs, etc. connected to the controller increase, it is possible to change the communication procedure from the user simply by preparing the corresponding means and registering them in the management table. New communication and PC can be supported.
In addition, since communication between the PC and the controller may be repeatedly performed in the same communication situation (communication message), once the communication message created by the user setting is stored in a predetermined memory, the user When the same setting is made again, the stored communication message can be used instantly, and the responsiveness is improved.
[0044]
【The invention's effect】
According to the data processing equipment of the present invention, by simply specifying the communication target by the user, different communication protocols, PC, to make the necessary communication without being conscious of the communication protocols and communication procedures of the communication in the communication path Can do.
The communication path, PC, for use only in specific communication line corresponding procedures, on a minimum configuration memory, easily communicate with the PC are connected by different communication protocols.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of a data processing apparatus according to an embodiment.
FIG. 2 is a functional configuration diagram showing functions of data processing means.
FIG. 3 is a state diagram showing contents of a management table.
FIG. 4 is a flowchart showing the operation of the data processing means.
FIG. 5 is a block diagram showing a configuration of a conventional data processing apparatus.
FIG. 6 is a memory state diagram showing the memory contents of the PC.
FIG. 7 is a configuration diagram showing a configuration of a communication message.
FIG. 8 is a flowchart showing a conventional data processing method.
[Explanation of symbols]
1 controller, 2 CRT, 3 keyboard, 4 PC, 5 CPU, 6 memory, 6a data processing means, 8 protocol interface, 9 communication line, 10 communication path message creating means, 11 PC command message creating means, 12 communication line Control means 13 Communication procedure management means, 14 management table, 15 user program.

Claims (2)

プログラマブルコントローラとの通信を行うデータ処理装置において、
複数種類の通信プロトコルをそれぞれ制御する複数の通信プロトコル制御手段と、
複数種類のプログラマブルコントローラに対応して、接続されるプログラマブルコントローラを制御するためのPCコマンドをそれぞれ作成する複数のPCコマンド伝文作成手段と、
通信対象となるプログラマブルコントローラに到達するまでの複数の通信経路に応じた通信経路伝文をそれぞれ作成する複数の通信経路伝文作成手段と、
ユーザが設定したデータに対応して、通信プロトコル制御手段及びPCコマンド伝文作成手段並びに通信経路伝文作成手段をそれぞれ抽出し、該抽出された通信プロトコル制御手段及びPCコマンド伝文作成手段並びに通信経路伝文作成手段を組み合わせる通信手順管理手段と、を備え
上記抽出された通信プロトコル制御手段に対応する通信回線に、上記抽出されたPCコマンド伝文作成手段及び通信経路伝文作成手段により作成された通信伝文を送信することを特徴とするデータ処理装置
In a data processing device that communicates with a programmable controller,
A plurality of communication protocol control means for respectively controlling a plurality of types of communication protocols;
A plurality of PC command message creation means for creating PC commands for controlling the connected programmable controllers in correspondence with a plurality of types of programmable controllers,
A plurality of communication path message creating means for respectively creating communication path messages according to a plurality of communication paths until reaching the programmable controller to be communicated;
Corresponding to the data set by the user, the communication protocol control means, the PC command message creation means and the communication path message creation means are extracted, respectively, and the extracted communication protocol control means, PC command message creation means and communication are extracted. Communication procedure management means that combines route message creation means ,
A data processing apparatus for transmitting the communication message created by the extracted PC command message creation means and communication path message creation means to a communication line corresponding to the extracted communication protocol control means.
処理可能な通信プロトコル制御手段及びPCコマンド伝文作成手段並びに通信経路伝文作成手段の情報が予め登録された管理テーブルを備え、
上記通信手順管理手段は、上記管理テーブルを参照して、ユーザが設定したデータに対応する通信プロトコル制御手段及びPCコマンド伝文作成手段並びに通信経路伝文作成手段をそれぞれ抽出することを特徴とする請求項1に記載のデータ処理装置。
A management table in which information of processable communication protocol control means, PC command message creation means, and communication path message creation means is registered in advance,
The communication procedure managing means extracts the communication protocol control means, the PC command message creating means, and the communication path message creating means corresponding to the data set by the user with reference to the management table. The data processing apparatus according to claim 1.
JP07433598A 1998-03-23 1998-03-23 Data processing device Expired - Lifetime JP3785795B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP07433598A JP3785795B2 (en) 1998-03-23 1998-03-23 Data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP07433598A JP3785795B2 (en) 1998-03-23 1998-03-23 Data processing device

Publications (2)

Publication Number Publication Date
JPH11272311A JPH11272311A (en) 1999-10-08
JP3785795B2 true JP3785795B2 (en) 2006-06-14

Family

ID=13544158

Family Applications (1)

Application Number Title Priority Date Filing Date
JP07433598A Expired - Lifetime JP3785795B2 (en) 1998-03-23 1998-03-23 Data processing device

Country Status (1)

Country Link
JP (1) JP3785795B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7299279B2 (en) * 2002-12-30 2007-11-20 General Electric Company System and method for real-time viewing of monitoring system data
JP4244677B2 (en) * 2003-03-31 2009-03-25 三菱電機株式会社 FA controller
JP2009134699A (en) * 2007-10-31 2009-06-18 Daikin Ind Ltd Data collection apparatus and data management system

Also Published As

Publication number Publication date
JPH11272311A (en) 1999-10-08

Similar Documents

Publication Publication Date Title
KR100451315B1 (en) Control system, display device, control-use host computer, and data transmission method
JP4769808B2 (en) Interface modules used in Fieldbus device networks and Internet-based and non-Internet-based process control networks
US8990444B2 (en) Fieldbus gateway using virtual serial fieldbus port and data transmission method thereof
JP2013219655A (en) Protocol conversion device and protocol conversion method
JP3785795B2 (en) Data processing device
JP3739897B2 (en) Programmable controller
US7363405B2 (en) Communication control apparatus and method
JP4347022B2 (en) Air conditioning control monitoring device and building air conditioning management system
JP3024345B2 (en) Data link method
JPH03143473A (en) Sewing machine equipment
JP3497441B2 (en) Control server device and control system
JP3550677B2 (en) Personal computer and communication method of personal computer
JP2002149531A (en) Communication method and communication system
JP2002095068A (en) Monitoring control system
JP3373932B2 (en) System construction method
JP2629541B2 (en) Information transmission method of elevator system
JPH09331368A (en) Communication procedure automatic selection method
JPH0764473A (en) Computer system
JPH05282173A (en) Method for supporting program debugging
JPH04291435A (en) Computer system
JPH0736558B2 (en) Communication controller for programmable controller
JP2749279B2 (en) Communication control system
JPH08185302A (en) Window sharing system
JPH0667998A (en) Remote file access equipment
JP2000115424A (en) Network system and server device thereof

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20040621

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050817

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050823

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051021

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20051129

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060125

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20060130

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: 20060228

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060313

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

Free format text: PAYMENT UNTIL: 20100331

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100331

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110331

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110331

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120331

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130331

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130331

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20140331

Year of fee payment: 8

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term