JP2539264B2 - Sequence controller - Google Patents

Sequence controller

Info

Publication number
JP2539264B2
JP2539264B2 JP1086952A JP8695289A JP2539264B2 JP 2539264 B2 JP2539264 B2 JP 2539264B2 JP 1086952 A JP1086952 A JP 1086952A JP 8695289 A JP8695289 A JP 8695289A JP 2539264 B2 JP2539264 B2 JP 2539264B2
Authority
JP
Japan
Prior art keywords
flag
sequence
sequence table
stored
branch condition
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
JP1086952A
Other languages
Japanese (ja)
Other versions
JPH02267602A (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP1086952A priority Critical patent/JP2539264B2/en
Publication of JPH02267602A publication Critical patent/JPH02267602A/en
Priority to US08/034,220 priority patent/US5359507A/en
Application granted granted Critical
Publication of JP2539264B2 publication Critical patent/JP2539264B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、プラグラマブルなシーケンス制御を行う
シーケンスコントローラに関するものである。
TECHNICAL FIELD The present invention relates to a sequence controller for performing programmable sequence control.

〔従来の技術〕[Conventional technology]

第5図は2種の液体を混合する装置を制御対象とする
場合の従来のシーケンスコントローラを含むシステムを
示すシステム構成図であり、図において、1はシーケン
スコントローラ、2は液体AとBとをかき混ぜるための
タンク、3は液体A,Bの混合機、4は液体A注入用のバ
ルブ、5は液体B注入用のバルブ、6は混合液排出用の
バルブ、7は混合機3を回転させるためのモータ、8は
スタート用の押釦スイッチ、9は故障停止解除用の押釦
スイッチ、10,20,30はどこまでタンク2に液体が入った
かを知るための液面検出用のレベルスイッチである。
FIG. 5 is a system configuration diagram showing a system including a conventional sequence controller when a device for mixing two kinds of liquids is a control target, in which 1 is a sequence controller and 2 is liquids A and B. A tank for stirring, 3 is a mixer for liquids A and B, 4 is a valve for injecting liquid A, 5 is a valve for injecting liquid B, 6 is a valve for discharging a mixed liquid, and 7 is a mixer 3 Is a push button switch for starting, 9 is a push button switch for canceling the failure stop, and 10, 20, 30 are liquid level detecting level switches for knowing how much liquid has entered the tank 2.

バルブ4はシーケンスコントローラ1の出力である信
号O4で制御され、「1」で開、「0」で閉となる。以
下、同様にバルブ5は信号O5、バルブ6は信号O6で開閉
制御される。モータ7は信号O7で制御され、「1」で起
動、「0」で停止となる。押釦スイッチ8はシーケンス
コントローラ1の入力となる信号I8を出力し、押釦スイ
ッチ9は信号I9を出力し、それぞれ「1」でON、「0」
でOFFである。レベルスイッチ10,20,30は信号I10,I20,I
30を出力し、液面がそれぞれ所定高さを越えると「1」
になり、所定高さ以下だと「0」となる。15は警報ラン
プで、シーケンスコントローラ1からの信号O15が
「1」でON、「0」でOFFとなる。
The valve 4 is controlled by a signal O4 which is an output of the sequence controller 1, and is opened by "1" and closed by "0". Similarly, the valve 5 is controlled by the signal O5 and the valve 6 is controlled by the signal O6. The motor 7 is controlled by the signal O7, and starts at "1" and stops at "0". The push button switch 8 outputs a signal I8 which is an input to the sequence controller 1, and the push button switch 9 outputs a signal I9, which is turned ON by "1" and turned "0"
Is OFF. Level switches 10, 20, 30 are signals I10, I20, I
When 30 is output and the liquid level exceeds the predetermined height, "1"
And becomes "0" when the height is equal to or lower than the predetermined height. Reference numeral 15 is an alarm lamp, which is turned on when the signal O15 from the sequence controller 1 is "1" and turned off when it is "0".

第6図は第5図のシステムを制御する手順を記載した
シーケンステーブルである。このシーケンステーブルの
詳細な内容は、第7図の固定データテーブルと、第8図
の可変データテーブルと、第10図のアドレステーブルと
から成る。このシーケンステーブルの実行は第11図に示
すテーブル実行命令EXE−TBL−1を周期的に実行するこ
とにより、第12図のフローチャートに従って制御され
る。シーケンスコントローラ1はこのようなシーケンス
テーブルを何故も実行できるので、ここでは議論の対象
となるシーケンステーブルをテーブル1としておく。
FIG. 6 is a sequence table which describes the procedure for controlling the system of FIG. The detailed contents of this sequence table consist of the fixed data table of FIG. 7, the variable data table of FIG. 8 and the address table of FIG. The execution of this sequence table is controlled according to the flow chart of FIG. 12 by periodically executing the table execution instruction EXE-TBL-1 shown in FIG. Since the sequence controller 1 can execute such a sequence table for any reason, the sequence table to be discussed is set to Table 1 here.

次に動作について説明する。正常動作の場合は第6図
のシーケンステーブルはステップST(1)でスタート用
の押釦スイッチ8がON、即ち信号I8が「1」になるのを
待っている。押釦スイッチ8がONされると、分岐条件N
o.1のM11の状態フラグが「1」となり、ステップST
(2)に移行する。そしてステップST(2)の出力処理
が実施される。即ち、液体A用バルブ4への信号O4のみ
が「1」で他の信号は全て「0」となって、液体Aが、
タンク2に注入される。この液体Aの液面レベルが
「中」の高さになると、信号I20とI30とが「1」になっ
て、上記M11の状態フラグが「1」となり、ステップST
(4)に移行する。そして、ステップST(4)の出力処
理が実施される。即ち、液体B用のバルブ5への信号O5
のみが「1」で、他の信号は全て「0」となって、液体
Bがタンク2に注入される。液体Bの液面レベルが
「高」の高さになると、信号I10,I20,I30が全て「1」
となる。従って、M11の状態フラグが「1」となってス
テップST(6)に移行する。ステップST(6)ではモー
タ7への信号O7が「1」となって、このモータ7が起動
されることにより、混ぜ合わせ処理が成される。そして
分岐条件No.2のM12のステップタイマがタイムアップし
て、その状態フラグが「1」になると、ステップST
(7)に移行する。ステップST(7)では信号O6を
「1」として排出用のバルブ6を開き、タンク2が空に
なるまで排水した後、M11の状態フラグを「1」にし
て、ステップST(9)に移行する。ステップST(9)で
は全ての信号O4〜O7を「0」にしてステップST(1)に
戻る。
Next, the operation will be described. In the normal operation, the sequence table of FIG. 6 waits at step ST (1) for the start push button switch 8 to be turned on, that is, for the signal I8 to become "1". When push button switch 8 is turned on, branch condition N
The status flag of M11 of o.1 becomes "1", and step ST
Move to (2). Then, the output process of step ST (2) is performed. That is, only the signal O4 to the liquid A valve 4 is "1" and all the other signals are "0", and the liquid A is
It is poured into the tank 2. When the liquid surface level of the liquid A becomes "medium", the signals I20 and I30 become "1", the state flag of the M11 becomes "1", and step ST
Go to (4). Then, the output process of step ST (4) is performed. That is, the signal O5 to the valve 5 for liquid B
Only one is "1", all other signals are "0", and the liquid B is injected into the tank 2. When the liquid level of the liquid B becomes “high”, the signals I10, I20, I30 are all “1”.
Becomes Therefore, the state flag of M11 becomes "1" and the process proceeds to step ST (6). In step ST (6), the signal O7 to the motor 7 becomes "1", and the motor 7 is started to perform the mixing process. Then, when the step timer of M12 of branch condition No.2 times up and the status flag becomes "1", step ST
Move to (7). In step ST (7), the signal O6 is set to "1" and the discharge valve 6 is opened to drain the tank 2 until the tank 2 becomes empty. Then, the state flag of M11 is set to "1", and the process proceeds to step ST (9). To do. In step ST (9), all the signals O4 to O7 are set to "0" and the process returns to step ST (1).

次に異常動作の場合について説明する。今、ステップ
ST(2)にあるとする。バルブ4,5,6,レベルスイッチ1
0,20,30等が故障して入力条件(分岐条件)がいつまで
成立しない異常状態が続くと、M11が成立する前に分岐
条件No.3のM17の監視タイマがタイムアップとなって条
件が成立し、ステップST(3)に行く。従って、警報ラ
ンプ15がONとなり、信号15が「1」となる。それに対応
してオペレータはプラントの状態をチェックし、何らか
の処置をした後、移行可能であれば、故障停止解除用の
押釦スイッチ9を押す。すると信号O9が「1」となって
M11の状態フラグが「1」となり、ステップST(2)を
再実行する。このとき警報ランプ15はOFFとなり、問題
がなければ、正常状態に復帰する。
Next, the case of abnormal operation will be described. Now step
Suppose it is in ST (2). Valve 4,5,6, Level switch 1
If 0,20,30, etc. fails and the input condition (branch condition) is not satisfied until the abnormal condition continues, the monitoring timer of M17 of branch condition No.3 will time out before M11 is satisfied and the condition will When it is established, go to step ST (3). Therefore, the alarm lamp 15 is turned on and the signal 15 becomes "1". In response to this, the operator checks the state of the plant, takes some measures, and if possible, pushes the push button switch 9 for canceling the failure stop. Then the signal O9 becomes "1"
The status flag of M11 becomes "1", and step ST (2) is re-executed. At this time, the alarm lamp 15 is turned off, and if there is no problem, the normal state is restored.

以下、ステップST(4),ST(7)でも同様に監視タ
イマがタイムアップするとM17の分岐条件が成立し、そ
の状態フラグが「1」となり、上述と同様の動作が行わ
れる。以上のように異常処理のためにステップST
(3),ST(5),ST(8)というステップが費やされる
ことになる。
Similarly, in steps ST (4) and ST (7), when the monitoring timer times out, the branch condition of M17 is satisfied, the status flag becomes "1", and the same operation as described above is performed. As described above, step ST for abnormality processing
The steps (3), ST (5), ST (8) are spent.

上述したシーケンステーブルの動作は、第12図に示す
フローチャートに従って行われるが、このフローチャー
トの説明に先立ち、シーケンステーブルのデータ内容に
ついて説明する。
The operation of the sequence table described above is performed according to the flowchart shown in FIG. 12. Prior to the description of this flowchart, the data contents of the sequence table will be described.

第7図は第6図のシーケンステーブルの中の固定デー
タが記憶される固定データテーブルであり、ステップST
(3),ST(2)のデータを例として示す。ステップST
(3)用データは ステップST(2)用データは 第8図はシーケンステーブルの可変データを記憶する
可変データ部テーブルである。図において、 ステップNo.12は現状ステップNo.を示す。例えばステ
ップST(1)にいるなら、01Hとなる。
FIG. 7 is a fixed data table in which fixed data in the sequence table of FIG. 6 is stored.
Data of (3) and ST (2) are shown as an example. Step ST
The data for (3) is The data for step ST (2) is FIG. 8 is a variable data section table for storing variable data of the sequence table. In the figure, step No. 12 shows the current step No. For example, if you are in step ST (1), it will be 01H.

状態フラグ11はシーケンステーブルのステータスを記
憶するもので、その詳細を第9図に示す。図において、 RUNフラグ:シーケンステーブルの実行/停止をコント
ローラするフラグ。本例では「1」のまま、つまり実行
状態であるとする。
The status flag 11 stores the status of the sequence table, the details of which are shown in FIG. In the figure, RUN flag: A flag that controls the execution / stop of the sequence table. In this example, it is assumed that the state is “1”, that is, the execution state.

入力条件成立フラグ(M11の状態フラグ): 入力の値がシーケンステーブルに記載の値と一致した
とき「1」、不一致のとき「0」。例えば、ステップST
(3)にあるとすると、I10=1,I20=0,I30=0のとき
「1」,その他のとき「0」になる。I8,I9は空白であ
るのでチェック条件に入らない。
Input condition satisfaction flag (M11 status flag): "1" when the input value matches the value described in the sequence table, and "0" when the input value does not match. For example, step ST
If it is in (3), it will be "1" when I10 = 1, I20 = 0, I30 = 0, and "0" otherwise. Since I8 and I9 are blank, they do not meet the check conditions.

ステップタイマアップ(M12の状態フラグ):ステップ
の先頭で実行される出力処理でリセットされると共に、
第7図の中にあるそのステップのステップタイマ値で起
動がかかる。そして、タイムアップすると「1」にな
る。
Step timer up (M12 status flag): reset by the output process executed at the beginning of the step,
The activation is started with the step timer value of that step in FIG. 7. Then, when the time is up, it becomes "1".

監視タイマアップ(M17の状態フラグ):ステップタイ
マと同様である。
Monitor timer up (M17 status flag): Same as step timer.

ステップ移行フラグ:出力処理をすべきかどうかに使用
する。第12図参照。
Step transition flag: Used to determine whether output processing should be performed. See FIG.

第10図はシーケンステーブルのアドレス部が記憶され
るアドレステーブルである。
FIG. 10 is an address table in which the address part of the sequence table is stored.

次に第12図について説明する。 Next, FIG. 12 will be described.

先ず、ステップST(100)で上記RUNフラグを調べ、
「1」であれば、ステップST(101)で、上記ステップ
移行フラグを調べ、「1」であればステップST(102)
に進んで出力処理を行う。ここで、出力処理とは、第10
図のアドレステーブルのアドレスに指定データを出力
(ステップST(2)では信号O4に「1」、信号O5に
「0」、信号O6に「0」、信号O7に「0」を出力、ステ
ップST(3)のような空白ではノーオペレーション)す
ると共に、状態フラグ11の入力条件成立フラグ、ステッ
プタイマアップフラグ、監視タイマアップフラグをリセ
ットし、ステップタイマ及び監視タイマを起動する処理
である。この出力処理が終ると、ステップST(103)で
ステップ移行フラグをリセットして終了とする。
First, check the RUN flag in step ST (100),
If it is "1", the step transition flag is checked in step ST (101), and if it is "1", step ST (102)
Proceed to and perform output processing. Here, the output process is the tenth
The designated data is output to the address in the address table shown in the figure (in step ST (2), signal O4 is "1", signal O5 is "0", signal O6 is "0", signal O7 is "0", step ST (3) No operation is performed in the blank as in (3)), the input condition satisfaction flag, the step timer up flag, and the monitor timer up flag of the status flag 11 are reset, and the step timer and the monitor timer are activated. When this output processing ends, the step transition flag is reset in step ST (103) and the processing ends.

また、ステップST(101)でステップ移行フラグが
「0」のときは、ステップST(104)に進んで入力条件
チェック処理が行われる。入力条件チェック処理とは、
信号I10,I20,I30,I8,I9の入力データを順次読み込み、
指定の値と全て一致すれば、状態フラグの入力条件成立
フラグを「1」にし、一致しなければ「0」にする処理
である。例えば、ステップST(2)では、I10=0,I20=
1,I30=1のとき「1」にし、その他のとき「0」にす
る。
When the step transition flag is "0" in step ST (101), the process proceeds to step ST (104), and the input condition check process is performed. What is the input condition check process?
Input data of signals I10, I20, I30, I8, I9 are read sequentially,
If all the specified values match, the input condition satisfaction flag of the status flag is set to "1", and if they do not match, the processing is set to "0". For example, in step ST (2), I10 = 0, I20 =
Set to "1" when 1, I30 = 1, otherwise set to "0".

上記入力条件チェック処理が終ると、次にステップST
(105)に進んでタイマ処理が行われる。タイマ処理と
は、ステップST(102)の出力処理で起動されたステッ
プタイマと監視タイマとのタイムアップ時間を更新し、
所定のアップ時になれば、ステップタイマ,監視タイマ
のアップフラグをセットする処理で、タイマ値は第7図
に示すようにステップ毎に指定される。
When the above input condition check processing is completed, next step ST
Proceeding to (105), timer processing is performed. The timer processing is to update the time-up time of the step timer and the monitoring timer started in the output processing of step ST (102),
When the predetermined up time is reached, the timer value is designated for each step as shown in FIG. 7 in the process of setting up flags of the step timer and the monitoring timer.

上記タイマ処理の次はステップST(106)で分岐条件
の成立を調べる。分岐条件成立とは、例えばステップST
(2)では、M11(入力条件成立フラグのこと)が
「1」になる、又はM17(監視タイマアップフラグのこ
と)が「1」になると成立となる。M11とM17とが同時に
成立すると、上に書かれている方が優先、つまりM11が
優先となる。M12の所は空白のため、M12が「1」になっ
ても、分岐条件成立にはならない。
After the above timer processing, it is checked in step ST (106) whether the branch condition is satisfied. Satisfaction of the branch condition means, for example, step ST
In (2), it is established when M11 (input condition satisfaction flag) becomes "1" or M17 (monitoring timer up flag) becomes "1". When M11 and M17 are established at the same time, the one written above has priority, that is, M11 has priority. Since M12 is blank, the branch condition will not be met even if M12 becomes "1".

上記分岐条件が成立したときは、ステップST(107)
でステップ更新処理が行われる。ステップ更新処理と
は、第8図のステップNo.12を新ステップに書換える処
理である。例えばステップST(2)のときは、ステップ
No.12はST(2)となっているが、M11の分岐条件が成立
するとステップST(4)に移行する。ステップNo.はST
(4)に書換えられる。
When the above branch condition is satisfied, step ST (107)
The step update process is performed. The step updating process is a process of rewriting step No. 12 in FIG. 8 to a new step. For example, if step ST (2), step
No. 12 is ST (2), but if the branch condition of M11 is satisfied, it moves to step ST (4). Step number is ST
It is rewritten as (4).

上記ステップ更新処理が終るとステップST(108)で
ステップ移行フラグをセットして終了とする。
When the step updating process is completed, the step transition flag is set in step ST (108) and the process is ended.

以上の動作は、第11図のテーブル実行命令EXE−TBL−
1により、周期的に行われる。
The above operation is performed by the table execution instruction EXE-TBL-
1 is performed periodically.

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

従来のシーケンスコントローラは以上のように構成さ
れているので、シーケンステーブルの各ステップに対応
して、異常処理状態の処理のためのステップを設ける必
要がある。上述した第6図のシーケンステーブルの場合
は、異常処理のために3つのステップST(3),ST
(5),ST(8)が設けられているが、実際のプラント
等の場合は、シーケンステーブルのステップ数は多くな
るため、異常処理のためのステップ数も多く設ける必要
があり、このためメモリ容量が大きくなるなどの問題点
があった。
Since the conventional sequence controller is configured as described above, it is necessary to provide a step for processing the abnormal processing state corresponding to each step of the sequence table. In the case of the sequence table of FIG. 6 described above, there are three steps ST (3), ST for abnormality processing.
(5) and ST (8) are provided, but in the case of an actual plant, the number of steps in the sequence table is large, so it is necessary to provide a large number of steps for abnormal processing. There was a problem such as an increase in capacity.

この発明は、上記のような問題点を解消するためにな
されたもので、異常状態処理用ステップ数が少なく、メ
モリ容量を小さくできるシーケンスコントローラを得る
ことを目的とする。
The present invention has been made to solve the above problems, and an object of the present invention is to provide a sequence controller having a small number of steps for abnormal state processing and a small memory capacity.

〔課題を解決するための手段〕[Means for solving the problem]

この発明に係るシーケンスコントローラは、シーケン
ステーブルの中にステップが遷移するときに元のステッ
プNo.を記憶するステップ番号記憶部を設け、この状態
において所定の分岐条件が成立したとき、上記記憶した
ステップ又はその先のステップに移行させるステップ復
帰手段を備えたものである。
The sequence controller according to the present invention is provided with a step number storage unit that stores the original step number when a step transitions in the sequence table, and when a predetermined branch condition is satisfied in this state, the stored step Alternatively, it is provided with a step returning means for shifting to the previous step.

〔作 用〕[Work]

この発明におけるシーケンステーブルは、テーブルの
構成要素である異常処理ステップを共通化できるため、
異常処理ステップの総数が大幅に減少し、メモリ容量が
小さくなる。
Since the sequence table in the present invention can share the abnormality processing steps that are the constituent elements of the table,
The total number of abnormal processing steps is greatly reduced, and the memory capacity is reduced.

〔発明の実施例〕Example of Invention

以下この発明の一実施例を図について説明する。第1
図は第6図と同一動作をするこの発明によるシーケンス
テーブルを示し、第2図はこの発明による可変データテ
ーブルを示す。ここで、リターンNo.13はステップ番号
記憶部である。また第7図及び第9〜12図は従来と同様
この発明にも適用できるが、第7図及び第12図について
は、内容が少し変わる所がある。
An embodiment of the present invention will be described below with reference to the drawings. First
6 shows a sequence table according to the present invention which operates in the same manner as FIG. 6, and FIG. 2 shows a variable data table according to the present invention. Here, the return No. 13 is a step number storage unit. Although FIGS. 7 and 9 to 12 can be applied to the present invention as in the conventional case, the contents of FIGS. 7 and 12 are slightly changed.

第7図の場合は、分岐条件No.以外は従来と同一であ
る。第1図のシーケンステーブルのステップST(2)に
おける分岐条件No.の中にあるR(リターン)表示は、O
FFHが記載され、空白は従来と同様0とする。またシー
ケンステーブルのステップST(3)の分岐条件No.の中
にある(2S)は監視タイムアップフラグが「1」を示す
82Hが記憶される。(S表示は監視タイマアップフラグ
が「1」)。分岐条件No.の中にあるST(4)は従来通
りO4Hが記憶される。
In the case of FIG. 7, it is the same as the conventional one except the branch condition No. The R (return) display in the branch condition No. in step ST (2) of the sequence table in FIG.
FFH is described, and the blank is 0 as in the past. In the branch condition No. of step ST (3) of the sequence table (2S), the monitoring time-up flag indicates "1".
82H is stored. (S display indicates that the monitoring timer up flag is "1"). ST (4) in the branch condition No. stores O4H as before.

第12図の場合は、ステップST(107)のステップ更新
処理(ステップ復帰手段の処理)以外は従来と同様であ
る。上記ステップ更新処理は第7図の固定データテーブ
ルに記憶されている分岐条件の成立した分岐条件No.の
監視タイマアップフラグが「0」のときは従来と同様、
第2図の可変データテーブルのステップNo.を更新する
だけである。
In the case of FIG. 12, it is the same as the conventional one except for the step updating process of step ST (107) (the process of the step returning means). The above step updating process is similar to the conventional case when the monitoring timer up flag of the branch condition No. in which the branch condition is satisfied stored in the fixed data table of FIG. 7 is “0”.
All that is required is to update the step number in the variable data table shown in FIG.

分岐条件No.の監視タイマアップフラグが「1」でOFF
H以外のときは、ステップNo.12に記憶された値をリター
ンNo.13の所に退避させた後、ステップNo.12を更新す
る。また、分岐条件No.がOFFHのときは、リターンNo.13
の所に記憶していた値をステップNo.12に移す。
OFF when the monitoring timer up flag of the branch condition No. is "1"
If the value is other than H, the value stored in step No. 12 is saved in return No. 13, and then step No. 12 is updated. When the branch condition No. is OFFH, the return No. 13
The value memorized at is moved to step No.12.

次に動作について説明する。 Next, the operation will be described.

第1図で異常状態が発生した場合を説明する。今、ス
テップST(3)にあるとする。バルブ、レベルスイッチ
等が故障して、入力条件が成立する(M11が「1」にな
る)前に監視タイマがON(M17が「1」)になると、ス
テップST(2)に移行するが、「S」がついている、即
ち、固定データテーブルの中の分岐条件No.の監視タイ
マアップフラグが「1」となっているので、ST(3)が
第2図の可変データテーブルのリターンNo.13の所に記
憶される。ステップST(2)では第5図の警報ランプ15
をONにするが、その他の出力データは変化させない。オ
ペレータは異常に気づいてプラント状態を調べ、実行可
能であれば、故障停止解除用の押釦スイッチ9を押し、
信号I9が「1」になる。するとM11が「1」となり
「R」と書かれた分岐をする。その分岐は可変データテ
ーブルのリターンNo.13の所に記憶されたステップへ移
行する処理をする。つまりステップST(3)を再実行す
ることになる。このとき警報ランプ15はOFFとなる。
A case where an abnormal state occurs will be described with reference to FIG. Now, let's assume that it is in step ST (3). If the monitoring timer is turned on (M17 is "1") before the input condition is satisfied (M11 is "1") due to valve, level switch failure, etc., the process proceeds to step ST (2), Since "S" is attached, that is, the monitoring timer up flag of the branch condition No. in the fixed data table is "1", ST (3) is the return number of the variable data table of FIG. Stored in 13 places. In step ST (2), the alarm lamp 15 shown in FIG.
Is turned on, but other output data is not changed. The operator notices the abnormality, checks the plant state, and if it is possible, presses the push button switch 9 for canceling the failure stop,
The signal I9 becomes "1". Then, M11 becomes "1" and a branch with "R" is written. The branch is processed to move to the step stored in the return number 13 of the variable data table. That is, step ST (3) is re-executed. At this time, the alarm lamp 15 is turned off.

また、ステップST(4),ST(6)で異常が発生した
場合も、上記と同様にステップST(2)に行った後、復
帰できることは明らかであろう。
Also, it is clear that even if an abnormality occurs in steps ST (4) and ST (6), it is possible to recover after performing step ST (2) in the same manner as above.

なお、上記実施例では、異常処理を共通化するという
観点で述べたが、正常な処理を同様な方式で共通化でき
ることは明らかであろう。
Although the above embodiment has been described from the viewpoint of sharing the abnormal processing, it will be apparent that normal processing can be shared by the same method.

また、上記実施例では復帰ステップNo.を1つだけ記
憶する例を述べたが、LIFO(Last In Fast Out)スタッ
ク方式にしてネスティングできることも明らかである。
Further, in the above embodiment, an example in which only one return step No. is stored has been described, but it is also clear that nesting can be performed by a LIFO (Last In Fast Out) stack method.

またリターンNo.13に記憶させるかどうかということ
を分岐条件No.の監視タイマアップフラグで区別した
が、例えば第3図のシーケンステーブルに示すように、
M17で分岐したときは、全てリターンNo.13を記憶する方
式としてもよい。
Further, whether to store in the return No. 13 is distinguished by the monitoring timer up flag of the branch condition No., but as shown in the sequence table of FIG. 3, for example,
When branching at M17, all return No. 13 may be stored.

またリターンNo.13で戻るときはリターンNo.13に記憶
されたステップへ戻るようにしているが、記憶されたス
テップ番号に基づいて、そのステップ番号の次のステッ
プへ分岐しても同様な効果を奏する。例えば、ステップ
ST(4)でステップST(2)へ分岐するときに、ST
(4)を記憶するが、ステップST(2)から戻るとき、
ステップST(4)へ戻るのではなく、ステップST(4)
の中のある正常分岐先のステップST(5)へ復帰させて
もよい。
Also, when returning with return No.13, it is to return to the step stored in return No.13, but based on the stored step number, branching to the step next to that step number has the same effect. Play. For example, the step
When ST (4) branches to step ST (2), ST
(4) is stored, but when returning from step ST (2),
Instead of returning to step ST (4), step ST (4)
You may return to step ST (5) of the normal branch destination in a.

またステップST(4)へ行くか、ステップ(5)へ行
くかを、第4図のシーケンステーブルの「R1」,「R2」
で示すように、リターン1,リターン2等の区別をしても
よい。
In addition, whether to go to step ST (4) or step (5), "R1", "R2" in the sequence table of FIG.
As shown in, the return 1 and the return 2 may be distinguished.

第4図において、ステップST(2)の動作を例として
説明する。
In FIG. 4, the operation of step ST (2) will be described as an example.

信号I9が「1」になると、R1リターンする。その動作
は第1図の動作と同じである。信号I14が「1」になる
と、R2リターンする。その動作は第2図の可変データテ
ーブルにおけるリターンNo.に保持されているステップN
o.を調べて、そのステップの分岐条件No.を調べ、分岐
条件の成立したステップへ分岐する。例えば、ステップ
ST(4)で異常が発生し、ステップST(2)の異常処理
の後、信号I14でR2リターンすると、ステップST(4)
へ戻るのではなく、ステップST(4)の分岐条件No.に
書かれたステップST(5)へ分岐する。つまり一度実行
したステップの次のステップへ復帰することになる。
When the signal I9 becomes "1", R1 returns. The operation is the same as that shown in FIG. When the signal I14 becomes "1", R2 is returned. The operation is the step N held in the return number in the variable data table of FIG.
Check o., check the branch condition No. of that step, and branch to the step where the branch condition is satisfied. For example, the step
If an error occurs in ST (4) and after the error processing in step ST (2), R2 is returned by the signal I14, step ST (4)
Instead of returning to step ST, branch to step ST (5) written in the branch condition No. of step ST (4). In other words, it returns to the step next to the step that has been executed once.

〔発明の効果〕〔The invention's effect〕

以上のようにこの発明によればシーケンスコントロー
ラを、異常が発生したとき等に、そのステップNo.を記
憶するステップ番号記憶部を有するシーケンステーブル
と次に所定の分岐条件が成立したとき、記憶したステッ
プ又はその次のステップに移行させるステップ復帰手段
を設けたので、異常処理等のステップを共通化でき、シ
ーケンステーブルの総ステップ数を縮少でき、固定デー
タテーブルのメモリサイズが小さくなるという効果が得
られる。
As described above, according to the present invention, the sequence controller is stored when the abnormality occurs and the sequence table having the step number storage unit that stores the step number and the next predetermined branch condition are satisfied. Since the step return means for moving to the step or the next step is provided, the steps such as the abnormality processing can be shared, the total number of steps of the sequence table can be reduced, and the memory size of the fixed data table can be reduced. can get.

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

第1図はこの発明の一実施例によるシーケンス制御方法
に用いられるシーケンステーブルを示すテーブル図、第
2図は同方法に用いられる可変データテーブルを示すテ
ーブル図、第3図及び第4図はこの発明の他の実施例に
よるシーケンス制御方法に用いられるシーケンステーブ
ルを示すテーブル図、第5図はこの発明を適用し得る制
御対象の一例を示すブロック図、第6図は従来のシーケ
ンス制御方法に用いられるシーケンステーブルを示すテ
ーブル図、第7図はこの発明及び従来の同方法に用いら
れる固定データテーブルを示すテーブル図、第8図は従
来の同方法に用いられる可変データテーブル図、第9図
はこの発明及び従来の同方法に用いられる状態フラグの
構成を示す構成図、第10図はこの発明及び従来の同方法
に用いられるアドレステーブルを示すテーブル図、第11
図はこの発明及び従来の同方法に用いられるテーブル実
行命令信号の構成を示す構成図、第12図はこの発明及び
従来の同方法に用いられるフローチャートである。 1はシーケンスコントローラ、O4〜O7,O15は出力データ
を構成する信号、I8,I9,I10,I20,I30は入力データを構
成する信号、13はリターンNo.(ステップ番号記憶
部)。 なお、図中、同一符号は同一、又は相当部分を示す。
FIG. 1 is a table diagram showing a sequence table used in a sequence control method according to an embodiment of the present invention, FIG. 2 is a table diagram showing a variable data table used in the method, and FIGS. FIG. 5 is a table diagram showing a sequence table used in a sequence control method according to another embodiment of the invention, FIG. 5 is a block diagram showing an example of a controlled object to which the invention can be applied, and FIG. 6 is used in a conventional sequence control method. FIG. 7 is a table diagram showing a sequence table to be used, FIG. 7 is a table diagram showing a fixed data table used in the present invention and the conventional method, FIG. 8 is a variable data table diagram used in the conventional method, and FIG. FIG. 10 is a configuration diagram showing the configuration of a status flag used in the present invention and the conventional method, and FIG. 10 is an adder used in the invention and the conventional method. Table showing the stable, 11
FIG. 12 is a block diagram showing the structure of a table execution instruction signal used in the present invention and the conventional method, and FIG. 12 is a flowchart used in the present invention and the conventional method. Reference numeral 1 is a sequence controller, O4 to O7 and O15 are signals forming output data, I8, I9, I10, I20 and I30 are signals forming input data, and 13 is a return number (step number storage section). In the drawings, the same reference numerals indicate the same or corresponding parts.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】ステップ実行中に入力データを監視し、こ
れらのデータが分岐条件を満たしたとき、次のステップ
に移行する指示が設定されたシーケンステーブルを備え
たシーケンスコントローラにおいて、上記シーケンステ
ーブルは、ステップ実行中に入力データが所定の分岐条
件を満たさず異常条件を満たしたとき、異常処理ステッ
プに移行すると共に上記実行中のステップのステップ番
号をステップ番号記憶部に記憶し、更にステップ復帰手
段によって上記ステップ番号記憶部にステップ番号が記
憶された状態で、上記入力データが上記所定の分岐条件
を満たしたとき実行ステップを上記ステップ番号記憶部
に記憶されたステップ番号に対応したステップに復帰さ
せるか又は上記ステップ番号の次のステップ番号に対応
したステップに移行させることを特徴とするシーケンス
コントローラ。
1. A sequence controller provided with a sequence table in which input data is monitored during step execution, and when these data satisfy branch conditions, the sequence table is provided with a sequence table in which an instruction to move to the next step is set. When the input data does not satisfy the predetermined branch condition and the abnormal condition is satisfied during the step execution, the process proceeds to the abnormal processing step, the step number of the step being executed is stored in the step number storage unit, and the step returning means is further provided. When the input data satisfies the predetermined branch condition while the step number is stored in the step number storage section, the execution step is returned to the step corresponding to the step number stored in the step number storage section. Or move to the step corresponding to the next step number above. Sequence controller, characterized in that to.
JP1086952A 1989-04-07 1989-04-07 Sequence controller Expired - Lifetime JP2539264B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP1086952A JP2539264B2 (en) 1989-04-07 1989-04-07 Sequence controller
US08/034,220 US5359507A (en) 1989-04-07 1993-03-12 Sequence controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1086952A JP2539264B2 (en) 1989-04-07 1989-04-07 Sequence controller

Publications (2)

Publication Number Publication Date
JPH02267602A JPH02267602A (en) 1990-11-01
JP2539264B2 true JP2539264B2 (en) 1996-10-02

Family

ID=13901210

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1086952A Expired - Lifetime JP2539264B2 (en) 1989-04-07 1989-04-07 Sequence controller

Country Status (1)

Country Link
JP (1) JP2539264B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101317251B1 (en) * 2007-12-31 2013-10-10 (주) 미코에스앤피 Probe Card

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008171172A (en) * 2007-01-11 2008-07-24 Toshiba Mitsubishi-Electric Industrial System Corp Sequence control device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5960501A (en) * 1982-09-30 1984-04-06 Toshiba Corp Sequence control device
JP2590108B2 (en) * 1987-06-30 1997-03-12 マツダ株式会社 Monitor for sequence program control system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101317251B1 (en) * 2007-12-31 2013-10-10 (주) 미코에스앤피 Probe Card

Also Published As

Publication number Publication date
JPH02267602A (en) 1990-11-01

Similar Documents

Publication Publication Date Title
JP2539264B2 (en) Sequence controller
JP2001117780A (en) Information storage device and its downloading method
EP1022697A1 (en) Control apparatus for vending machine
JPH10187454A (en) Bios reloading system
JPS59114602A (en) Programmable controller
JPH046004B2 (en)
JP3384141B2 (en) Programmable controller and programmable controller maintenance device
EP0408761A1 (en) Method of safely operating a robot
JPS6118221B2 (en)
JP2851039B2 (en) Workstation backup system
JPH0312198A (en) Automatic washing machine
JP3207243B2 (en) Abnormal status display device
JP2634826B2 (en) Operation mode reset device for copier
JPH0660023A (en) System switching method
JPH10268914A (en) Programmable controller
WO1989005003A1 (en) Method of editing a program for pc
JPH0227689B2 (en)
JPH0863206A (en) Programmable controller
JPH03116347A (en) System restore controller
JPH08286717A (en) Numerical control device
JP2508690B2 (en) Programmable controller
JPH0661809B2 (en) Injection molding machine
JPS62251832A (en) Raising system for electronic apparatus
JPH04148334A (en) System starting processing system
JPS6053887B2 (en) information processing system

Legal Events

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

Free format text: PAYMENT UNTIL: 20070708

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20080708

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20090708

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

Year of fee payment: 13