JPH02267603A - Sequence controller - Google Patents
Sequence controllerInfo
- Publication number
- JPH02267603A JPH02267603A JP8695389A JP8695389A JPH02267603A JP H02267603 A JPH02267603 A JP H02267603A JP 8695389 A JP8695389 A JP 8695389A JP 8695389 A JP8695389 A JP 8695389A JP H02267603 A JPH02267603 A JP H02267603A
- Authority
- JP
- Japan
- Prior art keywords
- data
- instruction
- sequence
- output
- input
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Programmable Controllers (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
この発明は、プログラマブルなシーケンス制御動作を行
うシーケンスコントローラに関するものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a sequence controller that performs programmable sequence control operations.
従来のこの種シーケンスコントローラが有するシーケン
ステーブルおよびシーケンス制御方法として第4図〜第
7図に示すものがあった。また第8図〜第11図は一般
的なシーケンスコントローラの制御動作説明図であり、
第8図のシーケンスコントローラを含むシステム構成図
において、1はシーケンスコントローラ、2は液体Aと
Bを混合するためのタンク、3は液体A、Bの混合機、
4は液体A用のパルプ、5は液体B用のパルプ、6は混
合液排出用のパルプ、Tは混合機3を回転させるための
モータ、8はスタート押釦スイッチ、9は故障停止解除
用の押釦スイッチ、 10,20.30はタンク2内の
どの位置まで液体が投入されたかを知るためのレベルス
イッチである。ま九、パルプ4はシーケンスコントロー
ラ1の出力である04で制御され論理111で開、10
″で閉となる。Conventional sequence tables and sequence control methods included in this type of sequence controller are shown in FIGS. 4 to 7. Furthermore, FIGS. 8 to 11 are explanatory diagrams of control operations of a general sequence controller,
In the system configuration diagram including the sequence controller shown in FIG. 8, 1 is a sequence controller, 2 is a tank for mixing liquids A and B, 3 is a mixer for liquids A and B,
4 is pulp for liquid A, 5 is pulp for liquid B, 6 is pulp for mixed liquid discharge, T is a motor for rotating the mixer 3, 8 is a start push button switch, 9 is for canceling a failure stop Push button switches 10, 20, and 30 are level switches for determining to what position in the tank 2 the liquid has been poured. 9. Pulp 4 is controlled by output 04 of sequence controller 1 and opened by logic 111, 10
” to close.
以下同様にパルプ5は出力05、パルプ6は出力06で
制御される。モータ7は出力07で制御され動作は論理
111で起動、′01で停止となる。スタート押釦スイ
ッチ8は入力であるI8.故障停止解除用押釦スイッチ
9は入カニ9につながシ論理″11でON、”O”でO
FFとなる。レベルスイッチ10.20.30は入力1
10 、I20 、I30につながシ液面が夫々のレベ
ルスイッチ1G、20.30を越えると論理111にな
シ、以下だとIO″となる。15は警報ランプで出力0
15とつながシ、論理111でON、”O”でOFFと
なる。Similarly, pulp 5 is controlled with output 05, and pulp 6 is controlled with output 06. The motor 7 is controlled by the output 07, and the operation is started with the logic 111 and stopped with the logic '01. The start pushbutton switch 8 is an input I8. The push button switch 9 for canceling the failure stop is connected to the input crab 9, and the logic ``11'' turns ON, and ``O'' turns OFF.
Becomes FF. Level switch 10.20.30 is input 1
10, I20, and I30 are connected to the respective level switches 1G and 20.If the liquid level exceeds 30, logic 111 is disabled, and if it is below, logic 111 is disabled.15 is a warning lamp and outputs 0.
Connected to 15, logic 111 turns ON, and logic "O" turns OFF.
また、第4図は第8図に示したシステムを制御する動作
手順を記述したシーケンステーブルである。第4図のシ
ーケンステーブルはその細部構成について述べると、第
10図の可変データテーブル、第9図の細部データテー
ブル及び第6図の固定データテーブルから成シ、その実
行は第5図に示すテーブル実行命令を周期的に実行する
ことによって実行される。シーケンスコントローラ1は
このような各テーブルを何枚も実行できるので、ここで
は議論の対称となるテーブルをテーブル1としておく。Further, FIG. 4 is a sequence table describing the operating procedure for controlling the system shown in FIG. 8. The detailed structure of the sequence table in Figure 4 is that it consists of the variable data table in Figure 10, the detailed data table in Figure 9, and the fixed data table in Figure 6, and its execution is performed using the table shown in Figure 5. It is executed by periodically executing execution instructions. Since the sequence controller 1 can execute a number of such tables, the table to be discussed here will be table 1.
第7図はテーブル実行命令の概略フローチャートである
。FIG. 7 is a schematic flowchart of the table execution command.
次に第8図の動作を第4図のシーケンステーブルを参照
して以下に説明する。まずシーケンステーブルにおいて
ステップSTIではスタート押釦スイッチ8がON(つ
まシスカニ8が論理”11になる)されるのを待ってい
る。次にONされると正常Mllが論理11@となシス
テップST2に移行する。Next, the operation shown in FIG. 8 will be explained below with reference to the sequence table shown in FIG. 4. First, in the sequence table, step STI waits for the start push button switch 8 to be turned ON (the switch 8 becomes logic "11").When it is turned ON next, the normal Mll becomes logic 11@, and the process goes to step ST2. Transition.
その時、ステップST2の出力処理04が実施され(つ
まシ、液体A用バルブ4のみが論理111で他の出力は
全て論理101)液体Aがタンク2に注入される。液体
の注入によってレベルが中位まで達すると(つまシ、入
力I20とI30が共に論理111になる)と正常Ml
lが論理119となシステップST4に移行する。(ス
テップST3,5.8は異常処理)その時ステップST
4の出力処理05が実施され(つまシ、液体B用のパル
プ5のみが論理”11開で、他の出力は論理101)液
体Bがタンク2に注入される。次に液体のレベルが高ま
で達する(入力、IIO、I20 、I30の全てが論
理111)とステップST6に移行する。以下モータ7
の出力07を起動させて混合処理をし、混合液排出用の
バルブ6の出力06を開いてタンク2が空になるまで内
部の液体を排出し、ステップST9で全出力を論理10
1にした後再度ステップSTIに戻る。以上が正常なシ
ーケンス動作の場合である。At that time, the output process 04 of step ST2 is executed (only the liquid A valve 4 has logic 111, all other outputs have logic 101), and liquid A is injected into the tank 2. When the level reaches the middle level due to liquid injection (both inputs I20 and I30 become logic 111), normal Ml
If l is logic 119, the process moves to step ST4. (Steps ST3 and 5.8 are abnormal processing) At that time, step ST
Output process 05 of 4 is carried out (only pulp 5 for liquid B is logic 11 open, other outputs are logic 101), and liquid B is injected into tank 2. Next, when the liquid level is high, (all inputs, IIO, I20, and I30 are logic 111), the process moves to step ST6.Hereafter, motor 7
Activate output 07 of the tank 2 to perform mixing processing, open output 06 of the mixed liquid discharge valve 6 to discharge the liquid inside the tank 2 until the tank 2 is empty, and set the entire output to logic 10 in step ST9.
After setting it to 1, the process returns to step STI again. The above is a case of normal sequence operation.
また、第5図のテーブル実行命令” EXE TBL
1 ”を周期的に実行することでシーケンステーブルが
動作し、その実行フローチャートは第7図の如く示され
る(第7図の動作は後述する)。In addition, the table execution command "EXE TBL" in Figure 5
1'' periodically, the sequence table operates, and its execution flowchart is shown in FIG. 7 (the operation in FIG. 7 will be described later).
また、第6図は固定データテーブルを示すもので、第4
図に示したシーケンステーブルの中のアドレス部が記憶
される。Also, Figure 6 shows the fixed data table, and the fourth
The address part in the sequence table shown in the figure is stored.
更に、第9図は各ステップ毎の細部データテーブルを示
したもので、第4図に示し九シーケンステーブルの中の
データ部が具体的には以下のようなコードで記憶される
。Furthermore, FIG. 9 shows a detailed data table for each step, and the data section in the nine sequence table shown in FIG. 4 is specifically stored in the following code.
例えば、
ステップSTB用データは
出力データは IOH
出力マスクデータは OFH・・・初め4ケのデータが
空白のため
入力データは IOH
入力マスクデータは OFH・・・初めの4つのデータ
が空白の丸め
分岐先1は 02H(2の記載有)
分岐隆2は 00H(空白のため)
分岐座3は OOH(空白のなめ)
監視タイマ値は 10H(仮にIOHとする)ステッ
プタイマ値は 10H(仮にIOHとする)また、
ステップSTZ用データは
出力データは 0IH(1番目出力のみが”1wのた
めOIHとなる)
出力マスクデータは OOH(空白部がない六めOOH
となる)
入力データは
入力マスクデータは
分岐先1は
分岐先2は
分岐Nn3は
監視タイマ値は
ステップタイマ値は
6H
8H
4H
0H
3H
64H(100秒)
0H
また、第10図は可変データテーブルを示したものでテ
ーブルの可変情報を記憶する。例えばステップ宛は現状
ステップ宛を示し、例えばシーケンス動作がステップS
TIにあるならOIHとなる。For example, for the data for step STB, the output data is IOH, the output mask data is OFH...the first 4 data are blank, so the input data is IOH, the input mask data is OFH...the first 4 data are blank, so it is a rounded branch. Destination 1 is 02H (2 is written) Divergence 2 is 00H (blank) Divergence 3 is OOH (blank) Monitoring timer value is 10H (temporarily set to IOH) Step timer value is 10H (temporarily set to IOH) ) Also, the output data for step STZ is 0IH (only the first output is 1w, so it is OIH), and the output mask data is OOH (sixth OOH with no blank space)
) The input data is the input mask data, the branch destination 1 is the branch destination 2, the branch Nn3 is the monitoring timer value, the step timer value is 6H 8H 4H 0H 3H 64H (100 seconds) 0H Also, Figure 10 shows the variable data table. Store variable information in the table as shown. For example, the step destination indicates the current step destination, and for example, the sequence operation is step S.
If it is in TI, it becomes OIH.
状態フラグはテーブルのステータスを記憶するものでそ
の詳細を第11図に示す。すなわち、RUNフラグはテ
ーブルの実行/停止をコントロールするフラグで、本例
では論理Jlのit、つまシ実行状態であるとする。The status flag stores the status of the table, and its details are shown in FIG. That is, the RUN flag is a flag that controls the execution/stopping of the table, and in this example, it is assumed that the logic Jl is in the "it" or "running" state.
入力条件成立フラグは入力の値がアドレステーブルに記
載の値と一致したとき論理11”、不一致のとき論理I
OIとなる。例えば、シーケンス動作が第4図のステッ
プST3にあるとするとl30=1 、 I20=0
、110=0のとき111その他のとき101となる。The input condition fulfillment flag is logic 11" when the input value matches the value listed in the address table, and logic I when they do not match.
It becomes OI. For example, if the sequence operation is at step ST3 in FIG. 4, l30=1, I20=0
, 111 when 110=0, and 101 otherwise.
入力I8.I9は空白であるのでチエツク条件に入らな
い。Input I8. Since I9 is blank, it is not included in the check conditions.
ステップタイffUPはステップの先頭で実行される出
力処理でリセットされると共に第11図の中にあるその
ステップのステップタイマ値で起動がかかる。タイムU
Pすると論理1111になる。The step timer ffUP is reset by the output process executed at the beginning of the step, and is activated at the step timer value of that step shown in FIG. Time U
When P, the logic becomes 1111.
監視タイマUPは前記ステップタイマと同様の動作をす
る。The monitoring timer UP operates in the same way as the step timer.
ステップ移行フラグは出力処理をすべきか否かの時に使
用する。The step transition flag is used to determine whether output processing should be performed.
次に、第7図のフローチャートについて説明する。すな
わち、テーブル実行命令”EXE TBLI ”がスタ
ートすると第11図に示す状態フラグ中のRUNビット
に@11が立っているか否かをチエツクする(ステップ
5TIO)。ここで111が立りていると次のステップ
に移行しステップ移行フラグJlの確認を行う(ステッ
プ5TII)。その時、YESであれば出力処理を実行
する(ステップ5T12)。Next, the flowchart shown in FIG. 7 will be explained. That is, when the table execution instruction "EXE TBLI" starts, it is checked whether @11 is set in the RUN bit in the status flag shown in FIG. 11 (step 5TIO). If 111 is set here, the process moves to the next step and the step transition flag Jl is checked (step 5TII). At that time, if YES, output processing is executed (step 5T12).
出力処理とは第6図の固定データテーブルにおける出力
アドレステーブルのアドレスに指定データを出力(ステ
ップST2では04に”1”、05に0”、06にO”
、071C”O”を出力。ステップST3のような空白
ではノーオペレージ璽ン)スると共に、第11図の状態
フラグの入力条件成立ビット、ステップタイマUPビッ
ト及び監視タイマUPビットをリセットし、ステップタ
イマ及び監視タイマを起動する。What is output processing? Output specified data to the address of the output address table in the fixed data table of FIG.
, outputs 071C"O". In a blank space such as step ST3, a no-operation flag is passed, and the input condition fulfillment bit, step timer UP bit, and monitoring timer UP bit of the status flag shown in FIG. 11 are reset, and the step timer and monitoring timer are activated.
次に第11図のステップ移行72グをリセットして出力
処理を終了する(ステップ5T13)。また、ステップ
5TIIにおいてステップ移行7ラグ”11が立ってい
ない場合には第11図の入力条件のチエツク処理を行う
(ステップ5T14)。ここで入力条件チエツク処理と
はIIO、I20 、 I30 。Next, the step transition 72 in FIG. 11 is reset to end the output process (step 5T13). If the step transition 7 lag "11" is not set in step 5TII, the input condition check process shown in FIG. 11 is performed (step 5T14).Here, the input condition check process refers to IIO, I20, I30.
I8.I9のデータを順次読み込み指定の値と全て一致
すれば状態フラグの入力条件成立ビットを論理111に
し、一致しなければ101にする処理である。例えばス
テップST2では110=”0” 、I20=”l”。I8. The data in I9 is sequentially read and if all match with the designated values, the input condition fulfillment bit of the status flag is set to logic 111, and if they do not match, it is set to 101. For example, in step ST2, 110="0" and I20="l".
l30=”l”のとき111にし、その他のとき10″
にする。(I8.I9は空白のためこの2つの条件は成
立とみる)引続いてタイマ処理を実行する(ステップ5
T15)。Set to 111 when l30="l", otherwise set to 10''
Make it. (Since I8 and I9 are blank, these two conditions are considered to be satisfied.) Subsequently, timer processing is executed (step 5).
T15).
タイマ処理とは出力処理で起動されたステップタイマ及
び監視タイマのUP待時間更新し、所定のUP時に達す
るとステップタイマ、監視タイマのUPビットをセット
する処理である。時限値は第9図に示すようにステップ
毎に指定される。次に、分岐条件の成立可否をチエツク
する(ステップ5T16)。Timer processing is processing that updates the UP waiting time of the step timer and monitoring timer activated in the output processing, and sets the UP bit of the step timer and monitoring timer when a predetermined UP time is reached. The time limit value is designated for each step as shown in FIG. Next, it is checked whether the branch condition is met (step 5T16).
分岐条件成立とは例えばステップST2では正常M11
(つまシスカ条件成立ピットのこと)が論理111にな
る。又は、異常M17(監視タイマUPビットのこと)
が111になると条件成立となる。同時に条件が成立す
ると上方にかかれている方が優先、つまシ正常Mllが
優先となる。タイマM120所は空白のためM12が1
11になりても分岐条件成立にはならない。For example, in step ST2, the branch condition is met, which means that M11 is normal.
(Referring to the pit where the condition is met) becomes logic 111. Or abnormality M17 (monitoring timer UP bit)
When becomes 111, the condition is met. If the conditions are met at the same time, priority is given to the one written above, and priority is given to the normal Mll. Timer M120 is blank, so M12 is 1.
Even if it becomes 11, the branch condition is not satisfied.
分岐条件の成立可否チエツクの結果、YESの場合には
ステップ更新処理を行う(ステップST 17)。If the result of checking whether the branch condition is met is YES, step update processing is performed (step ST17).
ここで、ステップ更新処理とは第10図のステップ宛を
新ステップに書き換える処理のことである。Here, the step update process is a process of rewriting the step address in FIG. 10 to a new step.
例えば、ステップST2のときはステップ宛はSr1と
なっているが、正常Ml1分岐条件が成立するとステッ
プST4 K移行する。ステップ座はSr4に書き換え
られる。続いて、ステップ移行フラグをセット(ステッ
プ5T18)して全ての処理動作を終了する。For example, in step ST2, the step destination is Sr1, but if the normal Ml1 branch condition is satisfied, the process moves to step ST4K. The step position is rewritten to Sr4. Subsequently, a step transition flag is set (step 5T18) and all processing operations are completed.
次に、異常状態について説明する。バルブやレベルスイ
ッチ等が故障して入力条件がいつまでは成立しない異常
状態が続く場合には正常Mllが成立する前にステップ
ST2のように異常M17の監視タイマUPが成立しス
テップST3に跳ぶ。ステップST3は出力015が1
1@となシ簀報ランプがONとなる。それに対応してオ
ペレータはプラントの状態をチエツクし、何らかの処置
をして移行可能であれば故障停止解除押釦スイッチェ9
を押す。Next, the abnormal state will be explained. If a valve, a level switch, etc. are out of order and an abnormal state in which the input conditions are not satisfied continues, the monitoring timer UP for the abnormality M17 is established as in step ST2 before the normal Mll is established, and the process jumps to step ST3. In step ST3, output 015 is 1
1 @ and the alarm lamp turns on. Correspondingly, the operator checks the status of the plant, and if it is possible to take some action, press the button 9 to cancel the failure stop.
Press.
すると正常Mllが111となりステップST2を再実
行しその警報ランプはOFFとなシ、問題なければ正常
状態に復帰する。Then, the normal Mll becomes 111, step ST2 is executed again, the alarm lamp is turned off, and if there is no problem, the normal state is restored.
以下ステップST5.8でも同様の異常動作を実行する
。The same abnormal operation is performed in step ST5.8 below.
従来のシーケンスコントローラは以上のように構成され
ているので、シーケンステーブルのアドレス部の中に論
理式や演算式を直接入力することができないという課題
があった。Since the conventional sequence controller is configured as described above, there is a problem in that it is not possible to directly input logical expressions and arithmetic expressions into the address section of the sequence table.
この発明は上記のような課題を解消するためになされた
もので、シーケンステーブルのアドレス部に論理式や演
算式を直接式れることができるシーケンスコントローラ
を得ることを目的とする。The present invention has been made to solve the above-mentioned problems, and it is an object of the present invention to provide a sequence controller that can directly enter logical expressions and arithmetic expressions in the address section of a sequence table.
この発明に係るシーケンスコントローラはシーケンステ
ーブルを入力条件収集命令群2分岐条件収集命令群、テ
ーブル命令及び出力命令群を含めて構成し、夫々シーケ
ンス動作条件に対応して有機的に結合させる結合手段を
備えたものである。The sequence controller according to the present invention has a sequence table including a group of input condition collection instructions, a group of branch condition collection instructions, a table instruction, and a group of output instructions, and has a coupling means for organically coupling each of them in accordance with the sequence operation conditions. It is prepared.
この発明におけるシーケンステーブルは入力条件収集命
令群2分岐条件収集命令群、テーブル命令及び、出力命
令群を設定することができるので、論理演算式や算術演
算式もシーケンステーブル上で実行可能となる。Since the sequence table in this invention can set an input condition collection instruction group, a branch condition collection instruction group, a table instruction, and an output instruction group, logical operation expressions and arithmetic operation expressions can also be executed on the sequence table.
以下、この発明の一実施例を図について説明する。第1
図はこの発明に係るシーケンステーブルの一例を示す図
で、第2図の命令テーブル、第9図の細部データテーブ
ル、第10図の可変データテーブルとから構成される。An embodiment of the present invention will be described below with reference to the drawings. 1st
The figure shows an example of a sequence table according to the present invention, which is composed of an instruction table in FIG. 2, a detailed data table in FIG. 9, and a variable data table in FIG. 10.
まず、第8図のシーケンスコントローラ1は、ビット演
算用のビットアキニームレータ(BAC’)とワードア
キ、−ムレータ(WAC)と実行中のテーブル宛を保持
するテーブル宛アキニームレータ(TAC)、ポインタ
アキニームレータ(PAC)、入力データエリア2分岐
条件エリアを持つものとする。これらは結合手段の一実
現例である。First, the sequence controller 1 shown in FIG. 8 includes a bit akimulator (BAC') for bit operations, a word akimulator (WAC), a table akimulator (TAC) that holds the address of the table being executed, and a pointer. It is assumed that there is an Akinimulator (PAC), an input data area, and two branch condition areas. These are one implementation of the coupling means.
次に、第2図の命令テーブルの動作について説明する。Next, the operation of the instruction table shown in FIG. 2 will be explained.
(1)< BEG TABLE 1命令の動作〉これか
ら実行しようとするテーブル隘は本BEGTBLI命令
の中にある論理11mであシ、従りてその論理111を
テーブル隘アキュームレータTACに書き込む。また、
テーブル111の状態フラグのRUNビットを読み出し
その値をビットアキニームレータBACに書き込む。(1) <Operation of BEG TABLE 1 instruction> The table block to be executed from now on is the logic 11m in the BEGTBLI instruction, so the logic 111 is written to the table block accumulator TAC. Also,
The RUN bit of the status flag in the table 111 is read and its value is written to the bit akine mulrator BAC.
(2)<BN米+38命令の動作〉
ビットアキュームレータBACの値が@11であればそ
のまま次の命令へ行くが、′01であれば38コ先の命
令、つtυEND TBL命令へ分岐する。(2) <Operation of BN + 38 instructions> If the value of the bit accumulator BAC is @11, the process goes directly to the next instruction, but if it is '01, it branches to the 38 instructions ahead, the tυEND TBL instruction.
BEG TBL ”1”命令と組み合わせるとRUNビ
ットが101のとき分岐すること、りま〕テーブル11
1は実行されないことになる。ここでは議論を容易にす
るためにRUNビットは111、つまシテーブル”11
を実行するものとする。When combined with the BEG TBL "1" instruction, a branch occurs when the RUN bit is 101, Rima] Table 11
1 will not be executed. Here, for ease of discussion, the RUN bit is 111, and the table is 11.
shall be carried out.
<3K SA IN命令の動作〉
入力データエリアの先頭番地をポインタアキュームレー
タPACに設定する。<Operation of 3K SA IN instruction> Set the start address of the input data area to the pointer accumulator PAC.
(4に;IIO命令の動作〉
110(第8図のレベルスイッチ10のON / OF
F情報)を読み込み、ピットアキュームレータBACに
書込む。(Step 4: Operation of IIO command) 110 (ON/OF of level switch 10 in Fig. 8)
F information) and writes it to the pit accumulator BAC.
(5) < ORI 11命令の動作〉Ill (Il
lについては後に説明)を読み込み、ピットアキューム
レータBACの値と論理和演算してその結果をビットア
キニームレータBACに書込む。(5) <Operation of ORI 11 instruction> Ill (Il
(l will be explained later), performs a logical OR operation with the value of the pit accumulator BAC, and writes the result to the bit accumulator BAC.
(61< BIT TF命令〉
ポインタアキュームレータPACの内容をアドレス情報
としてビットアキニームレータBACの値を転送する。(61 <BIT TF instruction>) Transfers the value of the bit accumulator BAC using the contents of the pointer accumulator PAC as address information.
その後ポインタアキニームレータPACの内容を+1す
る。After that, the contents of the pointer akimulator PAC are incremented by 1.
;工30〜;l9BITTFの命令まで以上と同様であ
る。The process is the same as above until the command 30~;19BITTF.
5AIN命令から; I9 BIT TF命令までで、
入力データエリアに入力チエツク条件のデータ、つま、
?110とIllのOR値から工9の値までが順次転送
されることとなる。From 5AIN instruction; up to I9 BIT TF instruction,
Input check condition data, thumbnails, etc. in the input data area.
? The OR value of 110 and Ill to the value of step 9 will be sequentially transferred.
(7) < SA JMP〜; M13 BIT TF
tでの動作〉SA JMP命令は分岐条件エリアの先
頭番地をポインタアキュームレータPACに設定する命
令である。以下入力チエツクデータと同様に分岐条件M
11 、M12 、 M17の値が順次分岐条件エリア
に転送される。(7) <SA JMP~; M13 BIT TF
Operation at t> The SA JMP instruction is an instruction that sets the starting address of the branch condition area in the pointer accumulator PAC. The branch condition M is similar to the input check data below.
The values of 11, M12, and M17 are sequentially transferred to the branch condition area.
(8) < DOTBL命令の動作〉 DOTBL命令の概略フローを第3図に示す。(8) <Operation of DOTBL instruction> A schematic flow of the DOTBL command is shown in FIG.
ステップ5T20の入力条件チエツク処理では入力した
データ(入力データエリアの値)と所定の値が全て一致
すれば、状態フラグの入力条件成立ビットを論理111
にし、一致しなければ101にする処理で、従来との違
いはデータの読み込みが入力条件収集命令群30の前処
理で行なわれている点である。In the input condition check process of step 5T20, if the input data (values in the input data area) and the predetermined values all match, the input condition fulfillment bit of the status flag is set to logic 111.
The difference from the conventional method is that data reading is performed in the preprocessing of the input condition collection command group 30.
次に、ステップ5T21のタイマ処理では出力処理で起
動されたステップタイマと監視タイマのUP待時間更新
し、所定のUP待時間なればステップタイ−IF、監視
タイマのUPビットをセットする処理で、時限値は第9
図の細部データテーブルに示す各ステップ毎に指定され
る。従来と同一である。Next, in the timer processing of step 5T21, the UP waiting time of the step timer and the monitoring timer activated in the output processing is updated, and when the predetermined UP waiting time is reached, the step timer IF and the UP bit of the monitoring timer are set. The time limit value is the 9th
It is specified for each step shown in the detailed data table in the figure. Same as before.
ステップ5T22の分岐条件成立では、予めとシ込まれ
六分岐条件エリアの内容を調べて分岐条件が成立してい
るかどうかを調べる。In step 5T22, when the branch condition is met, the contents of the six branch condition areas that have been inserted in advance are checked to see if the branch condition is met.
ステップ5T23のステップ更新処理では第10図のス
テップ宛を新ステップに書換える。従来と同一である。In step update processing at step 5T23, the step address in FIG. 10 is rewritten to a new step. Same as before.
次にステップ5T24の出力処理では状態フラグの入力
条件成立ビット、ステップタイマUPビット及び監視タ
イマUPビットをリセットし、ステップタイマ、監視タ
イマをステップに記載の時限値で起動し、実際の出力実
行用にポインタアキ。Next, in the output processing in step 5T24, the input condition satisfied bit of the status flag, the step timer UP bit, and the monitoring timer UP bit are reset, and the step timer and monitoring timer are started with the time limit values described in the step, and the actual output is executed. pointer aki.
−ムレータPACを設定する。例えばステップ2の実行
直前とすると第9図の固定データテーブルのステップ2
の出力データの先頭をポインタアキニームレータPAC
は指すようになる。- Configure the mulator PAC. For example, if it is just before the execution of step 2, step 2 of the fixed data table in Figure 9
Pointer to the beginning of the output data of PAC
starts to point.
(9)<BN米+15の動作〉
Do TBL命令で分岐条件成立でなければビットアキ
ニームレータBACの値は101のためEND TBL
まで分岐、つまシ出力命令群を実行しをいことになる。(9) <Operation of BN+15> If the branch condition is not met with the Do TBL instruction, the value of the bit akine mulrator BAC is 101, so END TBL
This means that the branch and output instructions will be executed until the end.
αI < SJMP *+2の動作〉
ポインタアキニームレータPACの指す出力マスクデー
タを調べ、論理111であれば次の命令へジャンプ(こ
のとき次の出力命令は実行されない)また、”01であ
れば出力データを読み出しビットアキニームレータBA
Cに設定し、次の命令を実行させる。この命令の最後の
処理でポインタアキニームレータPACの値をカウント
UPL、次の出力マスクデータおよび出力データを指す
ようにする。αI <SJMP *+2 operation> Check the output mask data pointed to by the pointer akine mulrator PAC, and if the logic is 111, jump to the next instruction (at this time, the next output instruction will not be executed), and if it is “01”, output Read data bit akinimulator BA
Set it to C and execute the next command. In the final processing of this instruction, the value of the pointer akimulator PAC is counted UPL, and is made to point to the next output mask data and output data.
Ql)<→04の動作〉 ビットアキニームレータBACの値を04へ出力する。Ql) <→04 operation> Outputs the value of the bit akine mulrator BAC to 04.
SJMP米+2と→04の組合せで例えば、ステップl
では04へ01を出力、ステップ2では04へ1を出力
、ステップ3では無処理ということになる。For example, with the combination of SJMP rice +2 and →04, step l
In this case, 01 is output to 04, 1 is output to 04 in step 2, and no processing is performed in step 3.
以下のSJMPと→命令の組合せも同様であるが最後の
出力命令について説明を加える。The following combination of SJMP and → command is similar, but an explanation will be added regarding the last output command.
;KO・・・10″をワードアキニームレータWACに
書込む。;KO...10'' is written to the word akinemulator WAC.
#Kl・・・ビットアキニームレータBACの値が1の
ときはJlをワードアキニームレー
タWACに書込むがピットアキュームレータBACが0
1のときは無動作となる。#Kl...When the value of bit accumulator BAC is 1, Jl is written to word accumulator WAC, but pit accumulator BAC is 0.
When it is 1, there is no operation.
+ EWO・・・ワードアキニームレータWACの値に
EWOの値を加算する。+ EWO...Adds the value of EWO to the value of the word akine muller WAC.
→EWO・・・ワードアキュームレータWACの内容を
EWOに書き込む。→EWO...Writes the contents of word accumulator WAC to EWO.
従りて5ケ目の出力命令の処理は次のようになる。Therefore, the processing of the fifth output command is as follows.
ステップ2では015は@01となシ、EWOIcは1
0@が加算されるため、値は変わらない。ステップ3で
は015は111となり、EWOには111が加算され
る。つまりEWOは異常処理の発生回数を記憶できるこ
とになる。In step 2, 015 is @01, EWOIc is 1
Since 0@ is added, the value does not change. In step 3, 015 becomes 111, and 111 is added to EWO. In other words, EWO can store the number of occurrences of abnormal processing.
a3<ENDTBL(D動作> 命令テーブルの最後を示すもので、動作はしない。a3<ENDTBL (D operation> It indicates the end of the instruction table and does not perform any operation.
次に、この発明の動作を第1図のシーケンステーブルを
参照して以下に説明する。まず、制御動作がステップ1
にあるとする。スタート押釦スイッチ8を押すと入カニ
8が111となシ、Do TBL命令で正常Mllの分
岐条件が成立し、 DOTBLのステップ更新処理、出
力処理が実行される。DOTBL直後のBN 米+ 1
5ではビットアキニームレータBACが111のため分
岐せず、出力命令群32を実行(この場合はステップS
T2の出力)する。そして入力条件収集命令群301分
岐条件収集命令群31.第3図のDo TBLを実行し
分岐条件をつかまえる処理となる。Next, the operation of the present invention will be explained below with reference to the sequence table shown in FIG. First, the control operation is step 1.
Suppose it is in When the start push button switch 8 is pressed, the input crab 8 becomes 111, the normal Mll branch condition is satisfied with the Do TBL command, and the step update process and output process of DOTBL are executed. BN right after DOTBL US + 1
5, the bit akine mulrator BAC is 111, so the branch is not taken, and the output instruction group 32 is executed (in this case, step S
output of T2). Then, an input condition collection instruction group 301 and a branch condition collection instruction group 31. This is the process of executing Do TBL in FIG. 3 and finding the branch condition.
ここでIll 、I21 、I31はレベルスイッチの
信頼性を上げるためにそれぞれ110.I20.I30
と同レベルに設けられるレベルスイッチの入力である。Here, Ill, I21, and I31 are each set to 110. to increase the reliability of the level switch. I20. I30
This is the input of a level switch installed at the same level as .
EWOは異常処理の発生回数を記憶する。EWO stores the number of occurrences of abnormal processing.
第8図のような簡単なプラント例では、論理式。In a simple plant example as shown in Figure 8, the logical formula.
演算命令等の必要性を感じないが実際のプラントでは極
めて多い。例えば温度が100℃よ)上か下かを入力条
件収集命令群302分岐条件収集命令群31でとυたい
場合等にはアナログ値と数値の大小比較をしてその結果
のビット情報を使用する必要があり、またあるステップ
で加減乗除算あるいは更に高級な演算を行ないたいケー
スが発生するが、本発明で示し九例でこのような要求に
対しても簡単に応えられることは明らかである。Although I don't feel the need for calculation instructions, they are extremely common in actual plants. For example, if you want to determine whether the temperature is above or below using the input condition collection command group 302 and branch condition collection command group 31, compare the analog value with the numerical value and use the resulting bit information. There may be cases where it is necessary to perform addition, subtraction, multiplication, division, or more advanced operations in a certain step, but it is clear that such requests can be easily met with the nine examples shown in the present invention.
また、上記実施例ではアキニームレータを使用して各命
令間を有機的に結合させる例について説明したがスタッ
ク等の別方式であっても良く、上記実施例と同様の効果
を奏する。Further, in the embodiment described above, an example was explained in which instructions are organically connected using an akimulator, but another method such as a stack may be used, and the same effects as in the embodiment described above can be obtained.
また、命令をさらに分割又は、結合しても同様な効果を
奏する。Further, similar effects can be obtained even if the instructions are further divided or combined.
以上のようにこの発明によればシーケンスコントローラ
を、シーケンステーブルに論理式や演算式を入れること
ができるように入力条件収集命令群0分岐条件収集命令
群、出力命令群等を含めて構成したので、制御の複雑な
処理動作をシーケンステーブルを用いて作成することが
できるという効果がある。As described above, according to the present invention, the sequence controller is configured to include an input condition collection instruction group, a branch condition collection instruction group, an output instruction group, etc. so that logical expressions and arithmetic expressions can be entered in the sequence table. This has the advantage that complex control processing operations can be created using sequence tables.
第1図はこの発明の一実施例によるシーケンスコントロ
ーラが有するシーケンステーブルの構成図、第2図は第
1図の命令テーブルの説明図、第3図は出力命令群の動
作フローチャート、第4図ハ従来のシーケンスコントロ
ーラのシーケンステーブル図、第5図は従来のテーブル
実行命令図、第6図は従来の固定データテーブル図、第
7図は従来のテーブル実行命令の70−チャート、第8
図は一般的なシーケンスコントローラを含むシステム構
成図、第9図は一般的に用いられる細部データ図、第1
0図はシーケンスコントローラの可変データテーブル図
、第11図は状態フラグ詳細図である。
図において、1はシーケンスコントローラ、30は入力
条件収集命令群、31は分岐条件収集命令群、32は出
力命令群である。
なお、図中、同一符号は同一または相当部分を示す。
特許出願人 三菱電機株式会社
第
図
第
図FIG. 1 is a configuration diagram of a sequence table included in a sequence controller according to an embodiment of the present invention, FIG. 2 is an explanatory diagram of the instruction table of FIG. 1, FIG. 3 is an operation flowchart of a group of output instructions, and FIG. A sequence table diagram of a conventional sequence controller, FIG. 5 is a diagram of a conventional table execution command, FIG. 6 is a diagram of a conventional fixed data table, FIG. 7 is a 70-chart of a conventional table execution command, and FIG.
The figure is a system configuration diagram including a general sequence controller, Figure 9 is a diagram of commonly used detailed data, and Figure 1
0 is a variable data table diagram of the sequence controller, and FIG. 11 is a detailed status flag diagram. In the figure, 1 is a sequence controller, 30 is a group of input condition collection instructions, 31 is a group of branch condition collection instructions, and 32 is a group of output instructions. In addition, in the figures, the same reference numerals indicate the same or corresponding parts. Patent applicant: Mitsubishi Electric Corporation
Claims (1)
ケンス動作を実行するシーケンスコントローラにおいて
、前記シーケンステーブルは、入力データを収集してデ
ータエリアに設定する命令を集めた入力条件収集命令群
、分岐条件を収集してデータエリアに転送する命令を集
めた分岐条件収集命令群、前記データエリアのデータを
検査するテーブル命令及びこのシーケンステーブル中の
固定データエリアのデータを出力させる命令を集めた出
力命令群を有し、前記データエリアおよび前記各命令の
実行時にデータを結合する領域を有する結合手段を備え
たことを特徴とするシーケンスコントローラ。In a sequence controller that executes programmable sequence operations written in a sequence table, the sequence table includes a group of input condition collection instructions that collect input data and set them in a data area, and a group of input condition collection instructions that collect input data and set them in a data area, and a group of input condition collection instructions that collect input data and set them in a data area. It has a branch condition collection instruction group that collects instructions to be transferred to the area, a table instruction that inspects the data in the data area, and an output instruction group that collects instructions that output the data in the fixed data area in the sequence table. A sequence controller comprising a data area and a combining means having a data area and an area for combining data when each of the instructions is executed.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1086953A JP2539265B2 (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 |
|---|---|---|---|
| JP1086953A JP2539265B2 (en) | 1989-04-07 | 1989-04-07 | Sequence controller |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH02267603A true JPH02267603A (en) | 1990-11-01 |
| JP2539265B2 JP2539265B2 (en) | 1996-10-02 |
Family
ID=13901238
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1086953A Expired - Lifetime JP2539265B2 (en) | 1989-04-07 | 1989-04-07 | Sequence controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2539265B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2011039612A (en) * | 2009-08-06 | 2011-02-24 | Toshiba Corp | Sequence controller, program creation apparatus, and interpreter execution engine |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6275806A (en) * | 1985-09-30 | 1987-04-07 | Toshiba Corp | Sequence controller |
| JPS63118902A (en) * | 1986-11-07 | 1988-05-23 | Yokogawa Electric Corp | Sequence controller |
-
1989
- 1989-04-07 JP JP1086953A patent/JP2539265B2/en not_active Expired - Lifetime
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6275806A (en) * | 1985-09-30 | 1987-04-07 | Toshiba Corp | Sequence controller |
| JPS63118902A (en) * | 1986-11-07 | 1988-05-23 | Yokogawa Electric Corp | Sequence controller |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2011039612A (en) * | 2009-08-06 | 2011-02-24 | Toshiba Corp | Sequence controller, program creation apparatus, and interpreter execution engine |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2539265B2 (en) | 1996-10-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| GB2197506A (en) | Providing and handling break points in a software monitor | |
| JPH02267603A (en) | Sequence controller | |
| JPS6156822B2 (en) | ||
| JPS5851327A (en) | Input and output control system | |
| EP0383268A2 (en) | Data processor in which branching during program execution is controlled by the contents of a branch address table | |
| JPS59149509A (en) | Programmable controller | |
| JPS6079431A (en) | Programmable controller | |
| JPS56140409A (en) | Processing system for power failure and power restoration in sequence control device | |
| WO1989005003A1 (en) | Method of editing a program for pc | |
| JPS60124746A (en) | data processing equipment | |
| JPS61256445A (en) | Sequence controller | |
| JPS6019017B2 (en) | data processing system | |
| JPH04338825A (en) | Arithmetic processor | |
| JPS6295634A (en) | Microprogram controller | |
| JPS578852A (en) | Sequenced instruction execution control system | |
| JPH11167409A (en) | Programmable controller running on parallel execution language | |
| JPH0353348A (en) | Debugging system for microprogram | |
| JPS6258339A (en) | Instruction fetching controller | |
| JPS59144909A (en) | Stored program controller | |
| JPH05313915A (en) | Microcomputer | |
| JPS62219139A (en) | Instruction executing system | |
| JPS5835644A (en) | Data processing device | |
| JPS56140444A (en) | Microprogram control system | |
| JPS5851349A (en) | Memory control system | |
| Bourret | LIL8/V2: a list interpretive language for the MCS-8 microcomputer |
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 |