JPS6246882B2 - - Google Patents
Info
- Publication number
- JPS6246882B2 JPS6246882B2 JP14600179A JP14600179A JPS6246882B2 JP S6246882 B2 JPS6246882 B2 JP S6246882B2 JP 14600179 A JP14600179 A JP 14600179A JP 14600179 A JP14600179 A JP 14600179A JP S6246882 B2 JPS6246882 B2 JP S6246882B2
- Authority
- JP
- Japan
- Prior art keywords
- signal
- shift
- shift register
- output
- instruction
- 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
Links
- 230000015654 memory Effects 0.000 claims description 40
- 238000003780 insertion Methods 0.000 claims description 9
- 230000037431 insertion Effects 0.000 claims description 9
- 238000012217 deletion Methods 0.000 claims description 7
- 230000037430 deletion Effects 0.000 claims description 7
- 238000012508 change request Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 7
- 238000004364 calculation method Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000007493 shaping process Methods 0.000 description 2
- 238000004883 computer application Methods 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
Landscapes
- Programmable Controllers (AREA)
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、シフトレジスタ形のメモリを設けた
スキヤン方式のプログラマブルコントローラに関
する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a scan type programmable controller provided with a shift register type memory.
従来、プログラマブルコントローラは計算機応
用の一つとして考えられ、記憶装置としてはラン
ダムアクセス可能なコアメモリ・ワイヤメモリ・
RAM・ROMが用いられてきた。
Conventionally, programmable controllers have been considered as a computer application, and the storage devices include randomly accessible core memory, wire memory, etc.
RAM/ROM has been used.
記憶装置がランダムアクセス可能であることを
前提とし、ジヤンプ機能あるいは割込機能を利用
してプログラム実行順序をダイナミツクに変更す
ることにより、プログラマブルコントローラの処
理能力を増大させ得たことは確かである。 It is certain that the processing capacity of a programmable controller could be increased by dynamically changing the program execution order using a jump function or an interrupt function, assuming that the storage device is randomly accessible.
しかし、プログラマブルコントローラとは計算
機の難解さを巧みに包み隠し、表面上理解し易く
することを指向している装置であること、ジヤン
プ命令がプログラムを難解にしデバツク
(debug)を難しくすることを考えれば、上記手
法は合目的的でない。
However, it should be noted that a programmable controller is a device that skillfully hides the complexity of computers and is intended to make them easier to understand on the surface, and that jump instructions can make programs difficult to understand and debug. For example, the above method is not purposeful.
また、ランダムアクセスメモリとして用いられ
るコアメモリ、ワイヤメモリは高価であり、
RAMは揮発性であつて、ROMは記憶内容の変
更が難しいといつた短所をもつている。 In addition, core memory and wire memory used as random access memory are expensive, RAM is volatile, and ROM has disadvantages such as the difficulty of changing the memory contents.
本発明の目的は、前述の欠点を解除し理解し易
く且つ経済性のよいプログラマブルコントローラ
を提供することにある。 SUMMARY OF THE INVENTION An object of the present invention is to provide a programmable controller that is easy to understand and economical, eliminating the above-mentioned drawbacks.
本発明の特徴とするところは、記憶装置として
シフトレジスタ形記憶装置を用い、プログラムは
記憶されている順序で実行されること、プログラ
ムの変更、実行順序の変更は命令の置換・挿入・
消去の機能により簡単に行なわれるところにあ
る。
The present invention is characterized in that a shift register type storage device is used as a storage device, programs are executed in the order in which they are stored, and changes in programs and execution order can be made by replacing/inserting instructions.
This can be easily done with the erase function.
シフトレジスタ形メモモリ付プログラマブルコ
ントローラである本発明は、その記憶装置に命令
の置換・挿入・消去の機能をもつ。
The present invention, which is a programmable controller with a shift register type memory, has the function of replacing, inserting, and erasing instructions in its storage device.
以下、図によつて説明する。 This will be explained below using figures.
第1図は、本発明の一実施例のブロツク図であ
つて、記憶装置としてシフトレジスタ形メモリを
用いたものである。 FIG. 1 is a block diagram of one embodiment of the present invention, in which a shift register type memory is used as the storage device.
第1図において、1はプログラマブルコントロ
ーラのプログラムを記憶するための記憶装置、2
は記憶装置より読み出された命令を解読し実行す
る処理装置、3は処理装置2が命令を実行する際
参照する入出力装置、41〜4nは処理装置2が
入出力装置3のアドレスを指定するためのm本の
信号線から成るアドレスバス、51〜5oは処理
装置2が入出力装置3とデータ授受を行なうため
のn本の信号線から成るデータバス、6は処理装
置2より入出力装置3にアドレスバス41〜4n
で指定されたアドレスの内容をデータバス51〜
5o上に出力するよう指令するための読出指令、
7は処理装置2より入出力装置3にデータバス5
1〜5o上に出力されているデータをアドレスバ
ス41〜4nで指定されたアドレスに書き込むよ
うに指令するための書込指令、101〜10pは
記憶装置1を構成するqビツトのシフトレジスタ
形メモリ、111〜11pはシフトレジスタ形メ
モリ101〜10pの出力であり、111は命令
コードの1ビツト目、112は命令コードの2ビ
ツト目、以下同様に11pは命令コードのpビツ
ト目となる命令信号(1命令はpビツトから成
る)、20は記憶装置1より与えられる命令信号
111〜11pをラツチするための命令レジス
タ、21は命令の解読シーケンス・実行シーケン
スを司る制御部、22はデータの算術演算・論理
演算を司る演算部、231〜23pは命令レジス
タ20より制御部21に与えられる命令コード、
24は命令信号111〜11pを命令レジスタに
ラツチするタイミングを与えるラツチ信号、25
はシフトレジスタ形メモリ101〜10pを1ビ
ツトシフトするタイミングを与えるパルス状のシ
フト信号である。 In FIG. 1, 1 is a storage device for storing the program of the programmable controller;
is a processing device that decodes and executes instructions read from the storage device, 3 is an input/output device that the processing device 2 refers to when executing the instruction, and 4 1 to 4 n are addresses of the input/output device 3 by the processing device 2. 51 to 5o are data buses consisting of n signal lines for the processing device 2 to exchange data with the input/output device 3, and 6 is the processing device. Address bus 4 1 to 4 n from 2 to input/output device 3
The contents of the address specified by data bus 5 1 ~
5. Read command for commanding to output on
7 is a data bus 5 from the processing device 2 to the input/output device 3.
1 to 5o are write commands for instructing to write the data output on the address buses 41 to 4n to the addresses specified, 101 to 10p are the q bits that constitute the storage device 1. 111 to 11p are the outputs of the shift register type memories 101 to 10p , 111 is the 1st bit of the instruction code, 112 is the 2nd bit of the instruction code, and so on. p is an instruction signal corresponding to the p-th bit of the instruction code (one instruction consists of p bits), 20 is an instruction register for latching the instruction signals 11 1 to 11 p given from the storage device 1, and 21 is an instruction decoder. 22 is a calculation unit that controls data arithmetic operations and logical operations; 23 1 to 23 p are instruction codes given to the control unit 21 from the instruction register 20;
24 is a latch signal that provides timing for latching the instruction signals 11 1 to 11 p to the instruction register; 25
is a pulse-like shift signal that provides timing for shifting the shift register type memories 10 1 to 10 p by 1 bit.
次にかゝる構成の動作を説明する。 Next, the operation of such a configuration will be explained.
制御部21は命令レジスタ20に一時記憶され
ている命令を解読し、命令の種類に応じて
アドレス41〜4nに入力装置のアドレスを
セツトし、読出指令6を出力することにより、
入出力信号の状態をデータバス51〜5oに出
力させ、
データバス51〜5oに出力されているデー
タを演算部22に読み込み、演算し、
演算部22の演算結果をデータバス51〜5
oに出力し、アドレスバス41〜4nに入出力装
置のアドレスをセツトし、書込指令7を出力す
ることにより入出力装置に演算結果を書き込
む。 The control unit 21 decodes the instruction temporarily stored in the instruction register 20, sets the address of the input device in addresses 4 1 to 4 n according to the type of instruction, and outputs the read command 6.
The state of the input/output signal is output to the data bus 5 1 to 5 o , the data output to the data bus 5 1 to 5 o is read into the calculation unit 22 and calculated, and the calculation result of the calculation unit 22 is sent to the data bus 5 1 to 5
o , sets the address of the input/output device on the address buses 41 to 4n , and outputs a write command 7 to write the operation result to the input/output device.
上記動作を1命令で実行するか、複数の命令で
実行するかは命令の構成ビツト数pおよびビツト
の使用法により決定されるが、制御部21は1命
令の実行が終了すると、ラツチ信号24を出力す
る。 Whether the above operation is executed with one instruction or multiple instructions is determined by the number p of constituent bits of the instruction and how the bits are used. Output.
命令レジスタ20には命令信号111〜11p
の状態が記憶され、命令コード231〜23pが
出力される。 The command register 20 has command signals 11 1 to 11 p
The status of is stored, and instruction codes 23 1 to 23 p are output.
続いて、シフト信号25が出力され、シフトレ
ジスタ形メモリ101〜10pは1ビツトシフト
され、既に命令レジスタ20に一時記憶された命
令の各ビツトは、該当するシフトレジスタ形メモ
リの入側に最も近いビツトに再び戻され、新たな
命令が命令信号111〜11pに出力される。 Subsequently, the shift signal 25 is output, and the shift register memories 10 1 to 10 p are shifted by 1 bit, and each bit of the instruction that has already been temporarily stored in the instruction register 20 is shifted to the input side of the corresponding shift register memory. The bits closest to each other are returned to, and a new command is outputted to the command signals 11 1 to 11 p .
以上の動作が済むと、制御部21は再び命令レ
ジスタ20に一時記憶された命令の実行を開始す
る。 After the above operations are completed, the control unit 21 again starts executing the instructions temporarily stored in the instruction register 20.
シフトレジスタ形メモリ101〜10pがqビ
ツトから構成されている場合、q個の命令を記憶
することができ、q個の命令を実行すればプログ
ラムは一巡する。 When the shift register type memories 10 1 to 10 p are composed of q bits, q instructions can be stored, and the program completes one cycle by executing q instructions.
以上の実施例はシフトレジスタ形メモリ101
〜10pが処理装置2の一部をなすつまり直結さ
れる例であつたが、データバス51〜5oを介し
て処理装置2に接続することも可能である。 The above embodiment is a shift register type memory 10 1
10 p forms a part of the processing device 2, that is, is directly connected to the processing device 2 in this example, but it is also possible to connect to the processing device 2 via the data buses 5 1 to 5 o .
その実施例の略線図を第2図に表わし、以下に
各部分の名称を示す。 A schematic diagram of the embodiment is shown in FIG. 2, and the names of each part are shown below.
12は命令信号111〜11pをデータバス5
1〜5oに出力するためのゲート(たヾし、p≦
nであるものとする)、13はアドレスバス41
〜4nで指定されたアドレスが記憶装置1のもの
であることを判断するアドレスデコーダ、14は
ゲート12を開閉するためのゲート信号であつ
て、その他の部分の名称は第1図と同一である。 12 connects the command signals 11 1 to 11 p to the data bus 5
Gate for outputting to 1 to 5 o (tap, p≦
n), 13 is the address bus 4 1
~4 An address decoder that determines that the address specified by n belongs to the storage device 1, 14 is a gate signal for opening and closing the gate 12, and the names of other parts are the same as in FIG. be.
かゝる構成において、命令実行の動作は第1図
と同様であり、命令実行終了後、制御部21は記
憶装置1に割り当てられたアドレスをアドレスバ
ス41〜4nに出力し、読出指令6を出力する。 In such a configuration, the operation of executing an instruction is the same as that shown in FIG . Outputs 6.
デコーダ13はアドレスバス41〜4nの内容
が記憶装置に割り当てられたアドレスと一致する
ことを検出し、ゲート信号14を出力する。 The decoder 13 detects that the contents of the address buses 4 1 to 4 n match the addresses assigned to the storage devices, and outputs the gate signal 14 .
これによりゲート12はゲートを開き、命令信
号111〜11pをデータバス51〜5oに出力す
る。 This causes the gate 12 to open and output the command signals 11 1 to 11 p to the data buses 5 1 to 5 o .
制御部21はラツチ信号24を出力し、データ
バス51〜5oに出力されている命令信号を一時
記憶する。 The control unit 21 outputs a latch signal 24 and temporarily stores the command signals output to the data buses 5 1 to 5 o .
然る後、デコーダ13はゲート信号14の出力
を止め、シフト信号25を出力することにより、
シフトレジスタ101〜10pを1ビツトシフト
させる。 After that, the decoder 13 stops outputting the gate signal 14 and outputs the shift signal 25.
Shift registers 10 1 to 10 p are shifted by 1 bit.
かくして、制御部21は新たな命令を順次読み
込み実行することが可能となる。 In this way, the control unit 21 can sequentially read and execute new instructions.
以上の例においては、シフトレジスタ形メモリ
101〜10pを1ビツトシフトさせるシフト信
号が制御部21よりシーケンス的に与えられるも
のとして述べたが、シフトレジスタ形メモリ10
1〜10pは一般にクロツク信号に同期してシフ
トされるため、逆に制御部をしてこのクロツク信
号に同期して命令を解読し実行せしめることも可
能である。 In the above example, it has been described that the shift signal for shifting the shift register type memories 10 1 to 10 p by 1 bit is given sequentially by the control unit 21.
Since 1 to 10 p are generally shifted in synchronization with a clock signal, it is also possible to have the control section decode and execute instructions in synchronization with this clock signal.
ただし、クロツク周期を長くして1クロツク周
期内に1命令の解読、実行を完了せしめるか、あ
るいはクロツク周期毎に演算途中の結果を一時待
避させ、1スキヤン後途中結果から演算を再開せ
しめるか、いずれかの配慮が必要である。 However, either the clock cycle can be lengthened to complete the decoding and execution of one instruction within one clock cycle, or the intermediate results of an operation can be temporarily saved every clock cycle, and the operation can be restarted from the intermediate result after one scan. Some consideration is required.
シフトレジスタ形メモリ101〜10pとは応
用する側から、特に指定しなくても、その内容が
次々と出力側にあらわれてくる記憶装置を指し、
磁気バブルメモリ、ドラム、デイスク等の不揮発
性メモリであることが望ましく、揮発性を嫌わな
ければ電荷結合型メモリ(CCD)を用いること
ができる。 Shift register type memory 101 to 10p refers to a storage device whose contents appear one after another on the output side without being specified by the application side.
Non-volatile memory such as magnetic bubble memory, drum, disk, etc. is preferable, and charge-coupled memory (CCD) can be used if volatility is not a concern.
また、入出力装置3の一部として、演算の途中
結果を記憶させるための記憶装置1を装備するこ
とも可能である。 Further, as part of the input/output device 3, it is also possible to include a storage device 1 for storing intermediate results of calculations.
次に、シフトレジスタ形メモリ101〜10p
の記憶内容変更回路の実施例の詳細なブロツク図
を第3図に示す。 Next, shift register type memories 10 1 to 10 p
A detailed block diagram of an embodiment of the storage content changing circuit is shown in FIG.
411〜41p,421〜42pのそれぞれはシ
フトレジスタ形メモリ101〜10pに与えられ
るシフト信号に同期して、該当ビツトをシフトす
るための1ビツト構成のシフトレジスタ、431
〜43pは置換,挿入される命令コードを一時記
憶するためのフリツプ・フロツプ、441〜44
p、451〜45p,461〜46p,471〜4
7pはアンドゲート、481〜48pはオアゲー
ト、49はブログラムカウンタ50より出力され
るリセツト信号、51はコンパレータ、52は置
換点、挿入点、消去点を設定するためのスイツ
チ、53・54・55はおのおの置換・挿入・消
去の要求があつたことを記憶するフリツプフロツ
プ、56・57のそれぞれはコンパレータ51の
出力信号でありプログラムカウンタ50の内容が
スイツチ52に設定された値より大きい場合オン
(ON)になる「より大信号」・等しい場合オンに
なる「一致信号」、58,59はオアゲート、6
0〜63はアンドゲート、64〜72はアンドゲ
ート(〇印は信号位相が反転することを表わ
す)、73〜75はフリツプフロツプ(53〜5
5と同じくS,R入力は立ち上りの微分で動作す
るものとする)、76〜78はフイルタ、79・
80・81はおのおの置換・挿入・消去の要求押
ボタン、821〜82pは整形回路、831〜8
3pはフイルタ、841〜84pは設定押ボタン、
851〜85pはデイジタルスイツチである。な
お、821〜82p,831〜83p,841〜8
4pはそれぞれ431〜43Pに対応して設けられ
ているが、431〜43pに共通な一組だけでも
よい。 Each of 41 1 to 41 p and 42 1 to 42 p is a 1-bit shift register for shifting the corresponding bit in synchronization with a shift signal applied to the shift register type memories 10 1 to 10 p ;
~43 p is a flip-flop for temporarily storing the instruction code to be replaced or inserted, 44 1 ~44
p , 45 1 ~ 45 p , 46 1 ~ 46 p , 47 1 ~ 4
7 p is an AND gate, 48 1 to 48 p are OR gates, 49 is a reset signal output from the program counter 50, 51 is a comparator, 52 is a switch for setting the replacement point, insertion point, and erasure point, 53. 54 and 55 are flip-flops that memorize requests for replacement, insertion, and deletion, respectively; 56 and 57 are output signals of the comparator 51; ``Greater signal'' turns on (ON) ・``Match signal'' turns on when equal, 58 and 59 are OR gates, 6
0 to 63 are AND gates, 64 to 72 are AND gates (○ indicates that the signal phase is inverted), and 73 to 75 are flip-flops (53 to 5
5, the S and R inputs operate on the differential of the rising edge), 76 to 78 are filters, and 79.
80 and 81 are replacement, insertion, and deletion request pushbuttons, 82 1 to 82 p are shaping circuits, and 83 1 to 8
3 p is a filter, 84 1 to 84 p are setting push buttons,
85 1 to 85 p are digital switches. In addition, 82 1 to 82 p , 83 1 to 83 p , 84 1 to 8
4 p is provided corresponding to each of 43 1 to 43 P , but only one set common to 43 1 to 43 P may be sufficient.
第4図a〜第4図jは第3図に表わした記憶内
容変更回路の動作のタイムチヤートである。 FIGS. 4a to 4j are time charts of the operation of the storage content changing circuit shown in FIG. 3.
第4図aはシフト信号、第4図bはプログラム
カウンタ50の内容で最小値O,最大値q,rは
途中のカウント値、第4図cはシフトレジスタ形
メモリ101〜10pの出力でOは順番0、rは
順番rの記憶内容、,0は記憶値0、第4図dは
シフトレジスタ411〜41pの出力、第4図e
はシフトレジスタ421〜42pの出力、第4図
fはフリツプフロツプ431〜43pの出力で命
令コードIをあらわし、第4図g、第4図h、第
4図i,第4図jは命令信号111〜11pであ
りそれぞれは記憶内容の変更がない場合、順番r
の命令を命令コードIで置き換える場合、順番r
と順番r+1との間に命令コードIを挿入する場
合、順番rの命令を消去し以降の命令を前に詰め
る場合のタイムチヤートである。 Fig. 4a shows the shift signal, Fig. 4b shows the contents of the program counter 50 with the minimum value O, maximum values q and r are intermediate count values, and Fig. 4c shows the output of the shift register type memories 101 to 10p . where O is the order 0, r is the memory content of the order r, 0 is the memory value 0, Figure 4 d is the output of the shift registers 41 1 to 41 p , Figure 4 e
are the outputs of the shift registers 42 1 to 42 p , FIG. 4 f is the output of the flip-flops 43 1 to 43 p , and represents the instruction code I. are the command signals 11 1 to 11 p , and if there is no change in the memory contents, the order r
When replacing the instruction with instruction code I, the order r
This is a time chart when inserting instruction code I between and order r+1, erasing the instruction at order r and moving subsequent instructions to the front.
これから第3図の構成の動作を説明する。 The operation of the configuration shown in FIG. 3 will now be described.
シフトレジスタ形メモリ101〜10p、シフ
トレジスタ411〜41p,421〜42pは一連
のシフトレジスタを構成し、シフト信号25が出
力される度に1ビツト右にシフトされ、命令信号
111〜11pの出力済みの内容はシフトレジス
タ形メモリ101〜10pに読み込まれる。 Shift register type memories 10 1 to 10 p , shift registers 41 1 to 41 p , and 42 1 to 42 p constitute a series of shift registers, and each time a shift signal 25 is output, the shift register type memories 10 1 to 10 p, shift registers 41 1 to 41 p, and 42 1 to 42 p are shifted to the right by 1 bit, and the command signal is The outputted contents of 11 1 to 11 p are read into shift register type memories 10 1 to 10 p .
プログラムカウンタ50はシフト信号25を計
数し、カウント値がシフトレジスタ形メモリのビ
ツト数qを超えるとリセツト信号49を出力し、
自らのカウント値を0にする。 The program counter 50 counts the shift signals 25 and outputs a reset signal 49 when the count value exceeds the number of bits q of the shift register type memory.
Sets own count value to 0.
同時に、シフトレジスタ411〜41p,42
1〜42pもリセツト信号49によりリセツトさ
れる。 At the same time, shift registers 41 1 to 41 p , 42
1 to 42p are also reset by the reset signal 49.
更に、置換,挿入,消去の要求がある場合には
フリツプフロツプ53,54,55のうちいずれ
か一つがセツトされ、要求がない場合にはフリツ
プフロツプ53,54,55は総てリセツトされ
る。 Furthermore, if there is a request for replacement, insertion, or deletion, one of the flip-flops 53, 54, 55 is set, and if there is no request, all the flip-flops 53, 54, 55 are reset.
まず、変更要求がない場合について説明する。
プログラムカウンタ50が0にリセツトされたと
き、フリツプフロツプ53,54,55はすべて
リセツトされているため、アンドゲート63の出
力がオンとなり、アンドゲート451〜45pの
みが開かれてシフトレジスタ411〜41Pの出
力がオアゲート481〜48Pを通つて命令信号
111〜11Pとなる。以後シフト信号25が出
されるたびに、シフトレジスタ形メモリ101〜
10pの内容が逐次シフトレジスタ411〜41P
にシフトされ、命令信号111〜11Pとなる。
この間、プログラムカウンタ50の内容は1ずつ
加算されqを超えたとき0にリセツトされる。以
上の動作のタイムチヤートを第4図gに示す。 First, a case where there is no change request will be explained.
When the program counter 50 is reset to 0, the flip-flops 53, 54, and 55 have all been reset, so the output of the AND gate 63 is turned on, and only the AND gates 451 to 45p are opened and the shift register 411 is turned on. The outputs of ~ 41P pass through OR gates 481 ~ 48P and become command signals 111 ~ 11P . Thereafter, every time the shift signal 25 is issued, the shift register type memories 10 1 to 10
The contents of 10 p are sequentially shifted into shift registers 41 1 to 41 P.
, and become command signals 11 1 to 11 P.
During this time, the contents of the program counter 50 are incremented by 1 and reset to 0 when it exceeds q. A time chart of the above operation is shown in FIG. 4g.
次にシフトレジスタ形メモリ101〜10Pの
内容のうち順番rの内容をあらかじめフリツプフ
ロツプ431〜43Pに与えられている命令コー
ドに置きかえる場合について説明する。 Next, a case will be described in which the contents of the shift register type memories 10 1 to 10 P in order r are replaced with instruction codes given in advance to the flip-flops 43 1 to 43 P.
このとき、スイツチ52にはr+1が設定され
ているものとする。 At this time, it is assumed that the switch 52 is set to r+1.
プログラムカウンタ50が0にリセツトされた
とき、フリツプフロツプ53がセツトされる。 When program counter 50 is reset to zero, flip-flop 53 is set.
プログラムカウンタ50の内容がr+1になる
以前は、アンドゲート63がオンであり、アンド
ゲート451〜45Pが開いてシフトレジスタ4
11〜41pの出力が命令信号111〜11pとな
る。 Before the contents of the program counter 50 reach r+1, the AND gate 63 is on, and the AND gates 45 1 to 45 P are open and the shift register 4
The outputs of 1 1 to 41 p become command signals 11 1 to 11 p .
プログラムカウンタ50の内容がr+1に一致
すると、コンパレータ51より一致信号57が出
力され、アンドゲート61がオンになり、アンド
ゲート63はオフになる。 When the contents of the program counter 50 match r+1, a match signal 57 is output from the comparator 51, the AND gate 61 is turned on, and the AND gate 63 is turned off.
このため、アンドゲート471〜47pが開か
れ、フリツプフロツプ431〜43pの出力が命
令信号111〜11pとなる。 Therefore, AND gates 47 1 -47 p are opened, and the outputs of flip-flops 43 1 -43 p become command signals 11 1 -11 p .
プログラムカウンタ50の内容がr+1を超え
ると、再びアンドゲート61がオフ、アンドゲー
ト63がオンになり、シフトレジスタ411〜4
1pの出力が命令信号111〜11pとなる。 When the contents of the program counter 50 exceed r+1, the AND gate 61 is turned off again, the AND gate 63 is turned on, and the shift registers 41 1 to 4
The output of 1 p becomes command signals 11 1 to 11 p .
以上の動作のタイムチヤートを第4図hに示
す。 A time chart of the above operation is shown in FIG. 4h.
次に、スイツチ52で指定された順番r+1
に、予めフリツプフロツプ431〜43pに与え
られている内容を挿入し、順番r+1以後の内容
をずらして、最終データを消す場合について説明
する。 Next, the order r+1 specified by the switch 52
A case will be described in which the contents given in advance to the flip-flops 43 1 to 43 p are inserted, the contents after the order r+1 are shifted, and the final data is erased.
プログラムカウンタ50が0にリセツトされた
とき、フリツプフロツプ54がリセツトされる。 When program counter 50 is reset to zero, flip-flop 54 is reset.
プログラムカウンタ50の内容がr+1になる
以前はアンドゲート63がオンであり、アンドゲ
ート451〜45pが開いてシフトレジスタ41
1〜41pの出力が命令信号111〜11pとな
る。 Before the contents of the program counter 50 reach r+1, the AND gate 63 is on, and the AND gates 45 1 to 45 p are open and the shift register 41
The outputs of 1 to 41 p become command signals 11 1 to 11 p .
プログラムカウンタ50の内容がr+1に一致
するとコンパレータ51より一致信号57が出力
され、アンドゲート61がオンになり、アンドゲ
ート63はオフになる。 When the contents of the program counter 50 match r+1, a match signal 57 is outputted from the comparator 51, the AND gate 61 is turned on, and the AND gate 63 is turned off.
このため、アンドゲート471〜47pが開か
れ、フリツプフロツプ431〜43pの出力が命
令信号111〜11pとなる。 Therefore, AND gates 47 1 -47 p are opened, and the outputs of flip-flops 43 1 -43 p become command signals 11 1 -11 p .
以上の動作のタイムチヤートを第4図iに表わ
す。 A time chart of the above operation is shown in FIG. 4i.
次に、ステツチ52で指定された順番r+1の
内容を消去し、順番r+1以後の内容をずらして
最終データとして0を挿入する場合について説明
する。 Next, a case will be described in which the contents of the order r+1 specified by the stitch 52 are deleted, the contents after the order r+1 are shifted, and 0 is inserted as the final data.
プログラムカウンタ50が0にリセツトされた
とき、フリツプフロツプ55がセツトされる。 When program counter 50 is reset to zero, flip-flop 55 is set.
プログラムカウンタ50の内容がr+1になる
以前は、アンドゲート63がオンであり、アンド
ゲート451〜45pが開いてシフトレジスタ4
11〜41pの出力が命令信号111〜11pとな
る。 Before the contents of the program counter 50 reach r+1, the AND gate 63 is on, and the AND gates 45 1 to 45 p are open and the shift register 4
The outputs of 1 1 to 41 p become command signals 11 1 to 11 p .
プログラムカウンタ50の内容がr+1以上に
なるとアンドゲート62がオンになり、アンドゲ
ート63がオフになる。 When the contents of the program counter 50 exceed r+1, the AND gate 62 is turned on and the AND gate 63 is turned off.
このため、アンドゲート461〜46pが開か
れ、シフトレジスタ形メモリ101〜10pの出
力が命令信号111〜11pとなる。 Therefore, the AND gates 46 1 to 46 p are opened, and the outputs of the shift register memories 10 1 to 10 p become command signals 11 1 to 11 p .
以上のタイムチヤートを第4図jに示す。 The above time chart is shown in Figure 4j.
第5図a〜第5図dはフリツプフロツプ431
〜43pの入力・出力の状態を表わすタイムチヤ
ートである。 5a to 5d are flip-flops 431
~43 This is a time chart showing the input/output status of p .
第5図aはデイジタルスイツチ851〜85p
の動作で太い実線はオフからオンに細い実線はオ
ンからオフへ設定変更を示し、第5図bは設定押
しボタン841〜84pが押圧(“1”)された状
態を表わし、第5図cは整形回路821〜82p
の出力でラツチタイミング信号を示し、第5図d
はフリツプフロツプ431〜43pの出力でラツ
チされたデータを表わし太い実線・細い実線は第
5図aのそれらに対応する。 Figure 5a shows digital switches 851 to 85p.
A thick solid line indicates a setting change from off to on, a thin solid line indicates a setting change from on to off , and FIG. Figure c shows the shaping circuits 82 1 to 82 p
Figure 5d shows the latch timing signal at the output of
represents the data latched at the outputs of the flip-flops 431 to 43p , and the thick solid lines and thin solid lines correspond to those in FIG. 5a.
第6図a〜第6図gはフリツプフロツプ53〜
55の入力・出力の状態を示すタイムチヤートで
ある。 6a to 6g are flip-flops 53 to 6g.
55 is a time chart showing the status of input and output.
第6図aは要求押しボタンを押圧(“0”→
“1”)したことを表わし、第6図bはコンパレー
タ51の等しい場合オンになる「一致信号」57
の波形、第6図cはフリツプフロツプ73〜75
の出力波形、第6図dはアンドゲート66・6
9・72の出力波形、第6図eはアンドゲート6
4・67・70の出力波形、第6図fはアンドゲ
ート65・68・71の出力波形、第6図gはフ
リツプフロツプ53・54・55の出力波形であ
る。 Fig. 6a shows pressing the request push button (“0” →
FIG. 6b shows a "coincidence signal" 57 that turns on when the comparator 51 is equal.
The waveform of FIG. 6c is for flip-flops 73 to 75.
The output waveform of FIG. 6d is the AND gate 66.6
9.72 output waveform, Figure 6e is AND gate 6
FIG. 6f shows the output waveforms of the AND gates 65, 68, and 71, and FIG. 6g shows the output waveforms of the flip-flops 53, 54, and 55.
第3図の実施例においては、コンパレータ51
の出力として、より大信号56、一致信号57を
用いているが、より小信号も含めた3信号中2信
号を使用し、あるいは3信号総てを利用してゲー
トの切り替えを行なうことができる。 In the embodiment of FIG.
The larger signal 56 and the match signal 57 are used as the output of the gate, but it is possible to switch the gate by using 2 of the 3 signals including the smaller signal, or by using all 3 signals. .
以上述べた挿入、消去の機能をランダムアクセ
ス形メモリで実現しようとすると、回路が複雑に
なるか、挿入、消去のため余分な時間を費すこと
になる。 If the insertion and deletion functions described above were to be implemented using a random access type memory, the circuit would become complicated or extra time would be consumed for insertion and deletion.
かくして、これまで述べたように本発明によれ
ば、プログラムは記憶されている順序でのみ実行
され、プログラムに変更が生じても実行される順
序にならべ換えることができるため、プログラム
が整然として居り、理解し易く、ジヤンプ命令が
不要となるため、メモリの使用効率が上がり、本
発明はプログラマブルコントローラの低価格化,
新技術普及に寄与するところ大とあると考える。
Thus, as described above, according to the present invention, programs are executed only in the order in which they are stored, and even if the programs are changed, they can be rearranged to the order in which they are executed, so that the programs remain orderly. This invention is easy to understand, eliminates the need for jump instructions, improves memory usage efficiency, and reduces the cost of programmable controllers.
I think this will greatly contribute to the spread of new technology.
第1図は本発明の一実施例のブロツク図、第2
図は本発明の他の実施例の略線図、第3図はその
シフトレジスタ形メモリの記憶内容変更回路の詳
細なブロツク図、第4図a〜第4図jはその回路
の動作のタイムチヤート、第5図a〜第5図dは
フリツプフロツプ431〜43pの入力・出力の
状態を表わすタイムチヤート、第6図a〜第6図
gはフリツプフロツプ53〜55の入力・出力の
状態を示すタイムチヤートである。
1……記憶装置、2……処理装置、3……入出
力装置、41〜4n……アドレスバス、51〜5o
……データバス、6……読出指令、7……書込指
令、101〜10p……シフトレジスタ形メモ
リ、111〜11p……命令信号、12……ゲー
ト、13……アドレスコーダ、14……ゲート信
号、20……命令レジスタ、21……制御部、2
2……演算部、231〜23p……命令コード、
24……ラツチ信号、25……シフト信号。
FIG. 1 is a block diagram of one embodiment of the present invention, and FIG.
The figure is a schematic diagram of another embodiment of the present invention, FIG. 3 is a detailed block diagram of the storage content changing circuit of the shift register type memory, and FIGS. 4a to 4j are timing diagrams of the operation of the circuit. 5a to 5d are time charts showing the input and output states of the flip-flops 431 to 43p , and FIGS. 6a to 6g show the input and output states of the flip-flops 53 to 55. This is a time chart. 1... Storage device, 2... Processing device, 3... Input/output device, 4 1 to 4 n ... Address bus, 5 1 to 5 o
...Data bus, 6...Read command, 7...Write command, 101 to 10p ...Shift register type memory, 111 to 11p ...Command signal, 12...Gate, 13...Address coder , 14... Gate signal, 20... Instruction register, 21... Control unit, 2
2... Arithmetic unit, 23 1 to 23 p ... Instruction code,
24...Latch signal, 25...Shift signal.
Claims (1)
るシフトレジスタ形メモリと、このシフトレジス
タ形メモリの出力を入力とする第1シフトレジス
タと、その第1のシフトレジスタの出力を入力と
する第2のシフトレジスタと、命令コードを設定
する設定装置とを命令信号の信号源として具備す
るとともに、 命令コードの置換,挿入,消去すべきタイミン
グを示すシフト設定回数とシフト現在値とを比較
した結果を示す比較信号を導出するコンパレータ
を設け 命令コードの置換,挿入,消去,変更要求なし
を指令する置換信号、挿入信号,消去信号,変更
要求なし信号のうちいずれか1つを選択し切り換
える装置を備え、 置換あるいは挿入信号がオンでかつシフト設定
回数Pがシフト現在値qに等しいp=qのとき、
設定装置の出力を命令信号とし、 挿入信号がオンでかつシフト設定回数pがシフ
ト現在値qより大のp>qのとき、第2シフトレ
ジスタの出力を命令信号とし、 消去信号がオンでかつシフト設定回数pがシフ
ト現在値q以上のp≧qのとき、シフトレジスタ
形メモリの出力を命令信号とし、 変更要求なし信号のときは、第1シフトレジス
タの出力を命令信号とする ことを特徴とするシフトレジスタ形メモリ付プロ
グラマブルコントローラ。[Claims] 1. A shift register type memory from which instructions are sequentially read out in synchronization with a shift signal, a first shift register whose input is the output of this shift register type memory, and an output of the first shift register. It is equipped with a second shift register as an input and a setting device for setting an instruction code as a signal source of an instruction signal, and also has a shift setting number and a shift current value indicating the timing at which the instruction code should be replaced, inserted, or deleted. A comparator is provided that derives a comparison signal that indicates the result of the comparison. Select one of the replacement signal, insertion signal, deletion signal, and no change request signal that commands instruction code replacement, insertion, deletion, or no change request. When the replacement or insertion signal is on and the set shift number P is equal to the current shift value q, p=q,
The output of the setting device is used as a command signal, and when the insert signal is on and the shift setting number p is larger than the current shift value q, p>q, the output of the second shift register is used as a command signal, and the erase signal is on and When the shift setting number p is greater than or equal to the current shift value q (p≧q), the output of the shift register type memory is used as the command signal, and when there is a no change request signal, the output of the first shift register is used as the command signal. Programmable controller with shift register type memory.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14600179A JPS5671105A (en) | 1979-11-13 | 1979-11-13 | Shift register type programmable controller with memory |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14600179A JPS5671105A (en) | 1979-11-13 | 1979-11-13 | Shift register type programmable controller with memory |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5671105A JPS5671105A (en) | 1981-06-13 |
| JPS6246882B2 true JPS6246882B2 (en) | 1987-10-05 |
Family
ID=15397850
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP14600179A Granted JPS5671105A (en) | 1979-11-13 | 1979-11-13 | Shift register type programmable controller with memory |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5671105A (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS58205208A (en) * | 1982-05-25 | 1983-11-30 | Idec Izumi Corp | Shift register control system of sequence controller |
| JPS6228993A (en) * | 1985-07-30 | 1987-02-06 | Toshiba Corp | Memory device |
-
1979
- 1979-11-13 JP JP14600179A patent/JPS5671105A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5671105A (en) | 1981-06-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH03204737A (en) | Debug circuit of signal processing processor | |
| JPS5853368B2 (en) | sequence controller | |
| JPS6246882B2 (en) | ||
| US4675843A (en) | Programmable logic controller | |
| EP0661648A2 (en) | Digital signal processing circuit | |
| JP2526703B2 (en) | Programmable controller | |
| JP3055139B2 (en) | Micro program control method | |
| RU2079876C1 (en) | Microprogram control device | |
| JP2595992B2 (en) | Electronic musical instrument | |
| JPS6236563B2 (en) | ||
| JPS6236569B2 (en) | ||
| SU1481760A1 (en) | Memory addressing unit | |
| JPH0713758A (en) | Instruction decoding method | |
| SU1208536A1 (en) | Programmable controller | |
| JP2511856B2 (en) | Micro Processor | |
| JPS625724Y2 (en) | ||
| JPS6236568B2 (en) | ||
| JPS6235076B2 (en) | ||
| JPS6236565B2 (en) | ||
| JPS61182135A (en) | Process selecting system | |
| JPH05143317A (en) | Microcomputer | |
| JPS5931721B2 (en) | Output control method in sequence controller | |
| JPS6058493B2 (en) | information processing equipment | |
| JPH03291734A (en) | One-chip microcomputer | |
| JPS5852261B2 (en) | Program processing method |