JPH0713779B2 - Sequence controller - Google Patents

Sequence controller

Info

Publication number
JPH0713779B2
JPH0713779B2 JP62199809A JP19980987A JPH0713779B2 JP H0713779 B2 JPH0713779 B2 JP H0713779B2 JP 62199809 A JP62199809 A JP 62199809A JP 19980987 A JP19980987 A JP 19980987A JP H0713779 B2 JPH0713779 B2 JP H0713779B2
Authority
JP
Japan
Prior art keywords
instruction
command
sequence
bit register
sequence controller
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
JP62199809A
Other languages
Japanese (ja)
Other versions
JPS6444508A (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.)
Aejk +-Bdhyd kk
Original Assignee
Aejk +-Bdhyd kk
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 Aejk +-Bdhyd kk filed Critical Aejk +-Bdhyd kk
Priority to JP62199809A priority Critical patent/JPH0713779B2/en
Publication of JPS6444508A publication Critical patent/JPS6444508A/en
Publication of JPH0713779B2 publication Critical patent/JPH0713779B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、シーケンス処理を高速に行うシーケンスコン
トローラに関するものである。
The present invention relates to a sequence controller that performs sequence processing at high speed.

〔従来の技術〕[Conventional technology]

従来のシーケンスコントローラとして、特開昭60−1818
36号記載のものがある。ここには、シーケンスコントロ
ーラ内にプロセス入出力装置(以下、PIOと略す。)と
の間でデータ授受を行うためのビツトレジスタと、演算
器と、演算結果を記憶するアキユムレータとが設けら
れ、AND命令やOR命令実行時には、次にPIOからビツトレ
ジスタにデータを読出し、次に演算器による論理演算を
行い、最後に演算結果をアキユムレータに記憶するとい
う処理が示されている。また、ここには、シーケンス命
令のプログラムを構成するところのラダー図に従つて、
全ての命令に対して上記処理を行うことが示されてい
る。このような処理方法では、全てのシーケンス命令に
対する実行時間が必要であり、かつ、各シーケンス命令
では論理演算時間が必要であつた。
As a conventional sequence controller, JP-A-60-1818
There is one described in No. 36. Here, a bit register for exchanging data with a process input / output device (hereinafter abbreviated as PIO), an arithmetic unit, and an accumulator for storing the arithmetic result are provided in the sequence controller. When an instruction or an OR instruction is executed, next, data is read from the PIO to the bit register, then the logical operation is performed by the arithmetic unit, and finally the arithmetic result is stored in the accumulator. In addition, here, according to the ladder diagram that constitutes the program of the sequence instruction,
It is shown that the above processing is performed for all instructions. In such a processing method, execution time is required for all sequence instructions, and each sequence instruction requires logical operation time.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

本発明の目的は、不必要なシーケンス命令をバイパスす
るともに、論理演算を実行せずに、PIOとビツトレジス
タ間のデータ授受のみで論理演算を実行したのと同じ結
果が得られるようにし、これにより、シーケンス処理を
高速化することにある。
An object of the present invention is to bypass unnecessary sequence instructions and to obtain the same result as executing a logical operation only by exchanging data between PIO and a bit register without executing the logical operation. To speed up sequence processing.

〔問題点を解決するための手段〕[Means for solving problems]

上記目的を達成するための原理を、図を用いて説明す
る。
The principle for achieving the above object will be described with reference to the drawings.

第10項は、AND処理の一例を示したラダー図である。I1
は読出し命令(以下、LD命令と略す。),I2はAND命令,I
3は出力命令であり、これら命令の対象となるPIOのアド
レスがそれぞれPIO1〜3で示してある。
The tenth item is a ladder diagram showing an example of the AND processing. I1
Is a read instruction (hereinafter abbreviated as LD instruction), I2 is an AND instruction, I
Reference numeral 3 is an output instruction, and the addresses of the PIOs targeted by these instructions are indicated by PIO1 to PIO3, respectively.

このAND処理を、従来のシーケンスコントローラは第11
図に示すフローで行つていた。ここで、Drはビツトレジ
スタ、Accはアキユムレータ、→はデータ転送を示す。
しかし、PIO1が“0"の場合には、PIO2の値にかかわらず
演算結果は“0"となる。従つて、第12図に示すフローを
行えば良く、第11図における(c),(d),(e),
(f),(h)の各処理を省略することができ、処理が
高速化できる。一方、PIO1が“1"の場合には、演算結果
はPIO2の値と同じとなる。従つて、第12図に示すフロー
を行えば良く、第11図における(c),(f),(h)
の各処理を省略でき、処理が高速化できる。つまり、ビ
ツトレジスタの内容が“0"の場合にはAND命令をバイパ
スすれば良く、ビツトレジスタの内容が“1"の場合には
AND命令を実行するが、演算処理は不要であり、単にPIO
のデータをビツトレジスタに読出せば良いわけである。
This AND processing is the 11th
The flow was as shown in the figure. Here, Dr indicates a bit register, Acc indicates an accumulator, and → indicates data transfer.
However, when PIO1 is "0", the operation result is "0" regardless of the value of PIO2. Therefore, it suffices to carry out the flow shown in FIG. 12 and, in FIG. 11, (c), (d), (e),
Each processing of (f) and (h) can be omitted, and the processing speed can be increased. On the other hand, when PIO1 is "1", the calculation result is the same as the value of PIO2. Therefore, it suffices to carry out the flow shown in FIG. 12, and the steps (c), (f) and (h) in FIG.
Each process can be omitted, and the process can be speeded up. In other words, if the content of the bit register is "0", the AND instruction should be bypassed, and if the content of the bit register is "1",
Executes the AND instruction, but does not require arithmetic processing, simply PIO
It is only necessary to read the data in the bit register.

第13図は、OR処理の一例を示したラダー図である。I4は
LD命令、I5はOR命令、I6は出力命令である。
FIG. 13 is a ladder diagram showing an example of the OR process. I4 is
LD instruction, I5 is an OR instruction, and I6 is an output instruction.

このOR処理を、従来のシーケンスコントローラは第14図
に示すフローで行つていた。しかし、PIO4が“1"の場合
には、PIO5の値にかかわらず演算結果は“1"となる。ま
た、PIO4が“0"の場合には、演算結果はPIO5の値と同じ
となる。従つて、第15図に示すフローを行えば良く、処
理が高速化できる。つまり、ビツトレジスタの内容が
“1"の場合にはOR命令をバイパスすれば良く、逆にビツ
トレジスタの内容が“0"の場合にはOR命令を実行する
が、演算処理は不要であり、単にPIOのデータをビツト
レジスタに読出せば良いわけである。
The conventional sequence controller performs this OR processing according to the flow shown in FIG. However, when PIO4 is "1", the operation result is "1" regardless of the value of PIO5. When PIO4 is "0", the operation result is the same as the value of PIO5. Therefore, the flow shown in FIG. 15 may be performed, and the processing speed can be increased. In other words, if the content of the bit register is “1”, the OR instruction should be bypassed. Conversely, if the content of the bit register is “0”, the OR instruction is executed, but no arithmetic processing is required. Simply read the PIO data into the bit register.

以上述べた原理を実現するための技術手段は、シーケン
ス命令が格納されている命令メモリとPIOとに接続さ
れ、命令メモリから命令を読出す手段と、PIOから読み
出した論理データを記憶するビツトレジスタと、PIOと
ビツトレジスタ間でデータの授受を行う手段を備えたシ
ーケンスコントローラにおいて、シーケンス命令には、
2つの異なるシーケンス命令を指し示す第1の命令アド
レス部と第2の命令アドレス部を備え、シーケンスコン
トローラには、シーケンス命令を記憶する命令レジスタ
と、ビツトレジスタの内容が“1",“0"の場合に対応し
てそれぞれ第1の命令アドレス部、第2の命令アドレス
部を選択するセレクタと、セレクタで選択された命令ア
ドレスで指し示されたシーケンス命令を順次実行する制
御回路により達成される。
The technical means for realizing the above-described principle is a means for reading an instruction from the instruction memory and a bit register for storing the logical data read from the PIO, which is connected to the instruction memory storing the sequence instruction and the PIO. In a sequence controller equipped with a means for exchanging data between the PIO and the bit register,
The sequence controller is provided with a first instruction address part and a second instruction address part which indicate two different sequence instructions, and the sequence controller stores an instruction register for storing the sequence instruction and bit register contents of "1" and "0". This is achieved by a selector that selects the first instruction address portion and the second instruction address portion, respectively, corresponding to the case, and a control circuit that sequentially executes the sequence instruction pointed to by the instruction address selected by the selector.

〔作用〕[Action]

より詳しく述べるならば、ラダー図は、AND命令をある
定められた第1の方向に並ぶように表記し、OR命令を第
1の方向と異なる第2の方向に並ぶように表記する。各
シーケンス命令の第1の命令アドレス部は、ラダー図に
おいて第1の方向に接続されたAND命令を指し示すが、A
ND命令が無い場合は出力命令を指し示し、第2の命令ア
ドレス部は第2の方向に接続されたOR命令を指し示す
が、OR命令が無い場合は出力命令を指し示す。以上のよ
うに第1の命令アドレス部と第2の命令アドレス部とを
定めることによつて、ビツトレジスタの内容が“1"の場
合はOR命令の実行をバイパスしてAND命令または出力命
令へ進み、ビツトレジスタの内容が“0"の場合にはAND
命令をバイパスしてOR命令または出力命令へ進むように
なる。更に、上記バイパス後のOR命令又はAND命令の実
行においては、演算処理は不要で、PIOのデータを読み
出してビットレジスタに格納するようにしたものであ
る。
More specifically, in the ladder diagram, AND instructions are written so as to be lined up in a certain first direction, and OR instructions are written so as to be lined up in a second direction different from the first direction. The first instruction address part of each sequence instruction indicates the AND instruction connected in the first direction in the ladder diagram.
When there is no ND instruction, it indicates an output instruction, and the second instruction address part indicates an OR instruction connected in the second direction, but when there is no OR instruction, it indicates an output instruction. By defining the first instruction address portion and the second instruction address portion as described above, when the content of the bit register is "1", the execution of the OR instruction is bypassed to the AND instruction or the output instruction. Go to AND if the bit register contents are "0"
Bypass instruction and proceed to OR or output instruction. Further, in the execution of the OR instruction or the AND instruction after the bypass, the arithmetic processing is not necessary, and the PIO data is read and stored in the bit register.

〔実施例〕〔Example〕

以下、本発明の一実施例を図を用いて説明する。 An embodiment of the present invention will be described below with reference to the drawings.

第1図は、本発明の一実施例を示したものであり、命令
メモリ1,PIO2,シーケンスコントローラ3から構成さ
れ、シーケンスコントローラ3は、命令レジスタ4,セレ
クタ5,制御回路6,ビツトレジスタ7,ゲート8〜9,命令デ
ータバス11,命令アドレスバス12,バス13〜15,信号線16
〜20などから構成されている。
FIG. 1 shows an embodiment of the present invention, which comprises an instruction memory 1, a PIO 2 and a sequence controller 3. The sequence controller 3 comprises an instruction register 4, a selector 5, a control circuit 6, and a bit register 7. , Gates 8-9, instruction data bus 11, instruction address bus 12, buses 13-15, signal line 16
It consists of ~ 20 and so on.

制御回路6は、クロツク回路61と5進カウンタ62,ゲー
ト回路63,64を主構成要素としており、後述する命令リ
ード信号18,読出し信号19,書込み信号20を出力する。
The control circuit 6 has a clock circuit 61, a quinary counter 62, and gate circuits 63 and 64 as main components, and outputs a command read signal 18, a read signal 19, and a write signal 20 which will be described later.

第2図は、本発明に用いられるシーケンス命令のフオー
マツトの一例を示すものであり、OP,PAD,AD1,AD2から構
成される。OPは命令の種別を示すオペレーシヨンコード
であり、本実施例においては1ビツトであり、“0"のと
きにPIOからの読出し(以下リードと称する)処理、
“1"のときにPIOへの書込み処理(以下ライト処理と称
する)を行うようになつている。PADは、PIOのアドレス
である。AD1とAD2は、2つの異なるシーケンス命令を指
し示す第1の命令アドレス部と第2の命令アドレス部で
あるが、本実施例においては両者ともシーケンス命令の
絶対アドレスとなつている。
FIG. 2 shows an example of the format of the sequence instruction used in the present invention, which is composed of OP, PAD, AD1 and AD2. OP is an operation code indicating the type of instruction, which is 1 bit in the present embodiment, and when it is "0", read from PIO (hereinafter referred to as read) processing,
When it is "1", write processing to PIO (hereinafter referred to as write processing) is performed. PAD is the address of PIO. Although AD1 and AD2 are a first instruction address part and a second instruction address part which indicate two different sequence instructions, both are absolute addresses of the sequence instruction in this embodiment.

次に、本実施例の動作を説明する。Next, the operation of this embodiment will be described.

命令の読出しは、制御回路6から命令リード信号が信号
線18上に出力され、命令メモリ1内の命令がバス11を介
して命令レジスタ4にセツトされる。このときの命令ア
ドレスは、セレクタ5からバス12を介して命令メモリ1
に出力される。命令レジスタ4からは、オペレーシヨン
コードOPが信号線16を介して制御回路6に出力され、PA
Dがバス15を介してPIO2に出力され、命令アドレスAD1と
AD2がそれぞれバス13,14を介してセレクタ5に出力され
る。制御回路6は、オペレーシヨンコードOPが“0"のと
きに所定のタイミングでゲート64がオンし、リード動作
を実施し、OPが“1"のときに所定のタイミングで、ゲー
ト63がオンし、ライト動作を実施する。リード動作にお
いては、制御回路6からPIOリード信号が信号線19上に
出力され、PIO2内のデータが信号線17,ゲート8を介し
てビツトレジスタ7にセツトされる。ライト動作におい
ては、制御回路6からPIOライト信号が信号線20上に出
力され、データレジスタ7内のデータが、ゲート9,信号
線17を介してPIO2に書込まれる。セレクタ5は、ビツト
レジスタ7の内容が“1"のときに命令アドレスAD1を、
“0"のときに命令アドレスAD2を、バス12を介して命令
メモリ1に出力する。制御回路6は、リード動作または
ライト動作を終了すると、命令読出しを開始する。この
とき読出す命令のアドレスは、セレクタ5から出力され
たアドレスとなるから、ビツトレジスタ7の内容が“1"
のときにAD1にて指定された命令に進み、ビツトレジス
タ7の内容が“0"のときにAD2にて指定された命令に進
むこととなる。
To read an instruction, an instruction read signal is output from the control circuit 6 onto the signal line 18, and the instruction in the instruction memory 1 is set in the instruction register 4 via the bus 11. The instruction address at this time is from the selector 5 via the bus 12 to the instruction memory 1
Is output to. From the instruction register 4, the operation code OP is output to the control circuit 6 via the signal line 16,
D is output to PIO2 via bus 15 and the instruction address AD1
AD2 is output to the selector 5 via the buses 13 and 14, respectively. The control circuit 6 turns on the gate 64 at a predetermined timing when the operation code OP is “0” and performs a read operation, and turns on the gate 63 at a predetermined timing when the OP is “1”. , Write operation is performed. In the read operation, the PIO read signal is output from the control circuit 6 onto the signal line 19, and the data in the PIO2 is set to the bit register 7 via the signal line 17 and the gate 8. In the write operation, the PIO write signal is output from the control circuit 6 onto the signal line 20, and the data in the data register 7 is written into the PIO 2 via the gate 9 and the signal line 17. The selector 5 outputs the instruction address AD1 when the content of the bit register 7 is “1”,
When it is "0", the instruction address AD2 is output to the instruction memory 1 via the bus 12. When the read operation or the write operation is completed, the control circuit 6 starts reading the instruction. Since the address of the instruction read at this time is the address output from the selector 5, the content of the bit register 7 is "1".
When, the instruction designated by AD1 is proceeded to, and when the content of the bit register 7 is "0", the instruction designated by AD2 is proceeded to.

リード動作のタイムチヤートを第3図に示す。本図にお
いては、PIOからの読出しデータをxで示してある。命
令アドレスは、xが“1"の場合にAD1となり、“0"の場
合にAD2となる。また、命令レジスタ4のラツチタイミ
ングは命令リード信号の立下り、ビツトレジスタ7のラ
ツチタイミングはPIOリード信号の立下りである。
The time chart for the read operation is shown in FIG. In this figure, the read data from the PIO is indicated by x. The instruction address becomes AD1 when x is "1" and becomes AD2 when x is "0". The latch timing of the instruction register 4 is the fall of the instruction read signal, and the latch timing of the bit register 7 is the fall of the PIO read signal.

ライト動作のタイムチヤートを第4図に示す。本図にお
いては、ビツトレジスタの内容をyで示してある。命令
アドレスは、yが“1"の場合にAD1となり、“0"の場合
にAD2となる。
The time chart of the write operation is shown in FIG. In this figure, the contents of the bit register are indicated by y. The instruction address becomes AD1 when y is “1” and becomes AD2 when y is “0”.

次に、シーケンス命令のコーデイングを、次の演算式
(S)を例にとり説明する。
Next, the coding of the sequence instruction will be described by taking the following arithmetic expression (S) as an example.

(PIO10・PIO11+(PIO12+PIO13)・PIO14)・(PIO15
+PIO16)=PIO17…演算式(S) ここで、・,+,=はそれぞれAND記号,OR記号,出力記
号であり、これら記号のつく処理はそれぞれAND命令,OR
命令,出力命令で実行する。また、記号無しの処理は、
LD命令で実行する。
(PIO10 / PIO11 + (PIO12 + PIO13) / PIO14) / (PIO15
+ PIO16) = PIO17 ... Operational expression (S) Here, ·, +, and = are AND symbols, OR symbols, and output symbols, respectively, and the processes with these symbols are AND instructions, OR, respectively.
Execute with instructions and output instructions. In addition, the processing without the symbol is
Execute with LD instruction.

演算式(S)をラダー図に表記するわけであるが、本実
施例においては、AND命令を右方向に並ぶように表記
し、OR命令を下方向に表記することとする。第5図は、
本発明の一実施例における表記方法の概念を示したもの
である。イの命令に対するAND命令はイの右側のロの位
置に表記し、ロの命令に対するAND命令はロの右側のハ
の位置に表記し、イの命令に対するOR命令はイの下側の
ニの位置に表記し、この命令に対するOR命令はニの下側
のホの位置に表記するわけである。
Although the arithmetic expression (S) is written in the ladder diagram, in the present embodiment, the AND instructions are written so as to be arranged in the right direction, and the OR instruction is written in the downward direction. Figure 5 shows
1 illustrates a concept of a notation method in an embodiment of the present invention. The AND instruction for the instruction of a is written at the position of b on the right side of the a, the AND instruction for the instruction of b is written at the position of c on the right side of the b, and the OR instruction for the instruction of a is written at the lower position of i. It is written in the position, and the OR command for this command is written in the position of e under the d.

本表方法に従つて、演算式(S)をラダー図に表記した
ものが第6図である。I10はLD命令,I11,I14,I15はAND命
令,I12,I13,I16はOR命令,I17は出力命令であり、これら
命令の対象となるPIOアドレスがPIO10〜17で示してあ
る。
FIG. 6 is a diagram in which the arithmetic expression (S) is represented in a ladder diagram according to the method of this table. I10 is an LD instruction, I11, I14, I15 are AND instructions, I12, I13, I16 are OR instructions, and I17 is an output instruction, and the PIO addresses that are the targets of these instructions are shown by PIO10 to PIO17.

各命令におけるAD1は、ラダー図において右方向に接続
されたAND命令を指し示すように決めており、AND命令が
無い場合は出力命令を指し示すように決めている。従つ
て、各命令のAD1が指し示す次命令は、第7図の矢印が
示す命令となる。
AD1 in each instruction is determined so as to point to an AND instruction connected to the right in the ladder diagram, and is determined to point to an output instruction when there is no AND instruction. Therefore, the next instruction indicated by AD1 of each instruction is the instruction indicated by the arrow in FIG.

また、各命令におけるAD2は、ラダー図において下方向
に接続されたOR命令を指し示すように決めているが、OR
命令が無い場合は出力命令を指し示すようにしている。
従つて、各命令のAD2が指し示す命令は、第8図の矢印
が示す命令となる。
Also, AD2 in each instruction is decided to point to the OR instruction connected downward in the ladder diagram.
When there is no command, the output command is pointed to.
Therefore, the instruction indicated by AD2 of each instruction is the instruction indicated by the arrow in FIG.

以上の解析により、第6図に示したラダー図をコーデイ
ングすると第9図となる。出力命令はライト動作を行う
のでOPは“1"となり、出力命令以外はリード動作を行う
のでOPは“0"となる。また、各命令におけるAD1,AD2
は、それぞれ第7図,第8図の矢印が示す命令となる。
The above analysis results in FIG. 9 when the ladder diagram shown in FIG. 6 is coded. Since the output instruction performs the write operation, OP becomes “1”, and the read operation other than the output instruction causes the OP to become “0”. Also, AD1, AD2 in each instruction
Are instructions indicated by arrows in FIGS. 7 and 8, respectively.

第9図の命令を実行すると、演算式(S)の演算結果と
同じ結果が得られ、演算式(S)のコーデイングが第9
図であることを示している。
When the instruction of FIG. 9 is executed, the same result as the operation result of the operation expression (S) is obtained.
It shows that it is a figure.

本実施例におけるラダー図表記方法は、AND命令を右方
向に並ぶように表記し、OR命令を下方向に並ぶように表
記しているが、左方向,上方向、その他いかなる方向で
あつても問題はなく、その場合の原理同じであり、同様
の効果であることは明白である。
In the ladder diagram notation method in the present embodiment, the AND instructions are written so as to be arranged in the right direction, and the OR instructions are shown so as to be arranged in the downward direction. There is no problem, the principle in that case is the same, and it is obvious that the same effect is obtained.

本実施例における第1の命令アドレス部AD1と第2の命
令アドレス部AD2はともにシーケンス命令の絶対アドレ
スであつたがいかなるアドレツシングであつてもよい。
Although the first instruction address portion AD1 and the second instruction address portion AD2 in this embodiment are both absolute addresses of sequence instructions, they may be any addressing.

また、本実施例は、1ビツトのシーケンス演算を実行す
るシーケンスコントローラの例を示しているが、1ビツ
トのシーケンス演算機能と数値演算機能を合わせもつシ
ーケンスコントローラで実行した場合においても、何ら
問題はなく、本発明の動作原理は同じであり、同様の効
果であることは明白である。
In addition, this embodiment shows an example of a sequence controller that executes a 1-bit sequence operation. However, even if it is executed by a sequence controller that has both a 1-bit sequence operation function and a numerical operation function, no problem occurs. Nonetheless, it is clear that the operating principle of the present invention is the same and the same effect.

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

本発明によれば、不要なシーケンス命令をバイパスする
とともに、論理演算を実行せずに、PIOとビツトレジス
タ間のデータ授受のみで論理演算を実行したのと同じ結
果が得られるので、シーケンス処理を高速化する効果が
ある。
According to the present invention, an unnecessary sequence instruction is bypassed, and the same result as when a logical operation is executed only by exchanging data between the PIO and the bit register can be obtained without executing the logical operation. It has the effect of speeding up.

【図面の簡単な説明】 第1図は本発明の一実施例の構成図、第2図は命令のフ
オーマツト図、第3図,第4図はタイムチヤート、第5
図はラダー図表記方法の概念図、第6図,第7図,第8
図はラダー図,第9図は第6図のコーデイング図、第10
図はラダー図、第11図,第12図は第10図の処理フロー
図、第13図はラダー図、第14図,第15図は第13図の処理
フロー図である。 1…命令メモリ、2…PIO、3…シーケンスコントロー
ラ、4…命令レジスタ、5…セレクタ、6…制御回路、
7…ビツトレジスタ。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is an instruction format diagram, FIGS. 3 and 4 are time charts, and FIG.
Figures are conceptual diagrams of ladder diagram notation method, Fig. 6, Fig. 7, Fig. 8
Fig. 9 is a ladder diagram, Fig. 9 is a coding diagram of Fig. 6, and 10
The figure is a ladder diagram, FIGS. 11 and 12 are the process flow diagrams of FIG. 10, FIG. 13 is the ladder diagram, and FIGS. 14 and 15 are the process flow diagrams of FIG. 1 ... Instruction memory, 2 ... PIO, 3 ... Sequence controller, 4 ... Instruction register, 5 ... Selector, 6 ... Control circuit,
7 ... Bit register.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】シーケンス命令が格納されている命令メモ
リと、プロセス入出力装置とに接続され、命令メモリか
ら命令を読出す手段と、プロセス入出力装置から読出し
た論理データを記憶するビットレジスタと、プロセス入
出力装置とビットレジスタ間でデータの授受を行う手段
を有するシーケンスコントローラにおいて、 前記シーケンス命令は、ラダー図においてある定められ
た第1の方向に接続されたAND命令と、前記第1の方向
とは異なる第2の方向に接続されたOR命令を含み、前記
AND命令のアドレスを指定する第1の命令アドレス部
と、前記OR命令のアドレスを指定する第2の命令アドレ
ス部とを有し、前記シーケンスコントローラは、前記シ
ーケンス命令を記憶する命令レジスタと、当該命令レジ
スタに記憶された第1の命令アドレス部と第2の命令ア
ドレス部とを入力して、前記プロセス入出力装置から論
理データを転送した前記ビットレジスタの内容が論理
「1」の場合に第1の命令アドレス部を、また、論理
「0」の場合に第2の命令アドレス部を選択するセレク
タとを有し、前記セレクタにより、前記ビットレジスタ
の内容が論理「1」の場合に、第1の命令アドレス部を
選択することにより、前記OR命令の実行をバイパスして
前記AND命令へ移行し、また、論理「0」の場合には、
第2の命令アドレス部を選択することにより、前記AND
命令の実行をバイパスして前記OR命令へ移行し、更に、
当該AND命令またはOR命令を実行する場合、前記プロセ
ス入出力装置から前記ビットレジスタへ論理データを転
送することのみで演算結果を得ることを特徴とするシー
ケンスコントローラ。
1. A command memory in which a sequence command is stored and a process input / output device, means for reading the command from the command memory, and a bit register for storing the logical data read from the process input / output device. A sequence controller having means for exchanging data between a process input / output device and a bit register, wherein the sequence command includes an AND command connected in a predetermined first direction in a ladder diagram and the first command. Including an OR instruction connected in a second direction different from the direction,
The sequence controller has a first instruction address part for designating an address of an AND command and a second instruction address part for designating an address of the OR command, and the sequence controller has an instruction register for storing the sequence command, When the first instruction address portion and the second instruction address portion stored in the instruction register are input to transfer the logical data from the process input / output device, the contents of the bit register are logical "1". 1 and an selector for selecting the second instruction address part when it is a logical "0", and when the content of the bit register is a logical "1", the selector By selecting the instruction address portion of 1, the execution of the OR instruction is bypassed and the operation shifts to the AND instruction, and in the case of logic "0",
By selecting the second instruction address part, the AND
Bypass execution of the instruction and move to the OR instruction,
A sequence controller characterized in that, when the AND instruction or OR instruction is executed, an operation result is obtained only by transferring logical data from the process input / output device to the bit register.
JP62199809A 1987-08-12 1987-08-12 Sequence controller Expired - Lifetime JPH0713779B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62199809A JPH0713779B2 (en) 1987-08-12 1987-08-12 Sequence controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62199809A JPH0713779B2 (en) 1987-08-12 1987-08-12 Sequence controller

Publications (2)

Publication Number Publication Date
JPS6444508A JPS6444508A (en) 1989-02-16
JPH0713779B2 true JPH0713779B2 (en) 1995-02-15

Family

ID=16413995

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62199809A Expired - Lifetime JPH0713779B2 (en) 1987-08-12 1987-08-12 Sequence controller

Country Status (1)

Country Link
JP (1) JPH0713779B2 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS555129B2 (en) * 1974-05-28 1980-02-04
JPS52140784A (en) * 1976-05-19 1977-11-24 Hitachi Ltd Sequence controller
JPS586970B2 (en) * 1979-12-19 1983-02-07 富士通株式会社 ROM address sequence control method
JPS57166605A (en) * 1981-04-06 1982-10-14 Matsushita Electric Ind Co Ltd Sequence controller
JPS60166008U (en) * 1985-03-22 1985-11-05 三菱電機株式会社 computing device
JPS6282402A (en) * 1985-10-07 1987-04-15 Toshiba Corp Sequence controller

Also Published As

Publication number Publication date
JPS6444508A (en) 1989-02-16

Similar Documents

Publication Publication Date Title
EP0155211B1 (en) System for by-pass control in pipeline operation of computer
US4181934A (en) Microprocessor architecture with integrated interrupts and cycle steals prioritized channel
US4181942A (en) Program branching method and apparatus
US4378589A (en) Undirectional looped bus microcomputer architecture
JPS6351287B2 (en)
JPS6313215B2 (en)
JPS6019809B2 (en) data processing equipment
US4339793A (en) Function integrated, shared ALU processor apparatus and method
JPH0248931B2 (en)
JPS6227412B2 (en)
EP0240606A2 (en) Pipe-line processing system and microprocessor using the system
CA1182579A (en) Bus sourcing and shifter control of a central processing unit
JPH034936B2 (en)
EP0012242B1 (en) Digital data processor for word and character oriented processing
JP2690406B2 (en) Processor and data processing system
JPH0363092B2 (en)
JPH0713779B2 (en) Sequence controller
KR910001708B1 (en) Central processing unit
RU2066067C1 (en) Central processor for multiple-processor computer system
EP0136699B1 (en) Programmable controller
JPH03204030A (en) Processor for computor
US3290655A (en) Program control for data processing machine
US3238508A (en) Logical manipulator
JPH0654505B2 (en) Parallel processor
JPH0222413B2 (en)