JP3207446B2 - System stop method of controller system - Google Patents
System stop method of controller systemInfo
- Publication number
- JP3207446B2 JP3207446B2 JP04507891A JP4507891A JP3207446B2 JP 3207446 B2 JP3207446 B2 JP 3207446B2 JP 04507891 A JP04507891 A JP 04507891A JP 4507891 A JP4507891 A JP 4507891A JP 3207446 B2 JP3207446 B2 JP 3207446B2
- Authority
- JP
- Japan
- Prior art keywords
- ram
- task
- data
- request
- monitoring
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Control By Computers (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は各種プラントを監視制御
するコントローラシステムに係わり、特に、被制御対象
に対して入出力される各種データをフロッピーディスク
(FD)やハードディスク(HD)等を用いずにバッテ
リバックアップされたRAMに記憶するようにしたコン
トローラシステムのシステム停止方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a controller system for monitoring and controlling various plants, and in particular, to various data input / output to / from a controlled object without using a floppy disk (FD) or a hard disk (HD). And a system stop method of the controller system which is stored in the RAM backed up by a battery.
【0002】[0002]
【従来の技術】一般に、各種プラントを監視制御するコ
ントローラシステムにおいては、各種業務を実行するた
めの複数のアプリケーションタスクがROMまたはハー
ドティスク(HD)に記憶されている。そして、プラン
ト等の被制御対象から入出力装置を介して入力されたこ
の被制御対象の動作状態を示す各種データ(制御量)を
一旦装置内部に組込まれたハードディスク等に書込む。
各アプリケーションタスクは前記ハードティスクに書込
まれたデータに対しアクセスを実行する。そして、制御
演算を実行して、演算結果を操作量として被制御対象へ
送出する。2. Description of the Related Art Generally, in a controller system for monitoring and controlling various plants, a plurality of application tasks for executing various tasks are stored in a ROM or a hard disk ( HD ). Then, various data (control amount) indicating the operation state of the controlled object input from the controlled object such as a plant via the input / output device is written into a hard disk or the like which is once built in the device.
Each application task executes access to data written to the hard disk. Then, the control operation is executed, and the operation result is sent to the controlled object as an operation amount.
【0003】ここで、被制御対象から入力されるデータ
量は膨大な数になるので、前述したように被制御対象か
ら入力されたデータはハードディスクに格納するように
している。Here, since the amount of data input from the controlled object becomes enormous, the data input from the controlled object is stored in the hard disk as described above.
【0004】しかし、近年、半導体製造技術が向上し
て、大容量ROMや大容量RAMが比較的安価で製造可
能となった。したがって、この大容量のROMやRAM
をコントローラシステム内に組込むことによって、前記
ハードディスクを除去して、システム全体の小型化およ
び製造費の低減化を図るようにしている。However, in recent years, semiconductor manufacturing technology has improved, and large-capacity ROMs and large-capacity RAMs can be manufactured at relatively low cost. Therefore, this large capacity ROM and RAM
Is incorporated in the controller system to eliminate the hard disk, thereby reducing the size of the entire system and the manufacturing cost.
【0005】また、データをハードディスクに代るRA
Mディスクと称される大容量のRAM内に形成されたデ
ータファイルに書込むことによって、複数のアプリケー
ションタスクを同時に実行させるマルチタスク処理が可
能となる。この場合においては、被制御対象に対して入
出力されるデータのみでなく、前述した各種アプリケー
ションタスクもROMまたはRAMに記憶さている。[0005] In addition, RA for replacing data with a hard disk
By writing to a data file formed in a large-capacity RAM called an M disk, multitask processing for simultaneously executing a plurality of application tasks becomes possible. In this case, not only the data input / output to / from the controlled object but also the various application tasks described above are stored in the ROM or the RAM.
【0006】[0006]
【発明が解決しようとする課題】このようなフロッピー
ディスク(FD)やハードディスク(HD)を全く使用
しないコントローラシステムにおいては、前述したデー
タファイルが形成されたRAMは電源遮断時においても
その記憶内容がバッテリでバックアップされている。In a controller system that does not use such a floppy disk (FD) or hard disk (HD) at all, the RAM in which the above-mentioned data file is formed retains its stored contents even when the power is turned off. Backed up by battery.
【0007】しかし、コントローラシステムの電源を遮
断した場合や、システムの初期化を行った場合において
は、その電源遮断やシステム初期化した瞬間に、各アプ
リケーションタスクがRAMのデータファイルに対する
アクセス途中であれば、誤ったデータが書込まれたり、
誤ったデータが読出される。したがって、電源遮断期間
中においてはその誤ったデータが記憶保持される。そし
て、次に電源投入して中断した制御動作を再開する場合
は、誤ったデータを用いて制御演算を実行する不都合が
生じる。However, when the power of the controller system is cut off or the system is initialized, each application task may be in the process of accessing the data file in the RAM at the moment when the power is cut off or the system is initialized. If incorrect data is written,
Incorrect data is read. Therefore, the erroneous data is stored and held during the power-off period. Then, when the power is turned on next and the interrupted control operation is restarted, there is a problem that the control operation is executed using incorrect data.
【0008】なお、フロッピーディスク(FD)やハー
ドディスク(HD)にはディスク専用の制御回路が設け
られているので、一つのデータのアクセス途中で動作が
停止することはない。Since a floppy disk (FD) or a hard disk (HD) is provided with a control circuit dedicated to the disk, the operation does not stop during access to one piece of data.
【0009】本発明はこのように事情に鑑みてなされた
ものであり、各アプリケーションタスクの動作状態を監
視する監視タスクを設けることによって、たとえRAM
に対するデータのアクセス途中でシステム停止要求が発
生したとしても、該当データに対するアクセス処理が終
了いた後、実際のシステム停止が実行され、RAMの記
憶内容を確実に保護でき、システム全体の信頼性を向上
できるコントローラシステムのシステム停止方式を提供
することを目的とする。The present invention has been made in view of the circumstances as described above. By providing a monitoring task for monitoring the operation state of each application task, the present invention can be applied to a RAM.
Even if a system stop request occurs during data access to the system, the actual system stop is executed after the access processing for the data is completed, and the contents stored in the RAM can be reliably protected, improving the reliability of the entire system. It is an object of the present invention to provide a system stop method of a controller system which can be performed.
【0010】[0010]
【課題を解決するための手段】上記課題を解消するため
に本発明は、ROMに複数のアプリケーションタスクを
設定し、被制御対象から入力されたデータを一旦RAM
内に記憶し、アプリケーションタスクに従って、RAM
に記憶されたデータに対して各種アクセスを実行してそ
の結果を被制御対象へ送出するコントローラシステムの
システム停止方式において、According to the present invention, a plurality of application tasks are set in a ROM, and data input from a controlled object is temporarily stored in a RAM.
Stored in RAM according to application tasks
In the system stop method of the controller system for performing various accesses to the data stored in the controller and transmitting the result to the controlled object,
【0011】電源遮断要求や初期化要求等のシステム停
止要求を検出するシステム停止要求検出手段と、各アプ
リケーションタスクの実行状態を監視する監視タスクと
を設け、監視タスクはシステム停止要求が検出される
と、各アプリケーションタスクに対してシステム停止要
求を通知し、システム停止要求を受領した各アプリケー
ションタスクは、RAMに対するアクセス実行時の場合
該当アクセス処理を終了し、監視タスクは全部のアプリ
ケーションタスクにおける前記RAMに対するアクセス
処理が終了した時点、又はシステム停止要求通知から所
定の許容時間経過した時点でシステムリセット指令を出
力し、監視タスクは許容時間経過した時点でシステムリ
セット指令を出力する場合、あらかじめ強制停止の情報
をRAMに書込むようにしている。 A system stop request detecting means for detecting a system stop request such as a power shutoff request or an initialization request, and a monitoring task for monitoring the execution state of each application task are provided. The monitoring task detects the system stop request. And a notification of a system stop request to each application task, each application task receiving the system stop request terminates the corresponding access process when executing access to the RAM, and the monitoring task executes the RAM stop processing in all the application tasks. At the point when the access process for
Issue a system reset command when the specified allowable time has elapsed.
The monitoring task is reset when the allowed time has elapsed.
When a set command is output, information on forced stop
Is written in the RAM.
【0012】[0012]
【作用】このように構成されたコントローラシステムの
システム停止方式においては、例えば電源スイッチを遮
断したり、キーボード等を用いて初期化指令を入力する
と、監視タスクが起動して、各アプリケーションタスク
に対してシステム停止要求が送出される。そして、各ア
プリケーションタスクはその時点で、RAMに対するデ
ータのアクセスを実行中の場合は、該当する1つのデー
タに対するアクセスのみを実行して、停止状態に移行す
る。なお、RAMに対するアクセスを実行していない場
合はそのまま停止状態に移行する。監視タスクは、各ア
プリケーションタスクのアクセス状態の終了を確認する
とシステムリセット指令を出力する。したがって、RA
Mに対するデータのアクセス途中でそのアクセス動作が
停止することはないので、RAMに誤ったデータが記憶
保持されることはない。また、許容時間が経過しても全
部のアプリケーションタスクが終了しない場合は、シス
テムリセット指令が出力されて、各アプリケーションタ
スクは強制停止されるが、この強制停止の情報がRAM
に記憶保持される。したがって、このシステムを再起動
した時点で、強制停止の履歴を確認することが可能とな
る。 In the system stop method of the controller system configured as described above, when a power switch is turned off or an initialization command is input using a keyboard or the like, a monitoring task is started and each application task is started. A system stop request is sent. If the application task is currently accessing the data to the RAM at that time, the application task executes only the access to the corresponding one of the data, and shifts to the stop state. If the access to the RAM has not been executed, the operation shifts to the stop state. The monitoring task outputs a system reset command when confirming the end of the access state of each application task. Therefore, RA
Since the access operation does not stop during data access to M, erroneous data is not stored and held in the RAM. In addition, all
If some application tasks do not end,
System reset command is output and each application
The disk is forcibly stopped.
Is stored. So restart this system
At that point, it is possible to check the history of forced suspension.
You.
【0013】[0013]
【実施例】以下本発明の一実施例を図面を用いて説明す
る。図1は実施例のシステム停止方式を採用したコント
ローラシステム全体を示すブロック図である。An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the entire controller system employing the system stop method of the embodiment.
【0014】交流電源1から出力される交流電力は電源
回路3でもって例えば5V等の直流の制御電圧Vc に変
換される。なお、電源回路2には操作者が操作する電源
スイッチ3が設けられている。電源回路2から出力され
た制御電圧Vc は例えばマイクロコンピュータ等で構成
されたコントローラ4に供給される。The AC power output from the AC power supply 1 is converted by the power supply circuit 3 into a DC control voltage Vc of, for example, 5V. The power supply circuit 2 is provided with a power switch 3 operated by an operator. The control voltage Vc output from the power supply circuit 2 is supplied to a controller 4 composed of, for example, a microcomputer or the like.
【0015】コントローラ4内において、バスライン5
に、各種演算処理を実行するCPU6,各タスクのプロ
グラム等の固定データを記憶するROM7,各種データ
等の可変データを一時記憶するバッテリ8でバックアッ
プされたRAM9,プラント等の被制御対象に接続され
た入出力インタフェース10,キーボード11から各種
指令やデータが入力される入出力装置12,リセット信
号cを出力するリセット信号発生回路13等が接続され
ている。なお、リセット信号cは電源回路2やCPU6
および被制御対象に送信される。In the controller 4, a bus line 5
CPU 6 for executing various arithmetic processing, ROM 7 for storing fixed data such as programs for each task, RAM 9 backed up by battery 8 for temporarily storing variable data such as various data, and connected to controlled objects such as plants. An input / output interface 10, an input / output device 12 to which various commands and data are input from a keyboard 11, a reset signal generation circuit 13 that outputs a reset signal c, and the like are connected. The reset signal c is supplied to the power supply circuit 2 or the CPU 6
And transmitted to the controlled object.
【0016】また、電源回路2には電源スイッチ3の投
入.遮断状態を監視する電源監視回路14が接続され、
この電源監視回路14から出力された電源遮断要求信号
aは割込信号発生回路15へ入力される。また、この割
込信号発生回路15にはキーボード11から出力された
初期化要求信号bも入力される。割込信号発生回路15
は、電源遮断要求aまたは初期化要求信号bが入力され
ると、CPU6の割込端子INTへ割込信号を送出す
る。When the power switch 3 is turned on in the power circuit 2, A power supply monitoring circuit 14 for monitoring a cutoff state is connected,
The power cutoff request signal a output from the power supply monitoring circuit 14 is input to the interrupt signal generation circuit 15. The interrupt signal generation circuit 15 also receives an initialization request signal b output from the keyboard 11. Interrupt signal generation circuit 15
Sends an interrupt signal to the interrupt terminal INT of the CPU 6 when the power-off request a or the initialization request signal b is input.
【0017】また、電源回路3においては、電源スイッ
チ3を投入した場合には、直ちに制御電圧Vc がコント
ローラ4へ供給されるが、電源スイッチ3を遮断した場
合には、リセット信号発生回路13からリセット信号c
が入力された時点で実際に制御電圧Vc が遮断される。
なお、電源スイッチ3が投入された状態でリセット信号
cが入力した場合には、制御電圧Vc は遮断されない。In the power supply circuit 3, when the power switch 3 is turned on, the control voltage Vc is immediately supplied to the controller 4. However, when the power switch 3 is turned off, the reset signal generation circuit 13 Reset signal c
Is inputted, the control voltage Vc is actually cut off.
When the reset signal c is input while the power switch 3 is turned on, the control voltage Vc is not cut off.
【0018】前記ROM7内には、図2に示すように、
一つの監視タスク16と複数のアプリケーションタスク
17が記憶されている。また、電源遮断期間においても
バッテリ8でその記憶内容が保持されるRAM9内に
は、図2に示すように、多数のデータファイル18が形
成されている。In the ROM 7, as shown in FIG.
One monitoring task 16 and a plurality of application tasks 17 are stored. Further, in the RAM 9 in which the stored contents are held by the battery 8 even during the power-off period, a large number of data files 18 are formed as shown in FIG.
【0019】このように構成されたコントローラ4にお
いて、電源回路2の電源スイッチ3を投入して、制御電
圧Vc をコントローラ4の各電子構成部材に供給する
と、リセット状態が解除されて、このコントローラ4は
動作状態となり、図示しないOSタスクにより、各アプ
リケーションタスク17が起動される。そして、通常運
転動作状態に移行する。In the controller 4 configured as described above, when the power switch 3 of the power supply circuit 2 is turned on and the control voltage Vc is supplied to each electronic component of the controller 4, the reset state is released and the controller 4 is released. Is in an operating state, and each application task 17 is started by an OS task (not shown). Then, the state shifts to the normal operation operation state.
【0020】通常動作状態においては、被制御対象から
一定周期で入出力インタフェース10を介して入力され
る被制御対象の動作状態を示す各種データ(制御量)は
RAM9内の該当データに割当られたデータファイル1
8の所定領域に書込まれる。書込まれたデータは読出さ
れて所定の制御演算が実行される。演算結果は再度デー
タファイル18に書込まれるとともにね被制御対象に対
する操作量として入出力インタフェース10を介して被
制御対象へ送出される。このような通常動作状態で実行
される各種処理は前述した各アプリケーションタスクに
よって順番に又は同時に実行される。In the normal operation state, various data (control amount) indicating the operation state of the controlled object inputted from the controlled object via the input / output interface 10 at regular intervals are allocated to the corresponding data in the RAM 9. Data file 1
8 is written in a predetermined area. The written data is read and a predetermined control operation is performed. The calculation result is written into the data file 18 again and sent to the controlled object via the input / output interface 10 as an operation amount for the controlled object. Various processes executed in such a normal operation state are executed sequentially or simultaneously by the above-described application tasks.
【0021】このような通常動作状態において、例えば
操作者が電源スイッチ3すると電源監視回路14から電
源遮断要求信号aが割込新語発生回路15へ入力され
る。同様に、操作者がキーボード11等において初期化
指令を入力すると、キーボード11から初期化要求信号
bが割込信号発生回路15へ入力される。割込信号発生
回路15は電源遮断要求信号aおよび初期化要求信号b
のいずれか一方の要求信号が入力されると、CPU6の
割込端子INTに割込信号を印加する。In such a normal operation state, for example, when the operator turns on the power switch 3, a power cutoff request signal a is input from the power supply monitoring circuit 14 to the interrupt new word generation circuit 15. Similarly, when the operator inputs an initialization command on the keyboard 11 or the like, an initialization request signal b is input from the keyboard 11 to the interrupt signal generation circuit 15. The interrupt signal generating circuit 15 includes a power-off request signal a and an initialization request signal b
When one request signal either is input, it applies an interrupt signal to the CPU6 interrupt terminal INT.
【0022】CPU6は割込端子INTに割込信号が入
力すると、ROM7に記憶されている監視タスク16を
起動する。監視タスク16は起動されると、図3の流れ
図にしたがって、各アプリケーションタスク17に対す
る監視処理を実行する。When an interrupt signal is input to the interrupt terminal INT, the CPU 6 activates the monitoring task 16 stored in the ROM 7. When the monitoring task 16 is started, the monitoring task 16 executes a monitoring process for each application task 17 in accordance with the flowchart of FIG.
【0023】図3において、監視タスクが起動される
と、P(プログラムステップ)1にて全部のアプリケー
ションタスク17に対してシステム停止要求を通知す
る。そして、P2において、全部のアプリケーションタ
スク17の動作状態を調べて、全部のアプリケーション
タスク17が停止状態であるか否かを調べる。停止状態
でなければ、P3へ進み、P1におけるシステム停止要
求出力時刻から予め定められた許容時間Tmax を経過し
ていないことを確認する。許容時間Tmax を経過してい
なければ、P2へ戻り再度全部のアプリケーションタス
ク17が停止状態であるか否かを調べる。In FIG. 3, when a monitoring task is started, a system stop request is notified to all application tasks 17 in P (program step) 1. Then, in P2, the operation states of all the application tasks 17 are checked to determine whether all the application tasks 17 are in the stopped state. If it is not in the stop state, the process proceeds to P3, and it is confirmed that the predetermined allowable time Tmax has not elapsed from the system stop request output time in P1. If the allowable time Tmax has not elapsed, the process returns to P2, and it is checked again whether or not all the application tasks 17 are stopped.
【0024】P2にて、全部のアプリケーションタスク
17が停止状態に移行すると、P4にて、リセット信号
発生回路13へリセット要求指令を出力する。そして、
この監視処理を終了して停止状態となる。また、P3に
て許容時間Tmax を経過した場合は、たとえ動作中のア
プリケーションタスク17が存在したとしても、P4へ
進み、リセット要求を出力する。When all the application tasks 17 shift to the stop state at P2, a reset request command is output to the reset signal generation circuit 13 at P4. And
This monitoring process ends and the system enters the stopped state. If the allowable time Tmax has elapsed in P3, the process proceeds to P4 and outputs a reset request even if there is an application task 17 in operation.
【0025】なお、アプリケーションタスク17が停止
状態でないのに強制的にリセット要求を出力する場合に
は、RAM9の特定のデータファイル18に強制停止の
メッセージを書込む。When a reset request is forcibly output even when the application task 17 is not in the halt state, a forcible halt message is written to a specific data file 18 in the RAM 9.
【0026】前記監視タスク16からシステム停止要求
を受領した各アプリケーションタスク17は、図4の流
れ図に従って、自己の処理業務の停止処理を実行する。
すなわち、システム停止要求を受領すると、Q1にて現
在RAM9のデータファイル18に対してデータをアク
セス中であるか否かを判断して、データアクセス中の場
合は、Q2にて、現在アクセス中の1つの該当データに
対するアクセスを最後まで実行して終了させる。そし
て、Q3へ進み、全ての処理動作を停止する。Each of the application tasks 17 receiving the system stop request from the monitoring task 16 executes a stop process of its own processing job according to the flowchart of FIG.
That is, when the system stop request is received, it is determined in Q1 whether or not data is currently being accessed for the data file 18 of the RAM 9. If the data is being accessed, in Q2, the currently accessed data file 18 is being accessed. The access to one piece of the corresponding data is executed to the end and the processing is terminated. Then, the process proceeds to Q3, where all processing operations are stopped.
【0027】なお、Q1に現在RAM9のデータファイ
ル18に対するデータアクセス以外の制御演算等の他の
処理動作を実行中の場合は、直ちにQ3へ進み、全ての
処理動作を停止する。If another processing operation such as a control operation other than the data access to the data file 18 in the RAM 9 is currently being executed in Q1, the process immediately proceeds to Q3 and all the processing operations are stopped.
【0028】そして、リセット要求指令を受領したリセ
ット信号発生回路13はリセット信号cを前記電源回路
2およびCPU6へ送出する。すると、CPU6がリセ
ット状態になり、動作が完全に停止する。The reset signal generating circuit 13 which has received the reset request command sends a reset signal c to the power supply circuit 2 and the CPU 6. Then, the CPU 6 is reset, and the operation is completely stopped.
【0029】また、リセット信号cを受領した電源回路
2はコントローラ4に対する制御電圧Vc の供給を停止
する。すると、RAM9の各データファイル18の記憶
内容はバッテリ8にて記憶保持される。The power supply circuit 2 which has received the reset signal c stops supplying the control voltage Vc to the controller 4. Then, the storage contents of each data file 18 in the RAM 9 are stored and held in the battery 8.
【0030】なお、リセット信号cが出力された時点で
電源スイッチ3が投入された状態であれば、制御電圧V
c は遮断されることはない。この場合には、キーボード
11からの初期化要求が入力されたので、初期化タスク
が起動して、各入出力ポート等の所定の初期化を行う。 If the power switch 3 is turned on when the reset signal c is output, the control voltage V
c is not blocked. In this case, since the initialization request from the keyboard 11 is input, the initialization task is activated, it intends rows predetermined initialization such as the input and output ports.
【0031】このように構成されたコントローラシステ
ムのシステム停止方式によれば、操作者が電源スイッチ
3を遮断したり、キーボード11から初期化要求を入力
した場合には、各アプリケーションタスク17は即座に
動作を停止するのではなくて、現在RAM9に対するデ
ータアクセス処理を実行中か否かを調べて、実行中でな
ければ、即座に動作停止し、実行中の場合は、該当の1
個のデータに対するアクセスを終了した後、動作を停止
する。According to the system stop method of the controller system configured as described above, when the operator turns off the power switch 3 or inputs an initialization request from the keyboard 11, each application task 17 immediately starts. Instead of stopping the operation, it is checked whether or not the data access process to the RAM 9 is currently being executed. If not, the operation is immediately stopped.
After ending the access to the pieces of data, the operation is stopped.
【0032】すなわち、動作停止状態に移行する時点に
おいては、RAM9に対するデータアクセス処理は実行
されていない。したがって、この状態で電源が遮断され
たり、初期化処理が実行されたとしても、RAM9に誤
ったデータが書込まれるのが未然に防止される。That is, at the time of transition to the operation stop state, data access processing to the RAM 9 is not executed. Therefore, even if the power is turned off or the initialization process is executed in this state, writing of erroneous data to the RAM 9 is prevented beforehand.
【0033】よって、再度電源を投入して被制御対象に
対する監視制御業務を再開したとしても、RAM9のデ
ータファイル18に記憶されている正しいデータを用い
て制御演算処理を継続できる。また、初期化処理を行っ
た後においても、停止前の正しいデータを用いて制御演
算処理を継続できる。その結果、システム全体の信頼性
を大幅に向上できる。Therefore, even if the power is turned on again and the monitoring control work for the controlled object is resumed, the control arithmetic processing can be continued using the correct data stored in the data file 18 of the RAM 9. Further, even after performing the initialization processing, the control calculation processing can be continued using the correct data before the stop. As a result, the reliability of the entire system can be greatly improved.
【0034】また、実施例装置においては、許容時間T
max を経過してもまだアプリケーションタスクが終了状
態にならない場合は、終了を待たずに、強制的にリセッ
ト信号を出力している。したがって、何時までたっても
リセット信号が出力されなく、コントローラが停止しな
い事態を回避している。なお、この場合は、RAM9に
異常メッセージが記憶されているので、動作を再開後に
異常メッセージを読むことによって、異常が生じたこと
を把握できる。In the embodiment, the allowable time T
If the application task has not yet reached the end state after elapse of max, the reset signal is forcibly output without waiting for the end. Therefore, it is possible to avoid a situation in which the reset signal is not output by any time and the controller does not stop. In this case, since an abnormal message is stored in the RAM 9, it is possible to grasp that an abnormality has occurred by reading the abnormal message after restarting the operation.
【0035】[0035]
【発明の効果】以上説明したように本発明のコントロー
ラシステムのシステム停止方式においては、各アプリケ
ーションタスクの動作状態を監視する監視タスクを設
け、システム停止要求が生じると、各アプリケーション
タスクは実行中のデータアクセスを終了した後に動作停
止している。したがって、たとえRAMに対するデータ
のアクセス途中でシステム停止要求が発生したとして
も、該当データに対するアクセス処理が終了いた後、実
際のシステム停止が実行され、RAMの記憶内容を確実
に保護でき、システム全体の信頼性を向上できる。As described above, in the system stop method of the controller system according to the present invention, a monitoring task for monitoring the operation state of each application task is provided, and when a system stop request occurs, each application task is executed. Operation stopped after data access was completed. Therefore, even if a system stop request occurs during data access to the RAM, the actual system stop is executed after the access processing for the data is completed, and the storage contents of the RAM can be reliably protected, and the entire system can be protected. Reliability can be improved.
【図1】 本発明の一実施例に係わるシステム停止方式
を採用したコントローラシステムの概略構成を示すブロ
ック図、FIG. 1 is a block diagram showing a schematic configuration of a controller system employing a system stop method according to an embodiment of the present invention;
【図2】 同実施例システムのROMおよびRAMの記
憶内容を示す図、FIG. 2 is a diagram showing storage contents of a ROM and a RAM of the system of the embodiment;
【図3】 同実施例システムの監視タスクの動作を示す
流れ図、FIG. 3 is a flowchart showing an operation of a monitoring task of the system according to the embodiment;
【図4】 同実施例システムの各アプリケーションタス
クの動作を示す流れ図。FIG. 4 is a flowchart showing the operation of each application task of the system of the embodiment.
1…交流電源,2…電源回路,3…電源スイッチ、4…
コントローラ、6…CPU,7…ROM、8…バッテ
リ、9…RAM、10…入出力インタフェース、13…
リセット信号発生回路、14…電源監視回路、15…割
込信号発生回路。1 AC power supply 2 Power circuit 3 Power switch 4
Controller, 6 CPU, 7 ROM, 8 battery, 9 RAM, 10 input / output interface, 13
Reset signal generation circuit, 14: power supply monitoring circuit, 15: interrupt signal generation circuit.
Claims (1)
を設定し、被制御対象から入力されたデータを一旦RA
M内に記憶し、前記アプリケーションタスクに従って、
前記RAMに記憶されたデータに対して各種アクセスを
実行してその結果を前記被制御対象へ送出するコントロ
ーラシステムのシステム停止方式において、 電源遮断要求や初期化要求等のシステム停止要求を検出
するシステム停止要求検出手段と、前記各アプリケーシ
ョンタスクの実行状態を監視する監視タスクとを設け、 監視タスクは前記システム停止要求が検出されると、前
記各アプリケーションタスクに対してシステム停止要求
を通知し、 前記システム停止要求を受領した各アプリケーションタ
スクは、前記RAMに対するアクセス実行時の場合該当
アクセス処理を終了し、 前記監視タスクは全部のアプリケーションタスクにおけ
る前記RAMに対するアクセス処理が終了した時点、又
は前記システム停止要求通知から所定の許容時間経過し
た時点でシステムリセット指令を出力し、 前記監視タスクは前記許容時間経過した時点でシステム
リセット指令を出力する場合、あらかじめ強制停止の情
報を前記RAMに書込むことを特徴とする コントローラ
システムのシステム停止方式。A plurality of application tasks are set in a ROM, and data input from a controlled object is temporarily stored in an RA.
M and according to the application task,
A system for detecting a system stop request, such as a power-off request or an initialization request, in a system stop method of a controller system for executing various accesses to the data stored in the RAM and sending the results to the controlled object. A stop request detecting unit and a monitoring task for monitoring an execution state of each of the application tasks are provided. When the system stop request is detected, the monitoring task notifies each of the application tasks of a system stop request. Each application task that has received the system stop request terminates the corresponding access process when executing access to the RAM, and the monitoring task terminates the access process to the RAM in all the application tasks ,
Has passed a predetermined allowable time since the system stop request notification
At the time when the system reset command is output, and the monitoring task
When outputting a reset command, force stop
And writing a report to the RAM .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP04507891A JP3207446B2 (en) | 1991-03-11 | 1991-03-11 | System stop method of controller system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP04507891A JP3207446B2 (en) | 1991-03-11 | 1991-03-11 | System stop method of controller system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH04281502A JPH04281502A (en) | 1992-10-07 |
| JP3207446B2 true JP3207446B2 (en) | 2001-09-10 |
Family
ID=12709301
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP04507891A Expired - Fee Related JP3207446B2 (en) | 1991-03-11 | 1991-03-11 | System stop method of controller system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3207446B2 (en) |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS4940766A (en) * | 1972-08-23 | 1974-04-16 | ||
| JPS5055961A (en) * | 1973-09-11 | 1975-05-16 | ||
| JPS6265781A (en) * | 1985-09-14 | 1987-03-25 | 株式会社 シスコ | Selector usable to not only powdered and granular body, etc.employed in plastic molding machine but also various material having specific gravity difference |
| JPS6463078A (en) * | 1987-09-02 | 1989-03-09 | Zennosuke Tanaka | Dry-sorting method |
| JPH0734892B2 (en) * | 1987-10-16 | 1995-04-19 | 日本たばこ産業株式会社 | Solids separation device |
-
1991
- 1991-03-11 JP JP04507891A patent/JP3207446B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH04281502A (en) | 1992-10-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0458047B2 (en) | ||
| US10102045B2 (en) | Control device, control method and program | |
| US5557739A (en) | Computer system with component removal and replacement control scheme | |
| US5257269A (en) | Error controller for use in debugging microprocessor | |
| JPWO1998037466A1 (en) | Personal computer built-in numerical control device | |
| JP3207446B2 (en) | System stop method of controller system | |
| JP4131078B2 (en) | Robot controller | |
| JPH10207586A (en) | Power-off control system for computer | |
| JP2799104B2 (en) | Redundant switching device for programmable controller | |
| JP2778299B2 (en) | Programmable controller | |
| JPH0561572A (en) | External power source instantaneous interruption processing device for digital computer | |
| JP6835422B1 (en) | Information processing device and information processing method | |
| JPH0962534A (en) | Computer self-diagnosis method | |
| JPS60258623A (en) | Microcomputer | |
| JP2009520290A (en) | Fault-tolerant processor system | |
| JPH0316656B2 (en) | ||
| JPS6318229B2 (en) | ||
| JPH0395634A (en) | Restart control system for computer system | |
| JP5194360B2 (en) | Information processing apparatus and control method thereof | |
| JPS62284440A (en) | Software resource maintenance system for terminal equipment | |
| JPH05108503A (en) | Power failure processing system | |
| JPH06266478A (en) | Computer system | |
| JPS62212865A (en) | Multiprocessor control system | |
| JPH037965B2 (en) | ||
| JPS585856A (en) | Error recovery system for logical device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |