Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS603206B2 - Sequence controller shift register device - Google Patents
[go: Go Back, main page]

JPS603206B2 - Sequence controller shift register device - Google Patents

Sequence controller shift register device

Info

Publication number
JPS603206B2
JPS603206B2 JP14274277A JP14274277A JPS603206B2 JP S603206 B2 JPS603206 B2 JP S603206B2 JP 14274277 A JP14274277 A JP 14274277A JP 14274277 A JP14274277 A JP 14274277A JP S603206 B2 JPS603206 B2 JP S603206B2
Authority
JP
Japan
Prior art keywords
shift
information
output
instruction
register
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
JP14274277A
Other languages
Japanese (ja)
Other versions
JPS5476787A (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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP14274277A priority Critical patent/JPS603206B2/en
Publication of JPS5476787A publication Critical patent/JPS5476787A/en
Publication of JPS603206B2 publication Critical patent/JPS603206B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Discharge Of Articles From Conveyors (AREA)
  • Control By Computers (AREA)
  • Programmable Controllers (AREA)

Description

【発明の詳細な説明】 本発明はリレーや無接点リレーで構成したシーケンスコ
ントローラのかわりに、記憶装置にシーケンスを論理式
に直した形で記憶させておき、シーケンスの変更を記憶
装置の修正だけで容易に行なえるようにしたシーケンス
コントローラに使用して好適なシフトレジスタ装置に関
するものである。
[Detailed Description of the Invention] Instead of a sequence controller configured with relays or non-contact relays, the present invention stores sequences in a storage device in the form of logical expressions, and changes to the sequence can be made by simply modifying the storage device. The present invention relates to a shift register device suitable for use in a sequence controller that can be easily operated.

シフトレジスタは、たとえば、1つのコンベアに複数種
の物品を乗せて搬送し、物品の種類によってそれぞれ異
なった降し口から降すというような、物品の仕分け装置
等に使用して好適なものである。
The shift register is suitable for use in, for example, an article sorting device that transports multiple types of articles on one conveyor and unloads them from different outlets depending on the type of article. be.

第1図はその一例の概略を示したものであり、1はステ
ップ駆動の電動機2によってステップ駆動されるコンベ
ア、A,Bはそれぞれ異なった物品を示し、3は物品A
の降し口、4は物品Bの降し口である。5はコンベア1
の搬入口付近に設置した物品判別器であり、これはその
前を物品Aが通過すると端子5aから検出パルスを出力
し、通過する物品がBであれば端子5bから検出パルス
を出力するよう構成してある。
FIG. 1 shows an outline of an example of this, in which 1 is a conveyor driven in steps by a step-drive electric motor 2, A and B each represent a different article, and 3 is an article A.
4 is the outlet for article B. 5 is conveyor 1
This is an article discriminator installed near the entrance of the article discriminator, which is configured to output a detection pulse from terminal 5a when article A passes in front of it, and output a detection pulse from terminal 5b when article B passes in front of it. It has been done.

コンベア1には、コンベア1が1ステップ駆動して移動
する間隔ごとにそれぞれ固定した番地へ,A,,ん,・
・・・・・,んが定めてあり、図の場合「番地Aoに物
品判別器5を設置してあり、番地へに降し口3、番地A
5に降し口4がそれぞれ設置してある。6,7はしジス
タであり、各レジスタはコンベァ1の番地へ,A,,・
・・・・・,んに対応する記憶ビットを有し、レジスタ
6は端子5aからの信号をシリアル入力とし、レジスタ
7は端子5bからの信号をシリアル入力としてある。
The conveyor 1 has addresses A,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, , , , , , , , , , , , , , , , , , , , , , , , , ,
In the case of the figure, "The article discriminator 5 is installed at address Ao, and the exit 3 and address A are installed at address Ao."
5 and 4 are installed respectively. 6 and 7 are registers, and each register goes to the address of conveyor 1, A,...
. . . The register 6 receives a signal from the terminal 5a as a serial input, and the register 7 receives a signal from the terminal 5b as a serial input.

そして、それぞれのレジスタ6,7は電動機2が1ステ
ップだけコンペァーを駆動するごとにステップ信号を発
生するステップ駆動信号発生器8の信号をシフトアップ
信号としてある。このようにすれば、物品判別器5は物
品Aを判別するとしジスタ6にパルス信号を送り、物品
Bを判別するとしジスタ7にパルス信号を送る。しかも
、コンベア1がステップ駆動するごとに、各レジスタ6
,7はシフトアップする。第2図は、この様子を示した
状態図であり、コンベア1の駆動ステップ数Tに対する
レジスタ6,7の各ビット0,1,2,・・・・・・,
6の内容の変イQ氏態を示してある。この場合、第1図
の状態は、ステップ数4に対応する。すなわち、物品A
が番地へとんとにあることから、レジスタ6の0ビット
と4ビットは論理的に“1”の状態を記憶し、コンベア
1の番地Aoとんとこ物品Aがあることを記憶する。同
様に、レジスタ7はビット1が論理的に‘11”の状態
を記憶し、コンベア1の番地A,に物品Bがあることを
記憶する。そこで、レジスタ6のビット4が論理的に“
1”となった所で降し口3を開けば、物品Aをこの降し
口3から降すことができ、またレジスタ7のビット5が
論理的に“1”となった所で降し口4を開けば、物品B
をこの降し口4から降すことができる。このようにすれ
ば、コンベア1の搬入口に異なった物品を不規則に入れ
ても、その物品を確実に仕分けできる。このような仕分
け装置の制御部分を上記したシーケンスコントローラで
構成する場合、従来はシフトレジスタをシーケンスコン
トローラの外部機器として設置し、これら相互間で情報
の授受を行って、降し口の開閉制御を行なっていた。
Each of the registers 6 and 7 uses a signal from a step drive signal generator 8, which generates a step signal every time the motor 2 drives the comparator by one step, as a shift-up signal. In this way, the article discriminator 5 sends a pulse signal to the register 6 when determining the article A, and sends a pulse signal to the register 7 when determining the article B. Moreover, every time the conveyor 1 is driven step by step, each register 6
, 7 will shift up. FIG. 2 is a state diagram showing this state, and each bit 0, 1, 2, .
The contents of No. 6 are shown in a different form. In this case, the state in FIG. 1 corresponds to a step number of four. That is, article A
Since A0 is located at the address, the 0 bit and 4 bit of the register 6 logically store the state of "1", and it is stored that the article A is located at the address Ao of the conveyor 1. Similarly, register 7 stores the state where bit 1 is logically '11' and stores that article B is at address A on conveyor 1. Therefore, bit 4 of register 6 is logically '11'.
If the outlet 3 is opened at the point where the value becomes ``1'', the article A can be unloaded from the outlet 3, and the article A can be unloaded at the point where bit 5 of the register 7 logically becomes ``1''. If you open mouth 4, article B
can be dropped from this outlet 4. In this way, even if different articles are randomly placed at the entrance of the conveyor 1, the articles can be reliably sorted. When the control part of such a sorting device is configured with the above-mentioned sequence controller, conventionally a shift register is installed as an external device of the sequence controller, and information is exchanged between them to control the opening and closing of the outlet. I was doing it.

第3図はその状態を示したものであり、10はシーケン
スコントローラ本体、11はシフトレジスタである。1
2はシーケンスコントローラ10の入力回路、13は出
力回路であり、シフトレジスター1のシリアル入力端子
a、シフトアップ端子b、クリア端子Cを出世回路13
の出力で操作し、必要なビットの論理状態を出力端子○
から入力回路12で取り込み、この入力をシーケンスコ
ントローラ10の論理演算データとしている。
FIG. 3 shows the state, where 10 is the sequence controller main body and 11 is a shift register. 1
2 is an input circuit of the sequence controller 10, 13 is an output circuit, and the serial input terminal a, shift up terminal b, and clear terminal C of the shift register 1 are connected to the success circuit 13
Operate on the output of the output terminal ○ to change the logic state of the required bit.
The input circuit 12 takes in the data from the input circuit 12, and this input is used as logical operation data for the sequence controller 10.

シーケンスコントローラにおいては、入出力回路部分が
価格のかなりの部分を占め、この入出力回路の点数の増
加が価格に直接影響を及ぼす。ところが、従釆のように
外部にシフトレジスタを設置すると、シフトレジスタ1
1の操作用にシフトレジスタ1個に対し少なくとも3個
の出力回路と、1個の入力回路が必要となる。また、こ
のようなシフトレジス外ま、前記のような仕分け装置の
場合、物品の種類の1つに対して1個づつ割り当てなけ
ればならず、物品の種類の数にもよるが、かなりの数に
及ぶのが一般的である。したがって、これらシフトレジ
ス夕とシーケンスコントローラ間の配線、シフトレジス
タの配置等にかなりの工数が費やされ、また、このシフ
トレジスタがシーケンスコントローラの入出力回路のか
なりの部分を使用してしまい、装置全体が高価になって
しまう欠点があつた。また、このような欠点に鑑み、ソ
フト的にシフトレジスタを構成することも行なわれてい
るが、これにはかなりの尊間的知識を有し、プログラム
が複雑化してしまい、結果的にプログラム記憶装置のか
なりの部分をシフトレジスタを構成するプログラムが所
有してしまう。
In a sequence controller, the input/output circuit portion accounts for a considerable portion of the price, and an increase in the number of input/output circuits directly affects the price. However, when a shift register is installed externally like a slave, shift register 1
For one operation, at least three output circuits and one input circuit are required for one shift register. In addition, in the case of the above-mentioned sorting device, it is necessary to allocate one piece to each type of article, and depending on the number of types of articles, it is necessary to allocate one piece to each type of article. It is common for it to extend. Therefore, a considerable amount of man-hours are spent on the wiring between the shift register and the sequence controller, the arrangement of the shift register, etc., and the shift register uses a considerable part of the sequence controller's input/output circuit, making the entire system The drawback was that it was expensive. In addition, in view of these shortcomings, shift registers have been constructed using software, but this requires considerable knowledge and complicates the program, resulting in reduced program memory. A considerable portion of the device is owned by the program that configures the shift register.

したがって、プログラム記憶装置を増設しなければ、他
の制御プログラムを格納できないということもあり、プ
ログラム記憶装置を有効活用できない。本発明は上記事
情に鑑みて成されたもので、シフトレジスタの増設に対
し、これらの配線、設置等の工数が不要で、シーケンス
コントローラの入出力回路の使用点数を必要最小限とす
ることができ、しかも簡単なプログラムで作動でき、プ
ログラム記憶装置を有効活用できるシーケンスコントロ
ーラのシフトレジス夕を得ることを目的とする。
Therefore, unless a program storage device is added, other control programs cannot be stored, and the program storage device cannot be used effectively. The present invention has been made in view of the above circumstances, and eliminates the need for man-hours such as wiring and installation when adding shift registers, and it is possible to minimize the number of input/output circuits used in the sequence controller. To provide a shift register for a sequence controller which can be operated with a simple program and can effectively utilize a program storage device.

上記の目的を達成するため本発明の特徴とするところは
、プログラム記憶装置の複数の番地に格納した命令コー
ドを順次読み出し、論理演算処理装置に前記命令コード
のオペランド部で指定した入出回路の論理状態を順次入
力し、命令コードの操作部で指定した論理演算を順次実
行させ、論理演算結果を該当する出力回路に格納し、こ
の世力回路の内容で対応する制御対象を制御するように
したシーケンスコントローラにおいて、各番地にシフト
情報とシフトアップ操作信号検出情報とシリァル入力情
報とを格納する領域を備え操作部にシフト命令あるいは
シフトアップ命令を有する命令コードのオペランド部で
指定された番地の内容を出力するランダムアクセスメモ
リと、このランダムアクセスメモリから出力された内容
を−時記憶して出力する第1のレジスタと、命令コード
の操作部を入力し、これがシフト命令であればシフト指
命信号を出力し、シフトアップ命令であればシフトアッ
プ指命信号を出力する命令解読器と、シフト命令実行時
にシリアル信号入力手段を構成する外部機器の論理状態
を一時記憶して出力し、シフトアップ命令実行時にシフ
トアップ信号入力手段を構成する外部機器の論理状態を
一時記憶して出力する第2のレジスタと、前記第1のレ
ジスタの出力のうち、シフトアップ操作信号検出情報と
前記第2のレジスタの出力とを入力し、前記解読器がシ
フトアップ指命信号を出力することによって、これら両
入力を突き合せ、これら両入力の間に論理状態の変化が
あり、しかも前記第2のレジスタの出力がシフトアップ
信号を出力した論理状態にあるときのみシフトアップ操
作信号を出力するシフトアップ操作信号出力判定器と、
前記シフト指令信号と前記シフトアップ指令信号と前記
シフトアップ操作信号と前記第2のレジスタの出力情報
とシフト命令実行の際命令コードのオペランド部で指定
された番地内のシフト情報の任意のビットを指定するビ
ット指定情報とを入力し、これらの入力によって前記第
1のレジスタの記憶内容を変換し前記ランダムアクセス
メモリの所定番地に格納し得るよう出力する変換回路と
を具備し、前記変換回路はシフト指令信号を受けること
によって、前記第2のレジス夕の出力をシリアル入力情
報とし、シフト情報とシフトアップ操作信号検出情報と
はそのままにして出力し、シフトアップ指令信号を受け
しかもシフトアップ操作信号を受けることによって、シ
フト情報はシリアル入力情報でシフトした情報をシフト
情報とし、前記第2のレジスタの出力をシフトアップ操
作信号検出用情報とし、シリアル入力情報はそのままに
して出力し、シフトアップ指令信号を受け、シフトアッ
プ操作信号を受けないときには、前記第2のレジスタの
出力情報をシフトアップ操作信号検出情報とし、シリア
ル情報とシフト情報とはそのままにして出力するように
したことにある。
In order to achieve the above object, the present invention is characterized by sequentially reading out instruction codes stored in a plurality of addresses in a program storage device, and instructing a logical operation processing unit to execute the logic of the input/output circuit specified by the operand part of the instruction code. A sequence in which states are sequentially input, logical operations specified by the operation section of the instruction code are executed sequentially, the logical operation results are stored in the corresponding output circuit, and the corresponding control target is controlled by the contents of this world power circuit. The controller has an area for storing shift information, shift-up operation signal detection information, and serial input information at each address, and the operation section stores the contents of the address specified by the operand part of the instruction code that has a shift command or shift-up command. It inputs a random access memory to output, a first register that stores and outputs the contents output from this random access memory, and an operation section for an instruction code, and if this is a shift instruction, a shift instruction signal is input. and a command decoder that outputs a shift-up instruction signal if it is a shift-up command, and temporarily stores and outputs the logic state of the external device that constitutes the serial signal input means when executing a shift command, and executes the shift-up command. a second register that temporarily stores and outputs the logic state of an external device constituting the shift-up signal input means, and a shift-up operation signal detection information of the output of the first register; and the decoder outputs a shift-up instruction signal to match these two inputs, and there is a change in logic state between these two inputs, and the output of the second register is a shift-up operation signal output determiner that outputs the shift-up operation signal only when it is in the logical state that outputs the shift-up signal;
The shift command signal, the shift-up command signal, the shift-up operation signal, the output information of the second register, and any bit of shift information within the address specified by the operand part of the instruction code when executing the shift command. a conversion circuit that inputs designated bit designation information, converts the storage contents of the first register according to these inputs, and outputs the converted contents so that the contents can be stored in a predetermined location of the random access memory; By receiving the shift command signal, the output of the second register is made into serial input information, and the shift information and the shift-up operation signal detection information are outputted as they are. The shift information is the information shifted by the serial input information, the output of the second register is used as shift-up operation signal detection information, and the serial input information is output as is, and the shift-up command is output. When a signal is received but a shift-up operation signal is not received, the output information of the second register is used as shift-up operation signal detection information, and the serial information and shift information are output as they are.

以下、第4図に示す本発明の一実施例について説明する
An embodiment of the present invention shown in FIG. 4 will be described below.

20はプログラム記憶装置であり、複数の各番地に操作
部とオペランド部とで構成した命令コードを格納してあ
る。
Reference numeral 20 denotes a program storage device, in which instruction codes consisting of an operation section and an operand section are stored at each of a plurality of addresses.

このプログラム記憶装置20は、図示しない番地指定手
段によって、その番地が順次指定され、これによって命
令コードが順次読み出される。21は命令解読器であり
、命令コードの操作部を入力し、その内容に応じて出力
端子OPの予め定めた様子から信号を出力する。
Addresses of the program storage device 20 are sequentially specified by an address specifying means (not shown), and instruction codes are sequentially read out. Reference numeral 21 denotes an instruction decoder, which inputs an operation section of an instruction code and outputs a signal from a predetermined state of the output terminal OP according to the contents thereof.

12は入力回路であり、命令コードのオペランド部を入
力し、このオペランド部が指定する番地の入力端子lo
,1,,12,・・・,lnに接続した入力機器の論理
状態信号を出力する。
12 is an input circuit which inputs the operand part of the instruction code and connects to the input terminal lo at the address specified by this operand part.
, 1, , 12, . . . , ln.

13は出力回路であり、命令コードのオペランド部を入
力し、このオペランド部が指定する番地の出力端子○o
,0,,02,・・・,0nに接続した制御対象に出力
信号を印加、あるいはこの制御対象の論理状態信号を出
力する。
13 is an output circuit which inputs the operand part of the instruction code and outputs the output terminal ○o at the address specified by this operand part.
, 0, 02, . . . , 0n, or outputs a logic state signal of the controlled object.

22は論理演算処理装置であり、命令解読器21の出力
端子OPからの信号と、入出力回路12,13の出力信
号とを入力し、所定の論理演算を実行し、論理演算結果
を出力する。
Reference numeral 22 denotes a logical operation processing device, which inputs the signal from the output terminal OP of the instruction decoder 21 and the output signals of the input/output circuits 12 and 13, executes a predetermined logical operation, and outputs the logical operation result. .

この結果は命令コードのオペランド部で指定された出力
回路13の任意の番地に格納される。そして、この出力
回路13は、その内容に応じて対応する制御対象を制御
操作する。プログラム記憶装置20から命令コードが順
次読み出されると、命令解読器21と入出力回路12,
13から信号が論理演算処理装置22に順次加わる。論
理演算処理装置22は、これらの信号を順次取り込み、
所定の演算を実行し、結果を出力回路13の指定された
各番地に格納する。そして、出力回路13の各端子oo
,0,,02,・・・,仇,から制御信号を出力し、接
続された制御対象を順次制御操作する。以上が一般のシ
ーケンスコントローラであり、以下が本発明によって構
成したシフトレジスタ装置である。23はランダムアク
セスメモリであり、複数の番地の各番地は第5図に示す
ように、シフト情報Do,D,,D2,・・・,Dn‐
,と、シフトアップ操作信号検出情報Moと、シリアル
入力情報M,と、出力情報M2とを格納する領域を備え
ている。
This result is stored at an arbitrary address of the output circuit 13 designated by the operand part of the instruction code. The output circuit 13 then controls and operates the corresponding control object according to the content. When the instruction codes are sequentially read from the program storage device 20, the instruction decoder 21 and the input/output circuit 12,
13, signals are sequentially applied to the logic processing unit 22. The logic processing unit 22 sequentially takes in these signals,
A predetermined operation is executed and the result is stored at each designated address of the output circuit 13. Then, each terminal oo of the output circuit 13
, 0,, 02, . The above is a general sequence controller, and the following is a shift register device configured according to the present invention. 23 is a random access memory, and each of the plural addresses has shift information Do, D,, D2, . . . , Dn- as shown in FIG.
, shift-up operation signal detection information Mo, serial input information M, and output information M2.

このメモリ23は、プログラム記憶装置20から読み出
される命令コードのオペランド部で番地指定され、当該
番地の内容を出力する。24はランダムアクセスメモリ
23からのシフトアップ操作信号検出情報Moと、シリ
アル入力情報M,と、出力情報M2と、シフト情報Do
,D,,D2,・・・,Dn‐,とを一時記憶して出力
する第1のレジスタである。
This memory 23 is addressed by the operand part of the instruction code read from the program storage device 20, and outputs the contents of the address. 24 are shift-up operation signal detection information Mo from the random access memory 23, serial input information M, output information M2, and shift information Do.
, D, , D2, . . . , Dn-, and outputs the temporarily stored data.

命令解読器21はシフト命令SDを解読して端子SDT
からシフト指令信号SDSを出力し、シフトアップ命令
SUを解読して端子SUTからシフトアップ指令信号S
USを出力するよう構成する。なお、シフト命令SDお
よびシフトアップ命令SUを解読する命令解読器を前記
命令解読器21と兼用しているが、これは別に設けてあ
ってもよい。実施例の場合、前記論理演算処理装置22
を第2のレジスタと兼用してある。したがって、論理演
算処理装置22はシフト命令SD実行時に、命令コード
のオペランド部で指定した入力回路12の任意の端子に
接続したシリァル信号入力手段を構成する外部機器、た
とえば第1図における物品判別器5のいずれかの様子5
a,5bの論理状態を一時記憶して出力し、シフトアッ
プ命令SU実行時に、シフトアップ信号入力手段を構成
する外部機器、たとえば第1図におけるステップ駆動検
出器8の論理状態を一時記憶して出力するよう構成して
ある。25はシフトアップ操作信号出力判定器であり、
第1のシフトレジスタ24の出力のうち、シフトアップ
操作信号検出情報M。
The instruction decoder 21 decodes the shift instruction SD and outputs the terminal SDT.
outputs a shift command signal SDS from the terminal SUT, decodes the shift up command SU, and outputs a shift up command signal S from the terminal SUT.
Configure to output US. Note that although the instruction decoder 21 also serves as the instruction decoder for decoding the shift instruction SD and shift-up instruction SU, it may be provided separately. In the case of the embodiment, the logical operation processing device 22
is also used as the second register. Therefore, when executing the shift instruction SD, the logical operation processing device 22 is connected to an external device constituting a serial signal input means connected to an arbitrary terminal of the input circuit 12 specified by the operand part of the instruction code, such as the article discriminator in FIG. Any situation 5
a, 5b are temporarily stored and output, and when the shift-up command SU is executed, the logic state of an external device constituting the shift-up signal input means, for example, the step drive detector 8 in FIG. 1, is temporarily stored and output. It is configured to output. 25 is a shift-up operation signal output determiner;
Shift-up operation signal detection information M among the outputs of the first shift register 24.

と論理演算処理装置22からの出力情報COとを入力し
、シフトアップ指令信号SUSが印加されることによっ
て、これら両入力MoとCOを比較判定する。そして、
情報MoとCOとの間に論理状態の変化があり、しかも
情報COがシフトアップ信号を出力した論理状態にある
ときのみシフトアップ操作信号SHSを出力する。たと
えば、情報Moが論理的に“0”で情報COが論理的に
“1”の場合、論理的に“1”のシフトアップ操作信号
SHSを出力する。シリアル信号、シフトアップ信号を
発生する、たとえば前記した物品判別器5、ステップ駆
動検出器8の信号を発生する周期、および発生する信号
の時間中は、プログラム記憶装置20を番地指定手段が
一巡り指定するサイクルタイムより遥かに長い。したが
って、1つのシフトアップ信号が発生している間に番地
検出手段が、シフト命令、シフトアップ命令を複数回走
査してしまい、シフト情報が複数回シフトしてしまう。
そこで、このシフトアップ操作信号SHSで、シフトア
ップ信号の立上りのみを検出し、これによってシフト情
報をシフトするようにするものである。26はシフト指
令信号SDSと、シフトアップ指令信号SUSと、シフ
トアップ操作信号SHSと、論理演算処理装置22の出
力情報COと、シフト命令SD実行の際命令コードのオ
ペランド部で指定された番地のシフトデータDo,D,
,D2,・・・,Dn‐,の特定のビットを指定するビ
ット指定情報mとを入力し、これら入力の組み合せによ
って第1のレジスタ24の記憶内容を変換して出力する
変換回路である。この変換回路26の出力情報は、ラン
グムアクセスメモリ23に送出され、元の番地内に格納
される。第6図は、変換回路26が、これに入力される
情報、信号の組み合せによって、第1のレジスタ24の
出力内容をどのように変換して出力するかを図示したも
のであり、aはシフト命令SDの実行時の変換状態を示
したもので、シフトアップ命令SU実行時でシフトアッ
プ操作信号SUSが発生した場合をbに、シフトアップ
命令SU実行時でシフトアップ操作信号SUSが発生し
ない場合をcに示してある。第6図a,b,cの各図は
それぞれ上段に示したものが変換される以前の状態、下
段が変換された後の状態を示してある。変換回路26は
データセレクタ27,28,29とシフタ30とで構成
してある。データセレクタ27は論理演算処理装置22
の出力情報COと、第1のレジスタ24の出力シフトア
ップ操作信号検出情報鳩とを入力し、シフトアップ指令
信号SUSが加わることによって情報COを選択し、こ
れが加わらないことによって情報Moを選択し、その選
択した情報をシフトアップ検出用情報地′として出力す
る。データセレクタ28は論理演算処理装置22の出力
情報COと、第1のレジスタ24の出力のシリアル入力
情報M,とを入力し、シフト指令信号SDSが加わるこ
とによって情報COを選択し、これが加わらないことに
よって情報M,を選択し、その選択した情報をシリアル
入力情報M,′として出力する。データセレクタ29は
第1のレジスタ24からのシフト情報DのD,,D2,
・・・,Dn‐,と、出力情報M2と、プログラム記憶
装置20からのビット指定情報mとを入力し、シフト指
令信号SDSが加わることによってシフト情報Do,D
,,D2,・・・,Dn‐,のビット指定情報mで指定
されたmビット目の情報を選択し、これが加わらないこ
とによって出力情報M2を選択し、その選択した情報を
出力情報M2として出力する。シフタ3川ま、第1のレ
ジスタ24からのシフト情報Do,D,,D2,…,D
n‐,と、シリアル入力情報M,とを入力し、シフト操
作信号SHSが加わることによってシフト情報Do,D
,,D2,…,Dn‐,をシリアル入力情報で1ビット
シフトした情報をシフト情報〇o,〇,,〇2,…,D
′n‐,として出力し、これが加わらない場合はシフト
情報Do,D,,○2,…,Dn‐,をそのままシフト
情報D′o,〇,,D′2,…,〇n‐,として出力す
る。その構成は、たとえば第6図あるいは第7図に示す
とうりである。第7図は、切換回路31をシフト情報D
の D,,D2,・・・,Dn‐,のビット数分使用し
て構成したものであり、各回路31にはシフト情報Do
,D,,D2,・・・,Dn‐,とシリアル入力情報M
,を図のように入力し、この回路31をシフトアップ操
作信号SHSで切り換えるようにする。そして、シフト
アップ操作信号SHSが加わることによって、シリアル
入力情報M,を〇,として出力し、その他はそれぞれ1
ビットづつシフトし、Doを〇,,D,をD′2という
ようにして出力する。第8図はシフトレジスタ32を使
用したものであり、シフトアップ操作信号SHSをパル
ス発振器33を介してシフトアップ端子32aに入力し
てシフト情報Do,D,,D2,…,Dn‐・をシリア
ル入力情報M,でシフトアップする。第9図および第1
0図は本発明実施例の動作を説明するためのタイムチャ
ートおよび状態変化図である。
and the output information CO from the logic processing unit 22, and by applying the shift-up command signal SUS, these two inputs Mo and CO are compared and determined. and,
The shift-up operation signal SHS is output only when there is a change in the logic state between the information Mo and CO and the information CO is in the logic state in which the shift-up signal was output. For example, when the information Mo is logically "0" and the information CO is logically "1", the shift-up operation signal SHS which is logically "1" is output. During the cycle of generating serial signals and shift-up signals, for example, the signals of the article discriminator 5 and the step drive detector 8, and the time of the generated signals, the program storage device 20 is accessed once by the address specifying means. Much longer than the specified cycle time. Therefore, while one shift-up signal is being generated, the address detection means scans the shift command and shift-up command multiple times, resulting in shift information being shifted multiple times.
Therefore, only the rising edge of the shift-up signal is detected using the shift-up operation signal SHS, and the shift information is thereby shifted. 26 is a shift command signal SDS, a shift up command signal SUS, a shift up operation signal SHS, the output information CO of the logic processing unit 22, and the address specified in the operand part of the instruction code when executing the shift command SD. Shift data Do, D,
, D2, . . . , Dn-, and inputs bit designation information m that designates specific bits of , D2, . The output information of this conversion circuit 26 is sent to the Langmuth access memory 23 and stored within the original address. FIG. 6 is a diagram showing how the conversion circuit 26 converts and outputs the output contents of the first register 24 according to the combination of information and signals input thereto, where a is a shift This shows the conversion state when the instruction SD is executed, and b indicates the case where the shift-up operation signal SUS is generated when the shift-up instruction SU is executed, and the case where the shift-up operation signal SUS is not generated when the shift-up instruction SU is executed. is shown in c. In each of FIGS. 6a, b, and c, the upper row shows the state before conversion, and the lower row shows the state after conversion. The conversion circuit 26 is composed of data selectors 27, 28, 29 and a shifter 30. The data selector 27 is the logical operation processing unit 22
The output information CO and the output shift-up operation signal detection information pigeon of the first register 24 are input, and when the shift-up command signal SUS is added, information CO is selected, and when this is not added, information Mo is selected. , and outputs the selected information as an information location for shift-up detection. The data selector 28 inputs the output information CO of the logic processing unit 22 and the serial input information M of the output of the first register 24, selects the information CO by adding the shift command signal SDS, and selects the information CO when this is not added. This selects information M, and outputs the selected information as serial input information M,'. The data selector 29 selects shift information D from the first register 24 such as D, , D2,
..., Dn-, the output information M2, and the bit designation information m from the program storage device 20, and by adding the shift command signal SDS, the shift information Do, D is input.
,,D2,...,Dn-, selects the m-th bit information specified by bit designation information m, selects output information M2 by not adding this, and selects the selected information as output information M2. Output. Shifter 3, shift information Do, D,, D2,..., D from the first register 24
n-, and the serial input information M, and by adding the shift operation signal SHS, the shift information Do, D
,,D2,...,Dn-, is shifted by 1 bit using serial input information, and the information is converted into shift information〇o,〇,,〇2,...,D
If this is not added, the shift information Do, D,, ○2, ..., Dn-, is output as the shift information D'o, 〇,, D'2, ..., 〇n-, as is. Output. Its structure is as shown in FIG. 6 or FIG. 7, for example. FIG. 7 shows how the switching circuit 31 is set to shift information D.
It is constructed by using the number of bits of D,,D2,...,Dn-, and each circuit 31 has shift information Do.
,D,,D2,...,Dn-, and serial input information M
, are input as shown in the figure, and this circuit 31 is switched by the shift-up operation signal SHS. Then, by adding the shift-up operation signal SHS, the serial input information M, is output as 〇, and the other information is output as 1.
The data is shifted bit by bit and outputted as Do becomes 0, D becomes D'2, and so on. FIG. 8 uses a shift register 32, in which a shift-up operation signal SHS is input to a shift-up terminal 32a via a pulse oscillator 33, and shift information Do, D,, D2,..., Dn- is serially transmitted. Shift up with input information M. Figure 9 and 1
FIG. 0 is a time chart and state change diagram for explaining the operation of the embodiment of the present invention.

第9図のSIはシリアル入力、SUPはシフトアップ入
力、INSはプログラム記憶装置2川こ格納されたシフ
ト命令、シフトアップ命令がこの順で実行される時点を
示したものであ、この間隔Toは常に一定であり、この
間隔Toは前記したサイクルタイムに相当する。第10
図は第9図の時点to,t,,t2,…,【6における
変換回路26の出力情報の内容を示す。以下、これらの
図を参照して動作を説明する。
In FIG. 9, SI indicates the serial input, SUP indicates the shift-up input, and INS indicates the time point at which the shift command and shift-up command stored in the program storage device 2 are executed in this order, and this interval To is always constant, and this interval To corresponds to the cycle time described above. 10th
The figure shows the contents of the output information of the conversion circuit 26 at time points to, t, t2, . . . , [6 in FIG. 9. The operation will be described below with reference to these figures.

説明に当っては次の2つの命令式がプログラム記憶装置
20内のある番地に格納されているものとする。SD(
N,m)=X,。
In the description, it is assumed that the following two command expressions are stored at a certain address in the program storage device 20. SD(
N, m)=X,.

……01SU(N) =×2。
……■これらの式は、プログラム記憶装置2
0内には機械語で格納されるのであるが、説明の便宜上
、このように示す。‘1’式はシフト命令であり、Nは
ランダムアクセスメモリ23の番地、mはビット指定情
報、X,oは入力回路13の入力端子1,oに接続した
入力機器、たとえば第1図における物品判別器5の出力
端子5a,5bのいずれかを示す。すなわち、この式は
入力回路13の端子1,oに接続した入力機器からの論
理情報を、ランダムアクセスメモリ22のN番地に割り
当てたシフトレジスタのシリアル入力とし、そのシフト
レジスタのmビット目を出力として指示することを意味
している。■式はシフトアップ命令であり、Nは前記と
同様、ランダムアクセスメモリ22の番地、X数は入力
回路13の入力端子13oに接続した入力機器、たとえ
ば第1図におけるステップ駆動検出器を示す。すなわち
、この式は入力回路13の端子1幼に接続した入力機器
からの論理情報によって、ランダムアクセスメモリ22
のN番地に割り当てたシフトレジスタをシフトアップす
るよう指示することを意味している。なお、ランダムア
クセスメモリ23はクリアされ、内容はすべて論理的に
“0”であったとする。シフト情報は5ビットで構成さ
れ、ビット情報mは3ビット目を指定するものとする。
なお、第10図はシフト命令SDとシフトアップ命令S
Uとが同時に実行されるかのように示してあるが、実際
にはシフト命令SD、シフトアップ命令SUの順で命令
が実行される。プログラム記憶装置20は、番地指定手
段により短時間に番地が順次指定され、命令コードを順
次出力する。
...01SU(N) =×2.
...■These formulas are stored in the program storage device 2.
0 is stored in machine language, but for convenience of explanation, it is shown like this. The '1' formula is a shift command, N is the address of the random access memory 23, m is bit designation information, X and o are input devices connected to the input terminals 1 and o of the input circuit 13, such as the article in FIG. Either the output terminal 5a or 5b of the discriminator 5 is shown. In other words, this formula takes logic information from the input device connected to terminals 1 and o of the input circuit 13 as serial input to the shift register assigned to address N of the random access memory 22, and outputs the m-th bit of the shift register. It means to give instructions as follows. Equation (2) is a shift up command, N is the address of the random access memory 22 as before, and the number X is an input device connected to the input terminal 13o of the input circuit 13, for example, the step drive detector in FIG. That is, this formula is based on the logic information from the input device connected to the terminal 1 of the input circuit 13.
This means instructing to shift up the shift register assigned to address N. It is assumed that the random access memory 23 has been cleared and all contents are logically "0". It is assumed that the shift information is composed of 5 bits, and the bit information m specifies the third bit.
Note that FIG. 10 shows shift command SD and shift up command S.
Although the instructions are shown as if they are executed simultaneously, the instructions are actually executed in the order of shift instruction SD and shift up instruction SU. In the program storage device 20, addresses are sequentially specified in a short time by the address specifying means, and instruction codes are sequentially output.

論理演算装置22は、命令コードのオペランド部で指定
された入出力回路12,13からの論理情報を順次取り
込み、操作部で指定された論理演算を順次実行し、論理
結果を指定された出力回路13に送る。番地指定手段が
プログラム記憶装置20の最初の番地から最後の番地を
指定し終るまでの時間、すなわちサイクルタイムは、シ
ーケンスコントローラの特質上から、シリアル入力SI
あるいはシフトアップ入力SUPの周期あるいは時間中
よりも遥かに早い。番地検出手段はこのように高速にプ
ログラム記憶装置20の番地を繰り返し指定する。今、
番地指定手段が【が寺点で上記したm式を格納したプロ
グラム装置20の番地を指定したとする。そうすると、
命令コ−ドが読み出され、操作部は命令解読器21に入
力され、オペランド部はランダムアクセスメモリ23の
N番地を指定する。これによって、命令解読器21は端
子SDTからシフト指令信号SUSを出力する。同時に
、ランダムアクセスメモリ23のN番地の内容が第1の
レジスタ24に格納される。この時点では、入力回路1
2の入力端子1,oにシリアル信号STが加わっていな
いので、第6図aより変換回路26から出力される情報
の各ビットはすべて論理的に“0”となり、この情報は
ランダムアクセスメモリ23のN番地に格納される。続
いて、■式がプログラム記憶装置23から読み出される
と、このN番地に格納された情報は第1のレジスタ24
に格納される。この式はシフトアップ命令であり、入力
端子12oにシフトアップ信号SUPが加わっているこ
とから、論理演算処理装置22の出力情報COは論理的
に“1”となり、シフトアップ操作信号検出情報Moの
以前の状態が論理的に“0”であることから、シフトア
ップ操作信号検出回路25は論理的に“1”のシフトア
ップ操作信号SUSを出力する。したがって、第6図b
より、変換回路26の出力は、シフトアップ信号検出用
情報Moが論理的に“1”、その他は論理的に“0”と
なる。以後、シフトアップ信号SUPが入力端子1,o
に加わっている限り、N番地に格納された情報に変化は
ない。次に、t,時点で‘1}式がプログラム記憶装置
20から読み出されると、この式はシフト命令SDであ
り、入力端子1,。にシリアル入力SIが加わっていな
いことから、第6図aより、シフトアップ操作検出用情
報Moが論理的に“1”となり、その他は論理的に“0
”となる。続いて、‘2ー式が読み出されると、出力情
報COが論理的に“0”となることから、変換回路26
の出力情報はすべて論理的に“0”となる。以後、シフ
ト命令SD、シフトアップ命令SUが実行されても、シ
リアル信号SI、シフトアップ信号SUPに変化がない
限り、ランダムアクセスメモリ23のN番地の情報内容
に変化はない。次に、t2時点で‘1}式が読み出され
ると、この時点では、シリアル信号SIが入力端子1,
oに加わり、論理演算処理装置22の出力情報COは論
理的に“1”となる。変換回路26の出力情報は、第6
図aよりシリアル入力情報Moが論理的に“1”、その
他はすべて論理的に“0”となる。続いて、■式が読み
出されると、入力端子12oにシフトアップ入力SUS
が加わっていることから、論理演算処理装置22の出力
情報が論理的に“1”となる。シフトアップ操作信号検
出情報Moの以前の状態が論理的に“0”であることか
ら、シフトアップ操作信号出力判定回路25はシフトア
ップ操作信号SHSを出力する。したがって、第6図b
より、シフト情報Do,D,.D2,…,Dn‐,のビ
ット○,は論理的に“1”となり、シフトアップ操作信
号検出用情報Moとシリアル入力情報M,とは論理的に
“1”となる。以下、第10図に示すように、時間の経
過に従がいシリアル入力SIはシフトアップ信号SHS
が加わるし,t6,t8時点で順次シフトされる。そし
て、上述の例でランダムアクセスメモリ23のN番地に
割り当てたシフトレジスタの3ビット目を出力したい場
合には、プログラム記憶装置20に予め出力命令を格納
し、この命令によりN番地の出力情報を指定して、この
内容をたとえば図示のように論理演算処理装置22を通
して予め指定した出力回路12の所定番地に送る。そし
て、この信号を出力端子から、たとえば第1図の例の降
し口開閉装置に印加して開閉制御するようにする。以上
、実施例は説明の便宜上、ランダムアクセスメモリ23
の1つの番地Nに対して説明したが、ランダムアクセス
メモリ22の複数の番地をそれぞれ各レジスタとして割
り付け、各番地に対してのシリァル入力を構成する外部
機器、シフトアップ入力を構成する外部機器をそれぞれ
決定しておけば、このシフトレジスタ装置は複数のレジ
スタ装置として作用する。
The logical operation unit 22 sequentially takes in logical information from the input/output circuits 12 and 13 specified by the operand part of the instruction code, sequentially executes the logical operations specified by the operation part, and outputs the logical results to the specified output circuit. Send to 13th. Due to the characteristics of the sequence controller, the time required for the address designation means to designate the last address from the first address of the program storage device 20, that is, the cycle time, is determined by the serial input SI.
Or it is much earlier than the period or time of the shift up input SUP. In this way, the address detection means repeatedly specifies the address of the program storage device 20 at high speed. now,
Assume that the address specifying means specifies the address of the program device 20 storing the above-mentioned m-formula. Then,
The instruction code is read out, the operation section is input to the instruction decoder 21, and the operand section specifies address N of the random access memory 23. As a result, the command decoder 21 outputs the shift command signal SUS from the terminal SDT. At the same time, the contents of address N of the random access memory 23 are stored in the first register 24. At this point, input circuit 1
Since the serial signal ST is not applied to the input terminals 1 and o of the converter 2, all bits of the information output from the conversion circuit 26 are logically "0" as shown in FIG. is stored at address N. Subsequently, when the formula (2) is read from the program storage device 23, the information stored at address N is stored in the first register 24.
is stored in This formula is a shift-up command, and since the shift-up signal SUP is added to the input terminal 12o, the output information CO of the logic processing unit 22 becomes logically "1", and the shift-up operation signal detection information Mo. Since the previous state is logically "0", the shift-up operation signal detection circuit 25 outputs the shift-up operation signal SUS which is logically "1". Therefore, Fig. 6b
Therefore, the output of the conversion circuit 26 is that the shift-up signal detection information Mo is logically "1" and the others are logically "0". After that, the shift up signal SUP is input to the input terminal 1, o.
As long as the information stored at address N remains unchanged. Next, when the '1} expression is read from the program storage device 20 at time t, this expression is a shift instruction SD, and input terminal 1,. Since the serial input SI is not added to SI, from FIG.
”.Subsequently, when the '2-formula is read out, the output information CO becomes logically "0", so the conversion circuit 26
All output information becomes logically "0". Thereafter, even if the shift command SD and shift-up command SU are executed, the information content at address N of the random access memory 23 remains unchanged as long as there is no change in the serial signal SI and shift-up signal SUP. Next, when the '1} formula is read out at time t2, the serial signal SI is input to input terminal 1,
o, and the output information CO of the logical operation processing unit 22 becomes logically "1". The output information of the conversion circuit 26 is
From Figure a, serial input information Mo is logically "1" and all others are logically "0". Subsequently, when the formula ■ is read out, a shift up input SUS is applied to the input terminal 12o.
is added, the output information of the logical operation processing unit 22 becomes logically "1". Since the previous state of the shift-up operation signal detection information Mo is logically "0", the shift-up operation signal output determination circuit 25 outputs the shift-up operation signal SHS. Therefore, Fig. 6b
Therefore, the shift information Do, D, . Bit ◯ of D2, . Hereinafter, as shown in FIG. 10, as time passes, the serial input SI becomes the shift-up signal SHS.
is added and shifted sequentially at time points t6 and t8. In the above example, if you want to output the third bit of the shift register assigned to the N address of the random access memory 23, an output instruction is stored in the program storage device 20 in advance, and this instruction outputs the output information of the N address. This content is then sent to a predetermined location of the output circuit 12 designated in advance, for example, through the logic processing unit 22 as shown in the figure. Then, this signal is applied from the output terminal to, for example, the exit opening/closing device of the example shown in FIG. 1 to control opening/closing. In the above embodiment, for convenience of explanation, the random access memory 23
Although the explanation has been made for one address N in the random access memory 22, it is possible to allocate a plurality of addresses in the random access memory 22 as each register, and to connect an external device that configures serial input and a shift-up input to each address. If each is determined, this shift register device acts as a plurality of register devices.

また、実施例はランダムアクセスメモリ22の各番地に
出力情報M2を格納する領域を設置してあるが、出力に
際し該当番地と該当ビットを指定するようにすれば、こ
の領域は省略してもよい。さらに、実施例の説明は、‘
1)式、‘2}式のようにその左辺は入力回路12の特
定の端子に接続した入力機器の論理状態を入力するよう
にした場合について説明したが、これは複数の入力機器
の論理状態を予め定めた論理式で論理演算し、その結果
でシリアル入力およびシフトアップ入力を決定するよう
にしてもよい。すなわち‘1}式、■式の左辺は論理代
数式であってもよく、それは従来技術で充分実現可能で
ある。さらにまた、ランダムアクセスメモリ23とプロ
グラム記憶装置2川ま別々に設けてあるが、プログラム
記憶装置20の一部をランダムアクセスメモリ23とし
て使用してもよい。ち父上の説明から明らかなように、
本発明によればランダムアクセスメモリの各番地のそれ
ぞれをシフトレジスタとして使用できるため、ブログラ
ム記憶装置内にランダムアクセスメモリの番地を指定し
、この番地に割り付けたシフトレジスタを操作する命令
コードを格納するという簡単な操作でシフトレジスタを
増設でき、増設に対し配線、設置等の工数が不要となる
効果を有する。
Furthermore, in the embodiment, an area for storing the output information M2 is provided at each address of the random access memory 22, but this area may be omitted if the corresponding address and corresponding bit are specified when outputting. . Furthermore, the description of the example is '
We have explained the case where the left side of equation 1) and equation '2' inputs the logic state of the input device connected to a specific terminal of the input circuit 12, but in this case, the logic state of multiple input devices is input. may be logically operated using a predetermined logical formula, and the serial input and shift-up input may be determined based on the results. That is, the left-hand sides of the expressions '1} and (2) may be logical algebraic expressions, which can be fully realized with the prior art. Furthermore, although the random access memory 23 and the two program storage devices are provided separately, a part of the program storage device 20 may be used as the random access memory 23. As is clear from Father's explanation,
According to the present invention, each address of the random access memory can be used as a shift register, so the address of the random access memory is specified in the program storage device, and the instruction code for operating the shift register allocated to this address is stored. Shift registers can be added with a simple operation, and the effect is that there is no need for man-hours for wiring, installation, etc. for addition.

また、プログラム記憶装置から入出力回路を介すること
なく、直接制御できるためシーケンスコントローラの入
出力回路の使用を必要最小限にすることができ、高価な
入出力回路を有効利用できる。さらに、本発明装置はシ
フト命令、シフトアップ命令という簡単な命令で作動で
きるため、プログラムが簡略化でき、プログラム記憶装
置の少ないワード数で制御操作を可能にできることから
、プログラム記憶装置を有効活用でき、より多くの制御
プログラムを格納でき、より幅の広い制御が可能となる
効果を有する。
Furthermore, since direct control can be performed from the program storage device without going through an input/output circuit, the use of the input/output circuit of the sequence controller can be minimized, and expensive input/output circuits can be used effectively. Furthermore, since the device of the present invention can be operated with simple commands such as a shift command and a shift-up command, the program can be simplified and control operations can be performed with a small number of words in the program storage device, so the program storage device can be used effectively. This has the effect of allowing more control programs to be stored and a wider range of control.

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

第1図は物品の仕分け装置にシフトレジスタを使用した
列を示す概略図、第2図は第1図に示したシフトレジス
タの記憶内容の変化する過程を示した状態変化図、第3
図はシーケンスコントローラにシフトレジスタを外部設
置した場合の一例を示す概略図、第4図は本発明の一実
施例を示すブロック結線図、第5図はランダムアクセス
メモリのワードの構成を示した図、第6図は変換回路2
6の出力情報がこれに入力される情報、信号の組み合せ
によってどのように変換されるかを示した図、第7図お
よび第8図はシフタ30の構成例を示した図、第9図は
本発明実施例の動作を説明するため、シリアル入力SI
とシフトアップ入力SUPとシフト命令、シフトアップ
命令の実行周期との関係を示したタイムチャート、第1
0図は第9図の時点to,t,,;t2,・・・,t8
での命令実行完了後、変換回路26の出力情報の状態変
化を示した図である。 12・…・・入力回路、13・…・・出力回路、20…
・・・プログラム記憶装置、21・・・・・・命令解読
器、22・・・・・・第2のレジスタを兼用した論理演
算処理装置、23……ランダムアクセスメモリ、24…
…第1のレジスタ、25・・・・・・シフトアップ操作
信号出力判定器、26…・・・変換回路、M・…・・シ
フトアップ操作信号検出情報、M.・・・・・・シリア
ル入力情報、Do,D,,D2,・・・,Dn‐.・・
・・・・シフト情報。 瀞/図瀞2図 発j図 策7図 第6図 第4図 弟づ図 第5図 弟チ図 弟ノク図
Fig. 1 is a schematic diagram showing a column using shift registers in an article sorting device, Fig. 2 is a state change diagram showing the process of changing the memory contents of the shift register shown in Fig. 1, and Fig. 3
The figure is a schematic diagram showing an example of a case where a shift register is installed externally in a sequence controller, Figure 4 is a block wiring diagram showing an embodiment of the present invention, and Figure 5 is a diagram showing the word configuration of a random access memory. , Figure 6 shows the conversion circuit 2
6 is a diagram showing how the output information is converted by input information and signal combinations, FIGS. 7 and 8 are diagrams showing an example of the configuration of the shifter 30, and FIG. In order to explain the operation of the embodiment of the present invention, the serial input SI
A time chart showing the relationship between the shift-up input SUP, the shift command, and the execution cycle of the shift-up command, 1st
Figure 0 is the time point to, t,,; t2,..., t8 in Figure 9.
3 is a diagram showing a state change of the output information of the conversion circuit 26 after completion of instruction execution in FIG. 12...Input circuit, 13...Output circuit, 20...
. . . Program storage device, 21 . . . Instruction decoder, 22 .
...first register, 25...shift-up operation signal output determiner, 26...conversion circuit, M...shift-up operation signal detection information, M. ......Serial input information, Do, D,, D2,..., Dn-.・・・
...Shift information. Doro/Zu Doro 2 drawings j plans 7 drawings 6 drawings 4 younger brother drawings 5 younger brother chi drawing younger brother noku drawings

Claims (1)

【特許請求の範囲】[Claims] 1 プログラム記憶装置の複数の番地に格納した命令コ
ードを順次読み出し、論理演算処理装置に前記命令コー
ドのオペランド部で指定した入出力回路の論理状態を順
次入力し、命令コードの操作部で指定した論理演算を順
次実行させ、論理演算結果を該当する出力回路に格納し
、この出力回路の内容で対応する制御対象を制御するよ
うにしたシーケンスコントローラにおいて、各番地にシ
フト情報とシフトアツプ操作信号検出情報とシリアル入
力情報とを格納する領域を備え操作部にシフト命令ある
いはシフトアツプ命令を有する命令コードのオペランド
部で指定された番地の内容を出力するランダムアクセス
メモリと、このランダムアクセスメモリから出力された
内容を一時記憶して出力する第1のレジスタと、命令コ
ードの操作部を入力し、これがシフト命令であればシフ
ト指令信号を出力しシフトアツプ命令であればシフトア
ツプ指命信号を出力する命令解読器と、シフト命令実行
時にシリアル信号入力手段を構成する外部機器の論理状
態を一時記憶して出力しシフトアツプ命令実行時にシフ
トアツプ信号入力手段を構成する外部機器の論理状態を
一時記憶して出力する第2のレジスタと、前記第1のレ
ジスタの出力のうちシフトアツプ操作信号検出情報と前
記第2のレジスタの出力情報とを入力し前記解読器がシ
フトアツプ指命信号を出力することによつて、これら両
入力を突き合せ、これら両入力の間に論理状態の変化が
あり、しかも前記第2のレジスタの出力がシフトアツプ
信号を出力した論理状態にあるときのみシフトアツプ操
作信号を出力するシフトアツプ操作信号出力判定器と、
前記シフト指令信号と前記シフトアツプ指令信号と前記
シフトアツプ操作信号と前記第2のレジスタの出力情報
とシフト命令実行の際命令コードのオペランド部で指定
された番地内のシフト情報の任意のビツトを指定するビ
ツト指定情報とを入力し、これらの入力によつて前記第
1のレジスタの記憶内容を交換し前記ランダムアクセス
メモリの所定番地に格納し得るよう出力する交換回路と
を具備し、前記変換回路はシフト指令信号を受けること
によつて、前記第2のレジスタの出力をシリアル入力情
報とし、シフト情報とシフトアツプ操作信号検出情報と
はそのままにして出力し、シフトアツプ指命信号を受け
しかもシフトアツプ操作信号を受けることによつて、シ
フト情報はシリアル入力情報でシフトした情報をシフト
情報とし、前記第2のレジスタの出力をシフトアツプ操
作信号検出用情報とし、シリアル入力情報はそのままに
して出力し、シフトアツプ指令信号を受けシフトアツプ
操作信号を受けないときには、前記第2のレジスタの出
力情報をシフトアツプ操作信号検出情報とし、シリアル
情報とシフト情報とはそのままにして出力するようにし
て成るシーケンスコントローラのシフトレジスタ装置。
1 Read instruction codes stored in multiple addresses in a program storage device sequentially, input logical states of input/output circuits specified by the operand part of the instruction code into the logic processing unit sequentially, In a sequence controller that executes logical operations sequentially, stores the logical operation results in the corresponding output circuit, and controls the corresponding control target using the contents of this output circuit, shift information and shift-up operation signal detection information are stored at each address. a random access memory that has an area for storing serial input information and a shift instruction or a shift up instruction and outputs the contents of the address specified by the operand part of the instruction code having a shift instruction or shift up instruction in the operation section; and the contents output from this random access memory. a first register that temporarily stores and outputs the instruction code, and an instruction decoder that inputs the operation part of the instruction code and outputs a shift command signal if the instruction is a shift instruction, or outputs a shift up instruction signal if the instruction is a shift up instruction. a second device which temporarily stores and outputs the logic state of the external device constituting the serial signal input means when executing the shift command, and temporarily stores and outputs the logic state of the external device constituting the shift up signal input means when the shift up command is executed; A register, shift-up operation signal detection information among the outputs of the first register, and output information of the second register are input, and the decoder outputs a shift-up instruction signal, thereby receiving both inputs. a shift-up operation signal output determiner that outputs a shift-up operation signal only when there is a change in logic state between these two inputs and the output of the second register is in the logic state that outputs the shift-up signal;
specifying the shift command signal, the shift up command signal, the shift up operation signal, the output information of the second register, and any bit of shift information within the address specified by the operand part of the instruction code when executing the shift command; and an exchange circuit for inputting bit designation information, exchanging the stored contents of the first register according to these inputs, and outputting the exchange circuit so that the contents can be stored in a predetermined location of the random access memory. By receiving the shift command signal, the output of the second register is made into serial input information, and the shift information and shift-up operation signal detection information are output as they are. By receiving the serial input information, the shift information is the information shifted by the serial input information, the output of the second register is used as information for detecting the shift-up operation signal, and the serial input information is output as is, and the shift-up command signal is output. When the shift-up operation signal is not received, the output information of the second register is used as the shift-up operation signal detection information, and the serial information and shift information are output as they are.
JP14274277A 1977-11-30 1977-11-30 Sequence controller shift register device Expired JPS603206B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14274277A JPS603206B2 (en) 1977-11-30 1977-11-30 Sequence controller shift register device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14274277A JPS603206B2 (en) 1977-11-30 1977-11-30 Sequence controller shift register device

Publications (2)

Publication Number Publication Date
JPS5476787A JPS5476787A (en) 1979-06-19
JPS603206B2 true JPS603206B2 (en) 1985-01-26

Family

ID=15322514

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14274277A Expired JPS603206B2 (en) 1977-11-30 1977-11-30 Sequence controller shift register device

Country Status (1)

Country Link
JP (1) JPS603206B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5816964A (en) * 1981-07-23 1983-01-31 Mazda Motor Corp Management device of assembly work in automobile body
JPS59116804A (en) * 1982-12-24 1984-07-05 Hitachi Ltd shift register

Also Published As

Publication number Publication date
JPS5476787A (en) 1979-06-19

Similar Documents

Publication Publication Date Title
US5890192A (en) Concurrent write of multiple chunks of data into multiple subarrays of flash EEPROM
US4564913A (en) Flexible transfer machine
DK169492B1 (en) Data processing apparatus with selective advance retrieval of instructions and methods of operation of such data processing apparatus
US3470542A (en) Modular system design
EP0208870A1 (en) Vector data processor
US4099230A (en) High level control processor
US3348211A (en) Return address system for a data processor
GB1571218A (en) Digital systems
US4172289A (en) Programmable controller with programmable I/O scan rate
US4040030A (en) Computer instruction control apparatus and method
EP0269911A2 (en) A microsequencer circuit
US4075707A (en) Programmed device controller
EP0086992A2 (en) Microword generation mechanism utilizing separate programmable logic arrays
US3881172A (en) Process control computer
US4162519A (en) Data processor with address allocation to operations
US7099226B2 (en) Functional register decoding system for multiple plane operation
EP0253956A2 (en) An addressing technique for providing simultaneous read modify and write operations with serpentine configured rams
US5337045A (en) Pattern generator
JPS603206B2 (en) Sequence controller shift register device
KR900005547B1 (en) Sequence controller
US5978897A (en) Sequence operation processor employing multi-port RAMs for simultaneously reading and writing
US4807178A (en) Programmable sequence controller having indirect and direct input/output apparatus
US5564057A (en) Microprocessor architecture which facilitates input/output utilizing pairs of registers which the same address
KR19980042835A (en) Sequence control circuit
US4494195A (en) Microinstruction controlled data processor