JPH1011325A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPH1011325A
JPH1011325A JP16449896A JP16449896A JPH1011325A JP H1011325 A JPH1011325 A JP H1011325A JP 16449896 A JP16449896 A JP 16449896A JP 16449896 A JP16449896 A JP 16449896A JP H1011325 A JPH1011325 A JP H1011325A
Authority
JP
Japan
Prior art keywords
external device
software
runaway
memory
mpu
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.)
Withdrawn
Application number
JP16449896A
Other languages
Japanese (ja)
Inventor
Katsuhiko Ichimura
勝彦 市村
Goji Nakada
剛司 中田
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 JP16449896A priority Critical patent/JPH1011325A/en
Publication of JPH1011325A publication Critical patent/JPH1011325A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PROBLEM TO BE SOLVED: To speedily detect a software run away and speedily take measures against trouble after disconnecting a faulty system immediately. SOLUTION: A sequence engine 22 always judges whether or not trouble occurs on a handshake basis. The sequence engine 22 if detecting trouble inhibits an MPU 1 from accessing an I/O memory 5 by using a bus controller 21. Then the sequence engine 22 judges whether or not write address is needed to stops software PLC itself and ends the process when the write access is not necessary, and further judges whether or not I/O update is needed when the write access is necessary. The sequence engine 22 when judging the I/O update is necessary updates the I/O memory 5. When it is judged that the I/O update is not necessary, on the other hand, the software PLC itself is stopped and the process is finished.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はプログラマブルコン
トローラに関し、特に汎用OSの管理下で稼働するパソ
コンを用いて外部機器を制御するプログラマブルコント
ローラに関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a programmable controller, and more particularly, to a programmable controller for controlling an external device using a personal computer operated under the control of a general-purpose OS.

【0002】[0002]

【従来の技術】外部機器を制御するために、専用のプロ
グラマブルコントローラが使用されているが、近年、汎
用のパソコンを使用したプログラマブルコントローラ、
すなわちソフトプログラマブルコントローラ(以下、ソ
フトPLCという)が使用され始めている。
2. Description of the Related Art A dedicated programmable controller is used to control an external device. In recent years, a programmable controller using a general-purpose personal computer has been used.
That is, a soft programmable controller (hereinafter, referred to as a soft PLC) has begun to be used.

【0003】このソフトPLCは、パソコンをスタンド
アローン型で使用する場合のみならず、ネットワーク型
でも使用しており、しかも従来のパソコンで使用される
汎用OS(Operating System) 、例えばWINDOWS
の管理下で外部機器を制御するようになっている。
This software PLC is used not only when a personal computer is used in a stand-alone type but also in a network type. In addition, a general-purpose OS (Operating System) used in a conventional personal computer, for example, WINDOWS
The external device is controlled under the management of.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、このよ
うな従来のソフトPLCでは、上述したように汎用のO
Sを使用しているため、通常のPLCに使用されている
専用OSに比べ、信頼性が低くソフトウエア暴走が発生
する恐れが多分にある。
However, in such a conventional soft PLC, as described above, a general-purpose OPC is used.
Since S is used, the reliability is lower than that of a dedicated OS used for a normal PLC, and there is a possibility that software runaway may occur.

【0005】一旦、ソフトウエ暴走が発生すると、外部
機器を所定時間以内にスキャン制御することができなく
なり、外部機器が誤動作を起こしてしまうばかりでなく
システム全体がハングアップしてしまう。
[0005] Once software runaway occurs, external devices cannot be controlled for scanning within a predetermined period of time, causing not only malfunction of the external devices but also hang-up of the entire system.

【0006】このように、ソフトウエア暴走が発生する
と、外部機器に非常に重大な影響を与えるにも拘らず、
従来の汎用OS下で使用されたソフトPLCでは、ソフ
トウエア暴走による障害検出、障害系の切離し、障害対
策が迅速になされないという問題点があった。
[0006] As described above, when software runaway occurs, it has a very serious effect on external devices,
In a conventional soft PLC used under a general-purpose OS, there is a problem that failure detection due to software runaway, disconnection of a failure system, and failure countermeasures are not performed promptly.

【0007】例えば、スタンドアローン型でなるソフト
PLCでは、ソフトウエア暴走による障害検出すら不可
能であり、また、ネットワーク型でなるソフトPLCで
は、障害の検出のみ可能であるが、障害系の切離し、障
害対策が迅速に行われない。
For example, in a stand-alone type soft PLC, it is impossible to detect even a fault due to a software runaway, and in a network type soft PLC, only a fault can be detected. Failure measures are not taken promptly.

【0008】そこで、本発明は上述の問題点に鑑み、汎
用OSの管理下で稼働するソフトPLCにおいて、ソフ
トウエア暴走を迅速に検出して、直ちに障害系を切離し
たのち、障害対策を迅速に行うプログラマブルコントロ
ーラを提供することを目的とする。
In view of the above-mentioned problems, the present invention quickly detects a software runaway in a software PLC operating under the control of a general-purpose OS, immediately disconnects a faulty system, and quickly takes countermeasures against the fault. It is an object of the present invention to provide a programmable controller that performs the operation.

【0009】[0009]

【課題を解決するための手段】上述の目的を達成するた
めに、請求項1記載の発明は、汎用OSの管理下で稼働
するパソコンを用いて外部機器を制御するプログラマブ
ルコントローラにおいて、上記パソコンには拡張ボード
を有しており、この拡張ボードが、ソフトウエア暴走を
検出する暴走検出手段と、この暴走検出手段がソフトウ
エア暴走送付を検出すると、所定の外部機器を切り離す
I/O保護手段と、このI/O保護手段で、所定の外部
機が切り離されると、予め設定された処理を外部機器に
実行させるI/O更新手段とを具備することを特徴とす
る。
According to one aspect of the present invention, there is provided a programmable controller for controlling an external device using a personal computer operated under the control of a general-purpose OS. Has an expansion board, the expansion board has runaway detection means for detecting software runaway, and I / O protection means for disconnecting a predetermined external device when the runaway detection means detects software runaway transmission. The I / O protection means includes an I / O updating means for causing an external device to execute a preset process when a predetermined external device is disconnected.

【0010】請求項2記載の発明は、請求項1記載の発
明は、上記暴走検出手段が、上記パソコンに設けられて
いるMPUにより、所定時間ごとに所定コードが格納さ
れるコード格納手段と、時間を計測するタイマとを有し
ており、このタイマが所定時間経過するごとに、上記コ
ード格納手段に格納されているコードを読み出し、読み
出されたコードが上記MPUにより格納された所定コー
ドでない場合には、ソフトウエアが暴走していると判断
する一方、読み出されたコードが上記MPUにより格納
された所定コードである場合にはソフトウエアが暴走が
発生していないと判断し、上記コードをクリアすること
を特徴とする。
According to a second aspect of the present invention, in the first aspect of the present invention, the runaway detecting means includes code storage means for storing a predetermined code at predetermined time intervals by an MPU provided in the personal computer; And a timer for measuring time. The timer reads a code stored in the code storage means each time a predetermined time elapses, and the read code is not a predetermined code stored by the MPU. In this case, the software determines that runaway has occurred, while if the read code is the predetermined code stored by the MPU, the software determines that runaway has not occurred, and Is cleared.

【0011】請求項3記載の発明は、請求項1記載の発
明において、上記I/O保護手段が、上記暴走検知手段
によりソフトウエア暴走が検知されると、上記パソコン
に設けられているMPUに対し、外部機器の動作を示す
データが格納されたI/Oメモリへのアクセスを禁止さ
せることを特徴とする。
According to a third aspect of the present invention, in the first aspect of the present invention, when the software runaway is detected by the runaway detection means, the I / O protection means transmits the MPU provided in the personal computer to the MPU. On the other hand, access to an I / O memory in which data indicating the operation of an external device is stored is prohibited.

【0012】請求項4記載の発明は、請求項1記載の発
明において、上記I/O更新手段が、ソフトウエア暴走
が検出された場合のフェイルセーフデータを格納するフ
ェイルセーフデータ格納手段を有しており、このフェイ
ルセーフデータ格納手段に格納されたフェイルセーフデ
ータを、外部機器の動作を示すデータが格納されている
I/Oメモリに書き替え更新したのち、上記MPUに対
して上記I/Oメモリに対するアクセスを許可すること
特徴とする。
According to a fourth aspect of the present invention, in the first aspect of the present invention, the I / O updating means has fail-safe data storage means for storing fail-safe data when software runaway is detected. After rewriting the fail-safe data stored in the fail-safe data storage means to an I / O memory storing data indicating the operation of the external device, the I / O memory is rewritten to the MPU. The feature is that access to the memory is permitted.

【0013】請求項5記載の発明は、請求項1乃至4の
いづれかに記載の発明において、上記拡張ボードが、シ
ーケンスエンジンを有することを特徴とする。
According to a fifth aspect of the present invention, in any one of the first to fourth aspects of the present invention, the expansion board has a sequence engine.

【0014】本発明によれば、パソコンに装着されてい
る拡張ボードが、ソフトウエア暴走を検出すると、所定
の外部機器を切り離すため、ソフトウエアの暴走による
外部機器の誤動作の発生を防止する。
According to the present invention, when the expansion board mounted on the personal computer detects a software runaway, a predetermined external device is disconnected, thereby preventing the malfunction of the external device due to the software runaway.

【0015】そして、所定の外部機が切り離されると、
予め設定された処理を外部機器に実行させるため、外部
機器システムが停止することがない。
Then, when a predetermined external device is disconnected,
Since the external device executes the preset processing, the external device system does not stop.

【0016】特に、タイマが所定時間経過するごとに、
メモリに格納されているコードを読み出し、読み出され
たコードがMPUにより格納された所定コードでない場
合には、ソフトウエアが暴走していると判断する一方、
読み出されたコードがMPUにより格納された所定コー
ドである場合にはソフトウエアが暴走が発生していない
と判断する。
In particular, every time the timer elapses a predetermined time,
The code stored in the memory is read, and if the read code is not the predetermined code stored by the MPU, it is determined that the software is out of control.
If the read code is a predetermined code stored by the MPU, the software determines that no runaway has occurred.

【0017】[0017]

【発明の実施の形態】以下、本発明に係るソフトPLC
の実施形態を図面を参照して説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a soft PLC according to the present invention will be described.
Will be described with reference to the drawings.

【0018】図1は本発明に係るソフトPLCの一実施
形態の構成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of an embodiment of a soft PLC according to the present invention.

【0019】この実施形態のソフトPLCは、MPU
1,後述するフェイルセーフ機能およびラダーアクセラ
レータ機能を有する拡張ボード2,汎用OSが格納され
ているシステムプログラムメモリ(SM)3,外部機器
システムを制御するラダープログラム(シーケンスプロ
グラム)が格納されているユーザプログラムメモリ(U
M)4,外部機器、例えばカウンタやタイマを起動させ
るデータを格納するI/Oメモリ5,および外部機器の
データのインターフェースを行う転送を入出力回路6と
を有しており、これらがシステムバス10を介して接続
されて構成されている。
The soft PLC according to this embodiment includes an MPU
1, an expansion board having a fail-safe function and a ladder accelerator function described later 2, a system program memory (SM) storing a general-purpose OS, and a user storing a ladder program (sequence program) for controlling an external device system. Program memory (U
M) 4, an external device, for example, an I / O memory 5 for storing data for activating a counter or a timer, and an input / output circuit 6 for transferring the data of the external device to and from the system bus. 10 are connected.

【0020】拡張ボード2は、MPU1と後述するハン
ドシェーク方法を用いてソフトウエア暴走を検出し(障
害検出)、システム上の所定外部機器をシステム上から
切り離し(I/O保護)、その後I/Oメモリ5をリフ
レッシュするもので、バスコントローラ21と、シーケ
ンスエンジン22と、フェイルセーフ機能およびラダー
アクセラレータ機能を処理するシーケンスプログラムを
格納するユーザメモリ23と、ソフトウエア暴走を検知
した後、切り離された外部機器を復旧させるフェイルセ
ーフデータを格納するデータメモリ(DM)24と、時
間を計測するタイマ25と、ハンドシェークメモリ(H
M)26とから構成されている。
The expansion board 2 detects a software runaway (failure detection) by using the MPU 1 and a handshake method described later, disconnects a predetermined external device on the system from the system (I / O protection), and then performs I / O protection. The memory 5 is refreshed. The bus controller 21, the sequence engine 22, the user memory 23 for storing a sequence program for processing the fail-safe function and the ladder accelerator function, and the external device disconnected after detecting a software runaway A data memory (DM) 24 for storing fail-safe data for restoring the device, a timer 25 for measuring time, and a handshake memory (H
M) 26.

【0021】バスコントローラ21は、システムバス1
0の使用回線をコントロールするものであり、ソフトウ
エア暴走が検知された場合、バス10の使用権をMPU
1から剥奪し、拡張ボード2に持たせる。
The bus controller 21 includes a system bus 1
0 to control the use of the bus 10, and when software runaway is detected, the right to use the bus 10 is
1 and the extension board 2 holds it.

【0022】シーケンスエンジン22は、フェイルセー
フ機能およびラダーアクセラレータ機能を処理するもの
である。ここで、ラダーアクセラレータ機能とは、MP
U1が実行する処理の一部または全部を高速で処理する
機能である。この機能についたは、本発明と直接の関係
がないので、これ以上の説明を省略する。
The sequence engine 22 processes a fail-safe function and a ladder accelerator function. Here, the ladder accelerator function means MP
This is a function for processing a part or all of the processing executed by U1 at high speed. Since this function has no direct relation to the present invention, further description is omitted.

【0023】ハンドシェークメモリ26は、後述するハ
ンドシェーク処理において使用されるもので、MPU1
および拡張ボード2自身がそれぞれ所定間隔ごとに、所
定のコードが格納されるものである。
The handshake memory 26 is used in a handshake process which will be described later.
The extension board 2 itself stores predetermined codes at predetermined intervals.

【0024】ここで、この実施形態のソフトPLCのハ
ンドシェーク方法によるソフトウエア暴走を検知する方
法を図2を参照して説明する。
Here, a method of detecting a software runaway by the handshaking method of the soft PLC of this embodiment will be described with reference to FIG.

【0025】図に示すように、MPU1は、所定時間t
1間隔で拡張ボード2上のハンドシェークメモリ26に
所定の内容Aを書き込む(図中の,および参
照)。
As shown in the figure, the MPU 1 operates for a predetermined time t.
The predetermined contents A are written into the handshake memory 26 on the extension board 2 at one interval (see and in the figure).

【0026】その後、シーケンスエンジン22は、タイ
マ25が所定時間t2(t1≦t2)経過すると、ハン
ドシェークメモリ24に格納されている内容をチェック
する。
Thereafter, the sequence engine 22 checks the contents stored in the handshake memory 24 when the timer 25 elapses a predetermined time t2 (t1 ≦ t2).

【0027】シーケンスエンジン22は、ハンドシェー
クメモリ26に格納されているものがAである場合には
(図中の,参照)、ソフトウエアが正常に実行され
ているものと判断し、このハンドシェークメモリ26を
0に書き替える(図中のおよび参照)。
If the data stored in the handshake memory 26 is A (see the figure), the sequence engine 22 determines that the software has been executed normally, and Is rewritten to 0 (and in the figure).

【0028】一方、シーケンスエンジン22は、ハンド
シェークメモリ26に格納されているものが0である場
合には(図中の参照)、シーケンスプログラムが所定
通りスキャン実行しておらず、ソフトウエア暴走が発生
したと判断する。
On the other hand, when the value stored in the handshake memory 26 is 0 (see FIG. 3), the sequence engine 22 does not execute the scan of the sequence program as predetermined, and software runaway occurs. Judge that you have done.

【0029】続いて、この実施形態のソフトPLCが外
部機器をシステム上から切り離す方法を説明する。
Next, a method for disconnecting an external device from the system by the soft PLC of this embodiment will be described.

【0030】上述のように、ハンドシェーク方法により
ソフトウエアの暴走を検知すると、シーケンスエンジン
22は、MPU1のバス10の回線使用権を剥奪するよ
うに、バスコントローラ21に指示を出し、拡張ボード
2に回線使用権を得るようにする。
As described above, when the runaway of the software is detected by the handshake method, the sequence engine 22 issues an instruction to the bus controller 21 to deprive the MPU 1 of the right to use the line of the bus 10 and sends the instruction to the expansion board 2. Get the right to use the line.

【0031】シーケンスエンジン22は、拡張ボード2
が回線使用権を得ると、予めユーザメモリ23に格納さ
れているシーケンスプログラムに基づき、所定の外部機
器を切り離しすべく、MPU1のI/Oメモリ5に対す
るアクセスを禁止する。
The sequence engine 22 is an extension board 2
Obtains the line use right, the MPU 1 prohibits the access to the I / O memory 5 in order to disconnect a predetermined external device based on the sequence program stored in the user memory 23 in advance.

【0032】なお、MPU1は、I/Oメモリ5に格納
されたデータを使用して、例えば、統計処理等を演算し
たい場合には、I/Oメモリ5に対するライトアクセス
を禁止し、リードアクセスのみを行うようにしてもよ
い。
The MPU 1 uses the data stored in the I / O memory 5 to prohibit, for example, a statistical process or the like, from prohibiting write access to the I / O memory 5 and performing only read access. May be performed.

【0033】また、データのライトアクセスするに際
し、システム管理者がデータの管理を厳重に行う必要が
ある場合には、ライトコマンドの複雑化、つまり複雑な
ライト手順を設けて、正規の手順以外でのアクセスを禁
止するようにしてもよい。
When it is necessary for the system administrator to strictly manage data when performing write access to data, the write command is complicated, that is, a complicated write procedure is provided, and the write command is complicated. May be prohibited.

【0034】ここで、アクセス制御は、I/Oメモリ5
のバスインターフェース回路にレジスタを設けて、この
レジスタに設定することでインタフェース回路を制御す
るように構成してもよい。
Here, access control is performed by the I / O memory 5.
A register may be provided in the bus interface circuit of the above, and the interface circuit may be controlled by setting the register.

【0035】続いて、この実施形態のソフトPLCが外
部機器の切り離しを行ったのち、MPU1のI/Oメモ
リ5に対するリード・ライトアクセスを、DM書き込
み形式とラダー実行形式で説明する。
Next, read / write access to the I / O memory 5 of the MPU 1 after the soft PLC of this embodiment disconnects an external device will be described in a DM write format and a ladder execution format.

【0036】DM書き込み形式の場合 シーケンスエンジン22は、バスコントローラ21ロー
ラを使用してMPU1のI/Oメモリ5に対するアクセ
スを禁止すると、データメモリ24に予め格納されてい
るフェイルセーフデータをI/Oメモリ5に書き替え更
新する。
In the case of DM writing format When the sequence engine 22 prohibits the access to the I / O memory 5 of the MPU 1 by using the bus controller 21 roller, the sequence engine 22 converts the fail-safe data stored in the data memory 24 into I / O Rewrite and update in the memory 5.

【0037】例えば、所定の外部機器が入力機器で、こ
の機器の稼働を停止させる場合には、I/Oメモリ5の
該当データを変更する。さらに具体的にいえば、接点
(a接点またはb接点)の開閉データを変更して、この
入力機器に入力されないようにすればよい。
For example, when a predetermined external device is an input device and the operation of this device is stopped, the corresponding data in the I / O memory 5 is changed. More specifically, the opening / closing data of the contact (a contact or b contact) may be changed so as not to be input to the input device.

【0038】その後、シーケンスエンジン22は、バス
コントローラ21を指示して、バス10の使用権を拡張
ボード2からMPU1に渡す。
Thereafter, the sequence engine 22 instructs the bus controller 21 to pass the right to use the bus 10 from the expansion board 2 to the MPU 1.

【0039】すると、MPU1は、再び、ユーザプログ
ラムメモリ24に格納されているシーケンスプログラム
およびI/Oメモリ5に格納されているデータに基づ
き、外部機器の制御を再開する。
Then, the MPU 1 resumes control of the external device based on the sequence program stored in the user program memory 24 and the data stored in the I / O memory 5 again.

【0040】ラダー実行形式の場合 この場合は、シーケンスエンジン22がアクセラレータ
機能を有する場合であって、上述のようにして、外部機
器が切り離されると、以降、拡張ボード2が、MPU1
に替わって、ユーザプログラムメモリ23に格納されて
いるシーケンスプログラム(ラダープログラム)を実行
するようになっている。従って、この形式の場合には、
限定した処理のみを行う。
In the case of the ladder execution format In this case, the sequence engine 22 has an accelerator function, and when the external device is disconnected as described above, the expansion board 2
Instead, a sequence program (ladder program) stored in the user program memory 23 is executed. Therefore, in this case,
Only limited processing is performed.

【0041】次に、この実施形態のソフトPLCの動作
を図3のフローチャートを参照して説明する。
Next, the operation of the soft PLC of this embodiment will be described with reference to the flowchart of FIG.

【0042】電源を投入後、ソフトPLC本体および拡
張ボードを初期化し、外部機器の制御処理を開始する
(ステップ110)。
After the power is turned on, the software PLC main body and the expansion board are initialized, and control processing of the external device is started (step 110).

【0043】その後、シーケンスエンジン22は、外部
機器の制御を行いつつ、上述したように、シェークハン
ド方式により、障害が発生した否かを常時判断する(ス
テップ120)。
Thereafter, the sequence engine 22 constantly determines whether or not a failure has occurred by the shake hand method as described above while controlling the external device (step 120).

【0044】シーケンスエンジン22は、障害を検知し
た場合には(ステップ120;Y)、バスコントローラ
21を用いて、MPU1のI/Oメモリ5に対するデー
タのリード・ライトアクセスを禁止する(ステップ13
0)。
When the sequence engine 22 detects a failure (Step 120; Y), it uses the bus controller 21 to prohibit data read / write access to the I / O memory 5 of the MPU 1 (Step 13).
0).

【0045】その後、シーケンスエンジン22は、ライ
トアクセスする必要があるか否かを判断し(ステップ1
40)、ライトアクセスする必要が無い場合には(ステ
ップ140、N)、ソフトPLC自体を停止して処理を
終了する一方(ステップ150)、ライトアクセスする
必要が有る場合には(ステップ140、Y)、さらに、
I/O更新する必要があるか否かを判断する(ステップ
160)。
Thereafter, the sequence engine 22 determines whether write access is necessary (step 1).
40) On the other hand, if there is no need for write access (step 140, N), the soft PLC itself is stopped and the process is terminated (step 150), while if there is a need for write access (step 140, Y). ),further,
It is determined whether or not the I / O needs to be updated (step 160).

【0046】シーケンスエンジン22は、I/O更新す
る必要があると判断した場合には(ステップ160;
Y)、上述したよいうにI/Oメモリを更新し、ステッ
プ120に処理を戻し、上述と同様な処理を行う一方、
I/O更新する必要がないと判断した場合には(ステッ
プ160;N)、ステップ150に処理を移行し、ソフ
トPLC自体を停止して処理を終了する。
When the sequence engine 22 determines that the I / O needs to be updated (step 160;
Y), update the I / O memory as described above, return to step 120, and perform the same processing as above,
If it is determined that there is no need to update the I / O (step 160; N), the process proceeds to step 150, where the soft PLC itself is stopped and the process is terminated.

【0047】上述した実施形態のソフトPLCは、一つ
の拡張ボード2を装着することで、障害検出,I/O更
新およびI/O保護を行っているが、図4のモデル1に
示すように、障害検出およびI/O更新について処理す
るボードと、I/O保護について処理するボードとから
なる2枚のボードで構成してもよいし(一点鎖線で囲ま
れた部分が1枚のボード)、同様に2枚のボードで障害
検出,I/O更新およびI/O保護を処理する場合であ
っても、モデル2に示すように、障害検出について処理
するボードと、I/O更新およびI/O保護について処
理するボードとからなるように構成してもよい。
The software PLC of the above-described embodiment performs failure detection, I / O update, and I / O protection by mounting one expansion board 2 as shown in model 1 in FIG. , A board for processing failure detection and I / O update, and a board for processing I / O protection (a portion surrounded by a chain line is a single board). Similarly, even when two boards perform fault detection, I / O update, and I / O protection, as shown in model 2, a board that processes fault detection, and I / O update and I / O protection are performed. It may be configured to include a board that processes the / O protection.

【0048】ここで、上記構成のものは、拡張バスとし
てPCIバスを有しており、各ボードはバスマスタとな
って他のボードをアクセスすることが可能である。ま
た、各ボード間で必要な情報の伝達は、各ボードに実装
されたレジスタにリード・ライトすることで行うように
なっている。
Here, the above-mentioned configuration has a PCI bus as an expansion bus, and each board can access another board as a bus master. In addition, transmission of necessary information between the boards is performed by reading and writing to registers mounted on each board.

【0049】なお、上述した実施形態のものは、モデル
3の場合である。
The above-described embodiment is the case of the model 3.

【0050】この実施形態の制御装置によれば、タイマ
25が所定時間経過するごとに、ハンドシェークメモリ
26に格納されているコードを読み出し、読み出された
コードがMPU1により格納された所定コードでない場
合には、ソフトウエアが暴走していると判断するため、
迅速にソフトウエア暴走を検出することできる。
According to the control device of this embodiment, every time the timer 25 elapses a predetermined time, the code stored in the handshake memory 26 is read out, and if the read out code is not the predetermined code stored by the MPU 1 In order to determine that the software is running away,
Software runaway can be detected quickly.

【0051】そして、ソフトウエア暴走を検出すると、
所定の外部機器を切り離すため、ソフトウエアの暴走に
よる外部機器の誤動作の発生を防止することができる。
When software runaway is detected,
Since a predetermined external device is disconnected, malfunction of the external device due to runaway of software can be prevented.

【0052】その後、所定の外部機が切り離されると、
予め設定された処理を外部機器に実行させるため、外部
機器システムが停止することがない。
Thereafter, when a predetermined external device is disconnected,
Since the external device executes the preset processing, the external device system does not stop.

【0053】[0053]

【発明の効果】以上本発明によれば、パソコンに装着さ
れている拡張ボードが、ソフトウエア暴走を検出する
と、所定の外部機器を切り離すため、ソフトウエアの暴
走による外部機器の誤動作の発生を防止することができ
る。
As described above, according to the present invention, when an expansion board mounted on a personal computer detects a software runaway, a predetermined external device is disconnected, thereby preventing a malfunction of the external device due to a software runaway. can do.

【0054】特に、タイマが所定時間経過するごとに、
メモリに格納されているコードを読み出し、読み出され
たコードがMPUにより格納された所定コードでない場
合には、ソフトウエアが暴走していると判断するため、
迅速にソフトウエア暴走を検出することできる。
In particular, every time the timer elapses a predetermined time,
The code stored in the memory is read, and if the read code is not the predetermined code stored by the MPU, it is determined that the software is out of control.
Software runaway can be detected quickly.

【0055】さらに、所定の外部機が切り離されると、
予め設定された処理を外部機器に実行させるため、外部
機器システムの全面停止を防止することなしに、限定し
た機能を実行することができる。
Further, when a predetermined external device is disconnected,
Since the external device executes the preset processing, it is possible to execute a limited function without preventing the external device system from being completely stopped.

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

【図1】本発明に係るプログラマブルコントローラの一
実施形態の構成を示すブロック図。
FIG. 1 is a block diagram showing a configuration of an embodiment of a programmable controller according to the present invention.

【図2】障害検出する方法としてのハンドシェーク方法
についての説明図。
FIG. 2 is an explanatory diagram of a handshake method as a method of detecting a failure.

【図3】この実施形態に係るプログラマブルコントロー
ラの動作を示すフローチャート。
FIG. 3 is a flowchart showing the operation of the programmable controller according to the embodiment.

【図4】他のモデルを示す図。FIG. 4 is a diagram showing another model.

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

1 MPU 2 拡張ボード 3 システムプログラムメモリ(SM) 4 ユーザプログラムメモリ(UM) 5 I/Oメモリ 6 入出力回路 21 バスコントローラ 22 シーケンスエンジン 23 ユーザプログラムメモリ(UM) 24 データメモリ(DM) 25 タイマ 26 ハンドシェークメモリ(HM) 1 MPU 2 Expansion Board 3 System Program Memory (SM) 4 User Program Memory (UM) 5 I / O Memory 6 I / O Circuit 21 Bus Controller 22 Sequence Engine 23 User Program Memory (UM) 24 Data Memory (DM) 25 Timer 26 Handshake memory (HM)

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 汎用OSの管理下で稼働するパソコンを
用いて外部機器を制御するプログラマブルコントローラ
において、 上記パソコンには拡張ボードを有しており、 この拡張ボードは、 ソフトウエア暴走を検出する暴走検出手段と、 この暴走検出手段がソフトウエア暴走送付を検出する
と、所定の外部機器を切り離すI/O保護手段と、 このI/O保護手段で所定の外部機が切り離されると、
予め設定された処理を外部機器に実行させるI/O更新
手段と、 を具備することを特徴とするプログラマブルコントロー
ラ。
1. A programmable controller for controlling an external device using a personal computer operated under the control of a general-purpose OS, wherein the personal computer has an expansion board, and the expansion board detects a software runaway. Detection means; I / O protection means for disconnecting a predetermined external device when the runaway detection means detects software runaway transmission; and when a predetermined external device is disconnected by the I / O protection means,
I / O updating means for causing an external device to execute a preset process. A programmable controller, comprising:
【請求項2】 上記暴走検出手段は、 上記パソコンに設けられているMPUにより、所定時間
ごとに所定コードが格納されるコード格納手段と、 時間を計測するタイマとを有しており、 このタイマが所定時間経過するごとに、上記コード格納
手段に格納されているコードを読み出し、読み出された
コードが上記MPUにより格納された所定コードでない
場合には、ソフトウエアが暴走していると判断する一
方、読み出されたコードが上記MPUにより格納された
所定コードである場合にはソフトウエアが暴走が発生し
ていないと判断し、上記コードをクリアすることを特徴
とする請求項1記載のプログラマブルコントローラ。
2. The runaway detection means includes code storage means for storing a predetermined code at predetermined time intervals by an MPU provided in the personal computer, and a timer for measuring time. Every time a predetermined time elapses, reads the code stored in the code storage means. If the read code is not the predetermined code stored by the MPU, it is determined that the software is out of control. On the other hand, if the read code is a predetermined code stored by the MPU, the software determines that no runaway has occurred and clears the code. controller.
【請求項3】 上記I/O保護手段は、 上記暴走検知手段によりソフトウエア暴走が検知される
と、上記パソコンに設けられているMPUに対し、外部
機器の動作を示すデータが格納されたI/Oメモリへの
アクセスを禁止させることを特徴とする請求項1記載の
プログラマブルコントローラ。
3. The I / O protection means, when a software runaway is detected by the runaway detection means, an IPU storing data indicating an operation of an external device to an MPU provided in the personal computer. 2. The programmable controller according to claim 1, wherein access to the / O memory is prohibited.
【請求項4】 上記I/O更新手段は、 ソフトウエア暴走が検出された場合のフェイルセーフデ
ータを格納するフェイルセーフデータ格納手段を有して
おり、 このフェイルセーフデータ格納手段に格納されたフェイ
ルセーフデータを、外部機器の動作を示すデータが格納
されているI/Oメモリに書き替え更新したのち、上記
MPUに対して上記I/Oメモリに対するアクセスを許
可すること特徴とする請求項1記載のプログラマブルコ
ントローラ。
4. The I / O updating means includes fail-safe data storage means for storing fail-safe data when software runaway is detected, and the fail-safe data stored in the fail-safe data storage means. 2. The method according to claim 1, wherein the safe data is rewritten and updated in an I / O memory storing data indicating an operation of an external device, and then the MPU is permitted to access the I / O memory. Programmable controller.
【請求項5】 上記拡張ボードは、シーケンスエンジン
を有することを特徴とする請求項1乃至4のいづれかに
記載のプログラマブルコントローラ。
5. The programmable controller according to claim 1, wherein said extension board has a sequence engine.
JP16449896A 1996-06-25 1996-06-25 Programmable controller Withdrawn JPH1011325A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16449896A JPH1011325A (en) 1996-06-25 1996-06-25 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16449896A JPH1011325A (en) 1996-06-25 1996-06-25 Programmable controller

Publications (1)

Publication Number Publication Date
JPH1011325A true JPH1011325A (en) 1998-01-16

Family

ID=15794309

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16449896A Withdrawn JPH1011325A (en) 1996-06-25 1996-06-25 Programmable controller

Country Status (1)

Country Link
JP (1) JPH1011325A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8041840B2 (en) * 2001-04-20 2011-10-18 Rockwell Automation Technologies, Inc. Industrial control system with autonomous web server
CN103605328A (en) * 2013-10-22 2014-02-26 青岛农业大学 STC single chip microcomputer-based embedded programmable logic controller (PLC) industrial control board

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8041840B2 (en) * 2001-04-20 2011-10-18 Rockwell Automation Technologies, Inc. Industrial control system with autonomous web server
CN103605328A (en) * 2013-10-22 2014-02-26 青岛农业大学 STC single chip microcomputer-based embedded programmable logic controller (PLC) industrial control board

Similar Documents

Publication Publication Date Title
CN100474247C (en) Method for updating firmware in computer server systems
US9015458B2 (en) Computer system and method for updating basic input/output system by switching between local mode and bypass mode through baseboard management controller
CN109670319B (en) Server flash safety management method and system thereof
JP2001325150A (en) Access monitoring device and its method
US5712967A (en) Method and system for graceful recovery from a fault in peripheral devices using a variety of bus structures
JP3991590B2 (en) Computer system and fault processing method in computer system
KR0182632B1 (en) Client server system performing automatic reconnection and control method thereof
KR101305502B1 (en) Computer system and control method thereof
JPH1011325A (en) Programmable controller
JP3231561B2 (en) Backup memory control method
JP3317361B2 (en) Battery backup control method for memory
JP3536293B2 (en) Redundant computer equipment
JP2000163274A (en) Electronic equipment and recording medium with rom data monitoring program recorded thereon
CN109491813B (en) ARM architecture server and management method thereof
JP2000172575A (en) Memory backup system
JPH05216855A (en) Multi-cpu control system
JP2002244885A (en) Computer system monitoring system
JP2003050712A (en) Microcomputer system
JPH08220198A (en) Battery backup memory unit and backup function testing method
JPH09288602A (en) Write protection device and reset control method for fault information storage device
JPH08212110A (en) Remote maintenance method for system
CN115858224A (en) Method, apparatus, device, medium and product for triggering watchdog reset
JPH0395634A (en) Restart control system for computer system
JPH0962534A (en) Self-diagnostic method for electronic computer
JP2021077068A (en) Information processing device and information processing method

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20030902