JPS638804A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPS638804A
JPS638804A JP15214486A JP15214486A JPS638804A JP S638804 A JPS638804 A JP S638804A JP 15214486 A JP15214486 A JP 15214486A JP 15214486 A JP15214486 A JP 15214486A JP S638804 A JPS638804 A JP S638804A
Authority
JP
Japan
Prior art keywords
status
gate
programmable controller
status memory
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP15214486A
Other languages
Japanese (ja)
Inventor
Katsuji Toyooka
豊岡 克二
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 DENSHI KOGYO KK
Koyo Electronics Industries Co Ltd
Original Assignee
KOYO DENSHI KOGYO KK
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 DENSHI KOGYO KK, Koyo Electronics Industries Co Ltd filed Critical KOYO DENSHI KOGYO KK
Priority to JP15214486A priority Critical patent/JPS638804A/en
Publication of JPS638804A publication Critical patent/JPS638804A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PURPOSE:To shorten the scan time by providing two status memories, which can be accessed with the same address, and a means which controls read/write permission and inhibition of both status memories independently of each other. CONSTITUTION:In the normal state, the same contents are written in both status memories 41 and 42 because gates G2 and G4 are opened, but contents of a first status memory 41 are read out because a gate G1 is opened and a gate G3 is closed. At the time of latching, a signal D is set to '0' to close the gate G4, and therefore, the status at this time is fixed in a second status memory 42. At the time of monitor, a signal C is set to '1' and the other signals are set to '0' to read and display fixed contents of the second status memory 42. Data is latched or read out by only gate control, and the control is efficiently performed without extending the scan time.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプログラマブル・コントローラの改良に関し、
更に詳述すればステータスメモリの内容のモニタを効率
的に行なえるようにしたプログラマブル・コントローラ
を提案するものである。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to an improvement of a programmable controller.
More specifically, the present invention proposes a programmable controller that can efficiently monitor the contents of a status memory.

〔従来技術〕[Prior art]

プログラマブル・コントローラには入力、出力の状態或
いは内部リレーのオン5オフ状態、など特定の機能を有
する構成要素の状態を記憶するためのRAM  (随時
読出し書込メモリ)が用意されており、ステータスメモ
リと称されている。一般にこのステータスメモリは1つ
の構成要素に対し1ビツトを割当てている。
The programmable controller is equipped with a RAM (random read/write memory) for storing the status of components with specific functions, such as the status of inputs, outputs, or the on/off status of internal relays. It is called. Generally, this status memory allocates one bit to one component.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

このステータスメモリは、プログラマブル・コントロー
ラを用いて構成したシステムのKm整を行う際にプログ
ラマブル・コントローラを動作させながらある瞬間、例
えばランチ命令の実行時、或いは周辺機器からのラッチ
指令があった時、記す、α内容をモニタして、動作不良
の原因を調べるのに用いられることがある。その実現方
法としてはステータスメモリをランチしようとする瞬間
に他のメモリに一括転送する方法が考えられるが、この
方法ではプログラマブル・コントローラの動作中に一括
転送を行う都合上、この実行スキャンではスキャンタイ
ムが大幅に長くなる。これはある瞬間のステータスメモ
リの内容を他のCPUにリンク転送せんとする場合も同
様である。
This status memory is stored at a certain moment while operating the programmable controller when performing Km adjustment of a system configured using a programmable controller, such as when a launch command is executed or when a latch command is received from a peripheral device. It is sometimes used to monitor the contents of α and investigate the cause of malfunctions. One possible way to achieve this is to transfer the status memory all at once to another memory at the moment the status memory is about to be launched. becomes significantly longer. This also applies to the case where the contents of the status memory at a certain moment are to be linked and transferred to another CPU.

本発明はこのような問題点を解決するためになされたも
のであり、スキャンタイムを長くすることなく、ステー
タスメモリに記憶させるべき状態をランチできるように
したプログラマブル・コントローラの提供を目的とする
The present invention has been made to solve these problems, and an object of the present invention is to provide a programmable controller that can launch the state to be stored in the status memory without increasing the scan time.

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

本発明に係るプログラマブル・コントローラは、特定の
機能に係る構成要素の状態を記憶するステータスメモリ
を具備するプログラマブル・コントローラにおいて、同
一アドレスにてアクセスできる2つのステータスメモリ
と、両ステータスメモリ夫々の続出し、書込みの許否を
各独立に制御する手段とを具備することを特徴とする。
A programmable controller according to the present invention is a programmable controller equipped with a status memory that stores the state of a component related to a specific function, and has two status memories that can be accessed at the same address, and a programmable controller that has two status memories that can be accessed at the same address, and that both status memories can be accessed one after another. , and means for independently controlling permission/denial of writing.

〔作用〕[Effect]

以上の構成により第1のステータスメモリは各状態を記
憶するように書込み、読出しを制御し、第2のステータ
スメモリは通常の命令実行時には第1のステータスメモ
リと同様に書込まれるが、ラッチ時、例えばランチ命令
の実行時、或いは周辺機器からのラッチ指令があった時
には書込みを禁止するように書込み、読出しが制御され
る。これによりラッチを要する場合には第2のステータ
スメモリの内容が固定されることになる。
With the above configuration, the first status memory controls writing and reading so as to store each state, and the second status memory is written in the same way as the first status memory during normal instruction execution, but when latched For example, writing and reading are controlled to prohibit writing when a launch command is executed or when a latch command is received from a peripheral device. This causes the contents of the second status memory to be fixed if latching is required.

〔実施例〕〔Example〕

以下本発明をその実施例を示す図面に基づき詳述する。 Hereinafter, the present invention will be explained in detail based on drawings showing embodiments thereof.

図面は本発明のプログラマブル・コントローラの要部を
示すブロック図であり、1はCPU(中央処理装置)、
2はこのプログラマブル・コントローラの基本的制御を
司るシステムプログラムを格納しである170M  (
読出し専用メモリ)、3は使用者が設定したシーケンス
プログラムを格納しておく RAMである。このプログ
ラマブル・コントローラは第1.第2のステータスメモ
リ4142を備え、また外部との信号の入出力を行うl
10(入/出力)ポート5を備え、これらはアドレスバ
ス6及びデータバス7にて所謂コモンハス方式の接続が
なされている外、CPt11が発する書込許可信号WE
及び読出許可信号REが夫々書込許可信号線8及び続出
許可信号線9を介してROM 2. IIAM31 ス
テータスメモリ41.42及びI10ボート5に与えら
れる。
The drawing is a block diagram showing the main parts of the programmable controller of the present invention, and 1 is a CPU (central processing unit);
2 stores the system program that controls the basic control of this programmable controller.
3 is a RAM that stores a sequence program set by the user. This programmable controller is the first. It is equipped with a second status memory 4142 and also performs input/output of signals with the outside.
10 (input/output) ports 5, which are connected by an address bus 6 and a data bus 7 in a so-called common hash system.
and read permission signal RE are sent to the ROM 2. Provided to IIAM31 status memory 41,42 and I10 port 5.

第1ステータスメモリ41には読出許可信号REがゲー
トG1を、書込許可信号WRがゲー)G2を夫々介して
、また第2ステータスメモリ42には読出許可信号RE
がゲー)G3を、書込許可信号WRがゲー)G4を夫々
介して与えられる。これらのゲートGl〜G4はCPt
11がI10ポート5を介して与える信号A。
The read permission signal RE is sent to the first status memory 41 via the gate G1 and the write permission signal WR is sent to the gate G2, and the read permission signal RE is sent to the second status memory 42 via the gate G2.
The write permission signal WR is applied through the gate) G3 and the write permission signal WR is supplied through the gate) G4. These gates Gl to G4 are CPt
11 provides signal A through I10 port 5.

B、C,Dにて開閉が制御され、これらの信号が1であ
る場合に開門し、0である場合に閉門する。
Opening/closing is controlled by signals B, C, and D, and when these signals are 1, the gate is opened, and when these signals are 0, the gate is closed.

次に本発明のプログラマブル・コントローラにおける第
1.第2のステータスメモリ41.42の書込、続出制
御につき説明する。
Next, the first aspect of the programmable controller of the present invention. The writing and successive output control of the second status memory 41 and 42 will be explained.

下表はI10ポート5がゲー)Gl〜64夫々に与える
制御信号A、 B、 C,Dの内容を示している。
The table below shows the contents of the control signals A, B, C, and D that the I10 port 5 gives to the game consoles Gl-64, respectively.

命令実行時の平常状態においてはゲー)G2.G4が開
門しているので、両ステータスメモリ41.42には同
内容が書込まれるが、読出しはゲートGlが開門し、ゲ
ートG3が閉門しているので第1ステータスメモリ41
の内容が読出される。即ち第1ステータスメモリ41は
従来のステータスメモリ同様の機能を果たす。
In the normal state when the command is executed, G2. Since gate G4 is open, the same content is written to both status memories 41 and 42, but since gate Gl is open and gate G3 is closed, the same content is written to the first status memory 41 and 42.
The contents of are read out. That is, the first status memory 41 performs the same function as a conventional status memory.

次にラッチ時にはD@Oに変じてゲートG4を閉門する
。これによってその時点での状態が第2ステータスメモ
リ42に固定されることになる。それ以外の書込、読出
しはゲー1−G2.Glを介して第1ステータスメモリ
41に対して何らの支障もなく行われる。
Next, when latching, it changes to D@O and closes gate G4. As a result, the current state is fixed in the second status memory 42. Other writing and reading are done in Game 1-G2. This is carried out to the first status memory 41 via Gl without any hindrance.

次に状態をプログラマブル・コントローラ自体を使って
表示させるモニタ時(スキャンタイム間で行われる)に
はC=1とし他は0とする。これにより第2ステータス
メモリ42の固定された内容が読出され、表示されるこ
とになる。
Next, when monitoring the status using the programmable controller itself (done during the scan time), C=1 and otherwise set to 0. As a result, the fixed contents of the second status memory 42 are read out and displayed.

〔効果〕〔effect〕

以上の如き本発明による場合はゲート制御のみでデータ
のラッチ或いはその読出しが可能であり、スキャンタイ
ムを延長させることがなく効率的であり、プログラマブ
ル・コントローラによる制御に支障を来すことがない。
In the case of the present invention as described above, data can be latched or read only by gate control, which is efficient without extending the scan time, and which does not interfere with control by the programmable controller.

なお第2ステータスメモリ42のアドレスバス及びデー
タバスに連なる部分にゲートを設けて他のCPt1から
も第2ステータスメモリをアクセスできるようにする構
成とすればリンク転送と命令実行とを同時的に行うこと
ができる等、本発明は優れた効果を奏する。
Note that if a gate is provided in the part of the second status memory 42 connected to the address bus and the data bus so that the second status memory can be accessed from other CPt1, link transfer and instruction execution can be performed simultaneously. The present invention has excellent effects such as:

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

図面は本発明に係るプログラマブル・コントローラの要
部ブロック図である。 1・・・CPIJ   2・・・120M   3・・
・RAM  41.42・・・ステータスメモリ 5・
・・I10ボート Gl、G2.G3.G4・・・ゲー
ト 特 許 出願人  光洋電子工業株式会社代理人 弁理
士  河  野  登  夫)    、I    )
The drawing is a block diagram of main parts of a programmable controller according to the present invention. 1...CPIJ 2...120M 3...
・RAM 41.42...Status memory 5・
...I10 boat Gl, G2. G3. G4...Gate patent Applicant Koyo Electronics Co., Ltd. Agent Patent attorney Noboru Kono), I)

Claims (1)

【特許請求の範囲】[Claims] 1、特定の機能に係る構成要素の状態を記憶するステー
タスメモリを具備するプログラマブル・コントローラに
おいて、同一アドレスにてアクセスできる2つのステー
タスメモリと、両ステータスメモリ夫々の読出し、書込
みの許否を各独立に制御する手段とを具備することを特
徴とするプログラマブル・コントローラ。
1. In a programmable controller equipped with a status memory that stores the status of components related to a specific function, there are two status memories that can be accessed at the same address, and read and write permissions for both status memories can be independently determined. A programmable controller characterized by comprising: means for controlling.
JP15214486A 1986-06-27 1986-06-27 Programmable controller Pending JPS638804A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15214486A JPS638804A (en) 1986-06-27 1986-06-27 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15214486A JPS638804A (en) 1986-06-27 1986-06-27 Programmable controller

Publications (1)

Publication Number Publication Date
JPS638804A true JPS638804A (en) 1988-01-14

Family

ID=15533993

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15214486A Pending JPS638804A (en) 1986-06-27 1986-06-27 Programmable controller

Country Status (1)

Country Link
JP (1) JPS638804A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0437509U (en) * 1990-07-30 1992-03-30

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5489173A (en) * 1977-12-26 1979-07-14 Toyoda Mach Works Ltd Sequence controller
JPS5663612A (en) * 1979-10-30 1981-05-30 Toshiba Corp Controller with process fault diagnostic function
JPS57199058A (en) * 1981-06-01 1982-12-06 Nec Corp Controlling system for microprogram

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5489173A (en) * 1977-12-26 1979-07-14 Toyoda Mach Works Ltd Sequence controller
JPS5663612A (en) * 1979-10-30 1981-05-30 Toshiba Corp Controller with process fault diagnostic function
JPS57199058A (en) * 1981-06-01 1982-12-06 Nec Corp Controlling system for microprogram

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0437509U (en) * 1990-07-30 1992-03-30

Similar Documents

Publication Publication Date Title
JPS638804A (en) Programmable controller
JP2814540B2 (en) Port shared parallel interface circuit
US5894515A (en) Random access memory device having inconsistent write-in and read-out data
JPH02183846A (en) Coincidence circuit for action of cache memory
KR100272050B1 (en) Data comtrolling method
JPH05242009A (en) Direct memory access device
JP2978278B2 (en) Terminal function setting circuit
JPS63225839A (en) Rom with security function
JPS6155698B2 (en)
JPH04370856A (en) Memory circuit
JPS60156153A (en) Communication controlling device
JPH01319850A (en) Data transmission equipment
JPH01184561A (en) Read only memory
JPS63142589A (en) Semiconductor memory
JPS6226738B2 (en)
JPH03269650A (en) Buffer storage
JPS6321157A (en) Printer controller
JPH04311282A (en) System for controlling terminal function setting circuit
JPS5938827A (en) Microprocessor ipl system
JPS62280949A (en) Preventing circuit for mistaken write in memory
JPH07129519A (en) Dual cpu system
JPS60132263A (en) Storage controlling system
JPS6395548A (en) Memory control system
JPH02267624A (en) Microcomputer
JPS602697B2 (en) Information processing system switching method