JP2009223471A - Simulation system - Google Patents

Simulation system Download PDF

Info

Publication number
JP2009223471A
JP2009223471A JP2008065417A JP2008065417A JP2009223471A JP 2009223471 A JP2009223471 A JP 2009223471A JP 2008065417 A JP2008065417 A JP 2008065417A JP 2008065417 A JP2008065417 A JP 2008065417A JP 2009223471 A JP2009223471 A JP 2009223471A
Authority
JP
Japan
Prior art keywords
plc
unit
ladder
simulator
display
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
JP2008065417A
Other languages
Japanese (ja)
Other versions
JP4941674B2 (en
Inventor
Yuzuka Shigemori
弓束 重森
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.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
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 Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP2008065417A priority Critical patent/JP4941674B2/en
Publication of JP2009223471A publication Critical patent/JP2009223471A/en
Application granted granted Critical
Publication of JP4941674B2 publication Critical patent/JP4941674B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To improve ease of operation for conditioned execution stop function in a PLC simulator, in a simulation system separately having this type of PLC simulator and a PT simulator. <P>SOLUTION: A PT simulator includes a component retrieval part which retrieves a display component storage part by using a selected display component as a key in response to the selection of a display component and conditioned ladder execution stop function by a prescribed operation at a picture display part, and extracts the pertinent allocation address, and generates stop condition setting including the allocation address extracted in this way, and notifies a PLC simulator of this. The PLC simulator is integrated with a function which generates, when it is notified of stop condition setting including the allocation address from the PT simulator, stop condition information including the allocation address included in this. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、プログラマブル・コントローラ(以下、PLCと言う)とプログラマブル・ターミナル(プログラマブル表示器とも称される)(以下、PTと言う)とを協働させつつシミュレーションする場合に好適なシミュレーション・システムに係り、特に、PLCシミュレータとPTシミュレータとを別個に有するシミュレーション・システムに関する。   The present invention provides a simulation system suitable for a simulation in which a programmable controller (hereinafter referred to as a PLC) and a programmable terminal (also referred to as a programmable display) (hereinafter referred to as PT) cooperate. In particular, the present invention relates to a simulation system having a PLC simulator and a PT simulator separately.

PLCのラダープログラム(ラダー図言語で記述されたユーザプログラムの意味)の開発にあたっては、開発生産性を高めるために、パソコン(PC)上にPLCシミューレータ・ソフトをインストールしてなるPLCシミュレータを使用してラダープログラムの実行シミュレーションを行いつつ、デバッグ作業を行うことで、ラダープログラム上のロジックの不具合を実機インストールの前に取り除くことが主流となってきている。   When developing a PLC ladder program (meaning a user program written in a ladder diagram language), a PLC simulator with a PLC simulator software installed on a personal computer (PC) is used to increase development productivity. It has become the mainstream to remove logic defects on the ladder program before installing the actual machine by performing debugging while performing execution simulation of the ladder program.

ところで、PLCとPTとを含むPLCシステムの全体の動作をシミュレーションしつつ、ラダープログラム及びPT表示プログラムのデバッグを行う場合、PLCメモリ(入出力メモリ、データメモリ等)の内容は、ラダープログラムのみならず、PTからの関与によっても書き替えられるため、PLCシミュレータだけでは、PLCのラダープログラムのデバッグを行うことはできても、PTの表示プログラム(又は設定)についてのデバッグを行うことはできない。   By the way, when the ladder program and the PT display program are debugged while simulating the entire operation of the PLC system including PLC and PT, the contents of the PLC memory (input / output memory, data memory, etc.) are only the ladder program. In addition, since the program is rewritten by participation from the PT, the PLC ladder program can be debugged only by the PLC simulator, but the PT display program (or setting) cannot be debugged.

そこで、このようなPLCシステムの全体を対象としてのデバックのための動作シミュレーションを行う場合には、PLCシミュレータに実機PTを接続することにより、PLCについてはPLCシミュレータを介して動作シミュレーションを行うものの、PTについては実機PTを使用して動作シミュレーションを行うことが通例であった。そのため、PTの表示プログラムについては、実機PTへのインストールが必要であり、その分だけ開発生産性を低下させると言う問題点があった。   Therefore, when performing an operation simulation for debugging of the entire PLC system as described above, although the actual machine PT is connected to the PLC simulator, the operation simulation of the PLC is performed via the PLC simulator. As for PT, it is usual to perform an operation simulation using an actual PT. For this reason, the PT display program needs to be installed in the actual PT, and there is a problem that the development productivity is reduced by that much.

これに対して、昨今においては、パソコン(PC)上にPTシミューレータ・ソフトをインストールしてなるPTシミュレータを使用してPTの表示プログラムの実行シミュレーションを行いつつ、デバッグ作業を行うことで、PTの表示プログラム上のロジックの不具合を実機稼動の前に取り除くことも可能となってきている。   On the other hand, in recent years, by performing a debugging operation while performing an execution simulation of a display program of PT using a PT simulator in which PT simulator software is installed on a personal computer (PC), It has become possible to eliminate logic problems on the display program before the actual machine is started.

そのため、1台のパソコン内に、PLCシミュレータとPTシミュレータとを別個に備えて、PLCとPTとを協働させつつ動作シミュレーションを行うことが可能なシミュレーション・システムが提案されている(例えば、特許文献1参照)。   Therefore, a simulation system has been proposed in which a PLC simulator and a PT simulator are separately provided in a single personal computer, and an operation simulation can be performed while the PLC and PT cooperate. Reference 1).

このようなシミュレーション・システムの一例が図11に示されている。同図に示されるように、このシミュレーション・システムは、PLCプログラミングツール1と、PLCシミュレータ2と、PT設定ツール3と、PTシミュレータ4とを含んで構成される。それらのシステム構成要素1〜4は、それぞれ専用のコンピュータプログラム(PLCプログラミングツールソフト、PLCシミュレータソフト、PT設定ツールソフト、PTシミュレータソフト)をコンピュータ(例えば、パーソナルコンピュータ(PC))に組み込むことにより、ソフトウェア的に実現される。   An example of such a simulation system is shown in FIG. As shown in the figure, the simulation system includes a PLC programming tool 1, a PLC simulator 2, a PT setting tool 3, and a PT simulator 4. Each of these system components 1 to 4 includes a dedicated computer program (PLC programming tool software, PLC simulator software, PT setting tool software, PT simulator software) incorporated in a computer (for example, a personal computer (PC)), Realized in software.

PLCプログラミングツール1は、グラフィカル・ユーザ・インタフェース(GUI)部101と、ラダー管理部102と、ミドルウェアとして構成される通信部103と、シミュレーション・インタフェース(I/F)部104とを含んでいる。   The PLC programming tool 1 includes a graphical user interface (GUI) unit 101, a ladder management unit 102, a communication unit 103 configured as middleware, and a simulation interface (I / F) unit 104.

GUI部101は、ユーザ5との間で、画面表示、キーボード操作、マウス操作等々を介して、PLCシミュレーションやデバック等に関する種々の情報(例えば、PLCシミュレーションの開始、停止等)をやり取りする機能を有する。   The GUI unit 101 has a function of exchanging various information (for example, starting and stopping of PLC simulation) with the user 5 regarding PLC simulation, debugging, and the like via screen display, keyboard operation, mouse operation, and the like. Have.

ラダー管理部102は、ラダープログラムの作成、編集、通信部(ミドルウェア)103を介するPLCメモリ(PLCシミュレータ2に組み込まれた)からのラダープログラム(ラダー図言語で作成されたユーザプログラムの意味)の読み込み又は書き込み等の作業を、GUI部101介してユーザから与えられる指示にしたがって実行する機能を有する。   The ladder management unit 102 creates, edits, and creates a ladder program (meaning a user program created in a ladder diagram language) from a PLC memory (installed in the PLC simulator 2) via the communication unit (middleware) 103. It has a function of executing operations such as reading and writing in accordance with instructions given from the user via the GUI unit 101.

シミュレーション・インタフェース(I/F)部104は、PLCシミュレータ2との間で、PLCシミュレーションやデバック等に関する種々の情報(例えば、PLCシミュレータ2の起動、停止、ラダー実行部203におけるラダープログラムの起動、停止)をやり取りする機能を有する。   The simulation interface (I / F) unit 104 communicates with the PLC simulator 2 for various information related to PLC simulation, debugging, etc. (for example, activation and termination of the PLC simulator 2, activation of a ladder program in the ladder execution unit 203, Stop).

PLCシミュレータ2は、PLCプログラミングツール1からのPLCシミュレータ起動・停止指令を受けて起動・停止を操作されるものであり、ラダー制御部201と、通信部202と、ラダー実行部203と、停止条件保持部204とを含んでいる。   The PLC simulator 2 is operated to start and stop in response to a PLC simulator start / stop command from the PLC programming tool 1, and includes a ladder control unit 201, a communication unit 202, a ladder execution unit 203, and a stop condition. Holding part 204.

ラダー実行部203は、ユーザが任意に作成したラダープログラム203aやラダープログラム203aが参照するPLCメモリ(入出力メモリ、データメモリ等々)203bを保持すると共に、所定のラダー起動・停止指令が与えられるのに応答して、ラダープログラム203aの実行を起動させたり、停止させたりする機能を有する。   The ladder execution unit 203 holds a ladder program 203a arbitrarily created by the user and a PLC memory (input / output memory, data memory, etc.) 203b referred to by the ladder program 203a and is given a predetermined ladder start / stop command. In response to this, the execution of the ladder program 203a is started or stopped.

ラダー実行部203に保持されるラダープログラム203aやPLCメモリ203bの内容は、通信部202を介して、PLCプログラミングツール1からモニタ可能とされている。さらに、ラダー実行部203に保持されるPLCメモリ203bの内容は、通信部202を介して、PTシミュレータ4からも読み込み又は書き込み可能とされている。   The contents of the ladder program 203 a and the PLC memory 203 b held in the ladder execution unit 203 can be monitored from the PLC programming tool 1 via the communication unit 202. Further, the contents of the PLC memory 203 b held in the ladder execution unit 203 can be read or written from the PT simulator 4 via the communication unit 202.

ラダー制御部201は、PLCプログラミングツール1から与えられるラダー起動・停止指令に応答して、ラダー実行部203におけるラダープログラム203aの実行の起動、停止を制御する機能を有する。   The ladder control unit 201 has a function of controlling the start and stop of execution of the ladder program 203a in the ladder execution unit 203 in response to a ladder start / stop command given from the PLC programming tool 1.

また、ラダー制御部201は、PLCプログラミングツール1から与えられる停止条件設定に応答して、その停止条件設定に含まれる「停止条件」を停止条件保持部204に設定保持させる機能を有する。   In addition, the ladder control unit 201 has a function of setting and holding the “stop condition” included in the stop condition setting in the stop condition holding unit 204 in response to the stop condition setting given from the PLC programming tool 1.

そして、ラダー制御部201は、停止条件保持部204に設定保持される「停止条件」の成立を常時監視し、「停止条件」の成立が確認されたならば、ラダー実行部203におけるラダープログラム203aの実行を直ちに停止させる機能を有する。したがって、停止条件保持部204に所望の「停止条件」を設定保持させることで、ラダー図の実行を任意のタイミングで停止させ、これによりラダー図のデバッグが可能とされている。   Then, the ladder control unit 201 constantly monitors the establishment of the “stop condition” set and held in the stop condition holding unit 204, and if the establishment of the “stop condition” is confirmed, the ladder program 203a in the ladder execution unit 203 is confirmed. Has a function to immediately stop the execution of. Therefore, by making the stop condition holding unit 204 set and hold a desired “stop condition”, execution of the ladder diagram is stopped at an arbitrary timing, thereby enabling debugging of the ladder diagram.

一方、PT設定ツール3は、グラフィカル・ユーザ・インタフェース(GUI)部301と、表示部品管理部302と、シミュレーション・インタフェース(I/F)303とを含んでいる。   On the other hand, the PT setting tool 3 includes a graphical user interface (GUI) unit 301, a display component management unit 302, and a simulation interface (I / F) 303.

GUI部301は、ユーザ5との間で、画面表示、キーボード操作、マウス操作等々を介して、PTシミュレーションやデバック等に関する種々の情報(例えば、PTシミュレーションの開始、停止等)をやり取りする機能を有する。   The GUI unit 301 has a function of exchanging various information (for example, starting and stopping of PT simulation) with the user 5 regarding PT simulation, debugging, and the like through screen display, keyboard operation, mouse operation, and the like. Have.

表示部品管理部302は、GUI部301を介してユーザ5との間で対話を行いつつ、所望のPT画面(複数の表示部品を配列して構成される)に相当する画面データを生成し、この画面データをPTシミュレータ4内のPT実行部403に書き込む機能を有する。   The display component management unit 302 generates screen data corresponding to a desired PT screen (configured by arranging a plurality of display components) while interacting with the user 5 via the GUI unit 301. This screen data has a function of writing to the PT execution unit 403 in the PT simulator 4.

シミュレーション・インタフェース(I/F)部303は、PTシミュレータ4との間で、PTシミュレーションやデバック等に関する種々の情報(例えば、PTシミュレータ4の起動、停止等)をやり取りする機能を有する。   The simulation interface (I / F) unit 303 has a function of exchanging various kinds of information (for example, starting and stopping of the PT simulator 4) regarding the PT simulation and debugging with the PT simulator 4.

PTシミュレータ4は、画面表示部401と、ミドルウェアとして構成される通信部402と、PT実行部403とを含んでいる。   The PT simulator 4 includes a screen display unit 401, a communication unit 402 configured as middleware, and a PT execution unit 403.

画面表示部401は、PT実機のタッチパネル式表示画面に対応するものであり、PT実行部403における実行動作が開始されると、所望の表示画面に相当する表示部品が所定配置にて表示されると共に、マウスやキーボードを介して仮想的に行われるユーザ5の部品選択操作(PT実機ではタッチ操作)を受け付け、その操作で選択された部品に対応するID情報をPT実行部403へと受け渡す機能を有する。   The screen display unit 401 corresponds to the touch panel display screen of the actual PT machine. When the execution operation in the PT execution unit 403 is started, display components corresponding to a desired display screen are displayed in a predetermined arrangement. At the same time, it accepts a component selection operation (touch operation in the PT real machine) of the user 5 that is virtually performed via a mouse or a keyboard, and passes ID information corresponding to the component selected by the operation to the PT execution unit 403. It has a function.

PT実行部403は、表示部品保持部403aを有すると共に、この表示部品保持部403aには、PT設定ツール3にて設定された画面データを構成する1もしくは2以上の表示部品が、その部品のID情報とその部品のPLCメモリ内アドレスとを対として格納保持されている。   The PT execution unit 403 includes a display component holding unit 403a. In the display component holding unit 403a, one or two or more display components constituting screen data set by the PT setting tool 3 are stored. The ID information and the address in the PLC memory of the component are stored and held as a pair.

そして、PT実行部403は、表示部品保持部403aから読み出した表示部品を画面表示部401に表示することで、PT表示画面を形成すると共に、PT表示画面を構成する部品のうちで、押しボタンスイッチ等の入力部品については、現在の操作状態に相当するデータを通信部402を介してPLCシミュレータ2のPLCメモリ203bの該当するアドレスに書き込む一方、PT表示画面を構成する部品のうちで、ランプ、デジタル表示器等の出力部品については、現在の表示状態に相当するデータを通信部402を介してPLCシミュレータ2のPLCメモリ203bの該当するアドレスから読み込み、それに基づいて画面表示部401に表示されている該当出力部品の表示状態を制御する機能を有する。   Then, the PT execution unit 403 displays the display component read from the display component holding unit 403a on the screen display unit 401, thereby forming the PT display screen and among the components constituting the PT display screen, the push button For input parts such as switches, data corresponding to the current operation state is written to the corresponding address in the PLC memory 203b of the PLC simulator 2 via the communication unit 402, while the lamps among the parts constituting the PT display screen are As for output components such as a digital display, data corresponding to the current display state is read from the corresponding address in the PLC memory 203b of the PLC simulator 2 via the communication unit 402 and displayed on the screen display unit 401 based on the read address. A function of controlling the display state of the corresponding output component.

このようなシミュレーション・システムによれば、PT側での表示部品へのユーザ操作は、通信部402、202を介してPLC側へ通知されて、PLCメモリ203bの該当アドレスの書き換えが行われるため、PLCシミュレータ2の側ではPT側のユーザ操作を加味してラダープログラムの動作シミュレーションを行うことができる一方、ラダープログラム203aで書き替えられたPLCメモリ203bの内容は、通信部202、402を介してPT側へと通知されて、該当部品の表示内容が更新されるため、PT側でもPLC側のラダープログラムの実行結果を加味して、表示プログラムの動作シミュレーションを行うことができる。
特開平11−134218号公報
According to such a simulation system, the user operation on the display component on the PT side is notified to the PLC side via the communication units 402 and 202, and the corresponding address in the PLC memory 203b is rewritten. On the PLC simulator 2 side, the operation of the ladder program can be simulated in consideration of the user operation on the PT side, while the contents of the PLC memory 203b rewritten by the ladder program 203a are transmitted via the communication units 202 and 402. Since the notification is sent to the PT side and the display content of the corresponding part is updated, the operation simulation of the display program can be performed on the PT side in consideration of the execution result of the ladder program on the PLC side.
JP-A-11-134218

PLCシミュレータ2においては、予め設定された「停止条件」の成立を常時監視すると共に、この「停止条件」の成立が判定されるのを待って、ラダー実行部203におけるラダープログラムの実行動作を一時停止させる機能(以下、「条件付き実行停止機能」と言う)が従前より備え付けられている。   The PLC simulator 2 constantly monitors the establishment of a preset “stop condition” and waits for the establishment of this “stop condition” to temporarily execute the ladder program execution operation in the ladder execution unit 203. A function for stopping (hereinafter referred to as “conditional execution stop function”) has been provided.

この条件付き実行停止機能の作動に必要な「停止条件」の設定は、停止条件となる信号オン、信号オフ、カウント値オーバー等々に係る入力信号、出力信号、カウント値データ等々のPLCメモリ内アドレスを指定することで行われる。   The setting of the “stop condition” necessary for the operation of this conditional execution stop function is to set the address in the PLC memory of the input signal, output signal, count value data, etc. related to the signal ON, signal OFF, count value over, etc. This is done by specifying.

上述のPLCシミュレータ2とPTシミュレータ4とを別個に有するシミュレーション・システムにあっても、PLCシミュレータ2及びPTシミュレータ4それ自体は、実機の動作を忠実に再現することのみを主眼として独立に開発されたものであるから、実機の有する機能以外の機能は、基本的に具備するものではない。   Even in the above-described simulation system having the PLC simulator 2 and the PT simulator 4 separately, the PLC simulator 2 and the PT simulator 4 themselves are independently developed mainly for faithfully reproducing the operation of the actual machine. Therefore, functions other than those of the actual machine are not basically provided.

そのため、上述のPLCシミュレータ2とPTシミュレータ4とを別個に有するシミュレーション・システムにおいて、条件付き実行停止機能を利用し、かつ「停止条件」として、「PT側のある表示部品(例えば、押しボタンスイッチ)が操作されたとき」と言った「停止条件」を設定しようとすると、ユーザは、その表示部品のPLCメモリ内アドレスを、クロスレファレンステーブル等と称されるアドレス/部品の対照表を頼りに手作業で見つけ出すと共に、この見つけ出されたアドレスを所定操作で入力すると言った煩雑な設定作業を要求されると言う問題点がある。   Therefore, in the simulation system having the above-described PLC simulator 2 and PT simulator 4 separately, the conditional execution stop function is used, and “stop condition” is “display part with PT side (for example, push button switch If the user wants to set a “stop condition”, such as “when the operation is performed”, the user relies on the address in the PLC memory of the display component, and an address / component comparison table called a cross-reference table. There is a problem that it is required to perform complicated setting work such as manually finding out and inputting the found address by a predetermined operation.

この発明は、上述の問題点に着目してなされたものであり、その目的とするところは、この種のPLCシミュレータとPTシミュレータとを別個に有するシミュレーション・システムにおいて、PLCシミュレータにおける条件付き実行停止機能の使い勝手を向上させることにある。   The present invention has been made paying attention to the above-mentioned problems, and the object of the present invention is to stop conditional execution in the PLC simulator in a simulation system having this type of PLC simulator and PT simulator separately. The purpose is to improve the usability of the function.

上述の技術的な課題は、以下の構成を有するシミュレーション・システムにより解決することができる。   The above technical problem can be solved by a simulation system having the following configuration.

すなわち、このシミュレーション・システムは、PLCシミュレータとPTシミュレータとを包含するものである。   That is, this simulation system includes a PLC simulator and a PT simulator.

前記PLCシミュレータには、PLCメモリとラダープログラムとを保持すると共に、前記PLCメモリ内の入出力データを対象としてラダープログラムを実行する機能を有するラダー実行部と、条件付きラダー停止機能に必要な停止条件を、その停止条件に係る入出力データのPLCメモリ内の割付アドレスを含む情報として保持する停止条件保持部と、外部から与えられるラダー起動・停止指令にしたがってラダー実行部におけるラダープログラムの実行を起動又は停止させる機能、及び前記停止条件保持部に保持された停止条件が成立するのを待って、前記ラダー実行部におけるラダープログラムの実行を一時停止させる機能を有するラダー制御部とが含まれている。   The PLC simulator holds a PLC memory and a ladder program, and has a ladder execution unit having a function of executing a ladder program for input / output data in the PLC memory, and a stop necessary for a conditional ladder stop function. The execution of the ladder program in the ladder execution unit according to the stop condition holding unit that holds the condition as information including the allocation address in the PLC memory of the input / output data related to the stop condition, and the ladder start / stop command given from the outside A ladder control unit having a function of starting or stopping and a function of temporarily stopping execution of a ladder program in the ladder execution unit after waiting for a stop condition held in the stop condition holding unit to be satisfied Yes.

前記PTシミュレータには、1若しくは2以上の入力用又は出力用表示部品で構成されるPT画面の表示、及び各表示部品に関するユーザ操作の受付を行う機能を有する画面表示部と、前記表示部品のそれぞれとその表示部品のPLCメモリ内の割付アドレスとを互いに関連づけて保持する表示部品保持部を有すると共に、前記表示部品保持部に保持された表示部品を前記画面表示部を介してユーザに提示する機能、及び前記表示部品のうちの入力用表示部品に関しては、そのPLC内割付アドレスに基づいてPLCメモリ内の該当するデータの書き込みを行い、かつ出力用表示部品に関しては、そのPLC内割付アドレスに基づいてPLCメモリの該当するデータの読み込みを行う機能を有するPT実行部とが含まれている。   The PT simulator includes a screen display unit that has a function of displaying a PT screen composed of one or more input or output display components, and accepting user operations relating to the display components, Each display component has a display component holding unit that holds the display component in the PLC memory in association with each other, and the display component held in the display component holding unit is presented to the user via the screen display unit. For the display part for input among the functions and the display parts, the corresponding data in the PLC memory is written based on the assigned address in the PLC, and for the display part for output, the assigned address in the PLC is used. And a PT execution unit having a function of reading the corresponding data in the PLC memory.

さらに、前記PTシミュレータには、前記画面表示部における所定の操作で表示部品及び条件付きラダー実行停止機能が選択されるのに応答して、選択された表示部品をキーとして前記表示部品保持部を検索することで、該当する割付アドレスを取り出すと共に、こうして取り出された割付アドレスを含む停止条件設定を生成して、PLCシミュレータへと通知する部品検索部が設けられている。   Further, the PT simulator has the display component holding unit as a key in response to selection of a display component and a conditional ladder execution stop function by a predetermined operation in the screen display unit. A component search unit is provided that retrieves a corresponding assigned address by searching, generates a stop condition setting including the assigned address thus extracted, and notifies the PLC simulator of the stop condition setting.

前記PLCシミュレータには、前記PTシミュレータから割付アドレスを含む停止条件設定が通知されたとき、それに含まれる割付アドレスを含む停止条件情報を生成して、前記停止条件保持部に保持させる機能が組み込まれている。   When the stop condition setting including the allocation address is notified from the PT simulator, the PLC simulator has a function of generating stop condition information including the allocation address included therein and holding the stop condition information in the stop condition holding unit. ing.

このような構成によれば、PTシミュレータにおける表示部品及び条件付きラダー実行停止機能に関する選択操作により、PLCシミュレータにおける条件付きラダー実行停止機能が作動するから、PTの部品をPLCシミュレーションの停止条件として指定できることから、PTの部品からアドレス情報を取り出し、PLCシミュレーションの停止条件として入力しなおす必要がないため、デバッグ効率を向上することができる。   According to such a configuration, the conditional ladder execution stop function in the PLC simulator is activated by the selection operation related to the display parts and the conditional ladder execution stop function in the PT simulator, so the PT parts are designated as the stop conditions for the PLC simulation. Therefore, it is not necessary to take out the address information from the PT component and input it again as a stop condition for the PLC simulation, so that the debugging efficiency can be improved.

好ましい実施の形態においては、前記画面表示部における表示部品の選択は、前記画面表示部により提示されたPT画面に含まれる表示部品を直接的に選択する操作を介して行われる、ようにしてもよいし、前記画面表示部における表示部品の選択は、前記条件付きラダー実行停止機能に関する選択操作に応答して表示部品保持部から読み出されて提示される選択可能部品の一覧表の中から、表示部品を選択する操作を介して行われる、ようしにしてもよい。   In a preferred embodiment, the selection of the display component in the screen display unit is performed through an operation of directly selecting a display component included in the PT screen presented by the screen display unit. The selection of the display component in the screen display unit may be selected from a list of selectable components that are read and presented from the display component holding unit in response to a selection operation related to the conditional ladder execution stop function. This may be performed through an operation of selecting a display component.

好ましい実施の形態においては、前記条件付きラダー実行停止機能に関する選択は、当該選択された表示部品の値として、停止条件として「0」となる場合、ある一意の値になる場合、値が変化した場合から1つを選択する操作を介して行われる、ようにしてもよいし、当該選択された表示部品に関して書き込み値が設定可能とされている場合には、その値を停止条件として付加する操作を介して行われる、ようにしてもよい。   In a preferred embodiment, if the selection related to the conditional ladder execution stop function is “0” as the stop condition as the value of the selected display component, the value has changed when it becomes a unique value. In some cases, the operation may be performed through an operation of selecting one, and when a write value can be set for the selected display component, an operation of adding the value as a stop condition It may be carried out via.

本発明によれば、PTの部品をPLCシミュレーションの停止条件として指定できることから、PTの部品からアドレス情報を取り出し、PLCシミュレーションの停止条件として入力しなおす必要がないため、デバッグ効率を向上することができる。   According to the present invention, since PT parts can be designated as PLC simulation stop conditions, it is not necessary to take out address information from PT parts and re-input as PLC simulation stop conditions, thereby improving debugging efficiency. it can.

本発明に係るシミュレーション・システムの構成図が図1に示されている。同図に示されるように、本発明に係るシミュレーション・システムは、PLCプログラミングツール1と、PLCシミュレータ2と、PT設定ツール3と、PTシミュレータ4とを含んで構成される。それらのシステム構成要素1〜4は、それぞれ専用のコンピュータプログラム(PLCプログラミングツールソフト、PLCシミュレータソフト、PT設定ツールソフト、PTシミュレータソフト)をコンピュータ(例えば、パーソナルコンピュータ(PC))に組み込むことにより、ソフトウェア的に実現される。   A block diagram of a simulation system according to the present invention is shown in FIG. As shown in the figure, the simulation system according to the present invention includes a PLC programming tool 1, a PLC simulator 2, a PT setting tool 3, and a PT simulator 4. Each of these system components 1 to 4 includes a dedicated computer program (PLC programming tool software, PLC simulator software, PT setting tool software, PT simulator software) incorporated in a computer (for example, a personal computer (PC)), Realized in software.

PLCプログラミングツール1は、グラフィカル・ユーザ・インタフェース(GUI)部101と、ラダー管理部102と、ミドルウェアとして構成される通信部103と、シミュレーション・インタフェース(I/F)部104とを含んでいる。   The PLC programming tool 1 includes a graphical user interface (GUI) unit 101, a ladder management unit 102, a communication unit 103 configured as middleware, and a simulation interface (I / F) unit 104.

GUI部101は、ユーザ5との間で、画面表示、キーボード操作、マウス操作等々を介して、PLCシミュレーションやデバック等に関する種々の情報(例えば、PLCシミュレーションの開始、停止等)をやり取りする機能を有する。   The GUI unit 101 has a function of exchanging various information (for example, starting and stopping of PLC simulation) with the user 5 regarding PLC simulation, debugging, and the like via screen display, keyboard operation, mouse operation, and the like. Have.

ラダー管理部102は、ラダープログラムの作成、編集、通信部(ミドルウェア)103を介するPLCメモリ(PLCシミュレータ2に組み込まれた)からのラダープログラム(ラダー図言語で作成されたユーザプログラムの意味)の読み込み又は書き込み等の作業を、GUI部101介してユーザから与えられる指示にしたがって実行する機能を有する。   The ladder management unit 102 creates, edits, and creates a ladder program (meaning a user program created in a ladder diagram language) from a PLC memory (incorporated in the PLC simulator 2) via a communication unit (middleware) 103. It has a function of executing operations such as reading and writing in accordance with instructions given from the user via the GUI unit 101.

シミュレーション・インタフェース(I/F)部104は、PLCシミュレータ2との間で、PLCシミュレーションやデバック等に関する種々の情報(例えば、PLCシミュレータ2の起動、停止、ラダー実行部203におけるラダープログラムの起動、停止)をやり取りする機能を有する。   The simulation interface (I / F) unit 104 communicates with the PLC simulator 2 for various information related to PLC simulation, debugging, etc. (for example, activation and termination of the PLC simulator 2, activation of a ladder program in the ladder execution unit 203, Stop).

PLCシミュレータ2は、PLCプログラミングツール1からのPLCシミュレータ起動・停止指令を受けて起動・停止を制御されるものであり、ラダー制御部201と、通信部202と、ラダー実行部203と、停止条件保持部204とを含んでいる。   The PLC simulator 2 is controlled to start and stop in response to a PLC simulator start / stop command from the PLC programming tool 1, and includes a ladder control unit 201, a communication unit 202, a ladder execution unit 203, and a stop condition. Holding part 204.

ラダー実行部203は、ユーザが任意に作成したラダープログラム203aやラダープログラム203aが参照するPLCメモリ(入出力メモリ、データメモリ等々)203bを保持すると共に、所定のラダー起動・停止指令が与えられるのに応答して、ラダープログラム203aの実行を起動させたり、停止させたりする機能を有する。   The ladder execution unit 203 holds a ladder program 203a arbitrarily created by the user and a PLC memory (input / output memory, data memory, etc.) 203b referred to by the ladder program 203a and is given a predetermined ladder start / stop command. In response to this, the execution of the ladder program 203a is started or stopped.

ラダー実行部203に保持されるラダープログラム203aやPLCメモリ203bの内容は、通信部202を介して、PLCプログラミングツール1からモニタ可能とされている。さらに、ラダー実行部203に保持されるPLCメモリ203bの内容は、通信部202を介して、PTシミュレータ4からも読み込み又は書き込み可能とされている。   The contents of the ladder program 203 a and the PLC memory 203 b held in the ladder execution unit 203 can be monitored from the PLC programming tool 1 via the communication unit 202. Further, the contents of the PLC memory 203 b held in the ladder execution unit 203 can be read or written from the PT simulator 4 via the communication unit 202.

ラダー制御部201は、PLCプログラミングツール1から与えられるラダー起動・停止指令に応答して、ラダー実行部203におけるラダープログラム203aの実行の起動、停止を制御する機能を有する。   The ladder control unit 201 has a function of controlling the start and stop of execution of the ladder program 203a in the ladder execution unit 203 in response to a ladder start / stop command given from the PLC programming tool 1.

また、ラダー制御部201は、プログラミングツール1から与えられる停止条件設定に応答して、その停止条件設定に含まれる「停止条件」を停止条件保持部204に設定保持させる機能を有する。さらに、この停止条件保持部204は、後述するように、PTシミュレータ4の部品検索部404から送られてくる停止条件設定によっても「停止条件」が設定保持されるように構成されている。   The ladder control unit 201 has a function of causing the stop condition holding unit 204 to set and hold the “stop condition” included in the stop condition setting in response to the stop condition setting given from the programming tool 1. Further, as will be described later, the stop condition holding unit 204 is configured so that the “stop condition” is also set and held by the stop condition setting sent from the component search unit 404 of the PT simulator 4.

そして、ラダー制御部201は、停止条件保持部204に設定保持される「停止条件」の成立を常時監視し、「停止条件」の成立が確認されたならば、ラダー実行部203におけるラダープログラム203aの実行を直ちに停止させる機能を有する。したがって、停止条件保持部204に所望の「停止条件」を設定保持させることで、ラダー図の実行を任意のタイミングで停止させ、これによりラダー図のデバッグが可能とされている。   Then, the ladder control unit 201 constantly monitors the establishment of the “stop condition” set and held in the stop condition holding unit 204, and if the establishment of the “stop condition” is confirmed, the ladder program 203a in the ladder execution unit 203 is confirmed. Has a function to immediately stop the execution of. Therefore, by making the stop condition holding unit 204 set and hold a desired “stop condition”, execution of the ladder diagram is stopped at an arbitrary timing, thereby enabling debugging of the ladder diagram.

PT設定ツール3は、グラフィカル・ユーザ・インタフェース(GUI)部301と、表示部品管理部302と、シミュレーション・インタフェース(I/F)303とを含んでいる。   The PT setting tool 3 includes a graphical user interface (GUI) unit 301, a display component management unit 302, and a simulation interface (I / F) 303.

GUI部301は、ユーザ5との間で、画面表示、キーボード操作、マウス操作等々を介して、PTシミュレーションやデバック等に関する種々の情報(例えば、PTシミュレーションの開始、停止等)をやり取りする機能を有する。   The GUI unit 301 has a function of exchanging various information (for example, starting and stopping of PT simulation) with the user 5 regarding PT simulation, debugging, and the like through screen display, keyboard operation, mouse operation, and the like. Have.

表示部品管理部302は、GUI部301を介してユーザ5との間で対話を行いつつ、所望のPT画面(複数の表示部品を配列して構成される)に相当する画面データを生成し、この画面データをPTシミュレータ4内のPT実行部403に書き込む機能を有する。   The display component management unit 302 generates screen data corresponding to a desired PT screen (configured by arranging a plurality of display components) while interacting with the user 5 via the GUI unit 301. This screen data has a function of writing to the PT execution unit 403 in the PT simulator 4.

シミュレーション・インタフェース(I/F)部303は、PTシミュレータ4との間で、PTシミュレーションやデバック等に関する種々の情報(例えば、PTシミュレータ4の起動、停止等)をやり取りする機能を有する。   The simulation interface (I / F) unit 303 has a function of exchanging various kinds of information (for example, starting and stopping of the PT simulator 4) regarding the PT simulation and debugging with the PT simulator 4.

PTシミュレータ4は、画面表示部401と、ミドルウェアとして構成される通信部402と、PT実行部403と、部品検索部404とを含んでいる。   The PT simulator 4 includes a screen display unit 401, a communication unit 402 configured as middleware, a PT execution unit 403, and a component search unit 404.

画面表示部401は、PT実機のタッチパネル式表示画面に対応するものであり、PT実行部403における実行動作が開始されると、所望の表示画面に相当する表示部品が所定配置にて表示されると共に、マウスやキーボードを介して仮想的に行われるユーザ5の部品選択操作(PT実機ではタッチ操作)を受け付け、その操作で選択された部品に対応するID情報をPT実行部403へと受け渡す機能を有する。加えて、この画面表示部401は、上記の操作で選択された部品に対応するID情報を部品検索部404へも受け渡すと共に、後述する所定の「停止条件画面」(図5、図6、及び図9参照)を表示する機能を有する。   The screen display unit 401 corresponds to the touch panel display screen of the actual PT machine. When the execution operation in the PT execution unit 403 is started, display components corresponding to a desired display screen are displayed in a predetermined arrangement. At the same time, it accepts a component selection operation (touch operation in the PT real machine) of the user 5 that is virtually performed via a mouse or a keyboard, and passes ID information corresponding to the component selected by the operation to the PT execution unit 403. It has a function. In addition, the screen display unit 401 also passes ID information corresponding to the component selected by the above operation to the component search unit 404, and at the same time a predetermined “stop condition screen” (FIGS. 5 and 6). And FIG. 9).

PT実行部403は、表示部品保持部403aを有すると共に、この表示部品保持部403aには、PT設定ツール3にて設定された画面データを構成する1もしくは2以上の表示部品が、その部品のID情報とその部品のPLCメモリ内アドレスとを対として格納保持されている(図9参照)。   The PT execution unit 403 includes a display component holding unit 403a. In the display component holding unit 403a, one or two or more display components constituting screen data set by the PT setting tool 3 are stored. The ID information and the address in the PLC memory of the part are stored and held as a pair (see FIG. 9).

そして、PT実行部403は、表示部品保持部403aから読み出した表示部品を画面表示部401に表示することで、PT表示画面を完成すると共に、PT表示画面を構成する部品のうちで、押しボタンスイッチ等の入力部品については、現在の操作状態に相当するデータを通信部402を介してPLCシミュレータ2のPLCメモリ203bの該当するアドレスに書き込む一方、PT表示画面を構成する部品のうちで、ランプ、デジタル表示器等の出力部品については、現在の表示状態に相当するデータを通信部402を介してPLCシミュレータ2のPLCメモリ203bの該当するアドレスから読み込み、それに基づいて画面表示部401に表示されている該当出力部品の表示状態を制御する機能を有する。   Then, the PT execution unit 403 displays the display component read from the display component holding unit 403a on the screen display unit 401, thereby completing the PT display screen and, among the components constituting the PT display screen, push buttons. For input parts such as switches, data corresponding to the current operation state is written to the corresponding address in the PLC memory 203b of the PLC simulator 2 via the communication unit 402, while the lamps among the parts constituting the PT display screen are As for output components such as a digital display, data corresponding to the current display state is read from the corresponding address in the PLC memory 203b of the PLC simulator 2 via the communication unit 402 and displayed on the screen display unit 401 based on the read address. A function of controlling the display state of the corresponding output component.

部品検索部404は、画面表示部401から与えられる選択部品相当IDに基づいて、PT実行部403内の表示部品保持部403aを検索することにより、その選択部品相当IDと対をなすPLC内メモリアドレスを抽出すると共に、こうして抽出されたメモリアドレスに基づいて生成された停止条件設定をPLCシミュレータ2へと受け渡す機能を有する。そして、PLCシミュレータ2へと受け渡された停止条件設定に含まれる「停止条件」は、停止条件保持部204に自動的に設定保持される。   The component search unit 404 searches the display component holding unit 403a in the PT execution unit 403 based on the selected component equivalent ID given from the screen display unit 401, thereby pairing with the selected component equivalent ID in the PLC memory. It has a function of extracting the address and passing the stop condition setting generated based on the extracted memory address to the PLC simulator 2. The “stop condition” included in the stop condition setting delivered to the PLC simulator 2 is automatically set and held in the stop condition holding unit 204.

以後、このようにして自動的に設定保持された「停止条件」に基づいて、「停止条件」の成立が監視され、「停止条件」が成立すると共に、ラダープログラムの実行は自動的に停止されることとなる。   Thereafter, the establishment of the “stop condition” is monitored based on the “stop condition” automatically set and held in this way, and the execution of the ladder program is automatically stopped while the “stop condition” is established. The Rukoto.

次に、本発明システムを実現するために使用されるパーソナル・コンピュータ(PC)のハードウェア構成が図2に示されている。同図に示されるように、このPCは、演算部(CPU)10と、ROM/HDD20と、RAM30と、通信制御部40とを含んで構成されている。   Next, FIG. 2 shows a hardware configuration of a personal computer (PC) used for realizing the system of the present invention. As shown in the figure, the PC includes a calculation unit (CPU) 10, a ROM / HDD 20, a RAM 30, and a communication control unit 40.

演算部(CPU)10は、OSを含めたそれぞれのソフトウェア(PLCプログラミングツールソフト、PLCシミュレータソフト、PT設定ツールソフト、PTシミュレータソフト)を実行制御する。ROM/HDD20はそれぞれのソフトウェアの実行モジュールを格納する。RAM30はそれぞれのソフトウェアが必要とするワーク領域を保持するのに使用する。通信制御部40はインターネット等のネットワークを介した通信を制御するのに使用する。これは一般的なPCのハードウェア構成と同じである。   The calculation unit (CPU) 10 executes and controls each software including the OS (PLC programming tool software, PLC simulator software, PT setting tool software, PT simulator software). The ROM / HDD 20 stores execution modules for the respective software. The RAM 30 is used to hold a work area required by each software. The communication control unit 40 is used to control communication via a network such as the Internet. This is the same as the hardware configuration of a general PC.

次に、以上の構成(図1、図2参照)よりなるシミュレーションシステムの作用を説明する。デバッグ対象のラダープログラムとPTシミュレーション画面との関係を示す説明図が、図3に示されている。   Next, the operation of the simulation system having the above configuration (see FIGS. 1 and 2) will be described. An explanatory diagram showing the relationship between the ladder program to be debugged and the PT simulation screen is shown in FIG.

同図に示されるように、このラダープログラムは、実機のPT表示画面上において、上向き矢印(H0.00を割付)aをタッチ操作すると、設定温度表示(D00100を割付)cの表示数値が+1だけインクリメントされ、また下向き矢印(H1.00を割付)bをタッチ操作すると、設定温度表示(D00100を割付)cの表示数値が−1だけディクリメントするように仕組まれたラダープログラムであるが、プログラミングの際に誤って、MOVL命令でアドレスD100を0で上書きしてしまったため、外部入力(H10.00を割付)がオンしている限り、設定温度表示(D00100を割付)cの値が0に固定されてしまうという不具合が発生する。この例は単純なプログラミング誤りなので発見しやすいが、これがインデックスレジスタなどを用いて動的に指定アドレスが変化する場合は、発見しがたい。   As shown in the figure, in this ladder program, when the upward arrow (H0.00 assigned) a is touched on the PT display screen of the actual machine, the display numerical value of the set temperature display (D00100 assigned) c is +1. It is a ladder program that is designed to decrement the displayed numerical value of the set temperature display (assigned D00100) c by -1 when touching the downward arrow (assigned H1.00) b, Since the address D100 was overwritten with 0 by the MOVL instruction during programming, as long as the external input (H10.00 assigned) is on, the set temperature display (D00100 assigned) c value is 0 The problem that it is fixed to occurs. This example is easy to detect because it is a simple programming error, but it is difficult to detect when the specified address changes dynamically using an index register or the like.

本発明システムによれば、このようなプログラミング誤りが生じた場合にも、例えばPTシミュレーション画面上において、上向き矢印(H0.00を割付)a又は下向き矢印(H1.00を割付)bが操作された時点で、ラダープログラムの実行を停止させるように「停止条件」を設定し、その停止時点で設定温度表示(D00100を割付)cの値が+1又は−1の何れかであることを確認することにより、インクリメント又はディクリメント動作が正常であるか否かを認識することができる。そして、これが正常であれば、なんらかの誤ったプログラミングにより、設定温度表示が0で上書きされている虞があることを推測することが可能となる。   According to the system of the present invention, even when such a programming error occurs, for example, on the PT simulation screen, the upward arrow (H0.00 assigned) a or the downward arrow (H1.00 assigned) b is operated. “Stop condition” is set so that execution of the ladder program is stopped at that time, and at that time, the set temperature display (assigned D00100) c is confirmed to be either +1 or −1. Thus, it is possible to recognize whether the increment or decrement operation is normal. If this is normal, it can be estimated that there is a possibility that the set temperature display may be overwritten with 0 by some incorrect programming.

従来、このようなPTの表示部品(上向き矢印a又は下向き矢印b)の操作タイミングを「停止条件」とするためには、それらの矢印a,bのPLCメモリ上のアドレスをクロスレファレンステーブル(部品IDとそのアドレスとの対照表)等を介して人手で調べ、こうして得られたPLCメモリ上のアドレスをPLCシミュレータに「停止条件」として設定するという煩わしい作業が必要であったが、本発明システムによれば、そのような人手によるアドレス探査の手間が不要となる。   Conventionally, in order to set the operation timing of such a PT display component (upward arrow a or downward arrow b) as a “stop condition”, the addresses on the PLC memory of the arrows a and b are set to a cross reference table (components). It is necessary to manually check the ID and the address thereof, etc., and to set the address on the PLC memory thus obtained as a “stop condition” in the PLC simulator. According to this, such labor for address search by human is not required.

本発明システムの動作手順を示す説明図(その1)が図4に、フローチャート(その1)が図7にそれぞれ示されている。   An explanatory diagram (part 1) showing the operation procedure of the system of the present invention is shown in FIG. 4, and a flowchart (part 1) is shown in FIG.

[シミュレーションの開始]
先ず、操作者5は、PLCプログラミングツール1において、マウスやキーボードを使用して所定の開始操作(図4、[1]開始・参照)を行う。すると、GUI部101、シミュレーションI/F部104を介してPLCシミュレータ2へと所定の指令が与えられて、PLCシミュレータ2が起動される(図4、[1−1]PLCシミュレータ起動・参照)。同時に、ラダー制御部201を介してラダー実行部203へと所定の指令が与えられ、これによりラダー実行部203は、ラダープログラム203aを読み出して、その実行を開始する。一方、操作者5は、PT設定ツール3においても、マウスやキーボードを使用して所定の開始操作(図4、[2]開始・参照)を行う。すると、GUI部301、シミュレーションI/F部303を介して画面表示部401へと所定の指令が与えれ(図4、[2−2]PTシミュレータ起動・参照)、これによりPT実行部403は、表示部品保持部403aから読み出されPT画面データに基づいて、画面表示部401上において画面表示を開始する(図4、表示・参照)。
[Start simulation]
First, the operator 5 performs a predetermined start operation (see FIG. 4, [1] start / reference) using the mouse or the keyboard in the PLC programming tool 1. Then, a predetermined command is given to the PLC simulator 2 via the GUI unit 101 and the simulation I / F unit 104, and the PLC simulator 2 is activated (FIG. 4, [1-1] PLC simulator activation / reference). . At the same time, a predetermined command is given to the ladder execution unit 203 via the ladder control unit 201, whereby the ladder execution unit 203 reads the ladder program 203a and starts its execution. On the other hand, also in the PT setting tool 3, the operator 5 performs a predetermined start operation (FIG. 4, [2] start / reference) using a mouse or a keyboard. Then, a predetermined command is given to the screen display unit 401 via the GUI unit 301 and the simulation I / F unit 303 (FIG. 4, [2-2] PT simulator activation / reference), thereby the PT execution unit 403 Screen display is started on the screen display unit 401 based on the PT screen data read from the display component holding unit 403a (FIG. 4, display / reference).

[停止条件(ブレークポイント)の設定]
次に、操作者5は、PTシミュレータ4の画面表示部401に表示されている表示器部品(図5、[1]選択・参照)を選択する(図4、[3]部品選択・参照)。選択した部品にはPLCメモリ203bのアドレスが内包されている。部品の一覧(部品IDとアドレスとの関係)は表示部品保持部403aが保持している(図9参照)。図5に示されるように、PTシミュレーションソフトには機能別メニューがあり、操作者5は、そのメニューからラダー停止条件(ブレークポイント)の設定を選ぶ(図5、[2]選択・参照)ことができる(図4、[4]ブレークポイント設定・参照)。以上の動作が、図7のフローチャートにおけるステップ101,102の処理に相当する。
[Set stop condition (breakpoint)]
Next, the operator 5 selects the display component (FIG. 5, [1] selection / reference) displayed on the screen display unit 401 of the PT simulator 4 (FIG. 4, [3] component selection / reference). . The address of the PLC memory 203b is included in the selected component. A list of components (relationship between component ID and address) is held by the display component holding unit 403a (see FIG. 9). As shown in FIG. 5, the PT simulation software has a function-specific menu, and the operator 5 selects a ladder stop condition (breakpoint) setting from the menu (see FIG. 5, [2] selection / reference). (See [4] Breakpoint setting / reference in FIG. 4). The above operation corresponds to the processing of steps 101 and 102 in the flowchart of FIG.

[停止条件の生成]
次に、PTシミュレータの部品検索部404は、選択された部品のIDを取り出し、IDに割り付けられたPLCメモリアドレス、及びアドレスに書き込む値(附属データ)がある場合はその値を表示部品保持部403aから取り出す(図4、[5]選択部品IDを渡す、[6]選択部品IDで検索、[7]割付アドレスを取り出す・参照)。部品検索部404は、画面表示部401に停止条件ウィンドウ401aの生成を依頼する(図4、[8]停止条件画面表示、図6・参照)。操作者5は、停止条件ウィンドウ401aに停止条件(値が渡っていれば、その値、値が渡っていなければ、当該PLCメモリの値が0になる、任意の値になる、変化する)を選択、決定する(図4、[9]停止条件設定、図6・参照)。部品検索部404は、決定された「停止条件」を保持する。以上の動作が、図7のフローチャートにおけるステップ103〜111の処理に相当する。
[Generate stop condition]
Next, the part search unit 404 of the PT simulator takes out the ID of the selected part, and if there is a PLC memory address assigned to the ID and a value (attached data) to be written to the address, displays that value as a display part holding part Extract from 403a (FIG. 4, [5] Pass selected component ID, [6] Search by selected component ID, [7] Retrieve assigned address / reference). The component search unit 404 requests the screen display unit 401 to generate the stop condition window 401a (see FIG. 4, [8] Display stop condition screen, FIG. 6). The operator 5 sets a stop condition (if the value has passed, the value, and if the value has not passed, the value of the PLC memory becomes 0, becomes an arbitrary value, changes) in the stop condition window 401a. Select and determine (see FIG. 4, [9] Stop condition setting, FIG. 6). The component search unit 404 holds the determined “stop condition”. The above operation corresponds to the processing of steps 103 to 111 in the flowchart of FIG.

[停止条件の設定]
次に、部品検索部404は、自己が保持する「停止条件」をPLCシミュレータ2の停止条件保持部204に通知する。これにより、PTシミュレータ側で選択された部品に対応する「停止条件」の設定が自動的に完了する(図4、[10]停止条件設定・参照)。
[Set stop condition]
Next, the component search unit 404 notifies the “stop condition” held by itself to the stop condition holding unit 204 of the PLC simulator 2. Thereby, the setting of the “stop condition” corresponding to the part selected on the PT simulator side is automatically completed (see [10] Stop condition setting / reference in FIG. 4).

[停止条件の成立とラダー実行の自動停止]
操作者5が、画面表示部401にて当該部品を操作し、通信部402、202を介してメモリ書き込みコマンドがPLCシミュレータ2に渡され、登録されているPLCメモリアドレスの内容が変更されたとき、停止条件保持部204に保持された「停止条件」とその変更後の値が合致すれば、ラダー実行部203はラダーの実行を一時停止する。
[Establishment of stop condition and automatic stop of ladder execution]
When the operator 5 operates the component on the screen display unit 401, a memory write command is passed to the PLC simulator 2 via the communication units 402 and 202, and the content of the registered PLC memory address is changed. If the “stop condition” held in the stop condition holding unit 204 matches the changed value, the ladder execution unit 203 temporarily stops the execution of the ladder.

上述の一連の動作が自動的に実行される結果、本発明システムによれば、PTシミュレータ4の側で、[3]部品選択操作、[4]ブレークポイント設定操作、及び[9]停止条件設定操作を行いさえすれば、その部品に対応するPLCメモリアドレスやその他の必要な附属データを含む「停止条件」がPLCシミュレータ2の停止条件保持部に転送されて保持されるから、従前のように、クロスレファレンステーブルを頼りに、部品IDからPLCメモリアドレスやそれに関連するデータを人手により調べ上げると言った煩わしい作業からユーザを解放して、この種の条件停止機能を使用したデバッグ作業の容易化を図ることができる。   As a result of automatically executing the series of operations described above, according to the system of the present invention, [3] component selection operation, [4] breakpoint setting operation, and [9] stop condition setting are performed on the PT simulator 4 side. As long as the operation is performed, the “stop condition” including the PLC memory address corresponding to the part and other necessary attached data is transferred to and held in the stop condition holding unit of the PLC simulator 2. Relying on the cross-reference table, the user is freed from the troublesome task of manually looking up the PLC memory address and related data from the part ID, making debugging work easier using this type of conditional stop function Can be achieved.

本発明システムの動作手順を示す説明図(その2)が図8に、同フローチャートが図10にそれぞれ示されている。PLCシミュレータ2のラダー停止条件は、先の例のように、画面上の部品を選択するのではなく、図9に示されるように、画面上の部品一覧から選択するようにしてもよいであろう。   An explanatory diagram (part 2) of the operation procedure of the system of the present invention is shown in FIG. 8, and the flowchart is shown in FIG. The ladder stop condition of the PLC simulator 2 may be selected from a list of parts on the screen as shown in FIG. 9 instead of selecting parts on the screen as in the previous example. .

この場合、操作者5は、部品が選択されていない条件で、PLCシミュレーションの画面表示部401からラダー停止条件(ブレークポイント)の設定を選ぶ(図8、[3]ブレークポイント設定、及び図9・参照)。この動作が、図10のフローチャートにおけるステップ201、202、203の処理に相当する。   In this case, the operator 5 selects a ladder stop condition (break point) setting from the PLC simulation screen display unit 401 under the condition that no part is selected (FIG. 8, [3] Break point setting and FIG. 9). ·reference). This operation corresponds to the processing of steps 201, 202, and 203 in the flowchart of FIG.

すると、部品検索部404Aは、表示部品保持部403aに全部品取得依頼を発行し(図8、[5]全ての部品を取得依頼・参照)、全部品名、利用アドレスの一覧を取得し(図8、[6]部品一覧を返す・参照)、画面表示部401に表示する(図8、[7]部品一覧画面表示・参照)。この動作が、図10のフローチャートにおけるステップ204〜206の処理に相当する。   Then, the component search unit 404A issues a request for acquiring all components to the display component holding unit 403a (FIG. 8, [5] Request / reference all components), and acquires a list of all component names and usage addresses (FIG. 8). 8, [6] Return the parts list / reference) and display it on the screen display unit 401 (FIG. 8, [7] Display / reference parts list). This operation corresponds to the processing of steps 204 to 206 in the flowchart of FIG.

続いて、操作者5は、一覧からラダー停止条件を決定し(図9参照)、部品検索部404Aは、PLCメモリアドレスおよび値(附属データ)をPLCシミュレータ2の停止条件保持部204に渡す(図8、[9]停止条件設定・参照)。   Subsequently, the operator 5 determines a ladder stop condition from the list (see FIG. 9), and the component search unit 404A passes the PLC memory address and value (attached data) to the stop condition holding unit 204 of the PLC simulator 2 (see FIG. 9). FIG. 8, [9] Stop condition setting / reference).

本発明によれば、PTの部品をPLCシミュレーションの停止条件として指定できることから、PTの部品からアドレス情報を取り出し、PLCシミュレーションの停止条件として入力しなおす必要がないため、デバッグ効率を向上することができる。また、本発明によれば、ラダーの停止条件から、関連するPTの部品一覧を表示できるため、どの部品を操作すると、ラダーが停止するかを一度に把握でき、デバッグ効率を向上することができる。   According to the present invention, since PT parts can be designated as PLC simulation stop conditions, it is not necessary to take out address information from PT parts and re-input as PLC simulation stop conditions, thereby improving debugging efficiency. it can. Further, according to the present invention, since a list of related PT parts can be displayed based on a ladder stop condition, it is possible to grasp which part is stopped at a time by operating which part, and debugging efficiency can be improved. .

本発明システムの構成図である。It is a block diagram of this invention system. 本発明システムを実現するために使用されるパーソナルコンピュータ(PC)のハードウェア構成図である。It is a hardware block diagram of the personal computer (PC) used in order to implement | achieve this invention system. ラダープログラムとPTシミュレーション画面との関係を示す説明図である。It is explanatory drawing which shows the relationship between a ladder program and PT simulation screen. 本発明システムの動作手順を示す説明図(その1)である。It is explanatory drawing (the 1) which shows the operation | movement procedure of this invention system. PTシミュレーション画面の一例を示す説明図である。It is explanatory drawing which shows an example of PT simulation screen. PLCシミュレーション画面とPT部品情報との関係を示す説明図である。It is explanatory drawing which shows the relationship between a PLC simulation screen and PT component information. 本発明システムの動作手順を示すフローチャート(その1)である。It is a flowchart (the 1) which shows the operation | movement procedure of this invention system. 本発明システムの動作手順を示す説明図(その2)である。It is explanatory drawing (the 2) which shows the operation | movement procedure of this invention system. PLCシミュレーション画面と表示部品保持部との関係を示す説明図である。It is explanatory drawing which shows the relationship between a PLC simulation screen and a display component holding | maintenance part. 本発明システムの動作手順を示すフローチャート(その2)である。It is a flowchart (the 2) which shows the operation | movement procedure of this invention system. 従来システムの構成図である。It is a block diagram of a conventional system.

符号の説明Explanation of symbols

1 PLCプログラミングツール
2 PLCシミュレータ
3 PT設定ツール
4 PTシミュレータ
10 演算部(CPU)
20 ROM/HDD
30 RAM
40 通信制御部
101 GUI部
102 ラダー管理部
103 通信部
104 シミュレーションI/F部
201 ラダー制御部
202 通信部
203 ラダー実行部
203a ラダープログラム
203b PLCメモリ
204 停止条件保持部
301 GUI部
302 表示部品管理部
303 シミュレーションI/F部
401 画面表示部
401a 停止条件ウィンドウ
402 通信部
403 PT実行部
403a 表示部品保持部
404 部品検索部
404A 部品検索部
a 上向き矢印
b 下向き矢印
c 設定温度表示
DESCRIPTION OF SYMBOLS 1 PLC programming tool 2 PLC simulator 3 PT setting tool 4 PT simulator 10 Arithmetic unit (CPU)
20 ROM / HDD
30 RAM
40 Communication control unit 101 GUI unit 102 Ladder management unit 103 Communication unit 104 Simulation I / F unit 201 Ladder control unit 202 Communication unit 203 Ladder execution unit 203a Ladder program 203b PLC memory 204 Stop condition holding unit 301 GUI unit 302 Display component management unit 303 Simulation I / F unit 401 Screen display unit 401a Stop condition window 402 Communication unit 403 PT execution unit 403a Display component holding unit 404 Component search unit 404A Component search unit a Up arrow b Down arrow c Set temperature display

Claims (5)

PLCシミュレータとPTシミュレータとを包含し、
前記PLCシミュレータには、
PLCメモリとラダープログラムとを保持すると共に、前記PLCメモリ内の入出力データを対象としてラダープログラムを実行する機能を有するラダー実行部と、
条件付きラダー停止機能に必要な停止条件を、その停止条件に係る入出力データのPLCメモリ内の割付アドレスを含む情報として保持する停止条件保持部と、
外部から与えられるラダー起動・停止指令にしたがってラダー実行部におけるラダープログラムの実行を起動又は停止させる機能、及び前記停止条件保持部に保持された停止条件が成立するのを待って、前記ラダー実行部におけるラダープログラムの実行を一時停止させる機能を有するラダー制御部とが含まれており、
前記PTシミュレータには、
1若しくは2以上の入力用又は出力用表示部品で構成されるPT画面の表示、及び各表示部品に関するユーザ操作の受付を行う機能を有する画面表示部と、
前記表示部品のそれぞれとその表示部品のPLCメモリ内の割付アドレスとを互いに関連づけて保持する表示部品保持部を有すると共に、前記表示部品保持部に保持された表示部品を前記画面表示部を介してユーザに提示する機能、及び前記表示部品のうちの入力用表示部品に関しては、そのPLC内割付アドレスに基づいてPLCメモリ内の該当するデータの書き込みを行い、かつ出力用表示部品に関しては、そのPLC内割付アドレスに基づいてPLCメモリの該当するデータの読み込みを行う機能を有するPT実行部とが含まれており、さらに
前記PTシミュレータには、
前記画面表示部における所定の操作で表示部品及び条件付きラダー実行停止機能が選択されるのに応答して、選択された表示部品をキーとして前記表示部品保持部を検索することで、該当する割付アドレスを取り出すと共に、こうして取り出された割付アドレスを含む停止条件設定を生成して、PLCシミュレータへと通知する部品検索部が設けられ、
前記PLCシミュレータには、
前記PTシミュレータから割付アドレスを含む停止条件設定が通知されたとき、それに含まれる割付アドレスを含む停止条件情報を生成して、前記停止条件保持部に保持させる機能が組み込まれており、
それにより、PTシミュレータにおける表示部品及び条件付きラダー実行停止機能に関する選択操作により、PLCシミュレータにおける条件付きラダー実行停止機能が作動する、ことを特徴とするシミュレーション・システム。
Includes PLC simulator and PT simulator,
The PLC simulator includes
A ladder execution unit that holds a PLC memory and a ladder program and has a function of executing a ladder program for input / output data in the PLC memory;
A stop condition holding unit for holding a stop condition necessary for the conditional ladder stop function as information including an allocation address in the PLC memory of input / output data related to the stop condition;
A function for starting or stopping execution of a ladder program in a ladder execution unit according to a ladder start / stop command given from the outside, and waiting for a stop condition held in the stop condition holding unit to be satisfied, the ladder execution unit And a ladder control unit having a function of temporarily stopping execution of the ladder program in
The PT simulator includes
A screen display unit having a function of performing display of a PT screen composed of one or two or more input or output display components and accepting a user operation regarding each display component;
Each of the display components has a display component holding unit that holds the display components in the PLC memory in association with each other, and the display components held in the display component holding unit are connected via the screen display unit. With respect to the function to be presented to the user and the display component for input among the display components, the corresponding data in the PLC memory is written based on the allocated address in the PLC, and the PLC for the display component for output. A PT execution unit having a function of reading the corresponding data in the PLC memory based on the internal allocation address, and the PT simulator further includes:
In response to selection of a display component and a conditional ladder execution stop function by a predetermined operation in the screen display unit, the corresponding allocation is performed by searching the display component holding unit using the selected display component as a key. A part search unit is provided that takes out the address, generates a stop condition setting including the assigned address thus taken out, and notifies the PLC simulator,
The PLC simulator includes
When a stop condition setting including an allocation address is notified from the PT simulator, a function for generating stop condition information including an allocation address included in the stop condition and holding the information in the stop condition holding unit is incorporated.
Accordingly, the conditional ladder execution stop function in the PLC simulator is activated by a selection operation related to the display component and the conditional ladder execution stop function in the PT simulator.
前記画面表示部における表示部品の選択は、前記画面表示部により提示されたPT画面に含まれる表示部品を直接的に選択する操作を介して行われる、ことを特徴とする請求項1に記載のシミュレーション・システム。   The selection of the display component in the screen display unit is performed through an operation of directly selecting a display component included in the PT screen presented by the screen display unit. Simulation system. 前記画面表示部における表示部品の選択は、前記条件付きラダー実行停止機能に関する選択操作に応答して表示部品保持部から読み出されて提示される選択可能部品の一覧表の中から、表示部品を選択する操作を介して行われる、ことを特徴とする請求項1に記載のシミュレーション・システム。   The display component in the screen display unit is selected from a list of selectable components that are read from the display component holding unit and presented in response to a selection operation related to the conditional ladder execution stop function. The simulation system according to claim 1, wherein the simulation system is performed through an operation of selecting. 前記条件付きラダー実行停止機能に関する選択は、当該選択された表示部品の値として、停止条件として「0」となる場合、ある一意の値になる場合、値が変化した場合から1つを選択する操作を介して行われる、ことを特徴とする請求項1に記載のシミュレーション・システム。   The selection related to the conditional ladder execution stop function selects one as the value of the selected display component when the stop condition is “0”, when it becomes a unique value, or when the value changes. The simulation system according to claim 1, wherein the simulation system is performed through an operation. 前記条件付きラダー実行停止機能に関する選択は、当該選択された表示部品に関して書き込み値が設定可能とされている場合には、その値を停止条件として付加する操作を介して行われる、ことを特徴とする請求項1に記載のシミュレーション・システム。   The selection related to the conditional ladder execution stop function is performed through an operation of adding the value as a stop condition when a write value can be set for the selected display component. The simulation system according to claim 1.
JP2008065417A 2008-03-14 2008-03-14 Simulation system Active JP4941674B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008065417A JP4941674B2 (en) 2008-03-14 2008-03-14 Simulation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008065417A JP4941674B2 (en) 2008-03-14 2008-03-14 Simulation system

Publications (2)

Publication Number Publication Date
JP2009223471A true JP2009223471A (en) 2009-10-01
JP4941674B2 JP4941674B2 (en) 2012-05-30

Family

ID=41240207

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008065417A Active JP4941674B2 (en) 2008-03-14 2008-03-14 Simulation system

Country Status (1)

Country Link
JP (1) JP4941674B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011113304A (en) * 2009-11-26 2011-06-09 Hakko Denki Kk Display/control simulation system, programmable display for the same, and simulator device
JP2011138451A (en) * 2010-01-04 2011-07-14 Hakko Denki Kk Connected device simulator apparatus having trace function, method, and program
WO2013136931A1 (en) 2012-03-15 2013-09-19 オムロン株式会社 Plc simulation system, plc simulator, recording medium, and simulation method
JP2018205826A (en) * 2017-05-30 2018-12-27 オムロン株式会社 Program development support device, program development support system, program development support method, and program development support program

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07271410A (en) * 1994-03-28 1995-10-20 Toshiba Corp Plant simulator
JPH0962537A (en) * 1995-08-28 1997-03-07 Matsushita Electric Works Ltd Simulator for confirming operation of display device
JPH1115697A (en) * 1997-06-25 1999-01-22 Digital Electron Corp Debugging method for program type display device
JPH11134218A (en) * 1997-10-31 1999-05-21 Degital:Kk Display screen debugging device for program type display device
JP2007265415A (en) * 2006-03-29 2007-10-11 Hitachi Ltd Method and apparatus for simulating microcomputer-based systems

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07271410A (en) * 1994-03-28 1995-10-20 Toshiba Corp Plant simulator
JPH0962537A (en) * 1995-08-28 1997-03-07 Matsushita Electric Works Ltd Simulator for confirming operation of display device
JPH1115697A (en) * 1997-06-25 1999-01-22 Digital Electron Corp Debugging method for program type display device
JPH11134218A (en) * 1997-10-31 1999-05-21 Degital:Kk Display screen debugging device for program type display device
JP2007265415A (en) * 2006-03-29 2007-10-11 Hitachi Ltd Method and apparatus for simulating microcomputer-based systems

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011113304A (en) * 2009-11-26 2011-06-09 Hakko Denki Kk Display/control simulation system, programmable display for the same, and simulator device
JP2011138451A (en) * 2010-01-04 2011-07-14 Hakko Denki Kk Connected device simulator apparatus having trace function, method, and program
WO2013136931A1 (en) 2012-03-15 2013-09-19 オムロン株式会社 Plc simulation system, plc simulator, recording medium, and simulation method
CN104169819A (en) * 2012-03-15 2014-11-26 欧姆龙株式会社 PLC simulation system, PLC simulator, recording medium, and simulation method
EP2816427A4 (en) * 2012-03-15 2015-11-25 Omron Tateisi Electronics Co Plc simulation system, plc simulator, recording medium, and simulation method
US9317397B2 (en) 2012-03-15 2016-04-19 Omron Corporation Programmable logic controller (PLC) simulation system, PLC simulator, recording medium, and simulation method
JP2018205826A (en) * 2017-05-30 2018-12-27 オムロン株式会社 Program development support device, program development support system, program development support method, and program development support program
US11287789B2 (en) 2017-05-30 2022-03-29 Omron Corporation Program development support device, program development support system, program development support method, and non-transitory computer-readable recording medium

Also Published As

Publication number Publication date
JP4941674B2 (en) 2012-05-30

Similar Documents

Publication Publication Date Title
JP5691390B2 (en) Power supply and program
JP6006399B2 (en) Programmable display, its program
JP2019525373A (en) How to generate test cases
JP2000122886A (en) Program production system of semiconductor testing device
CN106445805B (en) Visual test report generation method
US20060085783A1 (en) Multi-process display method in debugger system
JP4941674B2 (en) Simulation system
WO2020239033A1 (en) Method and system for displaying machine learning automatic modeling procedure
JP2011107866A (en) Apparatus and method for sequence control of connected equipment simulator, and program therefor
JP5870214B2 (en) Programmable controller system, its programmable display, support device, program
JP2007280092A (en) Picture data preparation method
JP4925514B2 (en) Program execution control method, program, execution control apparatus, and recording medium by internal / external event driven system
JP5883936B2 (en) Programmable controller system
JPWO2014128918A1 (en) Programmable display, its program
JP5058219B2 (en) Scenario creation method, apparatus, program, and recording medium
JP4455400B2 (en) Drawing editor device, display device for control, program thereof and recording medium
JP6095743B2 (en) Support device, program
JP4387288B2 (en) Display device for control, editor device, program, and recording medium
JP6333279B2 (en) Programmable display, program
JPWO2014083646A1 (en) Programmable display, program
JP2018128919A (en) Work plan creation system, work plan creation method and work plan creation program
JP2016212916A (en) Programmable display unit and program
JP2018156214A (en) SFC program creation support apparatus, SFC program creation support program, and SFC program creation method
JP2010250732A (en) Transfer device and transfer program
JPH07219980A (en) Test execution system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110107

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120124

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: 20120201

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120214

R150 Certificate of patent or registration of utility model

Ref document number: 4941674

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150309

Year of fee payment: 3