JPH04282704A - Sequence controller - Google Patents

Sequence controller

Info

Publication number
JPH04282704A
JPH04282704A JP3045315A JP4531591A JPH04282704A JP H04282704 A JPH04282704 A JP H04282704A JP 3045315 A JP3045315 A JP 3045315A JP 4531591 A JP4531591 A JP 4531591A JP H04282704 A JPH04282704 A JP H04282704A
Authority
JP
Japan
Prior art keywords
sequence
relay contact
input signal
sequence controller
input signals
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.)
Pending
Application number
JP3045315A
Other languages
Japanese (ja)
Inventor
Tomoaki Isobe
磯部 倫明
Akira Uchiumi
内海 暁
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 JP3045315A priority Critical patent/JPH04282704A/en
Publication of JPH04282704A publication Critical patent/JPH04282704A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To attain the rapid processing of a sequence program by providing this sequence controller with a control means for outputting a specific value in accordance with the AND operation or OR operation of plural input signals. CONSTITUTION:The sequence program is constituted as a sequence of pit information check and condition decision. When an input signal from a relay contact X4 is '0', the operation of steps 21 to 25 is not executed based upon the operation of a step 20, operation is immediately transferred from the step 20 to a step 26, and a signal '0' is outputted from an output terminal Y0. When an input signal from the relay contact X4 is '1' and an input signal from a relay contact X3 is '0', the operation of the steps 22 to 25 are not similarly executed, so that the speed can be improved. Thus the processing time of the sequence program can be shortened.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】この発明は、ストアードプログラ
ム方式のシーケンスコントローラに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a stored program type sequence controller.

【0002】0002

【従来の技術】従来例の構成を図3を参照しながら説明
する。図3は、従来のシーケンスコントローラを示すブ
ロック図である。
2. Description of the Related Art The structure of a conventional example will be explained with reference to FIG. FIG. 3 is a block diagram showing a conventional sequence controller.

【0003】図3において、従来のシーケンスコントロ
ーラは、信号を外部から読込む入力装置(1)と、この
入力装置(1)に接続され演算処理を行うCPU(2)
と、このCPU(2)に接続されシーケンスプログラム
等を記憶するメモリ(3)と、CPU(2)に接続され
信号を外部へ出力する出力装置(4)とから構成されて
いる。
In FIG. 3, a conventional sequence controller includes an input device (1) that reads signals from the outside, and a CPU (2) that is connected to this input device (1) and performs arithmetic processing.
, a memory (3) connected to the CPU (2) and storing sequence programs, etc., and an output device (4) connected to the CPU (2) and outputting signals to the outside.

【0004】つぎに、前述した従来例の動作を図4及び
図5を参照しながら説明する。図4は従来のシーケンス
コントローラの動作を示すフローチャート図、図5はリ
レーシーケンスを示す図である。図5において、X0、
X1、X2、X3及びX4はリレー接点、Y0は出力端
子を示す。
Next, the operation of the above-mentioned conventional example will be explained with reference to FIGS. 4 and 5. FIG. 4 is a flowchart showing the operation of a conventional sequence controller, and FIG. 5 is a diagram showing a relay sequence. In FIG. 5, X0,
X1, X2, X3 and X4 are relay contacts, and Y0 is an output terminal.

【0005】シーケンスコントローラは次のように動作
する。まず、入力信号を入力装置(1)から読込む。C
PU(2)は、この入力信号に基づいてメモリ(3)に
記憶されているシーケンスプログラムに従って演算処理
を行う。この演算処理の結果が、出力装置(4)を通し
て外部へ出力される。前述した一連の動作は繰り返し行
われ、刻々変化する入力信号に対する応答が得られるよ
うになっている。
The sequence controller operates as follows. First, an input signal is read from the input device (1). C
The PU (2) performs arithmetic processing based on this input signal according to a sequence program stored in the memory (3). The results of this arithmetic processing are output to the outside through an output device (4). The above-described series of operations is repeated to obtain responses to ever-changing input signals.

【0006】従来のシーケンスコントローラは、図5に
示すリレーシーケンスを図4に示すフローチャートのよ
うに処理していた。すなわち、ステップ(10)及び(
11)においてリレー接点X0とリレー接点X1の入力
信号の論理和(OR)をとる。ステップ(12)におい
てステップ(11)の結果(レジスタA)とリレー接点
X2の入力信号の論理積(AND)をとり、またステッ
プ(13)においてステップ(12)の結果とリレー接
点X3の入力信号の論理積をとり、さらにステップ(1
4)においてステップ(13)の結果とリレー接点X4
の入力信号の論理積をとり、そしてステップ(15)に
おいてステップ(13)の結果を出力端子Y0に出力す
る。
A conventional sequence controller processes the relay sequence shown in FIG. 5 as shown in the flowchart shown in FIG. That is, steps (10) and (
In step 11), the logical sum (OR) of the input signals of relay contact X0 and relay contact X1 is calculated. In step (12), the result of step (11) (register A) and the input signal of relay contact X2 are logically ANDed, and in step (13), the result of step (12) and the input signal of relay contact Take the logical product of and further step (1
In 4), the result of step (13) and relay contact X4
Then, in step (15), the result of step (13) is outputted to the output terminal Y0.

【0007】一般的に言えば、リレーシーケンスの各リ
レー接点は論理演算に置き換えられ、この論理演算の列
をシーケンスコントローラが逐次的に処理していくこと
でシーケンス制御を実現していた。
Generally speaking, each relay contact in a relay sequence is replaced with a logical operation, and a sequence controller sequentially processes a sequence of these logical operations to realize sequence control.

【0008】[0008]

【発明が解決しようとする課題】上述したような従来の
シーケンスコントローラでは、リレー接点X2の入力信
号が「0」である場合、リレー接点X3、X4の入力信
号の状態にかかわらず出力端子Y0からの出力信号が「
0」になることがわかる。つまり、図4のステップ(1
3)、(14)の演算が無駄に行われている。同様に、
リレー接点X0とX1とが共に「0」である場合、ステ
ップ(12)〜(14)の演算が冗長である。このよう
に、従来のシーケンスコントローラでは、無駄な論理演
算が頻繁に行われ、これがシーケンス制御の速度を遅く
するという問題点があった。この発明は、前述した問題
点を解決するためになされたもので、効率的にシーケン
スプログラムを処理することができるシーケンスコント
ローラを得ることを目的とする。
[Problems to be Solved by the Invention] In the conventional sequence controller as described above, when the input signal of relay contact The output signal of “
0". In other words, step (1) in Figure 4
The calculations in 3) and (14) are performed in vain. Similarly,
When relay contacts X0 and X1 are both "0", the calculations in steps (12) to (14) are redundant. As described above, the conventional sequence controller has a problem in that unnecessary logical operations are frequently performed, which slows down the speed of sequence control. The present invention was made to solve the above-mentioned problems, and an object of the present invention is to obtain a sequence controller that can efficiently process sequence programs.

【0009】[0009]

【課題を解決するための手段】この発明に係るシーケン
スコントローラは、次に掲げる手段を備えたものである
。複数の入力信号を論理積演算する場合に前記複数の入
力信号のうち少なくとも1つ「0」があるときは「0」
を出力して演算処理を終了し、論理和演算する場合に前
記複数の入力信号のうち少なくとも1つ「1」があると
きは「1」を出力して前記演算処理を終了する制御手段
[Means for Solving the Problems] A sequence controller according to the present invention includes the following means. When performing an AND operation on a plurality of input signals, if at least one of the plurality of input signals is "0", "0"
control means that outputs "1" to end the arithmetic processing, and outputs "1" and ends the arithmetic processing when at least one of the plurality of input signals is "1" when performing a logical sum operation.

【0010】0010

【作用】この発明においては、制御手段によって、複数
の入力信号を論理積演算する場合に前記複数の入力信号
のうち少なくとも1つ「0」があるときは「0」が出力
されて演算処理が終了され、論理和演算する場合に前記
複数の入力信号のうち少なくとも1つ「1」があるとき
は「1」が出力されて前記演算処理が終了される。
[Operation] In the present invention, when a plurality of input signals are subjected to an AND operation, if at least one of the plurality of input signals is "0", "0" is outputted and the arithmetic processing is performed. If at least one of the plurality of input signals is "1" when performing a logical OR operation, "1" is output and the arithmetic operation is ended.

【0011】[0011]

【実施例】この発明の一実施例の構成を図1を参照しな
がら説明する。図1は、この発明の一実施例を示すブロ
ック図であり、入力装置(1)、CPU(2)及び出力
装置(4)は上述した従来装置のものと全く同一である
DESCRIPTION OF THE PREFERRED EMBODIMENTS The structure of an embodiment of the present invention will be described with reference to FIG. FIG. 1 is a block diagram showing an embodiment of the present invention, and the input device (1), CPU (2) and output device (4) are completely the same as those of the conventional device described above.

【0012】図1において、この発明の一実施例は、上
述した従来装置のものと全く同一のものと、CPU(2
)に接続されたメモリ(3A)とから構成されている。 このメモリ(3A)は、従来のメモリ(3)と物理的に
は同一の構成であるが、本発明によるシーケンスプログ
ラムが記憶されている。
In FIG. 1, one embodiment of the present invention has exactly the same components as the conventional device described above, and a CPU (2
) and a memory (3A) connected to the memory (3A). This memory (3A) has the same physical configuration as the conventional memory (3), but stores a sequence program according to the present invention.

【0013】つぎに、前述した実施例の動作を図2を参
照しながら説明する。図2は、この発明の一実施例の動
作を示すフローチャート図である。図5に示すリレーシ
ーケンスは図2のフローチャートのように処理される。 図2のシーケンスプログラムは、ビット情報のチェック
と条件判断の列として構成されている。
Next, the operation of the above-mentioned embodiment will be explained with reference to FIG. FIG. 2 is a flowchart showing the operation of one embodiment of the present invention. The relay sequence shown in FIG. 5 is processed as shown in the flowchart of FIG. The sequence program in FIG. 2 is configured as a sequence of bit information checks and condition judgments.

【0014】ここで、リレー接点X4からの入力信号が
「0」の場合を考えてみる。ステップ(20)の演算に
より、ステップ(21)〜(25)の演算が非実行とさ
れ、直ちにステップ(26)へ移り出力端子Y0から「
0」を出力する。このとき、図5のリレーシーケンスは
ステップ(20)及び(26)の演算の実行によって実
現され、高速の応答が得られる。
Now, consider the case where the input signal from relay contact X4 is "0". As a result of the calculation in step (20), the calculations in steps (21) to (25) are not executed, and the process immediately moves to step (26), where output terminal Y0 is
0" is output. At this time, the relay sequence of FIG. 5 is realized by executing the calculations in steps (20) and (26), and a high-speed response can be obtained.

【0015】同様に、リレー接点X4からの入力信号が
「1」で、リレー接点X3からの入力信号が「0」の場
合、ステップ(22)〜(25)の演算が実行されずに
速度向上が見込める。
Similarly, if the input signal from relay contact X4 is "1" and the input signal from relay contact is expected.

【0016】リレー接点X4の入力信号が「1」、リレ
ー接点X3の入力信号が「1」、リレー接点X2の入力
信号が「1」、リレー接点X1の入力信号が「0」の場
合には、全演算が実行されるが、1つの組合せにすぎず
、全組合せの平均を考えれば処理速度が向上する。
When the input signal of relay contact X4 is "1", the input signal of relay contact X3 is "1", the input signal of relay contact X2 is "1", and the input signal of relay contact X1 is "0", , all the operations are executed, but it is only one combination, and the processing speed will be improved if the average of all combinations is considered.

【0017】この発明の一実施例は、前述したように、
様々な入力信号に対して生じる冗長な演算列はその直前
の演算によって非実行と決め、処理しない。この結果、
シーケンスプログラムの処理時間を減少することができ
るという効果を奏する。
[0017] As mentioned above, one embodiment of the present invention is as follows.
Redundant operation sequences that occur for various input signals are determined to be non-executable based on the operation immediately before them, and are not processed. As a result,
This has the effect that the processing time of the sequence program can be reduced.

【0018】[0018]

【発明の効果】この発明は、以上説明したとおり、複数
の入力信号を論理積演算する場合に前記複数の入力信号
のうち少なくとも1つ「0」があるときは「0」を出力
して演算処理を終了し、論理和演算する場合に前記複数
の入力信号のうち少なくとも1つ「1」があるときは「
1」を出力して前記演算処理を終了する制御手段を備え
たので、高速にシーケンスプログラムを処理でき、また
、特別のハードウエアを付加せずにソフトウエアのみの
工夫で実現できるので安価な装置を提供することができ
るという効果を奏する。
Effects of the Invention As explained above, when performing an AND operation on a plurality of input signals, if at least one of the plurality of input signals is "0", the present invention outputs "0" and performs the operation. If at least one of the plurality of input signals is "1" when completing the processing and performing a logical sum operation, "
Since it is equipped with a control means that outputs "1" and finishes the arithmetic processing, the sequence program can be processed at high speed, and it can be realized by using only software without adding special hardware, so it is an inexpensive device. This has the effect of being able to provide the following.

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

【図1】この発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention.

【図2】この発明の一実施例の動作を示すフローチャー
ト図である。
FIG. 2 is a flowchart showing the operation of an embodiment of the present invention.

【図3】従来のシーケンスコントローラを示すブロック
図である。
FIG. 3 is a block diagram showing a conventional sequence controller.

【図4】従来のシーケンスコントローラの動作を示すフ
ローチャート図である。
FIG. 4 is a flowchart showing the operation of a conventional sequence controller.

【図5】この発明の一実施例及び従来例の説明に用いる
リレーシーケンスを示す図である。
FIG. 5 is a diagram showing a relay sequence used to explain an embodiment of the present invention and a conventional example.

【符号の説明】[Explanation of symbols]

(1)    入力装置 (2)    CPU (3A)    メモリ (4)    出力装置 (1) Input device (2) CPU (3A) Memory (4) Output device

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  複数の入力信号を論理積演算する場合
に前記複数の入力信号のうち少なくとも1つ「0」があ
るときは「0」を出力して演算処理を終了し、論理和演
算する場合に前記複数の入力信号のうち少なくとも1つ
「1」があるときは「1」を出力して前記演算処理を終
了する制御手段を備えたことを特徴とするシーケンスコ
ントローラ。
Claim 1: When performing a logical AND operation on a plurality of input signals, if at least one of the plurality of input signals is "0", outputs "0" and ends the operation process, and performs a logical OR operation. A sequence controller comprising a control means for outputting "1" and terminating the arithmetic processing when at least one of the plurality of input signals is "1".
JP3045315A 1991-03-12 1991-03-12 Sequence controller Pending JPH04282704A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3045315A JPH04282704A (en) 1991-03-12 1991-03-12 Sequence controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3045315A JPH04282704A (en) 1991-03-12 1991-03-12 Sequence controller

Publications (1)

Publication Number Publication Date
JPH04282704A true JPH04282704A (en) 1992-10-07

Family

ID=12715875

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3045315A Pending JPH04282704A (en) 1991-03-12 1991-03-12 Sequence controller

Country Status (1)

Country Link
JP (1) JPH04282704A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9361907B2 (en) 2011-01-18 2016-06-07 Sony Corporation Sound signal processing apparatus, sound signal processing method, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9361907B2 (en) 2011-01-18 2016-06-07 Sony Corporation Sound signal processing apparatus, sound signal processing method, and program

Similar Documents

Publication Publication Date Title
JPH0353652B2 (en)
JPH02156334A (en) Information processor
JPH04282704A (en) Sequence controller
JPH0267979A (en) Testing circuit for logic circuit
JPS638971A (en) Polynomial vector arithmetic and control unit
JPS59123957A (en) Digital signal arithmetic device
JP2001344100A (en) Central processing unit equipped with plural flag registers
JPH0619705A (en) Pipeline control system
JPS63211438A (en) Interruption control circuit
JP2751716B2 (en) Holding circuit
JPH02205987A (en) Arithmetic processing system
JPS60218135A (en) Data processor
JP2702137B2 (en) Vector operation instruction processing method
JPS58222348A (en) Information processor
JPH0236423A (en) Saving/restoring register address generation circuit
JPS62160529A (en) Data processor
JPH012148A (en) CPU runaway detection method
JPH04114232A (en) Microcomputer
JPS61187044A (en) Information processor
JPH03233724A (en) Repetitive processing control system
JPH05143360A (en) Microcomputer
JPH01255037A (en) Electronic computer
JPH041832A (en) Cpu monitor circuit
JPS58169243A (en) Instruction processor
JPH03130832A (en) Interruption controller