JPH0635826A - Communication controller - Google Patents

Communication controller

Info

Publication number
JPH0635826A
JPH0635826A JP4214707A JP21470792A JPH0635826A JP H0635826 A JPH0635826 A JP H0635826A JP 4214707 A JP4214707 A JP 4214707A JP 21470792 A JP21470792 A JP 21470792A JP H0635826 A JPH0635826 A JP H0635826A
Authority
JP
Japan
Prior art keywords
server
definition information
communication
object definition
communication path
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP4214707A
Other languages
Japanese (ja)
Inventor
Minoru Umetsu
実 梅津
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 JP4214707A priority Critical patent/JPH0635826A/en
Publication of JPH0635826A publication Critical patent/JPH0635826A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide a communication controller which can reduce the scale of the work program produced by a user and also can facilitate the production of the work program. CONSTITUTION:The definition information 31 on all resources including variables, memories, programs, etc., which are controlled by all stations of the opposite party connected to each other via a transmission line 1 is stored in an object definition information table 38 which is previously produced. The address and the communication channel state of each opposite party station to which the information 31 belongs are registered in a communication channel control table 41. Then, the communication channels are automatically established to all opposite party stations registered in the table 41 in the starting state of a communication controller 2. Thus, such service processings including the delivery of the operating request to each opposite party station, the reception of the operating result, the transfer of the operating result to each work program 4, etc., are carried out based on the information 31 on the necessary resources obtained by the retrieval of the table 38 in response to the operating request given to the resources of the opposite party station from the program 4.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、ローカルエリアネッ
トワーク等において、伝送路を介して接続される相手局
(以下サーバという)に対し、そのサーバが管理する変
数、メモリ、プログラム等の資源の、読出しや書込み、
起動、停止等の操作を要求する通信機能を備え、利用者
によって作成されるアプリケーションブログラム(以下
業務ブログラムという)によって上記サーバの資源を制
御する通信制御装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a remote station (hereinafter referred to as a server) connected via a transmission line in a local area network or the like, and stores resources such as variables, memories and programs managed by the server. Read and write,
The present invention relates to a communication control device which has a communication function for requesting operations such as start and stop and controls the resources of the server by an application program (hereinafter referred to as a business program) created by a user.

【0002】[0002]

【従来の技術】一般に、業務ブログラムによって制御さ
れる変数やメモリ、動作プログラムなどの資源の送受
は、通信相手に対して資源の操作(以後サービスと称
す)を要求するサービス利用局(以後クライアントと称
す)と、資源を管理しクライアントから要求されたサー
ビスに対応して所定の動作を行い、その回答を返すサー
ビス提供局(以後サーバと称す)との間で、所定の通信
プロトコルを実行する通信手段により行なわれる。
2. Description of the Related Art Generally, resources such as variables, memories and operation programs controlled by a business program are sent and received by a service user station (hereinafter referred to as a client) which requests a communication partner to operate the resource (hereinafter referred to as a service). And a service providing station (hereinafter referred to as a server) that executes a predetermined operation in response to a service requested by a client and manages resources, and executes a predetermined communication protocol. It is performed by communication means.

【0003】以下、FA(Factory Automation、生産の
自動化ライン)のネットワークを例にとり、従来のクラ
イアントしての通信制御装置について図6〜図8により
説明する。図6は従来の通信制御装置の構成図、図7は
クライアントとサーバとによるネットワーク構成図、図
8は通信制御装置の業務プログラムにおける通信手順を
示すフローチャートである。
A communication control device as a conventional client will be described below with reference to FIGS. 6 to 8 by taking a FA (Factory Automation) network as an example. FIG. 6 is a configuration diagram of a conventional communication control device, FIG. 7 is a network configuration diagram of a client and a server, and FIG. 8 is a flowchart showing a communication procedure in a business program of the communication control device.

【0004】図6において、(1)は伝送路、(2)は通信制
御装置であるクライアント、(3)は通信プロトコルを実
行する通信機能を備えた通信手段、(4)(4)は利用者によ
って作成されクライアント(2)で実行されるアプリケー
ションプログラムである業務プログラム、図7におい
て、(5a)(5b)はサーバで、(5a)は工場の生産ラインを制
御するプログラマブルコントローラ、(5b)はロボットの
動作を制御するロボットコントローラ、(6a)(6b)(6c)は
サーバ(5a)内の資源で、変数であるライン内のメータ
(7)やカウンタ(8)の読取り値、スイッチ(9)等への入出
力値(I/O)、(6d)(6e)はサーバ(5b)内の資源で、ロボ
ット動作のスピード変数及びはロボット(10)の動作プロ
グラム、(11a)(11b)はクライアント(2)とサーバ(5a)(5
b)間の論理的な通信路である。
In FIG. 6, (1) is a transmission path, (2) is a client which is a communication control device, (3) is a communication means having a communication function for executing a communication protocol, and (4) and (4) are used. A business program, which is an application program created by a person and executed by a client (2), in FIG. 7, (5a) and (5b) are servers, (5a) is a programmable controller for controlling a factory production line, (5b) Is a robot controller that controls the operation of the robot, and (6a) (6b) (6c) are the resources in the server (5a) and the meters in the line that are variables.
Reading values of (7) and counter (8), input / output value (I / O) to switch (9), etc., (6d) and (6e) are resources in the server (5b), which are the speed variable of robot operation and Is the operation program of the robot (10), and (11a) (11b) is the client (2) and server (5a) (5
It is a logical communication path between b).

【0005】次に、図8のフローチャートによりクライ
アント(2)の業務プログラムで実行されるサーバ(5a)(5
b)の資源(6a)〜(6e)を操作する通信手順について説明す
る。まず、ステップ(20)で、サーバ(5a)とサーバ(5b)に
対して通信路確立要求が送信され、ステップ(21)でサー
バからの通信路確立応答が受信され、サーバ(5a)(5b)の
どちらの応答かがチェックされる。ステップ(22)で、サ
ーバからの通信路確立応答の内容が調べられ、通信路(1
1a)(11b)が確立されたかどうかチェックされる。サーバ
(5a)(5b)の双方と通信路(11a)(11b)が確立されれば、ス
テップ(23)へ進み業務処理が実行され、確立されなけれ
ばステップ(20)に戻り、通信路(11a)(11b)が確立される
までこのループは繰り返される。
Next, referring to the flowchart of FIG. 8, the servers (5a) (5) executed by the business program of the client (2)
A communication procedure for operating the resources (6a) to (6e) of b) will be described. First, in step (20), a communication path establishment request is transmitted to the server (5a) and the server (5b), and in step (21) a communication path establishment response is received from the server (5a) (5b). ) Which response is checked. In step (22), the contents of the communication path establishment response from the server are checked, and the communication path (1
It is checked whether 1a) (11b) has been established. server
If the communication paths (11a) and (11b) with both (5a) and (5b) are established, the process proceeds to step (23), the business process is executed, and if not established, the process returns to step (20) and the communication path (11a) ) This loop is repeated until (11b) is established.

【0006】ステップ(24)で、業務処理の結果、サーバ
に対するサービス要求があるかがチェックされ、あれば
ステップ(25)へ進み、なければステップ(23)へ戻る。以
下のステップでは、メータ(7)に対応しているサーバ(5
a)の資源(6a)に対して値読み出しのサービス要求があっ
たものとする。ステップ(25)で、パラメータ格納用の送
信バッファが空きエリアから確保され、ステップ(26)
で、確保された送信バッファにサーバ(5a)の資源(6a)を
表わすパラメータ、例えば、資源(6a)の所属するサーバ
(5a)のアドレスや、サーバ(5a)内での資源(6a)のアクセ
ス形式、型、変数名などが設定される。
In step (24), it is checked whether or not there is a service request to the server as a result of the business process. If there is a service request, the process proceeds to step (25). If not, the process returns to step (23). In the following steps, the server (5
It is assumed that there is a value read service request for the resource (6a) in a). In step (25), the transmission buffer for storing parameters is secured from the empty area, and in step (26)
, A parameter representing the resource (6a) of the server (5a) in the reserved transmission buffer, for example, the server to which the resource (6a) belongs
The address of (5a), the access format, type, variable name, etc. of the resource (6a) in the server (5a) are set.

【0007】ステップ(27)で、通信手段(3)に対して、
送信バッファに設定されたパラメータとサービスの内容
である値読み出しの要求が渡され、それらパラメータと
サービス要求が伝送フレームに符号化され、確立された
通信路(11a)を介してサーバ(5a)へ送信される。ステッ
プ(28)で、サービス要求に対するサーバ(5a)からの応答
が通信手段(3)により受信され、その受信伝送フレーム
が展開され、空きエリアから確保された応答用の受信バ
ッファに格納されて、業務プログラム(4)に渡される。
ステップ(29)で、回答されたメータ(7)の読取り値が受
信バッファから抽出され、サービスに対応した業務の処
理がなされ、ステップ(30)で、ステップ(25)で確保され
た送信バッファと、通信手段(3)によって確保された受
信バッファとが空きエリアに解放され、ステップ(23)へ
戻る。別の業務プログラムからサーバ(5a)の資源(6a)に
対してサービス要求がなされる場合も、同様のステップ
が実行される。
In step (27), for the communication means (3),
The parameter set in the send buffer and the request for reading the value of the service contents are passed, the parameters and the service request are encoded in the transmission frame, and are transmitted to the server (5a) via the established communication path (11a). Sent. In step (28), the response from the server (5a) to the service request is received by the communication means (3), the received transmission frame is expanded, stored in the reception buffer for the response secured from the empty area, Passed to business program (4).
In step (29), the read value of the responded meter (7) is extracted from the reception buffer, the business corresponding to the service is processed, and in step (30), the transmission buffer secured in step (25) is stored. The receiving buffer secured by the communication means (3) is released to the empty area, and the process returns to step (23). Similar steps are executed when a service request is made to the resource (6a) of the server (5a) from another business program.

【0008】[0008]

【発明が解決しようとする課題】以上のように従来では
クライアントからのサーバの資源を制御する場合、通信
路の確立や、資源のパラメータ設定に伴うバッファの確
保や解放などの繁雑な処理が、個々の業務ブログラムに
組込まれていたために、プログラムが複雑化し業務ブロ
グラムの作成に多大な時間を要し、プログラムを作成す
る利用者にとって、業務とは直接関係のない通信プロト
コルについての知識が必要で、大きな負担となってい
た。しかも、各々の業務プログラム毎に通信路の確立や
パラメータ設定などの処理を行わなくてはならないため
に、1つの業務プログラムのサイズも大きくなり、複数
の業務プログラムを同時に動作させるには多大なメモリ
が必要となる等の問題点があった。
As described above, conventionally, when controlling the resource of the server from the client, complicated processing such as establishment of a communication channel and securing and releasing of a buffer associated with the parameter setting of the resource is required. Since it was incorporated in each business program, the program became complicated and it took a lot of time to create the business program, and the user who created the program had knowledge of the communication protocol not directly related to the business. It was necessary and a heavy burden. Moreover, the size of one business program becomes large because processing such as communication channel establishment and parameter setting must be performed for each business program, and a large amount of memory is required to operate multiple business programs simultaneously. There was a problem that it was necessary.

【0009】この発明は上記のような問題点を解消する
ためになされたもので、業務プログラムの作成が簡単
で、しかも比較的少ないメモリ容量でも複数の業務プロ
グラムが同時に動作できる通信制御装置を得ることを目
的とする。
The present invention has been made to solve the above problems, and provides a communication control device in which a business program can be easily created and a plurality of business programs can operate simultaneously with a relatively small memory capacity. The purpose is to

【0010】[0010]

【課題を解決するための手段】この発明の第1の発明に
係る通信制御装置は、利用者によって予め作成され、サ
ーバが有する資源のオブジェクト定義情報が、各オブジ
ェクト定義情報毎にオブジェクト識別子を付して格納さ
れるオブジェクト定義情報テーブルと、業務ブログラム
からのサーバ資源の操作要求に応じ、その要求された資
源のオブジェクト識別子により上記オブジェクト定義情
報テーブルを検索し所要資源のオブジェクト定義情報を
得るオブジェクト定義情報検索手段と、この手段によっ
て検索された定義情報に基づき、サーバへの操作要求の
送出、その操作結果の受信、上記業務ブログラムへの転
送等のサービス処理を行なうサービス実行手段と、この
サービス実行手段とサーバとの通信処理を行なう通信手
段とを備えたものである。
According to a first aspect of the present invention, a communication control device is created in advance by a user, and object definition information of resources possessed by a server is provided with an object identifier for each object definition information. Object definition information table that is stored as an object, and an object that retrieves the object definition information of the required resource by searching the above object definition information table with the object identifier of the requested resource in response to the operation request of the server resource from the business program Definition information search means, service execution means for performing service processing such as sending an operation request to the server, receiving the operation result, and transferring to the business program based on the definition information searched by this means, and One provided with service execution means and communication means for performing communication processing with the server A.

【0011】この発明の第2の発明に係る通信制御装置
は、利用者によって予め作成され、サーバが有する資源
のオブジェクト定義情報が、各オブジェクト定義情報毎
のオブジェクト識別子と、所属サーバアドレス等のサー
バ識別子とをそれぞれ付して格納されるオブジェクト定
義情報テーブルと、このオブジェクト定義情報テーブル
中の上記サーバ識別子を登録するサーバ登録部及び各サ
ーバとの通信路状態を示す通信路状態部を有する通信路
管理テーブルと、通信制御装置の立上り時に、この通信
路管理テーブルをセットアップして、これに登録されて
いるサーバに対する通信路の確立を自動的に行なう通信
路確立手段と、上記業務ブログラムからのサーバ資源の
操作要求に応じ、その要求された資源のオブジェクト識
別子により上記オブジェクト定義情報テーブルを検索し
所要資源のオブジェクト定義情報を得るオブジェクト定
義情報検索手段と、この手段によって検索された定義情
報に基づき、サーバへの操作要求の送出、その操作結果
の受信、上記業務ブログラムへの転送等のサービス処理
を行なうサービス実行手段と、上記通信路確立手段及び
サービス実行手段とサーバとの通信処理を行なう通信手
段とを備えたものである。
In the communication control device according to the second aspect of the present invention, the object definition information of the resource that the server has in advance is created by the user, the object identifier for each object definition information, the server such as the belonging server address, etc. A communication path having an object definition information table stored with an identifier, a server registration section for registering the server identifier in the object definition information table, and a communication path state section showing a communication path status with each server. A management table and a communication path establishing means for automatically setting up the communication path management table when the communication control device starts up and automatically establishing a communication path to the server registered in the management table, and the above-mentioned business program In response to an operation request for a server resource, the above object ID is used depending on the object identifier of the requested resource. Object definition information retrieving means for retrieving the object definition information of the required resource by retrieving the object definition information table, and sending an operation request to the server based on the definition information retrieved by this means, receiving the operation result, and the business blog described above. A service executing means for performing service processing such as transfer to a RAM, and a communication means for performing communication processing between the communication path establishing means and the service executing means and the server.

【0012】[0012]

【作用】この発明の第1の発明においては、伝送路を介
して接続されるサーバが有する全資源の定義情報が格納
されたオブジェクト定義情報テーブルを備え、業務ブロ
グラムからのサーバ資源の操作要求に応じ、このオブジ
ェクト定義情報テーブルを検策して得られる所要資源の
オブジェクト定義情報に基づき、サーバへの操作要求の
送出、その操作結果の受信、上記業務ブログラムへの転
送等のサービス処理を行なうようにしたので、各業務プ
ログラムにパラメータ設定のためのバッファ確保や解放
の処理、相手局からの応答受信処理を組込まなくても、
サーバ資源の操作要求のみで自動的にサーバ資源の制御
が行なわれる。
According to the first aspect of the present invention, an object definition information table storing definition information of all resources of a server connected via a transmission line is provided, and a server resource operation request from a business program is provided. According to the above, based on the object definition information of the required resource obtained by examining this object definition information table, service processing such as sending an operation request to the server, receiving the operation result, and transferring to the business program is performed. Since it has been done so, it is possible to include processing to secure and release buffers for parameter setting and response reception processing from the partner station in each business program,
The server resource is automatically controlled only by the operation request of the server resource.

【0013】この発明の第2の発明においては、オブジ
ェクト定義情報テーブル中の所属サーバアドレス等のサ
ーバ識別子及び各サーバとの通信路状態が格納された通
信路管理テーブルを備え、通信制御装置の立上り時に、
この通信路管理テーブルに登録されているサーバに対す
る通信路の確立を行なうようにしたので、各業務プログ
ラムに通信路確立処理を組込まなくても、自動的にサー
バとの通信路が確立される。
According to a second aspect of the present invention, there is provided a communication path management table in which a server identifier such as a belonging server address in the object definition information table and a communication path state with each server are stored. Sometimes
Since the communication path is established with respect to the server registered in this communication path management table, the communication path with the server is automatically established without incorporating the communication path establishment process in each business program.

【0014】[0014]

【実施例】以下、この発明の一実施例を図について説明
する。図1〜図5はこの発明の一実施例を示し、図1は
通信制御装置の全体構成図、図2はオブジェクト定義情
報の構成図、図3は通信路管理テーブルの構成図、図4
は通信制御装置における通信路確立及びサービス実行の
ためのフローチャート、図5は通信制御装置における業
務プログラムのフローチャートである。なお、図7はこ
の実施例にも適用される。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. 1 to 5 show an embodiment of the present invention, FIG. 1 is an overall configuration diagram of a communication control device, FIG. 2 is a configuration diagram of object definition information, FIG. 3 is a configuration diagram of a communication path management table, and FIG.
Is a flowchart for establishing a communication path and executing a service in the communication control device, and FIG. 5 is a flowchart of a business program in the communication control device. Note that FIG. 7 is also applied to this embodiment.

【0015】図1〜図3において、(1)は伝送路、(2)は
通信制御装置、(3)は通信プロトコルを実行する通信手
段、(4)(4)は業務プログラム、(31)はサーバ(5a)(5b)が
有する資源(6a)〜(6e)1個1個に対応したオブジェクト
定義情報、(32)はオブジェクト定義情報(31)毎に付けら
れた名前であるオブジェクト識別子、(33)はその資源の
所属するサーバを示すアドレスなどのサーバ識別子、(3
4)は変数やメモリ、動作プログラムなどの資源の型が登
録される型仕様部、(35)はサーバ内での資源にアクセス
される方法が登録されるアクセス仕様部、(36)はオブジ
ェクト定義情報(31)を利用者(37)によって予め作成する
オブジェクト定義情報作成手段、(38)はこの手段(36)に
よって作成されたオブジェクト定義情報(31)が、オブジ
ェクト識別子(32)とサーバ識別子(33)とをそれぞれ付し
て格納されるオブジェクト定義情報テーブルである。
1 to 3, (1) is a transmission line, (2) is a communication control device, (3) is communication means for executing a communication protocol, (4) and (4) are business programs, and (31) is Is object definition information corresponding to each resource (6a) to (6e) possessed by the servers (5a) (5b), (32) is an object identifier which is a name given to each object definition information (31), (33) is a server identifier such as an address indicating the server to which the resource belongs, and (3
4) is a type specification part in which the types of resources such as variables, memory, and operation programs are registered, (35) is an access specification part in which the method of accessing resources in the server is registered, and (36) is an object definition. Object definition information creating means for creating the information (31) in advance by the user (37), (38) the object definition information (31) created by this means (36) is the object identifier (32) and the server identifier ( 33) is an object definition information table stored by adding and.

【0016】(39)は、業務ブログラム(4)(4)からのサー
バ資源の操作要求に応じ、要求された資源のオブジェク
ト識別子(32)によりオブジェクト定義情報テーブル(38)
を検索し所要資源のオブジェクト定義情報(31)を得るオ
ブジェクト定義情報検索手段、(40)は、この手段(39)に
よって検索されたオブジェクト定義情報(31)に基づき、
サーバ(5a)(5b)への通信手段(3)を介しての操作要求の
送出、その操作結果の受信、業務ブログラム(4)(4)への
転送等のサービス処理を行なうサービス実行手段、(41)
は、オブジェクト定義情報テーブル(38)中の全サーバ識
別子(33)を登録するサーバ登録部(42)及び各サーバとの
通信路状態を示す通信路状態部(43)を有する通信路管理
テーブルで、通信路の状態には、「確立末」、「確立応
答待ち」、「確立完了」の3状態がある。(44)は、通信
制御装置(2)の立上り時に、この通信路管理テーブル(4
1)をセットアップして、これに登録されているサーバに
対する通信路の確立を通信手段(3)を介して自動的に行
なう通信路確立手段である。
(39) is an object definition information table (38) according to the object identifier (32) of the requested resource in response to a server resource operation request from the business programs (4) and (4).
Object definition information retrieving means for retrieving the required resource object definition information (31), (40), based on the object definition information (31) retrieved by this means (39),
Service execution means for performing service processing such as sending an operation request to the servers (5a) (5b) via the communication means (3), receiving the operation result, and transferring to the business program (4) (4) , (41)
Is a communication path management table having a server registration section (42) for registering all server identifiers (33) in the object definition information table (38) and a communication path status section (43) indicating the communication path status with each server. The states of the communication path include three states of "end of establishment", "waiting for establishment response", and "establishment completed". (44) indicates that the communication path management table (4
It is a communication path establishing means that sets up 1) and automatically establishes a communication path to the server registered in it via the communication means (3).

【0017】まず、図2に示すオブジェクト定義情報(3
1)の作成手順について説明する。クライアントとしての
通信制御装置(2)の伝送路(1)への接続時、或は新たなサ
ーバ(5)の伝送路(1)への接続時に、利用者であるオペレ
ータ(37)が、業務プログラム(4)(4)からの管理/制御の
対象となるサーバ資源の情報、即ち、型を示す型仕様、
サーバ内でアクセスされる方法を示すアクセス仕様、資
源の所属するサーバのアドレスなどを、この資源を一意
に表わすオブジェクト識別子(32)とともに入力して、各
サーバ資源毎にオブジェクト定義情報(31)を作成し(オ
ブジェクト定義情報作成手段(36))、オブジェクト定義
情報テーブル(38)に登録する。
First, the object definition information (3
The procedure for creating 1) is explained. When connecting to the transmission line (1) of the communication control device (2) as a client or connecting to the transmission line (1) of a new server (5), the operator (37) who is the user Information on server resources to be managed / controlled from programs (4) and (4), that is, a type specification indicating a type,
Enter the access specification that indicates the method of access in the server, the address of the server to which the resource belongs, etc. together with the object identifier (32) that uniquely represents this resource, and enter the object definition information (31) for each server resource. It is created (object definition information creating means (36)) and registered in the object definition information table (38).

【0018】次に、上記予め作成されたオブジェクト定
義情報(31)を使用して、サーバ(5a)(5b)との通信路を確
立する通信路確立手段(44)の動作を図4のフローチャー
トによって説明する。
Next, the operation of the communication path establishing means (44) for establishing a communication path with the servers (5a), (5b) using the above-mentioned object definition information (31) created in advance will be described with reference to the flowchart of FIG. Explained by.

【0019】通信制御装置(2)の立ち上がりと同時に、
ステップ(50)でオブジェクト定義情報テーブル(38)がセ
ットアップされ、この中の全てのオブジェクト定義情報
(31)のサーバ識別子(33)が通信路管理テーブル(41)のサ
ーバ登録部(42)に登録され、それの通信路状態部(43)は
全て「確立末」に設定される。次に、ステップ(51)で、通
信路管理テーブル(41)の通信路状態部(43)が参照され、
「確立末」が一つでもあればステップ(52)に進み、なけ
ればステップ(55)に進む。立上り時は全てが「確立末」
であるのでステップ(52)に進み「確立末」のサーバの一
つが選出され、ステップ(53)でこの選出されたサーバに
対して通信路確立要求が送信され、ステップ(54)でその
通信路状態部は「確立応答待ち」にされ、ステップ(55)に
進む。
At the same time when the communication control unit (2) starts up,
The object definition information table (38) is set up in step (50), and all the object definition information in this is set up.
The server identifier (33) of (31) is registered in the server registration unit (42) of the communication path management table (41), and all the communication path status units (43) thereof are set to “established”. Next, in step (51), the communication path status section (43) of the communication path management table (41) is referenced,
If there is even one "end of establishment", proceed to step (52), otherwise proceed to step (55). At start-up, everything is "established"
Therefore, the process proceeds to step (52), one of the "end-of-establishment" servers is selected, a communication channel establishment request is sent to this selected server in step (53), and the communication channel is established in step (54). The state part is set to "wait for establishment response", and the process proceeds to step (55).

【0020】ステップ(55)で、業務プログラム(4)から
のサービス要求の有無がチェックされ、サービス要求が
あればステップ(56)に進み、なければステップ(61)に進
む。今まだサービス要求がないものとし、ステップ(61)
で要求に対する応答があればサーバから通信手段(3)を
経由して受信され、なければそのままステップ(62)に進
み、ステップ(62)でこの応答の有無がチェックされ、あ
ればステップ(63)に進み、なければステップ(51)に戻
る。応答が受信されれば、ステップ(63)で応答の種別が
チェックされ、通信路確立要求に対する応答ならステッ
プ(64)に進み、サービス要求に対する応答ならステップ
(67)に進む。
In step (55), the presence or absence of a service request from the business program (4) is checked. If there is a service request, the process proceeds to step (56), and if not, the process proceeds to step (61). Assuming there are no service requests yet, step (61)
If there is a response to the request from the server, it is received from the server via the communication means (3), if not, the process proceeds to step (62) as it is, and the presence or absence of this response is checked in step (62), and if there is a step (63) If not, return to step (51). If a response is received, the type of response is checked in step (63) .If it is a response to the communication path establishment request, proceed to step (64), and if it is a response to the service request, step
Continue to (67).

【0021】通信路確立要求に対する応答なので、ステ
ップ(64)でその応答の結果がチェックされ、成功ならス
テップ(65)、失敗ならステップ(66)に進む。成功ならス
テップ(65)で、応答したサーバに対応する通信路管理テ
ーブル(41)の通信路状態部が「確立応答待ち」から「確
立完了」に書換えられ、失敗ならステップ(66)で「確立
末」に書換えられ、ステップ(51)に戻る。このシーケン
スが繰り返されることで、全てのサーバとの通信路が自
動的に確立される。全サーバとの通信路確立後、後述の
業務プログラム(4)からのサービス要求がある迄は、ス
テップ(51)→(55)→(61)→(62)→(51)のフローが繰返さ
れる。以上のステップ(50)〜(54)(61)〜(66)が通信路確
立手段(44)を構成する。
Since this is a response to the communication path establishment request, the result of the response is checked in step (64), and if it is successful, it proceeds to step (65), and if it fails, it proceeds to step (66). If successful, the communication path status part of the communication path management table (41) corresponding to the responding server is rewritten from "waiting for establishment response" to "establishment completed" in step (65). It is rewritten as "end" and the process returns to step (51). By repeating this sequence, communication paths with all servers are automatically established. After establishing communication paths with all servers, the flow of steps (51) → (55) → (61) → (62) → (51) is repeated until there is a service request from the business program (4) described later. . The above steps (50)-(54) (61)-(66) constitute the communication path establishing means (44).

【0022】次に、業務プログラム(4)から、サーバ(5
a)のメータ(7)に対応している資源(6a)に対して電圧計
の計測値読み出しのサービス要求があったものとし、そ
の時の動作を図4及び図5のフローチャートによって説
明する。
Next, from the business program (4), the server (5
It is assumed that there is a service request for reading the measured value of the voltmeter to the resource (6a) corresponding to the meter (7) of a), and the operation at that time will be described with reference to the flowcharts of FIGS. 4 and 5.

【0023】業務プログラム(4)が開始して、ステップ
(70)で業務処理が実行され、ステップ(71)でサーバの資
源に対するサービス要求の有無がチェックされる。サー
ビス要求があればステップ(72)に進み、なければステッ
プ(70)に戻る。サービス要求があればステップ(72)で、
サービス要求の対象である資源(6a)のオブジェクト識別
子「電圧計」と、サービス内容である「値読み出し」
が、図4のフローチャート中の定義情報検索手段(39)及
びサービス実行手段(40)に引き渡される。
When the business program (4) starts, step
Business processing is executed in (70), and it is checked in step (71) whether or not there is a service request for the resource of the server. If there is a service request, proceed to step (72), otherwise return to step (70). If there is a service request, in step (72),
The object identifier "voltmeter" of the resource (6a) that is the target of the service request, and "value read" that is the service content
Is delivered to the definition information search means (39) and the service execution means (40) in the flowchart of FIG.

【0024】オブジェクト識別子とサービス内容の引渡
しにより、図4のフローチャートの上記繰返しフロー中
のステップ(55)で、サービス要求有りと判断されてステ
ップ(56)に進み、ステップ(56)でオブジェクト識別子
「電圧計」とサービス内容「値読み出し」が受信され、
ステップ(57)で、「電圧計」と同じオブジェクト識別子
(32)を持つオブジェクト定義情報(31)が、オブジェクト
定義情報テーブル(38)から検索される。そして、ステッ
プ(58)でサーバ資源のパラメータを格納するための送信
バッファが空きエリアから確保され、ステップ(59)で、
この確保された送信バッファに、上記検索されたオブジ
ェクト定義情報(31)のサーバ資源パラメータであるサー
バ識別子(33)、型仕様部(34)中の資源の型仕様及びアク
セス仕様部(35)中の資源のアクセス仕様が設定される。
By passing the object identifier and the service content, it is judged that there is a service request at step (55) in the above-mentioned repetitive flow of the flow chart of FIG. 4, the process proceeds to step (56), and at step (56) the object identifier " Voltmeter "and service content" reading value "are received,
Same object identifier as "Voltmeter" in step (57)
The object definition information (31) having (32) is retrieved from the object definition information table (38). Then, in step (58), the transmission buffer for storing the server resource parameters is secured from the empty area, and in step (59),
In the secured transmission buffer, the server identifier (33) which is the server resource parameter of the retrieved object definition information (31), the type specification of the resource in the type specification part (34) and the access specification part (35) Access specifications of resources are set.

【0025】次に、ステップ(60)で、パラメータ設定さ
れた送信バッファの内容と業務プログラム(4)からのサ
ービス内容が通信手段(3)に渡され、通信手段(3)によっ
て伝送フレームに符号化されてサーバ(5a)へ送信され
る。ステップ(61)で、サービス要求に対するサーバ(5a)
からの応答が伝送フレームで通信手段(3)によって受信
され、この伝送フレームが展開され、空きエリアから確
保された応答用の受信バッファに格納され、ステップ(6
2)に進む。
Next, in step (60), the contents of the transmission buffer in which the parameters have been set and the service contents from the business program (4) are passed to the communication means (3), and the transmission frame is coded by the communication means (3). It is converted and transmitted to the server (5a). Server (5a) for service request in step (61)
The response from is received as a transmission frame by the communication means (3), the transmission frame is expanded, stored in the reception buffer for the response secured from the empty area, and the step (6
Go to 2).

【0026】ステップ(62)で応答の有無がチェックさ
れ、応答があればステップ(63)に進み、なければステッ
プ(51)に戻る。応答があるとステップ(63)で応答の種別
がチェックされ、サービス要求に対する応答であるので
ステップ(67)に進み、受信バッファから回答されたメー
タ値が抽出され、このメータ値が業務プログラム(4)に
返される。そして、ステップ(68)で、ステップ(58)で確
保された送信バッファと、通信手段(3)によって確保さ
れた受信バッファは空きエリアに解放され、ステップ(5
1)に戻る。以上のステップ(56)(57)がオブジェクト定義
情報検索手段(39)を、ステップ(56)(58)〜(63)(67)(68)
がサービス実行手段(40)を構成する。
In step (62), the presence or absence of a response is checked, and if there is a response, the process proceeds to step (63), and if not, the process returns to step (51). If there is a response, the type of response is checked in step (63), and since it is a response to the service request, the process proceeds to step (67), the meter value returned from the reception buffer is extracted, and this meter value is extracted from the business program (4 ). Then, in step (68), the transmission buffer secured in step (58) and the reception buffer secured by the communication means (3) are released to an empty area, and step (5)
Return to 1). The steps (56) (57) above are the object definition information retrieval means (39), and the steps (56) (58) to (63) (67) (68).
Constitutes the service execution means (40).

【0027】業務プログラム(4)では、サービス実行手
段(40)からサーバの回答を受取ると、ステップ(72)から
ステップ(70)に戻り、サーバからの回答であるメータ値
を基に業務処理が実行される。
In the business program (4), when the reply from the server is received from the service executing means (40), the process returns from step (72) to step (70), and the business process is performed based on the meter value which is the reply from the server. To be executed.

【0028】このようにして、業務プログラム(4)から
のサーバ資源に対するサービス要求は、サーバ資源に対
応するオブジェクト識別子とサービス内容の指定だけ
で、自動的に実行される。また、業務プログラムが複数
の場合でも、各々の業務プログラムの処理は実施例と同
様である。
In this way, the service request for the server resource from the business program (4) is automatically executed only by designating the object identifier and the service content corresponding to the server resource. Further, even when there are a plurality of business programs, the processing of each business program is the same as in the embodiment.

【0029】[0029]

【発明の効果】以上のように、この発明の第1の発明に
よれば、利用者によって予め作成され、サーバが有する
資源のオブジェクト定義情報が、各オブジェクト定義情
報毎にオブジェクト識別子を付して格納されるオブジェ
クト定義情報テーブルと、業務ブログラムからのサーバ
資源の操作要求に応じ、その要求された資源のオブジェ
クト識別子により上記オブジェクト定義情報テーブルを
検索し所要資源のオブジェクト定義情報を得るオブジェ
クト定義情報検索手段と、この手段によって検索された
定義情報に基づき、サーバへの操作要求の送出、その操
作結果の受信、上記業務ブログラムへの転送等のサービ
ス処理を行なうサービス実行手段と、このサービス実行
手段とサーバとの通信処理を行なう通信手段とを備えた
ので、対象資源のパラメータ設定、サービス要求に対す
る応答の受信など通信制御に関しての処理を、業務プロ
グラム中に組込む必要がなくなり、業務プログラムの作
成が簡単で容易になるとともに、業務プログラムのサイ
ズも小さくなり、業務プログラムが複数になった場合で
も通信制御装置のメモリが少なくて済むという効果があ
る。
As described above, according to the first aspect of the present invention, the object definition information of the resource which the user has created in advance and which the server has is provided with an object identifier for each object definition information. Object definition information table to be stored and object definition information for searching the object definition information table by the object identifier of the requested resource to obtain the object definition information of the required resource in response to the operation request of the server resource from the business program Retrieval means, service execution means for performing service processing such as sending an operation request to a server, receiving the operation result, and transferring to the business program based on the definition information retrieved by this means, and this service execution Since the means and the communication means for performing communication processing with the server are provided, There is no need to incorporate processing related to communication control such as parameter setting and reception of responses to service requests into business programs, making it easy and easy to create business programs and reducing the size of business programs In this case, the memory of the communication control device can be reduced.

【0030】さらに、サーバの変更や、サーバ資源の定
義情報の変更が発生しても、オブジェクト定義情報作成
手段によりオブジェクト定義情報の内容を更正するだけ
でよく、一々業務プログラムを変更する必要がないとい
う効果をも有している。
Further, even if the server is changed or the definition information of the server resource is changed, it is only necessary to correct the content of the object definition information by the object definition information creating means, and it is not necessary to change the business program one by one. It also has the effect.

【0031】また、この発明の第2の発明によれば、上
記オブジェクト定義情報テーブルと、各オブジェクト定
義情報毎のオブジェクト識別子と、所属サーバアドレス
等のサーバ識別子とをそれぞれ付して格納されるオブジ
ェクト定義情報テーブルと、このオブジェクト定義情報
テーブル中の上記サーバ識別子を登録するサーバ登録部
及び各サーバとの通信路状態を示す通信路状態部を有す
る通信路管理テーブルと、通信制御装置の立上り時に、
この通信路管理テーブルをセットアップして、これに登
録されているサーバに対する通信路の確立を自動的に行
なう通信路確立手段と、上記オブジェクト定義情報検索
手段と、上記サービス実行手段と、上記通信手段とを備
えたので、各サーバとの通信路の確立を業務プログラム
中に組込む必要がなくなり、業務プログラムの作成が簡
単で容易になるとともに、業務プログラムのサイズも小
さくなり、業務プログラムが複数になった場合でも通信
制御装置のメモリが少なくて済み、しかも、接続サーバ
が変更してもオブジェクト定義情報テーブル及び通信路
管理テーブルの内容を更正するだけでよく、一々業務プ
ログラムを変更する必要がないというという効果があ
る。
Further, according to the second aspect of the present invention, an object stored by attaching the above object definition information table, the object identifier for each object definition information, and the server identifier such as the belonging server address. A definition information table, a communication path management table having a server registration unit that registers the server identifier in the object definition information table and a communication path status unit that indicates a communication path status with each server, and when the communication control device starts up,
A communication path establishing means for setting up this communication path management table and automatically establishing a communication path for the server registered in the table, the object definition information searching means, the service executing means, and the communication means. Since it is not necessary to build a communication path with each server in the business program, it is easy and easy to create the business program, the size of the business program is reduced, and multiple business programs are created. Even if the communication control device has a small memory, even if the connection server changes, it is only necessary to correct the contents of the object definition information table and the communication path management table, and it is not necessary to change the business program one by one. There is an effect.

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

【図1】この発明の一実施例の全体構成図。FIG. 1 is an overall configuration diagram of an embodiment of the present invention.

【図2】この実施例におけるオブジェクト定義情報の構
成図。
FIG. 2 is a configuration diagram of object definition information in this embodiment.

【図3】この実施例における通信路管理テーブルの構成
図。
FIG. 3 is a configuration diagram of a communication path management table in this embodiment.

【図4】この実施例における通信路確立及びサービス実
行のためのフローチャート。
FIG. 4 is a flowchart for establishing a communication path and executing a service in this embodiment.

【図5】この実施例における業務プログラムのフローチ
ャート。
FIG. 5 is a flowchart of a business program in this embodiment.

【図6】従来の通信制御装置の構成図。FIG. 6 is a configuration diagram of a conventional communication control device.

【図7】従来及びこの発明の通信制御装置とサーバとに
よるネットワーク構成図。
FIG. 7 is a network configuration diagram of a communication control device and a server according to the related art and the present invention.

【図8】従来の通信制御装置の業務プログラムにおける
通信手順を示すフローチャート。
FIG. 8 is a flowchart showing a communication procedure in a business program of a conventional communication control device.

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

1 伝送路 2 通信制御装置 3 通信手段 4 業務プログラム 5a、5b サーバ 6a〜6e サーバ資源 11a、11b 通信路 31 オブジェクト定義情報 32 オブジェクト識別子 33 サーバ識別子 36 オブジェクト定義情報作成手段 38 オブジェクト定義情報テーブル 39 オブジェクト定義情報検索手段 40 サービス実行手段 41 通信路管理テーブル 42 サーバ登録部 43 通信路状態部 44 通信路確立手段 DESCRIPTION OF SYMBOLS 1 transmission path 2 communication control apparatus 3 communication means 4 business program 5a, 5b server 6a-6e server resource 11a, 11b communication path 31 object definition information 32 object identifier 33 server identifier 36 object definition information creating means 38 object definition information table 39 object Definition information retrieval means 40 Service execution means 41 Communication path management table 42 Server registration section 43 Communication path status section 44 Communication path establishment means

─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成4年12月8日[Submission date] December 8, 1992

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】図面[Document name to be corrected] Drawing

【補正対象項目名】図1[Name of item to be corrected] Figure 1

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図1】 [Figure 1]

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 伝送路を介して接続される相手局に対
し、その相手局(以下サーバという)が管理する変数、
メモリ、プログラム等の資源の、読出しや書込み、起
動、停止等の操作を要求する通信機能を備え、利用者に
よって作成される業務ブログラムによって上記サーバの
資源を制御する通信制御装置において、利用者によって
予め作成され、上記サーバが有する資源の所属サーバア
ドレス、型、サーバ内でのアクセス法等の定義情報(以
下オブジェクト定義情報という)が、各オブジェクト定
義情報毎にオブジェクト識別子を付して格納されるオブ
ジェクト定義情報テーブルと、上記業務ブログラムから
のサーバ資源の操作要求に応じ、その要求された資源の
オブジェクト識別子により上記オブジェクト定義情報テ
ーブルを検索し所要資源のオブジェクト定義情報を得る
オブジェクト定義情報検索手段と、この手段によって検
索された定義情報に基づき、上記サーバへの操作要求の
送出、その操作結果の受信、上記業務ブログラムへの転
送等のサービス処理を行なうサービス実行手段と、この
サービス実行手段と上記サーバとの通信処理を行なう通
信手段とを備えたことを特徴とする通信制御装置。
1. A variable managed by a partner station (hereinafter referred to as a server) for a partner station connected via a transmission line,
In a communication control device that has a communication function for requesting operations such as reading, writing, starting and stopping of resources such as memory and programs, and that controls the resources of the server according to a business program created by the user, Definition information (hereinafter referred to as object definition information), such as the server address of the resource belonging to the server, the type, and the access method within the server (hereinafter referred to as object definition information), is stored with each object definition information attached with an object identifier. Object definition information table and the object definition information retrieval that retrieves the object definition information of the required resource by searching the object definition information table by the object identifier of the requested resource in response to the operation request of the server resource from the business program Means and the definition information retrieved by this means Then, a service executing means for performing service processing such as sending an operation request to the server, receiving the operation result, transferring to the business program, and communication means for performing communication processing between the service executing means and the server. And a communication control device.
【請求項2】 伝送路を介して接続されるサーバに対
し、そのサーバが管理する変数、メモリ、プログラム等
の資源の、読出しや書込み、起動、停止等の操作を要求
する通信機能を備え、利用者によって作成される業務ブ
ログラムによって上記サーバの資源を制御する通信制御
装置において、利用者によって予め作成され、上記サー
バが有する資源のオブジェクト定義情報が、各オブジェ
クト定義情報毎のオブジェクト識別子と、所属サーバア
ドレス等のサーバ識別子とをそれぞれ付して格納される
オブジェクト定義情報テーブルと、このオブジェクト定
義情報テーブル中の上記サーバ識別子を登録するサーバ
登録部及び各サーバとの通信路状態を示す通信路状態部
を有する通信路管理テーブルと、上記通信制御装置の立
上り時に、この通信路管理テーブルをセットアップし
て、これに登録されているサーバに対する通信路の確立
を自動的に行なう通信路確立手段と、上記業務ブログラ
ムからのサーバ資源の操作要求に応じ、その要求された
資源のオブジェクト識別子により上記オブジェクト定義
情報テーブルを検索し所要資源のオブジェクト定義情報
を得るオブジェクト定義情報検索手段と、この手段によ
って検索された定義情報に基づき、上記サーバへの操作
要求の送出、その操作結果の受信、上記業務ブログラム
への転送等のサービス処理を行なうサービス実行手段
と、上記通信路確立手段及びサービス実行手段と上記サ
ーバとの通信処理を行なう通信手段とを備えたことを特
徴とする通信制御装置。
2. A communication function for requesting a server connected via a transmission line to perform operations such as reading, writing, starting and stopping of resources such as variables, memories and programs managed by the server, In a communication control device that controls the resources of the server according to a business program created by the user, the object definition information of the resource created by the user and possessed by the server is an object identifier for each object definition information, An object definition information table stored with a server identifier such as an affiliated server address, a server registration unit that registers the server identifier in the object definition information table, and a communication path indicating a communication path state with each server A communication path management table having a status section and this communication path when the communication control device starts up. A communication path establishing means for automatically setting up a communication path to a server registered in the management table and a request for operation of the server resource from the above-mentioned business program, Object definition information retrieval means for retrieving the object definition information of the required resource by retrieving the object definition information table by the object identifier, and sending an operation request to the server based on the definition information retrieved by this means, Communication comprising service executing means for performing service processing such as reception and transfer to the business program, and communication means for performing communication processing with the communication path establishing means and service executing means and the server. Control device.
JP4214707A 1992-07-21 1992-07-21 Communication controller Pending JPH0635826A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4214707A JPH0635826A (en) 1992-07-21 1992-07-21 Communication controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4214707A JPH0635826A (en) 1992-07-21 1992-07-21 Communication controller

Publications (1)

Publication Number Publication Date
JPH0635826A true JPH0635826A (en) 1994-02-10

Family

ID=16660283

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4214707A Pending JPH0635826A (en) 1992-07-21 1992-07-21 Communication controller

Country Status (1)

Country Link
JP (1) JPH0635826A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100855657B1 (en) * 2006-09-28 2008-09-08 부천산업진흥재단 System for estimating self-position of the mobile robot using monocular zoom-camara and method therefor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100855657B1 (en) * 2006-09-28 2008-09-08 부천산업진흥재단 System for estimating self-position of the mobile robot using monocular zoom-camara and method therefor

Similar Documents

Publication Publication Date Title
US4926375A (en) Multiple nodes broadcast communication method with receiver identification by bit position in transferred massage
TW200402961A (en) Data communication method
JP4548146B2 (en) State management apparatus, method and program
JPH0614642B2 (en) Terminal automatic registration method
CN114285695B (en) Communication method, device, apparatus, system and storage medium
JPH08314872A (en) Cooperative processing method among application programs
JPH0635826A (en) Communication controller
EP0651330A2 (en) Dynamic data exchange over a computer network
JP4196310B2 (en) Message control method for information management system
CN116719876B (en) Time sequence data processing method and terminal based on rule engine
JPH07111698B2 (en) Session management processing method
JPH0795202A (en) System for sharing definition information between system
JPH10124432A (en) Client server system
JP2002041293A (en) Program control method and program control system
JP3321359B2 (en) Processing control system
JP2001306534A (en) Apparatus and method for linking networks, and computer-readable recording medium recording program for computer to execute the same method
JP3405243B2 (en) Workflow change system and workflow change method
Fong et al. MAP application layer interface and application layer management structure: part I: management structure
JPH05298223A (en) Information processing system
JPH01258166A (en) Network job execution monitoring and controlling system
JP2020204802A (en) Data management system and method
JPH08255135A (en) Transmitted information designation unit and information transmission unit, information reception unit, and switching device for information processing system using them
JPH10247616A (en) Exposure device, semiconductor production system and manufacture of semiconductor
CN117376300A (en) Message all-channel sending method and device, electronic equipment and storage medium
JPH11120009A (en) Inter-process communication controller