JPS6263347A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPS6263347A
JPS6263347A JP20176285A JP20176285A JPS6263347A JP S6263347 A JPS6263347 A JP S6263347A JP 20176285 A JP20176285 A JP 20176285A JP 20176285 A JP20176285 A JP 20176285A JP S6263347 A JPS6263347 A JP S6263347A
Authority
JP
Japan
Prior art keywords
data
memory
state holding
state
storage means
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
JP20176285A
Other languages
Japanese (ja)
Inventor
Shinichi Amazaki
尼崎 新一
Yasuharu Kudo
工藤 保晴
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP20176285A priority Critical patent/JPS6263347A/en
Publication of JPS6263347A publication Critical patent/JPS6263347A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To confirm the state of various devices at an optical moment and the state of various input-output data when a CPU processes information from the outside, by updating and storing data when the data are transferred from the 1st and 2nd storage means because the 3rd storage means receives a state holding instruction. CONSTITUTION:When a state holding instruction is read out while a user program is successively executed, data respectively stored in the memory 5 and data storing memory 7 of each device are read out and transferred to and stored in a state holding memory 9. However, since the storing contents of the memories 5 and 7 are transferred to the state holding memory 9 through an operation processing section 3 when the state holding instruction is read out, the content of the memory 9 is rewritten by the transferred storing contents. Therefore, the period during which the data are held b the state holding memory 9 becomes the period from the moment when the operation processing section3 reads out the first state holding instruction set in the user program to another moment just before the next state holding instruction is read out.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、プログラマブルコントローラに関するもの
である。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a programmable controller.

〔従来の技術〕[Conventional technology]

従来のプログラーマプルコントローラに訃いては。 What if the traditional programmer pull controller died?

中央処理装置(以下rCPUJという)の入出カフポー
トを構成してい、る入力用デバイス即ちXデバイス、出
力用デバ−イス即ちYデバイス、一時記憶−用デバイス
即ちMデバイス等の各種デバイスにエラーが発生(以下
「エラーONJという)したか否か(PL下[エラー0
FFJ という)を検出して。
An error occurs in various devices that make up the input/output cuff ports of the central processing unit (rCPUJ), such as the input device (X device), the output device (Y device), the temporary storage device (M device), etc. Hereinafter referred to as "error ONJ"), whether or not (PL below [error 0
FFJ).

エラーONを検出したとぎには例えばエラー表示をした
り、CPUがその動作を一時停止するようになっていた
When an error ON is detected, for example, an error message is displayed or the CPU temporarily stops its operation.

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

ところで、前述した各種デバイスのいずれかがエラーO
Nになつ念ことを認識すると1表示装置に対してエラー
表示させたり或い&”1CPU自身の動作が停止状態に
なったりするので、プログラマブルコントローラに伺ら
かの異常が発生したことをオペレータが認識することは
可能である。しかしながらエラー検出時に2ける前記各
々のデバイスの状態(エラーONか、エラーOFFか等
の内容)及び該時点におけるCPHの行なうべき各種情
報処理のための入出力データ等は、一定期間保持される
ようにはなって2らず外部から与えられる新たなデータ
によって次々と更新されてしまうし又場合によっては一
度エラーON状態になったものがエラーOFF状態に復
帰していることもあり得るために、如何にエラー検出を
正確に行なつ走としても、エラー原因の把握ができずそ
のうえ外部からCPUが停止したときの各種入出力デー
タの状態を確認することができないという問題点があっ
た0 この発明は上記のような問題点を解消するためになされ
たもので、任意の時点における各種デバイスの状態及び
CPUが情報処理を行なうに際しての各種入出力データ
の状態などを外部から確認することが可能なプログラマ
ブルコントローラを提供することを目的とする。
By the way, one of the various devices mentioned above is causing error O.
When the operator recognizes that an error has occurred in the programmable controller, an error message is displayed on the 1 display, or the 1 CPU itself stops operating. However, it is possible to recognize the status of each device at the time of error detection (contents such as error ON or error OFF) and input/output data for various information processing to be performed by the CPH at that time. The data is retained for a certain period of time and is updated one after another with new data provided from outside, and in some cases, the error ON state may return to the error OFF state. Therefore, no matter how accurately error detection is performed, the cause of the error cannot be ascertained, and furthermore, it is not possible to check the status of various input/output data when the CPU is stopped from the outside. There were problems 0 This invention was made to solve the above problems, and it is possible to monitor the status of various devices at any given time and the status of various input/output data when the CPU performs information processing. The purpose is to provide a programmable controller that can be checked from the outside.

〔問題点を解決するための手段〕 この発明に係るプログラマブルコントローラは。[Means for solving problems] A programmable controller according to the present invention.

該プログラマブルコントローラを構成している中央処理
装置に、該中央処理装置の入出カポ−)1構成している
各種デバイスの状態に関するデータf:第1記憶手段で
更新記憶し、前記中央処理装置が情報処理を行なうため
に必要な各種データを第2記憶手段で更新記憶し、前記
データが第1.第2記憶手段から夫々転送されたとぎに
これt−@3記憶手段で更新記憶し、予め設定されたタ
イミングで前記!1.第2記憶手段から前記第3記憶手
段へのデータ転送を行なりための状態保持命令を状態保
持命令出力手段で出力するものである。
The central processing unit constituting the programmable controller updates and stores data (f) regarding the status of various devices constituting the input/output port of the central processing unit (1) in the first storage means, and the central processing unit stores the information. Various data necessary for processing are updated and stored in the second storage means, and the data is stored in the first. As soon as they are transferred from the second storage means, they are updated and stored in the t-@3 storage means, and at a preset timing, the above! 1. A state holding command for transferring data from the second storage means to the third storage means is outputted by a state holding command outputting means.

〔作用〕[Effect]

この発明に2ける第3記憶手段は、各種デバイスの状態
に関するデータ及び中央処理装置が情報処理を行なうた
めに必要な各種データが、状態保持命令出力手段から予
め設定されたタイミングで出力された状態保持命令によ
って第1.第2記憶手段から転送されてきたとぎに、こ
れを更新記憶するものである。
The third storage means in the second aspect of the present invention is in a state in which data regarding the states of various devices and various data necessary for the central processing unit to perform information processing are output from the state maintenance command output means at preset timings. 1st by holding order. This is updated and stored as soon as it is transferred from the second storage means.

〔実施例〕〔Example〕

以下、この発明の一実施例を図面により説明する。 An embodiment of the present invention will be described below with reference to the drawings.

M1図はこの発明の一実施例に従うプロゲラ。Figure M1 is a progera according to an embodiment of the present invention.

プルコントローラの構成を示すブロック図、第2図、第
3図はこの発明の一実施例に従う状態保持命令が設定さ
れているユーザプログラムを示した図、第4図は前記第
1図の構成のフローチャートを示す。
FIGS. 2 and 3 are block diagrams showing the configuration of the pull controller; FIGS. 2 and 3 are diagrams showing a user program in which a state holding command according to an embodiment of the present invention is set; FIG. 4 is a block diagram showing the configuration of the pull controller in FIG. A flowchart is shown.

第1図に2いて、1は状態保持命令出力手段を構成して
いるユーザプログラムメモリ、′3は前記ユーザプログ
ラムメモリ1とともに状態保持命令出力手段を構成して
いる演算処理部、5は第1記憶手段即ち各デバイスのメ
モリ、Tは第2記憶手段即ちデータ格納用メモリ、9は
第3記憶手段即ち状態保持用メモリ、11はCPUユニ
7)、13は周辺装置、15は周辺装置13のCPUで
ある。
In FIG. 1, reference numeral 2 denotes a user program memory 1 constituting a state maintenance command output means, 3 '3 an arithmetic processing section which together with the user program memory 1 constitutes a state maintenance command output means, and 5 a first Storage means, that is, the memory of each device; T is the second storage means, that is, the memory for storing data; 9, the third storage means, that is, the memory for holding the state; 11, the CPU unit 7); 13, the peripheral device; 15, the peripheral device 13; It is a CPU.

CPUユニット11は、前述したユーザプログラムメそ
す1%演算処理部3.各゛デバイズのメモリ5.データ
格納用メモリ7、状態保持用メモリ9を有する。ユーザ
プログラムメモリ1には、ユーザによって設定が自在な
状態保持命令(第2図(a) 、 (b) Kて図示)
を有するプログラマブルコントローラを駆動するための
ユーザプログラムが格納されている。各デバイスのメモ
リ5には、前述したようにCPUユニント110入出力
ボートを構成しているXデバイス、Yデバイス、Mデバ
イス等の各種デバイスの状態を示す1ピツトずつのデー
タ(ビットデータ)がビット単位に格納されて2フ、演
算処理部3の制御下で祈念なビットデータが与えられる
毎に記憶内容が更新されるように構成されている。デー
タ格納用メモリ7には、例えばデータ格納用のレジスタ
が使用されており、演算処理部30制御下でCPUユニ
ット11が情報処理に用いるためにユーザプログラムに
よって設定された16ビツト分の各種入出力データを記
憶し、新たなデータが与えられる毎に記憶内容が更新さ
れるようになっている。状態保持用メモリ9は、演算処
理!3の制御下で該演算処理部3を介して前記各デバイ
スのメモリ5及びデータ格納用メモリ7から夫々転送さ
れてきたデータを受けて記憶し、新たなデータが前記演
算処理部3を介して与えられるまでの間現データを保持
するものである。
The CPU unit 11 includes the above-mentioned user program program 1% arithmetic processing section 3. Memory for each device 5. It has a data storage memory 7 and a state holding memory 9. The user program memory 1 includes state maintenance commands that can be freely set by the user (shown in FIGS. 2(a) and 2(b)).
A user program for driving a programmable controller having a programmable controller is stored therein. As mentioned above, the memory 5 of each device contains bit data (bit data) indicating the status of various devices such as the X device, Y device, and M device that make up the input/output board of the CPU unit 110. The data is stored in units of 2 times, and the stored contents are updated under the control of the arithmetic processing section 3 every time the desired bit data is given. The data storage memory 7 uses, for example, a register for data storage, and has various input/outputs for 16 bits set by a user program for use by the CPU unit 11 in information processing under the control of the arithmetic processing section 30. Data is stored, and the stored contents are updated every time new data is provided. The state holding memory 9 is used for arithmetic processing! 3 receives and stores data transferred from the memory 5 and data storage memory 7 of each device through the arithmetic processing section 3, and new data is transferred via the arithmetic processing section 3. It holds the current data until it is given.

演算処理部3は、前記ユーザプログラムメモリ1に格納
されているユーザプログラムを逐次読み出し、該ユーザ
プログラムに従って所定の情報処理を施す。演算処理部
3は、第2図(a)にて図示する状態保持命令を読み出
すと、直ちに前記各デバイスのメモリ5及びデータ格納
用メモIJ 7に夫々記憶されているデータを読み出し
てこれらを前記状態保持用メモリ9に転送し、ユーザプ
ログラムメモリ1から前記状態保持命令を読み出し念時
点に2けるメモリ5.メモリ7の記憶内容を状態保持用
メモリ9に保持させる。なお、前述した周辺装置13は
、前記状態保持用メモリ9によって保持されている内容
を読み出すための装置であって。
The arithmetic processing unit 3 sequentially reads the user programs stored in the user program memory 1 and performs predetermined information processing according to the user programs. When the arithmetic processing unit 3 reads out the state holding command shown in FIG. The state holding command is transferred to the state holding memory 9, and the state holding command is read from the user program memory 1 and stored in the memory 5. The storage contents of the memory 7 are held in the state holding memory 9. The peripheral device 13 mentioned above is a device for reading the contents held in the state holding memory 9.

該状態保持用メモリ9に接続されているものである。It is connected to the state holding memory 9.

次に上述し九構成のプログラマブルコントローラについ
て、生に第4図のフローチャートを併用して以下に説明
する。
Next, the programmable controller having the nine configurations described above will be explained below with reference to the flowchart of FIG. 4.

オペレータがプログラマブルコントローラの駆動電源を
投入することによって演算処理部3は処理動作を開始す
る。前述したユーザプログラムメモリ1に格納されてい
る第2図Aにて図示する領域には、プログラマブルコン
トローラにおける通′常の動作のための各種定数、デー
タ等の命令が入っている。従って前記入の領域の命令を
読み出している間は演算処理部3は通常の制御動作を行
なうこととなる。このようにして前記ユーザプログラム
を逐次実行して行き、第2図(a)にて示す状態保持命
令を読み出すと(ステップ21)、各デバイスのメモリ
5及びデータ格納用メモリ7に夫々記憶されているデー
タを読み出すとともに、該読み出したデータを前記状態
保持用メモリ9に転送し、メモリ9に記憶させる(ステ
ップ23)oス ゛テップ21、ステップ23を経て前
記状態保持用メモリ9に記憶されたデータは、演算処理
部3が第2図Bにて図示するユーザプログラムの命令領
域1r:読み出している間前記メモリ9に2いて保持さ
れる。しかしながらWJz図ら)にて示す状態保持命令
を読み出すと(ステップ21)、該状態保持命令を読み
出した時点に2ける各デバイスのメモリ5の記憶内容及
びデータ格納用メモリ7の記憶内容が演算処理部3t−
介して状態保持用メモリ9に転送される(ステップ23
)ので、これら転送された記憶内容によって状態保持用
メモリ9の内容が書き換えられることとなる。よって前
記状態保持用メモリ9によってデータが保持される期間
は、演算処理部3がユーザプログラムに設定されている
最初の状態保持命令を読み出した後、次の状態保持命令
を読み出す直前までの間ということになる。
When the operator turns on the drive power of the programmable controller, the arithmetic processing section 3 starts processing operations. The area shown in FIG. 2A stored in the user program memory 1 described above contains instructions such as various constants and data for normal operation of the programmable controller. Therefore, the arithmetic processing section 3 performs normal control operations while reading out the instructions in the input area. In this way, when the user program is executed sequentially and the state holding command shown in FIG. At the same time, the read data is transferred to the state holding memory 9 and stored in the memory 9 (step 23). The data is held in the memory 9 while the arithmetic processing unit 3 reads out the instruction area 1r of the user program shown in FIG. 2B. However, when the state holding command shown in FIG. 3t-
(Step 23)
) Therefore, the contents of the state holding memory 9 are rewritten with these transferred storage contents. Therefore, the period during which data is retained by the state retaining memory 9 is the period from when the arithmetic processing unit 3 reads out the first state retaining instruction set in the user program until just before reading the next state retaining instruction. It turns out.

前述したように、ユーザプログラムに2ける状態保持命
令の設定は自在であり又エラー検出はユーザプログラム
によって行えるので1例えば第3図にて図示するように
エラー検出時に状態保持命令t−1回だけ実行するよう
にユーザプログラムを作成すれば、演算処理部3が前記
状態保持命令を読み出した時点における各デバイスの状
態及び各種入出力データの状態が前記状態保持用メモリ
9に保持されているため、周辺装置13により状態保持
用メモリ9の記憶内容を読み出して動作解析を行なうこ
とも可能である。
As mentioned above, the state holding command can be freely set in the user program, and error detection can be performed by the user program.1 For example, as shown in FIG. If a user program is created to be executed, the state of each device and the state of various input/output data at the time when the arithmetic processing unit 3 reads out the state holding command are held in the state holding memory 9. It is also possible to read out the contents of the state holding memory 9 using the peripheral device 13 and perform operation analysis.

な訃、前述した状態保持用メモリ9によってデータが保
持されるデバイスは予め設定してひくこ′とができる。
Furthermore, the device in which data is held by the state holding memory 9 described above can be set in advance.

〔発明の効果〕〔Effect of the invention〕

以上のように、この発明によれば、中央処理装置を構成
する第3記憶手段が各種デバイスの状態に関するデ、−
夕及び中央処理装置が情報処理を行なうために必要な各
種データが、状態保持命令出力手段から予め設定された
タイミングで出力された状態保持命令によって第1.第
2記憶手段から転送されてきたとぎに、これを更新記憶
することとしなので、任意の時点における各種デバイス
の状態及びCPUが情報処理を行なうに際しての各種入
出力データの状態などを外部から確認することが可能な
プログラマブルコントローラが得られる効果がある。
As described above, according to the present invention, the third storage means constituting the central processing unit stores data regarding the states of various devices.
Various data necessary for the data processing unit and the central processing unit to perform information processing are stored in the first . As soon as it is transferred from the second storage means, it is updated and stored, so the status of various devices and the status of various input/output data when the CPU performs information processing at any time can be checked from the outside. This has the effect of providing a programmable controller that can perform the following functions.

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

第1図はこの発明の一実施例に従うプログラマプルコン
トローラの構成を示すブロック図、第2図、第3図はこ
の発明の一実施例に従う状態保持命令が設定されている
ユーザプログラムを示したユーザプログラム図、第4図
は前記第1図の構成の70−チャートを示す。 図において、1はユーザプログラムメモリ、3は演算処
理部、5は各デバイスのメモリ、7はデータ格納用メモ
リ、9は状態保持用メモリ、11はCPUユニットであ
る。 なお、各図中、同一符号は同−又は相当部分を示す。 特許出願人  三菱電機株式会社 第1図
FIG. 1 is a block diagram showing the configuration of a programmable controller according to an embodiment of the present invention, and FIGS. 2 and 3 are user programs in which state hold instructions are set according to an embodiment of the present invention. The program diagram, FIG. 4, shows a 70-chart of the configuration shown in FIG. In the figure, 1 is a user program memory, 3 is an arithmetic processing unit, 5 is a memory of each device, 7 is a data storage memory, 9 is a state holding memory, and 11 is a CPU unit. In each figure, the same reference numerals indicate the same or corresponding parts. Patent applicant Mitsubishi Electric Corporation Figure 1

Claims (1)

【特許請求の範囲】[Claims] 中央処理装置の入出力ポートを構成している各種デバイ
スの状態に関するデータを更新記憶する第1記憶手段と
、前記中央処理装置が情報処理を行なうために必要な各
種データを更新記憶する第2記憶手段と、前記データが
第1、第2記憶手段から夫々転送されたときにこれを更
新記憶する第3記憶手段と、予め設定されたタイミング
で前記第1、第2記憶手段から前記第3記憶手段へのデ
ータ転送を行なうための状態保持命令を出力する状態保
持命令出力手段とを前記中央処理装置に備えたプログラ
マブルコントローラ。
a first storage means for updating and storing data related to the states of various devices constituting input/output ports of the central processing unit; and a second storage unit for updating and storing various data necessary for the central processing unit to perform information processing. means, third storage means for updating and storing the data when the data is transferred from the first and second storage means, and third storage means for updating the data from the first and second storage means at a preset timing. A programmable controller comprising, in the central processing unit, state holding command output means for outputting a state holding command for transferring data to the means.
JP20176285A 1985-09-13 1985-09-13 Programmable controller Pending JPS6263347A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20176285A JPS6263347A (en) 1985-09-13 1985-09-13 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20176285A JPS6263347A (en) 1985-09-13 1985-09-13 Programmable controller

Publications (1)

Publication Number Publication Date
JPS6263347A true JPS6263347A (en) 1987-03-20

Family

ID=16446510

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20176285A Pending JPS6263347A (en) 1985-09-13 1985-09-13 Programmable controller

Country Status (1)

Country Link
JP (1) JPS6263347A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0663090U (en) * 1993-02-15 1994-09-06 株式会社ジャレコ Flag swing game machine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0663090U (en) * 1993-02-15 1994-09-06 株式会社ジャレコ Flag swing game machine

Similar Documents

Publication Publication Date Title
JPS6263347A (en) Programmable controller
JPS5860318A (en) Programmable controller
ES2270489T3 (en) PROGRAMMABLE CONTROLLER.
JP2902888B2 (en) Programmable controller
JPH03135628A (en) Terminal equipment
JP2695930B2 (en) Intelligent I / O module
JPS63311403A (en) Processing system for input/output signal of pc
JPS63249206A (en) Programmable controller
JPH04342037A (en) Operand checking system for program
JP2000214921A (en) Display device
JPS5856123B2 (en) Sequence control device
JPS59149509A (en) Programmable controller
JPS59191614A (en) Controller of robot
JPH0420481B2 (en)
JPH02125303A (en) Programmable controller
JPS58221405A (en) Programmable controller
JP2708983B2 (en) Program display device
JPS6238746B2 (en)
JPS63163563A (en) Data processor
JPH01232446A (en) Program development assisting device for computer
JPH0545978B2 (en)
JPH032902A (en) Programmable controller
JPH05204750A (en) Data holding system for program controller
JPS6240533A (en) Program loading system
JPH0659911A (en) External device control system