JP2022142493A - simulation device - Google Patents

simulation device Download PDF

Info

Publication number
JP2022142493A
JP2022142493A JP2021042680A JP2021042680A JP2022142493A JP 2022142493 A JP2022142493 A JP 2022142493A JP 2021042680 A JP2021042680 A JP 2021042680A JP 2021042680 A JP2021042680 A JP 2021042680A JP 2022142493 A JP2022142493 A JP 2022142493A
Authority
JP
Japan
Prior art keywords
display
screen
unit
simulation
objects
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2021042680A
Other languages
Japanese (ja)
Inventor
絵里 ▲徳▼永
Eri Tokunaga
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.)
Schneider Electric Japan Holdings Ltd
Original Assignee
Schneider Electric Japan Holdings 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 Schneider Electric Japan Holdings Ltd filed Critical Schneider Electric Japan Holdings Ltd
Priority to JP2021042680A priority Critical patent/JP2022142493A/en
Publication of JP2022142493A publication Critical patent/JP2022142493A/en
Pending legal-status Critical Current

Links

Images

Abstract

To shorten work time of simulation by a user to prevent omission of confirmation.SOLUTION: A PC (1) includes: a display control unit (111) for displaying a created screen on a display unit (12), which is created as a display screen displayed on a programmable display unit (2) and includes one or more objects; and an execution unit (113) for automatically executing a simulation for causing the display control unit (111) to execute control for displaying actions of the one or more objects on the display unit (12) according to a definition file defining the actions of the one or more objects.SELECTED DRAWING: Figure 1

Description

本発明はシミュレーション装置に関する。 The present invention relates to a simulation device.

特許文献1には、カバレッジ画面作成手段と、シミュレーション実行手段と、を備える表示画面デバック装置が開示されている。カバレッジ画面作成手段は、画面の設定データから設定項目一覧データを作成する。カバレッジ画面データ中の設定データと設定項目一覧データとは項目ごとに関連付けがなされている。また、シミュレーション実行手段は、入力されたカバレッジ画面データ内の設定データに基づいてシミュレーションを実行する。 Patent Literature 1 discloses a display screen debugging device that includes coverage screen creation means and simulation execution means. The coverage screen creation means creates setting item list data from the screen setting data. The setting data in the coverage screen data and the setting item list data are associated with each other. Also, the simulation executing means executes a simulation based on the set data in the input coverage screen data.

特開2006-155158号公報JP 2006-155158 A

しかしながら、特許文献1に開示の表示画面デバック装置において、ユーザが複数の設定項目について1つずつシミュレーションを実行するために、複数の設定項目に対して手作業で入力を行う場合、ユーザの作業時間が増大するという問題がある。本発明の一態様は、ユーザによるシミュレーションの作業時間を短縮することや、確認漏れを防ぐことを目的とする。 However, in the display screen debugging device disclosed in Patent Document 1, when the user manually inputs a plurality of setting items in order to execute simulations one by one for a plurality of setting items, the user's work time increases. An object of one aspect of the present invention is to reduce the user's simulation work time and to prevent confirmation omissions.

上記の課題を解決するために、本発明の一態様に係るシミュレーション装置は、プログラマブル表示器に表示される表示画面として作成され、1つ以上のオブジェクトを含む作成画面を表示部に表示させる表示制御部と、前記1つ以上のオブジェクトの動作を定義する定義ファイルにしたがって、前記1つ以上のオブジェクトの動作を前記表示部に表示させる制御を前記表示制御部に実行させるシミュレーションを自動的に実行する実行部と、を備える。 In order to solve the above problems, a simulation apparatus according to an aspect of the present invention provides display control for displaying a created screen including one or more objects on a display unit, created as a display screen displayed on a programmable display. automatically executes a simulation for causing the display control unit to control the display unit to display the actions of the one or more objects according to a definition file defining the actions of the one or more objects. and an execution unit.

シミュレーション装置上で1つ以上のオブジェクトの動作のシミュレーションが自動的に実行される。これにより、ユーザが1つ以上のオブジェクトの動作をシミュレーションする操作を行う必要がないため、ユーザによるシミュレーションの作業時間を短縮することや、確認漏れを防ぐことができる。 A simulation of the motion of one or more objects is automatically run on the simulation device. This eliminates the need for the user to perform an operation for simulating the action of one or more objects, thereby reducing the user's simulation work time and preventing omission of confirmation.

前記シミュレーション装置は、前記作成画面を含み、前記1つ以上のオブジェクトに、当該オブジェクトの動作に関する設定情報が設定された画面ファイルを記憶する記憶部と、前記記憶部に記憶された前記画面ファイルから、前記設定情報を読み出すことにより、前記定義ファイルを自動的に作成する作成部と、をさらに備えてもよい。 The simulation apparatus includes a storage unit for storing a screen file including the creation screen, and setting information regarding the operation of the object for the one or more objects, and a screen file stored in the storage unit. and a creating unit that automatically creates the definition file by reading the setting information.

作成画面を含む画面ファイルから定義ファイルが自動的に作成されるため、ユーザが定義ファイルを作成する必要がなくなり、ユーザによる定義ファイルの作成に要する作業時間を削減することができる。 Since the definition file is automatically created from the screen file including the creating screen, the user does not have to create the definition file, and the work time required for creating the definition file by the user can be reduced.

前記実行部は、前記定義ファイルにしたがって、前記1つ以上のオブジェクトの動作を前記プログラマブル表示器の前記表示部に表示させる制御を前記表示制御部に実行させる前記シミュレーションを自動的に実行してもよい。プログラマブル表示器を用いてシミュレーションを自動的に実行することができる。 According to the definition file, the execution unit may automatically execute the simulation that causes the display control unit to perform control to display the operation of the one or more objects on the display unit of the programmable display device. good. Simulations can be run automatically using a programmable display.

前記定義ファイルは、前記1つ以上のオブジェクトの動作に対応して予め設定された数値範囲について、当該数値範囲外の異常値の情報を含み、前記実行部は、前記異常値の情報に対応する前記オブジェクトの動作を前記表示部に表示させる制御を前記表示制御部に実行させてもよい。 The definition file includes information on abnormal values outside the numerical range preset for the operation of the one or more objects, and the execution unit corresponds to the information on the abnormal values. The display control unit may be caused to perform control for displaying the motion of the object on the display unit.

予め設定された数値範囲外の異常値の情報に対応するオブジェクトの動作が表示部に表示された場合において、ユーザは、想定されていない異常な動作をオブジェクトが起こさないかを確認することができる。 When the action of the object corresponding to the information of the abnormal value outside the preset numerical range is displayed on the display unit, the user can confirm whether or not the object causes an unexpected abnormal action. .

前記記憶部は、前記画面ファイルとして、編集前の第1編集画面ファイルと、編集後の第2編集画面ファイルと、を記憶し、前記作成部は、前記第2編集画面ファイルの前記設定情報が前記第1編集画面ファイルの前記設定情報と相違している前記1つ以上のオブジェクトの動作を定義する前記定義ファイルを相違定義ファイルとして自動的に作成し、前記実行部は、前記相違定義ファイルに定義されている前記1つ以上のオブジェクトの動作に対してのみ前記シミュレーションを自動的に実行してもよい。 The storage unit stores a first editing screen file before editing and a second editing screen file after editing as the screen files, and the creating unit stores the setting information of the second editing screen file. automatically creating the definition file defining the operation of the one or more objects that differ from the setting information of the first editing screen file as a difference definition file, wherein the execution unit stores the difference definition file in The simulation may be automatically performed only for defined behaviors of the one or more objects.

画面ファイルの編集によって編集前から相違した設定情報に対応する1つ以上のオブジェクトの動作に対してのみシミュレーションが実行される。このため、シミュレーションの実行時間が短縮されることから、ユーザによるシミュレーションの作業時間を短縮することができる。 Simulation is executed only for the motion of one or more objects corresponding to setting information that differs from before editing due to editing of the screen file. Therefore, since the execution time of the simulation is shortened, it is possible to shorten the simulation work time by the user.

前記表示部として、前記シミュレーション装置の第1表示部と、前記プログラマブル表示器の第2表示部と、が設けられ、前記シミュレーション装置は、前記作成画面としての第1作成画面を含む第1画面ファイルを記憶する記憶部を備え、前記実行部は、前記定義ファイルにしたがって、前記第1作成画面に含まれる前記1つ以上のオブジェクトの動作を前記第1表示部に表示させる制御と、前記定義ファイルにしたがって、前記第1画面ファイルとはファイル形式が異なる第2画面ファイルに含まれる、前記作成画面としての第2作成画面に含まれる前記1つ以上のオブジェクトの動作を前記第2表示部に表示させる制御と、を前記表示制御部に実行させる前記シミュレーションを自動的に実行してもよい。 A first display unit of the simulation device and a second display unit of the programmable display are provided as the display unit, and the simulation device includes a first screen file including a first creation screen as the creation screen. and the execution unit controls to display the actions of the one or more objects included in the first creation screen on the first display unit according to the definition file; and the definition file according to the second display unit, the motion of the one or more objects included in the second creation screen as the creation screen, which is included in a second screen file having a file format different from that of the first screen file. and the simulation of causing the display control unit to execute the simulation may be automatically executed.

第1作成画面に含まれる1つ以上のオブジェクトの動作と、第2作成画面に含まれる1つ以上のオブジェクトの動作と、の間に違いがあるか否かの確認作業において、オブジェクトの動作の表示を自動化することができる。これにより、ユーザは、第1表示部の表示と第2表示部の表示とを比較するだけで、オブジェクトの動作の確認作業を容易に行うことができる。 When confirming whether or not there is a difference between the actions of one or more objects included in the first creation screen and the actions of one or more objects included in the second creation screen, Display can be automated. Accordingly, the user can easily confirm the operation of the object by simply comparing the display on the first display unit and the display on the second display unit.

前記実行部は、前記シミュレーションを実行している前記オブジェクトを、他のオブジェクトに比べて強調して前記表示部に表示させる制御を前記表示制御部に実行させてもよい。 The execution unit may cause the display control unit to perform control to display the object on which the simulation is being executed in a more emphasized manner than other objects on the display unit.

シミュレーションが実行されているオブジェクトが強調して表示部に表示されるため、ユーザは、現在シミュレーションが実行されているオブジェクトを認識することができ、オブジェクトの動作の確認を容易に行うことができる。 Since the object being simulated is highlighted and displayed on the display unit, the user can recognize the object currently being simulated and can easily confirm the operation of the object.

前記定義ファイルは、前記オブジェクトの動作に対応する前記シミュレーションの開始時間の情報、または、複数の前記オブジェクトそれぞれの動作に対応する前記シミュレーションの実行間隔の情報を含み、前記実行部は、前記定義ファイルに含まれる前記開始時間の情報または前記実行間隔の情報にしたがって、前記シミュレーションを自動的に実行してもよい。 The definition file includes information on the start time of the simulation corresponding to the motion of the object, or information on the execution interval of the simulation corresponding to the motion of each of the plurality of objects, and the execution unit includes the definition file. The simulation may be automatically executed according to the start time information or the execution interval information contained in the .

オブジェクトの動作のシミュレーションが、定義ファイルに含まれるシミュレーションの開始時間の情報または実行間隔の情報にしたがって自動的に実行される。このため、ユーザが都度、デバイス値を書き替えながら確認をする必要がなくなり作業時間を短縮することができる。 A simulation of the behavior of the object is automatically executed according to the simulation start time information or execution interval information contained in the definition file. This eliminates the need for the user to rewrite and check the device values each time, thereby shortening the work time.

本発明の一態様によれば、ユーザによるシミュレーションの作業時間を短縮することや、確認漏れを防ぐことができる。 According to one aspect of the present invention, it is possible to reduce the user's simulation work time and prevent omission of confirmation.

本発明の実施形態1に係るPCの構成の一例を示すブロック図である。1 is a block diagram showing an example of a configuration of a PC according to Embodiment 1 of the present invention; FIG. 図1に示すPCの表示部に表示される作成画面と、作成画面に含まれるオブジェクトに設定された設定情報と、の一例を示す図である。3 is a diagram showing an example of a creation screen displayed on the display unit of the PC shown in FIG. 1 and setting information set to objects included in the creation screen; FIG. 1つ以上のオブジェクトの動作を定義する定義ファイルの一例を示す図である。FIG. 4 is a diagram showing an example of a definition file that defines behavior of one or more objects; 図1に示すPCの制御部によって実行される1つ以上のオブジェクトのシミュレーションの一例を示す図である。FIG. 2 is a diagram showing an example of simulation of one or more objects executed by the control unit of the PC shown in FIG. 1; FIG. 図1に示すPCの制御部が有する作成部が定義ファイルを作成する手順を示すフローチャートである。4 is a flow chart showing a procedure for creating a definition file by a creation unit included in a control unit of the PC shown in FIG. 1; 図5に示すステップS5の処理において作成部によって参照される設定情報である。This is the setting information referred to by the creation unit in the process of step S5 shown in FIG. 本発明の実施形態2に係る作成画面と、作成画面に含まれるオブジェクトに設定された設定情報と、定義ファイルと、の一例を示す図である。FIG. 10 is a diagram showing an example of a creation screen, setting information set to objects included in the creation screen, and a definition file according to Embodiment 2 of the present invention; 本発明の実施形態3に係るPCと、プログラマブル表示器と、PLCと、の構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure of PC which concerns on Embodiment 3 of this invention, a programmable display, and PLC. 図8に示すPCと、プログラマブル表示器と、PLCと、の接続状態の一例を示す図である。It is a figure which shows an example of the connection state of PC, a programmable display, and PLC which are shown in FIG. 本発明の実施形態4に係るPCと、プログラマブル表示器と、の構成の一例を示す図である。It is a figure which shows an example of a structure of PC which concerns on Embodiment 4 of this invention, and a programmable display. 図10に示すPCにカメラが接続されている状態を示す図である。11 is a diagram showing a state in which a camera is connected to the PC shown in FIG. 10; FIG.

〔実施形態1〕
パーソナルコンピュータ(以降、単に「PC」と称する)1の構成について図1に基づいて説明する。図1は、本発明の実施形態1に係るPC1の構成の一例を示すブロック図である。
[Embodiment 1]
The configuration of a personal computer (hereinafter simply referred to as "PC") 1 will be described with reference to FIG. FIG. 1 is a block diagram showing an example configuration of a PC 1 according to Embodiment 1 of the present invention.

<PC1の構成>
図1に示すように、PC1は、制御部11と、表示部12と、操作部13と、記憶部14と、インタフェース部15と、を備える。PC1は、プログラマブル表示器2が表示する作成画面に含まれる1つ以上のオブジェクトの動作のシミュレーションを実行するシミュレーション装置として機能する。
<Configuration of PC1>
As shown in FIG. 1 , the PC 1 includes a control section 11 , a display section 12 , an operation section 13 , a storage section 14 and an interface section 15 . The PC 1 functions as a simulation device that simulates the motion of one or more objects included in the creation screen displayed by the programmable display 2 .

制御部11は、PC1の各部を制御する。制御部11は、表示制御部111と、作成部112と、実行部113と、を有する。作成部112については後述の変形例にて説明する。表示部12は、PC1での処理内容を表示するモニタである。 The control section 11 controls each section of the PC 1 . The control unit 11 has a display control unit 111 , a creation unit 112 and an execution unit 113 . The creation unit 112 will be described later in a modified example. A display unit 12 is a monitor that displays the processing contents of the PC 1 .

操作部13は、例えば、ユーザがデータの入力を行うためのキーボードやユーザが操作を行うためのマウスである。記憶部14は、PC1での処理内容を記憶するとともに、ユーザによって作成された1つ以上の作成画面を含む画面ファイルを記憶する。インタフェース部15は、PC1が図8に示すプログラマブル表示器2及びPLC(プログラマブルロジックコントローラ)3と通信を行うための通信部であり、図8に示すプログラマブル表示器2の制御部21と通信可能である。 The operating unit 13 is, for example, a keyboard for the user to input data or a mouse for the user to operate. The storage unit 14 stores the processing contents of the PC 1 and also stores a screen file including one or more created screens created by the user. The interface unit 15 is a communication unit for the PC 1 to communicate with the programmable display device 2 and the PLC (programmable logic controller) 3 shown in FIG. 8, and can communicate with the control unit 21 of the programmable display device 2 shown in FIG. be.

<PC1の処理>
図2は、図1に示すPC1の表示部12に表示される作成画面と、作成画面に含まれるオブジェクトに設定された設定情報と、の一例を示す図である。図2の符号101及び102はそれぞれ、ユーザがPC1を用いて作成した画面ファイルに含まれる作成画面P1及びP2である。図2の符号103は、作成画面P1及びP2に含まれる1つ以上のオブジェクトに設定された設定情報I1である。
<Processing of PC1>
FIG. 2 is a diagram showing an example of a creation screen displayed on the display unit 12 of the PC 1 shown in FIG. 1 and setting information set to objects included in the creation screen. Reference numerals 101 and 102 in FIG. 2 denote created screens P1 and P2 included in a screen file created by the user using the PC 1, respectively. Reference numeral 103 in FIG. 2 denotes setting information I1 set in one or more objects included in the creation screens P1 and P2.

ユーザは、PC1を用いて、1つ以上の作成画面を含み、作成画面に含まれる1つ以上のオブジェクトに、当該オブジェクトの動作に関する設定情報が設定された画面ファイルを作成する。記憶部14は、ユーザによって作成された画面ファイルを記憶する。作成画面P1及びP2は、記憶部14に記憶された画面ファイルに含まれ、図8に示すプログラマブル表示器2の表示部22に表示される表示画面として作成されたものである。表示制御部111は、作成画面P1及びP2を表示部12に表示させる。 The user uses the PC 1 to create a screen file that includes one or more creation screens and sets setting information regarding the operation of one or more objects included in the creation screens. The storage unit 14 stores screen files created by the user. The created screens P1 and P2 are included in the screen files stored in the storage unit 14 and created as display screens to be displayed on the display unit 22 of the programmable display device 2 shown in FIG. The display control unit 111 causes the display unit 12 to display the creation screens P1 and P2.

図2の符号101に示すように、作成画面P1は、オブジェクトB1~B3を含む。オブジェクトB1は、PLC3のデバイスメモリ上のアドレスのビットを切り替えるためのビットスイッチを示すオブジェクトであり、オブジェクトB2はランプを示すオブジェクトであり、オブジェクトB3は状態切替スイッチを示すオブジェクトである。また、図2の符号102に示すように、作成画面P2は、オブジェクトB4及びB5を含む。オブジェクトB4はグラフを示すオブジェクトであり、オブジェクトB5は数値表示器を示すオブジェクトである。 As indicated by reference numeral 101 in FIG. 2, the creation screen P1 includes objects B1 to B3. The object B1 is an object indicating a bit switch for switching the address bit on the device memory of the PLC 3, the object B2 is an object indicating a lamp, and the object B3 is an object indicating a state changeover switch. Moreover, as indicated by reference numeral 102 in FIG. 2, the creation screen P2 includes objects B4 and B5. Object B4 is an object representing a graph, and object B5 is an object representing a numerical indicator.

図2の符号103に示すように、設定情報I1には、画面番号と、部品IDと、オブジェクトの機能と、アドレスと、値と、が対応付けられて設定されている。つまり、設定情報I1はこれらの情報を含む。設定情報I1は、記憶部14に記憶された画面ファイルに設定されており、1つ以上のオブジェクトの動作に関して設定されている。設定情報I1に設定されている各項目について以下に説明する。 As indicated by reference numeral 103 in FIG. 2, the screen number, component ID, object function, address, and value are associated and set in the setting information I1. That is, the setting information I1 includes these pieces of information. The setting information I1 is set in the screen file stored in the storage unit 14, and is set regarding the operation of one or more objects. Each item set in the setting information I1 will be described below.

画面番号は、1つ以上の作成画面を識別するために各作成画面に設定された番号である。部品IDは、1つ以上のオブジェクトを識別するために各オブジェクトに設定されたIDである。オブジェクトの機能の欄は、各オブジェクトの動作の内容を示す。アドレスは、PLC3のデバイスメモリ上において、各オブジェクトの動作の内容が記憶されているアドレスである。値の欄は、各オブジェクトの動作に対応して予め設定された数値を示す。 The screen number is a number assigned to each created screen to identify one or more created screens. A part ID is an ID set for each object to identify one or more objects. The object function column indicates the contents of the operation of each object. The address is an address on the device memory of the PLC 3 where the contents of the operation of each object are stored. The value column shows numerical values set in advance corresponding to the motion of each object.

また、図2の符号103に示すように、1つのオブジェクトに対し複数の動作が設定される場合もある。例えば、オブジェクトB1には、動作として「スイッチ」及び「ランプ」が設定されている。設定情報I1の値は、オブジェクトの動作と一対一に対応して設定されている。 Also, as indicated by reference numeral 103 in FIG. 2, a plurality of actions may be set for one object. For example, "switch" and "lamp" are set as actions for the object B1. The value of the setting information I1 is set in one-to-one correspondence with the motion of the object.

図3は、1つ以上のオブジェクトの動作を定義する定義ファイルの一例を示す図である。ユーザは、PC1を用いて、1つ以上のオブジェクトが正しく動作するか否かを確認するための定義ファイルを作成する。記憶部14は、ユーザによって作成された定義ファイルを記憶する。図3に示すように、定義ファイルD1には、開始時間と、画面番号と、部品IDと、オブジェクトの機能と、アドレスと、値と、異常値と、が対応付けられて設定されている。つまり、定義ファイルD1はこれらの情報を含む。定義ファイルD1に設定されている各項目について以下に説明する。 FIG. 3 is a diagram showing an example of a definition file that defines actions of one or more objects. The user uses PC1 to create a definition file for checking whether one or more objects operate correctly. The storage unit 14 stores definition files created by users. As shown in FIG. 3, the start time, screen number, component ID, object function, address, value, and abnormal value are associated and set in the definition file D1. That is, the definition file D1 contains these pieces of information. Each item set in the definition file D1 will be described below.

開始時間は、実行部113によって定義ファイルD1にしたがってシミュレーションが実行される場合に、オブジェクトの動作に対応するシミュレーションの開始時間である。定義ファイルD1の画面番号、部品ID、オブジェクトの機能、アドレス及び値は、設定情報I1と同様である。異常値は、1つ以上のオブジェクトの動作に対応して予め設定された数値範囲について、当該数値範囲外の異常値である。 The start time is the start time of the simulation corresponding to the action of the object when the execution unit 113 executes the simulation according to the definition file D1. The screen number, component ID, object function, address and value of the definition file D1 are the same as those of the setting information I1. An abnormal value is an abnormal value outside a numerical range set in advance corresponding to the motion of one or more objects.

図4は、図1に示すPC1の制御部11によって実行される1つ以上のオブジェクトのシミュレーションの一例を示す図である。実行部113は、記憶部14に記憶された定義ファイルD1にしたがって、1つ以上のオブジェクトの動作を表示部12に表示させる制御を表示制御部111に実行させるシミュレーションを自動的に実行する。このとき、表示制御部111は、1つ以上のオブジェクトの動作を表示部12に表示させる。 FIG. 4 is a diagram showing an example of one or more object simulations executed by the control unit 11 of the PC 1 shown in FIG. The execution unit 113 automatically executes a simulation that causes the display control unit 111 to control the display unit 12 to display the motion of one or more objects according to the definition file D1 stored in the storage unit 14 . At this time, the display control unit 111 causes the display unit 12 to display the motion of one or more objects.

図4に示すように、表示部12は、プログラマブル表示器2の機能を再現するHMIシミュレータの画面S1と、PLC3の機能を再現するPLCシミュレータの画面S2と、関連するデバイス4などの状態を示す画面S3と、を表示する。HMIシミュレータ及びPLCシミュレータは、実行部113によって実行されている。画面S1には作成画面P1が表示されている。画面S2にはPLCシミュレータによる処理内容が表示されている。画面S3にはHMIシミュレータ及びPLCシミュレータに関連するデバイス4などの状態が表示されている。 As shown in FIG. 4, the display unit 12 displays a screen S1 of the HMI simulator that reproduces the functions of the programmable display 2, a screen S2 of the PLC simulator that reproduces the functions of the PLC 3, and the states of the related devices 4 and the like. A screen S3 is displayed. The HMI simulator and PLC simulator are executed by the execution unit 113 . A creation screen P1 is displayed on the screen S1. The screen S2 displays the contents of processing by the PLC simulator. The screen S3 displays the states of the device 4 and the like related to the HMI simulator and PLC simulator.

実行部113は、定義ファイルD1からオブジェクトの動作に対応するシミュレーションの開始時間の情報を読み出し、当該開始時間の情報にしたがってシミュレーションを自動的に実行する。これにより、シミュレーションの開始時間にしたがって、表示部12に各オブジェクトの動作が順番に表示部12に表示される。 The execution unit 113 reads information on the simulation start time corresponding to the motion of the object from the definition file D1, and automatically executes the simulation according to the information on the start time. As a result, the motion of each object is displayed on the display unit 12 in order according to the start time of the simulation.

このとき、実行部113は、定義ファイルD1から各オブジェクトの機能を読み出し、その機能の動作を表示部12に表示させる制御を表示制御部111に実行させる。なお、定義ファイルD1には、複数のオブジェクトそれぞれの動作に対応するシミュレーションの実行間隔の情報が含まれてもよく、この場合、実行部113は、定義ファイルD1に含まれる当該実行間隔の情報にしたがってシミュレーションを実行する。 At this time, the execution unit 113 reads the function of each object from the definition file D1 and causes the display control unit 111 to execute control for displaying the operation of the function on the display unit 12 . Note that the definition file D1 may include information on execution intervals of simulations corresponding to actions of each of a plurality of objects. Therefore, run a simulation.

このように、オブジェクトの動作のシミュレーションが、定義ファイルD1に含まれるシミュレーションの開始時間の情報にしたがって自動的に実行される。このため、ユーザが都度、デバイス値を書き替えながら確認をする必要がなくなり作業時間を短縮することができる。 In this way, the simulation of the motion of the object is automatically executed according to the simulation start time information contained in the definition file D1. This eliminates the need for the user to rewrite and check the device values each time, thereby shortening the work time.

また、実行部113は、シミュレーションを実行しているオブジェクトを、他のオブジェクトに比べて強調して表示部12に表示させる制御を表示制御部111に実行させる。この場合において、例えば、オブジェクトB3の動作のシミュレーションが実行されているとすると、オブジェクトB3が他のオブジェクトB1及びB2に比べて強調して表示される。 In addition, the execution unit 113 causes the display control unit 111 to perform control to display the object being simulated on the display unit 12 while emphasizing it compared to other objects. In this case, for example, assuming that the motion of object B3 is being simulated, object B3 is emphasized and displayed compared to other objects B1 and B2.

例えば、図4に示すように、オブジェクトB3が枠線で囲まれて表示されたり、オブジェクトB3が手のアイコンで指し示されてもよい。また、オブジェクトB3のアイコンの色が変更されたり、オブジェクトB3のアイコンが点滅してもよい。これにより、ユーザは、現在シミュレーションが実行されているオブジェクトを認識することができ、オブジェクトの動作の確認を容易に行うことができる。 For example, as shown in FIG. 4, the object B3 may be displayed surrounded by a frame, or the object B3 may be indicated by a hand icon. Also, the color of the icon of the object B3 may be changed, or the icon of the object B3 may blink. As a result, the user can recognize the object currently being simulated, and can easily confirm the operation of the object.

さらに、実行部113は、定義ファイルD1に含まれる異常値の情報に対応するオブジェクトの動作を表示部12に表示させる制御を表示制御部111に実行させる。これにより、予め設定された数値範囲外の異常値の情報に対応するオブジェクトの動作が表示部12に表示された場合において、ユーザは、想定されていない異常な動作をオブジェクトが起こさないかを確認することができる。 Further, the execution unit 113 causes the display control unit 111 to perform control for displaying the operation of the object corresponding to the information of the abnormal value included in the definition file D1 on the display unit 12 . As a result, when the action of the object corresponding to the information of the abnormal value outside the preset numerical range is displayed on the display unit 12, the user can check whether the object will perform an unexpected abnormal action. can do.

以上により、PC1上で1つ以上のオブジェクトの動作のシミュレーションが自動的に実行される。これにより、ユーザが1つ以上のオブジェクトの動作をシミュレーションする操作を行う必要がないため、ユーザによるシミュレーションの作業時間を短縮することや、確認漏れを防ぐことができる。 As described above, the motion of one or more objects is automatically simulated on the PC1. This eliminates the need for the user to perform an operation for simulating the action of one or more objects, thereby reducing the user's simulation work time and preventing omission of confirmation.

<変形例>
図5は、図1に示すPC1の制御部11が有する作成部112が定義ファイルD1を作成する手順を示すフローチャートである。図6は、図5に示すステップS5の処理において作成部112によって参照される設定情報I2である。本変形例において、作成部112が定義ファイルD1を自動的に作成してもよい。なお、上述した通りユーザが定義ファイルD1を作成する場合、制御部11は作成部112を有していなくてもよい。
<Modification>
FIG. 5 is a flow chart showing a procedure for creating the definition file D1 by the creation unit 112 of the control unit 11 of the PC 1 shown in FIG. FIG. 6 shows the setting information I2 referred to by the creation unit 112 in the process of step S5 shown in FIG. In this modification, the creating unit 112 may automatically create the definition file D1. Note that, as described above, when the user creates the definition file D1, the control unit 11 may not have the creating unit 112 .

まず、作成部112は、実行部113によって実行されるシミュレーションの詳細設定にしたがって、記憶部14に記憶されている画面ファイルに含まれる1つ以上の作成画面を順番に参照する(S1)。シミュレーションの詳細設定は記憶部14に記憶されている。シミュレーションの詳細設定には、個々のオブジェクトの動作に係るシミュレーションの実行間隔、画面の範囲指定、オブジェクトの種類選択などが設定されている。 First, the creation unit 112 sequentially refers to one or more creation screens included in the screen file stored in the storage unit 14 according to the detailed settings of the simulation executed by the execution unit 113 (S1). Detailed settings of the simulation are stored in the storage unit 14 . The detailed settings of the simulation include settings such as the execution interval of the simulation relating to the motion of each object, specification of the screen range, selection of the type of object, and the like.

そして、作成部112は、作成画面の切り替えの設定を定義ファイルD1に追加する(S2)。作成部112は、例えば、定義ファイルD1に開始時間と画面番号とを対応付けて設定することにより、作成画面の切り替えの時間を定義ファイルD1に設定することができる。 Then, the creation unit 112 adds a setting for switching the creation screen to the definition file D1 (S2). The creation unit 112 can set the switching time of the creation screen in the definition file D1 by, for example, setting the start time and the screen number in the definition file D1 in association with each other.

次に、作成部112は、作成画面を順番に参照するとともに、シミュレーションの詳細設定を参照しながら、1つ以上のオブジェクトを検索する(S3)。ステップS3において、作成部112は、検索対象のオブジェクトが、シミュレーションの詳細設定で予め選択されている対象オブジェクトであるか否かを判定する(S4)。対象オブジェクトは、実行部113によって実行されるシミュレーションの対象となるオブジェクトである。作成部112は、検索対象のオブジェクトが対象オブジェクトではないと判定した場合(S4にてNO)、ステップS3に進み、次の検索対象のオブジェクトの検索に移る。 Next, the creation unit 112 searches for one or more objects while referring to the creation screens in order and referring to the detailed settings of the simulation (S3). In step S3, the creating unit 112 determines whether or not the object to be searched is a target object preselected in detailed settings of the simulation (S4). A target object is an object to be simulated by the execution unit 113 . When the creation unit 112 determines that the search target object is not the target object (NO in S4), the process proceeds to step S3 to search for the next search target object.

作成部112は、検索対象のオブジェクトが対象オブジェクトであると判定した場合(S4にてYES)、対象オブジェクトの分類に応じて、対象オブジェクトのプロパティを読み込んで、定義ファイルD1を作成する(S5)。このとき、作成部112は、画面ファイルから、作成画面に含まれるオブジェクトに設定された対象プロパティを設定情報I2から読み出す。設定情報I2には、対象オブジェクトとしての対象部品と、分類と、対象オブジェクトのプロパティとしての対象プロパティと、が対応付けられて設定されている。上述した異常値の情報についても、設定情報I2に基づき定義ファイルD1に含まれて自動的に生成される。 When the creation unit 112 determines that the object to be searched is the target object (YES in S4), it reads the properties of the target object according to the classification of the target object, and creates the definition file D1 (S5). . At this time, the creation unit 112 reads the target property set for the object included in the creation screen from the setting information I2 from the screen file. A target part as a target object, a classification, and a target property as a property of the target object are associated and set in the setting information I2. The abnormal value information described above is also included in the definition file D1 and automatically generated based on the setting information I2.

次に、作成部112は、作成画面に含まれる全てのオブジェクトについて検索が終了したか否かを判定する(S6)。作成部112は、作成画面に含まれる全てのオブジェクトについて検索が終了していないと判定した場合(S6にてNO)、ステップS3に進む。 Next, the creation unit 112 determines whether or not all objects included in the creation screen have been searched (S6). When the creation unit 112 determines that the search has not been completed for all objects included in the creation screen (NO in S6), the process proceeds to step S3.

作成部112は、作成画面に含まれる全てのオブジェクトについて検索が終了したと判定した場合(S6にてYES)、ステップS7に進む。この場合、作成部112は、ステップS2~S6にて対象としていた作成画面が、画面ファイルに含まれる1つ以上の作成画面のうち最終の作成画面であるか否かを判定する(S7)。 When the creation unit 112 determines that the search for all objects included in the creation screen has ended (YES in S6), the process proceeds to step S7. In this case, the creation unit 112 determines whether or not the created screen targeted in steps S2 to S6 is the final created screen among one or more created screens included in the screen file (S7).

作成部112は、ステップS2~S6にて対象としていた作成画面が最終の作成画面ではないと判定した場合(S7にてNO)、ステップS1に進む。作成部112は、ステップS2~S6にて対象としていた作成画面が最終の作成画面であると判定した場合(S7にてYES)、定義ファイルD1の作成処理を終了する。 When the creating unit 112 determines that the created screen targeted in steps S2 to S6 is not the final created screen (NO in S7), the process proceeds to step S1. When the creation unit 112 determines that the creation screen targeted in steps S2 to S6 is the final creation screen (YES in S7), the creation processing of the definition file D1 ends.

以上により、作成部112は、記憶部14に記憶された画面ファイルから、設定情報I2を参照して、オブジェクトの対象プロパティを読み出すことにより、定義ファイルD1を自動的に作成する。このとき、ユーザは、PC1を用いて、作成部112によって自動的に作成された定義ファイルD1を確認し、必要に応じて編集することもできる。これにより、作成画面を含む画面ファイルから定義ファイルD1が自動的に作成されるため、ユーザが定義ファイルD1を作成する必要がなくなり、ユーザによる定義ファイルD1の作成に要する作業時間を削減することができる。 As described above, the creation unit 112 automatically creates the definition file D1 by referring to the setting information I2 from the screen file stored in the storage unit 14 and reading the target property of the object. At this time, the user can use the PC 1 to check the definition file D1 automatically created by the creating unit 112, and edit it if necessary. As a result, since the definition file D1 is automatically created from the screen file including the created screen, the user does not need to create the definition file D1, and the work time required for creating the definition file D1 by the user can be reduced. can.

また、ユーザがPC1を用いてシミュレーションを手作業で実施する場合において、作成部112は、ユーザによるシミュレーションの実施内容を参照して、当該実施内容から定義ファイルD1を自動的に作成することもできる。作成部112は、作成した定義ファイルD1を記憶部14に記憶する。 Further, when the user manually performs a simulation using the PC 1, the creating unit 112 can refer to the execution details of the simulation performed by the user and automatically create the definition file D1 from the execution details. . The creation unit 112 stores the created definition file D1 in the storage unit 14 .

さらに、実行部113は、シミュレーションを自動的に実行する際に、停止箇所を設定するなどしてシミュレーションを停止したり、シミュレーションをトレースしたりしてもよい。また、実行部113によるシミュレーションの実行中に、ユーザがPC1を用いて手作業でシミュレーション内容を追加することが可能であってもよい。この場合、作成部112は、ユーザにより追加されたシミュレーション内容を定義ファイルD1に追加する。実行部113は、定義ファイルD1に追加されたシミュレーションも実行する。 Furthermore, the executing unit 113 may stop the simulation by setting a stopping point or trace the simulation when automatically executing the simulation. Further, it may be possible for the user to manually add simulation content using the PC 1 while the execution unit 113 is executing the simulation. In this case, the creating unit 112 adds the simulation content added by the user to the definition file D1. The execution unit 113 also executes the simulation added to the definition file D1.

〔実施形態2〕
本発明の実施形態2について、以下に説明する。なお、説明の便宜上、実施形態1にて説明した部材と同じ機能を有する部材については、同じ符号を付記し、その説明を繰り返さない。図7は、本発明の実施形態2に係る作成画面と、作成画面に含まれるオブジェクトに設定された設定情報と、定義ファイルと、の一例を示す図である。図7において符号201は作成画面P1を示し、符号202は設定情報I3を示し、符号203は相違定義ファイルD2を示す。
[Embodiment 2]
A second embodiment of the present invention will be described below. For convenience of description, members having the same functions as the members described in the first embodiment are denoted by the same reference numerals, and description thereof will not be repeated. FIG. 7 is a diagram showing an example of a creation screen, setting information set to objects included in the creation screen, and a definition file according to the second embodiment of the present invention. In FIG. 7, reference numeral 201 indicates the creation screen P1, reference numeral 202 indicates the setting information I3, and reference numeral 203 indicates the difference definition file D2.

ユーザが、作成画面P1においてオブジェクトB1の位置を変更するとともにオブジェクトB3におけるPLC3のデバイスメモリ上のアドレスを変更するように、画面ファイルを編集した場合について説明する。この場合において、編集前の画面ファイルを第1編集画面ファイル、編集後の画面ファイルを第2編集画面ファイルと称する。記憶部14は、画面ファイルとして、第1編集画面ファイル及び第2編集画面ファイルを記憶する。 A case where the user edits the screen file so as to change the position of the object B1 on the created screen P1 and change the address on the device memory of the PLC 3 in the object B3 will be described. In this case, the screen file before editing is called a first editing screen file, and the screen file after editing is called a second editing screen file. The storage unit 14 stores a first edit screen file and a second edit screen file as screen files.

このとき、図7の符号202の点線で囲まれた部分に示すように、設定情報I3においてオブジェクトB1に関する値のうち、位置を示す値が変更され、オブジェクトB3におけるデバイスメモリ上のアドレスが変更される。作成部112は、第2編集画面ファイルの設定情報I3が第1編集画面ファイルの設定情報I3と相違している1つ以上のオブジェクトの動作を定義する定義ファイルを相違定義ファイルD2として自動的に作成する。また、実行部113は、相違定義ファイルD2に定義されている1つ以上のオブジェクトの動作に対してのみシミュレーションを自動的に実行する。 At this time, as indicated by the dotted line 202 in FIG. 7, the value indicating the position of the object B1 in the setting information I3 is changed, and the address of the object B3 on the device memory is changed. be. The creating unit 112 automatically creates a definition file defining the operation of one or more objects whose setting information I3 of the second editing screen file differs from the setting information I3 of the first editing screen file as a difference definition file D2. create. Also, the execution unit 113 automatically executes a simulation only for actions of one or more objects defined in the difference definition file D2.

このように、画面ファイルの編集によって編集前から相違した設定情報I3に対応する1つ以上のオブジェクトの動作に対してのみシミュレーションが実行される。このため、シミュレーションの実行時間が短縮されることから、ユーザによるシミュレーションの作業時間を短縮することができる。 In this way, the simulation is performed only for the motion of one or more objects corresponding to the setting information I3 that differs from before editing due to the editing of the screen file. Therefore, since the execution time of the simulation is shortened, it is possible to shorten the simulation work time by the user.

〔実施形態3〕
本発明の実施形態3について、以下に説明する。なお、説明の便宜上、実施形態1及び2にて説明した部材と同じ機能を有する部材については、同じ符号を付記し、その説明を繰り返さない。図8は、本発明の実施形態3に係るPC1と、プログラマブル表示器2と、PLC3と、の構成の一例を示すブロック図である。図9は、図8に示すPC1と、プログラマブル表示器2と、PLC3と、の接続状態の一例を示す図である。PC1は、プログラマブル表示器2及びPLC3と接続されている。
[Embodiment 3]
A third embodiment of the present invention will be described below. For convenience of explanation, members having the same functions as the members explained in Embodiments 1 and 2 are denoted by the same reference numerals, and the explanation thereof will not be repeated. FIG. 8 is a block diagram showing an example of configurations of the PC 1, the programmable display 2, and the PLC 3 according to Embodiment 3 of the present invention. FIG. 9 is a diagram showing an example of a connection state among the PC 1, the programmable display 2, and the PLC 3 shown in FIG. PC1 is connected to programmable display 2 and PLC3.

<プログラマブル表示器2>
プログラマブル表示器2は、制御部21と、表示部22と、タッチパネル23と、ユーザメモリ24と、インタフェース部25と、を備える。プログラマブル表示器2は、PC1及びPLC3と接続されている。プログラマブル表示器2は、操作及び表示のための作成画面を表示することにより、プログラマブル表示器特有の操作機能と表示機能とを実現する専用コンピュータであり、HMI(Human Machine Interface)機器として使用される。
<Programmable display 2>
The programmable display device 2 includes a control section 21 , a display section 22 , a touch panel 23 , a user memory 24 and an interface section 25 . The programmable display 2 is connected with PC1 and PLC3. The programmable display 2 is a dedicated computer that realizes the operation function and display function unique to the programmable display by displaying a creation screen for operation and display, and is used as an HMI (Human Machine Interface) device. .

制御部21は、PLC3と接続されたデバイス4の状態を表示する動作や、タッチパネル23への操作に応じてデバイス4の状態を制御する動作を特定する。制御部21は、プログラマブル表示器2の各部を制御する。表示部22は、ユーザによって作成された作成画面や、デバイス4の状態を表示する。ユーザメモリ24は、ユーザによって作成された画面ファイルを記憶する。インタフェース部25は、プログラマブル表示器2がPC1及びPLC3と通信を行うための通信部である。 The control unit 21 specifies an operation to display the state of the device 4 connected to the PLC 3 and an operation to control the state of the device 4 according to the operation on the touch panel 23 . The control section 21 controls each section of the programmable display 2 . The display unit 22 displays the creation screen created by the user and the state of the device 4 . The user memory 24 stores screen files created by the user. The interface part 25 is a communication part for the programmable display 2 to communicate with the PC 1 and the PLC 3 .

PLC3は、ユーザによって作成されたシーケンスプログラムにしたがって、予め定められたスキャンタイム毎に、デバイス4の状態を読み出したり、デバイス4に制御指示を与えたりする制御装置である。デバイス4は、PLC3によって制御されるものや、センサ等の検出値を出力するものであり、1つ以上存在する。 The PLC 3 is a control device that reads the state of the device 4 and gives control instructions to the device 4 at each predetermined scan time according to a sequence program created by the user. The device 4 is controlled by the PLC 3 or outputs a detection value of a sensor or the like, and there are one or more of them.

図9に示すように、PC1の表示部12は、プログラマブル表示器2を制御するHMI制御ソフトの画面C1と、PLC3を制御するPLC制御ソフトの画面C2と、関連するデバイス4などの状態を示す画面S3と、を表示する。HMI制御ソフト及びPLC制御ソフトは、実行部113によって実行されている。画面C1には作成画面P1が表示されている。画面C2にはPLC制御ソフトによる処理内容が表示されている。画面S3にはHMI制御ソフト及びPLC制御ソフトに関連するデバイス4などの状態が表示されている。 As shown in FIG. 9, the display unit 12 of the PC 1 shows the screen C1 of the HMI control software that controls the programmable display 2, the screen C2 of the PLC control software that controls the PLC 3, and the states of the related devices 4 and the like. A screen S3 is displayed. The HMI control software and PLC control software are executed by the execution unit 113 . A creation screen P1 is displayed on the screen C1. The screen C2 displays the contents of processing by the PLC control software. The screen S3 displays the states of the device 4 and the like related to the HMI control software and PLC control software.

実行部113は、HMI制御ソフトを実行することにより、プログラマブル表示器2の表示部22に作成画面P1を表示させる制御を表示制御部111に実行させる。表示制御部111は、表示部22に作成画面P1を表示させるように、プログラマブル表示器2の制御部21に指示を出す。これにより、作成画面P1が表示部12の画面C1に加えて、表示部22にも表示される。また、実行部113は、PLC制御ソフトを実行することにより、PLC3を制御する。 By executing the HMI control software, the execution unit 113 causes the display control unit 111 to perform control for displaying the creation screen P1 on the display unit 22 of the programmable display device 2 . The display control unit 111 instructs the control unit 21 of the programmable display device 2 to display the creation screen P1 on the display unit 22 . Thereby, the creation screen P1 is displayed on the display section 22 in addition to the screen C1 of the display section 12 . Also, the execution unit 113 controls the PLC 3 by executing PLC control software.

実行部113は、記憶部14に記憶された定義ファイルD1にしたがって、1つ以上のオブジェクトの動作を表示部22に表示させる制御を表示制御部111に実行させるシミュレーションを自動的に実行する。よって、プログラマブル表示器2を用いてシミュレーションを自動的に実行することができる。表示制御部111は、表示部22に1つ以上のオブジェクトの動作を表示させるように、プログラマブル表示器2の制御部21に指示を出し、PLC3のデバイス値を変更する指示を出す。これにより、1つ以上のオブジェクトの動作が表示部12の画面C1及び表示部22に表示される。 The execution unit 113 automatically executes a simulation that causes the display control unit 111 to control the display unit 22 to display the motion of one or more objects according to the definition file D1 stored in the storage unit 14 . Therefore, a simulation can be automatically executed using the programmable display 2 . The display control unit 111 issues an instruction to the control unit 21 of the programmable display device 2 to display the operation of one or more objects on the display unit 22 and issues an instruction to change the device value of the PLC 3 . Thereby, the motion of one or more objects is displayed on the screen C<b>1 of the display unit 12 and the display unit 22 .

以上により、PC1は、プログラマブル表示器2及びPLC3を制御しながら、1つ以上のオブジェクトの動作のシミュレーションを実行することができる。これにより、PC1は、実際の1つ以上のオブジェクトの動作に近い状態で、1つ以上のオブジェクトの動作のシミュレーションを実行することができる。 As described above, the PC 1 can simulate the motion of one or more objects while controlling the programmable display 2 and the PLC 3 . This allows the PC 1 to simulate the motion of one or more objects in a state close to the actual motion of one or more objects.

〔実施形態4〕
本発明の実施形態4について、以下に説明する。なお、説明の便宜上、実施形態1~3にて説明した部材と同じ機能を有する部材については、同じ符号を付記し、その説明を繰り返さない。図10は、本発明の実施形態4に係るPC1と、プログラマブル表示器2と、の構成の一例を示す図である。図11は、図10に示すPC1にカメラ5が接続されている状態を示す図である。
[Embodiment 4]
Embodiment 4 of the present invention will be described below. For convenience of explanation, members having the same functions as the members explained in Embodiments 1 to 3 are denoted by the same reference numerals, and the explanation thereof will not be repeated. FIG. 10 is a diagram showing an example of configurations of the PC 1 and the programmable display device 2 according to Embodiment 4 of the present invention. FIG. 11 shows a state in which the camera 5 is connected to the PC 1 shown in FIG.

実施形態4において、コンバートされた後の画面ファイルを第1画面ファイルと称し、コンバートされる前の画面ファイルを第2画面ファイルと称する。PC1の記憶部14は、第1画面ファイルを記憶しており、プログラマブル表示器2のユーザメモリ24は、第2画面ファイルを記憶している。ユーザは、PC1を用いて、旧機種または他社製のプログラマブル表示器2に対応している第2画面ファイルをコンバートすることにより、自社製かつ最新機種のプログラマブル表示器2に対応している第1画面ファイルを作成する。これにより、第2画面ファイルは、第1画面ファイルとはファイル形式が異なる。 In the fourth embodiment, the screen file after conversion is called the first screen file, and the screen file before conversion is called the second screen file. The storage unit 14 of the PC 1 stores the first screen file, and the user memory 24 of the programmable display device 2 stores the second screen file. The user uses the PC 1 to convert the second screen file compatible with the old model or other company's programmable display 2, thereby converting the first screen file compatible with the in-house and latest model programmable display 2. Create a screen file. As a result, the second screen file has a different file format from the first screen file.

図10に示すように、PC1の表示部12は、HMIシミュレータの画面S1と、PLCシミュレータの画面SC1と、関連するデバイス4などの状態を示す画面S3と、を表示する。HMIシミュレータ及びPLCシミュレータは、実行部113によって実行されている。 As shown in FIG. 10, the display unit 12 of the PC 1 displays a screen S1 of the HMI simulator, a screen SC1 of the PLC simulator, and a screen S3 showing the states of the related devices 4 and the like. The HMI simulator and PLC simulator are executed by the execution unit 113 .

画面S1には、第1画面ファイルに含まれる作成画面P1が表示されている。画面SC1には、PLCシミュレータによる処理内容が表示されている。画面S3には、HMIシミュレータ及びPLCシミュレータに関連するデバイス4などの状態が表示されている。 A created screen P1 included in the first screen file is displayed on the screen S1. The screen SC1 displays the details of processing by the PLC simulator. The screen S3 displays the states of the device 4 related to the HMI simulator and the PLC simulator.

実行部113は、HMI制御ソフトを実行することにより、プログラマブル表示器2の表示部22に、第2画面ファイルに含まれる作成画面P1を表示させる制御を表示制御部111に実行させる。これと同時に、実行部113は、HMI制御ソフトを実行することにより、表示部12の画面S1に、第1画面ファイルに含まれる作成画面P1を表示させる制御を表示制御部111に実行させる。 By executing the HMI control software, the execution unit 113 causes the display control unit 111 to perform control for displaying the created screen P1 included in the second screen file on the display unit 22 of the programmable display device 2 . At the same time, the execution unit 113 executes the HMI control software to cause the display control unit 111 to display the created screen P1 included in the first screen file on the screen S1 of the display unit 12 .

表示制御部111は、第2画面ファイルに含まれる作成画面P1を表示部22に表示させるように、プログラマブル表示器2の制御部21に指示を出す。また、表示制御部111は、表示部12の画面S1に、第1画面ファイルに含まれる作成画面P1を表示させる。これにより、第2画面ファイルに含まれる作成画面P1が表示部22に表示されるとともに、第1画面ファイルに含まれる作成画面P1が表示部12の画面S1に表示される。 The display control unit 111 instructs the control unit 21 of the programmable display device 2 to display the creation screen P1 included in the second screen file on the display unit 22 . Further, the display control unit 111 causes the screen S1 of the display unit 12 to display the creation screen P1 included in the first screen file. As a result, the created screen P1 included in the second screen file is displayed on the display unit 22 and the created screen P1 included in the first screen file is displayed on the screen S1 of the display unit 12 .

実行部113は、記憶部14に記憶された定義ファイルD1にしたがって、第2画面ファイルに含まれる作成画面P1に含まれる1つ以上のオブジェクトの動作を表示部22に表示させる制御を表示制御部111に実行させるシミュレーションを自動的に実行する。表示制御部111は、表示部22に1つ以上のオブジェクトの動作を表示させるように、プログラマブル表示器2の制御部21に指示を出す。これにより、第2画面ファイルに含まれる作成画面P1に含まれる1つ以上のオブジェクトの動作が表示部22に表示される。 The execution unit 113 controls the display unit 22 to display the actions of one or more objects included in the creation screen P1 included in the second screen file according to the definition file D1 stored in the storage unit 14. 111 automatically runs the simulation. The display control unit 111 issues an instruction to the control unit 21 of the programmable display device 2 to cause the display unit 22 to display the motion of one or more objects. Thereby, the motion of one or more objects included in the created screen P1 included in the second screen file is displayed on the display unit 22 .

これと同時に、実行部113は、記憶部14に記憶された定義ファイルD1にしたがって、第1画面ファイルに含まれる作成画面P1に含まれる1つ以上のオブジェクトの動作を表示部12に表示させる制御を表示制御部111に実行させるシミュレーションを自動的に実行する。表示制御部111は、表示部12に1つ以上のオブジェクトの動作を表示させる。これにより、第1画面ファイルにおける1つ以上のオブジェクトの動作が表示部12に表示される。 At the same time, the execution unit 113 controls the display unit 12 to display the actions of one or more objects included in the creation screen P1 included in the first screen file according to the definition file D1 stored in the storage unit 14. is automatically executed by the display control unit 111 . The display control unit 111 causes the display unit 12 to display actions of one or more objects. Thereby, the actions of one or more objects in the first screen file are displayed on the display unit 12 .

また、実行部113は、表示部12の画面S1に表示された作成画面P1と、表示部22に表示された作成画面P1と、に対し、HMI制御ソフトにより画面の切り替えやユーザによるタッチパネル23への操作に応じた制御を実行する。実行部113は、HMI制御ソフトにより、PLCシミュレータによって再現されたPLC3の機能との通信によってデバイス値の読み書きを実行する。よって、表示部12の画面S1に表示された作成画面P1と、表示部22に表示された作成画面P1と、は、実行部113によって略同期しながらシミュレーションが実行される。 In addition, the execution unit 113 switches between the creation screen P1 displayed on the screen S1 of the display unit 12 and the creation screen P1 displayed on the display unit 22 by using the HMI control software, and the touch panel 23 by the user. Execute control according to the operation of The execution unit 113 executes reading and writing of device values by communicating with the functions of the PLC 3 reproduced by the PLC simulator using HMI control software. Therefore, the creation screen P1 displayed on the screen S1 of the display unit 12 and the creation screen P1 displayed on the display unit 22 are simulated by the execution unit 113 while being substantially synchronized.

これにより、ユーザは、第1作成画面に含まれる1つ以上のオブジェクトの動作と、第2作成画面に含まれる1つ以上のオブジェクトの動作と、の間に違いがあるか否かの確認作業において、オブジェクトの動作の表示を自動化することができる。これにより、ユーザは、表示部12の表示と表示部22の表示とを比較するだけで、オブジェクトの動作の確認作業を容易に行うことができる。 This allows the user to confirm whether or not there is a difference between the actions of one or more objects included in the first creation screen and the actions of one or more objects included in the second creation screen. , the display of object behavior can be automated. Accordingly, the user can easily confirm the operation of the object by simply comparing the display on the display unit 12 and the display on the display unit 22 .

なお、図11に示すように、PC1にカメラ5を接続して、カメラ5がプログラマブル表示器2の表示部22を撮影してもよい。この場合、カメラ5は撮影した表示部22の映像をPC1の制御部11に出力する。実行部113は、カメラ5から出力された表示部22の映像の作成画面P1と、表示部12に表示されている作成画面P1と、を比較する画像処理を実行する。 In addition, as shown in FIG. 11 , the camera 5 may be connected to the PC 1 and the camera 5 may photograph the display section 22 of the programmable display device 2 . In this case, the camera 5 outputs the captured image on the display section 22 to the control section 11 of the PC 1 . The execution unit 113 executes image processing for comparing the creation screen P1 of the image on the display unit 22 output from the camera 5 and the creation screen P1 displayed on the display unit 12 .

また、プログラマブル表示器2の制御部21が、表示部22に表示された作成画面P1をキャプチャし、キャプチャした作成画面P1をPC1の制御部11に出力してもよい。この場合、実行部113は、プログラマブル表示器2の制御部21から出力された表示部22の作成画面P1と、表示部12に表示されている作成画面P1と、を比較する画像処理を実行する。 Alternatively, the control unit 21 of the programmable display device 2 may capture the creation screen P1 displayed on the display unit 22 and output the captured creation screen P1 to the control unit 11 of the PC1. In this case, the execution unit 113 executes image processing for comparing the creation screen P1 of the display unit 22 output from the control unit 21 of the programmable display device 2 and the creation screen P1 displayed on the display unit 12. .

これにより、実行部113は、第1画面ファイルにおける1つ以上のオブジェクトの動作が正確であるか否かを判断する。実行部113は、第1画面ファイルにおける1つ以上のオブジェクトの動作が正確ではないと判定した場合、1つ以上のオブジェクトの動作が正確ではないことを示す内容を報知させる制御を図示しない報知部に実行させる。当該報知部は、1つ以上のオブジェクトの動作が正確ではないことを示す内容を報知する。上記報知部は、PC1に備えられ、音声を出力するスピーカ等の音声出力部である。 Accordingly, the execution unit 113 determines whether or not the motion of one or more objects in the first screen file is correct. When the executing unit 113 determines that the motion of one or more objects in the first screen file is not correct, the notifying unit (not shown) controls to notify the content indicating that the motion of the one or more objects is not correct. to execute. The reporting unit reports content indicating that the motion of one or more objects is not correct. The notification unit is provided in the PC 1 and is an audio output unit such as a speaker that outputs audio.

また、実行部113は、第1画面ファイルにおける1つ以上のオブジェクトの動作が正確ではないと判定した場合、アイコンや強調表示などの表示を表示制御部111に実行させてもよい。 Further, when the execution unit 113 determines that the motion of one or more objects in the first screen file is not correct, the execution unit 113 may cause the display control unit 111 to display icons, highlighting, and the like.

このように、第1画面ファイルにおける1つ以上のオブジェクトの動作が正確であるか否かの判断が実行部113によって自動的に実行される。このため、ユーザが、第1画面ファイルにおける1つ以上のオブジェクトの動作が正確であるか否かを確認する必要がなくなり、ユーザによる確認の作業時間を削減することができる。 In this manner, execution unit 113 automatically determines whether the motion of one or more objects in the first screen file is correct. This eliminates the need for the user to check whether or not the motion of one or more objects in the first screen file is correct, thereby reducing the user's checking work time.

〔ソフトウェアによる実現例〕
PC1の機能は、PC1としてコンピュータを機能させるためのプログラムであって、PC1の各制御ブロック(特に制御部11に含まれる各部)としてコンピュータを機能させるためのプログラムにより実現することができる。
[Example of realization by software]
The function of the PC 1 is a program for causing a computer to function as the PC 1, and can be realized by a program for causing the computer to function as each control block of the PC 1 (especially each part included in the control unit 11).

この場合、PC1は、上記プログラムを実行するためのハードウェアとして、1つ以上の制御装置(例えばプロセッサ)と1つ以上の記憶装置(例えばメモリ)を有するコンピュータを備えている。この制御装置と記憶装置により上記プログラムを実行することにより、上記各実施形態で説明した各機能が実現される。 In this case, the PC 1 comprises a computer having one or more control devices (eg processor) and one or more storage devices (eg memory) as hardware for executing the above program. Each function described in each of the above embodiments is realized by executing the above program using the control device and the storage device.

上記プログラムは、一時的ではなく、コンピュータ読み取り可能な、1または1つ以上の記録媒体に記録されていてもよい。この記録媒体は、PC1が備えていてもよいし、備えていなくてもよい。後者の場合、上記プログラムは、有線または無線の任意の伝送媒体を介してPC1に供給されてもよい。 The program may be recorded on one or more computer-readable recording media, not temporary. This recording medium may or may not be provided in the PC1. In the latter case, the program may be supplied to the PC 1 via any wired or wireless transmission medium.

また、上記各制御ブロックの機能の一部または全部は、論理回路により実現することも可能である。例えば、上記各制御ブロックとして機能する論理回路が形成された集積回路も本発明の範疇に含まれる。この他にも、例えば量子コンピュータにより上記各制御ブロックの機能を実現することも可能である。 Also, part or all of the functions of the above control blocks can be realized by logic circuits. For example, integrated circuits in which logic circuits functioning as the control blocks described above are formed are also included in the scope of the present invention. In addition, it is also possible to implement the functions of the control blocks described above by, for example, a quantum computer.

また、上記各実施形態で説明した各処理は、AI(Artificial Intelligence:人工知能)に実行させてもよい。この場合、AIは上記制御装置で動作するものであってもよいし、他の装置(例えばエッジコンピュータまたはクラウドサーバ等)で動作するものであってもよい。 Further, each process described in each of the above embodiments may be executed by AI (Artificial Intelligence). In this case, the AI may operate on the control device, or may operate on another device (for example, an edge computer or a cloud server).

本発明は上述した各実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、異なる実施形態にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。 The present invention is not limited to the above-described embodiments, but can be modified in various ways within the scope of the claims, and can be obtained by appropriately combining technical means disclosed in different embodiments. is also included in the technical scope of the present invention.

1 PC(シミュレーション装置)
2 プログラマブル表示器
12 表示部(第1表示部)
22 表示部(第2表示部)
14 記憶部
111 表示制御部
112 作成部
113 実行部
B1~B5 オブジェクト
D1 定義ファイル
D2 相違定義ファイル
I1~I3 設定情報
P1、P2 作成画面
1 PC (simulation device)
2 programmable display 12 display unit (first display unit)
22 display unit (second display unit)
14 storage unit 111 display control unit 112 creation unit 113 execution unit B1 to B5 object D1 definition file D2 difference definition file I1 to I3 setting information P1, P2 creation screen

Claims (8)

プログラマブル表示器に表示される表示画面として作成され、1つ以上のオブジェクトを含む作成画面を表示部に表示させる表示制御部と、
前記1つ以上のオブジェクトの動作を定義する定義ファイルにしたがって、前記1つ以上のオブジェクトの動作を前記表示部に表示させる制御を前記表示制御部に実行させるシミュレーションを自動的に実行する実行部と、を備えることを特徴とするシミュレーション装置。
A display control unit for displaying a created screen including one or more objects on a display unit, which is created as a display screen to be displayed on a programmable display;
an execution unit that automatically executes a simulation that causes the display control unit to perform control to display the operation of the one or more objects on the display unit according to a definition file that defines the operation of the one or more objects; A simulation device comprising:
前記作成画面を含み、前記1つ以上のオブジェクトに、当該オブジェクトの動作に関する設定情報が設定された画面ファイルを記憶する記憶部と、
前記記憶部に記憶された前記画面ファイルから、前記設定情報を読み出すことにより、前記定義ファイルを自動的に作成する作成部と、をさらに備えることを特徴とする請求項1に記載のシミュレーション装置。
a storage unit that stores a screen file that includes the created screen and in which the one or more objects are set with setting information related to actions of the objects;
2. The simulation apparatus according to claim 1, further comprising a creating unit that automatically creates the definition file by reading the setting information from the screen file stored in the storage unit.
前記実行部は、前記定義ファイルにしたがって、前記1つ以上のオブジェクトの動作を前記プログラマブル表示器の前記表示部に表示させる制御を前記表示制御部に実行させる前記シミュレーションを自動的に実行することを特徴とする請求項1または2に記載のシミュレーション装置。 The execution unit automatically executes the simulation that causes the display control unit to control to display the operation of the one or more objects on the display unit of the programmable display unit according to the definition file. 3. The simulation device according to claim 1 or 2. 前記定義ファイルは、前記1つ以上のオブジェクトの動作に対応して予め設定された数値範囲について、当該数値範囲外の異常値の情報を含み、
前記実行部は、前記異常値の情報に対応する前記オブジェクトの動作を前記表示部に表示させる制御を前記表示制御部に実行させることを特徴とする請求項1から3のいずれか1項に記載のシミュレーション装置。
The definition file includes information on abnormal values outside the numerical range preset for the operation of the one or more objects,
4. The display control unit according to claim 1, wherein the execution unit causes the display unit to display an action of the object corresponding to the information on the abnormal value. simulation equipment.
前記記憶部は、前記画面ファイルとして、編集前の第1編集画面ファイルと、編集後の第2編集画面ファイルと、を記憶し、
前記作成部は、前記第2編集画面ファイルの前記設定情報が前記第1編集画面ファイルの前記設定情報と相違している前記1つ以上のオブジェクトの動作を定義する前記定義ファイルを相違定義ファイルとして自動的に作成し、
前記実行部は、前記相違定義ファイルに定義されている前記1つ以上のオブジェクトの動作に対してのみ前記シミュレーションを自動的に実行することを特徴とする請求項2に記載のシミュレーション装置。
The storage unit stores, as the screen files, a first editing screen file before editing and a second editing screen file after editing,
The creation unit defines the definition file defining the operation of the one or more objects in which the setting information of the second editing screen file is different from the setting information of the first editing screen file as a difference definition file. automatically create
3. The simulation apparatus according to claim 2, wherein said execution unit automatically executes said simulation only for actions of said one or more objects defined in said difference definition file.
前記表示部として、前記シミュレーション装置の第1表示部と、前記プログラマブル表示器の第2表示部と、が設けられ、
前記シミュレーション装置は、前記作成画面としての第1作成画面を含む第1画面ファイルを記憶する記憶部を備え、
前記実行部は、
前記定義ファイルにしたがって、前記第1作成画面に含まれる前記1つ以上のオブジェクトの動作を前記第1表示部に表示させる制御と、
前記定義ファイルにしたがって、前記第1画面ファイルとはファイル形式が異なる第2画面ファイルに含まれる、前記作成画面としての第2作成画面に含まれる前記1つ以上のオブジェクトの動作を前記第2表示部に表示させる制御と、を前記表示制御部に実行させる前記シミュレーションを自動的に実行することを特徴とする請求項1に記載のシミュレーション装置。
As the display unit, a first display unit of the simulation device and a second display unit of the programmable display are provided,
The simulation device includes a storage unit that stores a first screen file including a first creation screen as the creation screen,
The execution unit
a control for displaying the actions of the one or more objects included in the first creation screen on the first display unit according to the definition file;
According to the definition file, the operation of the one or more objects included in the second creation screen as the creation screen, which is included in a second screen file having a file format different from that of the first screen file, is displayed in the second display. 2. The simulation apparatus according to claim 1, wherein the simulation is automatically performed by causing the display control unit to perform control of display on the display unit.
前記実行部は、前記シミュレーションを実行している前記オブジェクトを、他のオブジェクトに比べて強調して前記表示部に表示させる制御を前記表示制御部に実行させることを特徴とする請求項1から6のいずれか1項に記載のシミュレーション装置。 7. The execution unit controls the display control unit to display the object on which the simulation is being executed in a more emphasized manner than other objects on the display unit. The simulation device according to any one of 1. 前記定義ファイルは、前記オブジェクトの動作に対応する前記シミュレーションの開始時間の情報、または、複数の前記オブジェクトそれぞれの動作に対応する前記シミュレーションの実行間隔の情報を含み、
前記実行部は、前記定義ファイルに含まれる前記開始時間の情報または前記実行間隔の情報にしたがって、前記シミュレーションを自動的に実行することを特徴とする請求項1から7のいずれか1項に記載のシミュレーション装置。
The definition file includes information on the start time of the simulation corresponding to the motion of the object, or information on the execution interval of the simulation corresponding to the motion of each of the plurality of objects,
8. The execution unit according to any one of claims 1 to 7, wherein the execution unit automatically executes the simulation according to the start time information or the execution interval information included in the definition file. simulation equipment.
JP2021042680A 2021-03-16 2021-03-16 simulation device Pending JP2022142493A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021042680A JP2022142493A (en) 2021-03-16 2021-03-16 simulation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021042680A JP2022142493A (en) 2021-03-16 2021-03-16 simulation device

Publications (1)

Publication Number Publication Date
JP2022142493A true JP2022142493A (en) 2022-09-30

Family

ID=83426270

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021042680A Pending JP2022142493A (en) 2021-03-16 2021-03-16 simulation device

Country Status (1)

Country Link
JP (1) JP2022142493A (en)

Similar Documents

Publication Publication Date Title
JP4462449B2 (en) Control system setting device
US10339255B2 (en) Program development support device, non-transitory storage medium storing thereon computer-readable program development support program, and program development support method
WO2010017835A1 (en) A system and a method for off-line programming of an industrial robot
JP2004303217A (en) Displaying/editing device, method for displaying, and program product
JP2015026347A (en) Image creation system
JP5498446B2 (en) Ladder program creation device and ladder program creation method
KR102198204B1 (en) Simulation device
JP5921765B2 (en) Program graph display device, program graph display method, and program graph display program
JP5026925B2 (en) Control program creation device and control program creation method
JP6889510B2 (en) Programming equipment and programs
JP2022142493A (en) simulation device
JP4476223B2 (en) Screen data creation device, screen data editing method, and screen data editing program
JP2015187860A (en) Information processor, information processing method, and program
JP6794668B2 (en) Programming device
KR101622402B1 (en) Hmi apparatus capable of providing gui-based hmi screen and method for providing gui-based hmi screen
JP2008165324A (en) Program creation support device
JP5205988B2 (en) PLC global variable definition method
JP6566151B2 (en) System design support apparatus and system design support method
JP2021082031A (en) Program creation assistance device
JP2006163657A (en) Playback simulator
JP4609655B2 (en) Attached data generator for program parts
KR101886986B1 (en) Engineering tool program and engineering tool
JP2020098375A (en) Monitoring screen generation device and monitoring screen generation method
JP2003223204A (en) Programming method of programmable controller, system thereof and recording medium thereof
US11841691B2 (en) Information processing device, information processing method, recording medium, and method of manufacturing product

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20240304