JPS58109908A - Monitor for sequence controller - Google Patents

Monitor for sequence controller

Info

Publication number
JPS58109908A
JPS58109908A JP56211757A JP21175781A JPS58109908A JP S58109908 A JPS58109908 A JP S58109908A JP 56211757 A JP56211757 A JP 56211757A JP 21175781 A JP21175781 A JP 21175781A JP S58109908 A JPS58109908 A JP S58109908A
Authority
JP
Japan
Prior art keywords
program
address
monitor
data memory
data
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
JP56211757A
Other languages
Japanese (ja)
Inventor
Ryozo Jin
神 良三
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP56211757A priority Critical patent/JPS58109908A/en
Publication of JPS58109908A publication Critical patent/JPS58109908A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3037Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Testing And Monitoring For Control Systems (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE:To monitor the content of a data memory in a program address selected arbitrarily, by inputting address information of a program to be monitored in a register in advance. CONSTITUTION:In monitoring the content of the data memory 5,100 at the program address 3-street number, address information is inputted to a register R6. When the program executed and a program counter reaches the address 4-street number, a comparison means 7 detects this state and outputs an interruption instruction IR to a CPU1. The CPU1 receiving the IR jumps to a monitor routine and opens a data bus 9 and an address bus 10. In this state, a monitor input/output device 8 accesses a data memory 4 via the address bus 10 and reads and monitors the objective data via the data bus 9.

Description

【発明の詳細な説明】 本発明はシーケンスコントローラのモニタ装置の改良に
関するものであるρ 従来のシーケンスコントローラに装備あるいは接続が可
能になっているモニタ装置においては、通常シーケンス
コイトローラがプログラム演算を実行し、%装置との間
で転送を押なつだ後モニタ動作を行なう構成であるため
、例えばプログラノ、演算中等におけるデータメモリの
内容をモニ・りすることか出来なかった0゛ 即ち1.−従来のシーケンスコントローラの動作は第1
図に示すように、段階■においてプログラムメモリに貯
わ見られている命令を取出して来て、制御部に送り込む
フェッチ動作を実行し、次の段階■において−その命令
を実行[、次の段階■においてプログラム終了か否かを
判定し、終了でなければ上記段階■に戻って1.同様の
動作を繰返し、7終了の判定により次の段階■に進んτ
%転送を実行し、その後の段階■においてモ=J動作を
実行するようにシステム・が構成されている。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an improvement of a monitor device for a sequence controller. In a monitor device that can be installed or connected to a conventional sequence controller, a sequence controller usually executes program calculations. However, since the configuration is such that the monitoring operation is performed after the transfer with the device, it is not possible to monitor the contents of the data memory during programming, calculations, etc. - The operation of the conventional sequence controller is
As shown in the figure, in step 2, the instruction stored in the program memory is retrieved, a fetch operation is executed to send it to the control unit, and in the next step 2, the instruction is executed [, the next step In step (2), it is determined whether the program has ended or not. If the program has not ended, the process returns to step (1) above. Repeat the same operation, and proceed to the next step ■ when it is determined that 7 is completed τ
The system is configured to perform a % transfer and then perform a Mo=J operation in step (3).

従って例えば第2図に示す如きラダー図(接点000が
オンでデータメモリアドレス5010と5−100の内
容が加算され、その結果が5100に格納される命令■
及び接点001がオンでデータメモリアドレス5011
と5100との内容の間で減算を実行し、その結果が5
100に格頓される命令口を示している。。)がユーザ
ーメモリ内に第3図に示す命令言語で格納されている場
合、シーケンスコントローラは第1図に示したフローに
従ってプログラム演算を実行し、%装置と゛の転送を実
行した後、モニタ動作を実行する。したがってプログラ
ムアドレス3番地のときAdd命令実行を行なうと、そ
の結果がデータメモリアドレス5100に格納されるが
、プログラムアドレス情報地の5tJ4命令実行におい
ても同じデータメモリアドレスに結果を格納するため、
前に実行した格納データをモニタすることが出来なかっ
た。
Therefore, for example, a ladder diagram as shown in FIG.
and when contact 001 is on, data memory address 5011
Performs subtraction between the contents of and 5100, and the result is 5
It shows command ports that are classified into 100. . ) is stored in the user memory in the command language shown in Figure 3, the sequence controller executes the program operation according to the flow shown in Figure 1, transfers the % device and ゛, and then executes the monitor operation. do. Therefore, when the Add instruction is executed at the program address 3, the result is stored in the data memory address 5100, but when the 5tJ4 instruction is executed at the program address information location, the result is also stored in the same data memory address.
It was not possible to monitor the stored data that was executed previously.

本発明は上記の問題点を解決するために成されたもので
あり、任意に選択したプログラムアドレスにおけるデー
タメモリの内容をモニタし得るシーケンスコントローラ
のモニタ装置を提供−t−ることを目的とし、この目的
を達成するため本発明のシーケンスコントローラのモニ
タ装fljH1”−f−プログラムを格納するユーザー
メモリと、このユーザーメモリに格納されたプログラム
のアドレスを指定するプログラムカウンタと、データを
格納スるデータメモリと、このデータメモリのアドレス
を指定するアドレスレジスタと、モニタすべきプログラ
ムアドレス情報を入力する入力手段と、この入力手段よ
り入力されたアドレス情報を記憶する記憶手段と、上記
のプロ久う、ムカウ/りの内容と記憶手段の内容を比較
し、この比較結果にもとすき割込み命令を発する比較手
段と、この割込み命令にもとすき上記のデータメモリの
記憶内容を出力する制御手段とを備え、プログラム実行
中の任意アドレスに割込み、をかけ、そのプ・ログラノ
・アドレス時点における内部データヌモνの記憶内容を
モニタし得るように構成されている。
The present invention has been made to solve the above problems, and an object of the present invention is to provide a sequence controller monitor device that can monitor the contents of a data memory at an arbitrarily selected program address. To achieve this purpose, a monitor device for a sequence controller according to the present invention includes a user memory for storing fljH1''-f programs, a program counter for specifying the address of the program stored in this user memory, and data for storing data. a memory, an address register for specifying the address of this data memory, an input means for inputting program address information to be monitored, a storage means for storing address information input from the input means, Comparing means for comparing the contents of the data memory with the contents of the storage means and issuing an interrupt instruction according to the comparison result, and control means for outputting the stored contents of the data memory according to the interrupt instruction. The system is configured so that an interrupt can be applied to any address during program execution to monitor the stored contents of the internal data ν at the time of the program address.

以下、図面に従って本発明・の実施例について詳細に説
明する。
Embodiments of the present invention will be described in detail below with reference to the drawings.

第4図は本発明の一実施例装置の構成を示すブロック図
である。
FIG. 4 is a block diagram showing the configuration of an apparatus according to an embodiment of the present invention.

第4図において、lは各種演算制御を実行する中央演算
処理装置(CPU)、2はユーザープログラムを格納す
るユーザーメモリ、3は該ユーザーメモリ2のプログラ
ムアドレスを指定するプログラムカウンタ、4はデータ
を格納するデータメモリ、5は該データメモリ4のアド
レスを指定するアドレスレジスタ、6はモニタすべきプ
ログラムアドレス情報の入力記憶されるレジスタR(記
憶手段)、7は上記プログラムカウンタ3の内容とレジ
スタR(記憶手段)6の内容を比較し、その比較結果に
もとずきCPU1に対して割込み命令IRを導出する比
較手段、8はデータメモリの記憶内容を表示出力すると
共に所望のプログラムアドレス情報を上記レジスタR(
記憶手段)6に入力するためのモニタ入出力装置であり
、上記CPUI、ユーザーメモリ2、データメモリ4及
びモニタ入出力装置8は相互にデータバス9により接続
され、またユーザーメモリ2、プログラムカラ/り3、
データメモリ4、アドレスレジスタ5及びモニタ入出力
装置8は相互にアドレスバス10により接続されている
In FIG. 4, l is a central processing unit (CPU) that executes various calculation controls, 2 is a user memory that stores user programs, 3 is a program counter that specifies the program address of the user memory 2, and 4 is a data 5 is an address register for specifying the address of the data memory 4; 6 is a register R (storage means) for inputting and storing program address information to be monitored; and 7 is a register R for storing the contents of the program counter 3 and the register R. (Storage means) Comparison means 8 compares the contents of 6 and derives an interrupt instruction IR to the CPU 1 based on the comparison result. The above register R (
The CPU 2, user memory 2, data memory 4, and monitor input/output device 8 are connected to each other by a data bus 9, and the user memory 2, program color/ ri3,
Data memory 4, address register 5, and monitor input/output device 8 are interconnected by address bus 10.

次に上記した装置の動作を第5図に示す動作フロー図に
従い、前記した第3図に示したプログラムを実行した場
合を例に採って説明する。
Next, the operation of the above-mentioned apparatus will be explained in accordance with the operation flowchart shown in FIG. 5, taking as an example the case where the program shown in FIG. 3 is executed.

今プログラムアドレス3番地のところでデータメモリ゛
5100の内容をモニタしたい場合、モニタ入出力装置
80入力手段を操作してレジスタR(記憶手段)6に対
し、アドレス情報(3+ 1 )を入力記憶させる。こ
の状態においてシーケンスコントローラが第5図に示す
動作フローに従ってユーザーメモリ2に記憶されたプロ
グラムを実行し、CPUIは3番地のAd、d命令を実
行したとき、データメモリ4の番地5010と5100
の内容を加算し、その演算結果を再び5100番地に格
納する(段階■の実行)。この動作の実行後プログラム
カウンタは“+1”され4番地になり、シーケンスコン
トローラの動作は再び段階■に戻り、4番地のSTR命
令をフェッチした後、段階0に移行して割込み命令が出
されたか否か判定される〇一方、この段階においてプロ
グラムカウンタ3とレジスタR(記憶手段)6の内容は
共に4番地になって一致しているため比較手段7はこの
状態を検出してCPUIに対して割込み命令IRを出力
する。この割込み命令IRを受けたCPUIは段階[相
]のモニタのルーチンにジャンプし、アドレスバス9及
びデータバスIOを開放する。この状態においてモニタ
入出力装置8はアドレスバス10t−介してデータメモ
リ4ヘアクセスを行ない、目的とするデータをデータバ
ス9を介して読込んでモニタする。
If it is desired to monitor the contents of the data memory 5100 at program address 3, the input means of the monitor input/output device 80 is operated to input and store address information (3+1) into the register R (storage means) 6. In this state, the sequence controller executes the program stored in the user memory 2 according to the operation flow shown in FIG.
, and the result of the calculation is stored again at address 5100 (execution of step (2)). After execution of this operation, the program counter is increased by 1 and becomes address 4, and the sequence controller operation returns to step ① again. After fetching the STR instruction at address 4, it moves to step 0 and an interrupt instruction is issued. On the other hand, at this stage, the contents of the program counter 3 and the register R (storage means) 6 are both at address 4 and match, so the comparison means 7 detects this state and sends a message to the CPU. and outputs an interrupt instruction IR. Upon receiving this interrupt instruction IR, the CPU jumps to the stage [phase] monitor routine and releases the address bus 9 and data bus IO. In this state, the monitor input/output device 8 accesses the data memory 4 via the address bus 10t, reads the target data via the data bus 9, and monitors it.

このモニタ動作が完了するとCPUIは再びモニタのル
ーチンから段階[相]のメインプログラムルーチンに戻
り命令を続行することになる。
When this monitor operation is completed, the CPUI returns from the monitor routine to the main program routine of phase [phase] to continue commanding.

以上のようにしてプログラム実行中の任意アドレスに割
込みをかけ、そのプログラムアドレス時点での内部デー
タメモリの状態をモニタすることが可能となる。
As described above, it is possible to interrupt an arbitrary address during program execution and monitor the state of the internal data memory at the time of the program address.

以上述べたように本発明によれば、モニタ装置によって
モニタしようとするプログラムのアドレス情報を予めレ
ジスタR(記憶手段)に入力しておき、このレジスタR
(記憶手段)とプロゲラl、カウンタの内容の比較一致
を判定することによりCPUに対して割込みをかけ、デ
ータメモリの内容をモニタできるようにしたものである
ため、任意のプログラムアドレスにおけるデータ、メモ
リの内容をモニタすることが出来る。
As described above, according to the present invention, the address information of the program to be monitored by the monitor device is inputted in advance to the register R (storage means), and the address information of the program to be monitored by the monitor device is input in advance to the register R
By comparing the contents of the (storage means) and the counter, it interrupts the CPU and monitors the contents of the data memory, so the data at any program address, the memory You can monitor the contents of

また、このように任意のプログラムアドレスにおけるデ
ータメモリの内容をモニタすることが出来るため、デー
タメモリ領域の2重使用が可能となり、シーケンスコン
トローラのデータメモリ容量が少なくて済むという効菓
がある。
Furthermore, since the contents of the data memory at any program address can be monitored in this way, the data memory area can be used twice, which has the advantage that the data memory capacity of the sequence controller can be reduced.

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

第1図は従来装置の動作フロー図、第2図はラダー図、
第3図はそのプログラム格納状態を示す図、第4図は本
発明装置の一実施例の構成を示すブロック図、第5図は
その動作説明に供する動作フロー図である。 1・・・中央演算処理装置、2・・・ユーザーメモリ、
8・・・プログラムカウンタ、4・・・データメモリ、
5・・・アドレスレジスタ、6・・・レジスタR(記(
i[手段)、7・・・比較手段、8・・・モニタ入出力
装置、IR・・・割込み命令。 代理人 弁理士  福 士 愛 彦 35
Figure 1 is an operation flow diagram of the conventional device, Figure 2 is a ladder diagram,
FIG. 3 is a diagram showing the program storage state, FIG. 4 is a block diagram showing the configuration of an embodiment of the apparatus of the present invention, and FIG. 5 is an operation flow diagram for explaining the operation. 1... Central processing unit, 2... User memory,
8...Program counter, 4...Data memory,
5...Address register, 6...Register R (note (
i [means), 7... Comparison means, 8... Monitor input/output device, IR... Interrupt instruction. Agent Patent Attorney Aihiko Fuku 35

Claims (1)

【特許請求の範囲】[Claims] 1、ストアードプログラム方式のシーケンスコントロー
ラにおいて、ユーザープログラムを格納するーーザーメ
モリλ、該−一ザニメモリに格納されたプログラムのア
ドレスを指定するプログラムカウンタと、データを格納
するデータメモリと、該データメモリ、のアドレスを指
定するアドレスレジスタと、モニタすべきプログラムア
ドレス情報を入力する入力手段と、該入力手段よ、り入
力され太ア゛ドレス情報を記憶する記憶手段と、上記ブ
、ログラムカウンタの内容と記憶手段の内容を比、較し
、比較結果叫もとすき割込み命令を光する比較手段と、
上記割込み命令にもとすき上記データメモリの記憶内容
を出力する制御手段とを備えたことを特徴とするシーケ
ンスコントローラのモニタ装置。
1. In a stored program type sequence controller, a user memory λ that stores a user program, a program counter that specifies the address of the program stored in the first memory, a data memory that stores data, and the address of the data memory. an address register for specifying the program address information to be monitored, an input means for inputting program address information to be monitored, a storage means for storing the thick address information input from the input means, and a storage means for storing the contents of the program counter. a comparison means for comparing the contents of the information and displaying an interrupt instruction according to the comparison result;
A monitor device for a sequence controller, comprising control means for outputting the stored contents of the data memory in response to the interrupt command.
JP56211757A 1981-12-24 1981-12-24 Monitor for sequence controller Pending JPS58109908A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56211757A JPS58109908A (en) 1981-12-24 1981-12-24 Monitor for sequence controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56211757A JPS58109908A (en) 1981-12-24 1981-12-24 Monitor for sequence controller

Publications (1)

Publication Number Publication Date
JPS58109908A true JPS58109908A (en) 1983-06-30

Family

ID=16611069

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56211757A Pending JPS58109908A (en) 1981-12-24 1981-12-24 Monitor for sequence controller

Country Status (1)

Country Link
JP (1) JPS58109908A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60207914A (en) * 1984-03-31 1985-10-19 Shimadzu Corp Displaying method of arithmetic result on the way in compiler type sequence controller

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55938A (en) * 1978-06-19 1980-01-07 Toshiba Corp Online monitor unit of sequnce controller

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55938A (en) * 1978-06-19 1980-01-07 Toshiba Corp Online monitor unit of sequnce controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60207914A (en) * 1984-03-31 1985-10-19 Shimadzu Corp Displaying method of arithmetic result on the way in compiler type sequence controller

Similar Documents

Publication Publication Date Title
JPS58109908A (en) Monitor for sequence controller
JP2710151B2 (en) How the automation device works
JPH0285941A (en) Data processing system
JPH082727Y2 (en) Programmable sequencer
JP2808558B2 (en) Information processing device
JPS61151745A (en) Interruption processing system
JPH04230533A (en) Interruption control circuit
JPS62117003A (en) Multi-cpu constitution programmable controller
JPS59144955A (en) Information processor
JP3471388B2 (en) Auxiliary processing unit
JPH0211933B2 (en)
JP2506591B2 (en) Auxiliary processor
JPS63155330A (en) Microprogram controller
JPS60220468A (en) Vector arithmetic control system
JPS61288232A (en) Output instruction control system
JPS61248152A (en) Procedure change controlling system
JPS63165931A (en) Storing system for information on discontinuous instruction fetch address
JPH02171802A (en) Programmable controller
JPS61156307A (en) Sequence controller
JPS6015970B2 (en) Interrupt processing device in microprocessor
JPH0883188A (en) Multitask processing computer
JPS615349A (en) Programmable controller
JPS6249463A (en) Patching system of input output controller
JPH04232506A (en) Robot controller
JPS6120139A (en) Interruption control system