JPS624729B2 - - Google Patents

Info

Publication number
JPS624729B2
JPS624729B2 JP3957079A JP3957079A JPS624729B2 JP S624729 B2 JPS624729 B2 JP S624729B2 JP 3957079 A JP3957079 A JP 3957079A JP 3957079 A JP3957079 A JP 3957079A JP S624729 B2 JPS624729 B2 JP S624729B2
Authority
JP
Japan
Prior art keywords
interrupt
counter
executed
input terminal
terminal
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
Application number
JP3957079A
Other languages
Japanese (ja)
Other versions
JPS55131806A (en
Inventor
Keisuke Kawashima
Hideaki Nakamura
Yoshitane Saito
Kenji Nishikido
Kyoto Hirase
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Omron Corp
Original Assignee
Omron Tateisi Electronics Co
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Omron Tateisi Electronics Co filed Critical Omron Tateisi Electronics Co
Priority to JP3957079A priority Critical patent/JPS55131806A/en
Publication of JPS55131806A publication Critical patent/JPS55131806A/en
Publication of JPS624729B2 publication Critical patent/JPS624729B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 この発明は、ストアードプログラム式の工程歩
進型シーケンスコントローラに関し、特に割込信
号入力端子の接続方法を変更するだけで、停電回
復後に元の工程へ復帰させること、あるいは緊急
時に割込プログラムを実行させることを選択設定
可能にしたシーケンスコントローラに関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a stored program type step-by-step sequence controller, and in particular, it is possible to return to the original process after power outage recovery by simply changing the connection method of the interrupt signal input terminal. The present invention relates to a sequence controller that allows selection and setting of executing an interrupt program in an emergency.

周知の如く、この種コントローラは各種の制御
対象に適用されるから広範囲な要望に応じなけれ
ばならない。そのため、各工程間の移行に関する
命令語、すなわちどのような条件が成立したとき
に次工程へ移行するか、又その場合にどの工程へ
移行するかを定めた命令語がいかに豊富に用意さ
れているかが1つの大きなセールスポイントにな
る。
As is well known, this type of controller is applied to various control objects and must meet a wide range of demands. Therefore, there are a wide variety of commands related to the transition between processes, that is, commands that specify what conditions are met to proceed to the next process, and in that case, which process to proceed to. The dolphin is one of the big selling points.

他方、この種のシーケンスコントローラにおけ
るハードウエア構造はできる限り簡単なことが好
ましい。この発明の基本的な目的はハードウエア
の簡単な変更で決められた命令語を使用してでき
る限り豊富な機能をシーケンサに発揮させること
にある。
On the other hand, it is preferable that the hardware structure of this type of sequence controller be as simple as possible. The basic purpose of this invention is to enable the sequencer to exhibit as many functions as possible by using predetermined command words through simple hardware changes.

すなわち、この発明の目的は割込入力端子を割
込信号源に接続するか、あるいは上記入力端子を
割込禁止状態にするかのいずれかにより、ユーザ
用メモリ内の特定記憶エリアを停電前の工程番号
への復帰命令「RET」書込用に、あるいは緊急
割込プログラムのジヤンプ命令「JMP」書込用に
選択使用可能ならしめることにある。
That is, an object of the present invention is to restore a specific storage area in the user's memory to the state before the power outage by either connecting the interrupt input terminal to an interrupt signal source or disabling the input terminal from interrupts. The purpose is to enable it to be selectively used for writing a return command "RET" to a process number or for writing a jump command "JMP" for an emergency interrupt program.

以下に、この発明の一実施例を添付図面に基づ
いて詳述する。
An embodiment of the present invention will be described in detail below with reference to the accompanying drawings.

第1図は、この発明に係るシーケンスコントロ
ーラ(以下、シーケンサと言う。)の電気的構成
を説明するためのブロツク図、第2図、第3図は
割込入力端子の構造の一例を示す図、第4図はこ
の発明に係るシーケンサの動作を示すフローチヤ
ートである。
FIG. 1 is a block diagram for explaining the electrical configuration of a sequence controller (hereinafter referred to as sequencer) according to the present invention, and FIGS. 2 and 3 are diagrams showing an example of the structure of an interrupt input terminal. , FIG. 4 is a flowchart showing the operation of the sequencer according to the present invention.

第1図に示す如く、シーケンサ1は制御対象の
動作状態等を示す信号が入力される入力端子を複
数有する入力インターフエイス回路2と、制御対
象への動作指令信号等が出力される出力端子を複
数有する出力インターフエイス回路3と、制御対
象をどのように制御するかを定めた制御プログラ
ムを記憶するユーザ用メモリ4と、このユーザ用
メモリ4に制御プログラムを書き込んだり、ある
いはシーケンサ1の運転、停止等の操作を行なう
ための操作器5と、プログラム書き込み時の制
御、シーケンサの運転、停止等の制御及びプログ
ラムの実行制御等を司るCPU6と、停電や割込
等の緊急事態が生じたとき実行中の工程番号を待
避させるための工程番号待避用メモリ7とから構
成されている。
As shown in FIG. 1, the sequencer 1 includes an input interface circuit 2 having a plurality of input terminals into which signals indicating the operating status of the controlled object are input, and an output terminal through which operation command signals etc. to the controlled object are output. A plurality of output interface circuits 3, a user memory 4 for storing a control program that determines how to control a controlled object, and a user memory 4 for writing a control program into the user memory 4, or for operating the sequencer 1, An operating device 5 for performing operations such as stopping, a CPU 6 for controlling program writing, controlling sequencer operation, stopping, etc., and controlling program execution, etc., when an emergency situation such as a power outage or an interrupt occurs. It consists of a process number save memory 7 for saving the process number being executed.

ユーザ用メモリ4内には第1図に示す如く工程
番号に対応する連続番地の付された一連の記憶エ
リアが設けられ、各記憶エリアはそれぞれ
「OP」、「DATA−1」、「DATA−2」、「OUT」
と呼ばれる4つの欄に区画されている。そして、
「OP」欄には後述する命令コードが「DATA−
1」、「DATA−2」欄には「OP」欄に書き込ま
れた命令コードを修飾するためのデータが、また
「OUT」欄にはその工程の実行時に設定すべき各
出力端子の「ON」、「OFF」データが書き込まれ
る。また、ユーザ用メモリ4内の各欄に所望する
命令コード、修飾データ、出力端子のON、OFF
データを書き込むには、操作器5の電源スイツチ
51、プログラムコンソールスイツチ52をON
したのちキーボードスイツチ5aを次のような手
順で操作することによつて行なわれる。
As shown in FIG. 1, the user memory 4 is provided with a series of storage areas with consecutive addresses corresponding to process numbers, and each storage area is designated as "OP", "DATA-1", "DATA-1", and "DATA-1". 2”, “OUT”
It is divided into four columns called . and,
In the “OP” column, the instruction code described later is “DATA−”.
1" and "DATA-2" columns contain data for modifying the instruction code written in the "OP" column, and the "OUT" column contains the "ON" information for each output terminal that should be set when executing the process. ”, “OFF” data is written. In addition, the desired instruction code, modification data, and output terminal ON/OFF are stored in each column in the user memory 4.
To write data, turn on the power switch 51 and program console switch 52 of the controller 5.
Thereafter, the keyboard switch 5a is operated in the following manner.

次に、このシーケンサ1に具備されている命令
コードとその命令コードの実行内容を簡単に説明
する。
Next, the instruction code provided in this sequencer 1 and the execution contents of the instruction code will be briefly explained.

(1) 「NOP」;ノンオペレーシヨン命令 何もせずに次の工程へ進ませるために用いる
もので、工程変更で不要になつた工程などに使
用すると便利である。
(1) "NOP"; Non-operation command This is used to proceed to the next process without doing anything, and is useful for processes that are no longer needed due to process changes.

(2) 「END」;エンド命令 1サイクルの工程の処理が全て終了したこと
を表わす。
(2) “END”; End command Indicates that all processes in one cycle have been completed.

(3) 「JMP」;ジヤンプ命令 「DATA−1」欄に書き込まれた工程へジ
ヤンプし、そこから引続き実行する。
(3) “JMP”; Jump command Jumps to the process written in the “DATA-1” column and continues execution from there.

(4) 「AND」;アンド命令 「DATA−1」、「DATA−2」欄に書き込
まれた数値に対応する入力端子に信号がそろつ
て入力されたとき、次の工程に進む。
(4) "AND"; AND command When all signals are input to the input terminals corresponding to the numerical values written in the "DATA-1" and "DATA-2" columns, proceed to the next step.

(5) 「OR」;オア命令 「DATA−1」、「DATA−2」欄に書き込
まれた数値に対応する入力端子の少なくともい
ずれか一方に信号が入力されたとき、次の工程
へ進む。
(5) "OR"; OR command When a signal is input to at least one of the input terminals corresponding to the numerical values written in the "DATA-1" and "DATA-2" columns, proceed to the next step.

(6) 「CNT」;カウント命令 「DATA−1」欄に書き込まれた数値まで
「DATA−2」欄に書き込まれた数値に対応す
る入力端子に入力される信号をカウントし、カ
ウントアツプすると次の工程へ進む。
(6) "CNT"; Count command Counts the signals input to the input terminal corresponding to the value written in the "DATA-2" field up to the value written in the "DATA-1" field, and when the count is up, the next Proceed to the process.

(7) 「CJP」;コンデシヨナル・ジヤンプ命令 条件ジヤンプともいい「DATA−2」欄に
書き込まれた数値に対応する入力端子に所定の
信号が入力された状態にあれば、「DATA−
1」欄に指定した数値に対応する工程へジヤン
プし、また前記「DATA−2」の入力端子に
信号が入力されていないときは次の工程へ進
む。
(7) “CJP”; Conditional jump command Also referred to as conditional jump command.
The process jumps to the process corresponding to the numerical value specified in the ``1'' column, and if no signal is input to the input terminal of ``DATA-2'', the process proceeds to the next process.

(8) 「RPT」;リピート命令 「DATA−1」欄に書き込まれた回数ま
で、「DATA−2」欄に書き込まれた工程から
現在の工程間を繰り返す。
(8) “RPT”; Repeat command Repeats the current process from the process written in the “DATA-2” column until the number of times written in the “DATA-1” column.

(9) 「TIM」;タイマ命令 「DATA−1」欄に書き込まれた「分」、
「DATA−2」欄に書き込まれた「秒」だけ時
間が経過すると次の工程へ進む。
(9) “TIM”; Timer instruction “Minutes” written in the “DATA-1” column,
When the "seconds" written in the "DATA-2" column have elapsed, the process proceeds to the next step.

(10) 「2TM・AND」;タイマアンド命令 第1工程目に指定した時間のタイムアツプと
第2工程目に指定した入力がそろつたとき次の
工程に進む。
(10) “2TM・AND”; Timer and instruction When the time specified in the first step and the input specified in the second step are matched, proceed to the next step.

(11) 「2TM・OR」;タイマオア命令 第1工程目に指定した時間のタイムアツプ、
または第2工程目に指定した入力のいずれか先
にまた信号を受けて次の工程に進む。
(11) “2TM・OR”; Timer OR instruction Time-up of the time specified in the first step,
Alternatively, the process proceeds to the next process upon receiving a signal again before the input specified for the second process.

(12) 「2LG・AND」;4入力アンド命令 第1、第2工程に指定した入力(4入力)が
そろつたとき、次の工程へ進む。
(12) "2LG・AND"; 4-input AND instruction When the inputs (4 inputs) specified for the first and second steps are complete, proceed to the next step.

(13) 「2LG・OR」;4入力オア命令 第1、第2工程に指定した入力(4入力)の
うち、いずれか先にきた信号を受けて次の工程
に進む。
(13) "2LG・OR"; 4-input OR instruction Receive the signal that comes first among the inputs (4 inputs) specified for the 1st and 2nd steps and proceed to the next step.

(14) 「RET」;工程復帰命令 工程番号待避用メモリ7に記憶されている工
程へジヤンプし、そこから引続き実行する。
(14) "RET"; Process return command Jumps to the process stored in the process number save memory 7 and continues execution from there.

以上の如く各命令コードに対応して所定の工程
歩進動作が実行されるのはCPU6の作用による
わけであるが、この作用は例えば具体的には次の
ように行なわれる。すなわち、CPU6内には実
行すべきプログラムに対応する工程番号を出力す
る工程カウンタ、各種レジスタ群、数値、論理演
算回路、上記各命令コードに対応する工程歩進動
作を上記レジスタ群、論理・数値演算回路等を用
いて実行させるためのプログラムをあらかじめ記
憶させたシステム用メモリが内蔵されている。そ
して、シーケンサ1を運転させるとシステム用メ
モリ内のプログラムに従つて工程カウンタから所
定の工程番号が出力され、その工程番号に対応す
るユーザ用メモリ4内の番地に格納された内容が
CPU6内の所定レジスタに取り込まれ、「OUT」
欄のON、OFFデータに従つて出力端子の信号状
態が設定される。次いで、「OP」欄、「DATA−
1」欄、「DATA−2」欄に書き込まれた各コー
ドに対応する演算実行プログラムがシステム用メ
モリから呼び出され、工程歩進条件の成立が繰り
返しチエツクされる。例えば、「AND」「01」
「02」であれば入力端子1,2に入力される信号
の論理積が「1」になるか否かが繰り返しチエツ
クされ、また「CNT」「06」「07」であれば入力
端子「7」に入力される信号をカウントし、それ
が6になつたか否かが繰り返しチエツクされる。
そして、「OP」欄にあるコードが演算成立を条件
として次の工程番号に対応するプログラムを実行
させる意味内容を有する「AND」、「OR」、
「CNT」、「TIM」等である場合、当該演算成立と
ともに工程カウンタの計数値は1つ歩進され、一
方「JMP」、「RPT」、「RET」等のように演算成
立を条件として指定された工程番号に対応するプ
ログラムを実行させる意味内容を有する場合、当
該演算成立とともに工程カウンタの内容は強制的
に指定された工程番号にプリセツトされる。以
後、工程カウンタから出力される新たな工程番号
で指定される番地の内容がユーザ用メモリ4から
所定レジスタに取り込まれ、前記と同様な操作が
行なわれる。
As mentioned above, the predetermined process step operation is executed in response to each instruction code due to the action of the CPU 6. Specifically, this action is performed as follows, for example. That is, the CPU 6 includes a process counter that outputs the process number corresponding to the program to be executed, various register groups, numerical values, and logical operation circuits, and the above register groups, logical and numerical values that perform the process step operation corresponding to each instruction code. It has a built-in system memory in which programs to be executed using arithmetic circuits and the like are stored in advance. Then, when the sequencer 1 is operated, a predetermined process number is output from the process counter according to the program in the system memory, and the contents stored at the address in the user memory 4 corresponding to that process number are
It is captured in a specified register in CPU6 and becomes “OUT”.
The signal state of the output terminal is set according to the ON/OFF data in the column. Next, in the “OP” column, “DATA−
Arithmetic execution programs corresponding to the codes written in the "1" column and the "DATA-2" column are called from the system memory, and it is repeatedly checked whether the process step condition is met. For example, "AND""01"
If it is "02", it is repeatedly checked whether the logical product of the signals input to input terminals 1 and 2 is "1", and if it is "CNT", "06", or "07", input terminal "7" is checked. The number of signals input to `` is counted, and it is repeatedly checked whether it has reached 6 or not.
Then, the code in the "OP" column has the meaning of executing the program corresponding to the next process number on the condition that the operation is satisfied, "AND", "OR",
In the case of "CNT", "TIM", etc., the count value of the process counter is incremented by one as soon as the relevant calculation is completed, while on the other hand, it is specified as "JMP", "RPT", "RET", etc. as a condition that the calculation is completed. If the process has the meaning of executing a program corresponding to the specified process number, the content of the process counter is forcibly preset to the specified process number when the calculation is completed. Thereafter, the contents of the address specified by the new process number output from the process counter are taken from the user memory 4 into a predetermined register, and the same operations as described above are performed.

次に、この発明に関連して新たに付加されたハ
ードウエア構成及びシステムプログラムについて
説明する。
Next, a newly added hardware configuration and system program related to the present invention will be explained.

先ず、第1図に示す如く入力インターフエイス
回路2には割込信号を入力するための割込入力端
子INTが設けられる。第2図及び第3図はこの割
込入力端子INTの具体的な構造の一例を示すもの
で、図示例の端子INTはシーケンサ1本体の裏面
に圧着端子台8を固定するとともに、この圧着端
子台8を構成する各ビス止め端子の中で最端部に
位置する端子9を共通端子とし、これに隣接する
端子10を割込端子としたものである。そして、
後述する如くこの割込入力端子を「割込禁止」仕
様とするには、第2図に示す如く端子9,10間
をジヤンパ線11で短絡すればよく、また「割込
可能」仕様とするには、第3図に示す如く端子
9,10をそれぞれ割込信号源12に接続し、端
子9,10間に割込信号源12を構成するα接点
が介設されるよう構成すればよい。
First, as shown in FIG. 1, the input interface circuit 2 is provided with an interrupt input terminal INT for inputting an interrupt signal. FIGS. 2 and 3 show an example of a specific structure of this interrupt input terminal INT. Among the screw terminals constituting the base 8, the terminal 9 located at the endmost end is used as a common terminal, and the terminal 10 adjacent to this is used as an interrupt terminal. and,
As will be described later, in order to set this interrupt input terminal to an "interrupt prohibited" specification, it is sufficient to short-circuit the terminals 9 and 10 with a jumper wire 11 as shown in FIG. 2, and to set the interrupt input terminal to an "interrupt enabled" specification. In this case, the terminals 9 and 10 may be connected to the interrupt signal source 12 as shown in FIG. 3, and an α contact forming the interrupt signal source 12 may be interposed between the terminals 9 and 10. .

一方、CPU6内のシステム用メモリには第4
図のフローチヤートに示される如き内容を有する
システムプログラムが格納される。
On the other hand, the system memory in CPU6 has a fourth
A system program having contents as shown in the flowchart of the figure is stored.

以上の如く、割込入力端子INTの設置及びシス
テムプログラムの格納を行なつたのち、ユーザ用
メモリ4の0番地に「RET」、「JMP」のいずれ
かを書き込んでシーケンサ1を起動してやると、
第4図のフローチヤートに示す過程を経て、停電
処理あるいは割込処理が行なわれることになる。
As described above, after installing the interrupt input terminal INT and storing the system program, write either "RET" or "JMP" to address 0 of the user memory 4 and start the sequencer 1.
Power outage processing or interruption processing is performed through the steps shown in the flowchart of FIG. 4.

すなわち、ユーザ用メモリ4の0番地の
「OP」欄に命令コード「RET」を書き込むとと
もに、第2図に示すように端子9,10間をジヤ
ンパ線11で短絡して「割込禁止」仕様としたの
ち、シーケンサ1を起動してやると、先ず割込入
力端子INTの入力状態を判定すべくルーチンR1
実行される。そして、この場合割込入力端子INT
の入力状態は「ON」、すなわち第2図に示す如く
端子9,10間が短絡されているから、ルーチン
R1の判定結果は「YES」となり、引続いてルー
チンR2,R3が実行され、ユーザ用メモリ4の0
番地の内容がCPU6へと読出されることにな
る。そして、0番地の「OUT」欄に「ON」、
「OFF」データが書き込まれている場合には、ル
ーチンR4の実行とともにその「ON」、「OFF」デ
ータに基づいて出力端子の信号状態が設定され、
次いで「OP」欄の命令コードが「RET」である
ことを判定すべくルーチンR5が実行され、更
に、ルーチンR6が実行されて工程番号待避用メ
モリ7の記憶内容で、工程カウンタはプリセツト
される。つまり、ルーチンR6の実行とともに工
程カウンタの内容は停電時に中断された工程番号
でプリセツトされる。そして、ルーチンR3,R4
が実行されて工程カウンタで指定される記憶エリ
アの内容がユーザ用メモリ4から読出されるとと
もに出力設定動作が実行され、続いて「OP」欄
に書き込まれた命令コードを判別すべくルーチン
R5,R7,R8が実行され、該当する命令コードに
従つて所定の演算が実行されることになる。そし
て、各演算が実行終了する毎にルーチンR9,R10
が実行され、割込入力端子INTに割込信号が入力
されたか否か、すなわち端子9,10間が
「OFF」から「ON」に転じたか否かを、及び電
源電圧が許容限以下に低下したか否か、すなわち
停電したか否かの判定が行なわれる。そして、
「停電」が発生したときにはルーチンR10の判定結
果は「YES」となつてルーチンR11が実行され、
そのとき実行中の工程番号は工程番号退避用メモ
リ7に退避保持されることになる。次いで、「停
電」が復旧すると前述の経過をへてルーチン
R1,R2,R3,R4,R5,R6が順に実行され、再び
停電時に中断された工程に戻つてプログラムの実
行がなされることになる。
That is, write the instruction code "RET" in the "OP" field at address 0 of the user memory 4, and short-circuit the terminals 9 and 10 with a jumper wire 11 as shown in FIG. 2 to set the "interrupt disabled" specification. After that, when the sequencer 1 is activated, routine R1 is executed to determine the input state of the interrupt input terminal INT. And in this case interrupt input terminal INT
Since the input state of is "ON", that is, terminals 9 and 10 are short-circuited as shown in Figure 2, the routine
The determination result of R 1 is "YES", and routines R 2 and R 3 are subsequently executed, and the user memory 4 is cleared to 0.
The contents of the address will be read to the CPU 6. Then, put “ON” in the “OUT” column of address 0.
If "OFF" data is written, the signal state of the output terminal is set based on the "ON" and "OFF" data when routine R4 is executed.
Next, routine R5 is executed to determine that the instruction code in the "OP" column is "RET", and then routine R6 is executed to preset the process counter with the contents stored in the process number save memory 7. be done. That is, upon execution of routine R6 , the contents of the process counter are preset to the process number that was interrupted at the time of power outage. And routines R 3 , R 4
is executed, the contents of the storage area specified by the process counter are read from the user memory 4, the output setting operation is executed, and then a routine is executed to determine the instruction code written in the "OP" column.
R 5 , R 7 , and R 8 are executed, and a predetermined operation is executed according to the corresponding instruction code. Then, each time the execution of each operation is completed, the routines R 9 and R 10 are executed.
is executed, and it is determined whether an interrupt signal has been input to the interrupt input terminal INT, that is, whether or not the voltage between terminals 9 and 10 has changed from "OFF" to "ON", and the power supply voltage has fallen below the allowable limit. In other words, it is determined whether or not there has been a power outage. and,
When a "power outage" occurs, the determination result of routine R10 becomes "YES" and routine R11 is executed.
The process number being executed at that time is saved and held in the process number saving memory 7. Next, when the "power outage" is restored, the routine goes through the process described above.
R 1 , R 2 , R 3 , R 4 , R 5 , and R 6 are executed in order, and the program is executed again by returning to the process that was interrupted at the time of power outage.

一方、ユーザ用メモリ4の0番地の「OP」欄
に命令コード「JMP」を書き込むとともに、第3
図に示すように端子9,10を割込信号源12に
接続して「割込可能」仕様としたのち、シーケン
サ1を起動してやると、先ず割込入力端子INTの
入力状態を判定すべくルーチンR1が実行され
る。そして、そのときの割込入力端子INTの入力
状態が「OFF」であれば、すなわち端子9,1
0間が非導通状態にあれば、ルーチンR1の判定
結果は「NO」となり、引続いてルーチンR12
R13,R3が順に実行されて工程カウンタの内容は
通常プログラムの先頭工程番号「1」にプリセツ
トされ、以後ユーザ用メモリ4の一番地の内容が
CPU6へと読出されることになる。つまり、ユ
ーザ用メモリ4の0番地のプログラムは実行省略
されることになり、0番地の「OP」欄に
「JMP」が書き込まれていても、その実行はシー
ケンサ1のスタート時に限り省略されることにな
る。以後、命令コードに従つて該当する演算が実
行され、その終了毎にルーチンR13が実行されて
工程カウンタは1つづつ歩進することになり、そ
の後新たな工程カウンタの内容によつて指定され
るプログラムが順次ユーザ用メモリ4から読み出
されて実行されることになる。そして、この間に
割込入力端子INTに割込信号が入力されると、す
なわち端子9,10間が「OFF」から「ON」へ
と転ずると、ルーチンR9の判定結果は「YES」
となつてルーチンR11が実行され、そのとき実行
中の工程番号は工程番号退避用メモリ7へと退避
保持されるとともに、続いてルーチンR2,R3
実行されユーザ用メモリ4内の0番地の内容が
CPU6へと読み出されることになる。そして、
この0番地の「OP」欄には「JMP」が書き込ま
れていることから、ルーチンR7の判定結果は
「YES」となり、続いてルーチンR14が実行され
て、工程カウンタは「JMP」命令で指定される工
程番号にプリセツトされることになる。従つて、
この「JMP」命令で指定されるユーザ用メモリ4
内の記憶エリアに、緊急時に実行させたいプログ
ラムを書き込むとともに、その最終工程に
「RET」命令を書き込んでおけば、割込信号が入
力されると同時に緊急プログラムを実行させ、そ
の終了とともに割込によつて中断された元の工程
への復帰が可能となるわけである。
On the other hand, write the instruction code "JMP" in the "OP" field at address 0 of the user memory 4, and
As shown in the figure, after connecting the terminals 9 and 10 to the interrupt signal source 12 to make them "interrupt enabled", when the sequencer 1 is started, the routine starts to determine the input state of the interrupt input terminal INT. R 1 is executed. If the input state of the interrupt input terminal INT at that time is "OFF", that is, terminals 9 and 1
If there is no conduction between 0 and 0, the determination result of routine R 1 is "NO", and subsequently routines R 12 and
R 13 and R 3 are executed in sequence, and the contents of the process counter are preset to the first process number "1" of the normal program, and from then on, the contents of the first position of the user memory 4 are
It will be read out to the CPU 6. In other words, execution of the program at address 0 in user memory 4 will be omitted, and even if "JMP" is written in the "OP" field at address 0, its execution will be omitted only when sequencer 1 starts. It turns out. Thereafter, the corresponding operation is executed according to the instruction code, and each time the operation is completed, routine R13 is executed and the process counter is incremented by 1. After that, the operation is specified by the contents of the new process counter. The programs are sequentially read out from the user memory 4 and executed. During this time, if an interrupt signal is input to the interrupt input terminal INT, that is, if the voltage between terminals 9 and 10 changes from "OFF" to "ON", the determination result of routine R9 is "YES".
Then, routine R 11 is executed, and the process number being executed at that time is saved and held in the process number saving memory 7, and then routines R 2 and R 3 are executed, and 0 in the user memory 4 is saved. The contents of the address
It will be read out to CPU6. and,
Since "JMP" is written in the "OP" column of this address 0, the judgment result of routine R 7 is "YES", and then routine R 14 is executed, and the process counter is set to the "JMP" instruction. It will be preset to the process number specified by . Therefore,
User memory 4 specified by this "JMP" command
If you write the program you want to execute in an emergency in the internal storage area and write the "RET" command in the final step, the emergency program will be executed at the same time as the interrupt signal is input, and the interrupt will be triggered when the interrupt signal is input. This makes it possible to return to the original process that was interrupted.

このように、この実施例に示すシーケンサ1に
よれば、割込入力端子9,10間をジヤンパ線1
1で短絡するか、あるいは上記端子9,10間に
割込信号とともに閉じるα接点を接続するだけ
で、ユーザ用メモリ4内の「0」番地のプログラ
ムを常時実行させ、あるいは割込信号が入力され
たときに限り実行させるように選択設定すること
ができ、これを利用すれば上記「0」番地に
「RET」命令あるいは「JMP」命令を書き込むだ
けで、停電復旧時に元の工程への復帰を可能なら
しめ、あるいは緊急時に割込プログラムの実行を
可能ならしめることができるものである。
As described above, according to the sequencer 1 shown in this embodiment, the jumper wire 1 is connected between the interrupt input terminals 9 and 10.
1 or by simply connecting an α contact that closes with an interrupt signal between terminals 9 and 10, the program at address "0" in the user memory 4 can be executed constantly, or when an interrupt signal is input. If you use this option, you can simply write the "RET" or "JMP" command to the "0" address above to return to the original process when the power is restored. or execution of an interrupt program in an emergency.

以上の説明で明らかなように、この発明は工程
カウンタで順次指定される工程エリアの記憶命令
を逐次実行するようにした工程歩進型シーケンス
コントローラにおいて、端子台上において共通端
子に隣接して設けられた割込入力端子と、割込入
力端子の信号状態を運転中にチエツクし、これが
OFFからONに変化した時点に応答して、工程カ
ウンタの内容を工程番号退避用メモリに退避さ
せ、その後工程カウンタに特定工程番号をプリセ
ツトする割込時制御手段と、電源の状態を運転中
にチエツクし、停電発生が検出された時点に応答
して、工程カウンタの内容を工程番号退避用メモ
リに退避させる停電発生時制御手段と、電源投入
に応答して割込入力端子の信号状態をチエツク
し、これがON状態の場合には、工程カウンクに
前記特定工程番号をプリセツトする一方、OFF
状態の場合には工程カウンタに通常プログラムの
先頭工程番号をプリセツトする電源投入時制御手
段と、を設けたものであるから、割込信号端子の
取扱仕様を変更するとともに、上記特定工程番号
に対応する記憶エリアに「RET」又は「JMP」
を書き込むだけで、停電処理又は割込処理を可能
ならしめることができる。
As is clear from the above description, the present invention provides a step-by-step sequence controller that sequentially executes storage commands for process areas sequentially designated by a process counter, provided adjacent to a common terminal on a terminal block. Check the signal status of the interrupt input terminal and the interrupt input terminal during operation.
In response to the change from OFF to ON, interrupt control means saves the contents of the process counter to process number save memory, and then presets the process counter with a specific process number, and controls the power supply status during operation. A power outage control means that saves the contents of the process counter to the process number saving memory in response to the time when a power outage is detected, and a power outage control means that checks the signal state of the interrupt input terminal in response to power on. However, if this is in the ON state, the specific process number is preset in the process count, while it is in the OFF state.
In this case, the system is equipped with a power-on control means that presets the first process number of the normal program in the process counter, so the specifications for handling the interrupt signal terminal have been changed and it has been made compatible with the above-mentioned specific process number. "RET" or "JMP" in the storage area to
By simply writing , it is possible to enable power outage processing or interrupt processing.

すなわち、本発明によれば、割込入力端子と共
通端子とを短絡し、かつ特定工程番号エリアに
「RET」を書込んだ場合には、電源投入とともに
停電発生前の工程への復帰が可能となり、他方両
者間を開放すれば、電源投入とともに常に通常プ
ログラムの先頭工程からの実行が可能となり、さ
らに共通端子と割込入力端子との間に割込信号源
たる外部のa接点を接続し、かつ特定工程番号エ
リアに「JNP」を書込めば、本来の割込処理を行
なわせることができる。
That is, according to the present invention, if the interrupt input terminal and the common terminal are short-circuited and "RET" is written in the specific process number area, it is possible to return to the process before the power outage as soon as the power is turned on. If the other two are opened, the normal program can always be executed from the first step when the power is turned on.Furthermore, an external a contact, which is an interrupt signal source, can be connected between the common terminal and the interrupt input terminal. , and write "JNP" in the specific process number area, the original interrupt processing can be performed.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は、この発明に係るシーケンスコントロ
ーラ(以下、シーケンサと言う。)の電気的構成
を説明するためのブロツク図、第2図、第3図は
割込入力端子の構造の一例を示す図、第4図はこ
の発明に係るシーケンサの動作を示すフローチヤ
ートである。 1……工程歩進型シーケンスコントローラ、4
……ユーザ用メモリ、6……CPU、7……工程
番号退避用メモリ、INT,9,10……割込入力
端子。
FIG. 1 is a block diagram for explaining the electrical configuration of a sequence controller (hereinafter referred to as sequencer) according to the present invention, and FIGS. 2 and 3 are diagrams showing an example of the structure of an interrupt input terminal. , FIG. 4 is a flowchart showing the operation of the sequencer according to the present invention. 1...Process step-type sequence controller, 4
...Memory for user, 6...CPU, 7...Memory for saving process number, INT, 9, 10...Interrupt input terminal.

Claims (1)

【特許請求の範囲】 1 工程カウンタで順次指定される工程エリアの
記憶命令を順次実行するようにした工程歩進型シ
ーケンスコントローラにおいて、 端子台上において共通端子に隣接して配置され
た割込入力端子と、 割込入力端子の信号状態を運転中にチエツク
し、これがOFFからONに変化した時点に応答し
て、工程カウンタの内容を工程番号退避用メモリ
に退避させ、その後工程カウンタに特定工程番号
をプリセツトする割込時制御手段と、 電源の状態を運転中にチエツクし、停電発生が
検出された時点に応答して、工程カウンタの内容
を工程番号退避用メモリに退避させる停電発生時
制御手段と、 電源投入に応答して割込入力端子の信号状態を
チエツクし、これがON状態の場合には、工程カ
ウンタに前記特定工程番号をプリセツトする一
方、OFF状態の場合には工程カウンタに通常プ
ログラムの先頭工程番号をプリセツトする電源投
入時制御手段と、 を設けたことを特徴とする工程歩進型シーケンス
コントローラ。
[Scope of Claims] 1. In a step-by-step sequence controller configured to sequentially execute storage commands for process areas sequentially designated by a process counter, an interrupt input is arranged adjacent to a common terminal on a terminal block. The signal status of the terminal and interrupt input terminal is checked during operation, and in response to the moment when this changes from OFF to ON, the contents of the process counter are saved to the process number save memory, and then the specific process is saved to the process counter. An interrupt control means that presets the number, and a power outage control that checks the power supply status during operation and saves the contents of the process counter to the process number save memory in response to the detected occurrence of a power outage. In response to turning on the power, the signal state of the interrupt input terminal is checked, and if it is in the ON state, the specific process number is preset in the process counter, while if it is in the OFF state, the process counter is set to the normal value. A step-by-step sequence controller comprising: power-on control means for presetting the first step number of a program.
JP3957079A 1979-04-02 1979-04-02 Process advancing type sequential controller Granted JPS55131806A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3957079A JPS55131806A (en) 1979-04-02 1979-04-02 Process advancing type sequential controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3957079A JPS55131806A (en) 1979-04-02 1979-04-02 Process advancing type sequential controller

Publications (2)

Publication Number Publication Date
JPS55131806A JPS55131806A (en) 1980-10-14
JPS624729B2 true JPS624729B2 (en) 1987-01-31

Family

ID=12556727

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3957079A Granted JPS55131806A (en) 1979-04-02 1979-04-02 Process advancing type sequential controller

Country Status (1)

Country Link
JP (1) JPS55131806A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2345538A1 (en) 2010-01-13 2011-07-20 Armacell Enterprise GmbH Method for fire protection and modification of properties of expanded polyesters
EP2351891A1 (en) 2010-01-11 2011-08-03 Armacell Enterprise GmbH Insulation material with mechanical strength and building elements and composites made thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2351891A1 (en) 2010-01-11 2011-08-03 Armacell Enterprise GmbH Insulation material with mechanical strength and building elements and composites made thereof
EP2345538A1 (en) 2010-01-13 2011-07-20 Armacell Enterprise GmbH Method for fire protection and modification of properties of expanded polyesters

Also Published As

Publication number Publication date
JPS55131806A (en) 1980-10-14

Similar Documents

Publication Publication Date Title
US4006464A (en) Industrial process controller
JPH02156334A (en) Information processor
JPS624729B2 (en)
JPH0934518A (en) Control processor
JPS6144328B2 (en)
JPS6232805B2 (en)
JPS63126007A (en) Programmable controller
WO1990007739A1 (en) Control method for robot
JPS5946002B2 (en) Processing method during power outage and power restoration in sequence control equipment
JPS6120900B2 (en)
JPS63316146A (en) Microcomputer
WO1990008017A1 (en) Method of safely operating a robot
KR910005512B1 (en) Programmable logic controller system
JPH07287660A (en) Interruption processing method for programmable controller
JPH0751610Y2 (en) Programmable controller with override function
JP2696811B2 (en) Electronic preset counter
JPH02103613A (en) Microcomputer
JPH08147013A (en) Programmable controller
JPS58221405A (en) Programmable controller
JPS616704A (en) Programmable controller
JPH0436841A (en) Microcomputer
JPH06105433B2 (en) Chip for evaluation of micro computer
JPS62196737A (en) Microprogram controller
JPH03126139A (en) Watchdog timer circuit
JPS63257002A (en) Control circuit device