JP2635777B2 - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JP2635777B2
JP2635777B2 JP1231650A JP23165089A JP2635777B2 JP 2635777 B2 JP2635777 B2 JP 2635777B2 JP 1231650 A JP1231650 A JP 1231650A JP 23165089 A JP23165089 A JP 23165089A JP 2635777 B2 JP2635777 B2 JP 2635777B2
Authority
JP
Japan
Prior art keywords
input
output
card
processing
batch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP1231650A
Other languages
Japanese (ja)
Other versions
JPH0395604A (en
Inventor
浩一 甲斐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP1231650A priority Critical patent/JP2635777B2/en
Publication of JPH0395604A publication Critical patent/JPH0395604A/en
Application granted granted Critical
Publication of JP2635777B2 publication Critical patent/JP2635777B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) この発明は、入出力カード単位の故障に対する対応策
をユーザ側において任意にプログラム可能としたプログ
ラマブル・コントローラに関する。
[Detailed Description of the Invention] [Object of the Invention] (Industrial application field) The present invention relates to a programmable controller in which a user can arbitrarily program a countermeasure against a failure for each input / output card.

(従来の技術) 第6図は、この種のプログラマブル・コントローラの
基本的な動作を概略的に示すブロック図である。
(Prior Art) FIG. 6 is a block diagram schematically showing a basic operation of a programmable controller of this kind.

同図に示されるように、この種のプログラマブル・コ
ントローラにおいては、各入出力カード1と入出力デー
タメモリ2との間において、一括入出力テーブル3を参
照しつつカード単位で入出力データの一括入出力を行う
一括入出力処理4と、入出力データメモリ2の内容に基
いてユーザプログラムを実行するユーザプログラム実行
処理5と交互に繰り返し実行するものである。
As shown in FIG. 1, in a programmable controller of this type, between each input / output card 1 and the input / output data memory 2, the input / output data A batch input / output process 4 for performing input / output and a user program execution process 5 for executing a user program based on the contents of the input / output data memory 2 are alternately and repeatedly executed.

そして、一括入出力処理4において、パリティチェッ
ク等に基き入出力カード1の異常が検出されると、画一
的に実行停止処理を行い、入出力カード1の異常に基く
誤動作を未然に防止するようになっている。
In the batch input / output processing 4, when an abnormality of the input / output card 1 is detected based on a parity check or the like, execution stop processing is uniformly performed to prevent a malfunction caused by the abnormality of the input / output card 1 beforehand. It has become.

このような一括入出力処理の具体的な一例を、第7図
〜第9図を参照しながら説明する。
A specific example of such batch input / output processing will be described with reference to FIGS. 7 to 9.

第7図は、入出力カード1、一括入出力データメモリ
2及び一括入出力テーブル3の相互関係を概略的に示す
メモリマップである。
FIG. 7 is a memory map schematically showing a mutual relationship between the input / output card 1, the collective input / output data memory 2, and the collective input / output table 3.

同図に示されるように一括入出力データメモリ2内に
は、入力データまたは出力データが入出力カード単位で
格納されている。
As shown in FIG. 1, the batch input / output data memory 2 stores input data or output data for each input / output card.

また、一括入出力テーブル3内には、一括入出力デー
タメモリ2内のデータ配列に対応させて、一括入出力デ
ータメモリ2内のデータ配列と入出力カードの配列との
相互関係を示す情報が格納されている。
Further, in the batch input / output table 3, information indicating the correlation between the data array in the batch input / output data memory 2 and the array of the input / output cards corresponding to the data array in the batch input / output data memory 2. Is stored.

同図に示されるように、この相互関係を示す情報は、
当該入力または出力データに対応する入出力カードの位
置を示す入出力カードアドレス情報31と、当該カードが
入力カードであるか出力カードであるかを示すフラグ3
2,33とから構成されている。
As shown in the figure, the information indicating this correlation is:
Input / output card address information 31 indicating the position of the input / output card corresponding to the input or output data, and flag 3 indicating whether the card is an input card or an output card
2,33.

従って一括入出力テーブル3の情報を参照することに
より、一括入出力データメモリ2内の各アドレスと入出
力カードアドレスとの関係を容易に知ることができるよ
うになっている。
Therefore, by referring to the information in the batch input / output table 3, the relationship between each address in the batch input / output data memory 2 and the input / output card address can be easily known.

第8図は、一括入出力処理の全体を概略的に示すフロ
ーチャート、第9図はその入力処理のみを詳細に示すフ
ローチャートである。
FIG. 8 is a flowchart schematically showing the whole batch input / output processing, and FIG. 9 is a flowchart showing only the input processing in detail.

第8図において一括入出力処理が開始されると、ポイ
ンタiを0にクリアさせた後(ステップ801)、i番目
の一括入出力テーブルの内容を取り出し(ステップ80
2)、その入出力フラグ32,33の内容に基き、入力指定が
出力指定かの判定を行う(ステップ803,804)。
In FIG. 8, when the batch input / output processing is started, the pointer i is cleared to 0 (step 801), and the contents of the i-th batch input / output table are taken out (step 80).
2) Based on the contents of the input / output flags 32 and 33, it is determined whether the input designation is an output designation (steps 803 and 804).

ここで入力指定の場合には(ステップ803YES)、一括
入出力テーブル3から得られる入出力カードアドレスか
ら入力データを入力し、これを該当する一括入出力デー
タメモリへ格納する(スップ808)。
If the input is designated (YES in step 803), the input data is input from the input / output card address obtained from the collective input / output table 3 and stored in the corresponding collective input / output data memory (step 808).

これに対して、出力指定の場合には(ステップ804YE
S)、該当する一括入出力データメモリから出力データ
を取り出し、これを入出力カードアドレスへと送出する
(ステップ805)。
On the other hand, in the case of output designation (step 804YE
S), fetch the output data from the corresponding batch input / output data memory and send it to the input / output card address (step 805).

そして、以上の一括入力処理(ステップ808)または
一括出力処理(ステップ805)を、ポインタiがnにな
るまで繰り返し行うわけである(ステップ807YES)。
Then, the above batch input process (step 808) or batch output process (step 805) is repeatedly performed until the pointer i becomes n (step 807 YES).

次に第9図を参照しながら、一括入力処理において、
入出力カード異常が発生した場合の処理を説明する。
Next, referring to FIG. 9, in the batch input process,
Processing when an input / output card error occurs will be described.

一括入力処理が開始されると、まずエラーリトライ回
数カウンタeを初期化させた後(ステップ901)、ポイ
ンタi番目の入出力カードアドレスを取り出し(ステッ
プ902)、この入出力カードアドレスに基き入力データ
の読み出しを行う(ステップ903)。
When the batch input process is started, first, an error retry counter e is initialized (step 901), and the i-th input / output card address of the pointer is taken out (step 902). Is read (step 903).

ここで、パリティチェック等により読み出しエラーが
検出された場合(ステップ904YES)、所定のリトライ処
理を行なう。
If a read error is detected by a parity check or the like (step 904 YES), a predetermined retry process is performed.

このリトライ処理では、エラーリトライ回数カウンタ
eを+1更新しつつ(ステップ906)、その都度入力デ
ータの読み出し(ステップ903)および読み出しエラー
の検出(ステップ904)を、エラーリトライ回数カウン
タeがEになるまで繰り返す(ステップ907)。
In this retry processing, while updating the error retry counter e by +1 (step 906), each time the input data is read (step 903) and a read error is detected (step 904), the error retry counter e becomes E. (Step 907).

そして、エラーリトライカウンタeがEとなってもな
おかつ呼び出しエラーが検出された場合には(ステップ
904YES,907YES)、実行停止処理を行ない(ステップ90
8)、コントローラの誤動作を防止する。
If the calling error is detected even if the error retry counter e reaches E (step
(904YES, 907YES), execution stop processing is performed (step 90).
8) Prevent malfunction of the controller.

他方、呼び出しエラーが検出されないか、あるいはリ
トライ処理により読み出しエラーが修復されれば(ステ
ップ904NO)、当該入力データを一括入出力データメモ
リのi番目へ格納する(ステップ905)。
On the other hand, if a call error is not detected or the read error is recovered by the retry processing (NO in step 904), the input data is stored in the i-th batch input / output data memory (step 905).

このように、従来のプログラマブル・コントローラに
おいては、一括入力処理中に読み出しエラーが検出され
た場合(ステップ904YES)、リトライ処理によってもな
おかつエラーが修復されない場合(ステップ907YES)、
一律に実行停止処理を行なうようになっていた(ステッ
プ908)。
As described above, in the conventional programmable controller, when a read error is detected during the batch input process (step 904 YES), when the error is not recovered by the retry process (step 907 YES),
The execution stop processing is uniformly performed (step 908).

なお、以上は一括入力処理の場合で説明したが、一括
出力処理の場合も同様であって、いずれの入出力カード
において書き込みエラーが発生した場合、リトライ処理
によっても修復されないことを条件として、実行停止処
理を行なうようになっている。
Although the above description has been given of the case of the batch input processing, the same applies to the case of the batch output processing. If a write error occurs in any of the input / output cards, the execution is performed on the condition that the error is not repaired by the retry processing. Stop processing is performed.

(発明が解決しようとする課題) このように、従来のプログラマブル・コントローラに
あっては、一括入出力処理において入出力カード異常が
発生した場合、リトライ処理で修復されないことを条件
として、画一的に実行停止処理を行なうようになってい
た。
(Problems to be Solved by the Invention) As described above, in the conventional programmable controller, if an input / output card error occurs in the batch input / output processing, the input / output card is not repaired by the retry processing. The execution stop processing is performed at first.

しかしながら、このように当該故障カードの重要度に
よることなく画一的に実行停止処理を行うと、実際のユ
ーザ設備に適用した場合、様々な不都合が生ずることが
考えられる。
However, if the execution stop processing is uniformly performed without depending on the importance of the faulty card, various inconveniences may occur when applied to actual user equipment.

例えば、当該故障カードが単に表示出力を発している
ような場合、その表示出力によりランプの点灯が行われ
なくとも、制御全体からみてさほど支承がない場合など
があり、また当該故障カードが単に表示のためのレベル
検出データを入力しているような場合、当該検出レベル
が表示されなくとも、制御全体としてはさほど支障がな
い場合などがあり、このような場合に画一的に実行停止
処理を行いコントローラの運転を停止させてしまうこと
は、返ってユーザ設備の側からみて問題となる場合が多
いのである。
For example, if the faulty card simply emits a display output, there is a case where there is not much support from the whole control even if the lamp is not turned on by the display output, and the faulty card is simply displayed. For example, when the level detection data is input, even if the detection level is not displayed, there is a case where there is not much trouble in the control as a whole, and in such a case, the execution stop processing is uniformly performed. Stopping the operation of the controller often causes a problem from the viewpoint of the user equipment.

この発明は上述の問題点に鑑みなされたものであり、
その目的とするところは、入出力カードのいずれかにお
いて故障が生じた場合、当該故障カードの重要度に応
じ、その後の対応策をユーザ側において任意にプログラ
ムできるようにしたプログラマブル・コントローラを提
供することにある。
The present invention has been made in view of the above problems,
An object of the present invention is to provide a programmable controller in which, when a failure occurs in any of the input / output cards, a user can arbitrarily program a subsequent countermeasure according to the importance of the failed card. It is in.

[発明の構成] (課題を解決するための手段) この発明は、上記の目的を達成するために、各入出力
カードと入出力データメモリとの間においてカード単位
で入出力データの一括入出力を行う一括入出力処理と、
入出力データメモリの内容に基いてユーザプログラムを
実行するユーザプログラム実行処理とを交互に繰り返す
プログラマブル・コントローラにおいて、 各入出力カード毎に故障の有無を監視し、いずれかの
カードに関して故障が発生した場合には当該故障カード
の識別情報をユーザプログラムで参照可能なエリアに書
き込む手段と、 各入出力カードに対応して設けられ、かつ前記故障カ
ード識別情報を参照条件としてユーザの作成するエラー
処理プログラムの実行結果によりセット、リセットされ
る入出力禁止フラグと、 前記一括入出力に際して入出力禁止フラグの内容を参
照し、これがセット状態にある場合には当該カードに限
り一括入出力を禁止する手段と、 を設けたことを特徴とするものである。
[Structure of the Invention] (Means for Solving the Problems) In order to achieve the above object, the present invention provides a method for batch input / output of input / output data between each input / output card and an input / output data memory in card units. Batch input / output processing to perform
In a programmable controller that alternates between executing a user program based on the contents of the I / O data memory and executing a user program, the presence of a failure is monitored for each I / O card. In this case, means for writing the identification information of the failed card in an area that can be referenced by a user program, and an error processing program provided corresponding to each input / output card and created by the user using the failed card identification information as a reference condition Means for setting and resetting the input / output prohibition flag according to the execution result of the above, and referring to the contents of the input / output prohibition flag at the time of the batch input / output, and prohibiting the batch input / output only for the card when the flag is set , Are provided.

また、この発明は上記の目的を達成するために、各入
出力カードと入出力データメモリとの間においてカード
単位で入出力データの一括入出力を行う一括入出力処理
と、入出力データメモリの内容に基いてユーザプログラ
ムを実行するユーザプログラム実行処理とを交互に繰り
返すプログラマブル・コントローラにおいて、 各入出力カード毎に故障の有無を監視し、いずれかの
カードに関して故障が発生した場合には当該故障カード
の識別情報をユーザプログラムで参照可能なエリアに書
き込む手段と、 前記故障カード識別情報を参照条件としてユーザの作
成するエラー処理プラグラムの実行結果によりセット、
リセットされる実行停止フラグと、 前記実行停止フラグがセット状態にある場合には実行
停止処理を行う手段と、 を設けたことを特徴とするものである。
Further, in order to achieve the above object, the present invention provides a batch input / output process for performing batch input / output of input / output data in card units between each input / output card and the input / output data memory; In a programmable controller that alternates between executing a user program based on the content and executing a user program, the system monitors each I / O card for a failure. Means for writing the identification information of the card in an area that can be referred to by a user program, and setting based on an execution result of an error processing program created by a user with the failed card identification information as a reference condition;
An execution stop flag to be reset, and means for executing an execution stop process when the execution stop flag is in a set state are provided.

(作用) このような構成によれば、各故障カード識別情報を参
照条件としてエラー処理プログラムを作成しておけば、
当該カードの重要度に応じ、そのまま一括入出力処理を
正常通り継続させたり、当該故障カードのみ一括入出力
を禁止させたり、あるいは制御全体を実行停止させたり
する等の選択を任意に行わせることができる。
(Operation) According to such a configuration, if an error processing program is created using each failed card identification information as a reference condition,
Depending on the importance of the card, it is possible to arbitrarily select such as continuing the batch input / output processing as it is, prohibiting batch input / output only for the failed card, or stopping the execution of the entire control Can be.

(実施例) 第1図は、本発明の実施例であるプログラマブル・コ
ントローラの基本的な動作を概略的に示すブロック図で
ある。なお、同図において、前記第6図の従来例と同一
構成部分については同符号を付して説明を省略する。
FIG. 1 is a block diagram schematically showing a basic operation of a programmable controller according to an embodiment of the present invention. 6, the same components as those of the conventional example shown in FIG. 6 are denoted by the same reference numerals, and description thereof will be omitted.

同図に示されるように、この実施例の特徴は、新たに
エラー通知フラグ8、実行停止フラグ9および入出力禁
止フラグ10を設けたことにある。
As shown in the figure, the feature of this embodiment is that an error notification flag 8, an execution stop flag 9, and an input / output prohibition flag 10 are newly provided.

ここで、エラー通知フラグ8は、一括入出力処理4aに
おいて、いずれかの入出力カードに故障が生じた場合セ
ットされるものであり、このエラー通知フラグ8の内容
はユーザが作成するエラー処理プログラム7で参照可能
となっている。
The error notification flag 8 is set when a failure occurs in any of the input / output cards in the batch input / output processing 4a. The content of the error notification flag 8 is an error processing program created by the user. 7 can be referred to.

また、実行停止フラグ9、入出力禁止フラグ10は、ユ
ーザが作成するエラー処理プログラムにより任意にセッ
トまたはリセットが可能になっている。
The execution stop flag 9 and the input / output prohibition flag 10 can be arbitrarily set or reset by an error processing program created by the user.

そして、実行停止フラグ9がセットされると、実行停
止チェック処理11がこれを検出し、その結果実行停止処
理6が行われる。
When the execution stop flag 9 is set, the execution stop check processing 11 detects this, and as a result, the execution stop processing 6 is performed.

また、入出力禁止フラグ10がセットされると、当該故
障カードに限って、一括入出力処理が禁止されるのであ
る。
When the input / output prohibition flag 10 is set, the batch input / output processing is prohibited only for the failed card.

次に第2図〜第5図を参照しながら、本実施例の作用
を系統的に説明する。
Next, the operation of this embodiment will be systematically described with reference to FIGS.

第2図に示されるように、一括入出力テーブル3a内に
は、入出力禁止フラグa、出力指定フラグb、入力指定
フラグcが設けられている。
As shown in FIG. 2, an input / output prohibition flag a, an output designation flag b, and an input designation flag c are provided in the batch input / output table 3a.

また、前述したエラー通知フラグ8、実行停止フラグ
9については図中符号i,sとして表されている。
The error notification flag 8 and the execution stop flag 9 described above are represented by reference numerals i and s in the figure.

そして、エラー通知フラグiは入出力エラーが発生し
たときの一括入出力テーブル3aの参照インデックスとな
り、すなわち、いずれかのカードに関して故障が発生し
た場合、当該故障カードの識別情報となって、ユーザプ
ログラムで任意に参照可能になされている。
The error notification flag i becomes a reference index of the batch input / output table 3a when an input / output error occurs. That is, when a failure occurs in any one of the cards, it becomes identification information of the failed card, and the user program Arbitrarily can be referred to.

また、実行停止フラグ9は、“1"で実行停止を、“0"
で実行禁止を表しており、この実行停止フラグ9もまた
ユーザプログラムにより任意に参照が可能になされてい
る。
The execution stop flag 9 indicates that the execution is stopped at “1” and “0”.
Indicates execution prohibition, and the execution stop flag 9 can also be arbitrarily referred to by a user program.

次に、第3図は一括入出力処理の全体を概略的に示す
フローチャートであり、以下このフローチャートに従っ
て一括入出力処理を説明する。
Next, FIG. 3 is a flowchart schematically showing the whole batch input / output processing. Hereinafter, the batch input / output processing will be described with reference to this flowchart.

プラグラムがスタートされると、まずポインタiを0
にクリアさせた後、i番目の一括入出力テーブルの内容
を取り出し(ステップ302)、入出力禁止フラグの状態
をチェックする(ステップ303)。
When the program starts, the pointer i is first set to 0.
Then, the contents of the i-th batch input / output table are extracted (step 302), and the state of the input / output prohibition flag is checked (step 303).

後述するように、入出力禁止フラグaは当該i番目の
入出力カードが故障の場合にセットされるものである。
As will be described later, the input / output prohibition flag a is set when the i-th input / output card is out of order.

ここで、入出力禁止フラグがセットされていれば(ス
テップ303YES)、入出力処理(ステップ306,309)はい
ずれもスキップされ、ポインタiを+1更新して(ステ
ップ307)、次の入出力カードへ処理を移行する。
If the input / output prohibition flag is set (YES in step 303), the input / output processing (steps 306 and 309) is skipped, the pointer i is updated by +1 (step 307), and the processing to the next input / output card is performed. Migrate.

これに対し、入出力禁止フラグaがセットされていな
ければ(ステップ303NO)、入力指定か出力指定かの判
定を行い(ステップ304,305)、その判定結果に応じ出
力処理(ステップ306)または入力処理(ステップ309)
のいずれかが実行され、以上の処理がポインタiがnに
なるまで繰り返し実行されるわけである。
On the other hand, if the input / output prohibition flag a is not set (NO in step 303), it is determined whether the input is designated or the output is designated (steps 304 and 305). The output process (step 306) or the input process (step Step 309)
Are executed, and the above processing is repeatedly executed until the pointer i becomes n.

次に第4図は入力処理の詳細を示すフローチャートで
あり、以下このフローチャートを参照しながら入力処理
について説明する。
Next, FIG. 4 is a flowchart showing details of the input processing. The input processing will be described below with reference to this flowchart.

プログラムがスタートされると、まずリトライ回数カ
ウンタeを初期化させた後(ステップ401)、i番目の
入出力カードアドレスを取り出し(ステップ402)、当
該取り出されたアドレスに基いて入出力データの読み出
しを行い(ステップ403)、その後入力エラーの有無を
判定する(ステップ404)。
When the program is started, first, a retry number counter e is initialized (step 401), and the i-th I / O card address is taken out (step 402), and the I / O data is read out based on the taken out address. Is performed (step 403), and thereafter, the presence or absence of an input error is determined (step 404).

ここで入力エラーがなければ(ステップ404NO)、当
該入出力データを一括入出力メモリのi番目へ格納する
(ステップ405)。
If there is no input error (NO in step 404), the input / output data is stored in the i-th batch input / output memory (step 405).

これに対し、入力エラーが存在する場合には(ステッ
プ404YES)、従来と同様リトライ処理を実行し(ステッ
プ406,403,404,407)、リトライ処理によってもなおか
つエラーが修復されない場合には(ステップ407YES)、
図中点線で囲まれた本発明の特徴的な処理へと移行す
る。
On the other hand, if an input error exists (step 404 YES), retry processing is executed as in the past (steps 406, 403, 404, 407). If the error is not recovered by the retry processing (step 407 YES),
The processing shifts to the characteristic processing of the present invention surrounded by the dotted line in the figure.

すなわち、まずエラー通知フラグiを介してi番目の
カードにエラーが生じた旨の通知を行い(ステップ40
8)、ユーザのエラー処理プログラムを実行し(ステッ
プ409)、その後実行停止フラグsの状態を判定する
(ステップ410)。
That is, first, a notification that an error has occurred in the i-th card is made via the error notification flag i (step 40).
8) The user's error processing program is executed (step 409), and then the state of the execution stop flag s is determined (step 410).

ここで、エラー通知フラグiがセットされていること
を条件として、実行停止フラグsをセットするようにエ
ラー処理プログラムが組まれていれば、エラー処理プロ
グラムの実行結果として実行停止フラグsはセットされ
ている。
Here, if an error processing program is set to set the execution stop flag s on condition that the error notification flag i is set, the execution stop flag s is set as an execution result of the error processing program. ing.

また、同様にして、エラー通知フラグiがセットされ
ていることを条件として、入出力禁止フラグaがセット
されるようにエラー処理プログラムが組まれていれば、
エラー処理プログラムの実行結果として入出力禁止フラ
グaがセットされている。
Similarly, if an error processing program is set so that the input / output prohibition flag a is set on condition that the error notification flag i is set,
An input / output prohibition flag a is set as an execution result of the error processing program.

そのため、ユーザの作成するエラー処理プログラムの
内容に応じ(ステップ410)、実行停止処理が行なわれ
たり(ステップ411)、あるいはそのまま正常通り制御
が継続される(ステップ410NO)。
Therefore, depending on the contents of the error processing program created by the user (step 410), execution stop processing is performed (step 411), or control is continued as normal (step 410NO).

また、第3図のフローチャートで説明したように、入
出力禁止フラグaがセットされていれば(ステップ303Y
ES)、当該カードに関し入力処理(ステップ309)はス
キップされ、当該入力カードに関しては一括入力処理は
禁止されることとなる。
Also, as described in the flowchart of FIG. 3, if the input / output prohibition flag a is set (step 303Y
ES), the input processing (step 309) is skipped for the card, and the batch input processing is prohibited for the input card.

なお、以上は入力処理の場合で説明したが、出力処理
の場合にも同様であり、第5図に示されるように、ユー
ザが作成するエラー処理プログラムの実行結果に応じ
(ステップ510)、実行停止処理(ステップ511)、また
は制御の継続が選択され、また入出力禁止フラグがセッ
トされた場合には(ステップ303YES)、第3図で示すよ
うに出力処理(ステップ306)はスキップされ、当該出
力カードに限り一括出力処理は禁止されることとなる。
Although the above description has been made with reference to the input processing, the same applies to the case of the output processing. As shown in FIG. 5, execution is performed according to the execution result of the error processing program created by the user (step 510). If the stop process (step 511) or the continuation of control is selected and the input / output prohibition flag is set (step 303YES), the output process (step 306) is skipped as shown in FIG. Batch output processing is prohibited only for output cards.

このように本実施例のプログラマブル・コントローラ
によれば、エラー通知フラグaを参照条件としていかな
るエラー処理プログラムを組むかに応じ、正常通り制御
を継続させたり、当該入出力カードに限り一括入出力処
理を禁止させたり、あるいは制御全体を実行停止させる
等の選択を自由に行うことができ、当該故障カードの重
要度に応じ最適な故障対策を講ずることができるわけで
ある。
As described above, according to the programmable controller of the present embodiment, depending on what error processing program is set up using the error notification flag a as a reference condition, control can be continued as normal, or batch input / output processing can be performed only for the input / output card. , Or stop execution of the entire control, and the like, and an optimal countermeasure can be taken according to the importance of the faulty card.

なお、以上の実施例では、一括入出力処理内において
エラー処理プログラムの実行(ステップ409,509)を行
ったが、エラー処理プログラムの実行については通常の
ユーザプログラム実行処理5の中において行ってもよい
ことは勿論である。
In the above embodiment, the execution of the error processing program (steps 409, 509) is performed in the batch input / output processing. However, the execution of the error processing program may be performed in the normal user program execution processing 5. Of course.

[発明の効果] 以上の説明で明らかなように、この発明によれば、故
障カード識別情報を参照条件としてどのようなエラー処
理プログラムを組むかにより、各入出力カードの重要度
に応じ、故障対策をきめ細かく立てることができ、この
プログラマブル・コントローラの使い勝手を向上させる
ことができる。
[Effects of the Invention] As is apparent from the above description, according to the present invention, depending on the degree of importance of each input / output card, depending on what error processing program is set up using the failed card identification information as a reference condition, Measures can be taken in detail, and the usability of this programmable controller can be improved.

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

第1図は本発明の実施例であるプログラマブル・コント
ローラの基本的な動作を概略的に示すブロック図、第2
図は一括入出力テーブル、エラー通知フラグ、実行停止
フラグの内容を示すメモリマップ、第3図は本発明に係
わる一括入出力処理の全体を概略的に示すフローチャー
ト、第4図は本発明に係わる入力処理の詳細を示すフロ
ーチャート、第5図は本発明の係わる出力処理の詳細を
示すフローチャート、第6図は従来のプログラマブル・
コントローラにおける基本的な動作を概略的に示すブロ
ック図、第7図は従来のコントローラにおける一括入出
力メモリ、一括入出力テーブル、入出力カードの相互関
係を示すメモリマップ、第8図は従来のコントローラに
おける一括入出力処理の全体を概略的に示すフローチャ
ート、第9図は従来のコントローラにおける一括入出力
処理の詳細を示すフローチャートである。 1……入出力カード 2……入出力データメモリ 3a……一括入出力テーブル 4……一括入出力処理 5……ユーザプログラム実行処理 6……実行停止処理 7……ユーザエラー処理プログラム 8……エラー通知フラグ 9……実行停止フラグ 10……入出力禁止フラグ 11……実行停止処理
FIG. 1 is a block diagram schematically showing a basic operation of a programmable controller according to an embodiment of the present invention.
FIG. 3 is a memory map showing the contents of a batch input / output table, an error notification flag, and an execution stop flag. FIG. 3 is a flowchart schematically showing the whole batch input / output processing according to the present invention. FIG. 5 is a flowchart showing details of input processing, FIG. 5 is a flowchart showing details of output processing according to the present invention, and FIG.
FIG. 7 is a block diagram schematically showing the basic operation of the controller, FIG. 7 is a memory map showing the relationship between the collective input / output memory, the collective input / output table and the input / output card in the conventional controller, and FIG. 9 is a flowchart schematically showing the whole batch input / output processing, and FIG. 9 is a flowchart showing details of the batch input / output processing in the conventional controller. 1 Input / output card 2 Input / output data memory 3a Batch input / output table 4 Batch input / output processing 5 User program execution processing 6 Execution stop processing 7 User error processing program 8 Error notification flag 9: Execution stop flag 10: Input / output prohibition flag 11: Execution stop processing

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】各入出力カードと入出力データメモリとの
間においてカード単位で入出力データの一括入出力を行
う一括入出力処理と、入出力データメモリの内容に基い
てユーザプログラムを実行するユーザプログラム実行処
理とを交互に繰り返すプログラマブル・コントローラに
おいて、 各入出力カード毎に故障の有無を監視し、いずれかのカ
ードに関して故障が発生した場合には当該故障カードの
識別情報をユーザプログラムで参照可能なエリアに書き
込む手段と、 各入出力カードに対応して設けられ、かつ前記故障カー
ド識別情報を参照条件としてユーザの作成するエラー処
理プログラムの実行結果によりセット、リセットされる
入出力禁止フラグと、 前記一括入出力に際して入出力禁止フラグの内容を参照
し、これがセット状態にある場合には当該カードに限り
一括入出力を禁止する手段と、 を設けたことを特徴とするプログラマブル・コントロー
ラ。
1. A batch input / output process for batch input / output of input / output data in card units between each input / output card and an input / output data memory, and executes a user program based on the contents of the input / output data memory. In a programmable controller that alternately repeats the user program execution processing, the presence or absence of a failure is monitored for each I / O card, and if a failure occurs in any of the cards, the identification information of the failed card is referred to in the user program Means for writing to a possible area, an input / output prohibition flag provided corresponding to each input / output card, and set / reset by an execution result of an error processing program created by a user using the failed card identification information as a reference condition, and At the time of the batch input / output, the contents of the input / output prohibition flag are referred to, Programmable controller, characterized by comprising means for prohibiting the collective output only to the card, the if.
【請求項2】各入出力カードと入出力データメモリとの
間においてカード単位で入出力データの一括入出力を行
う一括入出力処理と、入出力データメモリの内容に基い
てユーザプログラムを実行するユーザプログラム実行処
理とを交互に繰り返すプログラマブル・コントローラに
おいて、 各入出力カード毎に故障の有無を監視し、いずれかのカ
ードに関して故障が発生した場合には当該故障カードの
識別情報をユーザプログラムで参照可能なエリアに書き
込む手段と、 前記故障カード識別情報を参照条件としてユーザの作成
するエラー処理プログラムの実行結果によりセット、リ
セットされる実行停止フラグと、 前記実行停止フラグがセット状態にある場合には実行停
止処理を行う手段と、 を設けたことを特徴とするプログラマブル・コントロー
ラ。
2. A batch input / output process for batch input / output of input / output data in card units between each input / output card and an input / output data memory, and a user program is executed based on the contents of the input / output data memory. In a programmable controller that alternately repeats the user program execution processing, the presence or absence of a failure is monitored for each I / O card, and if a failure occurs in any of the cards, the identification information of the failed card is referred to in the user program Means for writing to a possible area; an execution stop flag that is set and reset according to an execution result of an error processing program created by a user using the failed card identification information as a reference condition; and a case where the execution stop flag is in a set state. Means for performing execution stop processing; and Trolla.
JP1231650A 1989-09-08 1989-09-08 Programmable controller Expired - Lifetime JP2635777B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1231650A JP2635777B2 (en) 1989-09-08 1989-09-08 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1231650A JP2635777B2 (en) 1989-09-08 1989-09-08 Programmable controller

Publications (2)

Publication Number Publication Date
JPH0395604A JPH0395604A (en) 1991-04-22
JP2635777B2 true JP2635777B2 (en) 1997-07-30

Family

ID=16926822

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1231650A Expired - Lifetime JP2635777B2 (en) 1989-09-08 1989-09-08 Programmable controller

Country Status (1)

Country Link
JP (1) JP2635777B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53148679A (en) * 1977-05-30 1978-12-25 Toshiba Corp Sequncing control system for plant
JPS6111871A (en) * 1984-06-27 1986-01-20 Omron Tateisi Electronics Co Programmable controller

Also Published As

Publication number Publication date
JPH0395604A (en) 1991-04-22

Similar Documents

Publication Publication Date Title
EP0486304B1 (en) Initialising computer systems
JP2635777B2 (en) Programmable controller
JPH086865A (en) Data processor
JP3357777B2 (en) Program control system
JPS628831B2 (en)
CN110476153A (en) The method and electronic equipment of access instruction SRAM
JP2870202B2 (en) Method and apparatus for mutual monitoring between processors
JP3315266B2 (en) Self-diagnosis status display method
JP3314719B2 (en) Flash EEPROM and its test method
JP2811906B2 (en) Vending machine data error notification control device
JPH06309236A (en) Illegal write detecting circuit for memory
CN111783162A (en) Data protection implementation method and device and computer equipment
JPH01162094A (en) Key telephone system
JPH0612251A (en) Program starting device
JPH03211619A (en) Data processor
JPH08110877A (en) Rom contents copy system
JPH04336631A (en) Error message output system
JPS6132701B2 (en)
JPH08235029A (en) Storage method for system fault information
JPS59106017A (en) Testing of input/output controller
JPH076103A (en) Fault processing system for input/output channel
JPH10187202A (en) Microprocessor controller
JPH03268300A (en) Data processor
JPH02211532A (en) System identification information managing system
JPH034356A (en) Method for detecting processor trouble in multiprocessor system

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080425

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20090425

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20100425

Year of fee payment: 13

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100425

Year of fee payment: 13