JP2906382B2 - Trace method of user program in programmable controller - Google Patents
Trace method of user program in programmable controllerInfo
- Publication number
- JP2906382B2 JP2906382B2 JP40275190A JP40275190A JP2906382B2 JP 2906382 B2 JP2906382 B2 JP 2906382B2 JP 40275190 A JP40275190 A JP 40275190A JP 40275190 A JP40275190 A JP 40275190A JP 2906382 B2 JP2906382 B2 JP 2906382B2
- Authority
- JP
- Japan
- Prior art keywords
- instruction
- user program
- memory
- trace
- identification
- 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 - Fee Related
Links
- 238000000034 method Methods 0.000 title claims description 31
- 230000015654 memory Effects 0.000 claims description 40
- 230000002093 peripheral effect Effects 0.000 claims description 7
- 238000005070 sampling Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 101000585359 Homo sapiens Suppressor of tumorigenicity 20 protein Proteins 0.000 description 2
- 101100018027 Pisum sativum HSP70 gene Proteins 0.000 description 2
- 102100029860 Suppressor of tumorigenicity 20 protein Human genes 0.000 description 2
- 230000003936 working memory Effects 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
Landscapes
- Programmable Controllers (AREA)
Description
【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION
【0001】[0001]
【産業上の利用分野】本発明は、ユーザプログラムの命
令実行軌跡を時系列的にメモリに記憶させ、周辺ツール
にてユーザが参照できるようにするプログラマブルコン
トローラ(以下、PCという)におけるユーザプログラ
ムのトレース方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a user program in a programmable controller (hereinafter, referred to as a PC) which stores a command execution locus of a user program in a memory in a time-series manner so that a user can refer to the locus by a peripheral tool. Regarding the trace method.
【0002】[0002]
【従来の技術】従来のPCにおいて、ユーザプログラム
のトレース機能、つまりユーザプログラムの実行軌跡
(位置)を時系列的に記憶する機能は公知の技術であ
り、例えば図10に示すような工程でユーザプログラム
の命令実行毎に行われていた。2. Description of the Related Art In a conventional PC, a tracing function of a user program, that is, a function of storing the execution locus (position) of the user program in a time-series manner is a known technique. It was performed every time a program instruction was executed.
【0003】すなわち、従来はユーザプログラムを実行
する場合には、同図に示すように最初にプログラムカウ
ンタから次に実行すべきユーザプログラムの命令のアド
レスを読み込み(ST100)、各命令毎にトレース実
行の設定が有るか無いかを判定し(ST110)、トレ
ース実行の設定有りの場合にはデータサンプリング処
理、つまり現在実行中のプログラムカウンタの値もしく
は実行中の命令のオブジェクトコード等をトレースメモ
リに順次格納し(ST120)、その後に上記アドレス
に基づいてユーザプログラムから命令を読み込み(ST
150)、その命令に基づく処理を実行していた(ST
180)。That is, conventionally, when a user program is executed, first, as shown in FIG. 1, an address of an instruction of a user program to be executed next is read from a program counter (ST100), and a trace execution is executed for each instruction. It is determined whether or not there is a setting (ST110). If the setting for trace execution is present, data sampling processing, that is, the value of the program counter currently being executed or the object code of the instruction being executed is sequentially stored in the trace memory. Is stored (ST120), and thereafter, an instruction is read from the user program based on the address (ST120).
150), a process based on the instruction was executed (ST
180).
【0004】[0004]
【発明が解決しようとする課題】ところで、PCにおい
てユーザが上記のようなトレース機能を使用するのはユ
ーザプログラムのデバッグ時であることがほとんどで、
このトレース機能を使用した場合でも、その機能を使用
していないときと比べてユーザプログラムの実行処理速
度が変わらないことが要求されている。By the way, in most cases, the user uses the above-mentioned trace function on a PC when debugging a user program.
Even when the trace function is used, it is required that the execution processing speed of the user program does not change as compared with the case where the function is not used.
【0005】しかし、従来のトレース方式では図10に
示すようにユーザプログラムの各命令毎に、トレース実
行の有/無の判断および実際のデータサンプリング処理
が追加されるので、プログラム中の命令数が増加するに
従い命令自身の処理時間以外の時間が必要とされ、オー
バーヘッドタイムが増大し、本来の命令処理速度よりも
大幅な処理の遅れが生じるという問題があった。However, in the conventional tracing method, as shown in FIG. 10, for each instruction of the user program, whether or not to execute tracing and an actual data sampling process are added, so that the number of instructions in the program is reduced. As the number of instructions increases, a time other than the processing time of the instruction itself is required, so that the overhead time increases, and there is a problem that a processing delay that is greater than the original instruction processing speed occurs.
【0006】また、トレースしたデータを格納するため
のメモリ(トレースメモリ)の容量に関しても、実行し
た命令をすべてデータとしてサンプリングしているため
に容量不足が生じるおそれがあり、長時間にわたるトレ
ースが困難であるという問題があった。Also, regarding the capacity of a memory (trace memory) for storing the traced data, since all executed instructions are sampled as data, there is a possibility that the capacity may be insufficient, and it is difficult to trace for a long time. There was a problem that is.
【0007】そこで、本発明は上記問題に鑑み成された
もので、実時間に近い処理速度でユーザプログラムの実
行軌跡をトレースできると共に、限られたメモリ容量で
トレース可能なPCのユーザプログラムのトレース方式
を提供することを目的とする。SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and it is possible to trace the execution locus of a user program at a processing speed close to real time and to trace a user program of a PC which can be traced with a limited memory capacity. The aim is to provide a scheme.
【0008】[0008]
【課題を解決するための手段】上記課題を解決するため
本発明は、ユーザプログラムの命令実行軌跡を時系列的
にメモリに記憶させ、表示装置に表示させる等の方法に
より周辺ツールにてユーザが参照できるようにするプロ
グラマブルコントローラにおけるユーザプログラムのト
レース方式において、命令自身を識別するための識別番
号がオペランドとして設定されている識別命令を上記ユ
ーザプログラム中の任意の位置に格納し、上記ユーザプ
ログラムの実行中に上記識別命令が実行された時だけそ
の識別命令の上記識別番号をメモリに記憶させ、上記メ
モリに格納された上記識別番号を周辺ツールにてユーザ
が参照できるようにしたことを特徴とする。SUMMARY OF THE INVENTION In order to solve the above-mentioned problems, the present invention provides a method in which a user executes a command execution locus of a user program in a memory in a time-series manner and displays the locus on a display device. In a tracing method of a user program in a programmable controller to be referred to, an identification instruction in which an identification number for identifying the instruction itself is set as an operand is stored at an arbitrary position in the user program, and The identification number of the identification instruction is stored in a memory only when the identification instruction is executed during execution, and the user can refer to the identification number stored in the memory with a peripheral tool. I do.
【0009】[0009]
【作用】上記構成によれば、命令自身を識別するための
識別番号がオペランドとして設定されている識別命令が
ユーザプログラム中の任意の位置に設定されて、ユーザ
プログラムの実行中にその識別命令が実行された時だ
け、その識別命令の上記識別番号がメモリに格納され
る。メモリに格納された識別番号は表示装置に表示させ
る等の方式により周辺ツールにてユーザが参照できるよ
うされる。According to the above arrangement, an identification instruction in which an identification number for identifying the instruction itself is set as an operand is set at an arbitrary position in the user program, and the identification instruction is executed during execution of the user program. Only when executed, the identification number of the identification instruction is stored in the memory. The user can refer to the identification number stored in the memory by a peripheral tool by a method such as displaying the identification number on a display device.
【0010】このため、従来まではユーザプログラムの
各命令毎に必要とされていたトレース実行の有/無の判
断や実際のデータサンプリング処理が必要でなくなり、
実時間に近い処理速度でユーザプログラムの命令実行軌
跡をトレースできると共に、トレースのためのメモリ容
量が少なくて済むようになる。[0010] For this reason, it is no longer necessary to determine whether or not to execute the trace and to actually perform the data sampling process, which is conventionally required for each instruction of the user program.
The instruction execution locus of the user program can be traced at a processing speed close to real time, and the memory capacity for the trace can be reduced.
【0011】[0011]
【実施例】以下、本発明に係るPCにおけるユーザプロ
グラムのトレース方式の一実施例を図面に基づいて説明
する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a trace method for a user program in a PC according to the present invention will be described below with reference to the drawings.
【0012】図1は本実施例のユーザプログラムのトレ
ース方式が適用されるPCの内部構成を示すブロック図
で、このPCはPC全体の制御やトレース処理等の各種
処理を行うマイクロプロセッサ(以下、MPUという)
1と、システムプログラムメモリ2と、MPU1で処理
されたデータが一時的に記憶されるワーキングメモリ3
と、MPU1で処理されたトレースデータ(サンプリン
グデータ)が記憶されるトレースメモリ4と、ユーザに
より任意にプログラミングされたプログラムが格納され
るユーザプログラムメモリ5と、キーボード6と、CR
T等の表示装置7と、キーボード5により入力されたデ
ータやユーザプログラムにより実行されたデータ、表示
装置7に出力されるデータ等が格納されるI/Oメモリ
8と、周辺装置等が接続されるインタフェース9と、こ
れらのものを接続する内部バス10とを有する。FIG. 1 is a block diagram showing an internal configuration of a PC to which a user program tracing method according to the present embodiment is applied. This PC is a microprocessor (hereinafter, referred to as a microprocessor) which performs various processes such as control of the entire PC and tracing. MPU)
1, a system program memory 2, and a working memory 3 for temporarily storing data processed by the MPU 1.
A trace memory 4 for storing trace data (sampling data) processed by the MPU 1; a user program memory 5 for storing a program arbitrarily programmed by a user; a keyboard 6;
A display device 7 such as a T, an I / O memory 8 for storing data input by the keyboard 5, data executed by a user program, data output to the display device 7, etc., and peripheral devices are connected. Interface 9 and an internal bus 10 for connecting these.
【0013】そして、上記システムプログラムメモリ2
には、MPU1がPC全体の制御や各種処理を実行した
り、ユーザプログラムの実行中に後述する識別命令が実
行されるときだけ図7に示すような工程でトレース処理
を行うようにプログラミングされたシステムプログラム
が格納されている。The above system program memory 2
The MPU 1 is programmed so that the MPU 1 executes control of the entire PC and various processes, and performs a trace process in a process as shown in FIG. 7 only when an identification instruction described later is executed during execution of a user program. System programs are stored.
【0014】また、本実施例ではユーザの設定により図
2に示すようなフォーマット、つまり命令語として「M
ARK」、そのオペランドとしてこの命令自身を識別す
るための4bit の識別番号が設定された識別命令M1を
複数作成し、それらの識別命令M1を例えば図3に示す
ようにラダー言語で作成されたユーザプログラム11中
の任意の位置、特にジャンプ命令M2等の条件による分
岐実行の直後に格納しておく。その結果、このユーザプ
ログラム11は図4に示すようになり、ジャンプ命令M
2の前後等の任意の位置に上記識別命令M1が格納され
たものになる。なお、オペランドとしての識別番号は単
なる通し番号でも良いし、またユーザプログラム中にお
ける識別命令M1自身の格納位置を示す番号でもよく、
さらにその入力範囲等はインプリメントに依存して設定
される。Further, in this embodiment, the format as shown in FIG.
ARK ", a plurality of identification instructions M1 each having a 4-bit identification number for identifying the instruction itself as an operand thereof, and those identification instructions M1 being written in a ladder language as shown in FIG. 3, for example. The data is stored immediately after an arbitrary position in the program 11, particularly immediately after branch execution under conditions such as the jump instruction M2. As a result, the user program 11 becomes as shown in FIG.
The identification command M1 is stored at an arbitrary position such as before or after step 2. Note that the identification number as an operand may be a simple serial number or a number indicating the storage position of the identification instruction M1 itself in the user program.
Further, the input range and the like are set depending on the implementation.
【0015】次に、この実施例のユーザプログラムのト
レース方式の処理を、図5ないし図7に示すフローチャ
ートを参照して説明する。Next, the processing of the tracing method of the user program of this embodiment will be described with reference to the flowcharts shown in FIGS.
【0016】図5はユーザプログラムの実行を含めたP
Cの全体処理を示すフローチャートで、まずPCは電源
ONにより所定の初期処理を行う(ST10)。FIG. 5 shows P including execution of a user program.
In the flowchart showing the entire process of C, first, the PC performs a predetermined initial process by turning on the power (ST10).
【0017】次に、PCに接続される周辺装置(ツー
ル)の初期処理等の共通処理を行い(ST20)、ユー
ザプログラムが実行可能か否かを判定する(ST3
0)。Next, common processing such as initial processing of peripheral devices (tools) connected to the PC is performed (ST20), and it is determined whether a user program can be executed (ST3).
0).
【0018】ユーザプログラムが実行可能なら(ST3
0“Yes”)、その実行が初回の実行か否かを判定し
(ST40)、初回実行の場合には(ST40“Ye
s”)、I/Oメモリ8のクリア等のユーザプログラム
実行のための初期処理を行う一方(ST50)、初回実
行でない場合には(ST40“No ”)、そのままユー
ザプログラムを実行し(ST60)、I/Oメモリ8の
リフレッシュを行う(ST70)。If the user program is executable (ST3
0 “Yes”), it is determined whether or not the execution is the first execution (ST40).
s "), an initial process for executing the user program such as clearing of the I / O memory 8 is performed (ST50). If it is not the first execution (ST40" No "), the user program is executed as it is (ST60). , The I / O memory 8 is refreshed (ST70).
【0019】また、上記ユーザプログラム実行可能か否
かの判定のところで(ST30)、実行可能でない場合
には(ST30“No ”)、ユーザプログラムを実行せ
ずにI/Oメモリ8のリフレッシュを行う(ST7
0)。このように共通処理からI/Oメモリ8のリフレ
ッシュまでの各種処理(ST20〜70)を電源オン初
期処理後繰り返して、PCにおいてユーザプログラムが
実行される。When it is determined whether or not the user program can be executed (ST30), if the user program cannot be executed (ST30 "No"), the I / O memory 8 is refreshed without executing the user program. (ST7
0). As described above, the various processes (ST20 to ST70) from the common process to the refresh of the I / O memory 8 are repeated after the power-on initial process, and the PC executes the user program.
【0020】ところで、上記ユーザプログラムの命令実
行処理(ST60)は図6に示すように各命令毎に行わ
れ、まず最初にMPU1内で制御部(図示せず)がプロ
グラムカウンタ(図示せず)から次に実行すべき命令の
アドレスを読み込み(ST200)、そのアドレスが識
別命令「MARK」のものである場合や、転送命令「M
OV」およびジャンプ命令「JMP」等の通常の命令の
ものの場合でも、トレース実行の有/無の判断や実際の
データサンプリング処理を行わず、そのままそのアドレ
スに対応した命令をユーザプログラムメモリ4から読み
込む(ST210)。The instruction execution process (ST60) of the user program is performed for each instruction as shown in FIG. 6. First, a control unit (not shown) in the MPU 1 controls a program counter (not shown). , The address of the next instruction to be executed is read (ST200). If the address is that of the identification instruction "MARK", or the transfer instruction "M
Even in the case of ordinary instructions such as "OV" and a jump instruction "JMP", the instruction corresponding to the address is read from the user program memory 4 as it is without determining whether or not to execute the trace or performing actual data sampling processing. (ST210).
【0021】そして、命令を解析して(ST220)、
その命令が終了を示す終了命令「END」(図4参照)
であるか否かを判定し(ST230)、終了命令である
場合には(ST230“Yes”)、ユーザプログラムを
終了する一方、終了命令でない場合には(ST230
“No ”)、各命令内容に基づいた処理を実行し(ST
240)、プログラムカウンタの値を更新して(ST2
50)、次の命令実行のためにプログラムカウンタの読
み込み(ST200)へ戻る。Then, the instruction is analyzed (ST220),
End instruction “END” indicating the end of the instruction (see FIG. 4)
Is determined (ST230), and if it is a termination command (ST230 "Yes"), the user program is terminated, while if it is not a termination command (ST230).
"No"), and executes processing based on the contents of each instruction (ST).
240), and updates the value of the program counter (ST2).
50), and return to reading the program counter (ST200) to execute the next instruction.
【0022】その際、識別命令を実行するときだけ(S
T240)、図7に示すような本実施例によるトレース
処理を実行する。すなわち、同図に示すように最初にト
レース実行の設定が有るか無いかを判定し(ST30
0)、トレース実行の設定がある場合には(ST300
“Yes”)、その識別命令つまりプログラムカウンタに
格納されたアドレスに対応した識別命令のオペランドを
トレースメモリ4に格納してトレース処理を実行し(S
T310)、トレースメモリ4のデータ格納領域が無く
なった場合には(ST320“Yes”)、トレース実行
有りの設定をクリアしてトレース処理を終了し(ST3
30)、図6に示すように次の命令実行のためにプログ
ラムカウンタの値を更新し(ST250)、プログラム
カウンタの読み込み(ST200)へ戻る。At this time, only when the identification command is executed (S
T240), the trace processing according to the present embodiment as shown in FIG. 7 is executed. That is, as shown in the figure, it is first determined whether or not there is a setting for trace execution (ST30).
0), if there is a setting for trace execution (ST300)
“Yes”), the identification instruction, that is, the operand of the identification instruction corresponding to the address stored in the program counter is stored in the trace memory 4 and the trace processing is executed (S
If the data storage area in the trace memory 4 is exhausted (T320 “Yes”), the setting of tracing is cleared and the tracing process is ended (T3).
30), as shown in FIG. 6, the value of the program counter is updated for the execution of the next instruction (ST250), and the process returns to reading of the program counter (ST200).
【0023】このようにして、図6に示すプログラムカ
ウンタの読み込みから更新までの処理(ST200〜S
T250)、および図7に示すトレース処理(ST30
0〜330)を、ユーザプログラムの全ての命令実行が
終了するまで繰り返す。In this manner, the processing from reading to updating of the program counter shown in FIG.
T250), and the trace processing (ST30) shown in FIG.
0-330) is repeated until all instructions of the user program have been executed.
【0024】このため、上記のようにしてユーザプログ
ラム中の各命令が順次実行されれば、ユーザプログラム
中に格納された識別命令も順次実行されて、トレースメ
モリ4には図8のトレースメモリ4のメモリマップに示
すように、“0005”,“0000”,“0001”,“0002”,
・・・と識別命令のオペランドである識別番号が時系列
的に順次格納される一方、表示装置7には例えば図9に
示すようにトレースメモリ4上に時系列的に格納された
識別命令のオペランドがその命令語の「MARK」と共
に表示される。Therefore, if the instructions in the user program are sequentially executed as described above, the identification instructions stored in the user program are also executed sequentially, and the trace memory 4 shown in FIG. "0005", "0000", "0001", "0002",
.. And the identification numbers, which are the operands of the identification instructions, are sequentially stored in chronological order, while the display device 7 stores the identification instructions stored in chronological order on the trace memory 4 as shown in FIG. The operand is displayed together with the instruction “MARK”.
【0025】従って、本実施例によれば、ユーザは上述
のような識別命令をユーザプログラム中の任意の位置に
設定し、ユーザプログラムの実行後に表示装置7に表示
された識別命令のオペランドである識別番号を観察する
ことにより、ユーザプログラムの命令実行軌跡を検出す
ることができるので、ユーザプログラムの各命令毎に必
要とされていたトレースのための判断処理や、実際のデ
ータサンプリング処理が必要無くなり、従来の方式と比
較してより実処理速度に近い形でユーザプログラムの実
行軌跡のトレースが可能となると共に、トレースメモリ
4の容量が少なくて済むようになる。Therefore, according to the present embodiment, the user sets the above-described identification command at an arbitrary position in the user program, and is the operand of the identification command displayed on the display device 7 after the execution of the user program. By observing the identification number, the instruction execution trajectory of the user program can be detected, so that the judgment processing for tracing and the actual data sampling processing required for each instruction of the user program become unnecessary. Thus, the trace of the execution locus of the user program can be traced in a form closer to the actual processing speed as compared with the conventional method, and the capacity of the trace memory 4 can be reduced.
【0026】尚、図8上、サンプリングスタートポイン
トとはトレースメモリ4上でのデータサンプリングのス
タート位置を示すポインタであり、サンプリング現ポイ
ンタとはトレースメモリ4上での最終サンプリングデー
タの格納位置を示すポインタである。In FIG. 8, the sampling start point is a pointer indicating the start position of the data sampling on the trace memory 4, and the sampling current pointer indicates the storage position of the last sampling data on the trace memory 4. It is a pointer.
【0027】[0027]
【発明の効果】以上説明したように、本発明では、命令
自身を識別するための識別番号がオペランドとして設け
られている識別命令をユーザプログラム中の任意の位置
に設定し、ユーザプログラム実行中に上記識別命令が実
行された時だけ、その識別命令の識別番号がメモリに格
納して、その識別番号を表示装置に表示させる等の方式
により周辺ツールにてユーザが参照できるようにしたの
で、従来まではユーザプログラムの各命令毎に必要とさ
れていたトレース実行の有/無の判断や実際のデータサ
ンプリング処理が必要でなくなり、実時間に近い処理速
度でユーザプログラムの命令実行軌跡をトレースできる
と共に、トレースのためのメモリ容量が少なくて済むよ
うになる。As described above, according to the present invention, an identification instruction in which an identification number for identifying the instruction itself is provided as an operand is set at an arbitrary position in the user program, and during execution of the user program, Only when the above-mentioned identification instruction is executed, the identification number of the identification instruction is stored in the memory, and the identification number is displayed on a display device. Until now, it is no longer necessary to determine whether or not trace execution is required for each instruction of the user program, and to perform actual data sampling processing, and trace the instruction execution locus of the user program at a processing speed close to real time. Thus, the memory capacity for tracing can be reduced.
【0028】このため、トレースサンプリングに要する
処理時間によるオーバーヘッドタイムを必要最低限に押
さえることができるので、ユーザプログラムのデバッグ
手段としてその作業工数を大幅に削減することが可能と
なる。As a result, the overhead time due to the processing time required for trace sampling can be minimized, so that the number of work steps as debugging means for a user program can be greatly reduced.
【0029】また、ユーザが必要とするレベルでこの命
令を使用する数および位置を選択することができるの
で、必要最低限のトレースサンプリングだけを行うこと
ができ、それに必要とされるトレースメモリの使用量も
押さえられることにより、長時間にわたるトレース処理
の継続が可能となる。Further, since the number and position of using this instruction can be selected at the level required by the user, only the minimum necessary trace sampling can be performed, and the required use of the trace memory is required. By suppressing the amount, the tracing process can be continued for a long time.
【図1】本発明に係るPCの概略構成を示すブロック
図。FIG. 1 is a block diagram showing a schematic configuration of a PC according to the present invention.
【図2】本実施例におけるトレース機能を有する識別命
令の一例を示す説明図。FIG. 2 is an explanatory diagram illustrating an example of an identification instruction having a trace function according to the embodiment;
【図3】ユーザプログラムの一例を示す説明図。FIG. 3 is an explanatory diagram showing an example of a user program.
【図4】本実施例による識別命令が格納されたユーザプ
ログラムの一例を示す説明図。FIG. 4 is an explanatory diagram showing an example of a user program in which an identification command according to the embodiment is stored.
【図5】PCの全体処理を示すフローチャート。FIG. 5 is a flowchart showing the overall processing of the PC.
【図6】本実施例によるトレース実行処理を示すフロー
チャート。FIG. 6 is a flowchart illustrating a trace execution process according to the embodiment;
【図7】本実施例による識別命令の実行処理を示すフロ
ーチャート。FIG. 7 is a flowchart illustrating processing for executing an identification command according to the embodiment;
【図8】本実施例により識別命令が格納されたトレース
メモリの状態を示すメモリマップ。FIG. 8 is a memory map showing a state of a trace memory in which an identification instruction is stored according to the embodiment.
【図9】本実施例によるトレース結果を表示装置に示し
た場合の一例を示す説明図。FIG. 9 is an explanatory diagram illustrating an example of a case where a trace result according to the present embodiment is displayed on a display device.
【図10】従来のトレース実行処理を示すフローチャー
ト。FIG. 10 is a flowchart showing a conventional trace execution process.
1 マイクロプロセッサ2 システムプログラ
ムメモリ3 ワーキングメモリ4 トレースメ
モリ5 ユーザプログラムメモリ6 キーボー
ド7 表示装置8 I/Oメモリ9 イン
タフェース10 内部バスDESCRIPTION OF SYMBOLS 1 Microprocessor 2 System program memory 3 Working memory 4 Trace memory 5 User program memory 6 Keyboard 7 Display device 8 I / O memory 9 Interface 10 Internal bus
フロントページの続き (58)調査した分野(Int.Cl.6,DB名) G05B 19/04 - 19/05 Continuation of front page (58) Field surveyed (Int.Cl. 6 , DB name) G05B 19/04-19/05
Claims (1)
列的にメモリに記憶させ、表示装置に表示させる等の方
法により周辺ツールにてユーザが参照できるようにする
プログラマブルコントローラにおけるユーザプログラム
のトレース方式において、命令自身を識別するための識
別番号がオペランドとして設定されている識別命令を上
記ユーザプログラム中の任意の位置に格納し、上記ユー
ザプログラムの実行中に上記識別命令が実行された時だ
けその識別命令の上記識別番号をメモリに記憶させ、上
記メモリに格納された上記識別番号を周辺ツールにてユ
ーザが参照できるようにしたことを特徴とするプログラ
マブルコントローラにおけるユーザプログラムのトレー
ス方式。1. A tracing method of a user program in a programmable controller, wherein a user's instruction execution locus is stored in a memory in a time-series manner and displayed on a display device so that a user can refer to the peripheral tool by a user. Storing an identification instruction in which an identification number for identifying the instruction itself is set as an operand at an arbitrary position in the user program, and identifying the identification instruction only when the identification instruction is executed during execution of the user program. A trace method for a user program in a programmable controller, wherein the identification number of an instruction is stored in a memory, and a user can refer to the identification number stored in the memory with a peripheral tool.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP40275190A JP2906382B2 (en) | 1990-12-17 | 1990-12-17 | Trace method of user program in programmable controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP40275190A JP2906382B2 (en) | 1990-12-17 | 1990-12-17 | Trace method of user program in programmable controller |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH04216103A JPH04216103A (en) | 1992-08-06 |
JP2906382B2 true JP2906382B2 (en) | 1999-06-21 |
Family
ID=18512544
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP40275190A Expired - Fee Related JP2906382B2 (en) | 1990-12-17 | 1990-12-17 | Trace method of user program in programmable controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2906382B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007280378A (en) * | 2006-03-15 | 2007-10-25 | Omron Corp | Programmable controller system |
-
1990
- 1990-12-17 JP JP40275190A patent/JP2906382B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JPH04216103A (en) | 1992-08-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3024422B2 (en) | Programmable controller and method of operating programmable controller | |
JP2544960B2 (en) | Programmable controller | |
JP3358759B2 (en) | Data trace method for programmable controller | |
JP2906382B2 (en) | Trace method of user program in programmable controller | |
JPH10214203A (en) | Information processor | |
JP3152178B2 (en) | Lock operation measurement method | |
JP3356662B2 (en) | Process data collection method and programmable display device | |
JP3404730B2 (en) | Program update detection method for programming device | |
JPH1091477A (en) | Control microcomputer device and maintenance tool for the same | |
JP2551075B2 (en) | Overlay structure program execution method | |
JPH02220145A (en) | Program tracing system | |
JPH01191269A (en) | Image controller | |
JP3129889B2 (en) | Numerical control unit | |
JPH05143391A (en) | Memory tracing method for virtual storage type computer | |
JPH08320813A (en) | Program simulator device and program debugging method | |
JPH07160312A (en) | Programmable controller programming device | |
JPH04332003A (en) | programmable controller | |
JPH04218804A (en) | Programmable controller | |
JPH0795288B2 (en) | Microcomputer | |
JPS63217431A (en) | Program execution analysis monitoring method | |
JPH07281924A (en) | Trace device and emulator equipped with the same | |
JPH10207737A (en) | Emulator and emulation system | |
JPH0772874B2 (en) | Interrupt receiving device | |
JPS5829057A (en) | Trace device for register | |
JPH02197932A (en) | Regenerating device for abnormal phenomenon of computer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 19990226 |
|
LAPS | Cancellation because of no payment of annual fees |