JP2541502B2 - Control message transmission / reception method - Google Patents

Control message transmission / reception method

Info

Publication number
JP2541502B2
JP2541502B2 JP6103511A JP10351194A JP2541502B2 JP 2541502 B2 JP2541502 B2 JP 2541502B2 JP 6103511 A JP6103511 A JP 6103511A JP 10351194 A JP10351194 A JP 10351194A JP 2541502 B2 JP2541502 B2 JP 2541502B2
Authority
JP
Japan
Prior art keywords
message
time
control
controlled device
timer
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
JP6103511A
Other languages
Japanese (ja)
Other versions
JPH07311722A (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.)
NEC Corp
Original Assignee
Nippon Electric Co Ltd
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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP6103511A priority Critical patent/JP2541502B2/en
Publication of JPH07311722A publication Critical patent/JPH07311722A/en
Application granted granted Critical
Publication of JP2541502B2 publication Critical patent/JP2541502B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Computer And Data Communications (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、制御装置と被制御装置
とが通信網を介して接続されるシステムにおいて、各装
置間で制御電文を通信する場合の制御電文送受信方法に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control message transmitting / receiving method for communicating a control message between devices in a system in which a control device and a controlled device are connected via a communication network.

【0002】[0002]

【従来の技術】この種の制御電文送受信方法を適用した
システムは、図4に示すように制御装置1、被制御装置
2及び通信網3からなり、通信網3を介して制御装置1
と被制御装置2とが通信できるように構成されている。
2. Description of the Related Art A system to which this type of control message transmitting / receiving method is applied comprises a control device 1, a controlled device 2 and a communication network 3 as shown in FIG.
And the controlled device 2 can communicate with each other.

【0003】このシステムでは、図5のシーケンス図に
示すように、制御装置1が被制御装置2に対して制御電
文11を送信すると、被制御装置2はこれを受け取り、
この制御電文11に示される処理を実行する。そしてこ
の処理結果を応答電文13として制御装置1へ返送し、
制御装置1がこの返送された応答電文13を受け取るこ
とによって1つの制御が終了するものとなっている。
In this system, as shown in the sequence diagram of FIG. 5, when the control device 1 transmits a control message 11 to the controlled device 2, the controlled device 2 receives the control message 11.
The processing indicated by the control message 11 is executed. Then, the processing result is returned to the control device 1 as a response message 13,
One control ends when the control device 1 receives the returned response message 13.

【0004】このときの制御装置1の処理は、具体的に
図6に示すフローチャートに沿って実行される。即ち、
制御装置1は、まずステップ61で被制御装置2に対し
て制御電文11を送信する。次いでステップ62におい
て予め設けた応答タイマに、応答電文13の受信待機時
間に相当する時間を設定し、続いてステップ62でこの
応答タイマをスタートさせる。そして、応答タイマがタ
イムアウトするまでに応答電文13が受信でき、ステッ
プ63で「YES」となる場合は、正常に送受信処理が
行えたものとして、受信した応答電文13の解析等の処
理をステップ64で実行する。また、応答電文13を受
信するまでに応答タイマがタイムアウトしてステップ6
3で「NO」と判定された場合は、被制御装置2または
通信網3で異常が発生したとして、ステップ65で異常
処理を実行する。
The processing of the control device 1 at this time is specifically executed according to the flowchart shown in FIG. That is,
The control device 1 first transmits a control message 11 to the controlled device 2 in step 61. Next, at step 62, a time corresponding to the reception waiting time of the response message 13 is set in the response timer provided in advance, and subsequently at step 62, this response timer is started. If the response message 13 can be received before the response timer times out and “YES” is determined in step 63, it is determined that the transmission / reception process has been normally performed, and the process such as analysis of the received response message 13 is performed in step 64. Run with. In addition, the response timer times out before receiving the response message 13
When it is determined to be “NO” in 3, it is determined that an abnormality has occurred in the controlled device 2 or the communication network 3, and the abnormality processing is executed in step 65.

【0005】また特開平4−257954号公報には、
制御装置内に被制御装置の動作を監視する動作監視部を
有し、動作監視部により被制御装置の動作状態の監視結
果に基づいてタイマの値を求め、設定する技術が記載さ
れている。
Further, Japanese Patent Laid-Open No. 4-257954 discloses that
There is described a technique in which an operation monitoring unit that monitors the operation of the controlled device is provided in the control device, and the operation monitoring unit obtains and sets a timer value based on the result of monitoring the operating state of the controlled device.

【0006】[0006]

【発明が解決しようとする課題】従来の制御電文送受信
方法は、図4,図5に示したように応答電文13を受信
するまでの応答タイマに設定する時間は、被制御装置2
の制御内容で最も処理に時間がかかる制御内容に応じた
時間に設定されている。したがって、もしこのとき被制
御装置2または通信網3で異常が発生していた場合は、
制御装置1ではタイマに設定された時間を経過しないと
異常であることが認識できないことになり、この間無駄
に待機しなければならないという問題があった。
In the conventional control message transmitting / receiving method, as shown in FIGS. 4 and 5, the time set in the response timer until the response message 13 is received is controlled by the controlled device 2.
It takes a long time for the control contents to be set to a time corresponding to the control contents. Therefore, if an abnormality occurs in the controlled device 2 or the communication network 3 at this time,
The control device 1 cannot recognize the abnormality until the time set in the timer elapses, and there is a problem that the control device 1 must wait unnecessarily during this period.

【0007】また、応答タイマの値を制御内容毎にその
制御内容に応じた時間に設定する方法もあるが、この方
法では制御内容の種類毎に応答タイマの値を覚えておく
必要があり、制御装置の記憶領域を多く使う。また、制
御に時間のかかる処理のときは、応答タイマの値も長く
なり前記と同じ問題がある。
There is also a method of setting the value of the response timer for each control content to a time corresponding to the control content, but in this method, it is necessary to remember the value of the response timer for each type of control content, Uses a lot of storage space in the controller. Further, in the case of processing that takes time to control, the value of the response timer also becomes long, and there is the same problem as described above.

【0008】また特開平4−257954号公報に示さ
れている技術では、上述した問題に加え、制御装置が被
制御装置の監視を停止しているときに、被制御装置また
は通信網で異常が発生した場合は、制御装置において被
制御装置監視の再開を行うことができずタイマ再スター
トすることができないので、制御装置が被制御装置の応
答待機状態から抜け出すことができなくなるという問題
がある。
Further, in the technique disclosed in Japanese Patent Laid-Open No. 4-257954, in addition to the above-mentioned problem, when the control device stops monitoring the controlled device, an abnormality occurs in the controlled device or the communication network. When this occurs, the control device cannot restart the controlled device monitoring and cannot restart the timer, which causes a problem that the control device cannot get out of the response waiting state of the controlled device.

【0009】本発明の目的は、制御電文を送信した場合
に受信側装置や通信網に異常が発生していても無駄な待
機時間を無くし速やかにこれらの異常を認識できる制御
電文送受信方法を提供することにある。
An object of the present invention is to provide a control message transmitting / receiving method capable of promptly recognizing these abnormalities without wasteful waiting time even if abnormalities occur in a receiving side device or a communication network when transmitting control messages. To do.

【0010】[0010]

【課題を解決するための手段】このような課題を解決す
るために本発明は、被制御装置は制御装置から制御電文
を受信すると、処理時間がかかる制御かどうかを調べ、
処理時間がかかる制御であれば直ちに処理に必要な時間
を含んだタイマ再設定電文を制御装置に返送するステッ
プと、制御装置においては前記タイマ再設定電文に含ま
れる処理に必要な時間を基に待機時間を表す応答タイマ
の再設定を行うステップを有する方法である。
In order to solve such a problem, the present invention, when the controlled device receives a control message from the control device, checks whether or not the control requires processing time,
If the control takes a long processing time, the step of immediately returning a timer reset message containing the time required for the process to the control device, and the control device based on the time required for the process included in the timer reset message A method comprising the step of resetting a response timer representing a waiting time.

【0011】[0011]

【作用】制御装置から被制御装置に対して処理の指示内
容を示す制御電文が送信されると、被制御装置で指示さ
れた処理が処理時間がかかる処理であればタイマ再設定
電文が返送され、制御装置においてこのタイマ再設定電
文内の処理に必要な時間を基に応答タイマの再設定を行
うようにしたので、例えば通信網や被制御装置に異常が
発生していても無駄な待ち時間を必要とせずに速やかに
これらの異常を認識することができる。
When the control device transmits the control message indicating the content of the process instruction to the controlled device, the timer reset message is returned if the process instructed by the controlled device requires a processing time. Since the control device is configured to reset the response timer based on the time required for processing in this timer reset message, for example, even if an abnormality occurs in the communication network or controlled device, a useless waiting time These abnormalities can be recognized promptly without the need for.

【0012】[0012]

【実施例】以下、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0013】図1は、本発明にかかる制御電文送受信方
法の一実施例を示すシーケンス図である。この制御電文
送受信方法を適用したシステムは、図4に示したよう
に、制御装置1,被制御装置2及び通信網3から構成さ
れる。ここで、制御装置1は、図1のシーケンス図に示
すように、まず被制御装置2に対しこの被制御装置2の
処理内容を示す制御電文11を送信する。すると、被制
御装置2は、この制御電文11を受け取り、この制御電
文11に指示されている処理内容を直ちに判断して、そ
の処理に必要な時間を計算し、時間がかかる処理であれ
ばタイマ再設定電文12を制御装置1に返送する。その
後、被制御装置2は、制御電文11により指示された処
理を実行し、処理が終了すると、制御装置1に対して応
答電文13を送信する。
FIG. 1 is a sequence diagram showing an embodiment of a control message transmitting / receiving method according to the present invention. A system to which this control message transmitting / receiving method is applied is composed of a control device 1, a controlled device 2 and a communication network 3 as shown in FIG. Here, as shown in the sequence diagram of FIG. 1, the control device 1 first transmits a control telegram 11 indicating the processing content of the controlled device 2 to the controlled device 2. Then, the controlled device 2 receives the control telegram 11, immediately determines the processing content instructed by the control telegram 11, calculates the time required for the processing, and if the processing takes time, the timer is used. The reset message 12 is returned to the control device 1. After that, the controlled device 2 executes the process instructed by the control message 11, and when the process is completed, transmits the response message 13 to the control device 1.

【0014】図2は、制御装置1の動作を示すフローチ
ャートである。このフローチャートにしたがって制御装
置1の動作を詳細に説明する。
FIG. 2 is a flow chart showing the operation of the control device 1. The operation of the control device 1 will be described in detail according to this flowchart.

【0015】制御装置1は、被制御装置2に対しまずス
テップ21で制御電文11を送信する。そしてステップ
22において応答電文13の受信待ち時間のデフォルト
値を応答タイマに設定し、この応答タイマのカウントを
開始させる。
The control device 1 first transmits a control message 11 to the controlled device 2 in step 21. Then, in step 22, the default value of the reception waiting time of the response message 13 is set in the response timer, and the counting of this response timer is started.

【0016】ここで、応答タイマのタイムアウトまでに
被制御装置2から何らかの電文を受信すると(ステップ
23で「YES」)、その受信した電文の種類を調べ、
タイマ再設定電文12であれば(ステップ25で「タイ
マ再設定電文」)、そのタイマ再設定電文12に含まれ
る被制御装置2での処理に必要な時間に、前回被制御装
置2に電文を送信してからタイマ再設定電文を受信する
までの時間を加えた時間を応答タイマに再設定し、この
応答タイマのカウントを開始させる(ステップ24)。
If any message is received from the controlled device 2 before the response timer times out ("YES" in step 23), the type of the received message is checked,
If it is the timer reset message 12 (“timer reset message” in step 25), the message is previously sent to the controlled device 2 at the time required for the processing in the controlled device 2 included in the timer reset message 12. The response timer is reset to a time including the time from the transmission to the reception of the timer reset message, and the counting of the response timer is started (step 24).

【0017】また、被制御装置2から受信した電文が応
答電文13であれば(ステップ25で「応答電文」)、
制御電文11の送受信が正常に行えたものとして、ステ
ップ26で正常としての処理を実行する。
If the electronic message received from the controlled device 2 is the response electronic message 13 ("response electronic message" in step 25),
Assuming that the transmission / reception of the control message 11 has been normally performed, the normal processing is executed in step 26.

【0018】また、応答タイマのタイムアウトまでに被
制御装置2から何も電文を受信できなければ(ステップ
23で「NO」)、被制御装置2または通信網3におい
て異常が発生しているとしてステップ27に移行し異常
としての処理を行う。
If no message is received from the controlled device 2 before the response timer times out (“NO” in step 23), it is determined that an abnormality has occurred in the controlled device 2 or the communication network 3. Then, the process proceeds to 27 and the process as abnormal is performed.

【0019】図3は、以上のような制御装置1の動作に
応答する被制御装置2の動作を示すフローチャートであ
る。このフローチャートに従って被制御装置2の動作を
説明する。
FIG. 3 is a flow chart showing the operation of the controlled device 2 in response to the operation of the control device 1 as described above. The operation of the controlled device 2 will be described according to this flowchart.

【0020】被制御装置2は、まずステップ31で制御
装置1からの制御電文11を受け取る。すると制御電文
11で指示される制御が実行に時間がかかるものかどう
かを判断し、時間がかかるものであれば(ステップ32
で「YES」)、その処理の実行に必要な時間を含んだ
タイマ再設定電文12を制御装置1に送信後(ステップ
33)、指示された処理を行う(ステップ34)。
The controlled device 2 first receives the control message 11 from the control device 1 in step 31. Then, it is determined whether the control instructed by the control message 11 takes time to execute, and if it takes time (step 32).
Then, "YES"), the timer reset message 12 including the time required to execute the process is transmitted to the control device 1 (step 33), and then the instructed process is performed (step 34).

【0021】また、時間がかかる処理でなければ(ステ
ップ32で「NO」)、ステップ33のタイマ再設定電
文の送信は実行しない。
If the process is not time-consuming ("NO" in step 32), the timer reset message in step 33 is not transmitted.

【0022】その後、時間内に処理が終われば(ステッ
プ35で「YES」)、ステップ36で処理結果を応答
電文13として制御装置1に送信する。
After that, if the processing is completed within the time ("YES" in step 35), the processing result is transmitted to the control device 1 as a response telegram 13 in step 36.

【0023】また、時間内に処理が終わらなければ(ス
テップ35で「NO」)、タイマ再設定電文を再度送信
し(ステップ33)処理を続ける。
If the processing is not completed within the time ("NO" in step 35), the timer reset message is transmitted again (step 33) and the processing is continued.

【0024】[0024]

【発明の効果】以上説明したように本発明によれば、制
御装置から被制御装置に対して処理の指示内容を示す制
御電文が送信されると、被制御装置において時間がかか
る処理であればタイマ再設定電文が返送され、そこに含
まれる処理にかかる時間を基に計算した時間で応答タイ
マの再設定を行うようにしたので、応答タイマのデフォ
ルト値を短くすることができ、通信網3や被制御装置2
において異常が発生している場合でも制御装置1は無駄
な待機時間を要せず、待機状態のままになることもな
く、速やかに異常を認識することができる。
As described above, according to the present invention, when a control telegram indicating a processing instruction content is transmitted from the control device to the controlled device, if the controlled device takes time, Since the timer reset message is returned and the response timer is reset based on the time calculated based on the processing time included in the message, the default value of the response timer can be shortened, and the communication network 3 And controlled device 2
Even if an abnormality occurs in the control device 1, the control device 1 can promptly recognize the abnormality without needing a useless waiting time and without remaining in a standby state.

【0025】また、時間のかからない処理であればタイ
マ再設定電文は送信されることがなく、無駄な電文の送
受信も行われない。
Further, if the processing does not take time, the timer reset message is not transmitted, and unnecessary message transmission / reception is not performed.

【0026】さらに、被制御装置2が増設されたり変更
されたりして、処理の実行にかかる時間が変わっても、
制御装置1を新たに設定変更することなく、処理時間に
応じて応答タイマ値を設定することができる。
Further, even if the controlled device 2 is added or changed and the time taken to execute the process changes,
The response timer value can be set according to the processing time without newly changing the setting of the control device 1.

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

【図1】本発明に係る制御電文送受信方法を適用したシ
ステム内の各装置の動作を示すシーケンス図である。
FIG. 1 is a sequence diagram showing an operation of each device in a system to which a control message transmitting / receiving method according to the present invention is applied.

【図2】システム内の制御装置の動作を示すフローチャ
ートである。
FIG. 2 is a flowchart showing an operation of a control device in the system.

【図3】システム内の被制御装置の動作を示すフローチ
ャートである。
FIG. 3 is a flowchart showing an operation of a controlled device in the system.

【図4】制御電文送受信方法を適用したシステムのブロ
ック図である。
FIG. 4 is a block diagram of a system to which a control message transmitting / receiving method is applied.

【図5】従来の制御電文送受信方法を説明するシーケン
ス図である。
FIG. 5 is a sequence diagram illustrating a conventional control message transmitting / receiving method.

【図6】従来の制御電文送受信方法を説明するフローチ
ャートである。
FIG. 6 is a flowchart illustrating a conventional control message transmitting / receiving method.

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

1 制御装置 2 被制御装置 3 通信網 11 制御電文 12 タイマ再設定電文 13 応答電文 1 Control Device 2 Controlled Device 3 Communication Network 11 Control Message 12 Timer Reset Message 13 Response Message

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】制御装置及び被制御装置からなり、被制御
装置は制御装置から処理の指示内容を示す制御電文を受
信すると指示された処理を実行するとともに、処理の実
行が終了すると制御装置に対し結果を示す応答電文を送
信するシステムにおいて、 制御装置は被制御装置に対して制御電文を送信すると、
応答タイマーに応答電文の受信待ち時間のデフォルト値
を応答タイマーに設定しカウントを開始し、 被制御装置は、制御電文に指示された処理に必要な時間
を計算し、時間がかかる処理であれば、その処理に必要
な時間を含むタイマ再設定電文を制御装置に返送し、 制御装置は、タイマ再設定電文に含まれる時間を基に計
算した時間で応答タイマの再設定を行うことを特徴とす
る制御電文送受信方法。
1. A control device and a controlled device, wherein the controlled device executes the instructed process when receiving a control message indicating the instruction content of the process from the control device. In the system that sends a response message indicating the result, the control device sends a control message to the controlled device.
Set the default value of the response message reception waiting time to the response timer and start counting, and the controlled device calculates the time required for the process instructed by the control message, and if it is a time-consuming process, The timer reset message including the time required for the processing is returned to the control device, and the control device resets the response timer at the time calculated based on the time included in the timer reset message. Control message sending / receiving method.
【請求項2】タイマ再設定電文に含まれる時間を基に計
算した前記時間は、タイマ再設定電文に含まれる被制御
装置での処理に必要な時間に、被制御装置に制御電文を
送信してからタイマ再設定電文を受信するまでの時間を
加えた時間であることを特徴とする請求項1記載の制御
電文送受信方法。
2. The time calculated based on the time included in the timer reset message is transmitted to the controlled device at a time required for processing by the controlled device included in the timer reset message. The method for transmitting and receiving a control message according to claim 1, wherein the time is a time obtained by adding a time from when the message for resetting the timer is received until the message for resetting the timer is added.
【請求項3】被制御装置は、処理に必要な時間内に処理
が終わらなければ、タイマ再設定電文を再度送信するこ
とを特徴とする請求項2記載の制御電文送受信方法。
3. The control message transmitting / receiving method according to claim 2, wherein the controlled device retransmits the timer reset message if the process is not completed within the time required for the process.
JP6103511A 1994-05-18 1994-05-18 Control message transmission / reception method Expired - Lifetime JP2541502B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6103511A JP2541502B2 (en) 1994-05-18 1994-05-18 Control message transmission / reception method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6103511A JP2541502B2 (en) 1994-05-18 1994-05-18 Control message transmission / reception method

Publications (2)

Publication Number Publication Date
JPH07311722A JPH07311722A (en) 1995-11-28
JP2541502B2 true JP2541502B2 (en) 1996-10-09

Family

ID=14355995

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6103511A Expired - Lifetime JP2541502B2 (en) 1994-05-18 1994-05-18 Control message transmission / reception method

Country Status (1)

Country Link
JP (1) JP2541502B2 (en)

Also Published As

Publication number Publication date
JPH07311722A (en) 1995-11-28

Similar Documents

Publication Publication Date Title
JP2541502B2 (en) Control message transmission / reception method
JP2937871B2 (en) Polling monitoring method
JP3460502B2 (en) Serial transmission system
JP3212059B2 (en) Remote IPL malfunction prevention method and apparatus therefor
JP2705617B2 (en) Power off method
JPH0343653B2 (en)
JPH06334711A (en) Method for transmitting control telegraphic message
JP2891135B2 (en) Software failure detection device and software failure detection method
JPS5847350A (en) Data communication system
JP3042599B2 (en) Printing equipment
JP2712389B2 (en) Communication control processor
JP2834006B2 (en) Failure recovery processing method and method
JPH11167474A (en) Printer
JPH0715598A (en) Transmission control system for facsimile equipment
JPH06332866A (en) Inter-program communication system
JPH04129443A (en) Information exchange system
JPH0937049A (en) Facsimile equipment
JPH10133964A (en) Data transmission system
JP2000270003A (en) Communication terminal device and control method for terminal monitor packet
JPH05189342A (en) Communication processor operation monitoring system
JPH05257915A (en) Fault restoration system
KR20000065355A (en) Command processing method of the digital mobile communication system
JPH06334701A (en) System for controlling remote application of power supply
JPH053498A (en) Inactivity monitor method
JPS6038952A (en) Communication processing device