JPH0638209B2 - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPH0638209B2
JPH0638209B2 JP57181956A JP18195682A JPH0638209B2 JP H0638209 B2 JPH0638209 B2 JP H0638209B2 JP 57181956 A JP57181956 A JP 57181956A JP 18195682 A JP18195682 A JP 18195682A JP H0638209 B2 JPH0638209 B2 JP H0638209B2
Authority
JP
Japan
Prior art keywords
input information
input
stored
program counter
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 - Lifetime
Application number
JP57181956A
Other languages
Japanese (ja)
Other versions
JPS5969811A (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.)
Koyo Electronics Industries Co Ltd
Original Assignee
Koyo Electronics Industries Co 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 Koyo Electronics Industries Co Ltd filed Critical Koyo Electronics Industries Co Ltd
Priority to JP57181956A priority Critical patent/JPH0638209B2/en
Publication of JPS5969811A publication Critical patent/JPS5969811A/en
Publication of JPH0638209B2 publication Critical patent/JPH0638209B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/054Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/11Plc I-O input output
    • G05B2219/1169Activating output if input changes, transition input and output not yet on
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/13Plc programming
    • G05B2219/13001Interrupt handling
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/15Plc structure of the system
    • G05B2219/15105Hardwired logic to accelerate, speed up execution of instructions

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)

Description

【発明の詳細な説明】 本発明はプログラマブルコントローラに関し、更に詳述
すれば入力情報に対する出力情報の応答速度を高めるこ
とができるプログラマブルコントローラを提案するもの
である。
The present invention relates to a programmable controller, and more specifically, proposes a programmable controller capable of increasing the response speed of output information with respect to input information.

第1図は公知の一般的なプログラマブルコントローラ
(以下コントローラという)の構成を略示するブロツク
図であつてスイツチ,リレー接点等の外部の入力装置8
の状態を取込んで記憶する入力情報部6、入力情報部6
が記憶した情報を読込み、プログラムメモリ2に予め格
納されている制御命令に従つて演算を実行する演算部
1、上記プログラムメモリ2及びそのアドレスカウンタ
たるプログラムカウンタ3、演算部1の演算結果を一時
的に格納しておく中間情報記憶部4、演算部1の演算結
果出力の内容を所要電圧レベルに変換してリレーコイ
ル,アクチユエータ等の外部の出力装置7へ出力する出
力情報部5等からなつている。
FIG. 1 is a block diagram schematically showing the configuration of a known general programmable controller (hereinafter referred to as controller), which is an external input device 8 such as a switch or a relay contact.
Input section 6 for capturing and storing the state of
The information stored in the program memory 2 is read and the calculation unit 1 for executing the calculation according to the control command stored in advance in the program memory 2, the program memory 2 and the program counter 3 as the address counter thereof, and the calculation result of the calculation unit 1 are temporarily stored. The intermediate information storage unit 4 and the output information unit 5 for converting the content of the calculation result output of the calculation unit 1 into a required voltage level and outputting it to an external output device 7 such as a relay coil or an actuator. ing.

而して入力情報部6は、演算実行中に入力情報の内容が
変更されると不都合を生じるのでプログラムメモリ2内
の制御命令の順次的実行に先立つて前入力装置8の状態
を読込んで、この状態の情報をラツチする働きをなし、
これによつて上記不都合の解消を図るものである。
Thus, the input information section 6 causes inconvenience if the content of the input information is changed during execution of the operation. Therefore, the state of the front input device 8 is read before the sequential execution of the control commands in the program memory 2. It works to latch information in this state,
This is intended to eliminate the inconvenience.

第2図は入力情報の読込みと、これに続く制御命令の実
行とを時間軸を上下にとつて表している。入力情報の読
込開始時からn番地の最終の制御命令の実行時までを1
スキヤン時間と称しており、この間の動作が反復実行さ
れる。上記1スキヤン時間は一般には数十msであつて、
これが入力情報とそれを反映させるべき出力情報との間
の応答遅れとして現れることになる。
FIG. 2 shows the reading of the input information and the execution of the control command following the input information by setting the time axis up and down. 1 from the start of reading the input information to the execution of the final control instruction at address n
This is called scan time, and the operation during this time is repeatedly executed. The above-mentioned 1 scan time is generally several tens of ms,
This appears as a response delay between the input information and the output information that should reflect it.

第3図は制御対象の回路をラダー図であらわしたもので
あり、回路Qは常開接点Aの閉路にて常閉接点Bを介し
てリレーYのコイルが励磁され、このリレーYの常開接
点の閉路によつて自己保持され、接点Bの開路によつて
自己保持が解除されるという内容のものであり、その前
後の回路Pの内容がプログラムメモリ2の0〜m−1番地
に、また該回路Qの内容がm〜m+3番地に、更に後段の
回路Rの内容がm+4〜n番地に格納されているものとす
る。さて上記リレーYが自己保持されている状態におい
て接点Bの開路から自己保持解除までの応答時間につい
て説明する。説明の便宜上1スキヤン時間を50 ms 、入
力情報読込に1ms 、制御命令実行時間を49 ms とし、回
路Qについての制御命令が実行されるまでの時間が40 m
s であるとする。
FIG. 3 is a ladder diagram showing the circuit to be controlled. In the circuit Q, the coil of the relay Y is excited through the normally closed contact B in the closed circuit of the normally open contact A, and the relay Y is normally opened. The contents are such that the self-holding is performed by closing the contact and the self-holding is released by opening the contact B, and the contents of the circuit P before and after that are at addresses 0 to m−1 of the program memory 2, It is also assumed that the contents of the circuit Q are stored in the addresses m to m + 3 and the contents of the circuit R in the subsequent stage are stored in the addresses m + 4 to n. Now, the response time from the opening of the contact B to the release of the self-holding when the relay Y is self-holding will be described. For convenience of explanation, assume that 1 scan time is 50 ms, input information is 1 ms, control command execution time is 49 ms, and the time until the control command for circuit Q is executed is 40 m.
Let s.

入力情報の読込はスキヤン時間の最初の1ms で行われる
からそれ以後の状態変化は次のスキヤン時間まで演算部
1には与えられない。例えば入力情報の読込開始後20 m
s の時点で接点Bが開路したものとするとこの状態は30
ms 後の次の入力情報読込時に入力され、それから40 m
s 後に自己保持解除が実行されることになり、合計70 m
s の応答遅れを生じることになる。装置の大部分の動作
は1スキヤン時間相応の数十msの応答速度であつても支
障はないが特殊な装置については、より高速の応答が望
まれるという場合がある。また入力装置の動作時間がス
キヤン時間よりも短い場合、例えば前記接点Bが10 ms
程度開路した場合にあつてはその状態を読込み得ず、自
己保持を解除できない等の問題点がある。
Since the input information is read in the first 1 ms of the scan time, the state change after that is not given to the arithmetic unit 1 until the next scan time. For example, 20 m after starting reading the input information
If contact B is opened at the time of s, this state is 30
Input at the time of reading the next input information after ms, then 40 m
Self hold release will be performed after s, total 70 m
This will cause a delay in the response of s. Although most of the operations of the device have a response speed of several tens of ms corresponding to one scan time, there is no problem, but for a special device, a higher speed response may be desired. When the operation time of the input device is shorter than the scan time, for example, the contact B is 10 ms.
When the circuit is opened to some extent, there is a problem that the state cannot be read and self-holding cannot be released.

応答速度向上の問題点を解決するものとして特公昭54-1
58588 号公報に係るものが存在するが、上記開路を検出
し得たにも拘らず、この開路時間が短い場合にはその検
出結果に基づく制御を行えないといつた不都合を有して
いる。
As a solution to the problem of improving response speed, Japanese Examined Patent Publication 54-1
Although there is one disclosed in Japanese Patent No. 58588, when the open circuit is detected, the control based on the detection result cannot be performed when the open circuit is short.

本発明は斯かる事情に鑑みてなされたものであつて、一
部の装置についてはその入力情報が変化しているかいな
いかを制御命令実行中の所定タイミングで監視し、変化
している場合はその入力情報に係る制御命令を直ちに実
行できるようにして応答速度の高速化を図つたコントロ
ーラを提供することを目的とする。
The present invention has been made in view of such circumstances, and for some devices, whether or not the input information is changed is monitored at a predetermined timing during execution of a control command, and if it is changed, It is an object of the present invention to provide a controller capable of immediately executing a control command related to the input information to speed up the response speed.

以下本発明を図面に基き具体的に説明する。The present invention will be specifically described below with reference to the drawings.

第4図は本発明に係るコントローラの構成を略示するブ
ロツク図である。マイクロプロセツサよりなり、データ
の転送制御入力情報の解読、制御命令等の実行をする演
算部1、制御命令を格納しておくプログラムメモリ2、
そのアドレスカウンタたるプログラムカウンタ3、出力
情報を一時的に格納しておく中間情報記憶部4、外部の
出力装置7に対するインターフエースたる出力情報部
5、外部の入力装置8の状態を取込んで記憶し、これを
演算部1に読込ませる入力情報部のハードウエア構成は
第1図に示した従来のものと全く同様である。本発明装
置ではこれらの外に入力回路9及びレジスタ10を備え
ている。入力回路9は外部のリレ接点、スイツチ等の外
部装置の動作状態を演算部1への読込に適した電気信号
に変換するための回路であつて、入力情報部6と同数の
又はそれ以下の入力装置8接続端子を備えており、応答
性を高める必要がある入力装置、例えば前記接点Bはこ
の入力回路9にも接続される。なお入力回路9は入力情
報部6の一部にて兼用させることが可能である。即ち入
力装置8からの入力情報を演算部1への読込に適した電
気信号に変換するまでの部分を利用し、この部分にて分
岐出力を設ければよい。
FIG. 4 is a block diagram schematically showing the configuration of the controller according to the present invention. An arithmetic unit 1 composed of a microprocessor for decoding data transfer control input information and executing control instructions, a program memory 2 for storing control instructions,
The state of the program counter 3 as the address counter, the intermediate information storage unit 4 for temporarily storing the output information, the output information unit 5 as the interface for the external output device 7, and the external input device 8 are stored and stored. However, the hardware configuration of the input information section for causing the arithmetic section 1 to read this is exactly the same as the conventional one shown in FIG. In addition to these components, the device of the present invention is provided with an input circuit 9 and a register 10. The input circuit 9 is a circuit for converting an operating state of an external device such as an external relay contact or a switch into an electric signal suitable for reading into the arithmetic unit 1, and has a number equal to or less than that of the input information unit 6. The input device 8 is provided with a connection terminal, and an input device that needs to improve responsiveness, for example, the contact B is also connected to the input circuit 9. The input circuit 9 can be shared by a part of the input information section 6. That is, it is sufficient to use a part up to the conversion of the input information from the input device 8 into an electric signal suitable for reading into the calculation part 1, and to provide a branch output at this part.

演算部1は入力情報読込の処理を実行している間は入力
情報部6の記憶内容を読込むが、後述する制御命令IN
の実行時には入力回路9の指定出力を読込むようにして
ある。
The arithmetic unit 1 reads the stored contents of the input information unit 6 while the input information reading process is being executed.
When executing, the designated output of the input circuit 9 is read.

レジスタ10はプログラムカウンタ3のデータ内容退避
用のものであつて、演算部1が制御命令INを実行する
際に、プログラムカウンタ3の内容をこのレジスタ10
に退避させると共に、プログラムカウンタ3のデータ内
容をプログラムメモリ2の所定範囲の先頭番地に設定す
る。また演算部1が後述する制御命令RST 0を実行する
際にはレジスタ10のデータ内容をプログラムカウンタ
3へ復帰設定する。このレジスタ10は演算部1内のも
のであつてもよい。
The register 10 is for saving the data contents of the program counter 3, and when the arithmetic unit 1 executes the control instruction IN, the contents of the program counter 3 are stored in the register 10.
And the data content of the program counter 3 is set to the head address of a predetermined range of the program memory 2. Further, when the arithmetic unit 1 executes a control command RST 0 described later, the data content of the register 10 is set back to the program counter 3. The register 10 may be in the arithmetic unit 1.

第5図はプログラムメモリ2に格納しておく制御命令を
第2図同様に示したものである。応答速度を高める必要
がある回路が第3図の回路Qであるとする。この回路Q
に係る制御命令はどの部分に格納してもよい(第2図の
ようにm番地からでもよい)がいま説明の便宜上0〜3
番地に格納するものとする。そしてこの制御命令のあ
と、つまり4番地にリセツト命令RST 0を書込んでお
く。このように0〜4番地に回路Qについての制御命令
を書込んでおいた場合は上記した先頭番地は0番地とな
る。
FIG. 5 shows the control instructions stored in the program memory 2 as in FIG. It is assumed that the circuit that needs to increase the response speed is the circuit Q in FIG. This circuit Q
The control command relating to (i) may be stored in any part (it may be from the address m as shown in FIG. 2).
It shall be stored at the address. Then, after this control instruction, that is, the reset instruction RST 0 is written at the address 4. In this way, when the control command for the circuit Q is written in the addresses 0 to 4, the above-mentioned start address becomes the address 0.

プログラムメモリ2の他の番地には回路P,Rに係る制
御命令が格納されるが接点Bの開路動作からリレコイル
Yの消磁までの応答速度の必要性に応じて、接点Bの状
態を読込むことを指令する強制移行命令 IN B(但しBの
部分は実際には接点Bに割付けた番号となる) を所要個
数、所要頻度で書込んでおく。
The control command relating to the circuits P and R is stored in the other address of the program memory 2, but the state of the contact B is read according to the necessity of the response speed from the opening operation of the contact B to the demagnetization of the relay coil Y. Write the compulsory shift command IN B (however, B is actually the number assigned to the contact B) at the required number and frequency.

次に強制移行命令INBが読込まれた場合の演算部1の
処理について第6図のフローチヤートに基き説明する。
まず該当入力装置、つまり接点Bの状態を入力回路9経
由で読込む。新たに入力回路9を介して読込んだ接点B
の状態は上記した演算部1内レジスタに記憶させる。こ
れはRAM(ランダムアクセスメモリ) に記憶させてもよ
い。そしてその内容を前回の制御命令実行時の内容、つ
まり前回入力回路9から読込んで記憶させておいた内容
と比較し、これが一致する場合は接点Bに変化なしとし
てプログラムカウンタ3の内容を+1して次の制御命令
を読込む。これに対して不一致の場合は接点Bに変化あ
りとしてプログラムカウンタ3の内容(第5図の場合は
例えばm,n,p等)をレジスタ10に退避格納し、ま
たプログラムカウンタ3には回路Qに係る制御命令を格
納してある範囲の先頭番地0を設定する。従つて0,1,
2,3番地の制御命令が強制的に実行されることになり接
点Bが開路したときには直ちにリレーYのコイルが消磁
されることになる。この命令の実行に際しては既にレジ
スタ等に記憶させてある接点Bの状態の情報を用いる。
第5図の例はm番地では変化がなくm〜n番地間にて変
化があり、これがn番地で検出されて0番地へ戻つたこ
とを実線矢符で示している。
Next, the processing of the arithmetic unit 1 when the forced transfer instruction INB is read will be explained based on the flow chart of FIG.
First, the state of the corresponding input device, that is, the contact B is read via the input circuit 9. Contact B newly read via input circuit 9
The state of is stored in the register in the arithmetic unit 1 described above. This may be stored in RAM (random access memory). Then, the content is compared with the content at the time of the previous execution of the control command, that is, the content previously read from the input circuit 9 and stored, and if they match, the content of the program counter 3 is incremented by 1 with the contact B being unchanged. Read the next control command. On the other hand, if they do not match, it is determined that the contact B has changed and the contents of the program counter 3 (for example, m, n, p in the case of FIG. 5) are saved and stored in the register 10, and the program counter 3 has a circuit Q. The start address 0 of the range in which the control command relating to is stored is set. Therefore 0, 1,
The control command at addresses 2 and 3 is forcibly executed, and when the contact B opens, the coil of the relay Y is immediately demagnetized. When executing this instruction, the information on the state of the contact B already stored in the register or the like is used.
In the example of FIG. 5, there is no change at the address m, but there is a change between the addresses m and n, and this is detected at the address n and returned to the address 0 by a solid arrow.

次に第7図のフローチヤートに基きリセツト命令RST 0
が読込まれた場合の処理について説明する。上述のよう
にして0〜3番地の命令を実行すると次には4番地の命
令、つまりリセツト命令RST 0が読込まれることにな
る。そうすると演算部1はレジスタ10のデータ内容を
プログラムカウンタ3に復帰設定し、次いでプログラム
カウンタ3の内容を+1する。これにより例えばn+1
番地の命令、つまり強制移行命令INBに続く命令が実
行される状態に戻ることになる。第5図の例では4番地
に続いてn+1番地の命令が実行されることを破線矢符
で示している。
Next, a reset command RST 0 based on the flowchart of FIG.
The process when is read will be described. When the instructions of addresses 0 to 3 are executed as described above, the instruction of address 4, that is, the reset instruction RST 0 is read next. Then, the arithmetic unit 1 restores and sets the data content of the register 10 to the program counter 3, and then increments the content of the program counter 3 by one. As a result, for example, n + 1
The instruction at the address, that is, the instruction following the compulsory shift instruction INB, is returned to the execution state. In the example of FIG. 5, the dashed arrow indicates that the instruction at address n + 1 is executed following address 4.

このように入力情報部6からこれにラツチされた入力装
置8の状態を読込むだけではなく、1スキヤン時間にお
いて制御命令実行中に1回以上、所要の入力装置の状態
を入力回路9経由で時間遅れなく読込むこととし、この
読込データが先に読込んでいるデータと異る場合は直ち
にその変化に係る制御命令の実行へ強制移行されるの
で、その入力装置及びこれによつて制御される出力装置
間の応答は著しく高速化される。いま強制移行命令IN
Bを10 ms 間隔で書込んでおくこととし、また0〜3番
地の命令の実行に1ms を要するものとする場合は最悪の
条件下でも11 ms でリレーYの自己保持が解除されるこ
とになる。この時間間隔を短かくすればそれだけ応答性
が高められるのは勿論である。また強制移行命令INB
は複数の入力装置について書込むことが可能であること
は勿論である。また強制移行されて実行される命令にお
いてはこの移行の判定に用いたのと同一の入力装置の状
態をレジスタ,RAM から読出して用いるので、この命令
実行の間の入力装置の状態変化は考慮する必要がない。
従って、入力装置の状態を表す信号の時間幅は命令IN B
の間隔あれば足り、応答速度の高速化に有効である。
As described above, not only is the state of the input device 8 latched therein read from the input information section 6, but the required state of the input device is passed via the input circuit 9 once or more during the execution of the control command in one scan time. It is decided to read without delay, and if this read data is different from the previously read data, it is immediately forcibly transferred to the execution of the control command related to the change, so that it is controlled by the input device and this. The response between the output devices is significantly speeded up. Now compulsory shift command IN
If B is written at 10 ms intervals, and if it takes 1 ms to execute the instructions at addresses 0 to 3, the self-holding of relay Y will be released in 11 ms even under the worst conditions. Become. Needless to say, the shorter the time interval, the higher the responsiveness. In addition, the compulsory shift command INB
Of course, it is possible to write for multiple input devices. In the case of an instruction that is forcibly transferred and executed, the same input device status that was used to determine this transfer is read from the register or RAM and used, so changes in the input device status during execution of this instruction are taken into consideration. No need.
Therefore, the time width of the signal indicating the state of the input device is
The interval of is sufficient, and it is effective in increasing the response speed.

以上のように本発明に係るプログラマブルコントローラ
は、制御命令を記憶させるプログラムメモリと、該プロ
グラムメモリの読出アドレスを指定するプログラムカウ
ンタと、プログラムメモリから読出された制御命令に従
って演算を行う演算部と、外部装置からの入力情報を周
期的に更新記憶し、記憶情報を演算部に与えて記憶させ
る入力情報部とを具備するプラグラマブルコントローラ
において、外部装置からの入力情報を前記入力情報部を
介することなく演算部へ与えて記憶させ得る入力回路
と、前記プログラムカウンタのデータ内容を退避させる
レジスタとを備え、前記制御命令中にて指定された外部
装置からの入力情報を前記入力回路を介して演算部に与
えて記憶させ、この入力情報を前記外部装置から入力回
路を介して既に与えられている入力情報と比較する手段
と、この比較結果が不一致である場合にプログラムカウ
ンタのデータ内容をレジスタへ退避させる一方、プログ
ラムメモリの所定範囲の先頭アドレスをプログラムカウ
ンタに設定して前記所定範囲の制御命令の実行に強制移
行させる手段と、前記所定範囲の制御命令実行後にレジ
スタに退避させたデータ内容をプログラムカウンタに設
定する手段とを具備し、前記所定範囲の制御命令実行時
には前記入力回路を介して演算部に与えて記憶させてあ
る外部装置からの入力情報を用いるべくなしてあること
を特徴とするもので、安全装置等、特定の装置について
の応答速度を所望の速度にまで高速化できる。またこの
応答速度はプログラムの変更によつて自在に設定できる
ので便宜性も高い。また瞬時的な動作をする装置をも外
部装置として組込んでもその動作を検出し損じることが
なく、またその検出結果に追従して演算制御できる等、
本発明は優れた効果を奏する。
As described above, the programmable controller according to the present invention includes a program memory for storing a control instruction, a program counter for designating a read address of the program memory, an arithmetic unit for performing an arithmetic operation according to the control instruction read from the program memory, In a pluggable controller having an input information section for periodically updating and storing input information from an external apparatus and giving the stored information to a computing section to store the information, the input information from the external apparatus is passed through the input information section. An input circuit that can be given to an arithmetic unit to store the data, and a register that saves the data content of the program counter, and arithmetically operates input information from an external device specified in the control instruction through the input circuit. And store the input information in the external device via the input circuit. The means for comparing with the input information stored therein and the data contents of the program counter are saved in the register when the comparison result does not match, and the start address of the predetermined range of the program memory is set in the program counter to set the predetermined range. Means for forcibly shifting to the execution of the control instruction of (1), and means for setting the data contents saved in the register in the program counter after the execution of the control instruction of the predetermined range, the input circuit when executing the control instruction of the predetermined range. It is characterized in that it uses input information from an external device which is given to and stored in a calculation unit via a high-speed response speed for a specific device such as a safety device to a desired speed. Can be converted. Further, the response speed can be freely set by changing the program, which is highly convenient. In addition, even if a device that operates instantaneously is incorporated as an external device, it does not fail to detect the operation, and it is possible to perform arithmetic control by following the detection result.
The present invention has excellent effects.

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

第1図は一般的なコントローラの略示ブロツク図、第2
図は演算部の動作の説明図、第3図はラダー回路図、第
4図は本発明のコントローラの略示ブロツク図、第5図
はプログラムメモリの記憶内容と共に示す動作説明図、
第6図,第7図は命令の実行内容を示すフローチヤート
である。 1……演算部、2……プログラムメモリ、3……プログ
ラムカウンタ、6……入力情報部、9……入力回路、1
0……レジスタ
1 is a schematic block diagram of a general controller, 2
FIG. 3 is an explanatory diagram of the operation of the arithmetic unit, FIG. 3 is a ladder circuit diagram, FIG. 4 is a schematic block diagram of the controller of the present invention, and FIG.
FIG. 6 and FIG. 7 are flow charts showing the execution contents of the instruction. 1 ... Calculation unit, 2 ... Program memory, 3 ... Program counter, 6 ... Input information unit, 9 ... Input circuit, 1
0 ... Register

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭54−158588(JP,A) 特開 昭51−41189(JP,A) 特開 昭53−5385(JP,A) 特開 昭56−140407(JP,A) 特開 昭56−145402(JP,A) 特開 昭57−39408(JP,A) ─────────────────────────────────────────────────── ─── Continuation of the front page (56) Reference JP-A-54-158588 (JP, A) JP-A-51-41189 (JP, A) JP-A-53-5385 (JP, A) JP-A-56- 140407 (JP, A) JP 56-145402 (JP, A) JP 57-39408 (JP, A)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】制御命令を記憶させるプログラムメモリ
と、該プログラムメモリの読出アドレスを指定するプロ
グラムカウンタと、プログラムメモリから読出された制
御命令に従って演算を行う演算部と、外部装置からの入
力情報を周期的に更新記憶し、記憶情報を演算部に与え
て記憶させる入力情報部とを具備するプログラマブルコ
ントローラにおいて、外部装置からの入力情報を前記入
力情報部を介することなく演算部へ与えて記憶させ得る
入力回路と、前記プログラムカウンタのデータ内容を退
避させるレジスタとを備え、前記制御命令中にて指定さ
れた外部装置からの入力情報を前記入力回路を介して演
算部に与えて記憶させ、この入力情報を前記外部装置か
ら入力回路を介して既に与えられている入力情報と比較
する手段と、この比較結果が不一致である場合にプログ
ラムカウンタのデータ内容をレジスタへ退避させる一
方、プログラムメモリの所定範囲の先頭アドレスをプロ
グラムカウンタに設定して前記所定範囲の制御命令の実
行に強制移行させる手段と、前記所定範囲の制御命令実
行後にレジスタに退避させたデータ内容をプログラムカ
ウンタに設定する手段とを具備し、前記所定範囲の制御
命令実行時には前記入力回路を介して演算部に与えて記
憶させてある外部装置からの入力情報を用いるべくなし
てあることを特徴とするプログラマブルコントローラ。
1. A program memory for storing a control instruction, a program counter for designating a read address of the program memory, an arithmetic unit for performing an arithmetic operation according to the control instruction read from the program memory, and input information from an external device. In a programmable controller having an input information section for periodically updating and storing and giving stored information to an arithmetic section, the input information from an external device is given to the arithmetic section and stored without passing through the input information section. An input circuit for obtaining the data content of the program counter, and a register for saving the data content of the program counter, and input information from an external device designated in the control instruction is given to the arithmetic unit via the input circuit to be stored therein. Means for comparing the input information with the input information already provided from the external device via the input circuit, When the result does not match, the data content of the program counter is saved in the register, while the start address of a predetermined range of the program memory is set in the program counter and the control instruction in the predetermined range is forcibly transferred to the register. Means for setting the data content saved in the register to the program counter after executing the control instruction in the predetermined range, and when the control instruction in the predetermined range is executed, it is given to the arithmetic unit via the input circuit and stored therein. A programmable controller characterized in that input information from a device is used.
JP57181956A 1982-10-15 1982-10-15 Programmable controller Expired - Lifetime JPH0638209B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57181956A JPH0638209B2 (en) 1982-10-15 1982-10-15 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57181956A JPH0638209B2 (en) 1982-10-15 1982-10-15 Programmable controller

Publications (2)

Publication Number Publication Date
JPS5969811A JPS5969811A (en) 1984-04-20
JPH0638209B2 true JPH0638209B2 (en) 1994-05-18

Family

ID=16109807

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57181956A Expired - Lifetime JPH0638209B2 (en) 1982-10-15 1982-10-15 Programmable controller

Country Status (1)

Country Link
JP (1) JPH0638209B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62117001A (en) * 1985-11-16 1987-05-28 Hitachi Ltd Input and output processing method for programmable sequence controller
JPH07104686B2 (en) * 1986-08-14 1995-11-13 三菱電機株式会社 High speed processor

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6010643B2 (en) * 1978-06-05 1985-03-19 オムロン株式会社 sequence controller

Also Published As

Publication number Publication date
JPS5969811A (en) 1984-04-20

Similar Documents

Publication Publication Date Title
US4423508A (en) Logic tracing apparatus
JPH03204737A (en) Debug circuit of signal processing processor
JPS6120145A (en) Operation analyzer of microprocessor
JPH0638209B2 (en) Programmable controller
JPH05324452A (en) External memory interface circuit
JPS6045829B2 (en) fail memory
JPS6217847Y2 (en)
JPH0573296A (en) Microcomputer
JPH0447851B2 (en)
JP3331599B2 (en) Micro program controller
JPS616704A (en) Programmable controller
JPS595931B2 (en) Address stop method for arithmetic processing system
JPH05298140A (en) Self-diagnostic system
JPS62248043A (en) Memory switching circuit for fetching microcomputer instruction
JPH09319592A (en) Microcomputer
JPH05233026A (en) Microcomputer circuit
JPS5824808B2 (en) Initial startup processing method for microprogram controlled data processing equipment
JPH07105073A (en) Scratch pad memory controller
JPS63216141A (en) Microcomputer device
JPS5832408B2 (en) sequence controller
JPS5922145A (en) Interruption control system
JPH0527661A (en) Simulator capable of optical reproduction
JPS62296232A (en) High speed loop circuit
JPH04242413A (en) Microcomputer
JPH03204031A (en) System for suppressing execution of program