[go: up one dir, main page]

JP2008159004A - Programmable logic controller data trace device - Google Patents

Programmable logic controller data trace device Download PDF

Info

Publication number
JP2008159004A
JP2008159004A JP2006350407A JP2006350407A JP2008159004A JP 2008159004 A JP2008159004 A JP 2008159004A JP 2006350407 A JP2006350407 A JP 2006350407A JP 2006350407 A JP2006350407 A JP 2006350407A JP 2008159004 A JP2008159004 A JP 2008159004A
Authority
JP
Japan
Prior art keywords
variable
array
sampling
value
subscript
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
JP2006350407A
Other languages
Japanese (ja)
Inventor
Eizo Nakano
栄造 中野
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.)
Okuma Corp
Original Assignee
Okuma Corp
Okuma Machinery Works 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 Okuma Corp, Okuma Machinery Works Ltd filed Critical Okuma Corp
Priority to JP2006350407A priority Critical patent/JP2008159004A/en
Publication of JP2008159004A publication Critical patent/JP2008159004A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Programmable Controllers (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a data trace device 20 tracing data of an array element of array variable even when a suffix of the array variable is variable. <P>SOLUTION: A sampling condition setting section 250 can set the array variable and the suffix variable of the array variable in combination. When the variable used for sampling set by the sampling condition setting section 250 is array variable, an array address arithmetic section 220 calculates the address of the element of the array variable specified with the value of the suffix variable of array variable, and sets it and the value of the suffix variable of the array variable in a sampling executing section 210. The sampling executing section 210 determines the value of the element of the array variable from the address of the element of the array variable, records it and the value of the suffix variable of the array variable in a sampling buffer 230 every sampling period, and displays the recorded value of the element of the array variable and the value of the suffix variable of the array variable every sampling period. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、プログラマブル・ロジック・コントローラ(以下PLCと略す)の特定の信号を一定の周期でサンプリングして記録する、データトレース装置に関する。   The present invention relates to a data trace apparatus that samples and records a specific signal of a programmable logic controller (hereinafter abbreviated as PLC) at a constant period.

従来、PLCの特定の信号を一定の周期でサンプリングして記録するデータトレース装置がPLCの信号の状態の変化を知るために利用されている。近年、マイクロプロセッサの性能向上に伴い、シーケンスプログラムを汎用のマイクロプロセッサを使用してインタプリタ方式やコンパイラ方式で実行し、シーケンスプログラム実行中の実データをモニタ可能とする技術が特許文献1に開示されている。   Conventionally, a data trace device that samples and records a specific signal of a PLC at a constant period is used to know a change in the state of the signal of the PLC. In recent years, with improvement in performance of a microprocessor, Patent Document 1 discloses a technique that allows a sequence program to be executed by an interpreter method or a compiler method using a general-purpose microprocessor and to monitor actual data during execution of the sequence program. ing.

また、近年IEC61131−3に準拠し配列変数を使用したPLCプログラムを作成できるPLCが普及しており配列変数をトレースすることに対する要求が強まっている。   In recent years, PLCs that can create PLC programs that use array variables based on IEC61131-3 have become widespread, and there is an increasing demand for tracing array variables.

従来におけるデータトレース装置が配列変数をトレースする動作の一例を図4〜図7を参照して説明する。   An example of an operation in which a conventional data tracing apparatus traces an array variable will be described with reference to FIGS.

図4は従来のPLC及びデータトレース装置の一実施例を示すブロック構成図である。図4に示されるPLC10及びデータトレース装置20は、PLC実行部100及びデータトレース部200で構成されており、PLC実行部100はCPU110、PLCデータメモリ120、PLCプログラムメモリ130で構成されている。また、データトレース部200はサンプリング実行部210、サンプリングバッファ230、画面制御部240、サンプリング条件設定部250、操作入力制御部260で構成されている。画面制御部240はモニタ画面300に接続されて画面表示を行い、操作入力制御部260はキーボードやマウス等の入力機器320に接続されており、入力機器320からの入力を受け付ける。   FIG. 4 is a block diagram showing an embodiment of a conventional PLC and data trace apparatus. 4 includes a PLC execution unit 100 and a data trace unit 200. The PLC execution unit 100 includes a CPU 110, a PLC data memory 120, and a PLC program memory 130. The data trace unit 200 includes a sampling execution unit 210, a sampling buffer 230, a screen control unit 240, a sampling condition setting unit 250, and an operation input control unit 260. The screen control unit 240 is connected to the monitor screen 300 to display a screen, and the operation input control unit 260 is connected to an input device 320 such as a keyboard or a mouse, and receives an input from the input device 320.

図5は従来における配列変数をトレースする動作の一例を示すフローチャートである。サンプリング条件設定部250は入力機器320を使って操作入力制御部260に入力され、画面制御部240に表示されている配列変数名およびサンプリング回数から、配列の先頭アドレスと、配列のデータ型と、配列の添え字の値と、サンプリング回数を求め、前記配列の先頭アドレスと、配列のデータ型と、配列の添え字の値とから配列要素のアドレスを求め、前記サンプリング回数とあわせてサンプリング実行部210に設定する(ステップS131)。   FIG. 5 is a flowchart showing an example of a conventional operation for tracing array variables. The sampling condition setting unit 250 is input to the operation input control unit 260 using the input device 320, and from the array variable name and the number of samplings displayed on the screen control unit 240, the start address of the array, the data type of the array, An array subscript value and the number of times of sampling are obtained, an array element address is obtained from the start address of the array, the data type of the array, and the value of the array subscript, and the sampling execution unit is combined with the number of times of sampling. 210 is set (step S131).

サンプリング実行部210は設定された配列要素のアドレスの値をPLCデータメモリ120から読み出して、サンプリングバッファ230の所定の位置に書き込み(ステップS140)、設定されたサンプリング回数だけサンプリングを終了するとトレースを終了する。設定されたサンプリング回数に達しない場合はサンプリング回数をカウントアップしステップS140に戻ってサンプリングを繰り返す(ステップS150およびステップS160)。   The sampling execution unit 210 reads the address value of the set array element from the PLC data memory 120, writes it in a predetermined position of the sampling buffer 230 (step S140), and ends the trace when sampling is completed for the set number of times of sampling. To do. If the set number of samplings is not reached, the number of samplings is counted up, and the process returns to step S140 to repeat the sampling (steps S150 and S160).

図6(a)および(b)は配列変数を使用したPLCプログラムの例である。図6(a)は左母線から2つ目の接点に添え字が定数=10の配列変数ARRAYA[]を使用しており、図6(b)は左母線から2つ目の接点に添え字が変数=iの配列変数ARRAYB[]を使用している。   FIGS. 6A and 6B are examples of PLC programs using array variables. 6 (a) uses an array variable ARRAYA [] whose subscript is constant = 10 at the second contact from the left bus, and FIG. 6 (b) is a subscript at the second contact from the left bus. Uses the array variable ARRAYB [] with variable = i.

図7は従来のデータトレース装置で図6(a)のPLCプログラムの各変数をトレースした結果を表示した画面の例である。画面例400の左から、信号名称フィールド410、データ型フィールド420、トレース結果フィールド430を表示している。トレース結果フィールド430の上部にはサンプリングした周期を識別するための番号が表示される番号フィールド432が配置され、その下には各変数のトレース結果が表示される入力フィールド434、配列変数フィールド436、出力フィールド438が配置される。トレース結果フィールド430は横方向にスクロールすることができる。図7の例ではトレース結果を数値で表示しているが、数値をもとにグラフにして表示することも可能であることは言うまでもない。   FIG. 7 shows an example of a screen displaying the result of tracing each variable of the PLC program of FIG. 6A by the conventional data trace apparatus. From the left of the screen example 400, a signal name field 410, a data type field 420, and a trace result field 430 are displayed. A number field 432 for displaying a number for identifying the sampled period is arranged above the trace result field 430, and an input field 434 for displaying the trace result of each variable, an array variable field 436, An output field 438 is arranged. The trace result field 430 can be scrolled horizontally. In the example of FIG. 7, the trace result is displayed as a numerical value, but it is needless to say that the graph can be displayed based on the numerical value.

従来のデータトレース装置では図6(a)のPLCプログラムの場合はサンプリング条件設定部250が配列の先頭要素を格納するアドレスと、配列の添え字の値と、配列のデータ型とからサンプリングする配列要素を格納するアドレスおよび配列要素のデータ型を求めることができるため、配列変数=ARRAYA[10]のデータトレースを行うことができるが、図6(b)のPLCプログラムの配列変数=ARRAYB[i]の場合は配列の添え字の値が変数=iの値でありサンプリングの途中で変化してしまうことがあるため、データトレースを行うことができなかった。   In the conventional data trace apparatus, in the case of the PLC program of FIG. 6A, the sampling condition setting unit 250 performs sampling from the address at which the first element of the array is stored, the value of the array subscript, and the data type of the array. Since the address for storing the element and the data type of the array element can be obtained, the data trace of the array variable = ARRAYA [10] can be performed, but the array variable = ARRAYB [i of the PLC program in FIG. ], The value of the subscript of the array is the value of variable = i and may change during sampling, so data tracing could not be performed.

特開2005−115969号公報JP 2005-115969 A

従来のデータトレース装置20はPLCプログラム中の配列変数の添え字が変数の場合に配列変数の配列要素のアドレスを特定することができないため、添え字が定数の場合しか配列変数の配列要素のデータトレースを行うことができないという問題があった。   Since the conventional data trace apparatus 20 cannot specify the address of the array element of the array variable when the subscript of the array variable in the PLC program is a variable, the data of the array element of the array variable can be specified only when the subscript is a constant. There was a problem that tracing could not be performed.

本発明は上述のような事情からなされたものであり、本発明の目的は配列変数の添え字が変数の場合にも配列変数の配列要素のデータトレースを行うことを可能にしたデータトレース装置20を提供することにある。   The present invention has been made under the circumstances described above, and an object of the present invention is to provide a data trace apparatus 20 that can perform data tracing of array elements of array variables even when the subscript of the array variable is a variable. Is to provide.

以上のような目的を達成するために、本発明に係るデータトレース装置は、プログラマブル・ロジック・コントローラの変数の値を一定の周期でサンプリングして記憶する、データトレース装置において、サンプリングを行う変数とサンプリングの開始および終了条件を設定するサンプリング条件設定部と、前記サンプリング条件設定部に設定された条件によりサンプリングを行うサンプリング実行部と、前記サンプリング実行部がサンプリングを行う配列変数のアドレスを演算する配列アドレス演算部と、サンプリング実行部のサンプリングした結果を記憶するサンプリングバッファとを備え、前記サンプリング条件設定部は配列変数と配列変数の添え字変数を組み合わせて設定可能であり、前記配列アドレス演算部は前記サンプリング条件設定部に設定されたサンプリングを行う変数が配列変数の場合に、配列変数の添え字変数の値にて特定される配列変数の要素のアドレスを計算して前記配列変数の添え字変数の値とともに前記サンプリング実行部に設定し、前記サンプリング実行部は前記配列変数の要素のアドレスから配列変数の要素の値を求めて、前記配列変数の添え字変数の値とともにサンプリング周期毎に前記サンプリングバッファに記録し、前記記録した前記配列変数の要素の値と前記配列変数の添え字変数の値とを前記サンプリング周期毎に並べて表示することを特徴とする。   In order to achieve the above object, a data trace device according to the present invention samples and stores variable logic controller variable values at a constant period, and the data trace device performs sampling and A sampling condition setting unit that sets sampling start and end conditions, a sampling execution unit that performs sampling according to the conditions set in the sampling condition setting unit, and an array that calculates an address of an array variable on which the sampling execution unit performs sampling An address calculation unit, and a sampling buffer for storing the sampling result of the sampling execution unit, the sampling condition setting unit can be set by combining an array variable and a subscript variable of the array variable, the array address calculation unit, Sampling conditions When the sampling variable set in the setting section is an array variable, calculate the address of the element of the array variable specified by the value of the subscript variable of the array variable, along with the value of the subscript variable of the array variable Set in the sampling execution unit, the sampling execution unit obtains the value of the element of the array variable from the address of the element of the array variable, and records the value of the subscript variable of the array variable in the sampling buffer for each sampling period The recorded element value of the array variable and the value of the subscript variable of the array variable are displayed side by side for each sampling period.

本発明を用いることにより、次に示す効果を得ることができる。すなわち、配列変数の添え字が変数の場合にも配列変数の要素のデータトレースを行うことが可能になるため、配列変数を含むPLCプログラムの実際の動作を解析することが容易になる。例えば、次のような場合に配列変数を使った効果的なPLCプログラムを組むことができる。   By using the present invention, the following effects can be obtained. That is, even when the subscript of the array variable is a variable, it is possible to perform data trace of the element of the array variable, so that it is easy to analyze the actual operation of the PLC program including the array variable. For example, an effective PLC program using array variables can be built in the following cases.

制御対象の動作モード(運転モード/一時停止モード/緊急停止モード等)を配列変数の添え字変数の値として割り当て、添え字変数の値を変更することでPLCプログラムのモードを一括で切り替えることが容易に実現できる。このように配列変数の添え字を変数で使用すれば同じ変数に複数の意味を持たせるといった使い方が可能になる。このような場合に、本発明によれば配列変数の添え字が変数の場合でもデータトレース機能を使ったデバッグができるため、PLCプログラム中に配列変数を使用した場合のプログラムのデバッグが極めて容易になる効果を得ることができる。   The operation mode (operation mode / pause mode / emergency stop mode, etc.) to be controlled is assigned as the value of the subscript variable of the array variable, and the PLC program mode can be switched at once by changing the value of the subscript variable. It can be easily realized. In this way, if the subscript of an array variable is used as a variable, the same variable can have multiple meanings. In such a case, according to the present invention, even when the subscript of the array variable is a variable, debugging can be performed using the data trace function. Therefore, it is very easy to debug the program when the array variable is used in the PLC program. The effect which becomes can be acquired.

以下、本発明の実施の形態(以下実施形態という)を、図1〜図3に従って説明する。   Hereinafter, an embodiment of the present invention (hereinafter referred to as an embodiment) will be described with reference to FIGS.

図1は、本実施形態のPLC10およびデータトレース装置20を図4に対応させて示すブロック構成図である。なお、同一構成箇所には同符号を付して説明を省略する。本実施形態では配列アドレス演算部220が新たに追加されている。   FIG. 1 is a block configuration diagram showing the PLC 10 and the data trace device 20 of this embodiment corresponding to FIG. In addition, the same code | symbol is attached | subjected to the same structure location and description is abbreviate | omitted. In the present embodiment, an array address calculation unit 220 is newly added.

図2は本実施形態に係るデータトレース装置20におけるサンプリング実行部210および配列アドレス演算部220の動作の一例を示すフローチャートである。なお、図5と同一構成箇所には同符号を付して説明を省略する。   FIG. 2 is a flowchart showing an example of operations of the sampling execution unit 210 and the array address calculation unit 220 in the data trace apparatus 20 according to the present embodiment. In addition, the same code | symbol is attached | subjected to the same structure location as FIG. 5, and description is abbreviate | omitted.

サンプリング条件設定部250は、サンプリングする変数が配列変数の場合、配列の先頭要素を格納するアドレスと、配列のデータ型と、配列の添え字の値または配列の添え字の値を格納するアドレスと、配列の添え字種別のデータ型と、サンプリング回数を求め、配列アドレス演算部220に設定する。配列の添え字種別のデータ型には、配列の添え字が定数(数値)であるか、または変数であるかが設定され、変数の場合には、添え字のデータ型が設定されるものとする(ステップS100)。   When the variable to be sampled is an array variable, the sampling condition setting unit 250 stores an address that stores the first element of the array, an array data type, an array subscript value, or an array subscript value. The data type of the subscript type of the array and the number of samplings are obtained and set in the array address calculation unit 220. Whether the array subscript is a constant (numeric value) or a variable is set in the data type of the array subscript type. In the case of a variable, the subscript data type is set. (Step S100).

配列アドレス演算部220は設定された配列の添え字が定数か変数かを判定して、変数の場合はステップS120に進み、定数の場合はステップS130に進む(ステップS110)。   The array address calculation unit 220 determines whether the set array index is a constant or a variable. If it is a variable, the process proceeds to step S120. If it is a constant, the process proceeds to step S130 (step S110).

次に配列アドレス演算部220は前記配列の添え字が変数の場合は、設定された配列の添え字の値を格納するアドレスと、添え字のデータ型をもとに、PLCデータメモリ120から添え字の値を読み出して求める(ステップS120)。すなわち、配列アドレス演算部220は、PLCデータメモリ120内の配列の添え字の値を格納するアドレスへアクセスし、添え字のデータ型(データサイズなど)に基づいて当該アクセス先のアドレスから配列の添え字の値を読み出して求める。   Next, when the array subscript is a variable, the array address calculation unit 220 adds the subscript value from the PLC data memory 120 based on the address for storing the set array subscript value and the data type of the subscript. The character value is read out and obtained (step S120). That is, the array address calculation unit 220 accesses an address in which the value of the array subscript in the PLC data memory 120 is stored, and based on the data type of the subscript (data size, etc.) The subscript value is read out and obtained.

さらに、求めた添え字の値と、前記配列の先頭要素を格納するアドレスと、配列のデータ型とからサンプリングする配列要素を格納するアドレスを求める。例えば、求めた添え字の値がi=5で、先頭要素のアドレスが1000番地であり、添え字を0以上の整数とした場合、配列のデータ型が配列要素1についてアドレス1番地であれば、先頭要素のアドレスに添え字の値を加算することで、サンプリングする配列要素のアドレスは、1005番地と求められる。添え字が定数の場合も同様にして配列要素を格納するアドレスを求める。求めた配列要素のアドレスは添え字の値とともにサンプリング実行部210に設定する。(ステップS130)。   Further, an address for storing the array element to be sampled is obtained from the obtained subscript value, the address for storing the first element of the array, and the data type of the array. For example, if the obtained subscript value is i = 5, the address of the first element is 1000, and the subscript is an integer greater than or equal to 0, if the data type of the array is address 1 for array element 1, By adding the subscript value to the address of the head element, the address of the array element to be sampled is obtained as address 1005. Similarly, when the subscript is a constant, the address for storing the array element is obtained. The obtained array element address is set in the sampling execution unit 210 together with the subscript value. (Step S130).

サンプリング実行部210は設定された配列要素のアドレスより、PLCデータメモリ120から配列要素の値を読み出して、前記添え字の値とともにサンプリングバッファ230の所定の位置に書き込み、設定されたサンプリング回数だけサンプリングを終了するとトレースを終了する(ステップS150)。   The sampling execution unit 210 reads the array element value from the PLC data memory 120 from the set array element address, writes it to the predetermined position of the sampling buffer 230 together with the subscript value, and performs sampling for the set number of times of sampling. When the process is finished, the trace is finished (step S150).

設定されたサンプリング回数に達しない場合はサンプリング回数をカウントアップしステップS110に戻ってサンプリングを繰り返す(ステップS150およびステップS160)。   If the set number of samplings has not been reached, the number of samplings is counted up, the process returns to step S110 and the sampling is repeated (steps S150 and S160).

図3は本発明のデータトレース装置で図6(b)のPLCプログラムの各変数をトレースした結果を表示した画面の一例を図7に対比して示した例である。画面には、信号名称フィールド410、データ型フィールド420、トレース結果フィールド430が示される。トレース結果フィールド430には、入力フィールド434、配列変数フィールド436、出力フィールド438の他に、配列変数=ARRAYB[i]の添え字変数=iが表示される添え字変数フィールド437が示される。   FIG. 3 shows an example of a screen displaying the result of tracing each variable of the PLC program of FIG. 6B by the data trace apparatus of the present invention, as compared with FIG. The screen shows a signal name field 410, a data type field 420, and a trace result field 430. In addition to the input field 434, the array variable field 436, and the output field 438, the trace result field 430 shows a subscript variable field 437 in which the subscript variable = i of the array variable = ARRAYB [i] is displayed.

以上のように本発明によれば配列変数のサンプリングを行う際にサンプリングの都度、配列要素を格納するアドレスの値を計算するため、配列変数の添え字が変数の場合もデータトレースを行うことが可能である。なお、以上は1次元配列についての実施例であるが、多次元配列についても同様にして配列変数の添え字が変数の場合にもデータトレースを行うことが可能である。   As described above, according to the present invention, when an array variable is sampled, the value of the address for storing the array element is calculated every time sampling is performed. Therefore, even when the subscript of the array variable is a variable, data tracing can be performed. Is possible. Although the above is an example of a one-dimensional array, data trace can be performed in the same way for a multidimensional array even when the subscript of the array variable is a variable.

本発明におけるPLC及びデータトレース装置の一例を示すブロック構成図である。It is a block block diagram which shows an example of PLC and the data trace apparatus in this invention. 本発明におけるデータトレース装置のサンプリング実行部210及び配列アドレス演算部220の動作の1例を示すフローチャートである。It is a flowchart which shows an example of operation | movement of the sampling execution part 210 and the arrangement | sequence address calculating part 220 of the data trace apparatus in this invention. 本発明におけるデータトレース装置のサンプリング結果を表示したモニタ画面の1例である。It is an example of the monitor screen which displayed the sampling result of the data trace apparatus in this invention. 従来のPLC及びデータトレース装置の一例を示すブロック構成図である。It is a block block diagram which shows an example of the conventional PLC and a data trace apparatus. 従来のデータトレース装置のサンプリング実行部210及び配列アドレス演算部220の動作の1例を示すフローチャートである。It is a flowchart which shows an example of operation | movement of the sampling execution part 210 and the arrangement | sequence address calculating part 220 of the conventional data trace apparatus. 配列変数を含むPLCプログラムの1例である。It is an example of a PLC program including an array variable. 従来のデータトレース装置のサンプリング結果を表示したモニタ画面の1例である。It is an example of the monitor screen which displayed the sampling result of the conventional data trace apparatus.

符号の説明Explanation of symbols

10 PLC、20 データトレース装置、100 PLC実行部、110 CPU、120 PLCデータメモリ、130 PLCプログラムメモリ、200 データトレース部、210 サンプリング実行部、220 配列アドレス演算部、230 サンプリングバッファ、240 画面制御部、250 サンプリング条件設定部、260 操作入力制御部、300 モニタ画面、320 入力機器。   10 PLC, 20 data trace device, 100 PLC execution unit, 110 CPU, 120 PLC data memory, 130 PLC program memory, 200 data trace unit, 210 sampling execution unit, 220 array address calculation unit, 230 sampling buffer, 240 screen control unit 250 sampling condition setting unit 260 operation input control unit 300 monitor screen 320 input device.

Claims (1)

プログラマブル・ロジック・コントローラの変数の値を一定の周期でサンプリングして記憶するデータトレース装置において、
サンプリングを行う変数とサンプリングの開始および終了条件を設定するサンプリング条件設定部と、
前記サンプリング条件設定部に設定された条件によりサンプリングを行うサンプリング実行部と、
前記サンプリング実行部がサンプリングを行う配列変数のアドレスを演算する配列アドレス演算部と、
サンプリング実行部のサンプリングした結果を記憶するサンプリングバッファと、
を備え、
前記サンプリング条件設定部は、配列変数と配列変数の添え字変数を組み合わせて設定可能であり、
前記配列アドレス演算部は、前記サンプリング条件設定部に設定されたサンプリングを行う変数が配列変数の場合に、配列変数の添え字変数の値にて特定される配列変数の要素のアドレスを計算して前記配列変数の添え字変数の値とともに前記サンプリング実行部に設定し、
前記サンプリング実行部は、前記配列変数の要素のアドレスから配列変数の要素の値を求めて、前記配列変数の添え字変数の値とともにサンプリング周期毎に前記サンプリングバッファに記録し、前記記録した前記配列変数の要素の値と前記配列変数の添え字変数の値とを前記サンプリング周期毎に並べて表示する、
ことを特徴とするプログラマブル・ロジック・コントローラのデータトレース装置。
In a data trace device that samples and stores the value of a variable of a programmable logic controller at a constant cycle,
A sampling condition setting section for setting variables for sampling and sampling start and end conditions;
A sampling execution unit that performs sampling according to the conditions set in the sampling condition setting unit;
An array address calculation unit for calculating an address of an array variable to be sampled by the sampling execution unit;
A sampling buffer for storing the sampling result of the sampling execution unit;
With
The sampling condition setting unit can be set by combining an array variable and a subscript variable of the array variable,
The array address calculation unit calculates the address of the element of the array variable specified by the value of the subscript variable of the array variable when the sampling variable set in the sampling condition setting unit is an array variable. Set in the sampling execution unit together with the value of the subscript variable of the array variable,
The sampling execution unit obtains the value of the element of the array variable from the address of the element of the array variable, records the value of the subscript variable of the array variable in the sampling buffer for each sampling period, and records the recorded array Displaying the value of the variable element and the value of the subscript variable of the array variable side by side for each sampling period;
A data trace apparatus for a programmable logic controller.
JP2006350407A 2006-12-26 2006-12-26 Programmable logic controller data trace device Pending JP2008159004A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006350407A JP2008159004A (en) 2006-12-26 2006-12-26 Programmable logic controller data trace device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006350407A JP2008159004A (en) 2006-12-26 2006-12-26 Programmable logic controller data trace device

Publications (1)

Publication Number Publication Date
JP2008159004A true JP2008159004A (en) 2008-07-10

Family

ID=39659807

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006350407A Pending JP2008159004A (en) 2006-12-26 2006-12-26 Programmable logic controller data trace device

Country Status (1)

Country Link
JP (1) JP2008159004A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017130068A (en) * 2016-01-20 2017-07-27 富士電機株式会社 Programmable controller system, development support device thereof and target device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017130068A (en) * 2016-01-20 2017-07-27 富士電機株式会社 Programmable controller system, development support device thereof and target device

Similar Documents

Publication Publication Date Title
US9740185B2 (en) Peripheral device for programmable controller and debug support program
JP5122000B2 (en) A / D converter and programmable controller system
JP5325436B2 (en) Trace stream generation technology for data processing equipment
JP6430037B2 (en) Debugging support apparatus and debugging support method
KR101324370B1 (en) Sequence program debugging device, debugging method, and program
US20210144303A1 (en) Motion analysis device, motion analysis method and recording medium
JP5241388B2 (en) Log data acquisition system and programmable display
CN108693836B (en) Information processing apparatus
TW201706739A (en) Programmable logic controller, engineering tool and engineering tool program
JP6245429B2 (en) Program development support apparatus and computer program
JP2009122936A (en) Sequence program monitor device equipped with display function for abnormality research and programmable controller
JP3358759B2 (en) Data trace method for programmable controller
JP2008159004A (en) Programmable logic controller data trace device
EP2410392A2 (en) Non-linear time scale optimization for mechanical-electrical machine behavior model visualization
CN103365237A (en) Method and device for monitoring and recording component and variable in PLC (Programmable Logic Controller) system
JP5937530B2 (en) Software error analysis device, error information creation device
CN113348415B (en) Device state reproducing device, method and storage medium
JP5599378B2 (en) Display control device
CN112784666A (en) Motion analysis device, motion analysis method, and computer-readable storage medium
JPH0458303A (en) Programmable controller
JP2005301334A (en) Motion controller
JPH01223504A (en) Sampling trace system for programmable controller
JP2012088798A (en) Debugging device, debugging method, and program for debugging
JP6297202B2 (en) Procedure extraction system
JP5599377B2 (en) Display control device