JP2011113304A - Display/control simulation system, programmable display for the same, and simulator device - Google Patents

Display/control simulation system, programmable display for the same, and simulator device Download PDF

Info

Publication number
JP2011113304A
JP2011113304A JP2009269085A JP2009269085A JP2011113304A JP 2011113304 A JP2011113304 A JP 2011113304A JP 2009269085 A JP2009269085 A JP 2009269085A JP 2009269085 A JP2009269085 A JP 2009269085A JP 2011113304 A JP2011113304 A JP 2011113304A
Authority
JP
Japan
Prior art keywords
macro
line
display
execution
simulator
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.)
Granted
Application number
JP2009269085A
Other languages
Japanese (ja)
Other versions
JP5384306B2 (en
Inventor
Tsutomu Maekawa
勉 前川
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.)
HAKKO ELECTRIC
Hakko Electronics Co Ltd
Original Assignee
HAKKO ELECTRIC
Hakko Electronics Co 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 HAKKO ELECTRIC, Hakko Electronics Co Ltd filed Critical HAKKO ELECTRIC
Priority to JP2009269085A priority Critical patent/JP5384306B2/en
Publication of JP2011113304A publication Critical patent/JP2011113304A/en
Application granted granted Critical
Publication of JP5384306B2 publication Critical patent/JP5384306B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To specify a problem part in a macroblock in a short period of time without requiring effort, and to improve debugging efficiency of the macroblock as a result. <P>SOLUTION: A user sets one or more optional rows of a macroblock composed of a program of a plurality of rows as break points by a function of a macro viewer 32 and the set contents are stored as break position information 35. A macro execution part 21b in a display 1 side is configured to execute the program of the optional macroblock one row-by-one row, and before executing for each row, notifies a simulator 31 of the row number of the row or the like (S12), and after receiving an execution permission reply (S23), executes the program of the one row (S14). When the row of the notified row number is a break point, the simulator 31 temporarily stops the execution permission reply (S22 in S21: YES). <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、プログラマブル表示器に関するシミュレータ装置を有するシステムに関する。   The present invention relates to a system having a simulator device related to a programmable display.

従来より、例えば、PLC(プログラマブル・ロジック・コントローラ)本体等である外部機器と、プログラマブル表示器とが接続された表示/制御システム構成が知られている。この様なシステムでは、一般的に、プログラマブル表示器は、外部機器のメモリからデータを読み出して表示したり、外部機器のメモリにデータを書き込むことで外部機器に対して任意の指令を与えたり、自己の画面の表示内容の制御やスクリーン切換え等を行う。   2. Description of the Related Art Conventionally, for example, a display / control system configuration in which an external device such as a PLC (programmable logic controller) main body and a programmable display is connected is known. In such a system, the programmable display generally reads and displays data from the memory of the external device, or gives an arbitrary command to the external device by writing data to the memory of the external device. Controls the display content of the own screen and switches screens.

上記プログラマブル表示器の処理は、予め記憶される基本プログラムが、ダウンロードされた画面データを用いて行う。画面データには、各種マクロデータ(マクロブロック)が含まれている。マクロデータ(マクロブロック)は、例えば、画面上に配置される各アイテム(スイッチ、メータ、ボタン等)に対応付けられて、このアイテムに応じた処理を実行するプログラム等である。あるいは、アイテムに対応付けられておらず、例えば定期的に実行されるプログラム等である。   The processing of the programmable display is performed using screen data downloaded by a basic program stored in advance. The screen data includes various macro data (macro blocks). The macro data (macro block) is, for example, a program that is associated with each item (switch, meter, button, etc.) arranged on the screen and executes processing according to this item. Or it is not matched with an item, For example, it is a program etc. which are performed regularly.

上記表示/制御システムにおいて、更に、作画エディタを有するパソコン等(作画エディタ装置という)が、プログラマブル表示器に接続された構成となっている場合がある。上記画面データは、この作画エディタ装置上でユーザが任意に作成して、プログラマブル表示器にダウンロードする。   In the display / control system, a personal computer or the like having a drawing editor (referred to as a drawing editor device) may be connected to the programmable display. The screen data is arbitrarily created by the user on the drawing editor device and downloaded to the programmable display.

プログラマブル表示器では、上記マクロデータにより、独自の演算処理を行う機能としてのマクロ機能を有することになる。このマクロ機能によって、演算処理以外にもプログラマブル表示器の動作や外部機器のメモリ操作を任意のタイミングで行うことができる。このマクロ機能は、上記画面データ(マクロデータ)を変更することで、容易に変更(カスタマイズ)できる。このように容易にカスタマイズできる点から、プログラマブル表示器に複雑な動作を行わせたい場合に、マクロデータが多用される傾向にある。   The programmable display device has a macro function as a function of performing an original arithmetic processing by the macro data. With this macro function, in addition to the arithmetic processing, the operation of the programmable display and the memory operation of the external device can be performed at an arbitrary timing. This macro function can be easily changed (customized) by changing the screen data (macro data). In this way, the macro data tends to be frequently used when it is desired to make the programmable display perform a complicated operation because it can be easily customized.

ここで、画面データ(各種マクロデータ含む)は、上記の通りユーザが作成するものであり、当然何らかのミスが生じる可能性があり、特にマクロデータに関してミスや勘違い等によりユーザが望んだ動作とならない場合が有り得る。よって、新たな画面データを作成してプログラマブル表示器にダウンロードした後、実際に運用を開始する前に、特にマクロデータ(プログラム)に関する動作確認を行うことが望ましい。   Here, the screen data (including various types of macro data) is created by the user as described above, and of course there is a possibility that some kind of mistake may occur. There may be cases. Therefore, it is desirable to confirm the operation related to the macro data (program) in particular after creating new screen data and downloading it to the programmable display device before actually starting the operation.

この為、従来より、シミュレータ装置により画面データの動作確認を行うことが提案されている。このシミュレータ装置は、上記PLC等である外部機器の機能・動作を模擬するものである。このシミュレータ装置は、上記作画エディタ装置に、当該作画エディタ装置の機能の1つとして搭載されている場合が少なくないが、この例に限るものではない。   For this reason, it has been conventionally proposed to check the operation of screen data using a simulator device. This simulator device simulates the function / operation of an external device such as the PLC. This simulator device is often installed in the drawing editor device as one of the functions of the drawing editor device, but is not limited to this example.

何れにしても、シミュレータ装置は、少なくとも上記動作確認の際にはプログラマブル表示器に接続されて、プログラマブル表示器と通信を行いながら、擬似的な外部機器として動作する。また、シミュレーション結果の表示等を行う。   In any case, the simulator device is connected to the programmable display at least when the operation is confirmed, and operates as a pseudo external device while communicating with the programmable display. In addition, simulation results are displayed.

すなわち、従来の上記シミュレータ装置は、例えば以下に記す機能を有する。
まず、外部機器の機能・動作をシミュレートする機能を有する。この機能は、例えばプログラマブル表示器からのメモリの読み込み/書き込み要求に応じて、シミュレータ装置上に擬似的に構築している外部機器メモリ(以下、擬似メモリと表記)について応答/書き換えを行なうことで、外部機器をシミュレートしている。
That is, the conventional simulator device has the following functions, for example.
First, it has a function of simulating the function / operation of an external device. This function responds / rewrites the external device memory (hereinafter referred to as “pseudo memory”) that is built on the simulator device in response to a memory read / write request from a programmable display, for example. Simulates external equipment.

また、シミュレート中に擬似メモリの内容を一覧で表示し、シミュレータ装置上のGUIにてユーザが任意に指定した擬似メモリ・アドレスの読み込み/書き込みを行う機能を有する。更に、ユーザが任意に指定した擬似メモリ・アドレスに関して任意に指定した単位/範囲/時間でインクリメント/デクリメントする機能等も有している。   Further, it has a function of displaying the contents of the pseudo memory in a list during simulation and reading / writing the pseudo memory address arbitrarily designated by the user on the GUI on the simulator apparatus. Further, it has a function of incrementing / decrementing the unit / range / time arbitrarily specified with respect to the pseudo memory address arbitrarily specified by the user.

ここで、たとえば、特許文献1、特許文献2には、プログラマブル・ロジック・コントローラー(以下PLCと表記)内の動作をシミュレートする方法が提示されている。
上記のシミュレータ装置によると、PLCのシーケンスをシミュレートすることによりPLCのデバッグ効率を向上させることができる。
Here, for example, Patent Document 1 and Patent Document 2 present a method of simulating the operation in a programmable logic controller (hereinafter referred to as PLC).
According to the simulator device described above, the PLC debugging efficiency can be improved by simulating the PLC sequence.

また、特許文献3には、プログラマブル表示器とシミュレータ装置間の汎用的なI/Fと、シミュレータ装置内部に持つ擬似メモリの制御方法について開示されている。
上記のシミュレータ装置によると、プログラマブル表示器とのI/F部分をシミュレートすることで、実際の外部機器を接続していなくても、プログラマブル表示器の動作を確認することができる。
Patent Document 3 discloses a general-purpose I / F between a programmable display and a simulator device, and a method for controlling a pseudo memory in the simulator device.
According to said simulator apparatus, operation | movement of a programmable display can be confirmed even if it does not connect the actual external apparatus by simulating an I / F part with a programmable display.

また、特許文献4には、グラフィック操作パネル(表示器)が、制御用ホストコンピュータとPLCとに接続された構成で、画面データ実行時に、制御用ホストコンピュータ上でPLCの模擬動作を行うこと等が開示されている。更に、グラフィック操作パネル(表示器)に接続することなく、スタンドアロンの状態にある制御用ホストコンピュータ上で、画面データのテスト表示・デバッグを行えることも開示されている。   Patent Document 4 discloses that a graphic operation panel (display device) is connected to a control host computer and a PLC, and performs a simulated PLC operation on the control host computer when screen data is executed. Is disclosed. Furthermore, it is also disclosed that screen data can be displayed and debugged on a control host computer in a stand-alone state without being connected to a graphic operation panel (display device).

また、特許文献5には、パソコン上にて、表示器のシミュレータ装置と、PLCのシミュレータ装置とを用いて、PLCの表示器のハードウェアを用いずに、表示器の表示画面データのシミュレーションを行えることが開示されている。   Further, Patent Document 5 discloses a simulation of display screen data of a display device using a display device simulator device and a PLC simulator device on a personal computer without using PLC display hardware. It is disclosed that it can be done.

この様に、従来のシミュレータ装置としては、PLCの模擬動作のみを行って表示器に関しては実機に接続するタイプと、PLC、表示器の両方の模擬動作を行うことによりスタンドアローンでデバッグ実現可能なタイプとが存在する。尚、表示器の動作の模擬機能に関しては、表示器をエミュレートするエミュレート装置という場合もある。本説明では、この様なエミュレート装置もシミュレータ装置に含まれるものとする。   In this way, as a conventional simulator device, it is possible to realize stand-alone debugging by performing only the simulated operation of the PLC and connecting the display device to the actual machine, and performing the simulated operation of both the PLC and the display device. There is a type. In addition, regarding the simulation function of the operation of the display device, it may be called an emulation device that emulates the display device. In this description, it is assumed that such an emulation device is also included in the simulator device.

また、特許文献6には、シミュレータ装置に係わり、シミュレーション用画面の表示例等が開示されている。   Patent Document 6 discloses a display example of a simulation screen in connection with a simulator device.

特開平4−215105号公報JP-A-4-215105 特開平5−297915号公報JP-A-5-297915 特許第3562783号公報Japanese Patent No. 3562833 特開2001−75634号公報JP 2001-75634 A 特開2006−155158号公報JP 2006-155158 A 特開平11−134218号公報JP-A-11-134218

しかしながら、上記特許文献1〜3に記載の方法においては、主な目的がPLCのデバッグ効率の向上であり、マクロブロックのデバッグ効率の向上に関しては不十分というのが実情であった。   However, in the methods described in Patent Documents 1 to 3, the main purpose is to improve the debugging efficiency of the PLC, and the fact is that the improvement of the debugging efficiency of the macroblock is insufficient.

上述した通り、上記画面データ(各種マクロブロックが付随されている)を変更することで、上記マクロ機能を容易に変更(カスタマイズ)でき、便利である。
しかしながら、一方で、従来のプログラマブル表示器用の外部機器シミュレータ装置では、カスタマイズしたマクロデータの設定に何らかの問題がある為にユーザが望んだ通りの動作とならない場合に、各種マクロデータのうち問題があるマクロデータを特定することは容易であるが、当該マクロブロック内において問題がある箇所(行)を特定する為の作業が、非常に手間が掛かるという問題があった。つまり、マクロブロックのデバッグ効率が悪いという問題があった。
As described above, by changing the screen data (with various macro blocks attached), the macro function can be easily changed (customized), which is convenient.
However, on the other hand, in the conventional external device simulator device for a programmable display, there is a problem among various types of macro data when the customized macro data setting has some problem and the operation is not as desired by the user. Although it is easy to specify the macro data, there is a problem that it takes a lot of work to specify a problem (line) in the macro block. That is, there is a problem that the debugging efficiency of the macroblock is poor.

これについて、以下、より詳しく説明する。
まず、任意のマクロデータ(マクロブロックともいう)は、例えば「mov」、「Fill」等のマクロコマンドを用いた複数行のプログラムリスト(例えば後に図5等に一例を示す)となっている。各行は、例えば、上記マクロコマンドと、このマクロコマンドの実行対象(例えばリード/ライトするメモリアドレス等)から成る。
This will be described in more detail below.
First, arbitrary macro data (also referred to as a macro block) is a multi-line program list (for example, an example is shown later in FIG. 5) using macro commands such as “mov” and “Fill”. Each row includes, for example, the macro command and an execution target of the macro command (for example, a memory address to be read / written).

このマクロブロックの内容は、ユーザが任意に作成するものであるため、当然、ミスが生じる可能性はある。また、ミスがなくても、ユーザが望んだ通りの動作とならない場合も有り得る。   Since the contents of the macroblock are arbitrarily created by the user, there is a possibility that a mistake will naturally occur. In addition, even if there is no mistake, there may be a case where the user does not operate as desired.

何れにしても、何らかの問題が生じた場合でも、マクロブロック全体に問題があるわけではなく、その一部に問題がある場合が殆どである。よって、複数行から成るマクロブロックの何行目に問題があるのかを特定することで、問題がある行を修復する必要がある。   In any case, even if some problem occurs, the entire macroblock does not have a problem, and most of them have a problem. Therefore, it is necessary to repair the problematic line by specifying the line in the macroblock consisting of a plurality of lines.

ここで、上記何らかの問題があるか否かは、ユーザが判断するものである。これは、上記のようにシミュレータ装置の機能としてシミュレート中の擬似メモリとその値を一覧で表示する機能がある。ユーザは、この表示されるメモリ値を見ることで、問題があるか否かを判断することができる。   Here, whether or not there is any problem is determined by the user. As described above, this has a function of displaying a list of simulated memories and their values as a function of the simulator device. The user can determine whether or not there is a problem by looking at the displayed memory value.

しかしながら、このメモリ値は、マクロブロック単位で処理実行した結果しか表示することができない。例えば、仮に、100行から成るマクロブロックを例にするならば、100行全てを実行した結果としてのメモリ値が表示されることになる。   However, this memory value can only be displayed as a result of processing execution in units of macroblocks. For example, if a macroblock consisting of 100 rows is taken as an example, the memory value as a result of executing all 100 rows is displayed.

この為、このメモリ値が期待した値ではない等の判断理由で、このマクロブロックに問題があると分かった場合でも、このマクロブロック内のどの行に問題があるのか分からなかった。これより、従来では、例えば以下に説明する作業を行って問題の行を特定していた。   For this reason, even if it is found that there is a problem with this macroblock due to a determination reason such that this memory value is not the expected value, it has not been known which line in this macroblock has a problem. Thus, conventionally, for example, the problem described below has been performed to identify the problem line.

すなわち、上記のように処理実行はマクロブロック単位で行われ、途中で処理を止める
ことができないので、問題となるマクロブロックの内容を修正して処理実行して結果(メモリ値)を確認する作業を繰り返し行っていた。例えば、上記100行から成るマクロブロックの例の場合、例えばまず上記作画エディタ装置上でユーザが、1行目〜10行目までを残して残り(11行〜100行)は削除したマクロブロックを作成する。そして、作成した(修正した)マクロブロックをプログラマブル表示器にダウンロードする。その後、シミュレーションを行う。
In other words, as described above, processing is executed in units of macroblocks, and processing cannot be stopped midway. Therefore, the content of the macroblock in question is corrected and the processing is executed to check the result (memory value). Was repeated. For example, in the case of the macroblock consisting of the above 100 lines, for example, first, on the drawing editor device, the user leaves the first line to the 10th line and the remaining (11th line to 100th line) is a deleted macroblock. create. Then, the created (corrected) macroblock is downloaded to the programmable display. Thereafter, a simulation is performed.

この例の場合、上記修正したマクロブロックを実行すると、1行目〜10行目のみが実行されることになり、その結果がメモリ値として反映されることになり、ユーザは表示されるメモリ値を参照することで、1行目〜10行目に問題があるか否かを判断できる。   In this example, when the modified macroblock is executed, only the first to the tenth lines are executed, and the result is reflected as a memory value. It can be determined whether or not there is a problem in the first to tenth lines.

そして、1行目〜10行目に問題がなければ、今度は1行目〜20行目のみから成るマクロブロックを作成して、上記1行目〜10行目のマクロブロックと同様の処理を行う。これを、100行目まで繰り返し行うことになる。   If there is no problem in the first line to the tenth line, a macro block consisting of only the first line to the 20th line is created and the same processing as the macro block in the first line to the tenth line is performed. Do. This is repeated up to the 100th line.

上記の例では、仮に、1行目〜20行目のマクロブロックのときに問題有りと判断したならば、11行目〜20行目の何れかの行に問題があることになる。よって、今度は、1行単位でマクロブロックを作成して検証していく。最初は、1行目〜11行目までのマクロブロック、次は1行目〜12行目のマクロブロックというように、順次、“修正したマクロブロック”を作成して検証していく。   In the above example, if it is determined that there is a problem in the macroblocks in the 1st to 20th lines, there is a problem in any of the 11th to 20th lines. Therefore, this time, a macro block is created and verified for each line. First, “corrected macroblocks” are sequentially created and verified, such as macroblocks from the first line to the eleventh line, and then the macroblocks from the first line to the twelfth line.

上記マクロブロックの修正方法は、一例であり、この例に限るものではない。例えば、最初に1行目〜50行目のマクロブロックを作成して検証すれば、100行のマクロブロックの前半と後半のどちらに問題があるのか分かり、そこから更に対象を狭めていく等という方法も考えられる。あるいは、最初から1行単位で検証していく方法も考えられる。つまり、最初は1行目のみ、次は1〜2行目、次は1〜3行目というように、1行ずつ増やしていくようにしてもよい。   The above-described macroblock correction method is an example, and is not limited to this example. For example, if you first create and verify the macroblocks in the first to 50th lines, you can see if there is a problem in the first half or the second half of the 100th line macroblock, and then narrow the target from there. A method is also conceivable. Alternatively, a method of verifying line by line from the beginning can be considered. That is, only the first line, the next one or two lines, and the next one to three lines may be increased one by one.

あるいは、上記のような規則的な方法ではなく、デバッグ作業者が、経験や勘等により、例えば怪しいと思う行を推測して検証する等という、試行錯誤を繰り返して行うことも考えられる。しかし、デバッグ作業者の経験や勘に頼る部分が大きく、また作業効率が悪いものであった。あるいは、マクロブロック中にパッチコマンドを挿入する方法等もあるいが、これも作業効率が悪いものであった。   Alternatively, instead of the regular method as described above, it is also conceivable that the debugging operator repeats trial and error such as inferring and verifying a suspected line by experience or intuition. However, it relied heavily on the experience and intuition of the debugging worker, and the work efficiency was poor. Alternatively, there is a method of inserting a patch command in the macro block, but this is also inefficient.

何れにしても、従来では、問題があるマクロブロックに関して当該マクロブロック内の問題箇所を特定する為に、試行錯誤を繰り返し、逐一マクロブロックを修正してこれを表示器にダウンロードしてシミュレーションを掛けるという、非常に手間が掛かる作業が必要であった。この為、作業効率が悪いものであり、デバッグ作業に非常に時間が掛かっていた。   In any case, in the past, in order to identify the problem part in the macro block with a problem, trial and error are repeated, the macro block is corrected one by one, and this is downloaded to the display unit for simulation. That was a very time-consuming work. For this reason, the work efficiency is poor, and the debugging work takes a very long time.

尚、この問題は、上記特許文献4,5のようなエミュレート装置も含むシミュレータ装置の場合でも、同様に生じるものである。
本発明の課題は、プログラマブル表示器用のシミュレータ装置において、任意のマクロブロック実行中に任意のタイミングで実行を一旦停止する機能を備えさせたことで、手間が掛からず短時間でマクロブロック内の問題箇所を特定することができ、以ってマクロブロックのデバッグ効率の向上を図ることができる表示/制御・シミュレートシステム、そのプログラマブル表示器、シミュレータ装置等を提供することである。
This problem occurs in the same way even in the case of a simulator device including an emulation device such as the above-mentioned Patent Documents 4 and 5.
An object of the present invention is to provide a function for temporarily stopping execution at an arbitrary timing during execution of an arbitrary macroblock in a simulator device for a programmable display, so that the problem in the macroblock can be quickly and easily saved. The object is to provide a display / control / simulation system, a programmable display device, a simulator device, and the like that can specify a location and thus can improve the debugging efficiency of a macroblock.

本発明の表示/制御・シミュレートシステムは、プログラマブル表示器とシミュレータ
装置とが接続されたシステムであって、前記プログラマブル表示器は、各種マクロブロックより成るマクロデータが付随された画面データを記憶する画面データ記憶手段と、該画面データを用いて任意のイベントに応じた処理を実行し、該処理に係わり前記マクロブロックのプログラムを実行する際、1行毎にその行番号を前記シミュレータ装置に通知し、実行許可が返信されてくると当該行のプログラムを実行する処理実行手段とを有し、前記シミュレータ装置は、前記画面データ記憶手段に記憶されているマクロデータと同じマクロデータを記憶する記憶手段と、該記憶手段に記憶されているマクロデータのマクロブロックのプログラムの任意の行をブレークポイントに設定させて、該設定内容をブレーク位置情報として記憶するブレークポイント設定支援手段と、前記処理実行手段から前記行番号の通知がある毎に、前記ブレーク位置情報を参照して、該行番号の行が前記ブレークポイントであるか否かを判定し、ブレークポイントではない場合には前記実行許可を返信し、ブレークポイントである場合には前記実行許可を返信せずに実行再開待ち状態とすると共にその後に所定の指示があった場合に前記実行許可を返信するマクロ実行制御手段とを有する。
The display / control / simulation system of the present invention is a system in which a programmable display and a simulator device are connected, and the programmable display stores screen data accompanied by macro data composed of various macro blocks. Screen data storage means and processing corresponding to an arbitrary event using the screen data, and when executing the macro block program related to the processing, the line number is notified to the simulator device for each line And a processing execution means for executing the program on the line when execution permission is returned, and the simulator device stores the same macro data as the macro data stored in the screen data storage means. An arbitrary line of the macro block program of the macro data stored in the storage means Breakpoint setting support means for setting a breakpoint and storing the setting contents as break position information, and each time the line number is notified from the processing execution means, the break position information is referred to and the line It is determined whether or not the numbered line is the breakpoint. If it is not a breakpoint, the execution permission is returned, and if it is a breakpoint, the execution permission is not returned without returning the execution permission. And a macro execution control means for returning the execution permission when a predetermined instruction is issued thereafter.

また、上記構成の表示/制御・シミュレートシステムにおいて、前記シミュレータ装置は、前記実行再開待ち状態におけるシミュレート結果を表示するシミュレート結果表示手段を更に有する。   In the display / control / simulation system configured as described above, the simulator device further includes simulation result display means for displaying a simulation result in the execution resumption waiting state.

上記構成の表示/制御・シミュレートシステムによれば、マクロブロック実行中に、ユーザが任意に設定したブレークポイントの行で一時停止させることができる。これによって、マクロブロック実行の途中までのシミュレート結果を表示することができ、ユーザは、この表示を見ることで一時停止時点までの処理に問題があったか否かを判断できる。   According to the display / control / simulation system having the above configuration, it is possible to pause at the breakpoint line arbitrarily set by the user during execution of the macroblock. As a result, the simulation result up to the middle of the execution of the macroblock can be displayed, and the user can determine whether or not there is a problem in the processing up to the point of suspension by viewing this display.

従来では、マクロブロックを最後まで実行した時点でシミュレート結果を表示するので、途中までのシミュレート結果を表示したい場合には上述したように、マクロブロックを修正(任意の途中の行まで記述されたもの)し、修正する毎に修正したマクロブロックを表示器に転送・格納させて実行させるという、非常に手間・時間が掛かる作業が必要であった。本手法では特に修正・転送が必要なくなることから、手間が掛からず短時間でマクロブロック内の問題箇所を特定することができる。   Conventionally, since the simulation result is displayed when the macroblock is executed to the end, if you want to display the simulation result up to the middle, modify the macroblock as described above. However, every time it is corrected, the corrected macroblock is transferred to the display unit, stored, and executed. This method eliminates the need for correction / transfer, so that troublesome points in the macroblock can be identified in a short time without any effort.

本発明の表示/制御・シミュレートシステム、そのプログラマブル表示器、シミュレータ装置等によれば、任意のマクロブロック実行中に任意のタイミングで実行を一旦停止する機能を備えさせたことで、手間が掛からず短時間でマクロブロック内の問題箇所を特定することができ、以ってマクロブロックのデバッグ効率の向上を図ることができる。   According to the display / control / simulation system of the present invention, the programmable display device, the simulator device, and the like, it is troublesome by providing a function to temporarily stop execution at an arbitrary timing during execution of an arbitrary macroblock. Therefore, it is possible to identify a problem location in the macro block in a short time, thereby improving the debugging efficiency of the macro block.

本例の表示/制御システムの概略構成図である。It is a schematic block diagram of the display / control system of this example. プログラマブル表示器のハードウェア構成図である。It is a hardware block diagram of a programmable display. 図1に示す表示/制御システムのソフトウェア構成図である。It is a software block diagram of the display / control system shown in FIG. 本例の表示/制御システムの処理フローチャート図である。It is a process flowchart figure of the display / control system of this example. マクロデータの一例を示す図である。It is a figure which shows an example of macro data. マクロビューアによるブレークポイント設定画面の一例である。It is an example of the breakpoint setting screen by a macro viewer.

以下、図面を参照して、本発明の実施の形態について説明する。
図1に、本例の表示/制御システム(プログラマブル表示器を含むPLCシステム等)の概略構成図を示す。
Embodiments of the present invention will be described below with reference to the drawings.
In FIG. 1, the schematic block diagram of the display / control system (PLC system containing a programmable display etc.) of this example is shown.

図1において、表示/制御システムは、プログラマブル表示器1と、プログラマブル・ロジック・コントローラ本体(以下、PLC本体と表記)等である外部機器4と、作画エディタ装置5を有する。   In FIG. 1, the display / control system includes a programmable display 1, an external device 4 such as a programmable logic controller main body (hereinafter referred to as a PLC main body), and a drawing editor device 5.

PLC本体(外部機器4)には、従来と同様に、プログラマブル表示器1と、各種制御対象機器(モータ、温調器等)が接続されている。PLC本体は、一般的なものであってよく、特に詳細には説明しないが、よく知られているように、汎用的なワークメモリや、各制御情報等をデバイス名とアドレス等で識別するメモリ(制御用メモリと呼ぶものとする)と、それらを制御する機能(マイコン)等によって実現されるのが一般的である。   The PLC main body (external device 4) is connected to the programmable display 1 and various devices to be controlled (motor, temperature controller, etc.) as in the prior art. The PLC main body may be a general one, and will not be described in detail. However, as is well known, a general-purpose work memory and a memory for identifying each control information by a device name and an address, etc. It is generally realized by a control memory (referred to as a control memory) and a function (microcomputer) for controlling them.

また、本例では、シミュレータ装置の機能が作画エディタ装置5に搭載されている例を用いるものとする。
プログラマブル表示器1には、従来で説明したように、作画エディタ装置5上で任意に作成された画面データ(各種マクロブロックが付随されている)が、作画エディタ装置5からダウンロードされて、これを表示器1内の記憶部(メモリ等)に格納する。そして、表示器1内の基本プログラムが、この画面データを用いて各種処理を実行する。その際、例えば後述するマクロデータ26(マクロブロック)を実行することで、上記制御用メモリの特定のアドレスのデータを読み出して表示したり、特定のアドレスにデータを書き込む。PLC本体は、書き込まれたデータに基づいて、このアドレスに対応する制御対象機器(またはPLC本体自身)を制御する。
Further, in this example, an example in which the function of the simulator device is installed in the drawing editor device 5 is used.
As described above, the programmable display device 1 is downloaded with screen data (various macroblocks attached) arbitrarily created on the drawing editor device 5 from the drawing editor device 5. The data is stored in a storage unit (memory or the like) in the display device 1. Then, the basic program in the display device 1 executes various processes using this screen data. At that time, for example, by executing macro data 26 (macro block) described later, data at a specific address in the control memory is read and displayed, or data is written at a specific address. The PLC main body controls the control target device (or the PLC main body itself) corresponding to this address based on the written data.

尚、上記外部機器4は、PLC本体だけでなく制御対象機器も含まれてもよい。そして、プログラマブル表示器1は、マクロブロックを実行することで、この様な外部機器4の状態を表示したり、外部機器4を制御するものである。   The external device 4 may include not only the PLC main body but also a control target device. And the programmable display 1 displays the state of such an external device 4 by controlling a macro block, and controls the external device 4. FIG.

また、作画エディタ装置5は、上記プログラマブル表示器1用の画面データを、ユーザに任意に作成させる作画エディタ機能を有する、例えばパソコン等である。また、本例では、作画エディタ装置5は、シミュレータ装置としての機能も有する。このシミュレータ装置としての機能は、上述した従来の機能も有するが、更に後述する新たな機能も備える。尚、この例に限らず、作画エディタ装置5とは別にシミュレータ装置を設けるようにしてもよい。   The drawing editor device 5 is, for example, a personal computer or the like having a drawing editor function that allows the user to arbitrarily create screen data for the programmable display device 1. In this example, the drawing editor device 5 also has a function as a simulator device. The function as the simulator device has the above-described conventional function, but also has a new function described later. In addition to this example, a simulator device may be provided separately from the drawing editor device 5.

尚、従来のシミュレータ装置の機能は、既に説明してあり、ここでは特に詳細には説明しないが、簡単に説明するならば、例えば、作画エディタ装置5内のメモリを、擬似的な上記制御用メモリとし、プログラマブル表示器1に上記制御用メモリではなくこの擬似メモリにアクセスさせる。そして、この擬似メモリの内容を読み出して表示する等の処理を行うものである。   The function of the conventional simulator device has already been described, and will not be described in detail here. However, if briefly described, for example, the memory in the drawing editor device 5 is used for the above-mentioned pseudo control. As a memory, the programmable display 1 is made to access this pseudo memory instead of the control memory. Then, the contents of the pseudo memory are read and displayed.

プログラマブル表示器1は、複数の通信インタフェース2を有し、各通信インタフェース2には各通信ライン3が接続されている。プログラマブル表示器1は、各通信ライン3を介して、外部機器4、作画エディタ装置5と通信可能となっている。例えば、プログラマブル表示器1は、通信インタフェース2と通信ライン3を介して外部機器4と接続することにより、例えば上記制御用メモリにアクセスしてデータのリード/ライトを行うことで、外部機器4の制御や外部機器4の状態を表示することが出来る。   The programmable display device 1 has a plurality of communication interfaces 2, and each communication line 3 is connected to each communication interface 2. The programmable display device 1 can communicate with the external device 4 and the drawing editor device 5 via each communication line 3. For example, the programmable display 1 is connected to the external device 4 via the communication interface 2 and the communication line 3, for example, by accessing the control memory and reading / writing data, The status of control and external device 4 can be displayed.

この様な外部機器4の制御の為の操作(スイッチ操作等)をユーザに行わせたり状態表示を行う為の操作/表示用画面が、プログラマブル表示器1のディスプレイに表示される。この画面表示は、画面データに基づいて行われる。この操作/表示用画面上には各種アイテム画像(スイッチ、ランプ、グラフ、数値等)が表示される。ユーザは、所望のアイテム画像の表示位置をタッチする等して、このアイテム画像のアイテムに予め割り当てられている機能(マクロブロック)を実行させることで、外部機器4の制御等が行われる。   An operation / display screen for allowing the user to perform such an operation (switch operation or the like) for controlling the external device 4 or for displaying a status is displayed on the display of the programmable display 1. This screen display is performed based on the screen data. Various item images (switches, lamps, graphs, numerical values, etc.) are displayed on the operation / display screen. The user touches the display position of a desired item image and executes a function (macroblock) pre-assigned to the item of the item image, thereby controlling the external device 4 and the like.

あるいは、グラフ、数値等に関しては、ユーザが操作しなくても、例えば定周期で実行されるマクロブロックによって、上記制御用メモリの所定アドレスのデータが読み出されることで、外部機器4の状態をグラフ表示/数値表示等することになる。   Alternatively, regarding the graph, the numerical value, etc., even if the user does not operate, the data of the predetermined address in the control memory is read out by, for example, a macro block that is executed at a fixed cycle, so that the state of the external device 4 is graphed. Display / numerical value display.

尚、画面データは、どのような表示を行うか、どのような制御を行うか、どのような接続機種かといったプログラマブル表示器の動作を規定するデータである。
例えば、作画エディタ装置5における画面データの作成においては、表示器1においてユーザによるオペレーションを受け付ける為のスイッチや、データの表示を行う数値表示などの各種部品のシンボル画を含む部品リストが、不図示の画面データ作成支援画面上に表示される。ユーザは、この中から所望の部品を選択して、支援画面上の任意位置に配置する。更に、ユーザは、配置した部品に対して、任意の制御対象機器のデバイス名とアドレス(上記制御用メモリにおけるアドレス)等を対応付ける。また、各部品には、予め所定のマクロブロックが割り当てられている。あるいは、ユーザが、各部品に、任意のマクロブロックを割り当てる。また、マクロブロックの内容は、ユーザが任意に編集可能であり、更に例えば従来の課題で説明したように100行のマクロブロックを10行とするような修正を行うこともできる。
The screen data is data that defines the operation of the programmable display such as what kind of display is to be performed, what kind of control is to be performed, and what kind of connection is being performed.
For example, when creating screen data in the drawing editor device 5, a component list including symbol images of various components such as a switch for receiving an operation by the user on the display 1 and a numerical display for displaying data is not shown. Is displayed on the screen data creation support screen. The user selects a desired part from these and places it at an arbitrary position on the support screen. Further, the user associates the device name and address (address in the control memory) of an arbitrary control target device with the arranged component. Each component is assigned a predetermined macroblock in advance. Alternatively, the user assigns an arbitrary macro block to each part. Further, the contents of the macroblock can be arbitrarily edited by the user, and further, for example, as described in the conventional problem, the macroblock of 100 rows can be corrected to 10 rows.

この様にして作成された画面データを、表示器1にダウンロードする。そして、後述するように表示器1における基本プログラムである本体プログラム21が、この画面データを用いた表示/制御処理を行う。これによって、例えば、グラフ、数値等の部品に関しては、自動的に、外部機器4の状態をグラフ表示/数値表示等することになる。また、スイッチ等の部品に関しては、ユーザが操作した部品に応じた制御処理が実行されることになる。何れにしても、上記各部品に対応付けられたアドレス等に基づいて、上記制御用メモリにおける所定アドレスにアクセスして、そのデータをリード/ライトすることになる。   The screen data created in this way is downloaded to the display 1. Then, as will be described later, the main body program 21, which is a basic program in the display 1, performs display / control processing using this screen data. Thereby, for example, regarding parts such as graphs and numerical values, the state of the external device 4 is automatically displayed in graphs / numerical values. For components such as switches, control processing corresponding to the component operated by the user is executed. In any case, a predetermined address in the control memory is accessed based on an address associated with each component, and the data is read / written.

この様な表示/制御処理は、上記マクロブロック実行によって実現されることになる。
そして、この様な表示器1の処理を、実機(PLC本体)に実際にアクセスすることなく擬似的に実行させる為に、シミュレータ装置が設けられている。
Such display / control processing is realized by executing the macroblock.
A simulator device is provided in order to execute such processing of the display 1 in a pseudo manner without actually accessing the actual machine (PLC main body).

本手法は、シミュレータ装置に係わるものであり、シミュレーション動作中は外部機器4と接続(アクセス)することはないので、外部機器4に関してはこれ以上説明しない。
本例のシミュレータ装置に係わるシミュレーション動作については、後に図3、図4等を参照して説明する。
This method is related to the simulator device, and is not connected (accessed) to the external device 4 during the simulation operation. Therefore, the external device 4 will not be described further.
The simulation operation related to the simulator device of this example will be described later with reference to FIGS.

図2は、プログラマブル表示器1のハードウェア構成図である。尚、ハードウェア構成自体は、従来と同様であってよい。また、作画エディタ装置5は、ハードウェア的には一般的な汎用パソコンを用いればよく、ここでは図示・説明は行わない。   FIG. 2 is a hardware configuration diagram of the programmable display 1. Note that the hardware configuration itself may be the same as the conventional one. The drawing editor device 5 may be a general general-purpose personal computer in terms of hardware, and is not illustrated or described here.

図2において、プログラマブル表示器1は、制御ユニット10と、上記通信インタフェース2と、タッチパネル18及びディスプレイ19を有する。
制御ユニット10は、グラフィックコントローラ11、ROM12、RAM13、通信コントローラ14、CPU15、タッチパネルコントローラ16等から成り、これらが内
部バス17に接続している。
In FIG. 2, the programmable display device 1 includes a control unit 10, the communication interface 2, a touch panel 18 and a display 19.
The control unit 10 includes a graphic controller 11, a ROM 12, a RAM 13, a communication controller 14, a CPU 15, a touch panel controller 16, and the like, which are connected to an internal bus 17.

グラフィックコントローラ11は、ディスプレイ19に接続しており、ディスプレイ19上に例えば上記操作/表示用画面を表示する。この操作/表示用画面の画面データは、上記のように作画エディタ装置5上で作成されたものが、通信ライン3を介してプログラマブル表示器1にダウンロードされたものであり、例えばROM12に格納される。   The graphic controller 11 is connected to the display 19 and displays the operation / display screen, for example, on the display 19. The screen data of the operation / display screen is created on the drawing editor device 5 as described above and downloaded to the programmable display device 1 via the communication line 3, and stored in the ROM 12, for example. The

ROM12には、各種プログラム(本体プログラム21等)や上記画面データ等が格納される。尚、ROM12は、例えばリード/ライト可能なタイプ(EEPROMやフラッシュメモリ等)である。RAM13には、任意の様々なデータ(例えば、外部機器4から収集した機器の状態データ等)が記憶される。RAM13は、基本的に、ワークメモリとして用いられる。   The ROM 12 stores various programs (main program 21 and the like), the screen data, and the like. The ROM 12 is, for example, a readable / writable type (EEPROM, flash memory, etc.). The RAM 13 stores arbitrary various data (for example, device status data collected from the external device 4). The RAM 13 is basically used as a work memory.

通信コントローラ14は、上記通信インタフェース2に接続しており、上述した通信ライン3を介した外部機器4や作画エディタ装置5との通信を実現する。タッチパネルコントローラ16は、タッチパネル18に接続しており、タッチパネル18上におけるユーザ操作(押下位置座標等)を検出する。   The communication controller 14 is connected to the communication interface 2 and realizes communication with the external device 4 and the drawing editor device 5 via the communication line 3 described above. The touch panel controller 16 is connected to the touch panel 18 and detects a user operation (such as a pressed position coordinate) on the touch panel 18.

CPU15は、制御ユニット10全体を制御する中央処理装置である。CPU15は、例えば、ROM12に格納されている上記各種プログラムを読出し・実行することにより、プログラマブル表示器1の各種処理機能を実現する。この各種処理には、例えば後述する図4に示す処理等も含まれる。   The CPU 15 is a central processing unit that controls the entire control unit 10. The CPU 15 realizes various processing functions of the programmable display 1 by reading and executing the various programs stored in the ROM 12, for example. These various processes include, for example, a process shown in FIG.

尚、作画エディタ装置5に関しては、上記汎用パソコンは、よく知られているように例えば、CPU、ハードディスク等や、メモリ、ユーザ操作部(キーボード、マウス等)、ディスプレイ、通信インタフェース等から成る。ハードディスク等には、所定のアプリケーションプログラム等が格納されている。CPUは、このプログラムを読出し・実行することにより、上記従来の作画エディタとしての機能や、シミュレータ装置としての機能を実現する。このシミュレータ装置としての機能には、上述した従来の機能に加えて、後述する各種機能(図4で説明する機能等)が含まれる。   As for the drawing editor device 5, the general-purpose personal computer includes, for example, a CPU, a hard disk, a memory, a user operation unit (keyboard, a mouse, etc.), a display, a communication interface, and the like as is well known. A predetermined application program or the like is stored in the hard disk or the like. The CPU implements the function as the conventional drawing editor and the function as the simulator device by reading and executing this program. In addition to the conventional functions described above, the functions as the simulator device include various functions described later (functions described with reference to FIG. 4).

図3は、上記図1に示す表示/制御システムのソフトウェア構成図である。
まず、プログラマブル表示器1における上記ROM12には、図3に示す各種プログラムや各種データが格納される。すなわち、図示の本体プログラム21、通信プログラム22、シミュレータ通信プログラム23等の各種プログラムや、シミュレータ動作判定情報24、画面データ25、マクロデータ26等の各種データが、ROM12に記憶される。
FIG. 3 is a software configuration diagram of the display / control system shown in FIG.
First, the ROM 12 in the programmable display 1 stores various programs and various data shown in FIG. That is, various programs such as the illustrated main body program 21, communication program 22, and simulator communication program 23, and various data such as simulator operation determination information 24, screen data 25, and macro data 26 are stored in the ROM 12.

マクロデータ26は、上記従来や課題で説明した各種マクロデータ(各種マクロブロック)である。よって、特に詳細には説明しないが、その一例は図5に示し後に説明する。尚、既に説明したように、マクロデータ26は、画面データ25に付随するものである。   The macro data 26 is the various macro data (various macro blocks) described in the above-described conventional and problems. Therefore, although not described in detail, an example is shown in FIG. 5 and will be described later. As already described, the macro data 26 is attached to the screen data 25.

画面データ25は、既に説明したようにプログラマブル表示器1の操作/表示用画面の画面データである。よって、特に詳細には説明しないが、例えば各種アイテム(スイッチ、メータ、ランプ、ボタン等)がスクリーン上の任意の位置に配置されたものである。また、任意のアイテムに、任意のマクロブロックが対応付けられている。例えば、スイッチアイテムを例にすると、任意のスイッチがユーザによってON/OFF操作された場合に、このスイッチに対応するマクロブロックが実行されることになる。   The screen data 25 is the screen data of the operation / display screen of the programmable display 1 as already described. Therefore, although not described in detail, for example, various items (switches, meters, lamps, buttons, etc.) are arranged at arbitrary positions on the screen. In addition, an arbitrary macroblock is associated with an arbitrary item. For example, taking a switch item as an example, when an arbitrary switch is turned ON / OFF by a user, a macro block corresponding to this switch is executed.

本体プログラム21は、プログラマブル表示器1全体動作を実現する基本的なプログラムであり、例えば表示/入力制御といった基本的な機能に関するプログラムである。例え
ば画面データ25を用いてディスプレイ19上に表示/制御用画面を表示する。そして、この表示/制御用画面上でのユーザによるアイテム操作に応じてマクロブロックを実行したり、あるいは定周期でマクロブロックを実行する。つまり、任意のイベントが発生する毎に、このイベントに応じたマクロブロックの処理を実行することになる。
The main body program 21 is a basic program that realizes the entire operation of the programmable display device 1, and is a program related to basic functions such as display / input control, for example. For example, a display / control screen is displayed on the display 19 using the screen data 25. Then, the macro block is executed according to the item operation by the user on the display / control screen, or the macro block is executed at a fixed cycle. That is, every time an arbitrary event occurs, the macro block processing corresponding to this event is executed.

尚、図には、本体プログラム21が実現する各種機能のうち、通信選択部21aとマクロ実行部21bとを示している。上記マクロブロックの実行は、マクロ実行部21bが行う。また、通信相手の選択は、通信選択部21aが行う。選択された通信相手との通信処理は、通信プログラム22またはシミュレータ通信プログラム23を実行することで行われる。   In the figure, the communication selection unit 21a and the macro execution unit 21b among the various functions realized by the main body program 21 are shown. The macro execution unit 21b executes the macro block. In addition, the communication selection unit 21a selects a communication partner. The communication process with the selected communication partner is performed by executing the communication program 22 or the simulator communication program 23.

ここで、上記通信プログラム22及びシミュレータ通信プログラム23は、接続機種毎のそれぞれ固有のプロトコルに対応した通信制御に関するプログラムである。つまり、通信プログラム22は、外部機器4に対応した通信制御に関するプログラムである。一方、シミュレータ通信プログラム23は、作画エディタ装置5に対応した通信制御に関するプログラムである。   Here, the communication program 22 and the simulator communication program 23 are programs related to communication control corresponding to a unique protocol for each connected model. That is, the communication program 22 is a program related to communication control corresponding to the external device 4. On the other hand, the simulator communication program 23 is a program related to communication control corresponding to the drawing editor device 5.

また、例えばプログラマブル表示器1においては、ユーザが任意にモード変更できる。つまり、表示器1においては、外部機器4に接続して上述した処理を行う通常モードと、作画エディタ装置5(シミュレータ装置)に接続して擬似的な動作を行うシミュレーションモードとがあり、ユーザは、これらモードを選択できる。   For example, in the programmable display 1, the user can arbitrarily change the mode. In other words, the display device 1 has a normal mode in which the processing described above is performed by connecting to the external device 4, and a simulation mode in which a pseudo operation is performed by connecting to the drawing editor device 5 (simulator device). These modes can be selected.

そして、通常モードにおいては、本体プログラム21は、通信プログラム22を用いて、外部機器4との通信を行う。一方、シミュレーションモードにおいては、シミュレータ通信プログラム23を用いて通信を行う。尚、上記ユーザによるモード選択結果は、図示のシミュレータ動作判定情報24として記憶され、本体プログラム21はシミュレータ動作判定情報24を参照することで、現在のモードを認識できる。   In the normal mode, the main body program 21 communicates with the external device 4 using the communication program 22. On the other hand, in the simulation mode, communication is performed using the simulator communication program 23. The mode selection result by the user is stored as the simulator operation determination information 24 shown in the figure, and the main body program 21 can recognize the current mode by referring to the simulator operation determination information 24.

尚、上記本体プログラム21や、各通信プログラム22、23は、予め(出荷時等に)プログラマブル表示器1に記憶されていてもよいし、任意のときに作画エディタ装置5等からプログラマブル表示器1にダウンロードされて記憶するものであってもよい。尚、これらプログラム21,22,23や、画面データ25(マクロデータ26含む)は、ROM12に記憶される。   The main body program 21 and the communication programs 22 and 23 may be stored in advance in the programmable display 1 (at the time of shipment or the like), or the programmable display 1 from the drawing editor device 5 or the like at any time. It may be downloaded and stored. The programs 21, 22, 23 and the screen data 25 (including macro data 26) are stored in the ROM 12.

また、図3に示すように、作画エディタ装置(パソコン;PC)5は、プログラマブル表示器用作画ソフト30を有する。プログラマブル表示器用作画ソフト30は、作画エディタ装置5内の不図示の記憶装置(ハードディスク等)に、予め記憶されている。作画エディタ装置5内の不図示のCPU等は、このアプリケーションプログラムを読出し・実行することにより、例えば図示のシミュレータ31、マクロビューア32、通信処理部36の各種機能部の処理を実現する。また、図示していないが、作画ソフト30によって、上述した画面データ作成支援機能等も実現される。これによって、上述した画面データ作成支援画面を表示して、ユーザに任意の画面データ(マクロデータ含む)を作成させる。   As shown in FIG. 3, the drawing editor device (PC) 5 has programmable display drawing software 30. The programmable display drawing software 30 is stored in advance in a storage device (such as a hard disk) (not shown) in the drawing editor device 5. A CPU or the like (not shown) in the drawing editor device 5 reads and executes the application program, thereby realizing processing of various functional units such as the simulator 31, the macro viewer 32, and the communication processing unit 36 shown in the drawing. Although not shown, the screen data creation support function and the like described above are realized by the drawing software 30. As a result, the screen data creation support screen described above is displayed to allow the user to create arbitrary screen data (including macro data).

本例では、作画エディタ装置5は、作画エディタ機能だけでなく、シミュレータ装置の機能も備える。そして、本例のシミュレータ装置を構成する機能として、図示のシミュレータ31、マクロビューア32、通信処理部36を示している。   In this example, the drawing editor device 5 has not only a drawing editor function but also a simulator device function. And as a function which comprises the simulator apparatus of this example, the simulator 31 of illustration, the macro viewer 32, and the communication process part 36 are shown.

上記画面データ作成支援機能によって任意に作成された画面データ(マクロデータ含む)は、上記ハードディスク等に記憶され、これが図示の画面データ33及びマクロデータ34である。そして、ユーザによるダウンロード指示に応じて、これら画面データ33及
びマクロデータ34が、プログラマブル表示器1にダウンロードされて記憶される。これが、図示の画面データ25及びマクロデータ26である。
Screen data (including macro data) arbitrarily created by the screen data creation support function is stored in the hard disk or the like, and these are the screen data 33 and macro data 34 shown in the figure. The screen data 33 and the macro data 34 are downloaded and stored in the programmable display 1 in accordance with a download instruction from the user. This is the illustrated screen data 25 and macro data 26.

つまり、表示器1側が保持する画面データ25及びマクロデータ26と同じものを、作画エディタ装置5側でも保持している。そして、後述するように、本手法では特にマクロデータ34(各種マクロブロック)を用いて、ユーザに任意のブレークポイントの設定を行わせる。   That is, the same data as the screen data 25 and macro data 26 held on the display 1 side is also held on the drawing editor device 5 side. As will be described later, in this method, the macro data 34 (various macro blocks) is used to allow the user to set an arbitrary breakpoint.

シミュレータ31は、上述したシミュレータ装置としての機能を実現する機能部であり、基本的には上述した既存のシミュレーション処理を実行するものであるが、本手法では更に後述するブレーク位置情報35を用いた処理(図4に示す処理等)を実行する。また、プログラマブル表示器1においても、このシミュレータ31の処理と連携して、後述する図4の処理等を実行する。   The simulator 31 is a functional unit that realizes the function as the above-described simulator device, and basically executes the above-described existing simulation process. In this method, break position information 35 described later is used. A process (such as the process shown in FIG. 4) is executed. The programmable display 1 also executes the process of FIG. 4 and the like described later in cooperation with the process of the simulator 31.

また、マクロビューア32は、マクロデータ34等に基づいて、ユーザに後述するブレークポイントの設定を行わせる。そして、この設定に応じてブレーク位置情報35を生成する。詳しくは後述する。尚、ブレーク位置情報35は、作画エディタ装置5内のハードディスク等に記憶される。   Further, the macro viewer 32 allows the user to set a breakpoint described later based on the macro data 34 and the like. Then, the break position information 35 is generated according to this setting. Details will be described later. The break position information 35 is stored in a hard disk or the like in the drawing editor device 5.

上記マクロビューア32と、シミュレータ31(及び、これに連携するプログラマブル表示器1の処理)が、本手法の主な特徴部分である。
尚、本例のシミュレータ装置は、シミュレータ31とマクロビューア32とから成るものと考えても良い。
The macro viewer 32 and the simulator 31 (and the processing of the programmable display 1 linked to this) are the main features of this method.
Note that the simulator device of this example may be considered to be composed of a simulator 31 and a macro viewer 32.

図4は、本例の表示/制御システムの処理フローチャート図である。つまり、上記プログラマブル表示器1及び作画エディタ装置5の処理フローチャート図である。
まず、プログラマブル表示器1側においては、本体プログラム21が、画面データ25を用いて、上述した状態表示や制御等を行っている。そして、任意のマクロブロックを実行する毎に、マクロ実行部21bがこのマクロブロックの処理を実行する。
FIG. 4 is a processing flowchart of the display / control system of this example. That is, it is a process flowchart diagram of the programmable display device 1 and the drawing editor device 5.
First, on the programmable display 1 side, the main body program 21 uses the screen data 25 to perform the above-described state display and control. Each time an arbitrary macro block is executed, the macro execution unit 21b executes the processing of the macro block.

マクロ実行部21bは、まず、シミュレータ動作判定情報24を参照して、現在、通常の動作(上記通常モード)であるか、シミュレータ装置と連動して動作しているか(上記シミュレーションモードであるか)を判定する(ステップS11)。   First, the macro execution unit 21b refers to the simulator operation determination information 24, and is currently in a normal operation (the normal mode) or is operating in conjunction with the simulator device (is the simulation mode)? Is determined (step S11).

通常の動作(シミュレータ装置と連動していない)の場合(ステップS11,NO)、既存の一般的な処理を行うことになる。すなわち、任意に設定したタイミングに従い、実行対象のマクロブロック(複数行から成る)を、当該マクロブロックの先頭行から順番に1行ずつ実行していき(ステップS11,NOでステップS14実行後ステップS15,NOによるループ処理)、最終行まで処理を実行したら(ステップS15,YES)、当該マクロブロックの処理を終了する。そして、例えば、次のマクロブロックの処理に遷移する。   In the case of normal operation (not linked with the simulator device) (step S11, NO), existing general processing is performed. That is, according to the arbitrarily set timing, the execution target macroblock (consisting of a plurality of rows) is executed one by one in order from the first row of the macroblock (step S11, NO in step S14 and step S15) , NO loop processing), when the processing is executed up to the last line (step S15, YES), the processing of the macroblock is terminated. Then, for example, the process proceeds to processing of the next macroblock.

尚、図では、ステップS15の判定がNOの場合(未だ、最終行まで実行していない場合)、ステップS11に戻るが、この例に限らず、ステップS14に移行するようにしてもよい。   In the figure, if the determination in step S15 is NO (if not yet executed to the last line), the process returns to step S11, but the present invention is not limited to this example, and the process may move to step S14.

一方、上記シミュレーションモードの場合すなわちシミュレータ装置と連動して動作している場合(ステップS11、YES)、任意に設定したタイミングに従い、基本的には上記通常の動作と同様に当該マクロブロックの先頭行から順番に1行ずつ実行していくことになるが、1行毎に、その行の処理(マクロコマンド等)を実行する前に、作画エディ
タ装置5のシミュレータ31に対して、今から実行するマクロブロックのブロック番号と行番号を通知する(ステップS12)。
On the other hand, in the simulation mode, that is, when operating in conjunction with the simulator device (step S11, YES), the first line of the macroblock is basically executed in the same manner as the normal operation according to the arbitrarily set timing. Will be executed one line at a time, starting with the simulator 31 of the drawing editor device 5 before executing the process (macro command, etc.) for each line. The block number and line number of the macro block are notified (step S12).

尚、ブロック番号は、各マクロブロックを識別する為に各マクロブロックに予め割り当てた識別番号である。行番号は、マクロブロック内の先頭から何番目の行であるかを示すものである。   The block number is an identification number assigned in advance to each macro block in order to identify each macro block. The line number indicates the number of the line from the beginning in the macroblock.

シミュレータ31は、通知されたブロック番号に対応するマクロブロックのブレーク位置情報35を取得する。そして、このブレーク位置情報35と通知された行番号とに基づいて、通知された行番号の行が、ブレーク対象であるか否かを判定する(ステップS21)。   The simulator 31 acquires macro block break position information 35 corresponding to the notified block number. Then, based on the break position information 35 and the notified line number, it is determined whether or not the line with the notified line number is a break target (step S21).

ここで、上記ブレーク位置情報35について説明する。
上記の通り、ブレーク位置情報35は、マクロビューア32によってユーザが任意にブレークポイントの設定を行うことで作成される。
Here, the break position information 35 will be described.
As described above, the break position information 35 is created when the user arbitrarily sets a break point by the macro viewer 32.

上記の通り作画エディタ装置5側では、プログラマブル表示器1側で保持・実行する画面データ25及びマクロデータ26と同じデータを保持している。すなわち、画面データ33及びマクロデータ34を保持している。   As described above, the drawing editor device 5 side holds the same data as the screen data 25 and macro data 26 held and executed on the programmable display device 1 side. That is, the screen data 33 and the macro data 34 are held.

これより、本例のシミュレータ装置の1機能(アプリケーション)であるマクロビューア32は、例えばシミュレーション開始前の任意のときにユーザが任意に指定したマクロブロックの内容を、作画エディタ装置5のディスプレイに表示する。あるいは、上記ステップS12による通知があったときに、通知されたブロック番号のマクロブロックの内容を表示する。何れにしても、例えば、図6に示すようなブレークポイント設定画面40内に、マクロブロックの内容(全ての行)が表示される。   Accordingly, the macro viewer 32 which is one function (application) of the simulator device of the present example displays the contents of the macro block arbitrarily designated by the user at any time before the start of the simulation on the display of the drawing editor device 5, for example. To do. Or when the notification by said step S12 is received, the content of the macroblock of the notified block number is displayed. In any case, for example, the contents (all lines) of the macroblock are displayed in the breakpoint setting screen 40 as shown in FIG.

ここで、図5に、マクロデータ34(26)の一例を示す。図示の通り、マクロデータ34(26)は、複数のマクロブロック(1〜n)より成るものである。そして、各マクロブロックは、複数行のプログラム(例えばマクロコマンドを用いたプログラム文)より成る。図示のマクロブロック1の例の場合、行番号が‘0’〜‘m’までの“m+1”行のプログラムとなっている。   Here, FIG. 5 shows an example of the macro data 34 (26). As shown, the macro data 34 (26) is composed of a plurality of macro blocks (1 to n). Each macro block is composed of a program of a plurality of lines (for example, a program statement using a macro command). In the example of the illustrated macroblock 1, the program has “m + 1” rows with row numbers “0” to “m”.

マクロビューア32は、例えば図6に示すブレークポイント設定画面40を、ディスプレイ上に表示する。このブレークポイント設定画面40には、任意のマクロブロックの内容(プログラムリスト)が表示される。図示の例では、上記図5に示すマクロブロック1の内容が表示されている。   For example, the macro viewer 32 displays a breakpoint setting screen 40 shown in FIG. 6 on the display. The breakpoint setting screen 40 displays the contents (program list) of an arbitrary macroblock. In the illustrated example, the contents of the macro block 1 shown in FIG. 5 are displayed.

ユーザは、このブレークポイント設定画面40上において、表示されるマクロブロックのプログラムリストにおける任意の“行”を指定することができる。例えば、マウス操作等により所望の“行”の表示位置をクリックすることで、指定することができる。   The user can designate an arbitrary “line” in the program list of the displayed macroblock on the breakpoint setting screen 40. For example, it can be specified by clicking the display position of a desired “line” by operating the mouse.

また、ブレークポイント設定画面40上には、図示の「ブレークポイント設定」ボタン41、「ブレークポイント解除」ボタン42、「実行」ボタン43の3種類の操作ボタンが表示される。   Also, on the breakpoint setting screen 40, three types of operation buttons, a “breakpoint setting” button 41, a “breakpoint release” button 42, and an “execute” button 43 are displayed.

ユーザは、所望の“行”をブレークポイントとして設定したい場合には、まず上記のように所望の“行”を指定した後、「ブレークポイント設定」ボタン41を操作する。この設定結果は、マクロビューア32によって、ブレーク位置情報35に反映される。ブレーク位置情報35は、例えば各マクロブロックのブロック番号に対応付けて、そのマクロブ
ロックに関して上記ブレークポイントとして設定された“行”の行番号が記憶されるものである。
When the user wants to set a desired “line” as a breakpoint, the user first designates the desired “line” as described above, and then operates the “set breakpoint” button 41. This setting result is reflected in the break position information 35 by the macro viewer 32. The break position information 35 stores, for example, the line number of “line” set as the breakpoint for the macroblock in association with the block number of each macroblock.

ここで、ブレークポイントとは、マクロブロックの実行を一旦停止する位置(行)を示すものである。
また、ブレークポイント設定画面40上においては、上記ブレークポイントとして設定された“行”がユーザに分かるような表示が行われる。図示の例では設定された“行”の左側に黒丸が表示される。図示の例では、3行目(行番号=2)の行が、ブレークポイントとして設定されていることが分かる。尚、ブレークポイントとして設定する行の数は、図示の例では1つだけだが、複数の行をブレークポイントとして設定してもよい。極端な例では全ての行をブレークポイントとして設定することも可能である。
Here, the breakpoint indicates a position (line) at which execution of the macroblock is temporarily stopped.
On the breakpoint setting screen 40, a display is made so that the user can recognize the “line” set as the breakpoint. In the illustrated example, a black circle is displayed on the left side of the set “row”. In the illustrated example, it can be seen that the third line (line number = 2) is set as a breakpoint. The number of lines set as breakpoints is only one in the illustrated example, but a plurality of lines may be set as breakpoints. In extreme cases, it is possible to set all lines as breakpoints.

また、ユーザは、ブレークポイントとして設定された“行”のなかで任意の行の設定を解除したい(取り消したい)場合には、設定済みの“行”のなかで所望の“行”を指定した後、「ブレークポイント解除」ボタン42を操作する。これによって、この“行”の上記黒丸表示が消えると共に、ブレーク位置情報35においてこの“行”の行番号が削除される。   In addition, when the user wants to cancel (cancel) the setting of an arbitrary line in the “line” set as a breakpoint, the user has designated a desired “line” in the set “line”. Thereafter, the “breakpoint release” button 42 is operated. As a result, the black circle display of this “line” disappears, and the line number of this “line” is deleted in the break position information 35.

上記ブレークポイント設定画面40は、ユーザが任意のときにマクロビューア32を起動して表示させることもできるが、シミュレータ31が動作しているときには(図4の処理を実行中)自動的に表示される。ユーザは、予めブレークポイント設定画面40上で任意のマクロブロックに関して上記ブレークポイントを設定してもよいし、シミュレーション動作中にブレークポイントを設定してもよい。尚、シミュレーション動作中は、基本的に、上記ステップS12で通知されたブロック番号のマクロブロックの内容が、ブレークポイント設定画面40上に表示されることになる。   The breakpoint setting screen 40 can be displayed by activating the macro viewer 32 at any time by the user, but is automatically displayed when the simulator 31 is operating (during the execution of the process of FIG. 4). The The user may set the breakpoint for an arbitrary macro block in advance on the breakpoint setting screen 40, or may set a breakpoint during the simulation operation. During the simulation operation, the contents of the macro block having the block number notified in step S12 are basically displayed on the breakpoint setting screen 40.

尚、図6には示していないが、任意のマクロブロック実行中にその内容がブレークポイント設定画面40上に表示されている場合には、更に、どの行まで実行されたのかがユーザが分かるような何らかの表示を行うようにしてもよい。   Although not shown in FIG. 6, if the contents are displayed on the breakpoint setting screen 40 during execution of an arbitrary macroblock, the user can know how many lines have been executed. Some kind of display may be performed.

ここで、図4のフローチャートの説明に戻る。
上記の通り、ステップS21の説明に関して、図5、図6を参照して、ブレークポイントの設定と、この設定に応じたブレーク位置情報35について説明した。この説明により、ステップS21の処理は、ブレーク位置情報35において上記通知されたブロック番号のマクロブロックに関するブレークポイントの情報を参照することで行われる。つまり、上記の通り、ブレークポイントとして設定された1または複数の“行”の行番号が登録されているので、その中に上記通知された行番号があるか否かを判定する。
Now, the description returns to the flowchart of FIG.
As described above, with regard to the description of step S21, the setting of the break point and the break position information 35 corresponding to this setting have been described with reference to FIGS. According to this description, the process of step S21 is performed by referring to the break point information regarding the macro block having the notified block number in the break position information 35. That is, as described above, the line numbers of one or more “lines” set as breakpoints are registered, and it is determined whether or not the notified line numbers are included therein.

例えば、図6に示す例では、ブレーク位置情報35においてマクロブロック1に関しては、行番号=‘2’が登録されているので、もし、表示器1側で実行中のマクロブロックがマクロブロック1であったならば、ステップS12の処理により通知された行番号が‘2’のときに、ステップS21の判定がYESとなることになる。   For example, in the example shown in FIG. 6, the line number = “2” is registered for the macro block 1 in the break position information 35, so that the macro block being executed on the display unit 1 side is the macro block 1. If there is, the determination in step S21 is YES when the line number notified by the process of step S12 is “2”.

最初は、先頭行の行番号(‘0’)が通知されるので、ステップS21の判定はNOとなり、表示器1のマクロ実行部21bに対して所定の返信を行う(ステップS23)。ここでは、実行許可を返信するものとする。   Initially, since the line number ('0') of the first line is notified, the determination in step S21 is NO and a predetermined reply is made to the macro execution unit 21b of the display 1 (step S23). Here, it is assumed that execution permission is returned.

表示器1のマクロ実行部21bは、上記ステップS12の通知を行った後は、実行許可待ち状態(待機状態)となっている(ステップS13)。そして、上記ステップS23により実行許可が返信されてきたら(ステップS13,YES)、ステップS12で通知し
た“行”の処理を実行する(ステップS14)。最初は、先頭行の処理を実行することになる。
After performing the notification in step S12, the macro execution unit 21b of the display device 1 is in an execution permission waiting state (standby state) (step S13). Then, when execution permission is returned in step S23 (step S13, YES), the processing of “row” notified in step S12 is executed (step S14). Initially, the processing of the first line is executed.

そして、ステップS14の処理を実行完了したら、当該実行した“行”が最終行であるか否かを判定する(ステップS15)。最終行であれば(ステップS15,YES)、本処理を終了する。最終行でなければ(ステップS15,NO)、ステップS11の処理に戻る。尚、図ではステップS11に戻るが、ステップS12に戻るようにしてもよい。   When the execution of step S14 is completed, it is determined whether or not the executed “row” is the last row (step S15). If it is the last line (step S15, YES), this process is terminated. If it is not the last line (step S15, NO), the process returns to step S11. In addition, although it returns to step S11 in the figure, you may make it return to step S12.

そして、ステップS12において、次の実行すべき“行”の行番号等を、シミュレータ31に通知する。今度は、行番号=‘1’が通知されるので、上記の例ではステップS21の判定はNOとなり、上記行番号=‘0’の場合と同様の処理が実行されることになる。   In step S12, the simulator 31 is notified of the line number of the next “line” to be executed. Since the line number = “1” is notified this time, in the above example, the determination in step S21 is NO, and the same processing as in the case where the line number = “0” is executed.

続いて、行番号=‘2’が通知されると、上記の例では今度はステップS21の判定はYESとなり、マクロ実行再開待ち状態となる(ステップS22)。そして、ユーザが上記ブレークポイント設定画面40上で「実行」ボタン43を操作すると、ステップS23の処理に移行する。この場合も、ステップS23で実行許可を返信することになる。   Subsequently, when the line number = '2' is notified, in the above example, the determination in step S21 is now YES, and a macro execution restart waiting state is entered (step S22). When the user operates the “execute” button 43 on the breakpoint setting screen 40, the process proceeds to step S23. In this case as well, execution permission is returned in step S23.

ここで、上記ステップS22のマクロ実行再開待ち状態において、シミュレータ装置は、上述した従来の既存機能により(よって、特に図示や説明はしない)、上記擬似メモリの内容をディスプレイ上に表示する。ユーザは、シミュレート装置中の擬似メモリの内容を一覧表示で確認することにより、マクロが期待した通りの動作を行っているかを判断することが出来る。つまり、ユーザは、上記ブレークポイントまでの処理に異常があるか否かを判断できる。   Here, in the macro execution resumption waiting state in step S22, the simulator device displays the contents of the pseudo memory on the display by the above-described conventional existing function (therefore, not specifically illustrated or described). The user can determine whether or not the macro is performing the expected operation by checking the contents of the pseudo memory in the simulation apparatus in a list display. That is, the user can determine whether or not there is an abnormality in the processing up to the breakpoint.

上記の例において、ユーザが異常ありと判定したならば、それまでに実行した行の中に(本例では行番号=‘0’〜‘1’の2行の中に)、問題がある行が存在することになる。これより、ユーザは、上記マクロビューア32の機能により、今度は例えば行番号=‘0’〜‘1’の2行全てを、ブレークポイントとして設定する。そして、ユーザは、表示器1側で所定の操作を行う等して、上記マクロブロックを、再度、先頭行から順次実行させる。これによって、問題がある行を特定することができる。   In the above example, if the user determines that there is an abnormality, in the line executed so far (in this example, in the two lines of line numbers = '0' to '1'), there is a problem line Will exist. As a result, the user sets all the two lines, for example, line numbers = '0' to '1', as breakpoints by the function of the macro viewer 32. Then, the user causes the macroblock to be sequentially executed again from the first row, for example, by performing a predetermined operation on the display 1 side. As a result, the line having a problem can be identified.

一方、ユーザは、上記確認作業によって問題が無いと判断した場合には、「実行」ボタン43を操作する。これによって、ステップS22のマクロ実行再開待ち状態が解除され、ステップS23によって実行許可を返信することで、表示器1側では上記行番号=‘2’の行の処理を実行することになる。そして、4行目以降についても、最終行の処理を実行するまで、各行毎に上述した処理を実行していくことになる。図6には示していないが、4行目以降にもブレークポイント行があったならば、一時的に実行停止して、ユーザが上記一覧表示に基づいて異常判断を行うことになる。   On the other hand, the user operates the “execute” button 43 when it is determined that there is no problem in the confirmation work. As a result, the macro execution resumption waiting state in step S22 is released, and the execution permission is returned in step S23, whereby the processing of the row with the row number = '2' is executed on the display 1 side. In the fourth and subsequent rows, the above-described processing is executed for each row until the processing of the last row is executed. Although not shown in FIG. 6, if there are breakpoint lines after the fourth line, the execution is temporarily stopped and the user makes an abnormality determination based on the list display.

また、図6には示していないが、上記ブレークポイント設定画面40上に更に不図示の「ステップ実行」ボタンを設けるようにしてもよい。この場合、ユーザは、上記ステップS22のマクロ実行再開待ち状態において、再開すべきと判断した場合、上記「実行」ボタン43と「ステップ実行」ボタンの何れか一方を操作する。   Although not shown in FIG. 6, a “step execution” button (not shown) may be further provided on the breakpoint setting screen 40. In this case, the user operates either the “execute” button 43 or the “step execute” button when determining that the user should resume in the macro execution resumption waiting state in step S22.

そして、「ステップ実行」ボタンが操作された場合には、シミュレータ装置は、上記通知された行の次の行に対して、ブレークポイントの設定を行ったうえで、上記ステップS23の返信処理を行う。これによって、ユーザによる設定内容に関係なく、必ず次の行においてもステップS21の判定がYESとなり、マクロ実行が一時停止することになる。   When the “step execution” button is operated, the simulator device sets a breakpoint for the line next to the notified line, and then performs the reply process in step S23. . Thus, regardless of the setting contents by the user, the determination in step S21 is always YES even in the next line, and the macro execution is temporarily stopped.

この様に、「ステップ実行」ボタンを設けたことにより、ユーザは、デバッグ中に問題がありそうな部分を見つけたならば(経験や勘に基づき判断する)、「ステップ実行」ボタンを操作することで、この部分を集中的に検証することが可能となる。   In this way, by providing the “step execution” button, the user operates the “step execution” button when he / she finds a part that seems to have a problem during debugging (judging based on experience and intuition). This makes it possible to verify this part intensively.

以上説明したように、本手法によれば、ユーザは予めまたはデバッグ作業中に、任意の1または複数の行をブレークポイントとして設定する作業を行うだけで、マクロブロック内における問題となる行を見つけて修正する作業(デバッグ作業)を実現することができ、効率的なデバッグ作業を行えるようになる。これによって、デバッグ作業に掛かる時間を、従来よりも短縮することができる。また、ユーザのデバッグ作業負担を軽減することができる。   As described above, according to this method, a user can find a problematic line in a macroblock simply by performing an operation of setting one or more arbitrary lines as a breakpoint in advance or during debugging. Thus, it is possible to realize a correction work (debugging work) and to perform an efficient debugging work. As a result, the time required for the debugging work can be shortened as compared with the prior art. In addition, it is possible to reduce the user's debugging work load.

この様な本手法の時間短縮効果について、以下、具体的な一例を用いて説明する。
ここでは、例えば、100行から成るマクロブロックを例にして、100行目に何らかの問題があるものとする。
Such a time reduction effect of the present technique will be described below using a specific example.
Here, for example, a macroblock consisting of 100 rows is taken as an example, and it is assumed that there is some problem on the 100th row.

この例の場合、従来のシステムでは、例えば以下に述べる手順によりデバッグ作業を行う。
マクロブロックの修正→画面転送→確認を、1〜100行目まで繰り返し行う。
In the case of this example, in the conventional system, the debugging work is performed by the following procedure, for example.
The macro block modification → screen transfer → confirmation is repeated from the 1st to the 100th lines.

すなわち、既に従来の課題で一例を述べた通り、作画エディタ装置5において、ユーザが、マクロブロックの内容を修正する。修正方法は、既に述べた通り様々であってよいが、ここでは分かり易いように、先頭行から1行ずつ検証していく方法を例にする。よって、ここでは、最初はマクロブロックの内容が先頭の1行目のみと成るように修正し、次は1〜2行目のみとなるように修正し、その次は1〜3行目のみと成るように修正する。これを問題の行が見つかるまで、繰り返し行うが、上記の通り本例では100行目に問題があるので、結局、1〜100行から成るマクロブロックを作成して検証するまで、終わらないことになる。   That is, as already described with an example in the conventional problem, in the drawing editor device 5, the user corrects the contents of the macroblock. The correction method may be various as described above, but here, for the sake of easy understanding, a method of verifying line by line from the first line is taken as an example. Therefore, here, the macroblock is first modified so that the contents of the macroblock are only the first line, the next is modified to be only the first and second lines, and the next is only the first to third lines. Modify to be This is repeated until the problem line is found. However, as described above, there is a problem in the 100th line in this example. Therefore, it does not end until a macroblock consisting of 1 to 100 lines is created and verified. Become.

尚、実際には、まず、複数のマクロブロックのなかで問題があるマクロブロックを抽出し、その後に問題があるマクロブロック毎に問題がある行を特定する作業を行うことになる場合が多いと考えられる。つまり、元のマクロブロック(100行から成るもの)について動作確認したら、異常があった為に、上記問題行を特定する為のデバッグ作業を行うことになる場合が多いと考えられる。よって、上記の例では、1〜99行から成るマクロブロックを作成して検証して異常が無いことを確認できた時点で、100行目に問題があることは推定可能である。しかし、これは推定であるので、ここでは、1〜100行から成るマクロブロックを作成して検証するまでは、問題の行を特定できないものとして説明する。   In practice, it is often the case that a problem is first extracted from a plurality of macroblocks, and then a problem line is identified for each problematic macroblock. Conceivable. In other words, if the operation of the original macroblock (consisting of 100 lines) is confirmed, it is considered that there are many cases where debugging work for specifying the problem line is performed because there is an abnormality. Therefore, in the above example, it can be estimated that there is a problem in the 100th line when it is confirmed that there is no abnormality by creating and verifying a macroblock consisting of 1 to 99 lines. However, since this is an estimation, it is assumed here that the problem line cannot be identified until a macroblock consisting of 1 to 100 lines is created and verified.

そして、既に従来の課題で述べた通り、上記マクロブロックの修正を行う毎に、修正したマクロブロックをプログラマブル表示器1にダウンロード(転送)して、プログラマブル表示器1側で保持するマクロブロックを更新させる。そして、プログラマブル表示器1において、このマクロブロックを実行させる。   Then, as already described in the conventional problem, each time the macroblock is corrected, the corrected macroblock is downloaded (transferred) to the programmable display 1 and the macroblock held on the programmable display 1 side is updated. Let Then, in the programmable display 1, this macro block is executed.

そして、このマクロブロックが最後まで実行された時点で、ユーザは、擬似メモリの内容を一覧表示させる等して実行結果を参照することができるので、問題があるか否かを確認する。問題がなければ、マクロブロックを修正して、再び上記転送、実行、確認を行うことになる。   Then, when the macro block is executed to the end, the user can refer to the execution result by displaying a list of the contents of the pseudo memory, so that it is confirmed whether or not there is a problem. If there is no problem, the macroblock is corrected and the transfer, execution and confirmation are performed again.

ここで、上記マクロブロック修正、画面転送、確認に掛かる時間を、それぞれ以下の通りと仮定する。
(a)画面作画(マクロブロック修正):20秒
(b)画面転送:20秒
(c)動作確認:20秒
よって、この例では、デバッグ作業に掛かる時間(ここでは問題の行を特定するまでに掛かる時間)は、以下の通りとなる。
Here, it is assumed that the time required for the macroblock correction, screen transfer, and confirmation is as follows.
(A) Screen drawing (macroblock correction): 20 seconds (b) Screen transfer: 20 seconds (c) Operation check: 20 seconds Therefore, in this example, the time required for debugging work (until the problem line is specified here) Time) is as follows.

((a)+(b)+(c))×100(行) = 6000秒(約100分)
一方、本例のシステムによれば、上記(a)画面作画と(b)画面転送が必要なくなり、(c)動作確認に掛かる時間と、ブレークポイント設定に掛かる時間だけで済む。上記の例の場合、全ての行をブレークポイントとする設定を行うことになる。あるいは、先頭行のみブレークポイント設定しておき、デバッグ作業中は必ず上記「ステップ実行」ボタンを操作するようにしてもよい。何れの方法でも、先頭行から1行ずつ動作確認を行うことになる。また、特に上記の例の場合、ブレークポイントとすべき行をどこにすべきか考える必要がなく、先頭行または全行指定で設定が完了するので、設定作業に掛かる時間は極めて短くて済む(例えば、数十秒程度)。
((A) + (b) + (c)) × 100 (line) = 6000 seconds (about 100 minutes)
On the other hand, according to the system of this example, (a) screen drawing and (b) screen transfer are not required, and only (c) time required for operation check and time required for breakpoint setting are required. In the case of the above example, all lines are set as breakpoints. Alternatively, only the first line may be set with a breakpoint, and the “step execution” button may be operated during debugging. In either method, the operation is confirmed line by line from the top line. Especially in the case of the above example, it is not necessary to consider where to set the line to be a breakpoint, and the setting is completed by specifying the first line or all lines, so the time required for the setting work can be extremely short (for example, Tens of seconds).

(c)動作確認に掛かる時間は、従来と同じである。
すなわち、マクロのステップ実行による1行毎の動作確認に掛かる時間は20秒であるので、
20秒×100行 = 2000秒(約33分)
となる。これに、上記設定作業に掛かる時間を加えたとしても、従来(100分)に比べて、非常に短い時間で済む(ほぼ1/3程度で済む)。
(C) The time required for the operation check is the same as the conventional time.
In other words, the time required for checking the operation for each line by executing the macro step is 20 seconds.
20 seconds x 100 lines = 2000 seconds (approximately 33 minutes)
It becomes. Even if the time required for the setting work is added to this, it takes a very short time (approximately 1/3) compared with the conventional method (100 minutes).

このように、画面作画及び画面転送が不要になるため、作業効率が非常に向上し、デバッグ作業に掛かる時間が大きく短縮できる(1/3程度)。
画面データのサイズが大きい場合や、マクロブロック内の行数が多いほど/マクロブロックの数が多いほど、作業効率の向上(時間短縮)の効果は更に大きくなるものと考えられる。
As described above, since screen drawing and screen transfer are not required, work efficiency is greatly improved, and time required for debugging work can be greatly shortened (about 1/3).
It is considered that the effect of improving work efficiency (time reduction) is further increased when the size of the screen data is large or as the number of lines in the macroblock / the number of macroblocks increases.

また、以上説明した一例は、プログラマブル表示器に関しては実機を用いるが、PLC等に関しては実機を用いずにパソコン上でシミュレータ装置によって擬似的な動作を行う場合を前提にしたものであるが、この例に限るものではない。   In addition, the example described above is based on the assumption that a programmable display device uses a real machine, but a PLC or the like does not use a real machine and performs a pseudo operation on a personal computer using a simulator device. It is not limited to examples.

上述したように、従来技術において、パソコン上等において、プログラマブル表示器の機能・動作を擬似的に実現することも行われている。つまり、プログラマブル表示器の動作をエミュレートするエミュレート装置が、従来より存在している。そして、既に述べた通り、従来より、パソコン上等において上記シミュレータ装置とエミュレート装置の両方を動作させることで、プログラマブル表示器の画面データのデバッグを行うことが知られている。   As described above, in the prior art, the function / operation of the programmable display is realized in a pseudo manner on a personal computer or the like. In other words, there has conventionally been an emulation device that emulates the operation of a programmable display. As described above, it has been conventionally known that the screen data of the programmable display device is debugged by operating both the simulator device and the emulator device on a personal computer or the like.

本手法は、この様な構成に対しても適用可能である。この場合、図3には示さないが、作画エディタ装置5のプログラマブル表示器用作画ソフト30に、更に上記エミュレート装置の機能を備えさせるようにする。そして、このエミュレート装置と上記シミュレータ装置とで連携処理を行って、上述したデバッグ作業を実現させる。尚、この場合、エミュレート装置には、従来の処理機能に加えて更に、例えば図4に示すマクロ実行部21bの処理と略同様の処理を行う機能も備えるようにする。勿論、この場合には、シミュレータ装置とエミュレート装置は、同じパソコン上(作画エディタ装置5)に構築されているので、通信プログラムによる通信ライン2を介した通信処理等は必要ない。   This method can be applied to such a configuration. In this case, although not shown in FIG. 3, the programmable display screen drawing software 30 of the drawing editor device 5 is further provided with the functions of the emulator. Then, the emulator device and the simulator device perform cooperation processing to realize the debugging work described above. In this case, in addition to the conventional processing function, the emulation apparatus is further provided with a function of performing processing substantially similar to the processing of the macro execution unit 21b shown in FIG. Of course, in this case, since the simulator device and the emulator device are constructed on the same personal computer (drawing editor device 5), communication processing via the communication line 2 by the communication program is not necessary.

また、この場合、上記モードの設定や設定モードに応じたステップS11の処理は、行
ってもよいし、行わなくてもよい。モード設定を行う場合は、作画エディタ装置5上でユーザが設定する。例えば、シミュレータ装置と連携動作させずにエミュレート装置単独で動作させたい場合には、上記通常モードに設定することで、ステップS11の判定がNOとなる処理を実行させることになる。
In this case, the process of step S11 according to the setting of the mode or the setting mode may or may not be performed. When the mode is set, the user sets it on the drawing editor device 5. For example, in the case where it is desired to operate the emulation apparatus alone without operating in cooperation with the simulator apparatus, the process in which the determination in step S11 is NO is executed by setting the normal mode.

この様に、本手法は、プログラマブル表示器が実機のケース、その動作を模擬するエミュレート装置のケースの何れのケースに対しても、適用可能であり、上述した効果を奏するものとなる。   As described above, the present technique can be applied to any case of the case where the programmable display is an actual machine and the case of the emulation apparatus that simulates the operation thereof, and has the above-described effects.

尚、上記表示/制御システムにおいて、プログラマブル表示器1の通信処理部は、作画エディタで設定された外部機器によりそれぞれ固有の通信プログラムに差し替えて動作するような汎用的な構成にしておくことが実用的である。この場合、本体プログラム21と通信プログラム22間のインタフェースは、外部機器固有の通信プロトコルに依存しない汎用的な共通インタフェースにしておくことが理想的である。   In the above display / control system, it is practical that the communication processing unit of the programmable display 1 has a general-purpose configuration that operates by switching to a unique communication program by an external device set in the drawing editor. Is. In this case, the interface between the main body program 21 and the communication program 22 is ideally a general-purpose common interface that does not depend on the communication protocol unique to the external device.

最後に、上記表示/制御システムにおいて、既存技術に関することについて、以下に捕捉説明しておく。
*従来のシミュレータ機能の概要
表示器1の動作を確認する場合、表示器1と実際の外部機器(実機;外部機器4)を接続して動作確認する方法と、例えば特許文献3のように、表示器とシミュレータ装置(パーソナルコンピュータ等によって構成される、外部機器(実機)をシミュレートするシミュレータ装置)を接続して、動作確認する方法が提案されている。また、パーソナルコンピュータ等によって構成される、表示器をエミュレートするエミュレート装置と、同パーソナルコンピュータ上に構成されるシミュレータソフトとの連動により、動作確認する方法が考えられる。
Finally, in the display / control system, what is related to the existing technology will be described below.
* Summary of conventional simulator function When confirming the operation of the display unit 1, a method of confirming the operation by connecting the display unit 1 and an actual external device (actual machine; external device 4), There has been proposed a method of confirming operation by connecting a display device and a simulator device (a simulator device configured by a personal computer or the like for simulating an external device (actual machine)). Further, a method of confirming the operation by linking an emulation device configured by a personal computer or the like and emulating a simulator software configured on the personal computer is conceivable.

上記表示/制御システムにおいて、表示器1−外部機器4間の連携は、通信ライン3を介して行うコマンドによって構築され、外部機器4の制御はコマンドによるデバイスメモリの操作によって行われる。これは通信ラインを介して行うコマンドで連携できれば外部機器は実機(外部機器4)である必要がないとも考えられる。   In the display / control system, cooperation between the display 1 and the external device 4 is established by a command performed via the communication line 3, and the control of the external device 4 is performed by operation of a device memory by the command. It can be considered that the external device does not need to be an actual device (external device 4) as long as it can be linked by a command performed via a communication line.

プログラマブル表示器1のシミュレータ装置は、上記の様な考え方に基づき、シミュレートするデバイスメモリを擬似的に用意し、シミュレータ専用のコマンドで表示器1との連携を行う。この様にすることで、表示器1が擬似的に外部機器を接続した状態にして、表示器1の動作を確認することができるようにしたものである。尚、表示器1の動作とは、主に本体プログラム21が画面データ25を用いて実行する処理のことであり、シミュレータ装置を用いることで画面データの動作確認を行うものである。そして、特に画面データ25に付随する各マクロブロックの動作確認を行うものである。   Based on the above-described concept, the simulator device of the programmable display 1 prepares a simulated device memory and performs cooperation with the display 1 using a simulator-specific command. By doing in this way, the display 1 can be in a state in which an external device is connected in a pseudo manner so that the operation of the display 1 can be confirmed. The operation of the display unit 1 is mainly processing executed by the main body program 21 using the screen data 25, and the operation of the screen data is confirmed using a simulator device. In particular, the operation of each macro block associated with the screen data 25 is confirmed.

例えば従来の技術では、図3のように表示器1とシミュレータ装置によって画面データの動作を確認する場合、表示器1の通信プログラム22をシミュレータ通信用の通信プログラム23に切換え、実際に表示器1と通信する外部機器をシミュレータ装置に変更することで、あたかも実機(外部機器4)に接続しているように表示器1の動作を確認できる。エミュレータ装置と連動する場合にも同様の方法により、シミュレータソフトは表示器1と通信する場合とエミュレータと連動する場合とで、通信インタフェースの経路を差し替えることで、容易に双方と通信可能な構造になっている。   For example, in the prior art, when the operation of the screen data is confirmed by the display 1 and the simulator device as shown in FIG. 3, the communication program 22 of the display 1 is switched to the communication program 23 for simulator communication, and the display 1 By changing the external device that communicates with the simulator device, the operation of the display 1 can be confirmed as if it is connected to the actual device (external device 4). When linked to the emulator device, the simulator software can easily communicate with both sides by switching the communication interface path when the simulator software communicates with the display 1 and when linked with the emulator. It has become.

また、既に述べた通り、従来より、シミュレータ装置上に構築された擬似メモリの内容を表示/編集するGUI手段が存在している。これにより、ユーザは、擬似メモリの内容を参照することで上記表示器の動作に異常があるか否か判断できたり、あるいは擬似メモ
リの内容を容易に変更することができる。
Further, as already described, there has conventionally been GUI means for displaying / editing the contents of the pseudo memory constructed on the simulator device. Thereby, the user can determine whether or not there is an abnormality in the operation of the display by referring to the contents of the pseudo memory, or can easily change the contents of the pseudo memory.

シミュレータ装置は、シミュレート対象の画面データファイルと実際に表示器が表示している画面により、どのような擬似メモリを表示するのかを解析し、その画面で使用するメモリを一覧で表示する等の機能も有する。   The simulator device analyzes what kind of pseudo memory is displayed based on the screen data file to be simulated and the screen actually displayed on the display unit, and displays a list of memory used on the screen. It also has a function.

また、以下に既存のマクロデータ(各種マクロブロック)の具体的を列挙しておく。
尚、マクロデータは、図5で示す通り画面データの一部であり、プログラマブル表示器内とシミュレータソフト内に同じ内容のデータを持つ。各種マクロブロックを実行することによって、演算処理や、プログラマブル表示器の動作や外部機器のメモリ操作等を、任意のタイミングで行うことができる。この任意のタイミングについても、具体例を以下に示している。尚、以下の具体例では、各種マクロブロック(オープンマクロ、ONマクロ等)を、例えば[スクリーン]、[スイッチ]等のようにグループ分けしたうえで示している。また、具体的なマクロブロック名称を示さず、概略的な説明のみとしている場合もある。
Specific details of existing macro data (various macro blocks) are listed below.
The macro data is a part of the screen data as shown in FIG. 5, and has the same data in the programmable display and the simulator software. By executing various macro blocks, arithmetic processing, operation of a programmable display, memory operation of an external device, and the like can be performed at an arbitrary timing. A specific example of this arbitrary timing is shown below. In the following specific examples, various macro blocks (open macro, ON macro, etc.) are grouped as [screen], [switch], etc., for example. In some cases, a specific macroblock name is not shown and only a schematic explanation is given.

[スクリーン]
- オープンマクロ:スクリーンを表示したとき1回実行
- クローズマクロ:スクリーンを切り替えたとき1回実行
- サイクルマクロ:スクリーンを表示中繰り返し実行
[マルチオーバーラップ]
- オープンマクロ:マルチオーバーラップを表示したとき1回実行
- クローズマクロ:マルチオーバーラップを消したとき1回実行
[スイッチ]
- ONマクロ:スイッチを押したとき1回実行
- OFFマクロ:スイッチから指が離れたとき1回実行
[ファンクションスイッチ]
- ONマクロ:ファンクションスイッチを押したとき1回実行
- OFFマクロ:ファンクションスイッチから指が離れたとき1回実行
[初期マクロ]
コントローラと通信を開始する前にマクロブロックのマクロを1回実行。
[screen]
-Open macro: Run once when the screen is displayed
-Close macro: Run once when switching screens
-Cycle macro: Repeated execution while the screen is displayed
[Multi-overlap]
-Open macro: Run once when multi-overlap is displayed
-Close macro: Run once when multi-overlap is turned off
[switch]
-ON macro: Run once when switch is pressed
-OFF macro: Run once when finger is released from switch
[Function switch]
-ON macro: Runs once when the function switch is pressed
-OFF macro: Runs once when the finger is released from the function switch
[Initial macro]
Execute macro of macro block once before starting communication with controller.

[グローバルマクロ]
読込エリアのマクロ実行ビットが0 →1(エッジ)でマクロブロックのマクロを1回実行。
[Global Macro]
When the macro execution bit in the read area changes from 0 to 1 (edge), the macro block macro is executed once.

[イベントタイママクロ]
表示している画面に関係なく、常時設定時間ごとにマクロブロックのマクロを実行。
[インターバルタイマ]
インターバルタイマを設定したスクリーンを表示中、設定内容に従ってタイマが起動。
[Event timer macro]
Regardless of the screen being displayed, the macro block macro is always executed at every set time.
[Interval timer]
While the screen with the interval timer set is displayed, the timer starts according to the settings.

タイムアップする度に、マクロブロックのマクロを実行。
[マクロモード]
マクロモードが設定されている画面を表示中、設定メモリの状態によってマクロを実行。
Every time the time is up, the macro block macro is executed.
[Macro mode]
While displaying a screen with the macro mode set, the macro is executed according to the setting memory status.

- ONマクロ:メモリのビットが0 → 1(エッジ)で実行
- OFFマクロ:メモリのビットが1 → 0(エッジ)で実行
-ON macro: Executes when the memory bit changes from 0 to 1 (edge)
-OFF macro: Executes when the memory bit changes from 1 to 0 (edge)

1 プログラマブル表示器
2 通信インタフェース
3 通信ライン
4 外部機器
5 作画エディタ装置
10 制御ユニット
11 グラフィックコントローラ
12 ROM
13 RAM
14 通信コントローラ
15 CPU
16 タッチパネルコントローラ
17 内部バス
18 タッチパネル
19 ディスプレイ
21 本体プログラム
21a 通信選択部
21b マクロ実行部
22 通信プログラム
23 シミュレータ通信プログラム
24 シミュレータ動作判定情報
25 画面データ
26 マクロデータ
30 プログラマブル表示器用作画ソフト
31 シミュレータ
32 マクロビューア
33 画面データ
34 マクロデータ
35 ブレーク位置情報
40 ブレークポイント設定画面
41 「ブレークポイント設定」ボタン
42 「ブレークポイント解除」ボタン
43 「実行」ボタン
1 Programmable Display 2 Communication Interface 3 Communication Line 4 External Device 5 Drawing Editor Device 10 Control Unit 11 Graphic Controller 12 ROM
13 RAM
14 Communication controller 15 CPU
16 Touch Panel Controller 17 Internal Bus 18 Touch Panel 19 Display 21 Main Program 21a Communication Selection Unit 21b Macro Execution Unit 22 Communication Program 23 Simulator Communication Program 24 Simulator Operation Determination Information 25 Screen Data 26 Macro Data 30 Programable Display Software 31 Simulator 32 Macro Viewer 33 Screen data 34 Macro data 35 Break position information 40 Breakpoint setting screen 41 “Breakpoint setting” button 42 “Breakpoint release” button 43 “Execute” button

Claims (6)

プログラマブル表示器とシミュレータ装置とが接続されたシステムであって、
前記プログラマブル表示器は、
各種マクロブロックより成るマクロデータが付随された画面データを記憶する画面データ記憶手段と、
該画面データを用いて任意のイベントに応じた処理を実行し、該処理に係わり前記マクロブロックのプログラムを実行する際、1行毎にその行番号を前記シミュレータ装置に通知し、実行許可が返信されてくると当該行のプログラムを実行する処理実行手段とを有し、
前記シミュレータ装置は、
前記画面データ記憶手段に記憶されているマクロデータと同じマクロデータを記憶する記憶手段と、
該記憶手段に記憶されているマクロデータのマクロブロックのプログラムの任意の行をブレークポイントに設定させて、該設定内容をブレーク位置情報として記憶するブレークポイント設定支援手段と、
前記処理実行手段から前記行番号の通知がある毎に、前記ブレーク位置情報を参照して、該行番号の行が前記ブレークポイントであるか否かを判定し、ブレークポイントではない場合には前記実行許可を返信し、ブレークポイントである場合には前記実行許可を返信せずに実行再開待ち状態とすると共にその後に所定の指示があった場合に前記実行許可を返信するマクロ実行制御手段と、
を有することを特徴とする表示/制御・シミュレートシステム。
A system in which a programmable display and a simulator device are connected,
The programmable display is
Screen data storage means for storing screen data accompanied by macro data composed of various macro blocks;
When the process corresponding to an arbitrary event is executed using the screen data, and the macro block program is executed in connection with the process, the line number is notified to the simulator device for each line, and execution permission is returned. And a process execution means for executing the program of the line when
The simulator device
Storage means for storing the same macro data as the macro data stored in the screen data storage means;
Breakpoint setting support means for causing an arbitrary line of a macro block program of macro data stored in the storage means to be set as a breakpoint and storing the set content as break position information;
Each time there is a notification of the line number from the process execution means, it is determined whether or not the line with the line number is the breakpoint by referring to the break position information. Macro execution control means for returning execution permission and returning the execution permission when there is a predetermined instruction after returning to the execution resuming state without returning the execution permission if it is a breakpoint;
A display / control / simulation system characterized by comprising:
前記シミュレータ装置は、前記実行再開待ち状態におけるシミュレート結果を表示するシミュレート結果表示手段を更に有することを特徴とする請求項1記載の表示/制御・シミュレートシステム。   2. The display / control / simulation system according to claim 1, wherein the simulator device further includes a simulation result display means for displaying a simulation result in the execution resumption waiting state. 前記マクロ実行制御手段は、前記所定の指示としてステップ実行があった場合には、前記通知された行番号の行の次の行をブレークポイントに設定したうえで、前記実行許可を返信することを特徴とする請求項1または2記載の表示/制御・シミュレートシステム。   The macro execution control means, when there is step execution as the predetermined instruction, sets a line next to the line of the notified line number as a breakpoint and returns the execution permission. The display / control / simulation system according to claim 1 or 2, characterized in that: 前記プログラマブル表示器は、プログラマブル表示器の実機、または該実機の動作をエミュレートするエミュレート装置であることを特徴とする請求項1〜3の何れかに記載の表示/制御・シミュレートシステム。   The display / control / simulation system according to claim 1, wherein the programmable display device is an actual device of the programmable display device or an emulation device that emulates the operation of the actual device. プログラマブル表示器とシミュレータ装置とが接続されたシステムにおける該プログラマブル表示器であって、
各種マクロブロックより成るマクロデータが付随された画面データを記憶する画面データ記憶手段と、
該画面データを用いて任意のイベントに応じた処理を実行し、該処理に係わり前記マクロブロックのプログラムを実行する際、1行毎にその行番号を前記シミュレータ装置に通知し、実行許可が返信されてくると当該行のプログラムを実行する処理実行手段と、
を有することを特徴とするプログラマブル表示器。
The programmable display in a system in which a programmable display and a simulator device are connected,
Screen data storage means for storing screen data accompanied by macro data composed of various macro blocks;
When the process corresponding to an arbitrary event is executed using the screen data, and the macro block program is executed in connection with the process, the line number is notified to the simulator device for each line, and execution permission is returned. Processing execution means for executing the program of the line when
A programmable display device comprising:
プログラマブル表示器とシミュレータ装置とが接続されたシステムにおける該シミュレータ装置であって、
前記プログラマブル表示器側に記憶されているマクロデータと同じマクロデータを記憶する記憶手段と、
該記憶手段に記憶されているマクロデータのマクロブロックのプログラムの任意の行をブレークポイントに設定させて、該設定内容をブレーク位置情報として記憶するブレーク
ポイント設定支援手段と、
任意のマクロブロックを実行中の前記プログラマブル表示器からこれから実行する行の行番号の通知がある毎に、前記ブレーク位置情報を参照して、該行番号の行が前記ブレークポイントであるか否かを判定し、ブレークポイントではない場合には実行許可をプログラマブル表示器へ返信し、ブレークポイントである場合には前記実行許可を返信せずに実行再開待ち状態とすると共にその後に所定の指示があった場合に前記実行許可を返信するマクロ実行制御手段と、
を有することを特徴とするシミュレータ装置。
A simulator device in a system in which a programmable display and a simulator device are connected,
Storage means for storing the same macro data as the macro data stored on the programmable display side;
Breakpoint setting support means for causing an arbitrary line of a macro block program of macro data stored in the storage means to be set as a breakpoint and storing the set content as break position information;
Each time there is a notification of the line number of the line to be executed from the programmable display that is executing an arbitrary macroblock, whether or not the line with the line number is the breakpoint is referred to by referring to the break position information. If it is not a breakpoint, execution permission is returned to the programmable display, and if it is a breakpoint, the execution permission is not returned without returning the execution permission and a predetermined instruction is issued after that. Macro execution control means for returning the execution permission in the case of
A simulator apparatus comprising:
JP2009269085A 2009-11-26 2009-11-26 Display / control / simulation system, its programmable display, simulator device Active JP5384306B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009269085A JP5384306B2 (en) 2009-11-26 2009-11-26 Display / control / simulation system, its programmable display, simulator device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009269085A JP5384306B2 (en) 2009-11-26 2009-11-26 Display / control / simulation system, its programmable display, simulator device

Publications (2)

Publication Number Publication Date
JP2011113304A true JP2011113304A (en) 2011-06-09
JP5384306B2 JP5384306B2 (en) 2014-01-08

Family

ID=44235594

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009269085A Active JP5384306B2 (en) 2009-11-26 2009-11-26 Display / control / simulation system, its programmable display, simulator device

Country Status (1)

Country Link
JP (1) JP5384306B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001282326A (en) * 2000-03-31 2001-10-12 Digital Electronics Corp Device and method for screen simulation for programmable display unit and recording medium with recorded program for screen simulation
JP2007109120A (en) * 2005-10-17 2007-04-26 Keyence Corp Programmable display apparatus, debug supporting program and method for controlling debugging device
JP2009223471A (en) * 2008-03-14 2009-10-01 Omron Corp Simulation system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001282326A (en) * 2000-03-31 2001-10-12 Digital Electronics Corp Device and method for screen simulation for programmable display unit and recording medium with recorded program for screen simulation
JP2007109120A (en) * 2005-10-17 2007-04-26 Keyence Corp Programmable display apparatus, debug supporting program and method for controlling debugging device
JP2009223471A (en) * 2008-03-14 2009-10-01 Omron Corp Simulation system

Also Published As

Publication number Publication date
JP5384306B2 (en) 2014-01-08

Similar Documents

Publication Publication Date Title
EP2816427B1 (en) Plc simulation system, plc simulator, recording medium, and simulation method
WO2010017835A1 (en) A system and a method for off-line programming of an industrial robot
JP5552300B2 (en) Sequence control apparatus, method, and program for connected device simulator
KR102198204B1 (en) Simulation device
WO2020039900A1 (en) Information processing apparatus and program
US20160171132A1 (en) Simulation device and simulation program
KR101706029B1 (en) System-setup assistance apparatus
JP4566904B2 (en) System, control program and recording medium recording the program, and image data creation program and recording medium recording the program
JP2013084112A (en) Programmable controller system, programming device thereof, programmable controller, program and debug method
JP4941674B2 (en) Simulation system
JP5384306B2 (en) Display / control / simulation system, its programmable display, simulator device
JP2007179112A5 (en)
JP2010033192A (en) Information processor, method of controlling the same, computer program, and storage medium
JP5492573B2 (en) Device / PLC simulator device, method, and program having trace function
WO2001097035A1 (en) Automatic evaluation method and automatic evaluation system and storage medium storing automatic evaluation program
JP2008033572A (en) Screen generating apparatus, screen generating program and recording medium for recording this program
JP2009244952A (en) Motion controller, simulation method, and simulation program
JP5926584B2 (en) PLC system, its programmable display, drawing editor device
JPH07219980A (en) Test execution system
JP2007172128A (en) I/o simulator device
JP2022142493A (en) simulation device
TW202327831A (en) Simulation device for robot or machine tool
JP6009283B2 (en) Test apparatus, test system, and test method
JP2011113200A (en) Method for monitoring override state in ladder program
JP2007122597A (en) System verification device

Legal Events

Date Code Title Description
A625 Written request for application examination (by other person)

Free format text: JAPANESE INTERMEDIATE CODE: A625

Effective date: 20120514

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130904

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130910

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131002

R150 Certificate of patent or registration of utility model

Ref document number: 5384306

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250