JP2009015401A - Distributed control system - Google Patents

Distributed control system Download PDF

Info

Publication number
JP2009015401A
JP2009015401A JP2007173536A JP2007173536A JP2009015401A JP 2009015401 A JP2009015401 A JP 2009015401A JP 2007173536 A JP2007173536 A JP 2007173536A JP 2007173536 A JP2007173536 A JP 2007173536A JP 2009015401 A JP2009015401 A JP 2009015401A
Authority
JP
Japan
Prior art keywords
restore
setting information
control device
restore request
station
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2007173536A
Other languages
Japanese (ja)
Other versions
JP4888718B2 (en
Inventor
Toshiyuki Nakamura
敏之 中村
Chiaki Koshiro
千明 小城
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.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
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 Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP2007173536A priority Critical patent/JP4888718B2/en
Publication of JP2009015401A publication Critical patent/JP2009015401A/en
Application granted granted Critical
Publication of JP4888718B2 publication Critical patent/JP4888718B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To execute restoration of setting information in each of a plurality of PLCs connected to each other through a field network by easy operation without using a tool device, without imposing an excessive software load on a specific controlling device. <P>SOLUTION: By sequentially reading frame configuration data stored in the PLC as a sending station in each receiving station in response to reception of a prescribed starting instruction, creating a restoration request frame, and sending it onto the field network, contents of a setting information storage means of each of the PLCs as the receiving station can be restored by remote control without operating the tool device by only providing the prescribed starting instruction to the PLC as the sending station. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

この発明は、プログラマブル・コントローラ(以下、「PLC」という)やPLCのリモートI/Oターミナル等のような制御用機器を複数台分散配置すると共に、それらをフィールドネットワークを介して結んで構成される分散型制御システムに関する。   The present invention is configured by distributing a plurality of control devices such as a programmable controller (hereinafter referred to as “PLC”) and a PLC remote I / O terminal and connecting them via a field network. The present invention relates to a distributed control system.

PLCやPLCのリモートI/Oターミナル等のような制御用機器を複数台分散配置すると共に、それらをフィールドネットワークを介して結んで構成される分散型制御システムは、従来より知られている。   2. Description of the Related Art A distributed control system configured by distributing a plurality of control devices such as PLCs and PLC remote I / O terminals and connecting them via a field network is conventionally known.

この種の分散型制御システムにおいて、複数台の制御用機器のそれぞれには、その機器の動作仕様を定義するための設定情報がストアされる設定情報記憶手段と、この設定情報記憶手段にストアされた設定情報の内容を、フィールドネットワークを介して受信されるリストア要求フレーム(リストア要求コマンドとそれを修飾する各制御用機器固有のデータとを含む)に応答して自動的にリストアするリストア動作自動実行手段とが含まれている。   In this type of distributed control system, each of a plurality of control devices is stored in setting information storage means for storing setting information for defining the operation specifications of the devices, and in this setting information storage means. Restore operation automatically restores the contents of the set information in response to a restore request frame (including the restore request command and data specific to each control device that modifies it) received via the field network Execution means.

ここで、「設定情報」としては、制御用機器がPLC(一般制御用の汎用PLCと安全制御用の安全PLCの双方を含む)の場合には、ユーザプログラムや各種のシステム設定等を挙げることができ、制御用機器がリモートI/Oターミナルの場合には、I/O設定等を挙げることができる。   Here, “setting information” includes a user program and various system settings when the control device is a PLC (including both a general-purpose PLC for general control and a safety PLC for safety control). If the control device is a remote I / O terminal, I / O settings can be listed.

そして、フィールドネットワークに直接又はPLCを介して間接に接続されたツール装置(一般には、パソコンに所定のツールソフトをインストールすることで構成される)を操作して、フィールドネットワーク上にリストア要求フレームを送り出すことにより、そのリストア要求フレームの送信先となる制御用機器の設定情報記憶手段の内容を遠隔操作でリストア可能とされている。   Then, by operating a tool device (generally configured by installing predetermined tool software on a personal computer) connected directly to the field network or indirectly via the PLC, a restore request frame is sent on the field network. By sending it out, the contents of the setting information storage means of the control device that is the transmission destination of the restore request frame can be restored remotely.

ところで、この種の分散型制御システムにおいて、ツール装置を使用して、ネットワーク上の任意の制御用機器における設定情報をリストアするためのには、ツール装置を構成するパソコンの立ち上げ、ツールソフトの起動、リストア対象ファイルの選択、選択されたファイルのダウンロードと言った一連の操作を行わねばならない。また、この操作の手順は、リストア対象となる各制御用機器毎に異なるのが通例である。したがって、ツール装置の操作に慣れていない者にとって、フィールドネットワーク上に存在する複数台の制御用機器のそれぞれにおける設定情報のリストアを行うことは必ずしも容易なことではない。   By the way, in this type of distributed control system, in order to restore the setting information in any control device on the network using the tool device, startup of a personal computer constituting the tool device, tool software A series of operations such as starting, selecting a file to be restored, and downloading the selected file must be performed. Further, the procedure of this operation is usually different for each control device to be restored. Therefore, it is not always easy for those who are not familiar with the operation of the tool device to restore the setting information in each of a plurality of control devices existing on the field network.

一方、複数のユニットで構成される主PLCと、その主PLCにバス接続される1又は2以上の増設用PLCと、主PLC又は増設用PLCに接続される周辺コンポーネントとを含むPLCシステムにおいて、主PLCに設けた記憶媒体に、各PLC及び周辺コンポーネントに関するバックアップ情報を一括して格納しておき、所定のスイッチ操作により起動をかけることで、ツール装置を使用することなく、主PLC、増設用PLC、及び周辺コンポーネントにおける設定情報の自動リストアを可能とする技術については、従来より知られている(特許文献1参照)。
特開2002−297207号公報
On the other hand, in a PLC system including a main PLC composed of a plurality of units, one or more extension PLCs connected by bus to the main PLC, and peripheral components connected to the main PLC or extension PLC, Backup information on each PLC and peripheral components is stored in a storage medium provided in the main PLC in a lump and activated by a predetermined switch operation, so that the main PLC can be added without using a tool device. A technique that enables automatic restoration of setting information in the PLC and peripheral components has been known (see Patent Document 1).
JP 2002-297207 A

しかしながら、上記特許文献に記載のPLCシステムに採用される一括リストア技術は、主PLCの所定記憶媒体から読み出したバックアップ用データをそのままデータバスを介して必要な各ユニットに設定するものであるから、ほぼ同一箇所に設置されかつバス接続される一群のPLC(主PLC及び増設用PLC)並びにその周辺コンポーネントの一括リストアには有効ではあるが、フィールドネットワークを介して分散配置される複数PLCの一括リストアに適用するためには、それら記憶媒体から読み出されたバックアップ用データをさらにネットワーク上の各PLCが受信処理可能なデータに変換する処理が必要となり、主PLC側のソフトウェア負担が増大する。   However, the batch restoration technology employed in the PLC system described in the above-mentioned patent document is to set the backup data read from the predetermined storage medium of the main PLC as it is to each necessary unit via the data bus. Although it is effective for collective restoration of a group of PLCs (main PLC and expansion PLC) and their peripheral components installed at almost the same location and connected by bus, collective restoration of multiple PLCs distributed over a field network Therefore, it is necessary to convert the backup data read from the storage medium into data that can be received and processed by each PLC on the network, increasing the software load on the main PLC side.

加えて、このように記憶媒体から読み出されるバックアップ用データをフィールドネットワーク上の各PLCが受信処理可能なデータに変換する処理を主PLC側のソフトウェアに負担させると、フィールドネットワーク上に新たに別のPLCが追加されたり、既存のPLCが別の機種に交換されたりすると、その都度、主PLC側のソフトウェアをインストールし直さねばならず、煩雑に耐えないと言う問題点がある。   In addition, when the software on the main PLC side is burdened with processing for converting the backup data read from the storage medium into data that can be received and processed by each PLC on the field network, another data is newly added on the field network. When a PLC is added or an existing PLC is replaced with another model, the software on the main PLC side must be re-installed each time.

この発明は、このような従来の問題点に着目してなされたものであり、その目的とするところは、PLCやPLCのリモートI/Oターミナル等のような制御用機器を複数台分散配置すると共に、それらをフィールドネットワークを介して結んで構成される分散型制御システムにおいて、それらのフィールドネットワークを介して結ばれた複数の制御用機器のそれぞれにおける設定情報のリストアを、ツール装置を使用することなく、簡単な操作で、かつ特定の制御用機器に過大なソフトウェア負担をかけることなく、実行可能とすることにある。   The present invention has been made paying attention to such conventional problems, and the object is to distribute a plurality of control devices such as PLCs and PLC remote I / O terminals. In addition, in a distributed control system configured by connecting them via a field network, a tool device is used to restore setting information in each of a plurality of control devices connected via the field network. In other words, it is possible to execute it with a simple operation and without imposing an excessive software load on a specific control device.

又、この発明は、制御用機器として安全制御用の安全PLCが使用される場合のように、設定用データの設定誤りが許されない状況においても、そのようなリストア作業を現場作業員等の設定操作に不慣れな者でも間違いなく実行可能とすることにある。   In addition, the present invention allows such a restore operation to be set by a field worker or the like even in a situation where setting data setting errors are not allowed, such as when a safety control safety PLC is used as a control device. This is to make sure that even those unfamiliar with the operation can execute it.

この発明のさらに他の目的並びに作用効果については、明細書の以下の記述を参照することにより、当業者であれば容易に理解されるであろう。   Other objects and operational effects of the present invention will be easily understood by those skilled in the art by referring to the following description of the specification.

上記の発明が解決しようとする課題は、以下の構成を有する分散型制御システムにより解決することができる。   The problem to be solved by the above invention can be solved by a distributed control system having the following configuration.

基本的な前提事項として、この分散型制御システムは、PLCやPLCのリモートI/Oターミナル等のような制御用機器を複数台分散配置すると共に、それらをフィールドネットワークを介して結んで構成され、前記複数台の制御用機器のそれぞれには、その機器の動作仕様を定義するための設定情報がストアされる設定情報記憶手段と、前記設定情報記憶手段にストアされた設定情報の内容を、フィールドネットワークを介して受信されるリストア要求フレームに応答して自動的にリストアするリストア動作自動実行手段とが含まれており、それにより、前記フィールドネットワークに直接又は間接に接続されたツール装置を操作して、フィールドネットワーク上にリストア要求フレームを送り出すことにより、そのリストア要求フレームの送信先となる制御用機器の設定情報記憶手段の内容を遠隔操作でリストア可能とされている。   As a basic premise, this distributed control system is configured by distributing a plurality of control devices such as PLCs and PLC remote I / O terminals and connecting them via a field network. In each of the plurality of control devices, setting information storage means for storing setting information for defining operation specifications of the devices, and contents of the setting information stored in the setting information storage means are And a restore operation automatic execution means for automatically restoring in response to a restore request frame received via the network, thereby operating a tool device connected directly or indirectly to the field network. The restore request frame is sent to the field network. And it is capable restored remotely the contents of the setting information storage means of the control device as a destination.

なお、「制御用機器」としては。PLCやリモートI/Oターミナルのほか、汎用ディスクリートI/O、フィールドアダプタ、セーフティネットワークコントローラ、セーフティディスクリートI/O等々のように、この種の制御現場に通常配置される様々な制御用機器を挙げることができる。   As a “control device”. In addition to PLCs and remote I / O terminals, various control devices that are usually placed at this type of control site, such as general-purpose discrete I / O, field adapters, safety network controllers, safety discrete I / O, etc. be able to.

「PLC」としては、ユーザプログラム実行機能及び通信機能を少なくとも有するものであればよく、その物理的な形態は、PLCの全体を複数の制御モジュール(CPUユニット、I/Oユニット、各種高機能ユニット、通信ユニット等々)で構成してなるビルディングブロック型のものでもよいし、それらの制御モジュールの機能を1つのハウジングに収容してなるオールインワン型のものでもよい。なお、「PLC」は、一般制御用の汎用PLCであっても、安全制御用の安全PLCであってもよく、システム構成として、これらが混在しているものでもよい。   As the “PLC”, it is sufficient that it has at least a user program execution function and a communication function, and its physical form is that the entire PLC is composed of a plurality of control modules (CPU unit, I / O unit, various high function units). , Communication unit, etc.), or a building block type that includes the functions of these control modules in one housing. The “PLC” may be a general-purpose PLC for general control or a safety PLC for safety control, and these may be mixed as a system configuration.

「設定情報」とは、対象となる制御用機器の動作仕様を定義するための情報であり、例えば、PLCの設定情報(ユーザプログラム、システム設定など)やリモートI/Oターミナルの設定情報(IO設定など)を意味するものである。ただし、設定対象となる「設定情報」には、ネットワーク設定用パラメータ(フィールドノードアドレス、フィールド速度)は、含まれない。すなわち、ネットワーク設定用パラメータについては、ユーザが必要に応じて予め各制御用機器に設定していることを前提とする。制御用機器がビルディングブロック型PLCのように複数のユニットから構成される場合は、設定情報自体も各ユニットに対応して用意される。オールインワン型の制御用機器の場合には、その制御用機器に関する設定情報となる。   “Setting information” is information for defining the operation specifications of the target control device. For example, PLC setting information (user program, system setting, etc.) or remote I / O terminal setting information (IO Setting). However, the “setting information” to be set does not include network setting parameters (field node address, field speed). That is, it is assumed that the network setting parameters are set in advance in each control device by the user as necessary. When the control device is composed of a plurality of units such as a building block type PLC, setting information itself is also prepared corresponding to each unit. In the case of an all-in-one type control device, the setting information is related to the control device.

上記の基本的な前提事項に加えて、この分散型制御システムは、次のような構成が付加される。すなわち、前記制御用機器の少なくとも1つは、設定情報発信局として位置付けられると共に、その他の制御用機器は設定情報受信局として位置付けられる。そして、発信局として位置付けられた制御用機器には、「フレーム構成データ記憶手段」と「リストア要求自動送信手段」とが設けられる。   In addition to the above basic assumptions, this distributed control system has the following configuration. That is, at least one of the control devices is positioned as a setting information transmitting station, and the other control devices are positioned as setting information receiving stations. The control device positioned as the transmission station is provided with “frame configuration data storage means” and “restore request automatic transmission means”.

フレーム構成データ記憶手段には、受信局として位置付けられた制御用機器の設定情報記憶手段の記憶内容を遠隔操作でリストアする際に、前記ツール装置からフィールドネットワーク上に送り出されるべきリストア要求フレームのフレーム構成データが記憶される。また、リストア要求自動送信手段は、所定の起動指令が与えられるのに応答して、前記フレーム構成データ記憶手段に一連に記憶されたフレーム構成データを各受信局毎に順次に読み出してリストア要求フレームを作成すると共に、こうして作成されたリストア要求フレームをフィールドネットワーク上へと送り出す動作を実行する。   The frame configuration data storage means includes a frame of a restore request frame to be sent out on the field network from the tool device when the stored contents of the setting information storage means of the control device positioned as a receiving station are restored by remote operation. Configuration data is stored. Further, the restore request automatic transmission means sequentially reads out the frame configuration data stored in series in the frame configuration data storage means for each receiving station in response to a predetermined start command being given. And the operation of sending out the restore request frame thus created onto the field network is executed.

ここで、「所定の起動指令」の与え方については、様々な方法が考えられる。1つの例としては、当該発信局となる制御用機器それ自体に起動スイッチを設け、この起動スイッチの手動操作を待ってリストア要求自動送信処理を開始するものが考えられる。他の例としては、ユーザプログラムを介して制御されるフラグを設け、このフラグが“1”にセットされたタイミングを検知して、リストア要求自動送信処理を開始するものが考えられる。さらに他の例としては、ネットワークを介して他の制御用機器から所定の起動コマンドが到来したことを検知して、リストア要求自動送信処理を開始するものが考えられる。   Here, various methods can be considered for giving the “predetermined start command”. As an example, a control switch itself serving as a transmission station may be provided with a start switch, and a restore request automatic transmission process may be started after a manual operation of the start switch. As another example, a flag that is controlled via a user program may be provided, and when the flag is set to “1”, the restoration request automatic transmission process is started. As yet another example, it may be possible to detect that a predetermined activation command has arrived from another control device via the network and start the restore request automatic transmission process.

以上の構成により、前記発信局となる制御用機器に対して所定の起動指令を与えるだけで、前記ツール装置を操作することなく、前記受信局となる各制御用機器の設定情報記憶手段の内容を遠隔操作でリストア可能とされる。   With the above configuration, the contents of the setting information storage means of each control device serving as the receiving station can be obtained by operating the tool device only by giving a predetermined activation command to the control device serving as the transmitting station. Can be restored remotely.

ここで、「フレーム構成データ」には、各制御用機器のそれぞれが解釈実行可能な「リストア要求コマンド」と、そのリストア要求コマンドを修飾する「コマンド修飾データ」とが含まれる。「コマンド修飾データ」には、そのリストア要求コマンドの送信元となる「送信元ノードアドレス」及びそのリストア要求コマンドの送信先となる「送信先ノードアドレス」のほか、そのリストア要求コマンドによりリストアされるべき「設定情報」が少なくとも含まれる。   Here, the “frame configuration data” includes a “restore request command” that can be interpreted and executed by each control device, and “command modification data” that modifies the restore request command. The “command modifier data” is restored by the restore request command in addition to the “source node address” that is the source of the restore request command and the “destination node address” that is the destination of the restore request command. At least “setting information” to be included is included.

「フレーム構成データ記憶手段」には、原則として、それらの「フレーム構成データ」の全てが各制御用機器毎に記憶される。もっとも、全ての制御用機器において共通に使用可能であれば、「リストア要求コマンド」については、各制御用機器毎に重複して記憶させる必要はないであろう。また、「送信元ノードアドレス」のように、既知のデータについても、各制御用機器毎に重複して記憶させる必要はないであろう。   In principle, all of the “frame configuration data” is stored in the “frame configuration data storage unit” for each control device. However, if it can be used in common for all control devices, the “restore request command” need not be stored redundantly for each control device. Also, it is not necessary to store known data redundantly for each control device, such as “source node address”.

「フレーム構成データ記憶手段」の物理的形態としては、様々なものを採用することができる。1つの例としては、設定情報発信局として位置付けられる制御用機器(例えば、PLC)側にフレーム構成データ記憶手段として機能する不揮発性メモリパッケージを内蔵又は外付けにより、固定的組み込むと共に、当該制御用機器にツール装置を接続することにより、その不揮発性メモリパッケージに対して、必要なフレーム構成データを現場で書き込むことが考えられる。他の例としては、別の場所でツール装置を使用してフレーム構成データが予め書き込まれたメモリパッケージを、設定情報発信局として位置付けられる制御用機器(例えば、PLC)側に内蔵又は外付けで組み込むことが考えられる。さらに他の例としては、設定情報発信局として位置付けられる制御用機器(例えば、PLC)側に不揮発性メモリカードを装着するためのカードスロットを内蔵又は外付けで設け、別の場所でツール装置を使用してフレーム構成データが予め書き込まれたメモリカードを、このカードスロットに装着することが考えられる。   Various physical forms of the “frame configuration data storage means” can be employed. As one example, a non-volatile memory package that functions as a frame configuration data storage means is fixedly incorporated on the control device (for example, PLC) side that is positioned as a setting information transmission station, and is fixedly incorporated. It is conceivable that necessary frame configuration data is written on-site to the nonvolatile memory package by connecting a tool device to the device. As another example, a memory package in which frame configuration data is written in advance using a tool device in another location may be built in or externally attached to a control device (for example, PLC) that is positioned as a setting information transmission station. It is possible to incorporate. As still another example, a card slot for mounting a non-volatile memory card is provided on the control device (for example, PLC) side, which is positioned as a setting information transmission station, and a tool device is installed in another place. It is conceivable that a memory card in which frame configuration data is written in advance is inserted into this card slot.

なお、上述の分散制御システムにおいて、「リストア」とは、なんらかの設定情報が既にストアされている状態において、その設定情報を更新する場合と、なんの設定情報もストアされていない空の状態において、なんらかの設定情報を新たにストアする場合との双方の意味を含んでいる。   In the above distributed control system, “restore” means that when some setting information is already stored, when the setting information is updated, and when no setting information is stored, It includes both meanings for storing new setting information.

以上の構成よりなる分散制御システムによれば、設定情報発信局として位置付けられる制御用機器に対して所定の起動指令を与えさえすれば、その制御用機器から受信局として位置付けられた各制御機器のそれぞれに対して、リストア要求フレームが自動的に送信されると共に、これを受けて各制御用機器のそれぞれにおいては、自動的にリストア動作が行われるから、従前のように、操作の煩雑なツール装置を使用せずとも、ネットワークを介して結ばれた他の制御用機器の設定情報を、誰でも簡単に、リストアさせることが可能となる。   According to the distributed control system having the above configuration, as long as a predetermined activation command is given to a control device positioned as a setting information transmitting station, each control device positioned as a receiving station from the control device. A restore request frame is automatically transmitted to each of them, and in response to this, a restore operation is automatically performed in each control device. Even without using a device, anyone can easily restore setting information of other control devices connected via a network.

しかも、フレーム構成データ記憶手段には、前記ツール装置からフィールドネットワーク上に送り出されるべきリストア要求フレームのフレーム構成データそのものが記憶されているので、発信局として位置付けられた制御用機器の側では、単に、フレーム構成データ記憶手段から読み出されたデータを所定のフォーマットにしたがって配列・送信するだけでリストア要求フレームの自動送信動作を実現することができ、発信局として位置付けられた制御用機器のソフトウェア構成を徒に複雑化することもない。   In addition, since the frame configuration data itself of the restore request frame to be sent from the tool device to the field network is stored in the frame configuration data storage means, on the side of the control device positioned as the transmission station, The software configuration of the control device positioned as the transmitting station can be realized by automatically transmitting the restore request frame by simply arranging and transmitting the data read from the frame configuration data storage means according to a predetermined format. Is not complicated.

加えて、ネットワーク上における制御用機器の増減、変更等の情報は、別途ツール装置で各制御用機器に対するリストア要求フレームを作成する際にフレーム構成データそのものに既に反映されているため、そのようなネットワーク上における制御用機器の増減、変更などがあったとしても、発信局として位置付けられた制御用機器側のソフトウェア構成それ自体には影響するとがなく、そのため、そのような制御用機器の増減、変更があっても、発信局として位置付けられた制御用機器側のソフトウェアは影響を受けない利点がある。   In addition, information on increase / decrease, change, etc. of control devices on the network is already reflected in the frame configuration data itself when creating a restore request frame for each control device with a separate tool device. Even if there is an increase / decrease or change in the control device on the network, it does not affect the software configuration of the control device positioned as the source station itself. Even if there is a change, there is an advantage that the software on the control device side positioned as the transmission station is not affected.

すなわち、ツール装置の機能を発信局として位置付けられた制御用機器に移植すると、ネットワーク上に新たに接続された制御用機器をリストア対象とするときに、発信局として位置付けられた制御用機器に組み込まれたソフトウェアを更新しなければならない。通常、制御用機器(PLC等)の組み込みソフトウェアを更新することは、簡単にはできない。これに対して、本発明では、ツール装置を構成するパソコン上のツールソフトを更新するだけで、発信局となる制御用機器の組み込みソフトウェアはそのままに、新たなリストア対象制御機器に対応することができる。   In other words, when the function of the tool device is transplanted to a control device positioned as a transmission station, it is incorporated into the control device positioned as a transmission station when a control device newly connected on the network is to be restored. Updated software must be updated. Usually, it is not easy to update the embedded software of a control device (PLC or the like). In contrast, in the present invention, by simply updating the tool software on the personal computer that constitutes the tool device, the embedded software of the control device serving as the transmission station can be used as it is, and the new control device can be restored. it can.

その結果、本発明の分散型制御システムによれば、(1)ユニット交換時、PCツールによるシステム再設定が不要なため(PC立ち上げ⇒ツール起動⇒ファイル選択⇒ファイルダウンロードの一連の作業不要)、ダウンタイムを軽減できること、(2)現場作業者にツール教育を行う必要がないこと、(3)誤った設定ファイルをダウンロードする危険性もないこと、(4)特に、安全アプリケーションにおける設定ツールの場合、容易にシステム設定パラメータやプログラムが変更されたり、動作モードが変更されること(プログラム⇔運転)を防止するために、設定ファイルへのアクセスや、特定機能の実行に対してパスワードにより保護されていることが多く、現場作業者へのパスワード開示が課題があったが、この方法によれば、パスワードの開示不要となること、等々の格別の作用効果を奏するものである。   As a result, according to the distributed control system of the present invention, (1) when the unit is replaced, it is not necessary to reconfigure the system with the PC tool (PC startup ⇒ tool activation ⇒ file selection ⇒ file download sequence unnecessary) Downtime can be reduced, (2) there is no need to provide tool training to field workers, (3) there is no risk of downloading an incorrect configuration file, and (4) configuration tools in safety applications in particular. In order to prevent system setting parameters and programs from being easily changed or operating modes to be changed (program operation), passwords are protected against access to setting files and execution of specific functions. In many cases, there was a problem of password disclosure to field workers. Seward disclosed that becomes unnecessary, in which exhibits the special effect of the like.

なお、上述の分散制御システムにおいて、発信局側の前記リストア要求自動送信手段は、リストア要求フレームの送信動作に先立って、送信先となる制御機器に現在ストアされている設定情報とリストア予定の設定情報との同一性を判定すると共に、同一性が否定されたときにかぎり、その制御機器に対するリストア要求送信動作を実行し、同一性が肯定されるときには、その制御機器に対するリストア要求送信動作をスキップする、ようにしてもよい。   In the above distributed control system, the restore request automatic transmission means on the transmission station side sets the setting information currently stored in the control device as the transmission destination and the setting of the restoration schedule prior to the transmission operation of the restore request frame. Determines identity with information and executes restore request transmission operation for that control device only when identity is denied. If identity is affirmed, restore request transmission operation for that control device is skipped. You may do it.

このような構成によれば、既にストアされている設定情報とこれからリストアされる設定情報とが同一であるにも拘わらずリストア動作が無駄に行われることによる無駄時間を節減して、システム全体としてのリストア所要時間の短縮を図ることができる。   According to such a configuration, the setting information already stored and the setting information to be restored in the future are the same, but a waste time due to a wasteful restore operation is saved, and the entire system is reduced. The time required for restoration can be shortened.

また、上述の分散制御システムにおいて、受信局側の前記リストア動作自動実行手段は、リストア動作に先立って、受信されたリストア要求に付されたパスワードと自機に保存されたパスワードとの同一性を判定すると共に、同一性が肯定されるときにかぎり、その受信された設定情報に基づくリストア動作を実行し、同一性が否定されるときには、その受信された設定情報に基づくリストア動作をスキップするように仕組まれていてもよい。   In the above distributed control system, the restore operation automatic execution means on the receiving station side confirms the identity between the password attached to the received restore request and the password stored in its own device prior to the restore operation. Only when the identity is affirmed, the restore operation based on the received setting information is executed, and when the identity is denied, the restore operation based on the received setting information is skipped. It may be structured.

このような構成によれば、リストア要求フレームにパスワードを適宜に組み込むことにより、リストア要求自動送信動作の起動については現場に委ねつつも、リストアされる制御機器のそれぞれ毎に、設定情報作成者の側で、リストアの可否を任意にコントロールすることができる。   According to such a configuration, by appropriately incorporating a password in the restore request frame, the start of the restore request automatic transmission operation is left to the site, but the setting information creator's The user can arbitrarily control whether or not restoration is possible.

また、上述の分散制御システムにおいて、発信局側の前記リストア要求自動送信手段は、リストア要求フレームの送信動作に先立って、送信先となる制御用機器のデバイスタイプとリストア予定の制御情報に付されたデバイスタイプとの同一性を判定すると共に、同一性が肯定されるときにかぎり、その制御機器に対するリストア要求フレーム送信動作を実行し、同一性が否定されるときには、その制御機器に対するリストア要求フレーム送信動作をスキップする、ようにしてもよい。   Further, in the above distributed control system, the restore request automatic transmission means on the transmitting station side is attached to the device type of the control device as the transmission destination and the control information to be restored prior to the transmission operation of the restore request frame. When the identity is determined and the identity is affirmed, the restore request frame transmission operation for the control device is executed. When the identity is denied, the restore request frame for the control device is executed. The transmission operation may be skipped.

このような構成によれば、同一性が肯定されるときにかぎり、その制御機器に対するリストア要求フレーム送信動作を実行し、同一性が否定されるときには、その制御機器に対するリストア要求フレーム送信動作をスキップすることにより、通信ネットワーク上のいずれかのノードにおいて、制御用機器の交換時に誤って別のデバイスタイプの制御用機器を装着してしまったような場合には、デバイスタイプの同一性が否定されることとなるため、このようなデバイス誤まりに気づかずに、設定情報がリストアされてしまうことによりシステムの誤動作を未然に防止することができる。   According to such a configuration, the restore request frame transmission operation for the control device is executed only when the identity is affirmed, and the restore request frame transmission operation for the control device is skipped when the identity is denied. Therefore, if one of the nodes on the communication network accidentally attaches a control device of another device type when replacing the control device, the identity of the device type is denied. Therefore, the system information can be prevented from malfunctioning by restoring the setting information without noticing such a device error.

さらに、上述の分散制御システムにおいて、前記受信局となる制御用機器のそれぞれには、リストア動作の実行状況を発信局となる制御用機器へと通知するための通知手段が設けられていてもよい。   Furthermore, in the above-described distributed control system, each of the control devices serving as the receiving stations may be provided with a notification unit for notifying the execution status of the restore operation to the control device serving as the transmitting station. .

このような構成によれば、発信局となる制御用機器の側でリストア要求自動送信動作を起動させたのち、受信局となる制御用機器において、リストア動作の実行状況を確認できる利点がある。   According to such a configuration, there is an advantage that after the restore request automatic transmission operation is activated on the control device serving as the transmission station, the execution status of the restore operation can be confirmed in the control device serving as the reception station.

本発明によれば、設定情報発信局として位置付けられる制御用機器に対して所定の起動指令を与えさえすれば、その制御用機器から受信局として位置付けられた各制御機器のそれぞれに対して、リストア要求フレームが自動的に送信されると共に、これを受けて各制御用機器のそれぞれにおいては、自動的にリストア動作が行われるから、従前のように、操作の煩雑なツール装置を使用せずとも、ネットワークを介して結ばれた他の制御用機器の設定情報を、誰でも簡単に、リストアさせることが可能となる。   According to the present invention, as long as a predetermined activation command is given to the control device positioned as the setting information transmission station, the control device restores each control device positioned as the receiving station. Since the request frame is automatically transmitted and each control device receives the request frame, the restore operation is automatically performed, so that it is not necessary to use a complicated tool device as before. Anyone can easily restore the setting information of other control devices connected via the network.

しかも、フレーム構成データ記憶手段には、前記ツール装置からフィールドネットワーク上に送り出されるべきリストア要求フレームのフレーム構成データそのものが記憶されているので、発信局として位置付けられた制御用機器の側では、単に、フレーム構成データ記憶手段から読み出されたデータを所定のフォーマットにしたがって配列・送信するだけでリストア要求フレームの自動送信動作を実現することができ、発信局として位置付けられた制御用機器のソフトウェア構成を徒に複雑化することもない。   In addition, since the frame configuration data itself of the restore request frame to be sent from the tool device to the field network is stored in the frame configuration data storage means, on the side of the control device positioned as the transmission station, The software configuration of the control device positioned as the transmitting station can be realized by automatically transmitting the restore request frame by simply arranging and transmitting the data read from the frame configuration data storage means according to a predetermined format. Is not complicated.

加えて、ネットワーク上における制御用機器の増減、変更等の情報は、別途ツール装置で各制御用機器に対するリストア要求フレームを作成する際にフレーム構成データそのものに既に反映されているため、そのようなネットワーク上における制御用機器の増減、変更などがあったとしても、発信局として位置付けられた制御用機器側のソフトウェア構成それ自体には影響するとがなく、そのため、そのような制御用機器の増減、変更があっても、発信局として位置付けられた制御用機器側のソフトウェアは影響を受けない利点がある。   In addition, information on increase / decrease, change, etc. of control devices on the network is already reflected in the frame configuration data itself when creating a restore request frame for each control device with a separate tool device. Even if there is an increase / decrease or change in the control device on the network, it does not affect the software configuration of the control device positioned as the source station itself. Even if there is a change, there is an advantage that the software on the control device side positioned as the transmission station is not affected.

以下に、本発明に係る分散型制御システムの好適な実施の一形態を添付図面を参照しながら詳細に説明する。   Hereinafter, a preferred embodiment of a distributed control system according to the present invention will be described in detail with reference to the accompanying drawings.

本発明が適用される分散型制御システムの一例を示すシステム構成図が図1に示されている。本発明が適用される分散型制御システムは、PLCやPLCのリモートI/Oターミナルなどのような制御用機器を複数台分散配置すると共に、それらをフィールドネットワークを介して結んで構成される。図示の例にあっては、2台のPLC1a,1bと4台のリモートI/Oターミナル2a〜2dとをフィールドネットワーク(以下、単に「ネットワーク」と称する)3により結んで構成されている。各PLC1a,1bのそれぞれは、この例にあっては、ビルディング・ブロック型のPLCとして構成されており、それぞれCPUユニット10、通信ユニット11、及び2台のI/Oユニット12,12を含んでいる。   A system configuration diagram showing an example of a distributed control system to which the present invention is applied is shown in FIG. A distributed control system to which the present invention is applied is configured by distributing a plurality of control devices such as PLCs and PLC remote I / O terminals and connecting them via a field network. In the illustrated example, two PLCs 1 a and 1 b and four remote I / O terminals 2 a to 2 d are connected by a field network (hereinafter simply referred to as “network”) 3. Each of the PLCs 1a and 1b is configured as a building block type PLC in this example, and includes a CPU unit 10, a communication unit 11, and two I / O units 12 and 12, respectively. Yes.

当業者にはよく知られているように、PLCのCPUユニット10には、ユーザプログラムを格納するためのユーザプログラムメモリと、PLCとしての機能を実現するためのシステムプログラムを格納するシステムプログラムメモリと、入出力データを格納するためのI/Oメモリと、各種システム設定を記憶するためのシステム設定メモリなどが設けられている。   As is well known to those skilled in the art, the CPU unit 10 of the PLC includes a user program memory for storing a user program, and a system program memory for storing a system program for realizing a function as a PLC. In addition, an I / O memory for storing input / output data, a system setting memory for storing various system settings, and the like are provided.

また、システムプログラムは、I/Oメモリの出力データを読み出してI/Oユニット12へと送り出すと共に、I/Oユニット12の入力データを読み込んでI/Oメモリに書き込むI/Oリフレッシュ処理と、I/Oメモリの入出力データを参照してユーザプログラムを実行すると共に、その実行結果でI/Oメモリの内容を書き換えるユーザプログラム実行処理と、ユーザ操作の受付け、表示信号の送出、ツール装置との交信、リモートI/Oターミナルとの交信などを行う周辺サービス処理とが組み込まれている。   Further, the system program reads I / O memory output data and sends it to the I / O unit 12, I / O refresh processing that reads the input data of the I / O unit 12 and writes it to the I / O memory, A user program is executed by referring to input / output data of the I / O memory, and a user program execution process for rewriting the contents of the I / O memory by the execution result, acceptance of a user operation, transmission of a display signal, a tool device, And peripheral service processing for performing communication with a remote I / O terminal.

そして、この周辺サービス処理において、通信ユニット11を介してリモートI/Oターミナル2a〜2dと適宜交信することによって、リモートI/Oターミナルへの出力データの送出、リモートI/Oターミナルからの入力データの取り込みなどが行われる。また、ネットワーク3に接続される図示しないツール装置と交信することによって、ユーザプログラムの書き換え処理、編集処理、モニタ処理などの種々公知の周辺サービス処理が実現される。   In this peripheral service processing, by appropriately communicating with the remote I / O terminals 2a to 2d via the communication unit 11, transmission of output data to the remote I / O terminal and input data from the remote I / O terminal are performed. And so on. Further, by communicating with a tool device (not shown) connected to the network 3, various known peripheral service processes such as a user program rewrite process, an edit process, and a monitor process are realized.

また、制御用機器を構成するPLC1a,1b及びリモートI/Oターミナル2a〜2dのそれぞれでは、図示しないツール装置からネットワーク3上へと送信されたリストア要求フレームが受信された場合、これに応答して自機の設定情報を自動的にリストアする機能が仕組まれている。ここで言う「設定情報」とは、例えばPLCの場合であれば、ユーザプログラムや各種のシステム設定などがこれに相当するものであり、リモートI/Oターミナル2a〜2dの場合であれば、I/O設定などがこれに相当する。   Each of the PLCs 1a and 1b and the remote I / O terminals 2a to 2d constituting the control device responds when a restore request frame transmitted from the tool device (not shown) to the network 3 is received. A function to automatically restore the setting information of the machine is provided. The “setting information” referred to here is, for example, a user program or various system settings in the case of PLC, and in the case of the remote I / O terminals 2a to 2d, I The / O setting corresponds to this.

そして、本発明にあっては、それらの「設定情報」のリストアを、ツール装置の存在なくして実行可能とするために、制御用機器の少なくとも1台を、設定情報発信局として位置付けると共に、発信局として位置付けられた制御用機器には、「フレーム構成データ記憶手段」と「リストア要求自動送信手段」とを設けるようにしている。   In the present invention, in order to restore those “setting information” without the tool device, at least one of the control devices is positioned as a setting information transmitting station, The control device positioned as a station is provided with “frame configuration data storage means” and “restore request automatic transmission means”.

ここで、フレーム構成データ記憶手段には、受信局として位置付けられた制御用機器の設定情報記憶手段の記憶内容を遠隔操作でリストアする際に、ツール装置からフィールドネットワーク上に送り出されるべきリストア要求フレームのフレーム構成データが、受信局として位置付けられた制御用機器のそれぞれに対応させて一連に記憶される。   Here, in the frame configuration data storage means, a restore request frame to be sent from the tool device to the field network when the stored contents of the setting information storage means of the control device positioned as the receiving station is restored by remote control Frame configuration data is stored in series corresponding to each of the control devices positioned as receiving stations.

また、リストア要求自動送信手段は、所定の起動指令が与えられるのに応答して、フレーム構成データ記憶手段に一連に記憶されたフレーム構成データを各受信局毎に順次に読み出してリストア要求フレームを作成すると共に、こうして作成されたリストア要求フレームをフィールドネットワークへと送り出す動作を実行するように構成されている。図1の例の場合、PLC1aが設定情報発信局として位置付けられ、他のPLC1b及び4台のリモートI/Oターミナル2a〜2dが設定情報受信局として位置付けられる。   Further, the restore request automatic transmission means sequentially reads out the frame configuration data stored in a series in the frame configuration data storage means for each receiving station in response to a predetermined start command, and sends a restore request frame. An operation of creating and sending the restore request frame thus created to the field network is executed. In the case of the example in FIG. 1, the PLC 1a is positioned as a setting information transmitting station, and the other PLC 1b and the four remote I / O terminals 2a to 2d are positioned as setting information receiving stations.

PLC1aには上述のリストア要求フレームのフレーム構成データが保持される。PLC1aにリストア要求フレームのフレーム構成データを保持させるについては、様々な方法が考えられる。   The PLC 1a holds the frame configuration data of the restore request frame described above. Various methods are conceivable for causing the PLC 1a to hold the frame configuration data of the restore request frame.

図2に示される例にあっては、CPUユニット10の側にカードスロット10cを設ける一方、これに装着されるメモリカード4にはあらかじめフレーム構成データ4aを格納させておき、このメモリカード4をカードスロット10cに装着することによって、CPUユニット10に対してフレーム構成データを保持させるようにしている。   In the example shown in FIG. 2, a card slot 10c is provided on the side of the CPU unit 10, while the frame configuration data 4a is stored in advance in the memory card 4 attached to the card slot 10c. The frame configuration data is held by the CPU unit 10 by mounting it in the card slot 10c.

図3の例にあっては、CPUユニット10の側にコネクタ10cを設ける一方、これにケーブルを介してハンディツール5を接続し、ハンディツール5に設けられたカードスロット5aに対してフレーム構成データ4aを格納させたメモリカード4を装着することによって、CPUユニット10に対してフレーム構成データを保持させることを可能としている。   In the example of FIG. 3, the connector 10 c is provided on the CPU unit 10 side, and the handy tool 5 is connected to the connector 10 c via a cable, and the frame configuration data for the card slot 5 a provided in the handy tool 5 is provided. By mounting the memory card 4 storing 4a, the CPU unit 10 can hold the frame configuration data.

図4の例にあっては、CPUユニット10内の回路基板上にパッケージメモリで構成された不揮発性メモリ6を固定的にまたは着脱可能に設ける一方、この不揮発性メモリ6内に現場であるいはあらかじめ別の場所でツール装置を利用してフレーム構成データを書き込むことにより、CPUユニット10に対してフレーム構成データを保持させることを可能としている。   In the example of FIG. 4, a nonvolatile memory 6 composed of a package memory is provided on a circuit board in the CPU unit 10 in a fixed or detachable manner. The frame configuration data can be held in the CPU unit 10 by writing the frame configuration data using a tool device at another location.

このように、設定情報発信局として位置付けられた制御用機器がPLCの場合、これにフレーム構成データを保持させる手法としては様々な構成を採用することができる。以下の説明においては、図2に示される方法によりフレーム構成データを保持させたものとして話を進めることとする。   As described above, when the control device positioned as the setting information transmitting station is a PLC, various configurations can be adopted as a method for holding the frame configuration data in the PLC. In the following description, it is assumed that the frame configuration data is held by the method shown in FIG.

なお、図1〜図4において、10−1はリストア動作を起動するためのリストア起動スイッチであり、10−2はリストア対象を自機とネットワーク全体とに切り替えるためのリストア対象切替スイッチである。これらのスイッチの動作については、後にフローチャートを参照しながら詳細に説明する。   1 to 4, reference numeral 10-1 denotes a restore start switch for starting the restore operation, and 10-2 denotes a restore target changeover switch for switching the restore target between the own apparatus and the entire network. The operation of these switches will be described in detail later with reference to a flowchart.

なお、当業者にはよく知られているものであるが、CPUユニット10及び通信ユニット11のハードウェアブロック図を念のため図13に示す。同図に示されるように、CPUユニット10内には、メモリカードインタフェース101、不揮発性メモリ102、RAM103、MPUブロック104、バス制御部105、表示部106、設定部107、及びUSBインタフェース108が設けられている。   As is well known to those skilled in the art, a hardware block diagram of the CPU unit 10 and the communication unit 11 is shown in FIG. 13 just in case. As shown in the figure, in the CPU unit 10, a memory card interface 101, a nonvolatile memory 102, a RAM 103, an MPU block 104, a bus control unit 105, a display unit 106, a setting unit 107, and a USB interface 108 are provided. It has been.

メモリカードインタフェース101は、先ほど説明したカードスロット10cに対応するものである。不揮発性メモリ102は、システムプログラムメモリ、ユーザプログラムメモリ、I/Oメモリ、システム設定メモリ等々を総称するものであり、本発明で着目される「設定情報」はこの不揮発性メモリ102に主として格納されている。RAM103はワークエリアなどとして使用される。MPUブロック104はMPUとASICとを含んで構成され、不揮発性メモリ102から読み出されたシステムプログラムに従って動作することにより、先ほど説明したIOリフレッシュ処理、ユーザプログラム実行処理、周辺サービス処理の機能を実現するものである。バス制御部105は通信ユニット11との間のデータのやり取りを司るものである。表示部106はCPUユニットの外表面に設けられる図示しない表示ランプや数値表示器の動作を制御するものである。設定部107は各種の設定操作に供されるものであり、本発明に関連しては、先ほど説明したリストア起動スイッチ10−1及びリストア対象切替スイッチ10−2などが含まれている。USBインタフェース108はCPUに対してUSBケーブルを接続するために供される。   The memory card interface 101 corresponds to the card slot 10c described above. The nonvolatile memory 102 is a general term for a system program memory, a user program memory, an I / O memory, a system setting memory, and the like, and “setting information” noted in the present invention is mainly stored in the nonvolatile memory 102. ing. The RAM 103 is used as a work area. The MPU block 104 includes an MPU and an ASIC, and operates according to the system program read from the nonvolatile memory 102, thereby realizing the functions of IO refresh processing, user program execution processing, and peripheral service processing described above. To do. The bus control unit 105 manages data exchange with the communication unit 11. The display unit 106 controls the operation of a display lamp and a numerical display (not shown) provided on the outer surface of the CPU unit. The setting unit 107 is used for various setting operations, and includes the restore activation switch 10-1 and the restore target changeover switch 10-2 described above in connection with the present invention. The USB interface 108 is provided for connecting a USB cable to the CPU.

一方、通信ユニット11には、不揮発性メモリ111、RAM112、MPUブロック113、バス制御部114、表示部115、設定部116、及び通信物理層117とが含まれている。   On the other hand, the communication unit 11 includes a nonvolatile memory 111, a RAM 112, an MPU block 113, a bus control unit 114, a display unit 115, a setting unit 116, and a communication physical layer 117.

不揮発性メモリ111は、通信ユニットとしての機能を実現するためのシステムプログラム等を格納するものである。RAM112はワークエリアとして機能するものである。MPUブロック113は、不揮発性メモリ111から各種のシステムプログラムを読み込んで実行することによって、通信ユニットとしての機能を実現する。バス制御部114はCPUユニット10とのデータのやり取りに供される。表示部115は通信ユニット11の外表面に設けられた各種ランプの表示制御に供される。設定部116は、例えばDIPスイッチなどで構成され、ノードアドレスの設定や通信速度の設定に供される。通信物理層117は、ネットワーク3を介して他の制御用機器(PLCやリモートI/Oターミナルなど)との間で通信動作の実現のために供される。   The nonvolatile memory 111 stores a system program or the like for realizing a function as a communication unit. The RAM 112 functions as a work area. The MPU block 113 implements a function as a communication unit by reading and executing various system programs from the nonvolatile memory 111. The bus control unit 114 is used for data exchange with the CPU unit 10. The display unit 115 is used for display control of various lamps provided on the outer surface of the communication unit 11. The setting unit 116 includes, for example, a DIP switch and is used for setting a node address and a communication speed. The communication physical layer 117 is provided for realizing communication operation with other control devices (such as a PLC and a remote I / O terminal) via the network 3.

そして、後に図6〜図11のフローチャートを参照して説明する処理を実現するためのシステムプログラムは、CPUユニット10内の不揮発性メモリ102に格納され、MPUブロック104によって実行される。   A system program for realizing processing described later with reference to the flowcharts of FIGS. 6 to 11 is stored in the nonvolatile memory 102 in the CPU unit 10 and executed by the MPU block 104.

次に、リモートI/Oターミナルのハードウェアブロック図が図14に示されている。同図に示されるように、リモートI/Oターミナル2には、MPUブロック201、I/O回路202、通信物理層203、不揮発性メモリ204、表示部205、及び設定部206がそれぞれ設けられている。   Next, a hardware block diagram of the remote I / O terminal is shown in FIG. As shown in the figure, the remote I / O terminal 2 is provided with an MPU block 201, an I / O circuit 202, a communication physical layer 203, a nonvolatile memory 204, a display unit 205, and a setting unit 206, respectively. Yes.

MPUブロック201はリモートI/Oターミナル全体を統括制御するものであり、不揮発性メモリ204に格納されたシステムプログラムを実行することによって、リモートI/Oターミナルとして必要な各種の機能を実現する。I/O回路202は外部端子台からの入力信号の取り込みや外部端子台に対する出力信号の送出に供される。通信物理層203は、ネットワーク3に接続されて、上位となるPLCとの間で入出力データの送受信に供される。不揮発性メモリ204は先に説明したように、システムプログラムを記憶する他、I/O回路202から取り込まれた入力データ及びI/O回路202へと出力されるべき出力データのバッファ領域としても使用される。表示部205は、リモートI/Oターミナルの外表面に設けられたランプ等の表示制御に供される。設定部206は、例えばDIPスイッチ等で構成されて、当該リモートI/Oターミナルのノードアドレス及び通信速度の設定などに供される。   The MPU block 201 performs overall control of the entire remote I / O terminal, and implements various functions necessary as a remote I / O terminal by executing a system program stored in the nonvolatile memory 204. The I / O circuit 202 is used for capturing an input signal from an external terminal block and sending an output signal to the external terminal block. The communication physical layer 203 is connected to the network 3 and is used for transmission / reception of input / output data to / from an upper PLC. As described above, the nonvolatile memory 204 stores a system program and is also used as a buffer area for input data fetched from the I / O circuit 202 and output data to be output to the I / O circuit 202. Is done. The display unit 205 is used for display control of a lamp or the like provided on the outer surface of the remote I / O terminal. The setting unit 206 includes, for example, a DIP switch or the like, and is used for setting the node address and communication speed of the remote I / O terminal.

次に、メモリカード4(図2及び図3参照)または不揮発性メモリ6(図4参照)に格納される「フレーム構成データ」のデータ構造を図5を参照しながら説明する。   Next, the data structure of “frame configuration data” stored in the memory card 4 (see FIGS. 2 and 3) or the non-volatile memory 6 (see FIG. 4) will be described with reference to FIG.

先に説明したように、「フレーム構成データ」とは、受信局として位置付けられた制御用機器(図1の場合、PLC1b、4台のリモートI/Oターミナル2a〜2d)の設定情報記憶手段(図13の例であれば不揮発性メモリ102、図14の例であれば不揮発性メモリ204)の記憶内容を遠隔操作でリストアする際に、図示しないツール装置からネットワーク3上に送り出されるべきリストア要求フレームを構成するデータのことを意味している。   As described above, “frame configuration data” refers to setting information storage means (in the case of FIG. 1, PLC 1b, four remote I / O terminals 2a to 2d) positioned as a receiving station. In the example of FIG. 13, when the stored contents of the nonvolatile memory 102 and the nonvolatile memory 204 in the example of FIG. 14 are restored by remote operation, a restore request to be sent to the network 3 from a tool device (not shown). It means data that constitutes a frame.

このフレーム構成データは、基本的には、スタートコード、リストア要求コマンド、コマンド修飾データ、エンドコード等からなる。そして、フレーム構成データ記憶手段として機能するメモリカード4(図2及び図3参照)または不揮発性メモリ6(図4参照)には、図5(a)に示されるように、各制御用機器毎の記憶エリアが設けられ、それらの記憶エリアには上述のフレーム構成データが格納される。   The frame configuration data basically includes a start code, a restore request command, command modification data, an end code, and the like. Then, the memory card 4 (see FIGS. 2 and 3) or the non-volatile memory 6 (see FIG. 4) functioning as the frame configuration data storage means has each control device as shown in FIG. 5 (a). Storage areas are provided, and the above-described frame configuration data is stored in these storage areas.

なお、これら一連のフレーム構成データの末尾には、メモリカード4又は不揮発性メモリ6に格納されたデータの信頼性を確認するためにチェック用コード(例えば、冗長検査コード、ハッシュコード、署名コード等)が格納される。   Note that at the end of the series of frame configuration data, a check code (for example, a redundancy check code, a hash code, a signature code, etc.) is used to confirm the reliability of the data stored in the memory card 4 or the nonvolatile memory 6. ) Is stored.

図5(a)に示される各制御用機器毎のエリアには、もちろん、上述のフレーム構成データの全てを格納してもよいが、スタートコード、エンドコード、リストア要求コマンド等のデータについては、全ての制御用機器について共通ないしは既知であるから、メモリ容量節減のためには、それらのデータは各機器毎に重ねて記憶させておかなくてもよいであろう。   Of course, all the above-mentioned frame configuration data may be stored in the area for each control device shown in FIG. 5A, but for the data such as the start code, end code, and restore request command, Since all the control devices are common or known, in order to save the memory capacity, the data may not be stored in each device.

この例にあっては、図5(b)に示されるように、メモリカード4または不揮発性メモリ6に格納されるフレーム構成データとしては、図5(b)に示されるように、スタートコード、エンドコード、及びリストア要求コマンドを除く、コマンド修飾データのみを格納するようにしている。具体的には、このコマンド修飾データは、各制御用機器のそれぞれに対応する「ノードアドレス」、「デバイスタイプ」、「パスワード」、「設定情報」、及び「固有ID」とから構成されている。   In this example, as shown in FIG. 5B, the frame configuration data stored in the memory card 4 or the non-volatile memory 6 includes a start code, as shown in FIG. Only the command modification data excluding the end code and the restore request command is stored. Specifically, this command modification data is composed of “node address”, “device type”, “password”, “setting information”, and “unique ID” corresponding to each control device. .

ここで、「ノードアドレス」とは、ネットワーク上でその制御用機器を一意に特定するためのアドレスである。リストア要求フレームの送信は、このノードアドレスに対して行われる。また、後述するように、リストア対象が「ネットワーク全体」のとき自機に対してリストアを行う場合には、このノードアドレスによってリストア対象が自機であることが認識される。   Here, the “node address” is an address for uniquely specifying the control device on the network. The restore request frame is transmitted to this node address. As will be described later, when the restoration target is “entire network” and the restoration is performed on the own device, it is recognized by this node address that the restoration target is the own device.

「デバイスタイプ」とは、制御用機器の種別を表すコードである。例えば、汎用ディスクリートI/O、通信アダプタ、セーフティネットワークコントローラ、セーフティディスクリートI/O等のような機器の種別や、製造元、製品コードなどにより構成される。   The “device type” is a code representing the type of control device. For example, it is configured by the type of equipment such as general-purpose discrete I / O, communication adapter, safety network controller, safety discrete I / O, manufacturer, product code, and the like.

「パスワード」とは、設定情報の作成者により決定されるコードであって、例えばこのパスワードを管理者のレベルに応じて階層構造的に設定すれば、自動リストア処理の起動それ自体については現場作業員に委ねつつも、このパスワードのレベルを適宜に設定することによって、実際にリストア動作の行われる機器の選択が可能となる。   The “password” is a code determined by the creator of the setting information. For example, if this password is set in a hierarchical structure according to the level of the administrator, the automatic restoration process itself is started in the field. However, by appropriately setting the password level, it is possible to select a device on which a restore operation is actually performed.

「設定情報」とは、リストア対象となる情報本体であって、この設定情報の内容如何で、それが設定される制御用機器の動作仕様が決定される。制御用機器がPLCのように複数のユニットから構成される場合には、図5(c)に示されるように、「設定情報」は各ユニット毎の設定情報により構成され、また個々のユニット毎の設定情報にはそれぞれ後述するユニット固有のIDが付加される。なお、制御用機器が複数のユニットに分離されていない単独構成の場合には、もちろん、「設定情報」についても単一とされる。   The “setting information” is the information body to be restored, and the operation specifications of the control device in which the setting information is set are determined depending on the contents of the setting information. When the control device is composed of a plurality of units such as a PLC, as shown in FIG. 5C, the “setting information” is composed of setting information for each unit, and for each individual unit. The unit-specific ID described later is added to each setting information. In the case of a single configuration in which the control device is not separated into a plurality of units, of course, the “setting information” is also single.

「機器の固有ID」とは、「設定情報」のバージョン毎に一意に決定される固有のIDである。具体的には、例えば、冗長検査コード、ハッシュコード、署名コード、タイムスタンプ、あるいはそれらの組み合わせにより構成することができる。この「機器固有ID」を参照することによって、その制御機器またはその制御用機器内のユニットに現在存在する「設定情報」のバージョンを確認することができる。現在リストアしようとしているバージョンと既にストアされているバージョンとが同一であれば、両者の内容は同一であるから、これを重ねてリストアする無駄を排除することができる。   The “device unique ID” is a unique ID uniquely determined for each version of the “setting information”. Specifically, for example, it can be configured by a redundancy check code, a hash code, a signature code, a time stamp, or a combination thereof. By referring to this “apparatus unique ID”, it is possible to confirm the version of “setting information” currently existing in the control apparatus or the unit in the control apparatus. If the version that is currently being restored is the same as the version that has already been stored, the contents of both are the same, and therefore, it is possible to eliminate the waste of restoring the contents by overlapping them.

次に、以上説明したハードウェア構成及びデータ構造を前提とする本発明システムの動作を図6〜図12のフローチャートを参照しながら順次詳細に説明する。   Next, the operation of the system of the present invention based on the hardware configuration and data structure described above will be sequentially described in detail with reference to the flowcharts of FIGS.

発信局となるPLC1aのCPU10の処理の全体を示すゼネラルフローチャートが図6に示されている。同図において、電源投入により処理が開始されると、まず、初期処理によって、通常動作モードの処理またはリストアモードの処理を実行するために必要な各種のフラグやレジスタ類の初期設定を行う(ステップ101)。   FIG. 6 shows a general flowchart showing the entire processing of the CPU 10 of the PLC 1a serving as the transmission station. In the figure, when processing is started by turning on the power, first, initial setting of various flags and registers necessary for executing normal operation mode processing or restore mode processing is performed (step 101).

続いて、メモリカード4の装着状態及びリストア起動スイッチ10−1の動作状態を参照する。ここで、メモリカード4がカードスロット10cに装着されていないか(ステップ102NO)、あるいはメモリカード4がカードスロット10cに装着されていても(ステップ102YES)、リストア起動スイッチ10−1がオフ状態であれば(ステップ103NO)、通常動作モードの処理(ステップ104)が実行される。   Subsequently, the mounting state of the memory card 4 and the operation state of the restore start switch 10-1 are referred to. Here, even if the memory card 4 is not inserted into the card slot 10c (step 102 NO) or the memory card 4 is inserted into the card slot 10c (step 102 YES), the restore activation switch 10-1 is in the OFF state. If there is (step 103 NO), the normal operation mode processing (step 104) is executed.

先に説明したように、この通常動作モードの処理(ステップ104)は、I/Oリフレッシュ処理、ユーザプログラム実行処理、周辺サービス処理などをサイクリックに実行するものである。   As described above, the normal operation mode processing (step 104) cyclically executes I / O refresh processing, user program execution processing, peripheral service processing, and the like.

これに対して、メモリカード4がカードスロット10cに装着されていて(ステップ102YES)、かつリストア起動スイッチ10−1がオン状態であると(ステップ103YES)、リストアモードの処理(ステップ105)が実行される。このリストアモード処理(ステップ105)こそが、本発明の要部をなすものである。   On the other hand, if the memory card 4 is inserted in the card slot 10c (step 102 YES) and the restore activation switch 10-1 is on (step 103 YES), the restore mode process (step 105) is executed. Is done. This restore mode process (step 105) is the main part of the present invention.

発信局側機器でのリストアモード処理の全体を示すゼネラルフローチャートが図7に示されている。同図において、処理が開始されると、メモリカード4内の記憶領域(図5(a)参照)から各機器へ送信されるべきリストア要求フレームを構成する一連の「フレーム構成データ」を読み出すと共に(ステップ201)、読み出された一連のデータを適宜処理して得られたデータとメモリ内に格納されたチェック用コードとの照合一致を確認する(ステップ202)。   FIG. 7 shows a general flowchart showing the entire restore mode processing in the transmitting station side device. In the figure, when processing is started, a series of “frame configuration data” constituting a restore request frame to be transmitted to each device is read from the storage area in the memory card 4 (see FIG. 5A). (Step 201), the collation match between the data obtained by appropriately processing the read series of data and the check code stored in the memory is confirmed (Step 202).

ここで、一連の「フレーム構成データ」を処理して得られたデータとチェック用コードとが一致しなければ(ステップ203NO)、CPUユニットの外表面に設けられたランプを点滅させるなどの異常処理が実行される(ステップ207)。これに対して、一連の「フレーム構成データ」を処理して得られたデータとチェックコードとが一致すると判定されると(ステップ203YES)、続いて、リストア対象切替スイッチ10−2の動作状態が参照される。ここで、リストア対象切替スイッチ10−2の動作状態が自機と判定された場合には(ステップ204「自機」)、ステップ206へと移行して自機のリストア処理が実行されるのに対し、ネットワーク全体と判定されると(ステップ204「ネットワーク全体」)、ステップ205へと移行して、ネットワーク全体のリストア処理が実行される。   Here, if the data obtained by processing a series of “frame configuration data” and the check code do not match (NO in step 203), abnormal processing such as blinking a lamp provided on the outer surface of the CPU unit Is executed (step 207). On the other hand, if it is determined that the data obtained by processing a series of “frame configuration data” matches the check code (YES in step 203), then the operation state of the restore target changeover switch 10-2 is changed. Referenced. If it is determined that the operation state of the restore target changeover switch 10-2 is the own machine (step 204 “own machine”), the process proceeds to step 206 and the restoration process of the own machine is executed. On the other hand, if it is determined that the entire network is present (step 204 “entire network”), the process proceeds to step 205, where the entire network is restored.

このように、図示の実施形態においては、リストアモード処理の開始に先立ち、チェックコードに基づいてメモリカードから読み出されたデータの信頼性が自動的にチェックされると共に、CPUユニット10に設けられたリストア対象切替スイッチ10−2を「自機」または「ネットワーク全体」のいずれかに設定することによって、自機のみに関するリストア処理と自機を含むネットワーク全体のリストア処理とを択一的に実行させることができるようになっている。   Thus, in the illustrated embodiment, the reliability of the data read from the memory card is automatically checked based on the check code prior to the start of the restore mode process, and is provided in the CPU unit 10. By setting the restore target changeover switch 10-2 to either “own device” or “entire network”, restore processing relating only to the own device and restoring processing of the entire network including the own device are executed alternatively. It can be made to.

次に、ネットワーク全体のリストア処理の詳細を示すフローチャート(その1〜その3)が図8〜図10に示されている。図8において処理が開始されると、まず、ステップ301においては、ネットワーク上の全ての制御用機器に関してリストア処理が完了したかどうかの判定が行われる。ここで、全ての機器に関して完了したと判定されれば(ステップ301YES)、終了処理が実行されて、例えばCPUユニットの外表面に設けられた図示しないランプが所定の態様で表示される(ステップ304)。   Next, flowcharts (No. 1 to No. 3) showing details of the restoration process of the entire network are shown in FIGS. When the process is started in FIG. 8, first, in step 301, it is determined whether or not the restore process has been completed for all control devices on the network. Here, if it is determined that all the devices have been completed (step 301 YES), an end process is executed and, for example, a lamp (not shown) provided on the outer surface of the CPU unit is displayed in a predetermined manner (step 304). ).

これに対して、リストア処理が全ての機器に関して未だ完了していないと判定されれば(ステップ301NO)、続いて、制御用機器1台分のフレーム構成データが読み出され(ステップ302)、そのフレーム構成データに含まれるノードアドレスを参照することによって、自機のデータか又は他機のデータかの判定が行われる。ここで、他機のデータと判定されると(ステップ303「他機」)、図9に進んで、対象機器に対して、デバイスタイプの送信要求コマンドを送出すると共に、そのレスポンスに基づいて、対象機器からデバイスタイプを取得する(ステップ305)。   On the other hand, if it is determined that the restoration process has not been completed for all the devices (NO in step 301), then frame configuration data for one control device is read (step 302). By referring to the node address included in the frame configuration data, it is determined whether it is the data of the own device or the data of another device. Here, when it is determined that the data is from another device (step 303 “other device”), the process proceeds to FIG. 9, and a device type transmission request command is sent to the target device, and based on the response, A device type is acquired from the target device (step 305).

続いて、対象機器から取得したデバイスタイプとメモリカードから読み出されたデバイスタイプとが照合(同一性判定)される(ステップ306)。ここで、両者が不一致と判定されると(ステップ306)、これはネットワーク上の制御用機器を交換時に誤って別の機種のものと交換してしまったような虞れが推定されるため、直ちに異常処理(ステップ311)を実行することによって、その旨をCPUユニットの外表面に設けられた図示しないランプを所定の態様で表示させることによってその旨をユーザに通知する。   Subsequently, the device type acquired from the target device and the device type read from the memory card are collated (identity determination) (step 306). Here, when it is determined that the two do not match (step 306), it is estimated that there is a possibility that the control device on the network is mistakenly replaced with another model at the time of replacement. Immediately executing the abnormality process (step 311), the fact is displayed in a predetermined manner on a lamp (not shown) provided on the outer surface of the CPU unit to notify the user.

これに対して、対象機器から取得したデバイスタイプとメモリカードから読み出されたデバイスタイプとが一致する場合には(ステップ306YES)、続いて、対象機器に対してその機器の固有IDに関する送信リクエストコマンドを送出すると共に、そのレスポンスを取得することによって、その対象機器の固有IDを取得する(ステップ307)。   On the other hand, when the device type acquired from the target device matches the device type read from the memory card (YES in step 306), subsequently, a transmission request regarding the unique ID of the device is sent to the target device. A unique ID of the target device is acquired by sending a command and acquiring the response (step 307).

続いて、対象機器から取得された機器の固有IDとメモリカードから読み出された機器の固有IDとの照合(同一性判定)が行われる(ステップ308)。ここで両者が一致する場合には(ステップ308YES)、これからリストアしようとする新たな設定情報のバージョンと既にその機器にストアされている設定情報のバージョンとが同一であることを意味するため、リストア前後で設定情報は変更しないから、無駄なリストア処理時間を生ずることがないように、以後の送信処理(ステップ309)は一切スキップされる。   Subsequently, collation (identity determination) between the unique ID of the device acquired from the target device and the unique ID of the device read from the memory card is performed (step 308). If they match (YES in step 308), it means that the version of the new setting information to be restored is the same as the version of the setting information already stored in the device. Since the setting information is not changed before and after, the subsequent transmission processing (step 309) is skipped at all so as not to cause useless restoration processing time.

これに対して、対象機器から取得された機器の固有IDとメモリカードから読み出された機器の固有IDとが不一致の場合には(ステップ308NO)、これからリストアしようとする新たな設定情報のバージョンと既にストアされている設定情報のバージョンとが異なることを意味するものであるから、直ちに、リストア要求フレームを作成して、これを対象機器のノードアドレスへと送信する。このリストア要求フレームの作成は、例えば、スタートコード、リストア要求コマンド、送信元ノードアドレス、送信先ノードアドレス、パスワード、設定情報、機器の固有ID、エンドコード等を順に配列することによって行われることは当業者であれば容易に理解されるであろう。   On the other hand, if the unique ID of the device acquired from the target device does not match the unique ID of the device read from the memory card (step 308 NO), the version of the new setting information to be restored from now on Means that the version of the setting information already stored is different, so that a restore request frame is immediately created and transmitted to the node address of the target device. The creation of the restore request frame is performed, for example, by sequentially arranging a start code, a restore request command, a transmission source node address, a transmission destination node address, a password, setting information, a device unique ID, an end code, and the like. Those skilled in the art will readily understand.

その後、ステップ310へ進んで、対象機器からのレスポンスを待機し、ここでレスポンスの内容が異常であったりあるいは所定時間内にレスポンスが到来しなければ、ステップ312へと進んで、異常処理を実行し、CPUユニットの外表面に設けられた図示しないランプを所定の態様で動作させる。これに対して、対象機器からのレスポンスが所定時間内に到来しかつそれが正常を意味するものであれば(ステップ310「正常」)、図8のフローチャートの先頭に戻って、以上の処理を、全ての機器に関して完了と判定されるまで(ステップ301)、繰り返し実行することとなる。   Thereafter, the process proceeds to step 310 and waits for a response from the target device. If the response content is abnormal or the response does not arrive within a predetermined time, the process proceeds to step 312 and the abnormality process is executed. Then, a lamp (not shown) provided on the outer surface of the CPU unit is operated in a predetermined manner. On the other hand, if the response from the target device arrives within the predetermined time and it means normal (step 310 “normal”), the process returns to the top of the flowchart of FIG. Until all the devices are determined to be complete (step 301), the process is repeatedly executed.

一方、図8のフローチャートにおいて、メモリカードから読み出されたフレーム構成データが自機のデータであると判定されると(ステップ303「自機」)、図10のフローチャートへ移って、自機に関するリストア処理が実行される。   On the other hand, if it is determined in the flowchart of FIG. 8 that the frame configuration data read from the memory card is the data of the own device (step 303 “Own device”), the process proceeds to the flowchart of FIG. Restore processing is executed.

すなわち、まず、ステップ313においては、自機のデバイスタイプ(例えば、不揮発性メモリ102に格納)とメモリカードから読み出されたデバイスタイプとの照合が行われ、両者が不一致の場合には自機において装着誤りを推定して異常処理を実行する(ステップ319)。一方、デバイスタイプが一致する場合には(ステップ313YES)、続いて自機のパスワード(例えば、不揮発性メモリ102に格納)とメモリカードから読み出されたパスワードとの照合(同一性判定)を行う(ステップ314)。ここで、両者が不一致の場合には(ステップ314NO)、リストア不許可と判定して、同様に異常処理を実行する(ステップ319)。これらの異常処理(ステップ319)は、例えば、CPUユニットの外表面に設けられた図示しないランプを所定の態様で動作させることにより行われる。   That is, first, in step 313, the device type of the device itself (for example, stored in the nonvolatile memory 102) is checked against the device type read from the memory card. At step 319, the mounting error is estimated and abnormality processing is executed. On the other hand, if the device types match (YES in step 313), the password of the own device (for example, stored in the nonvolatile memory 102) and the password read from the memory card are collated (identity determination). (Step 314). If they do not match (NO in step 314), it is determined that restoration is not permitted, and abnormal processing is similarly executed (step 319). These abnormality processes (step 319) are performed, for example, by operating a lamp (not shown) provided on the outer surface of the CPU unit in a predetermined manner.

こうして、デバイスタイプの一致及びパスワードの一致が確認された場合に限り(ステップ313YES,314YES)、自機の固有ID(例えば、不揮発性メモリ102に格納)とメモリカードから読み出された固有IDとの照合が行われる(ステップ315)。ここで、両者が一致する場合には(ステップ315YES)、既にストアされている設定情報のバージョンとこれからリストアしようとする設定情報のバージョンとが同一であるから、先ほどと同様に、無駄なリストア時間を避けるために、以後のリストア処理は一切スキップされる。   Thus, only when the device type match and the password match are confirmed (steps 313 YES and 314 YES), the unique ID of the own device (for example, stored in the nonvolatile memory 102) and the unique ID read from the memory card Are collated (step 315). Here, if they match (YES in step 315), the version of the setting information already stored and the version of the setting information to be restored are the same. In order to avoid this, the subsequent restore processing is skipped at all.

これに対して、自機の固有IDとメモリカードから読み出された固有IDとが不一致の場合には、両設定情報のバージョンが異なることを意味するから、リストアの必要性を認識して、以後の処理へと移行する。   On the other hand, if the unique ID of the own device and the unique ID read from the memory card do not match, it means that the versions of both setting information are different. Shift to subsequent processing.

この実施形態においては、PLCは複数のユニットにより構成されているため、全てのユニットのそれぞれに関して、必要により個別にリストア処理が可能とされている。すなわち、まずステップ316においては、対象ユニットの設定が全て完了しているか否かの判定を行う。ここで全て完了していると判定されれば(ステップ316YES)、続いてステップ320へ進んで、全ユニットのリストアが正常に終了したか否かの判定を行う。ここで正常終了が判定されれば(ステップ320YES)、直ちに処理は終了するのに対し、何らかの異常が判定されれば(ステップ320NO)、異常処理が実行されて(ステップ321)、例えばCPUユニットの外表面に設けられた図示しないランプが所定の態様で動作する。   In this embodiment, since the PLC is composed of a plurality of units, each of all the units can be individually restored as necessary. That is, first, in step 316, it is determined whether or not all the target units have been set. Here, if it is determined that all have been completed (YES in step 316), the process proceeds to step 320 to determine whether or not the restoration of all units has been completed normally. If the normal end is determined here (step 320 YES), the process ends immediately, whereas if any abnormality is determined (step 320 NO), the abnormal process is executed (step 321). A lamp (not shown) provided on the outer surface operates in a predetermined manner.

一方、ステップ316において、対象ユニットの設定が未だ全て完了していないと判定されれば(ステップ316NO)、続いて、対象ユニットの固有ID(例えば、不揮発性メモリ102に格納)とメモリカードから読み出された固有IDとの照合(同一性判定)が行われる(ステップ317)。ここで、両者が一致すると判定されると(ステップ317YES)、既にストアされている設定情報とこれからリストアしようとする設定情報とがバージョンが同一であるから、それらの内容も同一であると推定して、リストア処理はスキップされる。   On the other hand, if it is determined in step 316 that the setting of the target unit has not yet been completed (NO in step 316), then the unique ID of the target unit (for example, stored in the nonvolatile memory 102) and the memory card are read. Collation (identity determination) with the issued unique ID is performed (step 317). Here, if it is determined that the two match (YES in step 317), it is assumed that the already stored setting information and the setting information to be restored are the same version, so that the contents are also the same. Thus, the restore process is skipped.

これに対して、両者が不一致の場合には(ステップ317NO)、既にストアされている設定情報とこれからリストアされる設定情報とのバージョンが一致しないことから、それら設定情報の内容も同一ではないと推定して、直ちに機器の固有IDの保存処理及び対象ユニット(自機)に関するリストア処理が行われる(ステップ318)。   On the other hand, if the two do not match (NO in step 317), the setting information already stored and the setting information to be restored will not match, so the contents of the setting information are not the same. As a result of the estimation, the storage process for the unique ID of the device and the restoration process for the target unit (own apparatus) are immediately performed (step 318).

このように、リストア処理に先立っては、必ず固有ID同士の照合(同一性判定)が行われるため、多数のユニットを有するPLCに関してリストア処理を行う場合にも、それらのユニットの中で、書き換えが必要であるユニットに限ってだけ、リストア処理を行うことができるから、全体としてのリストア時間を大幅に削減することができる。   In this way, since the unique IDs are always compared (identity determination) prior to the restoration process, even when the restoration process is performed on a PLC having a large number of units, rewriting is performed in those units. Therefore, the restore process can be performed only for units that need to be restored, so that the overall restore time can be greatly reduced.

次に、リストア要求フレームを受信する受信局側機器における処理を図12のフローチャートを参照しながら説明する。同図に示される処理は、リストア要求コマンドの受信により起動される。すなわち、当該受信局側機器においては、自機に宛てて何らかのフレームが到来した場合、そのフレームのコマンドを解読することによって、リストア要求コマンドの受信を確認し、図12に示される処理を起動するのである。   Next, processing in the receiving station side device that receives the restore request frame will be described with reference to the flowchart of FIG. The processing shown in the figure is started upon reception of a restore request command. In other words, when a frame arrives at the receiving station side device, the receiving station side device confirms the reception of the restore request command by decoding the command of the frame and starts the processing shown in FIG. It is.

まず、リストア要求コマンドの受信が確認された場合には、続いて、そのリストア要求フレームに含まれるコマンド修飾データを読み出し、これを解読する(ステップ501)。続いて、ステップ502においては、自機のパスワードと受信したパスワードとの照合(同一性判定)が行われる。ここで、照合不一致と判定されると(ステップ502NO)、直ちにステップ509へと移行して、発信局となる制御用機器に対して異常レスポンス送信が行われる。これにより、発信局となる制御機器においては、リストア対象となる制御機器において何らかの異常が生じたことを認識することができる。   First, when it is confirmed that the restore request command has been received, the command modification data included in the restore request frame is read and decoded (step 501). Subsequently, in step 502, verification (identity determination) of the own password and the received password is performed. If it is determined that the verification does not match (NO in step 502), the process immediately proceeds to step 509, and an abnormal response is transmitted to the control device serving as the transmission station. As a result, the control device serving as the transmission station can recognize that some abnormality has occurred in the control device to be restored.

ステップ502において、両者のパスワードが一致すれば(ステップ502YES)、少なくともリストアは許可されたこととなるため、続いてステップ503へ進んで、自機の固有IDと受信した固有IDとの照合が行われる。ここで両者が一致すれば(ステップ503YES)、既にストアされている設定情報のバージョンとこれからリストアされる設定情報のバージョンとが同一でその内容も同一であると推定されるから、無駄なリストア処理を排除するため、以後の処理はスキップされ、直ちにステップ509へ移行して、異常レスポンスの送信が行われる。これにより、発信局となる制御用機器においては、リストア対象となる制御用機器において何らかの異常が生じたことを直ちに認識することができる。   In step 502, if the two passwords match (YES in step 502), at least the restoration is permitted. Then, the process proceeds to step 503, where the unique ID of the own device is compared with the received unique ID. Is called. If they match (YES in step 503), it is presumed that the version of the setting information already stored and the version of the setting information to be restored are the same and the contents are the same. Therefore, the subsequent processing is skipped, and the process immediately proceeds to step 509 to transmit an abnormal response. As a result, the control device serving as the transmission station can immediately recognize that some abnormality has occurred in the control device to be restored.

ステップ503において、両者の固有IDが不一致と判定されると(ステップ503NO)、以後、当該制御用機器(例えばPLC)を構成する各ユニット毎に、両固有IDが不一致であることを条件とした個別のリストア処理が実行される。   If it is determined in step 503 that the two unique IDs do not match (NO in step 503), then the two unique IDs do not match for each unit constituting the control device (for example, PLC). Individual restore processing is executed.

すなわち、まずステップ504においては、対象ユニットの設定が全て完了したかどうかの判定が行われる。ここで、対象ユニットの設定が全て完了したものと判定されると(ステップ504YES)、ステップ507へ進んで、全ユニットのリストアが正常に終了したか否かの判定が行われる。ここで正常終了の場合には(ステップ507YES)、発信局となる制御用機器に対して正常レスポンスが送信されるのに対し、正常終了でない場合には(ステップ507NO)、ステップ509へ進んで異常レスポンスの送信が行われる。これにより、発信局となる制御用機器においては、対象となる制御用機器並びにその内部の各ユニットにおいて、予定されたリストア処理が正常に終了したか否かを認識することができる。   That is, first, in step 504, it is determined whether or not all of the target units have been set. Here, if it is determined that all the setting of the target unit is completed (YES in step 504), the process proceeds to step 507, and it is determined whether or not the restoration of all the units has been normally completed. Here, in the case of normal end (step 507 YES), a normal response is transmitted to the control device serving as the transmission station, whereas in the case of normal end (step 507 NO), the process proceeds to step 509 and an error is detected. A response is sent. As a result, the control device serving as the transmission station can recognize whether or not the scheduled restoration process has been normally completed in the target control device and each unit within the control device.

ステップ504において、対象ユニットの設定が未だ完了していないと判定されると(ステップ504NO)、続いて、ステップ505へと移って、対象ユニットの固有IDと受信した固有IDとの照合(同一性判定)が行われる。ここで、両者が一致すると判定されると(ステップ505YES)、既にストアされている設定情報とこれからリストアされようとする設定情報とがバージョンが同一であるから、その内容も同一であると認識して、無駄なリストア処理を排除するため、その後の処理はスキップされる。   If it is determined in step 504 that the setting of the target unit has not yet been completed (step 504 NO), the process proceeds to step 505, where the unique ID of the target unit is compared with the received unique ID (identity) Determination) is performed. Here, if it is determined that they match (YES in step 505), since the setting information already stored and the setting information to be restored are the same version, the contents are also recognized to be the same. Thus, subsequent processing is skipped in order to eliminate useless restoration processing.

これに対して、ステップ505において、対象ユニットの固有IDと受信した固有IDとが不一致と判定されると(ステップ505NO)、いわゆるリストア処理が実行される(ステップ506)。このリストア処理においては、まず、機器の固有IDの保存処理及び対象ユニットの設定処理(受信したデータで書き換える処理)が実行される。   In contrast, if it is determined in step 505 that the unique ID of the target unit and the received unique ID do not match (NO in step 505), so-called restore processing is executed (step 506). In this restore process, first, a device unique ID storage process and a target unit setting process (a process of rewriting with received data) are executed.

このように以上の実施形態においては、発信局となる制御用機器のみならず、受信局となる制御用機器においても、機器単位またはユニット単位で固有IDの照合処理を実行するため、仮に、発信局となる制御用機器の側で固有ID照合処理を省略したとしても、受信局となる制御用機器内においては固有IDが不一致の機器ないしユニットに限ってリストア処理が実行されるため、設定情報の容量が比較的大きなシステムプログラムあるいはユーザプログラム等を対象とする場合、各受信局側における処理時間の無駄を排除し、全体としての短時間でのリストア処理が可能となる。   As described above, in the above embodiment, not only the control device serving as the transmitting station but also the control device serving as the receiving station executes the unique ID matching process in units of devices or units. Even if the unique ID verification process is omitted on the control device serving as the station, the restore process is executed only on the device or unit whose unique ID does not match in the control device serving as the receiving station. When a system program or user program having a relatively large capacity is targeted, it is possible to eliminate the waste of processing time at each receiving station and to perform restoration processing in a short time as a whole.

次に、図7のフローチャートにおいて、リストア対象が自機であると判定された場合に実行される自機のリストア処理(ステップ206)の詳細を図11のフローチャートを参照して説明する。   Next, details of the restoration processing (step 206) of the own device executed when it is determined that the restoration target is the own device in the flowchart of FIG. 7 will be described with reference to the flowchart of FIG.

同図において処理が開始されると、まず、メモリカードから読み出された自機のノードアドレスを元に自機の設定情報の検索が行われ(ステップ401)、続いて、自機の設定情報が読み出される(ステップ402)。すなわち、自機に既にストアされている設定情報が読み出されるわけである。   When the processing is started in the figure, first, the setting information of the own device is searched based on the node address of the own device read from the memory card (step 401), and then the setting information of the own device. Is read (step 402). That is, the setting information already stored in the own device is read out.

続いて、ステップ403においては、自機のデバイスタイプとメモリカードから読み出されたデバイスタイプとの照合(同一性判定)が行われる(ステップ403)。ここで両者が不一致とされると(ステップ403NO)、ステップ410へと進んで、異常処理が実行され、例えばCPUユニットの外表面に設けられた図示しないランプが所定の態様で表示される。   Subsequently, in step 403, collation (identity determination) between the device type of the device itself and the device type read from the memory card is performed (step 403). If they do not coincide with each other (NO in step 403), the process proceeds to step 410, where abnormality processing is executed, and a lamp (not shown) provided on the outer surface of the CPU unit, for example, is displayed in a predetermined manner.

ステップ403において、自機のデバイスタイプとメモリカードから読み出されたデバイスタイプとが一致すると判定される場合には(ステップ403YES)、続いてステップ404へと移行して、自機のパスワードとメモリカードから読み出されたパスワードとの照合が行われる(ステップ404)。ここで両者が不一致の場合には(ステップ404NO)、ステップ410へと進んで、同様な異常処理が実行される。   If it is determined in step 403 that the device type of the own device and the device type read from the memory card match (YES in step 403), the process proceeds to step 404, where the password and memory of the own device are stored. The password read from the card is checked (step 404). If the two do not match (NO in step 404), the process proceeds to step 410, and similar abnormality processing is executed.

ステップ404において、両者が一致すると判定される場合には(ステップ404YES)、続いてステップ405へと進んで、自機の固有IDとメモリカードから読み出された固有IDとの照合(同一性判定)が行われる。ここで、両者が一致すると判定される場合には(ステップ405YES)、両設定情報のバージョンが同一であるから、無駄なリストア処理を排除するため、以後の処理はスキップされ、ステップ410へと進んで同様な異常処理が実行される。   If it is determined in step 404 that the two match (step 404 YES), the process proceeds to step 405, where the unique ID of the own device and the unique ID read from the memory card are collated (identity determination). ) Is performed. Here, if it is determined that the two match (YES in step 405), since the setting information versions are the same, the subsequent processing is skipped and the processing proceeds to step 410 in order to eliminate useless restoration processing. A similar abnormality process is executed at.

ステップ405において、自機の固有IDとメモリカードから読み出された固有IDとが一致すると判定される場合には(ステップ405NO)、続いて各ユニット単位における個別のリストア処理が実行される。すなわち、まずステップ406においては、対象となるユニットの設定が全て完了したか否かの判定が行われる。ここで、全て完了と判定される場合には(ステップ406YES)、さらに全ユニットのリストアが正常に終了したことを条件として(ステップ409)、所定の終了処理が行われ、その制御用機器がPLCの場合には、例えばCPUユニットの外表面に設けられた図示しないランプが所定の態様で表示される(ステップ411)。これに対して、いずれかのユニットにおいて異常終了と判定されれば(ステップ409NO)、ステップ410へと進んで、同様な異常処理が実行される。   In step 405, when it is determined that the unique ID of the own device and the unique ID read from the memory card match (NO in step 405), individual restore processing for each unit is subsequently executed. That is, first, in step 406, it is determined whether or not all target units have been set. Here, when it is determined that all are completed (step 406 YES), a predetermined termination process is performed on the condition that restoration of all units has been completed normally (step 409). In this case, for example, a lamp (not shown) provided on the outer surface of the CPU unit is displayed in a predetermined manner (step 411). On the other hand, if it is determined that the abnormal end has occurred in any unit (NO in step 409), the process proceeds to step 410, and similar abnormality processing is executed.

ステップ406において、何れかのユニットにおいて未だ設定が未完であると判定されると(ステップ406NO)、続いてステップ407へ進んで、対象ユニットの固有IDとメモリカードから読み出された固有IDとの照合(同一性判定)が行われる。ここで両者が一致すると判定される場合には(ステップ407YES)、それらの設定情報はバージョンが同一であるから、内容も同一であると推定して、以後の設定処理はスキップされる。   If it is determined in step 406 that the setting has not been completed in any unit (NO in step 406), the process proceeds to step 407, where the unique ID of the target unit and the unique ID read from the memory card are set. Verification (identity determination) is performed. If it is determined that the two match (YES in step 407), the setting information has the same version, so it is estimated that the contents are the same, and the subsequent setting processing is skipped.

これに対して、ステップ407において、両IDが不一致と判定されると(ステップ407NO)、既にストアされている設定情報とこれからリストアされようとする設定情報とはバージョンが異なり、当然にその内容も異なるものと推定して、本来のリストア処理が実行される(ステップ408)。このリストア処理(ステップ408)においては、まず、メモリカードから読み出された機器の固有IDを保存すると共に、対象ユニットに関し必要な設定情報の書き換え処理が行われる。   On the other hand, if it is determined in step 407 that the two IDs do not match (NO in step 407), the setting information already stored and the setting information to be restored are different in version, and naturally the contents are also included. The original restoration process is executed by assuming that they are different (step 408). In the restoration process (step 408), first, the unique ID of the device read from the memory card is saved, and the necessary setting information rewriting process for the target unit is performed.

このように、この実施形態の制御システムにおいては、発信局として位置付けられたPLCの側において、そのCPUの外表面に設けられたリストア対象切替スイッチ10−2を自機の側に設定することによって、ネットワーク上の他の制御用機器に対し何ら影響を与えることなく、自機のみにおいてメモリカードに格納された情報に基づくリストア処理を、リストア起動スイッチ10−1の操作だけで実行させることができる。   As described above, in the control system of this embodiment, by setting the restore target changeover switch 10-2 provided on the outer surface of the CPU on the side of the PLC positioned as the transmission station, on the own device side. The restore processing based on the information stored in the memory card can be executed only by operating the restore activation switch 10-1 without affecting the other control devices on the network. .

以上説明したように、この実施形態の分散型制御システムによれば、別途あらかじめメモリカード4や不揮発性メモリ6にツール装置等を利用してリストア対象機器のそれぞれに対応するリストア要求フレームの構成データを記憶させておきさえすれば、以後、そのメモリカード4または不揮発性メモリ6を、発信局として位置付けられた制御用機器(例えば、PLC等)側に組み込むことによって、リストア起動スイッチ10−1の操作だけで、自機またはネットワーク全体を対象として、それらの制御機器に対してリストア要求フレームを自動送信させることによって、ツール装置における複雑な操作に煩わされることなく、それらの制御機器に関するリストア動作を自動的に行わせることができる。   As described above, according to the distributed control system of this embodiment, the configuration data of the restore request frame corresponding to each of the restore target devices using the tool device or the like in advance in the memory card 4 or the nonvolatile memory 6 separately. If the memory card 4 or the non-volatile memory 6 is incorporated in the control device (for example, PLC) positioned as the transmission station, the restore start switch 10-1 By simply sending the restore request frame to these control devices automatically for the device itself or the entire network, the restore operation for those control devices can be performed without being bothered by complicated operations on the tool device. It can be done automatically.

そのため、従前のように、ツール装置を現場に持ち込んだり、あるいはあらかじめ現場作業員にツール装置の使用方法を指導する必要もなくなり、設定情報の変更操作を特別な熟練作業員のみならず現場の一般の作業員にも実行させることができる。   For this reason, it is no longer necessary to bring the tool device to the site as before, or to instruct field workers in advance how to use the tool device. Can also be executed by other workers.

一方、現場作業員にリストア動作の起動は委ねつつも、設定情報作成者の側ではこれに適宜パスワードを組み込むことによって、不必要な制御用機器または不必要なユニットに対してリストアが自動的に行われてしまう危険を未然に防止することができる。   On the other hand, while leaving the restoration operation to the field worker, the setting information creator can automatically restore the unnecessary control equipment or unnecessary units by incorporating a password accordingly. The risk of being done can be prevented beforehand.

また、発信局となる制御用機器、及び/又は、受信局となる制御用機器においては、リストア動作に先立って、設定情報のバージョン確認(同一性確認)が行われるため、発信局側から受信局側へと無駄な送信処理が回避されると共に、受信局側においても無駄な設定処理が回避され、両者が相俟って、ネットワーク全体を対象とする場合においても、リストア所要時間を可及的に短縮することができる。   In addition, the control device serving as the transmission station and / or the control device serving as the reception station performs version confirmation (identity confirmation) of the setting information prior to the restore operation. In addition to avoiding unnecessary transmission processing to the station side, unnecessary setting processing is also avoided on the receiving station side. Can be shortened.

また、発信局となる制御用機器の側では、リストア起動スイッチのみならずリストア対象切替スイッチを設けて、リストア対象を自機とネットワーク全体とに選択可能としているため、自機のみに対する設定情報のリストアが必要であるにも拘わらず、ネットワーク全体に対してリストアを行わざるを得ないといった不都合を生ずることもなく、各場合に応じて適切な範囲に絞り込んで、設定情報のリストアが可能となる。   Also, on the control device side that is the source station, not only the restore start switch but also the restore target changeover switch is provided so that the restore target can be selected for the own machine and the entire network. Despite the necessity of restoration, it is possible to restore setting information by narrowing down to an appropriate range according to each case without causing the inconvenience of having to restore the entire network. .

加えて、発信局となる制御用機器の側において、ネットワーク上へとリストア要求フレームを送信するに際しては、既にメモリカードまたは不揮発性メモリ内に記憶されたフレーム構成データを単に読み出して、所定のフォーマットに従って配列するだけであるから、このような便利な機能を制御用機器の1つに組み込んだとしても、その機器においてソフトウェアを複雑な構成とする必要がなく、またそのようなソフトウェアは、単に読み出し処理とフレーム構成処理とを実行するだけであるから、ネットワーク上に新たに制御機器が追加されたり、変更されたりしたような場合にも、メモリカードや不揮発性メモリ上のデータは変更されるものの、それを処理する発信局側の処理については何ら変更することがなく、そのため、ネットワーク上のそれらの機器変更の度に発信局側のソフトウェアを再インストールする必要がないという利点がある。   In addition, when transmitting a restore request frame to the network on the control device side serving as a transmission station, the frame configuration data already stored in the memory card or the non-volatile memory is simply read out to a predetermined format. Therefore, even if such a convenient function is incorporated in one of the control devices, the software does not need to be complicated in the device, and such software is simply read out. Since only the processing and frame configuration processing are executed, even if a new control device is added or changed on the network, the data on the memory card or non-volatile memory will be changed. Therefore, there is no change in the processing on the transmitting station side that processes it. Advantage that there is no need to reinstall the software of the calling station every time their equipment changes on click.

すなわち、本発明において特筆すべき点は、従前のツール装置が有する各機器の設定情報と本発明に係るメモリカードなどに格納される設定情報の形態の違いにある。すなわち、従前のツール装置における設定情報は、図15(a)に示されるように、各機器の有するパラメータをただ羅列しただけのものであるため、これからリストア要求フレームを作成するためには、ユーザが必要なパラメータを選択して、リストア要求フレームを構成するための煩雑な処理を必要とするのに対し、本発明において例えばメモリカードに格納されるデータは、図15(b)に示されるように、パラメータを設定するためのリストア要求フレームのフレーム構成データであるため、これをただそのまま読み出して所定のフォーマットに従って配列し直すだけで、直ちにリストア要求フレームをネットワーク上に送信することができ、そのため、発信局となる制御用機器に組み込むとしても、いたずらにソフトウェアを複雑化することもないのである。   That is, the point to be noted in the present invention is the difference between the setting information of each device included in the conventional tool device and the configuration information stored in the memory card or the like according to the present invention. That is, since the setting information in the conventional tool device is simply a list of parameters of each device as shown in FIG. 15A, in order to create a restore request frame from now on, In the present invention, for example, the data stored in the memory card is as shown in FIG. 15 (b), while the complicated process for configuring the restore request frame by selecting the necessary parameters is required. In addition, since it is the frame configuration data of the restore request frame for setting the parameters, the restore request frame can be immediately transmitted on the network simply by reading it as it is and rearranging it according to a predetermined format. Even if it is incorporated into the control device that becomes the source station, the software is unnecessarily complicated. It is also of no to.

なお、以上の実施形態においては、リストア処理の起動を、発信局側に設けられたリストア起動スイッチ10−1に基づいて行ったが、発信局側の制御機器が例えばPLCであるような場合には、所定のメモリ内にユーザプログラムの実行結果で制御されるフラグを設け、このフラグのオンオフタイミングにより、リストア動作に起動をかけたり、あるいはPLCに通信を介して接続されたリモートI/Oユニットの側にリストア起動スイッチを設け、このスイッチの操作信号を通信を介してPLCに送信することで、PLC側におけるリストア動作の起動をかけるようにしても同様な効果を得ることができる。   In the above embodiment, the restoration process is activated based on the restoration activation switch 10-1 provided on the transmission station side. However, when the control device on the transmission station side is a PLC, for example. The remote I / O unit is provided with a flag controlled by the execution result of the user program in a predetermined memory, and the restore operation is activated by the on / off timing of this flag or connected to the PLC via communication The same effect can be obtained even if the restore operation is started on the PLC side by providing a restore start switch on the side and transmitting an operation signal of this switch to the PLC via communication.

また、以上の実施形態においては、フレーム構成データをPLCに保存するようにしたが、この種の産業用ネットワークに接続される他の制御用機器(例えば、リモートI/Oターミナル、セーフティネットワークコントローラ等々)に設けてもよいことは勿論である。   In the above embodiment, the frame configuration data is stored in the PLC. However, other control devices (for example, a remote I / O terminal, a safety network controller, etc.) connected to this type of industrial network are used. Of course, it may be provided.

また、以上の実施形態においては、このような自動リストア処理を実行するための処理を、発信局として位置付けられたPLCのCPUユニットに組み込んだが、発信局となる制御用機器がPLCの場合、そのようなソフトウェアが組み込まれるべきユニットは必ずしもCPUユニットに限られるものではなく、例えば通信ユニットそれ自体に設けたり、その他各種の高機能ユニットにそれぞれ設けてもよいことは勿論である。   Further, in the above embodiment, the process for executing such an automatic restoration process is incorporated in the CPU unit of the PLC positioned as the transmission station. However, when the control device serving as the transmission station is a PLC, The unit into which such software is to be incorporated is not necessarily limited to the CPU unit, but may of course be provided in the communication unit itself or in various other high-function units.

本発明によれば、設定情報発信局として位置付けられる制御用機器に対して所定の起動指令を与えさえすれば、その制御用機器から受信局として位置付けられた各制御機器のそれぞれに対して、リストア要求フレームが自動的に送信されると共に、これを受けて各制御用機器のそれぞれにおいては、自動的にリストア動作が行われるから、従前のように、操作の煩雑なツール装置を使用せずとも、ネットワークを介して結ばれた他の制御用機器の設定情報を、誰でも簡単に、リストアさせることが可能となる。   According to the present invention, as long as a predetermined activation command is given to the control device positioned as the setting information transmission station, the control device restores each control device positioned as the receiving station. Since the request frame is automatically transmitted and each control device receives the request frame, the restore operation is automatically performed, so that it is not necessary to use a complicated tool device as before. Anyone can easily restore the setting information of other control devices connected via the network.

しかも、フレーム構成データ記憶手段には、前記ツール装置からフィールドネットワーク上に送り出されるべきリストア要求フレームのフレーム構成データそのものが記憶されているので、発信局として位置付けられた制御用機器の側では、単に、フレーム構成データ記憶手段から読み出されたデータを所定のフォーマットにしたがって配列・送信するだけでリストア要求フレームの自動送信動作を実現することができ、発信局として位置付けられた制御用機器のソフトウェア構成を徒に複雑化することもない。   In addition, since the frame configuration data itself of the restore request frame to be sent from the tool device to the field network is stored in the frame configuration data storage means, on the side of the control device positioned as the transmission station, The software configuration of the control device positioned as the transmitting station can be realized by automatically transmitting the restore request frame by simply arranging and transmitting the data read from the frame configuration data storage means according to a predetermined format. Is not complicated.

加えて、ネットワーク上における制御用機器の増減、変更等の情報は、別途ツール装置で各制御用機器に対するリストア要求フレームを作成する際にフレーム構成データそのものに既に反映されているため、そのようなネットワーク上における制御用機器の増減、変更などがあったとしても、発信局として位置付けられた制御用機器側のソフトウェア構成それ自体には影響するとがなく、そのため、そのような制御用機器の増減、変更があっても、発信局として位置付けられた制御用機器側のソフトウェアは影響を受けない利点がある。   In addition, information on increase / decrease, change, etc. of control devices on the network is already reflected in the frame configuration data itself when creating a restore request frame for each control device with a separate tool device. Even if there is an increase / decrease or change in the control device on the network, it does not affect the software configuration of the control device positioned as the source station itself. Even if there is a change, there is an advantage that the software on the control device side positioned as the transmission station is not affected.

本発明が適用される分散型制御システムの一例を示すシステム構成図である。1 is a system configuration diagram illustrating an example of a distributed control system to which the present invention is applied. 1台のPLCに他の全てのノードに対するリストア要求のフレーム構成データを保持させる場合の説明図(その1)である。It is explanatory drawing (the 1) in the case of making one PLC hold | maintain the frame structure data of the restore request with respect to all the other nodes. 1台のPLCに他の全てのノードに対するリストア要求のフレーム構成データを保持させる場合の説明図(その2)である。It is explanatory drawing (the 2) in the case of making one PLC hold | maintain the frame structure data of the restore request with respect to all the other nodes. 1台のPLCに他の全てのノードに対するリストア要求のフレーム構成データを保持させる場合の説明図(その3)である。FIG. 10 is an explanatory diagram (part 3) in a case where one PLC holds frame configuration data of a restore request for all other nodes. メモリカードまたは不揮発性メモリに格納するフレーム構成データのデータ構造を示す説明図である。It is explanatory drawing which shows the data structure of the frame structure data stored in a memory card or a non-volatile memory. 発信局となるPLC(CPU)の処理の全体を示すゼネラルフローチャートである。It is a general flowchart which shows the whole process of PLC (CPU) used as a transmission station. 発信局側機器でのリストアモード処理の全体を示すゼネラルフローチャートである。It is a general flowchart which shows the whole restore mode process in a transmission station side apparatus. ネットワーク全体のリストア処理の詳細を示すフローチャート(その1)である。It is a flowchart (the 1) which shows the detail of the restore process of the whole network. ネットワーク全体のリストア処理の詳細を示すフローチャート(その2)である。It is a flowchart (the 2) which shows the detail of the restore process of the whole network. ネットワーク全体のリストア処理の詳細を示すフローチャート(その3)である。12 is a flowchart (part 3) showing details of a restoration process for the entire network. 自機のリストア処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the restore process of an own machine. 受信局側機器での処理を示すフローチャートである。It is a flowchart which shows the process in the receiving station side apparatus. PLCのハードウェアブロック図である。It is a hardware block diagram of PLC. リモートI/Oターミナルのハードウェアブロック図である。It is a hardware block diagram of a remote I / O terminal. ツールとメモリカードとで設定情報の相違を示す説明図である。It is explanatory drawing which shows the difference in setting information with a tool and a memory card.

符号の説明Explanation of symbols

1a 発信局として位置付けられるPLC
1b 受信局として位置付けられるPLC
2a〜2d 受信局として位置付けられるリモートI/Oターミナル
3 ネットワーク
4 メモリカード
4a フレーム構成データ
5 ハンディツール
5a カードスロット
6 不揮発性メモリ
6a フレーム構成データ
10 CPUユニット
10−1 リストア起動スイッチ
10−2 リストア対象切替スイッチ
10a 表示部
10b 操作部
10c カードスロット
11 通信ユニット
12 I/Oユニット
101 メモリカードインタフェース
102 不揮発性メモリ
103 RAM
104 MPUブロック
105 バス制御部
106 表示部
107 設定部
108 USBインタフェース
111 不揮発性メモリ
112 RAM
113 MPUブロック
114 バス制御部
115 表示部
116 設定部
117 通信物理層
201 MPUブロック
202 I/O回路
203 通信物理層
204 不揮発性メモリ
205 表示部
206 設定部
1a PLC positioned as a source station
1b PLC positioned as receiving station
2a to 2d Remote I / O terminals positioned as receiving stations 3 Network 4 Memory card 4a Frame configuration data 5 Handy tool 5a Card slot 6 Non-volatile memory 6a Frame configuration data 10 CPU unit 10-1 Restore start switch 10-2 Restore target Changeover switch 10a Display unit 10b Operation unit 10c Card slot 11 Communication unit 12 I / O unit 101 Memory card interface 102 Non-volatile memory 103 RAM
104 MPU block 105 Bus control unit 106 Display unit 107 Setting unit 108 USB interface 111 Non-volatile memory 112 RAM
113 MPU block 114 Bus control unit 115 Display unit 116 Setting unit 117 Communication physical layer 201 MPU block 202 I / O circuit 203 Communication physical layer 204 Non-volatile memory 205 Display unit 206 Setting unit

Claims (6)

PLCやPLCのリモートI/Oターミナル等のような制御用機器を複数台分散配置すると共に、それらをフィールドネットワークを介して結んで構成され、
前記複数台の制御用機器のそれぞれには、
その機器の動作仕様を定義するための設定情報がストアされる設定情報記憶手段と、
前記設定情報記憶手段にストアされた設定情報の内容を、フィールドネットワークを介して受信されるリストア要求フレームに応答して自動的にリストアするリストア動作自動実行手段とが含まれており、
それにより、前記フィールドネットワークに直接又は間接に接続されたツール装置を操作して、フィールドネットワーク上にリストア要求フレームを送り出すことにより、そのリストア要求フレームの送信先となる制御用機器の設定情報記憶手段の内容を遠隔操作でリストア可能とされた分散型制御システムにおいて、
前記制御用機器の少なくとも1つを、設定情報発信局として位置付けると共に、その他の制御用機器を設定情報受信局として位置付け、
前記発信局として位置付けられた制御用機器には、
前記受信局として位置付けられた制御用機器の設定情報記憶手段の記憶内容を遠隔操作でリストアする際に、前記ツール装置からフィールドネットワーク上に送り出されるべきリストア要求フレームのフレーム構成データを、前記受信局として位置付けられた制御用機器のそれぞれに対応させて一連に記憶させたフレーム構成データ記憶手段と、
所定の起動指令が与えられるのに応答して、前記フレーム構成データ記憶手段に一連に記憶されたフレーム構成データを各受信局毎に順次に読み出してリストア要求フレームを作成すると共に、こうして作成されたリストア要求フレームを前記フィールドネットワーク上へと送り出す動作を実行するリストア要求自動送信手段とが設けられており、
それにより、前記発信局となる制御用機器に対して所定の起動指令を与えるだけで、前記ツール装置を操作することなく、前記受信局となる各制御用機器の設定情報記憶手段の内容を遠隔操作でリストア可能としたことを特徴とする分散型制御システム。
A plurality of control devices such as PLCs and PLC remote I / O terminals are distributed and connected via a field network.
Each of the plurality of control devices includes
Setting information storage means for storing setting information for defining the operation specifications of the device;
Restore operation automatic execution means for automatically restoring the contents of the setting information stored in the setting information storage means in response to a restore request frame received via a field network,
Thus, by operating a tool device directly or indirectly connected to the field network and sending a restore request frame over the field network, setting information storage means for the control device that is the destination of the restore request frame In a distributed control system that can restore the contents of
Positioning at least one of the control devices as a setting information transmitting station, positioning other control devices as setting information receiving stations,
In the control device positioned as the transmitting station,
When the stored contents of the setting information storage means of the control device positioned as the receiving station are restored by remote operation, the frame configuration data of the restore request frame to be sent out on the field network from the tool device is stored in the receiving station. Frame configuration data storage means stored in series corresponding to each of the control devices positioned as,
In response to a predetermined start command being given, the frame configuration data stored in series in the frame configuration data storage means is sequentially read out for each receiving station to create a restore request frame. A restore request automatic transmission means for executing an operation of sending a restore request frame onto the field network,
As a result, the contents of the setting information storage means of each control device serving as the receiving station can be remotely transmitted without operating the tool device only by giving a predetermined start command to the control device serving as the transmitting station. A distributed control system that can be restored by operation.
前記リストア要求自動送信手段は、リストア要求送信動作に先立って、送信先となる制御機器に現在ストアされている設定情報とリストア予定の設定情報との同一性を判定すると共に、同一性が否定されたときにかぎり、その制御機器に対するリストア要求送信動作を実行し、同一性が肯定されるときには、その制御機器に対するリストア要求送信動作をスキップする、
ように仕組まれている、ことを特徴とする請求項1に記載の分散型制御システム。
Prior to the restore request transmission operation, the restore request automatic transmission means determines whether the setting information currently stored in the control device as the transmission destination and the setting information to be restored are identical, and the identity is denied. Only when the restore request transmission operation for the control device is executed, and when the identity is affirmed, the restore request transmission operation for the control device is skipped.
The distributed control system according to claim 1, wherein the distributed control system is structured as described above.
前記リストア動作自動実行手段は、リストア動作に先立って、受信されたリストア要求に付されたパスワードと自機に保存されたパスワードとの同一性を判定すると共に、同一性が肯定されるときにかぎり、その受信された設定情報に基づくリストア動作を実行し、同一性が否定されるときには、その受信された設定情報に基づくリストア動作をスキップするように仕組まれている、ことを特徴とする請求項1又は2に記載の分散型制御システム。   Prior to the restore operation, the restore operation automatic execution means determines the identity between the password attached to the received restore request and the password stored in the own device, and only when the identity is affirmed. The restore operation based on the received setting information is executed, and when the identity is denied, the restore operation based on the received setting information is skipped. 3. A distributed control system according to 1 or 2. 前記リストア要求自動送信手段は、リストア要求送信動作に先立って、送信先となる制御用機器のデバイスタイプとリストア予定の制御情報に付されたデバイスタイプとの同一性を判定すると共に、同一性が肯定されるときにかぎり、その制御機器に対するリストア要求送信動作を実行し、同一性が否定されるときには、その制御機器に対するリストア要求送信動作をスキップする、
ように仕組まれている、ことを特徴とする請求項1に記載の分散型制御システム。
Prior to the restore request transmission operation, the restore request automatic transmission means determines whether the device type of the control device as the transmission destination and the device type attached to the control information to be restored are identical. Only when the result is affirmative, the restore request transmission operation for the control device is executed. When the identity is denied, the restore request transmission operation for the control device is skipped.
The distributed control system according to claim 1, wherein the distributed control system is structured as described above.
前記所定の起動指令が、当該発信局となる制御用機器に備え付けられたスイッチの操作で与えられる、ことを特徴とする請求項1に記載の分散型制御システム。   2. The distributed control system according to claim 1, wherein the predetermined activation command is given by an operation of a switch provided in a control device serving as the transmission station. 前記受信局となる制御用機器のそれぞれには、リストア動作の実行状況を発信局となる制御用機器へと通知するための通知手段が設けられている、ことを特徴とする請求項1に記載の分散型制御システム。   The notification device for notifying the execution status of the restore operation to the control device serving as the transmission station is provided in each control device serving as the reception station. Decentralized control system.
JP2007173536A 2007-06-29 2007-06-29 Distributed control system Active JP4888718B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007173536A JP4888718B2 (en) 2007-06-29 2007-06-29 Distributed control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007173536A JP4888718B2 (en) 2007-06-29 2007-06-29 Distributed control system

Publications (2)

Publication Number Publication Date
JP2009015401A true JP2009015401A (en) 2009-01-22
JP4888718B2 JP4888718B2 (en) 2012-02-29

Family

ID=40356264

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007173536A Active JP4888718B2 (en) 2007-06-29 2007-06-29 Distributed control system

Country Status (1)

Country Link
JP (1) JP4888718B2 (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011170581A (en) * 2010-02-18 2011-09-01 Omron Corp Safety control device and method for controlling safety control device
JP2011215814A (en) * 2010-03-31 2011-10-27 Keyence Corp Programmable controller, setting value backup restoration system and setting value backup restoration unit
JP2011215822A (en) * 2010-03-31 2011-10-27 Keyence Corp Programmable controller, setting value change system, arithmetic display device and setting value change unit
JP2014119907A (en) * 2012-12-14 2014-06-30 Omron Corp Communication unit, communication system, control method, and program
JP2014127055A (en) * 2012-12-27 2014-07-07 Jtekt Corp Peripheral device of plc
WO2014115870A1 (en) * 2013-01-25 2014-07-31 オムロン株式会社 Control device and operation method for control device
KR20150010790A (en) 2012-07-30 2015-01-28 미쓰비시덴키 가부시키가이샤 Expansion unit
US9577882B2 (en) 2014-04-24 2017-02-21 Mitsubishi Electric Corporation Control system, master station, and remote station
CN107250932A (en) * 2014-11-18 2017-10-13 西门子公司 Semantic situation in programmable logic controller (PLC)
EP3531219A1 (en) * 2018-02-27 2019-08-28 OMRON Corporation Control system and functional unit
US10520935B2 (en) 2014-11-12 2019-12-31 Kabushiki Kaisha Toshiba Distributed control system, control device, control method, and computer program product
WO2020105372A1 (en) * 2018-11-22 2020-05-28 オムロン株式会社 Control system, control method, and drive device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE112014003865A5 (en) * 2014-10-02 2016-06-09 Mitsubishi Electric Corporation Control device for use in a distributed control system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001209413A (en) * 2000-01-25 2001-08-03 Yaskawa Electric Corp Plc with automatic program transfer function and engineering equipment and its control method
JP2001249880A (en) * 2000-03-06 2001-09-14 Canon Inc System and device for managing peripheral device, its control method and computer readable memory
JP2002297207A (en) * 2001-03-30 2002-10-11 Omron Corp Backup processor
JP2005284842A (en) * 2004-03-30 2005-10-13 Nec Corp Data backup system
JP2007102764A (en) * 2005-09-09 2007-04-19 Omron Corp Remote terminal device of programmable controller

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001209413A (en) * 2000-01-25 2001-08-03 Yaskawa Electric Corp Plc with automatic program transfer function and engineering equipment and its control method
JP2001249880A (en) * 2000-03-06 2001-09-14 Canon Inc System and device for managing peripheral device, its control method and computer readable memory
JP2002297207A (en) * 2001-03-30 2002-10-11 Omron Corp Backup processor
JP2005284842A (en) * 2004-03-30 2005-10-13 Nec Corp Data backup system
JP2007102764A (en) * 2005-09-09 2007-04-19 Omron Corp Remote terminal device of programmable controller

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011170581A (en) * 2010-02-18 2011-09-01 Omron Corp Safety control device and method for controlling safety control device
JP2011215814A (en) * 2010-03-31 2011-10-27 Keyence Corp Programmable controller, setting value backup restoration system and setting value backup restoration unit
JP2011215822A (en) * 2010-03-31 2011-10-27 Keyence Corp Programmable controller, setting value change system, arithmetic display device and setting value change unit
KR20150010790A (en) 2012-07-30 2015-01-28 미쓰비시덴키 가부시키가이샤 Expansion unit
US9442874B2 (en) 2012-07-30 2016-09-13 Mitsubishi Electric Corporation Expansion unit
JP2014119907A (en) * 2012-12-14 2014-06-30 Omron Corp Communication unit, communication system, control method, and program
JP2014127055A (en) * 2012-12-27 2014-07-07 Jtekt Corp Peripheral device of plc
JP2014146077A (en) * 2013-01-25 2014-08-14 Omron Corp Control device and method for operating control device
WO2014115870A1 (en) * 2013-01-25 2014-07-31 オムロン株式会社 Control device and operation method for control device
US9577882B2 (en) 2014-04-24 2017-02-21 Mitsubishi Electric Corporation Control system, master station, and remote station
US10520935B2 (en) 2014-11-12 2019-12-31 Kabushiki Kaisha Toshiba Distributed control system, control device, control method, and computer program product
CN107250932A (en) * 2014-11-18 2017-10-13 西门子公司 Semantic situation in programmable logic controller (PLC)
EP3531219A1 (en) * 2018-02-27 2019-08-28 OMRON Corporation Control system and functional unit
JP2019148979A (en) * 2018-02-27 2019-09-05 オムロン株式会社 Control system and function unit
JP7183545B2 (en) 2018-02-27 2022-12-06 オムロン株式会社 Control system and functional units
WO2020105372A1 (en) * 2018-11-22 2020-05-28 オムロン株式会社 Control system, control method, and drive device

Also Published As

Publication number Publication date
JP4888718B2 (en) 2012-02-29

Similar Documents

Publication Publication Date Title
JP4888718B2 (en) Distributed control system
JP5960673B2 (en) How to configure field devices on a network
JP5623593B2 (en) Rack and method for simultaneously updating a basic input / output system
EP1877918B1 (en) System and method for scheduling device management
JP4947175B2 (en) Engineering tools
EP2456257B1 (en) Method and system for upgrading wireless data card
JP2009053920A (en) Program management system for on-vehicle electronic control unit
WO2015083243A1 (en) Engineering tool program and network program
JP3754369B2 (en) Automation device and update method
JP2017167593A (en) Relay device, relay device control method, control program, and recording medium
WO2019207729A1 (en) Industrial computer, industrial computer system, operating system update method, and program
TWI590012B (en) Control machine for distributed control system and distributed control basic module
JP2006277733A (en) Programmable controller system
JP2006318394A (en) Management method for uninterruptible power supply device in network system
JP5725974B2 (en) Power distribution monitoring control system
JP4411714B2 (en) PLC with automatic program transfer function, engineering device and control method thereof
US9442874B2 (en) Expansion unit
JP4748326B2 (en) Distributed control system
JP5174718B2 (en) Network system and network adapter
WO2019082738A1 (en) Communication adaptor and program updating method for communication adaptor
JP5687171B2 (en) Controller, monitoring unit, and sequence program update method
CN116909678A (en) Implementation method and system of containerized PLC and management server
JP5130836B2 (en) Multi-CPU system migration method and CPU system
CN104813615A (en) Method for operating a field device capable of a field bus protocol
JP2009223357A (en) Device and parameter setting method thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090115

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110126

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110127

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110325

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110427

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110615

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111130

R150 Certificate of patent or registration of utility model

Ref document number: 4888718

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20141222

Year of fee payment: 3