JP5407382B2 - Output module error output prevention method - Google Patents

Output module error output prevention method Download PDF

Info

Publication number
JP5407382B2
JP5407382B2 JP2009024387A JP2009024387A JP5407382B2 JP 5407382 B2 JP5407382 B2 JP 5407382B2 JP 2009024387 A JP2009024387 A JP 2009024387A JP 2009024387 A JP2009024387 A JP 2009024387A JP 5407382 B2 JP5407382 B2 JP 5407382B2
Authority
JP
Japan
Prior art keywords
output
module
host
abnormality
output module
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.)
Active
Application number
JP2009024387A
Other languages
Japanese (ja)
Other versions
JP2010183308A (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.)
Meidensha Corp
Original Assignee
Meidensha 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 Meidensha Corp filed Critical Meidensha Corp
Priority to JP2009024387A priority Critical patent/JP5407382B2/en
Publication of JP2010183308A publication Critical patent/JP2010183308A/en
Application granted granted Critical
Publication of JP5407382B2 publication Critical patent/JP5407382B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Description

本発明は、リング形状のバスで接続した1つのホストモジュールと複数の出力モジュール間のデータ通信をトークンフレームの巡回を基に行なう通信システムに係り、特にホストモジュールの異常・不在における出力モジュールの誤出力処理を防止する出力モジュールの誤出力防止方式に関する。   The present invention relates to a communication system that performs data communication between a host module and a plurality of output modules connected by a ring-shaped bus based on the circulation of token frames, and in particular, an error of an output module due to abnormality or absence of a host module. The present invention relates to an erroneous output prevention method for an output module that prevents output processing.

この種の通信システムは、プラントの監視制御システムやオートメーション工場の工程集中管理システムなど、PLCなどで構成する複数の端末装置をLAN接続した多種多様の制御システムで採用されている。   This type of communication system is used in a wide variety of control systems in which a plurality of terminal devices composed of PLCs and the like are LAN-connected, such as a plant monitoring control system and an automation factory process centralized management system.

この種の制御システムのうち、複数の端末装置を制御機器に対する制御入出力を得る入出力モジュールとし、各入出力モジュールとの間で監視データを収集および制御データを出力する集中管理部をマスタ局(ホストモジュール)とするシステム構成のものがある(例えば、特許文献1参照)。   Among this type of control system, a plurality of terminal devices are input / output modules that obtain control input / output to / from control equipment, and a centralized management unit that collects monitoring data and outputs control data with each input / output module is the master station. There is a system configuration (host module) (see, for example, Patent Document 1).

この通信システムにおいて、マスタ局の異常・不在における出力モジュールの誤出力防止の手法として、特許文献1では、出力モジュールの異常検出でその出力を停止する。このときの異常検出には、データ伝送が一定期間無くなった場合、伝送エラーが発生した場合、出力モジュール自体が故障した場合に異常検出し、モジュール出力をクリアまたはホールドする。   In this communication system, as a technique for preventing erroneous output of an output module in the case of abnormality / absence of a master station, in Patent Document 1, output is stopped upon detection of an abnormality of the output module. In the abnormality detection at this time, when data transmission is not performed for a certain period, when a transmission error occurs, or when the output module itself fails, an abnormality is detected, and the module output is cleared or held.

一方、端末装置(ステーション)間の通信方式としては、伝送路上にトークンを巡回させ、ノードの送信権をトークンによって遷移させるトークンパッシング方式がある(例えば特許文献2参照)。   On the other hand, as a communication method between terminal devices (stations), there is a token passing method in which a token is circulated on a transmission path and a transmission right of a node is changed by a token (for example, refer to Patent Document 2).

このトークンパッシング方式による通信システムにおいて、端末装置に異常が発生した場合、特許文献2では、トークンの受信でトークンの送信先に異常が発生したことが判明したとき、当該異常ステーションをパスして次の健全ステーションにトークンの送信を行う。   In the communication system using this token passing method, when an abnormality occurs in a terminal device, in Patent Document 2, when it is determined that an abnormality has occurred in a token transmission destination upon receipt of a token, the abnormality station is passed and the next is passed. Send tokens to healthy stations.

特開2000−259201号公報JP 2000-259201 A 特開2004−088310号公報JP 2004-088310 A

特許文献1の誤出力防止手法は、出力モジュールは、通信システム中に存在する出力制御を司るマスタ局が異常または不在になった時、伝送が停止し、停止時間が所定の検出時間を過ぎると出力停止する。したがって、異常発生から異常検出時間経過後に出力停止となるため、異常発生で即出力停止ができず、異常信号が出力されてしまうおそれがある。   The erroneous output prevention method disclosed in Patent Document 1 is such that when the master module that controls output control in the communication system becomes abnormal or absent, the output module stops transmission and the stop time exceeds a predetermined detection time. Output stops. Therefore, the output is stopped after the abnormality detection time elapses from the occurrence of the abnormality, so that the output cannot be stopped immediately upon occurrence of the abnormality, and an abnormal signal may be output.

特許文献2は、トークンの受信でトークンの送信先に異常が発生したことが判明したとき、当該異常ステーションをパスして次の健全ステーションにトークンの送信を行うが、ステーション情報が異常/正常しかなく、ステーションの属性情報がないため、詳細な出力制御が困難である。   In Patent Document 2, when it is determined that an abnormality has occurred in the token transmission destination upon receipt of the token, the abnormal station is passed and the token is transmitted to the next healthy station. In addition, since there is no station attribute information, detailed output control is difficult.

本発明の目的は、トークン巡回方式の通信システムにおいて、ホストモジュールの異常または不在の発生時に出力モジュールから誤って情報が出力されるのを迅速に停止でき、さらにシステムの立ち上げ時や異常からの復帰時に各出力モジュールが誤出力するのを防止できる出力モジュールの誤出力防止方式を提供することにある。   The object of the present invention is to quickly stop the erroneous output of information from the output module when an abnormality or absence of the host module occurs in the token circulating communication system. An object of the present invention is to provide an erroneous output prevention method for an output module that can prevent erroneous output of each output module at the time of return.

本発明は、前記の課題を解決するため、トークンフレームのデータフィールドに書き込んだ各モジュールのスロット状態情報に、ホストの存在またはモジュールの異常の情報を書き込みできるようにしておき、この情報から各出力モジュールがホストの異常または不在を検出したときにそれぞれ自出力モジュールからの外部出力を停止するようにし、さらに各出力モジュールには通信システムの立ち上げ時や異常からの復帰時には自出力モジュールの外部出力を停止させておき、この停止状態を正常に立ち上げられたホストモジュールが解除するようにしたもので、以下の方式を特徴とする。   In order to solve the above-mentioned problem, the present invention enables the information on the presence of the host or the abnormality of the module to be written in the slot status information of each module written in the data field of the token frame, and outputs each information from this information. Each module stops external output from its own output module when it detects a host error or absence, and each output module has its own output module output when the communication system starts up or recovers from an error. Is stopped, and the stopped state is released by the host module that has been normally started up, and is characterized by the following method.

(1)リング形状のバスで接続した1つのホストモジュールと複数の出力モジュール間のデータ通信をトークンフレームの巡回を基に行なう通信システムにおいて、
トークンフレームのデータフィールドにホストモジュールおよび各出力モジュールのスロット状態情報を格納し、
各出力モジュールは、前記スロット状態情報からホストモジュールの異常または不在を検出したときにそれぞれ自出力モジュールからの外部出力を停止する手段を備えたことを特徴とする。
(1) In a communication system that performs data communication between one host module and a plurality of output modules connected by a ring-shaped bus based on circulation of token frames,
Store the slot status information of the host module and each output module in the data field of the token frame,
Each output module is provided with means for stopping external output from its own output module when an abnormality or absence of the host module is detected from the slot state information.

(2)各出力モジュールは、通信システムの立ち上げ時や異常からの復帰時には出力モジュールの外部出力を停止させておく手段を備え、
前記ホストモジュールは、正常に立ち上げられたときや復帰時に、前記外部出力の停止を解除する信号を書き込んだデータフレームを各出力モジュールに送信する手段を備えたことを特徴とする。
(2) Each output module includes means for stopping the external output of the output module at the time of starting up the communication system or returning from an abnormality.
The host module includes means for transmitting to each output module a data frame in which a signal for canceling the stop of the external output is written when the host module is normally started up or returned.

以上のとおり、本発明によれば、トークンフレームのデータフィールドに書き込んだ各モジュールのスロット状態情報に、ホストの存在またはモジュールの異常の情報を書き込みできるようにしておき、この情報から各出力 ホストの異常または不在を検出したときにそれぞれ自出力モジュールからの外部出力を停止するようにしたため、ホストモジュールの異常または不在の発生時に出力モジュールから誤って情報が出力されるのを迅速に停止できる。   As described above, according to the present invention, information on the presence of a host or module abnormality can be written in the slot status information of each module written in the data field of the token frame. Since the external output from the own output module is stopped when the abnormality or absence is detected, it is possible to quickly stop erroneous output of information from the output module when the abnormality or absence of the host module occurs.

さらに、各出力モジュールには通信システムの立ち上げ時や異常からの復帰時には自出力モジュールの外部出力を停止させておき、この停止状態を正常に立ち上げられたホストモジュールが解除するようにしたため、出力許可の制御を行うことができる。   In addition, each output module has stopped the external output of its own output module when starting up the communication system or returning from an abnormality, so that the host module that was started up normally can cancel this stop state. Output permission can be controlled.

本発明の実施形態を示す通信システムの構成図。The block diagram of the communication system which shows embodiment of this invention. トークンフレームの構成図。The block diagram of a token frame. 各モジュールのトークンフレームの入出力処理部の構成図。The block diagram of the input / output processing part of the token frame of each module. スロット状態情報の例。An example of slot state information.

図1は、本発明の実施形態を示す通信システムの構成図である。各モジュール1〜6は、スロット番号1〜6が割り当てられて、リング型の伝送路でネットワーク接続され、モジュール1から伝送路にデータフレームまたはトークンフレームを載せ、これらのフレームは上流側のモジュール2から下流側のモジュール3〜6に降順で巡回させる。   FIG. 1 is a configuration diagram of a communication system showing an embodiment of the present invention. Each of the modules 1 to 6 is assigned slot numbers 1 to 6 and is connected to the network via a ring-type transmission path. A data frame or a token frame is loaded from the module 1 onto the transmission path. To the downstream modules 3 to 6 in descending order.

このうちトークンフレームの構成は、図2に示すようになり、フレームの前後に同期用とするフラグを設け、当該フレームがデータフレームかトークンフレームかの種別を設定するコマンド種別フィールドと、各モジュールが自スロット状態情報を降順で書き込むデータフィールドと、スロット状態情報の正当性をチェックするチェックコードフィールドで構成する。   Among these, the configuration of the token frame is as shown in FIG. 2. A flag for synchronization is provided before and after the frame, a command type field for setting the type of whether the frame is a data frame or a token frame, and each module It consists of a data field for writing its own slot status information in descending order and a check code field for checking the validity of the slot status information.

図3は各出力モジュール(ノード)のトークンフレームの入出力処理部の構成を示す。スロット情報レジスタRは、上流ノードからトークンフレームを受信したときに、トークンフレームのデータフィールドに書き込まれた全スロットの情報を順次格納する。   FIG. 3 shows the configuration of the input / output processing unit for the token frame of each output module (node). The slot information register R sequentially stores information on all slots written in the data field of the token frame when the token frame is received from the upstream node.

マルチプレクサMPXは、スロット情報レジスタRをトークンフレームに順次書き込んで下流ノードに巡回させ、自スロット番号位置には自スロット状態情報に切り換えて書き込む。この情報の切り換えは、送信スロットカウンタCにより、トークンフレームのデータフィールドに書き込まれたスロット状態情報数のカウント動作によって、データフィールドに書き込まれたスロット状態情報の位置を特定し、マルチプレクサMPXが自スロット状態情報をトークンフレームに書き込むときの切り換えを行う。   The multiplexer MPX sequentially writes the slot information register R in the token frame and cycles to the downstream node, and switches to and writes the slot information in the slot number position. This information is switched by specifying the position of the slot state information written in the data field by the count operation of the number of slot state information written in the data field of the token frame by the transmission slot counter C, and the multiplexer MPX has its own slot. Performs switching when writing status information to a token frame.

ここで、各スロット状態情報は、図4に例を示すように、フラグ「HOST」には当該モジュールがホストモジュールの場合は「1」をセットし、他の出力モジュールの場合は「0」をセットする。フラグ「OENB」は出力モジュールが更新し、初期値「0」でセットし、ホストモジュールからの出力イネーブルデータフレームを受信して「1」にセットされる。また、ホストモジュールの場合はフラグ「OENB」は「0」で固定である。データフィールド「DATA」には自スロットに係わる任意の情報を書き込む。最後のフラグ「ERR」には自モジュールが異常時に「1」をセットし、正常時に「0」をセットする。   Here, as shown in FIG. 4, each slot state information is set to “1” if the module is a host module and “0” if the module is another output module. set. The flag “OENB” is updated by the output module, and is set with an initial value “0”. The output enable data frame from the host module is received and set to “1”. In the case of a host module, the flag “OENB” is fixed at “0”. In the data field “DATA”, arbitrary information related to the own slot is written. The last flag “ERR” is set to “1” when the own module is abnormal, and is set to “0” when normal.

上記のスロット状態情報がレジスタRに格納されたとき、図3におけるホスト異常判定部JEは、全スロット状態情報の少なくとも1つのスロット状態情報のフラグ「HOST」とフラグ「ERR」からホスト異常の有無を検出する。同様に、ホスト不在判定部JUは、全スロット状態情報の少なくとも1つのスロット状態情報のフラグ「HOST」からホスト不在の有無を検出する。出力停止モード選択部MSは、出力停止時のモードを選択する。クリアモードとホールドモードのどちらかが選択される。出力レジスタROは、必要に応じて外部出力情報が格納され、出力停止モード選択部MSが出力許可されていることを条件(論理「1」)とし、ホスト異常判定部JEがホスト異常を判定したとき、またはホスト不在判定部JUがホスト不在を判定したときに外部出力情報をクリアまたはホールドする。   When the above slot state information is stored in the register R, the host abnormality determination unit JE in FIG. 3 determines whether there is a host abnormality from the flag “HOST” and the flag “ERR” of at least one slot state information of all the slot state information. Is detected. Similarly, the host absence determination unit JU detects the presence or absence of a host from the flag “HOST” of at least one slot state information of all slot state information. The output stop mode selection unit MS selects a mode at the time of output stop. Either clear mode or hold mode is selected. The output register RO stores external output information as necessary, and the condition that the output stop mode selection unit MS is permitted to output (logic “1”), and the host abnormality determination unit JE determines a host abnormality. When the host absence determination unit JU determines host absence, the external output information is cleared or held.

したがって、各出力モジュールは、トークンフレームの巡回処理に際し、収集された全スロット状態情報の少なくとも1つから、判定部JEまたは判定部JUによってホストモジュールの異常または不在を検出し、これを検出したときに直ちに出力レジスタROをクリアまたはホールドし、その外部出力を停止させることができる。   Accordingly, when each output module detects the abnormality or absence of the host module by the determination unit JE or the determination unit JU from at least one of the collected all slot state information during the cyclic processing of the token frame, Immediately, the output register RO can be cleared or held, and its external output can be stopped.

また、システムの立ち上げ時や出力モジュールの立ち上がり時は、スロット情報の「OENB」が「0」で初期設定され、ホストモジュールからの出力イネーブルデータフレームを受信した時に「1」をセットする。これにより、出力モジュールの出力許可/禁止状態を認識できるため、確実な出力制御が可能となる。   When the system is started up or when the output module is started up, the slot information “OENB” is initialized to “0”, and “1” is set when an output enable data frame is received from the host module. Thereby, since the output permission / prohibition state of the output module can be recognized, reliable output control is possible.

なお、図示していないが、出力モジュールの使い方で、ホスト異常とホスト不在のどちらか一方のみで出力停止したい場合は、ホスト異常判定部JEとホスト不在判定部JUによる出力停止機能の一方を省くことができる。   Although not shown in the figure, when the output module is used and it is desired to stop the output only by either the host abnormality or the absence of the host, one of the output stop functions by the host abnormality determination unit JE and the host absence determination unit JU is omitted. be able to.

1〜6 モジュール
R スロット情報レジスタ
MPX マルチプレクサ
C 送信スロットカウンタ
JE ホスト異常判定部
JU ホスト不在判定部
MS 出力停止モード選択部
RO 出力レジスタ
1-6 Module R Slot information register MPX Multiplexer C Transmission slot counter JE Host abnormality determination unit JU Host absence determination unit MS Output stop mode selection unit RO output register

Claims (2)

リング形状のバスで接続した1つのホストモジュールと複数の出力モジュール間のデータ通信をトークンフレームの巡回を基に行なう通信システムにおいて、
トークンフレームのデータフィールドにホストモジュールおよび各出力モジュールのスロット状態情報を格納し、
各出力モジュールは、前記スロット状態情報からホストモジュールの異常または不在を検出したときにそれぞれ自出力モジュールからの外部出力を停止する手段を備えたことを特徴とする出力モジュールの誤出力防止方式。
In a communication system that performs data communication between one host module and a plurality of output modules connected by a ring-shaped bus based on circulation of token frames,
Store the slot status information of the host module and each output module in the data field of the token frame,
Each output module includes means for stopping external output from its own output module when it detects an abnormality or absence of the host module from the slot state information.
各出力モジュールは、通信システムの立ち上げ時や異常からの復帰時には出力モジュールの外部出力を停止させておく手段を備え、
前記ホストモジュールは、正常に立ち上げられたときや復帰時に、前記外部出力の停止を解除する信号を書き込んだデータフレームを各出力モジュールに送信する手段を備えたことを特徴とする請求項1に記載の出力モジュールの誤出力防止方式。
Each output module has means to stop the external output of the output module when starting up the communication system or returning from an abnormality,
2. The host module according to claim 1, further comprising means for transmitting, to each output module, a data frame in which a signal for canceling the stop of the external output is written when the host module is normally started up or returned. The erroneous output prevention method of the described output module
JP2009024387A 2009-02-05 2009-02-05 Output module error output prevention method Active JP5407382B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009024387A JP5407382B2 (en) 2009-02-05 2009-02-05 Output module error output prevention method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009024387A JP5407382B2 (en) 2009-02-05 2009-02-05 Output module error output prevention method

Publications (2)

Publication Number Publication Date
JP2010183308A JP2010183308A (en) 2010-08-19
JP5407382B2 true JP5407382B2 (en) 2014-02-05

Family

ID=42764501

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009024387A Active JP5407382B2 (en) 2009-02-05 2009-02-05 Output module error output prevention method

Country Status (1)

Country Link
JP (1) JP5407382B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2566110B1 (en) * 2011-08-30 2014-10-01 Siemens Aktiengesellschaft Method for transmitting telegrams in an automation system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05153146A (en) * 1991-11-27 1993-06-18 Hitachi Cable Ltd Terminal interface control system for lan
JP3392643B2 (en) * 1996-07-08 2003-03-31 富士電機株式会社 Signal transmission method in ring network
JP2000259201A (en) * 1999-03-05 2000-09-22 Toshiba Corp Analog output device and control system using the same

Also Published As

Publication number Publication date
JP2010183308A (en) 2010-08-19

Similar Documents

Publication Publication Date Title
US11016463B2 (en) Control and data-transfer system, gateway module, I/O module, and method for process control
JP5198568B2 (en) System and method for detecting signal failure in a ring bus system
US20170242693A1 (en) Safety monitoring device, network system and safety monitoring method
CN107390511A (en) For the method for the automated system for running redundancy
US20150082096A1 (en) Method and apparatus for fault detection n a controller area network
CN104516306B (en) The automated system of redundancy
US20070124115A1 (en) Safety-oriented control system
US9367375B2 (en) Direct connect algorithm
JP5987069B2 (en) Numerical control system with internal register self-reset function by serial communication signal monitoring
CN107957692B (en) Controller redundancy method, device and system
US20160284429A1 (en) Safety system for a nuclear power plant and method for operating the same
JP5365234B2 (en) Token error detection / recovery method between terminal devices
EP3979527A1 (en) System and method of network synchronized time in safety applications
US7808917B2 (en) Method and system for transmitting telegrams
US9952919B2 (en) Semantic deduplication
US9053245B2 (en) Partial redundancy for I/O modules or channels in distributed control systems
JP5407382B2 (en) Output module error output prevention method
JP2014191724A (en) Input/output control device
JP2011185875A (en) Control device
JP2016201687A (en) Control system
CN111373700B (en) Communication system, controlled device, and control method of communication system
JP5402035B2 (en) Network configuration change detection / recovery method
JP2011023983A (en) Network node
US11669391B2 (en) Data processing procedure for safety instrumentation and control (IandC) systems, IandC system platform, and design procedure for IandC system computing facilities
JP2022110294A (en) Communication device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20111209

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130522

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130528

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20130723

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131021

R150 Certificate of patent or registration of utility model

Ref document number: 5407382

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150