JPS63206802A - Programmable controller - Google Patents
Programmable controllerInfo
- Publication number
- JPS63206802A JPS63206802A JP3969387A JP3969387A JPS63206802A JP S63206802 A JPS63206802 A JP S63206802A JP 3969387 A JP3969387 A JP 3969387A JP 3969387 A JP3969387 A JP 3969387A JP S63206802 A JPS63206802 A JP S63206802A
- Authority
- JP
- Japan
- Prior art keywords
- trace
- user program
- memory
- data
- program
- 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
Links
Landscapes
- Programmable Controllers (AREA)
Abstract
Description
【発明の詳細な説明】
(発明の分野)
この発明は、トレース機能を備えたプログラマブル・コ
ントローラの改良に関する。DETAILED DESCRIPTION OF THE INVENTION Field of the Invention This invention relates to improvements in programmable controllers with trace functionality.
(発明の概要)
この発明では、ユーザプログラムから各ユーザ命令語を
順次に読出し、読出されたユーザ命令語を解読し、トレ
ース処理の実行指令が解読されるのに応答して、設定さ
れた入出力データをトレースメモリ内の該当時点エリア
に記憶させるようにしたもので、このような構成によれ
ばユーザプログラム中にトレース処理の実行指令に相当
する命令語を記述することによって、プログラム実行サ
イクル中の任意の時点におけるトレース処理が可能とな
り、デバッグにおける使い勝手を向上させることができ
る。(Summary of the Invention) In the present invention, each user instruction word is sequentially read from a user program, the read user instruction word is decoded, and in response to the decoding of a trace processing execution command, a set input The output data is stored in the corresponding point-in-time area in the trace memory. According to this configuration, by writing a command word corresponding to the trace processing execution command in the user program, the output data can be stored in the trace processing execution cycle. It is possible to perform trace processing at any point in time, which improves usability in debugging.
(従来技術とその問題点)
従来、トレース機能を備えたプログラマブル・コントロ
ーラとしては、例えば三菱電機株式会社製プログラマブ
ル・コントローラムシリーズが知られている。(Prior art and its problems) Conventionally, as a programmable controller with a trace function, for example, the programmable controller series manufactured by Mitsubishi Electric Corporation is known.
このようなプログラマブル・コントローラにあっては、
トレース機能実現に必要なデータサンプリングタイミン
グを、第7図(a)に示されるようにユーザプログラム
の毎スキャン実行終了のたびに設定するか、あるいは同
図(b)に示されるように、スキャンタイムとは無関係
に、一定時間毎に設定するのが通例であった。In such a programmable controller,
The data sampling timing required to realize the trace function can be set each time the user program finishes executing each scan, as shown in FIG. It was customary to set it at regular intervals, regardless of the
しかしながら、ユーザプログラムの毎スキャン実行終了
のたびに設定する場合におっては、次のような問題点が
あった。However, in the case where the settings are made every time the execution of each scan of the user program is completed, there are the following problems.
すなわち、第8図(a)に示されるように、Oチャンネ
ルのデータと1チヤンネルのデータとを加算(ADD)
し、その加算結果を10チヤンネルに記憶させ、次い
で10チヤンネルのデータを2チヤンネルのデータで除
算(DIV)し、その除算結果を10チヤンネルに記憶
させる旨の記述を行なうと、同図(b)に示されるよう
に、10チヤンネルのデータはADD命令の実行時点及
びDIV命令の実行時点において1スキヤン内に2回変
化するわけであるが、同図(C)に示されるように、サ
ンプリングタイミングは毎スキャンの終了時点のみに設
定されている結果、トレースデータとしてはDIV命令
の実行結果だけしか得ることができず、このためADD
命令の実行結果に誤りがあっても、デバッグに際しこれ
を確認することができない。That is, as shown in FIG. 8(a), the O channel data and the 1 channel data are added (ADD).
Then, if we write that the addition result is stored in channel 10, then the data of channel 10 is divided (DIV) by the data of channel 2, and the result of the division is stored in channel 10, the result is shown in the same figure (b). As shown in Figure (C), the data of the 10 channels changes twice within one scan at the time of execution of the ADD instruction and the time of execution of the DIV instruction, but as shown in Figure (C), the sampling timing is As a result of being set only at the end of each scan, only the execution results of the DIV instruction can be obtained as trace data, so ADD
Even if there is an error in the execution result of an instruction, it cannot be confirmed during debugging.
また、サンプリングタイミングをユーザプログラムの実
行サイクルとは無関係に、一定時間毎に設定する場合に
あっては、ユーザプログラムの実行サイクルよりもサン
プリング間隔が長ければ何れかの実行サイクルにおいて
サンプリング扱けを生じ、他方実行サイクルよりもサン
プリング間隔が短ければ、何れかの実行サイクルにおい
て重複サンプリングが行なわれるほか、サンプリング間
隔が余り短いと、サンプリングデータが増大して、大容
量のトレースメモリが必要となる等の問題がめった。Additionally, if the sampling timing is set at regular intervals regardless of the execution cycle of the user program, if the sampling interval is longer than the execution cycle of the user program, sampling may not be handled in any execution cycle. On the other hand, if the sampling interval is shorter than the execution cycle, duplicate sampling will be performed in any execution cycle, and if the sampling interval is too short, the sampling data will increase and a large capacity trace memory will be required. I ran into problems.
(発明の目的)
この発明の目的は、ユーザプログラムの実行サイクル中
の任意の時点において設定された出力データのサンプリ
ングを行なってこれを時系列的に記憶させ、得られた時
系列データに基づいて所望の入出力についてトレース機
能を実現でき、また限られた容量のトレースメモリを有
効に利用して、デバッグ等を効率よく行なうことができ
るようにしたプログラマブル・コントローラを提供する
ことにある。(Object of the Invention) An object of the present invention is to sample output data set at any point in the execution cycle of a user program, store this in chronological order, and store the output data in chronological order based on the obtained chronological data. It is an object of the present invention to provide a programmable controller which can realize a trace function for desired input/output and can efficiently perform debugging etc. by effectively utilizing a limited capacity trace memory.
(発明の構成と効果)
この発明は上記の目的を達成するために、ユーザプログ
ラムから各ユーザ命令六Rを順次に読出す命令読出手段
と、
読出されたユーザ命令語を解読する命令@読手段と、
トレース処理の実行指令が解読されるのに応答して、設
定された入出力データをトレースメモリ内の該当時点エ
リアに記憶させるトレース実行手段と、
を具備することを特徴とするものである。(Structure and Effect of the Invention) In order to achieve the above object, the present invention includes an instruction reading means for sequentially reading each user instruction 6R from a user program, and an instruction@reading means for decoding the read user instruction word. and trace execution means for storing set input/output data in a corresponding point-in-time area in the trace memory in response to decoding of a trace processing execution command. .
このような構成によれば、ユーザプログラムの実行サイ
クル中の任意の時点において設定された出力データのサ
ンプリングを行なってこれを時系列的に記憶させ、得ら
れた時系列データに基づいて所望の入出力についてトレ
ース機能を実現でき、また限られた容量のトレースメモ
リを有効に利用して、デバッグ等を効率よく行なうこと
ができるという効果がある。According to such a configuration, the set output data is sampled at any time during the execution cycle of the user program, and is stored in chronological order, and the desired input data is stored based on the obtained time-series data. This has the advantage that a trace function can be realized for output, and the limited capacity of trace memory can be effectively used to efficiently perform debugging and the like.
(実施例の説明)
第1図は本発明に係るプログラマブル・コントローラ全
体の外観を示す模式図である。(Description of Embodiments) FIG. 1 is a schematic diagram showing the overall appearance of a programmable controller according to the present invention.
同図に示されるように、このプログラマブル・コントロ
ーラはいわゆるビルディング・ブロック・タイプのもの
であって、演算ユニット1とI10ユニット群2とから
構成され、また演算ユニット1にはコード4を介してグ
ラフィック・プログラミング・ツール3が接続可能にな
されている。As shown in the figure, this programmable controller is of a so-called building block type and is composed of an arithmetic unit 1 and an I10 unit group 2. - Programming tool 3 is connectable.
第2図に示されるように、演算ユニット1はMPU10
.システムプログラムメモリ11.ワークメモリ12.
ユーザプログラムメモリ13.トレースメモリ14.I
10メモリ15を備えており、またI10インターフェ
ース16を介して■10ユニット群2に接続されるとと
もに、ツール用インターフェース17を介してグラフィ
ック・プログラミング・ツール3に接続されている。As shown in FIG. 2, the arithmetic unit 1 is an MPU 10
.. System program memory 11. Work memory 12.
User program memory 13. Trace memory 14. I
10 memory 15, and is connected to the 10 unit group 2 via an I10 interface 16, and to the graphic programming tool 3 via a tool interface 17.
MPU10ではシステムプログラムメモリ11に格納さ
れたシステムプログラム、を実行することによって、プ
ログラマブル・コントローラに必要な各種の機能を実現
するようになされている。The MPU 10 executes a system program stored in a system program memory 11 to realize various functions necessary for the programmable controller.
プログラマブル・コントローラに必要な基本的な機能と
しては、よく知られているように、■10ユニット群2
から読込まれた入力データを、I10メモリ15の該当
入カニリアに杏込む入力更新機能、ユーザプログラムメ
モリ13から各ユーザ命令語を順次読出すとともにこれ
を解読し、各解読結果に従ってI10メモリ15のデー
タを参照して必要な論理演算等を行ない、OUT命令語
の解読に応答して、演算結果をI10メモリ15の出カ
ニリアに書込む命令実行機能、全ての命令の実行が終了
した後、I10メモリ15の出力データを、I10ユニ
ット群2を介して外部へと送出する出力更新機能、その
他プログラム書込、七二夕等を行なうシステムサービス
機能が存在する。As is well known, the basic functions required for a programmable controller are ■ 10 unit groups 2
The input update function stores the input data read from the I10 memory 15 into the corresponding input canister, reads out each user instruction word from the user program memory 13 sequentially, decodes it, and updates the data in the I10 memory 15 according to each decoding result. An instruction execution function that performs necessary logical operations, etc. with reference to There are an output update function that sends the 15 output data to the outside via the I10 unit group 2, and a system service function that performs other program writing, Tanabata festival, etc.
これらの機能の中で、本発明と関わりがあるのは、命令
実行機能及びシステムサービス機能であって、以下これ
らの機能について、第3図に示されるシステムプログラ
ムのフローチャートを参照しながら詳細な説明を行なう
。Among these functions, the ones that are related to the present invention are the instruction execution function and the system service function, and a detailed explanation of these functions will be given below with reference to the flowchart of the system program shown in FIG. Do this.
電源投入によりシステムプログラムがスタートされると
、公知の電源ON初期処理が行なわれ、各種フラグ、レ
ジスタ類の初期設定その他I10ユニット群のチャンネ
ル認識等が行なわれる(ステップ301)。When the system program is started by turning on the power, a well-known power-on initialization process is performed, and various flags, initial settings of registers, channel recognition of the I10 unit group, etc. are performed (step 301).
電源ON初期処理が終了すると、いわゆる入力更新処理
が行なわれ、I10ユニット群2を構成するI10ユニ
ットから読込まれた入力データは、I10メモリ15の
入カニリアへと格納される(ステップ302)。When the power-on initial processing is completed, a so-called input update processing is performed, and the input data read from the I10 units constituting the I10 unit group 2 is stored in the input canister of the I10 memory 15 (step 302).
入力更新処理が終了すると、ユーザプログラムの実行処
理が行なわれる(ステップ303)。そして、このユー
ザプログラム実行処理において、本発明に係るトレース
用のサンプリング処理を行なうわけであるが、その詳細
については後にまとめて説明することとして、まずユー
ザプログラム実行処理の基本的な動作について説明する
。When the input update process is completed, a user program execution process is performed (step 303). In this user program execution process, sampling processing for tracing according to the present invention is performed, and the details will be explained later, but first, the basic operation of the user program execution process will be explained. .
まず、プログラムカウンタに従ってユーザプログラムメ
モリ13から各ユーザ命令語を読出すとともにこれを解
読し、その解読結果(例えばLD。First, each user instruction word is read out from the user program memory 13 according to the program counter and decoded, and the decoding result (for example, LD.
AND、OR,0LJT、CNT、TIM等)に応じて
該当する論理演算、数値演算等を行ない、最終的な演算
結果をI10メモリ15の該当エリアに書込む。そして
、ユーザプログラムメモリから読出された命令語がEN
D命令であると解読されるのを待って、ユーザプログラ
ムの実行処理を終了するわけである。(AND, OR, 0LJT, CNT, TIM, etc.), the corresponding logical operations, numerical operations, etc. are performed, and the final operation results are written into the corresponding area of the I10 memory 15. Then, the instruction word read from the user program memory is EN
The execution process of the user program is terminated after waiting for it to be decoded as a D instruction.
ユーザプログラムの実行処理が終了すると、出力更新処
理が行なわれ、I10メモリ15の出カニリアのデータ
はI10ユニット群2のOUTユニットを介して外部へ
と送出されるわけである。When the execution process of the user program is completed, the output update process is performed, and the data in the output canister of the I10 memory 15 is sent to the outside via the OUT unit of the I10 unit group 2.
このようにして出力更新処理が終了すると、トレース処
理に必要な各種の処理(ステップ305〜308)が実
行されるわけでおるが、これらの処理についても後にま
とめて説明を行なう。When the output update process is completed in this way, various processes (steps 305 to 308) necessary for the trace process are executed, and these processes will also be explained later.
次いで、その他のシステムサービス処理(ステップ30
9)では、グラフィック・プログラミング・ツール3か
らの指令を受けて、プログラミング処理、モタ処理等の
公知の各種のシステムサービス処理を行なうわけである
。Next, other system service processing (step 30
In step 9), various known system service processes such as programming processing and motor processing are performed in response to instructions from the graphic programming tool 3.
そして、以上述べた入力更frffi理(ステップ3
02)、ユーザプログラム実行処理(ステップ
3o3)、出力更新処理(ステップ304)、システム
サービス処理(ステップ305〜309)を高速でサイ
クリックに実行するわけである。Then, the input modification frffi procedure described above (step 3
02), user program execution processing (step 3o3), output update processing (step 304), and system service processing (steps 305 to 309) are executed cyclically at high speed.
次に、トレース機能を実現するための各種の処理につい
て順に説明する。Next, various processes for realizing the trace function will be explained in order.
今仮に、10チヤンネル、20チヤンネル、40チヤン
ネルの各データについて、各命令サイクル中の特定時点
における状態をトレースする場合を想定する。Assume now that the state of each data of channels 10, 20, and 40 at a specific point in time during each instruction cycle is to be traced.
この場合、グラフィック・プログラミング・ツール3の
キー操作によって、トレースメモリ14内の所定エリア
にトレースパラメータとして10チヤンネル、20チヤ
ンネル、40チヤンネルをそれぞれ記憶させる。In this case, 10 channels, 20 channels, and 40 channels are respectively stored as trace parameters in predetermined areas in the trace memory 14 by key operations on the graphic programming tool 3.
すなわち、グラフィック・プログラミング・ツール3に
おいてパラメータ設定要求に相当するキー操作を行なう
と、これが演算ユニット1側のシステムプログラムによ
って検出され(ステップ3051定)、演算ユニット1
側ではグラフィック・プログラミング・ツール3で指定
されたパラメータ(10チヤンネル、20チヤンネル、
40チヤンネル)を、トレースメモリ14内の所定エリ
アに第4図に示されるようにセットするわけである。That is, when a key operation corresponding to a parameter setting request is performed on the graphic programming tool 3, this is detected by the system program on the calculation unit 1 side (step 3051), and the
On the side, the parameters specified by the graphic programming tool 3 (10 channels, 20 channels,
40 channels) are set in a predetermined area in the trace memory 14 as shown in FIG.
一方、今仮に10チヤンネルのデータを、第5図(b)
に示されるように、ADD命令の実行時点直後、OtV
命令の実行直後にそれぞれサンプルしたい場合、同図(
a)に示されるように、ユーザプログラム中におけるA
DD命令の直後及びDIV命令の直後にそれぞれトレー
ス処理の実行指令を意味するトレース命令TR3Mを記
述するわけである。On the other hand, suppose the data of 10 channels is shown in Fig. 5(b).
As shown in , immediately after the execution of the ADD instruction, OtV
If you want to sample each instruction immediately after execution, use the same figure (
As shown in a), A in the user program
The trace command TR3M, which means a trace processing execution command, is written immediately after the DD command and immediately after the DIV command, respectively.
その後第3図に示されるシステムプログラムにおいて、
ユーザプログラムの実行が開始されると(ステップ30
3)、まずプログラムカウンタをユーザプログラムのO
番地にセットした後(ステップ3031)、以後プログ
ラムカウンタを+1ずつ歩進させながら(ステップ30
36) 、プログラムカウンタで指定される命令語をユ
ーザプログラムメモリ13から順次読出し、これを解読
する。After that, in the system program shown in FIG.
When execution of the user program starts (step 30
3) First, set the program counter to O of the user program.
After setting the address (step 3031), the program counter is incremented by +1 (step 30).
36) Sequentially reads the instruction words specified by the program counter from the user program memory 13 and decodes them.
そして、読出された命令語がよく知られたLD。Then, the read command word is a well-known LD.
AND、OR,OUT、TIM、CNT等であれば、各
命令に対応した公知の命令実行処理を行なう(ステップ
3035)。If it is AND, OR, OUT, TIM, CNT, etc., a known instruction execution process corresponding to each instruction is performed (step 3035).
これに対して、読出された命令を解読した結果、これが
T、R3M命令と解読されると(ステップ3033肯定
)、本発明に係るサンプリング処理が行なわれる(ステ
ップ3034)。On the other hand, if the read instruction is decoded as a T, R3M instruction (Yes at step 3033), sampling processing according to the present invention is performed (step 3034).
このサンプリング処理では、第4図に示されるようにト
レースメモリ上に設定されたトレースパラメータ10チ
ヤンネル、20チヤンネル、40チヤンネルを参照し、
各チャンネルのデータをI10メモリ15から読出し、
これをポインタPで指定されるトレースメモリ内の該当
時点エリアに格納した後、ポインタPの値を+1更新し
てサンプリング処理を終了する。In this sampling process, trace parameters 10 channels, 20 channels, and 40 channels set on the trace memory are referred to as shown in FIG.
Read the data of each channel from the I10 memory 15,
After storing this in the corresponding time point area in the trace memory specified by pointer P, the value of pointer P is updated by +1 and the sampling process is ended.
このようにして、ユーザプログラムから読出された各命
令語を順次解読するうちに、END命令の解読が確認さ
れるとくステップ3032肯定)、ユーザプログラムの
実行処理は終了し、前述した出力更新処理へと移行する
わけである。In this way, while each instruction word read from the user program is sequentially decoded, when the decoding of the END command is confirmed (Yes at step 3032), the user program execution process ends and the process returns to the output update process described above. This is the reason for the transition.
このようにして、ユーザプログラムの実行処理が繰り返
されると、第5図(b)に示されるように、10チヤン
ネルのデータはADD命令、DIV命令の実行直後にそ
れぞれトレースデータとしてサンプルされることとなり
、サンプルされたデータはトレースメモリ14内に時系
列的に格納されることとなる。In this way, when the user program execution process is repeated, the data of 10 channels will be sampled as trace data immediately after the execution of the ADD and DIV instructions, as shown in FIG. 5(b). , the sampled data will be stored in the trace memory 14 in chronological order.
一方、トレースメモリからサンプル結果たるトレースデ
ータを読出すには、グラフィック・プログラミング・ツ
ール3においてトレースデータ読出指令に相当するキー
操作を行なう。On the other hand, in order to read trace data, which is a sample result, from the trace memory, a key operation corresponding to a trace data read command is performed in the graphic programming tool 3.
すると、第3図に示されるように、演算ユニット側にお
いてトレースデータ読出指令が検出され(ステップ30
7肯定)、続いて演算ユニット1側ではトレースメモリ
14内に格納したトレースデータをグラフィック・プロ
グラミング・ツール3側へと送信する。そして、この送
信されたトレースデータは、グラフィック・プログラミ
ング・ツール3の画面3a上に数字列あるいはタイムチ
ャート等としてロジックアナライザの如く表示されるわ
けである。Then, as shown in FIG. 3, a trace data read command is detected on the arithmetic unit side (step 30).
7 (affirmative), then the arithmetic unit 1 side transmits the trace data stored in the trace memory 14 to the graphic programming tool 3 side. The transmitted trace data is then displayed on the screen 3a of the graphic programming tool 3 as a string of numbers, a time chart, etc., like a logic analyzer.
なお、グラフィック・プログラミング・ツール3の画面
3a上にトレースデータを表示させる手法については、
この種の技術分野においては周知であるから詳細な説明
は省略する。Regarding the method of displaying trace data on the screen 3a of the graphic programming tool 3,
Since this type of technology is well known in the technical field, detailed explanation will be omitted.
このように本実施例によれば、第5図に示されるように
、ユーザプログラム中の所望の箇所にトレース命令TR
3Mを記述することによって、命令実行サイクル中の任
意の時点における任意の■10データの状態をサンプル
させることができ、従って同図(b)に示されるように
、ADD命令。According to this embodiment, as shown in FIG. 5, the trace instruction TR is placed at a desired location in the user program.
By writing 3M, it is possible to sample the state of any 10 data at any time during the instruction execution cycle, and therefore the ADD instruction as shown in FIG.
DIV命令の各実行の結果、同一のチャンネルデータが
2回変化するような場合には、各変化時点におけるデー
タを確認し、グラフィック・プログラミング・ツール3
の画面3aを介して効率のよいデバッグ等を行なうこと
ができる。If the same channel data changes twice as a result of each execution of the DIV command, check the data at each change point and use the graphic programming tool 3.
Efficient debugging etc. can be performed via the screen 3a.
また、トレース命令の構成としては、第5図(a)に示
されるものに限られるものではなく、第6図(a>に示
されるように、いくつかの入力条件をラダー図の形で付
は加えたり、あるいは同図(b)に示されるように、あ
る論理条件が成立しくS)かつある論理条件が成立した
タイミング(T)に限って、トレース命令の実行指令を
与えたり、あるいは同図(C)に示されるように、トレ
ース命令のオペランドにおいて直接にチャンネル指定を
行なう等の変形は、この種のプログラマブル・コントロ
ーラの技術者においては容易に行なえることは勿論でお
る。Furthermore, the structure of the trace command is not limited to that shown in FIG. 5(a), but as shown in FIG. 6(a), several input conditions are added in the form of a ladder diagram. Or, as shown in Figure (b), a trace instruction execution command is given only at the timing (T) when a certain logical condition is satisfied (S) and a certain logical condition is satisfied. It goes without saying that engineers of this type of programmable controller can easily make modifications such as directly specifying a channel in the operand of a trace instruction, as shown in FIG. 3C.
すなわち、第6図(a)の例によれば、任意の論理条件
が成立している期間に限りサンプリング処理を行なわせ
ることができ、また同図(b)に示される例によれば、
ある論理条件が成立しかつあるタイミングが到来したと
きに限り以後継続的にサンプリング処理を行なわせるこ
とができ、更に同図(C)の例によれば、プログラムを
モニタさせた場合、グラフィック・プログラミング・ツ
ール3の画面3a上に直接チャンネルデータを表示させ
ることができるため、プログラム解析等には非常に便利
なものとなる。That is, according to the example shown in FIG. 6(a), sampling processing can be performed only during a period when an arbitrary logical condition is satisfied, and according to the example shown in FIG. 6(b),
Sampling processing can be performed continuously only when a certain logical condition is satisfied and a certain timing has arrived.Furthermore, according to the example in FIG. - Channel data can be displayed directly on the screen 3a of the tool 3, making it very convenient for program analysis, etc.
第1図は本発明に係るプログラマブル・コントローラ全
体の外観を示す模式図、第2図は同電気的ハードウェア
構成を示すブロック図、第3図は同ソフトウェア構成を
示すフローチャート、第4図はトレースメモリの内容を
示すメモリマツプ、第5図はユーザプログラム例、トレ
ースデータの変遷を示す説明図、第6図はトレース命令
の別の例を示すラダー図、第7図は従来装置におけるサ
ンプリングタイミングを示すタイムチャート、第8図は
従来装置におけるプログラム例、サンプリングタイミン
グ、トレースデータの変遷を示す説明図である。
1・・・・・・演算ユニット
2・・・・・・I10ユニット群
3・・・・・・グラフィック・プログラミング・ツール
14・・・・・・トレースメモリ
TR3M・・・トレース命令
特許出願人 立石電機株式会社
第1図
第2図
1(請耳ユニーIト)
第3図
第4図
(トレース ′P石り)
第5図
(a)
第6図
(a)(b)(c)
第7因
第8図
(a)
(bノFIG. 1 is a schematic diagram showing the overall appearance of the programmable controller according to the present invention, FIG. 2 is a block diagram showing the electrical hardware configuration, FIG. 3 is a flowchart showing the software configuration, and FIG. 4 is a trace diagram. A memory map showing the contents of the memory, Fig. 5 is an example of a user program, an explanatory diagram showing the transition of trace data, Fig. 6 is a ladder diagram showing another example of a trace command, and Fig. 7 shows sampling timing in a conventional device. The time chart in FIG. 8 is an explanatory diagram showing a program example, sampling timing, and changes in trace data in a conventional device. 1... Arithmetic unit 2... I10 unit group 3... Graphic programming tool 14... Trace memory TR3M... Trace instruction patent applicant Tateishi Denki Co., Ltd. Figure 1 Figure 2 Figure 1 (Ukemi Unit I) Figure 3 Figure 4 (Trace 'P stone) Figure 5 (a) Figure 6 (a) (b) (c) Figure 7 Figure 8 (a) (b)
Claims (1)
出す命令読出手段と、 読出されたユーザ命令語を解読する命令解読手段と、 トレース処理の実行指令が解読されるのに応答して、設
定された入出力データをトレースメモリ内の該当時点エ
リアに記憶させるトレース実行手段と、 を具備することを特徴とするプログラマブル・コントロ
ーラ。(1) A command reading means for sequentially reading each user command from a user program, a command decoding means for decoding the read user command, and a setting in response to decoding of a trace processing execution command. A programmable controller comprising: trace execution means for storing the input/output data that has been input/output in a corresponding point-in-time area in a trace memory;
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3969387A JPS63206802A (en) | 1987-02-23 | 1987-02-23 | Programmable controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3969387A JPS63206802A (en) | 1987-02-23 | 1987-02-23 | Programmable controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPS63206802A true JPS63206802A (en) | 1988-08-26 |
Family
ID=12560118
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3969387A Pending JPS63206802A (en) | 1987-02-23 | 1987-02-23 | Programmable controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS63206802A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2016085559A (en) * | 2014-10-24 | 2016-05-19 | ファナック株式会社 | Programmable controller for sampling signal address of SFC active state step |
| JP2019016326A (en) * | 2017-07-11 | 2019-01-31 | 株式会社キーエンス | Programmable logic controller and data collection device |
| JP2019016327A (en) * | 2017-07-11 | 2019-01-31 | 株式会社キーエンス | Programmable logic controller, data collection device, and program creation support device |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5459581A (en) * | 1977-10-19 | 1979-05-14 | Toyoda Mach Works Ltd | Sequence controller |
| JPS61156339A (en) * | 1984-12-27 | 1986-07-16 | Fujitsu Ltd | Trace processing system |
-
1987
- 1987-02-23 JP JP3969387A patent/JPS63206802A/en active Pending
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5459581A (en) * | 1977-10-19 | 1979-05-14 | Toyoda Mach Works Ltd | Sequence controller |
| JPS61156339A (en) * | 1984-12-27 | 1986-07-16 | Fujitsu Ltd | Trace processing system |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2016085559A (en) * | 2014-10-24 | 2016-05-19 | ファナック株式会社 | Programmable controller for sampling signal address of SFC active state step |
| JP2019016326A (en) * | 2017-07-11 | 2019-01-31 | 株式会社キーエンス | Programmable logic controller and data collection device |
| JP2019016327A (en) * | 2017-07-11 | 2019-01-31 | 株式会社キーエンス | Programmable logic controller, data collection device, and program creation support device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3024422B2 (en) | Programmable controller and method of operating programmable controller | |
| JPS63206802A (en) | Programmable controller | |
| JPH0399380A (en) | Method for storing collected data | |
| JPS6186846A (en) | Program debugging device | |
| JPS62162105A (en) | Flow chart type programmable controller | |
| JPH01223504A (en) | Sampling trace system for programmable controller | |
| JPS58101352A (en) | Data processor | |
| KR900008536B1 (en) | Computer control system suitable for execution of sequence control and servo control | |
| JPS6389986A (en) | CRT control device | |
| JPS63311445A (en) | Production processing system for interactive test program file | |
| JPS6295603A (en) | Programmable controller | |
| JPH01234957A (en) | Method and device for controlling dma | |
| JPH0540661A (en) | Simulator | |
| JPS59106005A (en) | programmable controller | |
| JPH04302001A (en) | Programmable controller | |
| JPH0623922B2 (en) | Programmable controller | |
| JPS59119413A (en) | Programmable controller | |
| JPS63148305A (en) | Quick arithmetic processing system for programmable sequence controller | |
| JPS59167760A (en) | Information processing device | |
| JPS59214906A (en) | Programmable controller for controlling instrumentation | |
| JPH0242587A (en) | Picture processor | |
| JPS63292206A (en) | Programmable controller | |
| JPS60123938A (en) | Debugging system of program | |
| JPS63177205A (en) | Programming device for programmable controller | |
| JPS63266502A (en) | Programmable controller input/output control method |