JP7797298B2 - Creation device and programmable display - Google Patents
Creation device and programmable displayInfo
- Publication number
- JP7797298B2 JP7797298B2 JP2022070152A JP2022070152A JP7797298B2 JP 7797298 B2 JP7797298 B2 JP 7797298B2 JP 2022070152 A JP2022070152 A JP 2022070152A JP 2022070152 A JP2022070152 A JP 2022070152A JP 7797298 B2 JP7797298 B2 JP 7797298B2
- Authority
- JP
- Japan
- Prior art keywords
- information
- display
- generation unit
- slave
- reference information
- 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.)
- Active
Links
Landscapes
- Controls And Circuits For Display Device (AREA)
- Programmable Controllers (AREA)
Description
本発明は、作成装置及びプログラマブル表示器に関する。 The present invention relates to a creation device and a programmable display.
特許文献1に開示の作画装置は、ユーザがオブジェクト追加などの選択操作を行うことにより、複合オブジェクト編集画面内に、複合オブジェクトにて使用する構成オブジェクトを配置する。また、当該作画装置は、複合オブジェクトのプロパティと構成オブジェクトのプロパティとの割り当てを行い、複合オブジェクトで使用するプロパティの種別とプロパティ名とを定義する。さらに、上記作画装置は、個々の複合オブジェクトのプロパティに対し、構成オブジェクトのプロパティを紐づける。 The drawing device disclosed in Patent Document 1 places the constituent objects used in a composite object on a composite object editing screen when the user performs selection operations such as adding an object. The drawing device also assigns the properties of the composite object to the properties of the constituent objects, and defines the types and property names of the properties used in the composite object. Furthermore, the drawing device associates the properties of each composite object with the properties of the constituent objects.
特許文献1に開示の作画装置では、複合オブジェクトが複製される場合、同じ情報が複数生成される。このため、プログラマブル表示器が、作画装置によって作成された作画データを用いて画面を表示する場合、プログラマブル表示器について処理速度が遅くなり、多くの記憶領域が使用されるという問題がある。特にプログラマブル表示器を動作させるプログラムが、オブジェクト指向プログラミングによって作成されている場合は、このような問題がより懸念される。 When a composite object is duplicated in the drawing device disclosed in Patent Document 1, the same information is generated multiple times. Therefore, when a programmable display displays a screen using drawing data created by the drawing device, the processing speed of the programmable display slows down and a large amount of storage space is used. This problem is particularly concerning when the program that operates the programmable display is created using object-oriented programming.
本発明の一態様は、プログラマブル表示器が、複合オブジェクトを有する画面を規定するプロジェクトを用いて画面を表示する場合において、プログラマブル表示器について処理速度を向上するとともに、記憶領域を削減することを目的とする。 One aspect of the present invention aims to improve the processing speed and reduce storage space required for a programmable display when the programmable display displays a screen using a project that defines a screen having a composite object.
上記の課題を解決するために、本発明の一態様に係る作成装置は、プログラマブル表示器の表示に用いられる、オブジェクトを少なくとも1つ含む複合オブジェクトを有する画面を規定するプロジェクトを作成する作成装置であって、前記複合オブジェクトに含まれる前記オブジェクトのうち第1オブジェクトを表示するための第1表示情報を含むマスタデータを生成するマスタ生成部と、前記複合オブジェクトに含まれる前記オブジェクトのうち、前記第1オブジェクトとは異なる第2オブジェクトを表示するための第2表示情報を特定する特定部と、前記特定部によって特定された前記第2表示情報と、前記第1表示情報を参照するための参照情報と、を含むスレーブデータを生成するスレーブ生成部と、を備える。 In order to solve the above problem, one aspect of the present invention provides a creation device that creates a project specifying a screen having a composite object containing at least one object, which is used for display on a programmable display device, and includes: a master generation unit that generates master data including first display information for displaying a first object among the objects included in the composite object; an identification unit that identifies second display information for displaying a second object, different from the first object, among the objects included in the composite object; and a slave generation unit that generates slave data including the second display information identified by the identification unit and reference information for referencing the first display information.
スレーブ生成部は、特定部によって特定された第2表示情報と、第1表示情報を参照するための参照情報と、を含むスレーブデータを生成する。このため、複数のスレーブデータが生成される場合、各スレーブデータは、マスタデータが含む第1表示情報を参照するものとなる。よって、複合オブジェクトが複製されるときに同じ第1表示情報が複数生成されることがなく、プログラマブル表示器がスレーブデータを用いる場合、プログラマブル表示器について処理速度を向上でき、記憶領域を削減できる。 The slave generation unit generates slave data that includes the second display information identified by the identification unit and reference information for referencing the first display information. Therefore, when multiple slave data are generated, each slave data references the first display information included in the master data. Therefore, when a composite object is duplicated, multiple copies of the same first display information are not generated. When a programmable display device uses the slave data, the processing speed of the programmable display device can be improved and storage space can be reduced.
前記第1表示情報は、前記第1オブジェクトの属性を示す第1属性情報を含み、前記第2表示情報は、前記第2オブジェクトの属性を示す第2属性情報を含み、前記参照情報は、前記第1属性情報を参照するための情報であってもよい。マスタデータには、第1属性情報が含まれ、スレーブデータには、第1属性情報を参照するための参照情報が含まれる。これにより、同じ第1属性情報を複数記憶し、生成する必要がなくなる。 The first display information may include first attribute information indicating attributes of the first object, the second display information may include second attribute information indicating attributes of the second object, and the reference information may be information for referencing the first attribute information. The master data includes the first attribute information, and the slave data includes reference information for referencing the first attribute information. This eliminates the need to store and generate the same first attribute information multiple times.
前記第1表示情報は、前記第1オブジェクト毎に、前記第1オブジェクトの属性を示す第1属性情報を含み、前記第2表示情報は、前記第2オブジェクトの属性を示す第2属性情報を含み、前記参照情報は、前記第1オブジェクト毎に前記第1属性情報を参照するための情報であってもよい。マスタデータには、第1オブジェクト毎に第1属性情報が含まれ、スレーブデータには、第1オブジェクト毎に第1属性情報を参照するための参照情報が含まれる。これにより、参照情報を削減することができる。 The first display information may include, for each first object, first attribute information indicating attributes of the first object, the second display information may include second attribute information indicating attributes of the second object, and the reference information may be information for referencing the first attribute information for each first object. The master data includes first attribute information for each first object, and the slave data includes reference information for referencing the first attribute information for each first object. This allows for a reduction in reference information.
前記参照情報は、前記第1表示情報に基づいて生成されたハッシュ値であってもよい。参照情報は、第1表示情報に基づいて生成されたハッシュ値であるため、参照情報の管理が容易または不要となる。 The reference information may be a hash value generated based on the first display information. Because the reference information is a hash value generated based on the first display information, management of the reference information is easy or unnecessary.
前記第1表示情報は、前記スレーブデータが編集される場合において変更不可の情報であってもよい。ユーザがスレーブデータを編集する場合、ユーザが誤って参照先の第1表示情報を編集してしまうという誤操作を防ぐことができる。 The first display information may be information that cannot be changed when the slave data is edited. When a user edits slave data, this can prevent the user from accidentally editing the referenced first display information.
本発明の一態様に係るプログラマブル表示器は、前記作成装置によって作成された前記プロジェクトにより規定された前記画面を表示する前記プログラマブル表示器であって、前記マスタデータから前記第1表示情報の第1インスタンスを生成する第1生成部と、前記スレーブデータから、前記第2表示情報の第2インスタンスと、前記第1生成部によって生成された前記第1インスタンスを参照するインスタンス参照情報と、を生成する第2生成部と、を備えてもよい。 A programmable display according to one aspect of the present invention is a programmable display that displays the screen defined by the project created by the creation device, and may include a first generation unit that generates a first instance of the first display information from the master data, and a second generation unit that generates, from the slave data, a second instance of the second display information and instance reference information that references the first instance generated by the first generation unit.
第2生成部は、第2表示情報の第2インスタンスと、第1生成部によって生成された第1インスタンスを参照するインスタンス参照情報と、を生成する。このため、複数のインスタンス参照情報が生成される場合、各インスタンス参照情報は、第1インスタンスを参照し実行するものとなる。よって、同じ第1インスタンスが複数生成されることがなく、プログラマブル表示器がスレーブデータを用いて複合オブジェクトを表示する場合、プログラマブル表示器について処理速度を向上でき、記憶領域を削減できる。 The second generation unit generates a second instance of the second display information and instance reference information that references the first instance generated by the first generation unit. Therefore, when multiple instances of instance reference information are generated, each instance reference information references and executes the first instance. Therefore, multiple identical first instances are not generated, and when the programmable display device displays a composite object using slave data, the processing speed of the programmable display device can be improved and storage space can be reduced.
前記プログラマブル表示器は、前記第2生成部が複数の前記第2インスタンスを生成した場合、複数の前記第2インスタンスを1つの状態情報として管理する管理部と、前記管理部によって管理された前記1つの状態情報が変更されたことに基づき、複数の前記第2インスタンスの全体の表示を変更する表示制御部と、を備えてもよい。表示制御部は、複数の第2インスタンスの全体の表示を変更するため、ユーザが認識し易い画面とすることができる。 The programmable display may include a management unit that manages the second instances as a single piece of state information when the second generation unit generates multiple second instances, and a display control unit that changes the overall display of the multiple second instances based on a change to the single piece of state information managed by the management unit. Because the display control unit changes the overall display of the multiple second instances, it can provide a screen that is easy for the user to recognize.
本発明の一態様によれば、プログラマブル表示器について処理速度を向上でき、記憶領域を削減できる。 One aspect of the present invention can improve the processing speed of programmable displays and reduce storage space requirements.
〔実施形態1〕
パーソナルコンピュータ(以降、単に「PC」と称する)1と、プログラマブル表示器2と、の構成について図1に基づいて説明する。図1は、本発明の実施形態1に係るPC1と、プログラマブル表示器2と、の構成を示すブロック図である。
[Embodiment 1]
The configurations of a personal computer (hereinafter simply referred to as "PC") 1 and a programmable display device 2 will be described with reference to Fig. 1. Fig. 1 is a block diagram showing the configurations of the PC 1 and the programmable display device 2 according to a first embodiment of the present invention.
(PC1)
PC1は、図1に示すように、制御部10と、記憶部20と、インタフェース部30と、表示部40と、操作部50と、を備える。PC1は、プログラマブル表示器2と通信可能に接続される。PC1は、プログラマブル表示器2の表示に用いられるプロジェクトを作成する作成装置の一例である。プロジェクトは、オブジェクトを少なくとも1つ含む複合オブジェクトを有する画面を規定する。
(PC1)
1, the PC 1 includes a control unit 10, a storage unit 20, an interface unit 30, a display unit 40, and an operation unit 50. The PC 1 is communicably connected to the programmable display device 2. The PC 1 is an example of a creation device that creates a project used for displaying the programmable display device 2. The project defines a screen having a composite object that includes at least one object.
制御部10は、マスタ生成部11と、特定部12と、スレーブ生成部13と、を備える。制御部10は、PC1の各部を制御するとともに、プロジェクトを作成する。マスタ生成部11、特定部12及びスレーブ生成部13の処理の詳細については後述する。記憶部20は、制御部10によって作成されたプロジェクトを記憶する。 The control unit 10 includes a master generation unit 11, an identification unit 12, and a slave generation unit 13. The control unit 10 controls each unit of the PC 1 and creates projects. Details of the processing of the master generation unit 11, identification unit 12, and slave generation unit 13 will be described later. The storage unit 20 stores projects created by the control unit 10.
インタフェース部30は、PC1がプログラマブル表示器2と通信を行うための通信部である。表示部40は、PC1での処理内容を表示するモニタである。操作部50は、例えば、ユーザがデータの入力を行うためのキーボードやユーザが操作を行うためのマウスである。 The interface unit 30 is a communication unit that enables the PC 1 to communicate with the programmable display device 2. The display unit 40 is a monitor that displays the processing contents of the PC 1. The operation unit 50 is, for example, a keyboard that allows the user to input data and a mouse that allows the user to perform operations.
(プログラマブル表示器2)
プログラマブル表示器2は、図1に示すように、制御部21と、表示パネル22と、タッチパネル23と、ユーザメモリ24と、インタフェース部25,26と、を備える。プログラマブル表示器2は、外部機器としてのPLC(プログラマブルロジックコントローラ)3と接続されている。
(Programmable Display 2)
1, the programmable display device 2 includes a control unit 21, a display panel 22, a touch panel 23, a user memory 24, and interface units 25 and 26. The programmable display device 2 is connected to a PLC (programmable logic controller) 3 as an external device.
プログラマブル表示器2は、通信ケーブルを介してPLC3と接続されることにより、PLC3との間で通信を行う。プログラマブル表示器2は、操作及び表示のための画面を表示することにより、プログラマブル表示器特有の操作機能と表示機能とを実現する専用コンピュータであり、HMI(Human Machine Interface)機器として使用される。 The programmable display unit 2 is connected to the PLC 3 via a communication cable, and communicates with the PLC 3. The programmable display unit 2 is a dedicated computer that displays screens for operation and display, thereby realizing the operation and display functions unique to programmable displays, and is used as an HMI (Human Machine Interface) device.
制御部21は、PLC3と接続されたデバイス4の状態を表示する動作や、タッチパネル23への操作に応じてデバイス4の状態を制御する動作を特定する。制御部21は、第1生成部211と、第2生成部212と、管理部213と、表示制御部214と、を備える。第1生成部211、第2生成部212、管理部213及び表示制御部214の処理の詳細については後述する。 The control unit 21 determines the operation of displaying the status of the device 4 connected to the PLC 3 and the operation of controlling the status of the device 4 in response to operations on the touch panel 23. The control unit 21 includes a first generation unit 211, a second generation unit 212, a management unit 213, and a display control unit 214. Details of the processing of the first generation unit 211, the second generation unit 212, the management unit 213, and the display control unit 214 will be described later.
表示パネル22は、ユーザによって作成された画面や、デバイス4の状態を表示する。ユーザメモリ24は、PC1によって作成された画面を、関連する複数の画面のまとまりとしてプロジェクトというファイル形式で記憶する。プロジェクトは、PC1の制御部10によって作成されて、PC1からダウンロードされる。 The display panel 22 displays screens created by the user and the status of the device 4. The user memory 24 stores screens created by the PC 1 as a group of related screens in a file format called a project. Projects are created by the control unit 10 of the PC 1 and downloaded from the PC 1.
インタフェース部25は、プログラマブル表示器2がPC1と通信を行うための通信部である。インタフェース部26は、プログラマブル表示器2がPLC3と通信を行うための通信部である。 The interface unit 25 is a communication unit that allows the programmable display device 2 to communicate with the PC 1. The interface unit 26 is a communication unit that allows the programmable display device 2 to communicate with the PLC 3.
PLC3は、ユーザによって作成されたシーケンスプログラムにしたがって、予め定められたスキャンタイム毎に、デバイス4の状態を読み出したり、デバイス4に制御指示を与えたりする制御装置である。 PLC3 is a control device that reads the status of device 4 and issues control instructions to device 4 at predetermined scan times according to a sequence program created by the user.
(複合オブジェクト)
図2は、図1に示すPC1によって作成されるプロジェクトが規定する画面に含まれる複合オブジェクトの一例としての数値表示器NDを示す図である。図2の(A)に示すように、数値表示器NDは、グリッドGLと、四角形Q1と、文字表示CHと、四角形Q2と、多角形TR1と、四角形Q3と、多角形TR2と、を含む。グリッドGL、四角形Q1、文字表示CH、四角形Q2、多角形TR1、四角形Q3及び多角形TR2は、オブジェクトの一例としての部品である。
(complex object)
Fig. 2 shows a numeric display ND as an example of a composite object included in a screen defined by a project created by PC1 shown in Fig. 1. As shown in Fig. 2A, the numeric display ND includes a grid GL, a rectangle Q1, a character display CH, a rectangle Q2, a polygon TR1, a rectangle Q3, and a polygon TR2. The grid GL, the rectangle Q1, the character display CH, the rectangle Q2, the polygon TR1, the rectangle Q3, and the polygon TR2 are parts as examples of objects.
グリッドGLは、数値表示器NDが配置される領域を2行×3列の領域に分割する不可視の線である。四角形Q1は、グリッドGLによって分割された領域のうち、左側の2行×2列の領域に配置される四角形である。文字表示CHは、グリッドGLによって分割された領域のうち、左側の2行×2列の領域に配置される文字表示である。 The grid GL is an invisible line that divides the area in which the numeric display ND is placed into two rows and three columns. The rectangle Q1 is a rectangle located in the left-hand area of two rows and two columns of the area divided by the grid GL. The character display CH is a character display located in the left-hand area of two rows and two columns of the area divided by the grid GL.
四角形Q2は、グリッドGLによって分割された領域のうち、1行3列目の領域に配置される四角形である。多角形TR1は、グリッドGLによって分割された領域のうち、1行3列目の領域に、頂点が上になるように配置される正三角形である。四角形Q3は、グリッドGLによって分割された領域のうち、2行3列目の領域に配置される四角形である。多角形TR2は、グリッドGLによって分割された領域のうち、2行3列目の領域に、頂点が下になるように配置される正三角形である。 Rectangle Q2 is a quadrangle located in the first row, third column area of the area divided by grid GL. Polygon TR1 is an equilateral triangle located in the first row, third column area of the area divided by grid GL, with its vertex facing up. Rectangle Q3 is a quadrangle located in the second row, third column area of the area divided by grid GL. Polygon TR2 is an equilateral triangle located in the second row, third column area of the area divided by grid GL, with its vertex facing down.
(マスタデータ)
図3は、図1に示すPC1によって作成されるプロジェクトに含まれるマスタデータMD及び複数のスレーブデータSD-1~SD-Nを示す図である。マスタデータMDはリストを含み、リストは複数の参照情報及び複数の値を有する。リストにおいて複数の参照情報と複数の値とが対応付けられている。
(master data)
Fig. 3 is a diagram showing master data MD and multiple slave data SD-1 to SD-N included in a project created by PC1 shown in Fig. 1. The master data MD includes a list, and the list has multiple pieces of reference information and multiple values. In the list, multiple pieces of reference information are associated with multiple values.
リストにおける複数の参照情報と複数の値との対応関係は、図3に示す通りである。リストが有する複数の値は、スレーブデータSD-1~SD-Nが含む複数の部品のプロパティ間で共通して用いられる。また、リストが有する複数の値のそれぞれは、プログラマブル表示器2により生成されるインスタンス(実体)などのデータのまとまりを意味する。 The correspondence between the multiple reference information and multiple values in the list is as shown in Figure 3. The multiple values in the list are used in common among the properties of the multiple components included in the slave data SD-1 to SD-N. Furthermore, each of the multiple values in the list represents a collection of data such as an instance (entity) generated by the programmable display device 2.
マスタデータMDのリストが有する複数の値は、第1オブジェクトを表示するための第1表示情報の一例である。第1オブジェクトについては後述する。また、マスタデータMDのリストが有する複数の値は、第1オブジェクトの属性を示す第1属性情報である。つまり、第1表示情報は第1属性情報を含む。なお、第1表示情報は、第1属性情報以外に、第1オブジェクトの実体を示す第1実体情報を含んでもよい。 The multiple values contained in the list of master data MD are an example of first display information for displaying a first object. First objects will be described later. The multiple values contained in the list of master data MD are first attribute information indicating the attributes of the first object. In other words, the first display information includes the first attribute information. Note that the first display information may also include, in addition to the first attribute information, first entity information indicating the entity of the first object.
値V_RWは、グリッドによって2行の領域に分割されることを示す値であり、値V_CLは、グリッドによって3列の領域に分割されることを示す値である。値V_LC1は、グリッドによって分割される領域のうち、1行1列目の領域の位置を示す値であり、値V_BDは、境界色または境界線の色を示す値である。 The value V_RW indicates that the grid divides the area into two rows, and the value V_CL indicates that the grid divides the area into three columns. The value V_LC1 indicates the position of the first row and first column of the areas divided by the grid, and the value V_BD indicates the border color or boundary line color.
値V_FC1は水色を示す値であり、値V_FC2は白色を示す値である。値V_LC2は、グリッドによって分割される領域のうち、1行3列目の領域の位置を示す値であり、値V_FC3は黄色を示す値である。 The value V_FC1 indicates light blue, and the value V_FC2 indicates white. The value V_LC2 indicates the position of the area in the first row and third column of the area divided by the grid, and the value V_FC3 indicates yellow.
値V_OP1は、数値を1つ加算させる関数を示す値であり、値V_DT1は、頂点が上を向く正三角形を示す値である。値V_LC3は、グリッドによって分割される領域のうち、2行3列目の領域の位置を示す値であり、値V_OP2は、数値を1つ減算させる関数を示す値である。値V_DT2は、頂点が下を向く正三角形を示す値である。 The value V_OP1 indicates a function that adds one number, and the value V_DT1 indicates an equilateral triangle with its vertex pointing up. The value V_LC3 indicates the position of the second row, third column area among the areas divided by the grid, and the value V_OP2 indicates a function that subtracts one number. The value V_DT2 indicates an equilateral triangle with its vertex pointing down.
(スレーブデータ)
スレーブデータSD-1は、複数の部品に対応する複数の値を含む。スレーブデータSD-1において複数の部品の名前と複数の値とが対応付けられている。スレーブデータSD-1における複数の部品の名前と複数の値との対応関係は、図3に示す通りである。
(Slave data)
The slave data SD-1 includes a plurality of values corresponding to a plurality of parts. In the slave data SD-1, the names of the parts are associated with a plurality of values. The correspondence between the names of the parts and the values in the slave data SD-1 is as shown in FIG. 3.
値GL-1は、グリッドGLの実体を示す値であり、値Q1-1は、四角形Q1の実体を示す値である。値CH-1は、文字表示CHの実体を示す値であり、値Q2-1は、四角形Q2の実体を示す値である。値TR1-1は、多角形TR1の実体を示す値であり、値Q3-1は、四角形Q3の実体を示す値である。値TR2-1は、多角形TR2の実体を示す値である。 The value GL-1 indicates the entity of the grid GL, and the value Q1-1 indicates the entity of the rectangle Q1. The value CH-1 indicates the entity of the character display CH, and the value Q2-1 indicates the entity of the rectangle Q2. The value TR1-1 indicates the entity of the polygon TR1, and the value Q3-1 indicates the entity of the rectangle Q3. The value TR2-1 indicates the entity of the polygon TR2.
また、スレーブデータSD-1は、複数の部品のプロパティと公開プロパティとを含む。文字表示CHのプロパティを除く複数の部品のプロパティは、複数の名前及び複数の参照情報を有する。文字表示CHのプロパティを除く複数の部品のプロパティにおいて、複数の名前と複数の参照情報とが対応付けられて記憶されている。 Slave data SD-1 also includes properties and public properties for multiple parts. The properties of the multiple parts, excluding the text display CH property, have multiple names and multiple pieces of reference information. In the properties of the multiple parts, excluding the text display CH property, multiple names and multiple pieces of reference information are stored in association with each other.
文字表示CHのプロパティは、複数の名前と、複数の参照情報と、1つの値と、を有する。文字表示CHのプロパティにおいて、複数の名前と、複数の参照情報または1つの値と、が対応付けられている。公開プロパティは、1つの名前及び1つの値を有する。公開プロパティは、文字表示CHに特有の情報である。公開プロパティにおいて1つの名前と1つの値とが対応付けられている。 The properties of the character display CH have multiple names, multiple pieces of reference information, and one value. In the properties of the character display CH, multiple names are associated with multiple pieces of reference information or one value. A public property has one name and one value. A public property is information specific to the character display CH. A public property is associated with one name and one value.
グリッドGLのプロパティは、行に対応する参照情報RI_RWと、列に対応する参照情報RI_CLと、を有する。グリッドGLのプロパティが有する参照情報RI_RWは、マスタデータMDの参照情報RI_RWに対応する値V_RWを参照するための情報である。グリッドGLのプロパティが有する参照情報RI_CLは、マスタデータMDの参照情報RI_CLに対応する値V_CLを参照するための情報である。 The properties of grid GL have reference information RI_RW corresponding to the row and reference information RI_CL corresponding to the column. The reference information RI_RW held by the properties of grid GL is information for referencing the value V_RW corresponding to the reference information RI_RW in the master data MD. The reference information RI_CL held by the properties of grid GL is information for referencing the value V_CL corresponding to the reference information RI_CL in the master data MD.
プログラマブル表示器2の制御部21の第2生成部212は、グリッドGLのプロパティにおいて値V_RW及び値V_CLを参照する。これにより、図2の(A)に示すように、数値表示器NDが配置される領域を2行×3列の領域に分割するグリッドGLが画面に配置される。 The second generation unit 212 of the control unit 21 of the programmable display device 2 references the values V_RW and V_CL in the grid GL properties. As a result, a grid GL is placed on the screen, dividing the area where the numeric display device ND is placed into a 2-row x 3-column area, as shown in Figure 2 (A).
四角形Q1のプロパティは、位置に対応する参照情報RI_LC1と、境界に対応する参照情報RI_BDと、色に対応する参照情報RI_FC1と、を有する。四角形Q1のプロパティが有する参照情報RI_LC1は、マスタデータMDの参照情報RI_LC1に対応する値V_LC1を参照するための情報である。 The properties of rectangle Q1 have reference information RI_LC1 corresponding to the position, reference information RI_BD corresponding to the boundary, and reference information RI_FC1 corresponding to the color. The reference information RI_LC1 in the properties of rectangle Q1 is information for referencing the value V_LC1 corresponding to the reference information RI_LC1 in the master data MD.
四角形Q1のプロパティが有する参照情報RI_BDは、マスタデータMDの参照情報RI_BDに対応する値V_BDを参照するための情報である。四角形Q1のプロパティが有する参照情報RI_FC1は、マスタデータMDの参照情報RI_FC1に対応する値V_FC1を参照するための情報である。 The reference information RI_BD held by the property of rectangle Q1 is information for referencing the value V_BD corresponding to the reference information RI_BD in the master data MD. The reference information RI_FC1 held by the property of rectangle Q1 is information for referencing the value V_FC1 corresponding to the reference information RI_FC1 in the master data MD.
第2生成部212は、四角形Q1のプロパティにおいて値V_LC1、値V_BD及び値V_FC1を参照する。これにより、図2の(A)に示すように、グリッドGLによって分割される領域のうち、1行1列目の領域の位置を基準として、2行×2列の領域の周囲に形成された境界内に水色が着色される四角形Q1が配置される。 The second generation unit 212 references the values V_LC1, V_BD, and V_FC1 in the properties of the rectangle Q1. As a result, as shown in Figure 2(A), a light blue-colored rectangle Q1 is placed within the boundary formed around the 2-row x 2-column area, based on the position of the 1st row, 1st column area of the area divided by the grid GL.
四角形Q2のプロパティは、位置に対応する参照情報RI_LC2と、境界(離す)に対応する参照情報RI_BDと、色(離す)に対応する参照情報RI_FC1と、を有する。また、四角形Q2のプロパティは、境界(押す)に対応する参照情報RI_BDと、色(押す)に対応する参照情報RI_FC3と、演算に対応する参照情報RI_OP1と、を有する。 The properties of rectangle Q2 include reference information RI_LC2 corresponding to the position, reference information RI_BD corresponding to the boundary (release), and reference information RI_FC1 corresponding to the color (release). Furthermore, the properties of rectangle Q2 include reference information RI_BD corresponding to the boundary (push), reference information RI_FC3 corresponding to the color (push), and reference information RI_OP1 corresponding to the operation.
四角形Q2のプロパティが有する参照情報RI_LC2は、マスタデータMDの参照情報RI_LC2に対応する値V_LC2を参照するための情報である。四角形Q2のプロパティが有する参照情報RI_BDは、マスタデータMDの参照情報RI_BDに対応する値V_BDを参照するための情報である。四角形Q2のプロパティが有する参照情報RI_FC1は、マスタデータMDの参照情報RI_FC1に対応する値V_FC1を参照するための情報である。 The reference information RI_LC2 held by the property of rectangle Q2 is information for referencing the value V_LC2 corresponding to the reference information RI_LC2 in the master data MD. The reference information RI_BD held by the property of rectangle Q2 is information for referencing the value V_BD corresponding to the reference information RI_BD in the master data MD. The reference information RI_FC1 held by the property of rectangle Q2 is information for referencing the value V_FC1 corresponding to the reference information RI_FC1 in the master data MD.
四角形Q2のプロパティが有する参照情報RI_FC3は、マスタデータMDの参照情報RI_FC3に対応する値V_FC3を参照するための情報である。四角形Q2のプロパティが有する参照情報RI_OP1は、マスタデータMDの参照情報RI_OP1に対応する値V_OP1を参照するための情報である。 The reference information RI_FC3 held by the property of rectangle Q2 is information for referencing the value V_FC3 corresponding to the reference information RI_FC3 in the master data MD. The reference information RI_OP1 held by the property of rectangle Q2 is information for referencing the value V_OP1 corresponding to the reference information RI_OP1 in the master data MD.
第2生成部212は、四角形Q2のプロパティにおいて値V_LC2、値V_BD、値V_FC1、値V_FC3及び値V_OP1を参照する。これにより、図2の(A)に示すように、グリッドによって分割される領域のうち、1行3列目の領域の位置に、1行×1列の領域の周囲に形成された境界内に水色が着色される四角形Q2が配置される。また、図2の(B)に示すように、四角形Q2が押される場合に四角形Q2が黄色になり、文字表示CHの数値、つまり、後述する値ZI-1が1つ加算されるように設定される。 The second generation unit 212 references the values V_LC2, V_BD, V_FC1, V_FC3, and V_OP1 in the properties of rectangle Q2. As a result, as shown in Figure 2(A), rectangle Q2 is placed in the first row, third column position of the area divided by the grid, and is colored light blue within a boundary formed around the one row by one column area. Furthermore, as shown in Figure 2(B), when rectangle Q2 is pressed, it turns yellow, and the value of the character display CH, that is, the value ZI-1 described below, is set to be incremented by one.
四角形Q3のプロパティは、位置に対応する参照情報RI_LC3と、境界(離す)に対応する参照情報RI_BDと、色(離す)に対応する参照情報RI_FC1と、を有する。また、四角形Q3のプロパティは、境界(押す)に対応する参照情報RI_BDと、色(押す)に対応する参照情報RI_FC3と、演算に対応する参照情報RI_OP2と、を有する。 The properties of rectangle Q3 include reference information RI_LC3 corresponding to the position, reference information RI_BD corresponding to the boundary (release), and reference information RI_FC1 corresponding to the color (release). Furthermore, the properties of rectangle Q3 include reference information RI_BD corresponding to the boundary (push), reference information RI_FC3 corresponding to the color (push), and reference information RI_OP2 corresponding to the operation.
四角形Q3のプロパティが有する参照情報RI_LC3は、マスタデータMDの参照情報RI_LC3に対応する値V_LC3を参照するための情報である。四角形Q3のプロパティが有する参照情報RI_BDは、マスタデータMDの参照情報RI_BDに対応する値V_BDを参照するための情報である。四角形Q3のプロパティが有する参照情報RI_FC1は、マスタデータMDの参照情報RI_FC1に対応する値V_FC1を参照するための情報である。 The reference information RI_LC3 held by the property of rectangle Q3 is information for referencing the value V_LC3 corresponding to the reference information RI_LC3 in the master data MD. The reference information RI_BD held by the property of rectangle Q3 is information for referencing the value V_BD corresponding to the reference information RI_BD in the master data MD. The reference information RI_FC1 held by the property of rectangle Q3 is information for referencing the value V_FC1 corresponding to the reference information RI_FC1 in the master data MD.
四角形Q3のプロパティが有する参照情報RI_FC3は、マスタデータMDの参照情報RI_FC3に対応する値V_FC3を参照するための情報である。四角形Q3のプロパティが有する参照情報RI_OP2は、マスタデータMDの参照情報RI_OP2に対応する値V_OP2を参照するための情報である。 The reference information RI_FC3 held by the property of rectangle Q3 is information for referencing the value V_FC3 corresponding to the reference information RI_FC3 in the master data MD. The reference information RI_OP2 held by the property of rectangle Q3 is information for referencing the value V_OP2 corresponding to the reference information RI_OP2 in the master data MD.
第2生成部212は、四角形Q3のプロパティにおいて値V_LC3、値V_BD、値V_FC1、値V_FC3及び値V_OP2を参照する。これにより、図2の(A)に示すように、グリッドによって分割される領域のうち、2行3列目の領域の位置に、1行×1列の領域の周囲に形成された境界内に水色が着色される四角形Q3が配置される。また、図2の(C)に示すように、四角形Q3が押される場合に四角形Q3が黄色になり、文字表示CHの数値、つまり、後述する値ZI-1が1つ減算されるように設定される。 The second generation unit 212 references the values V_LC3, V_BD, V_FC1, V_FC3, and V_OP2 in the properties of rectangle Q3. As a result, as shown in FIG. 2A, rectangle Q3 is placed in the second row, third column position of the area divided by the grid, and is colored light blue within a boundary formed around the one row by one column area. Furthermore, as shown in FIG. 2C, when rectangle Q3 is pressed, it turns yellow, and the value of the character display CH, that is, the value ZI-1 described below, is set to be decremented by one.
文字表示CHのプロパティは、位置に対応する参照情報RI_LC1と、色に対応する参照情報RI_FC2と、テキストに対応する値ZI-1と、を有する。文字表示CHのプロパティが有する参照情報RI_LC1は、マスタデータMDの参照情報RI_LC1に対応する値V_LC1を参照するための情報である。 The properties of the character display CH have reference information RI_LC1 corresponding to the position, reference information RI_FC2 corresponding to the color, and a value ZI-1 corresponding to the text. The reference information RI_LC1 held by the properties of the character display CH is information for referencing the value V_LC1 corresponding to the reference information RI_LC1 in the master data MD.
文字表示CHのプロパティが有する参照情報RI_FC2は、マスタデータMDの参照情報RI_FC2に対応する値V_FC2を参照するための情報である。文字表示CHのプロパティが有するstring()内の値ZI-1は、スレーブデータSD-1が含む公開プロパティが有する値ZI-1と同じ値であり、同期している。 The reference information RI_FC2 held by the property of the character display CH is information for referencing the value V_FC2 corresponding to the reference information RI_FC2 in the master data MD. The value ZI-1 in the string() held by the property of the character display CH is the same as the value ZI-1 held by the public property included in the slave data SD-1, and they are synchronized.
第2生成部212は、文字表示CHのプロパティにおいて値V_LC1、値V_FC2及び値ZI-1を参照する。これにより、図2の(A)に示すように、グリッドGLによって分割される領域のうち、1行1列目の領域の位置を基準として、白色が着色される文字表示CHが配置される。また、文字表示CHの文字は、値ZI-1を示す。 The second generation unit 212 references the values V_LC1, V_FC2, and ZI-1 in the properties of the character display CH. As a result, as shown in FIG. 2A, the character display CH, which is colored white, is positioned based on the position of the area in the first row and first column of the area divided by the grid GL. Furthermore, the character in the character display CH indicates the value ZI-1.
多角形TR1のプロパティは、位置に対応する参照情報RI_LC2と、境界に対応する参照情報RI_BDと、色に対応する参照情報RI_FC2と、データに対応する参照情報RI_DT1と、を有する。 The properties of polygon TR1 include reference information RI_LC2 corresponding to the position, reference information RI_BD corresponding to the boundary, reference information RI_FC2 corresponding to the color, and reference information RI_DT1 corresponding to the data.
多角形TR1のプロパティが有する参照情報RI_LC2は、マスタデータMDの参照情報RI_LC2に対応する値V_LC2を参照するための情報である。多角形TR1のプロパティが有する参照情報RI_BDは、マスタデータMDの参照情報RI_BDに対応する値V_BDを参照するための情報である。 The reference information RI_LC2 held by the properties of polygon TR1 is information for referencing the value V_LC2 corresponding to the reference information RI_LC2 in the master data MD. The reference information RI_BD held by the properties of polygon TR1 is information for referencing the value V_BD corresponding to the reference information RI_BD in the master data MD.
多角形TR1のプロパティが有する参照情報RI_FC2は、マスタデータMDの参照情報RI_FC2に対応する値V_FC2を参照するための情報である。多角形TR1のプロパティが有する参照情報RI_DT1は、マスタデータMDの参照情報RI_DT1に対応する値V_DT1を参照するための情報である。 The reference information RI_FC2 held by the properties of polygon TR1 is information for referencing the value V_FC2 corresponding to the reference information RI_FC2 in the master data MD. The reference information RI_DT1 held by the properties of polygon TR1 is information for referencing the value V_DT1 corresponding to the reference information RI_DT1 in the master data MD.
第2生成部212は、多角形TR1のプロパティにおいて値V_LC2、値V_BD、値V_FC2及び値V_DT1を参照する。これにより、図2の(A)に示すように、グリッドによって分割される領域のうち、1行3列目の領域の位置に、頂点が上を向く正三角形の領域の周囲に形成された境界内に白色が着色される多角形TR1が配置される。 The second generation unit 212 references the values V_LC2, V_BD, V_FC2, and V_DT1 in the properties of polygon TR1. As a result, as shown in Figure 2(A), polygon TR1 is placed in the first row, third column of the area divided by the grid, with the boundary formed around the equilateral triangular area with its vertices pointing upwards and colored white.
多角形TR2のプロパティは、位置に対応する参照情報RI_LC3と、境界に対応する参照情報RI_BDと、色に対応する参照情報RI_FC2と、データに対応する参照情報RI_DT2と、を有する。 The properties of polygon TR2 include reference information RI_LC3 corresponding to the position, reference information RI_BD corresponding to the boundary, reference information RI_FC2 corresponding to the color, and reference information RI_DT2 corresponding to the data.
多角形TR2のプロパティが有する参照情報RI_LC3は、マスタデータMDの参照情報RI_LC3に対応する値V_LC3を参照するための情報である。多角形TR2のプロパティが有する参照情報RI_BDは、マスタデータMDの参照情報RI_BDに対応する値V_BDを参照するための情報である。 The reference information RI_LC3 held by the properties of polygon TR2 is information for referencing the value V_LC3 corresponding to the reference information RI_LC3 in the master data MD. The reference information RI_BD held by the properties of polygon TR2 is information for referencing the value V_BD corresponding to the reference information RI_BD in the master data MD.
多角形TR2のプロパティが有する参照情報RI_FC2は、マスタデータMDの参照情報RI_FC2に対応する値V_FC2を参照するための情報である。多角形TR2のプロパティが有する参照情報RI_DT2は、マスタデータMDの参照情報RI_DT2に対応する値V_DT2を参照するための情報である。 The reference information RI_FC2 held by the properties of polygon TR2 is information for referencing the value V_FC2 corresponding to the reference information RI_FC2 in the master data MD. The reference information RI_DT2 held by the properties of polygon TR2 is information for referencing the value V_DT2 corresponding to the reference information RI_DT2 in the master data MD.
第2生成部212は、多角形TR2のプロパティにおいて値V_LC3、値V_BD、値V_FC2及び値V_DT2を参照する。これにより、図2の(A)に示すように、グリッドによって分割される領域のうち、2行3列目の領域の位置に、頂点が下を向く正三角形の領域の周囲に形成された境界内に白色が着色される多角形TR2が配置される。 The second generation unit 212 references the values V_LC3, V_BD, V_FC2, and V_DT2 in the properties of polygon TR2. As a result, as shown in Figure 2(A), polygon TR2 is placed in the area in the second row and third column of the area divided by the grid, with the boundary formed around the equilateral triangular area with its vertices pointing downwards and colored white.
スレーブデータSD-1が含む公開プロパティは、変数に対応する値ZI-1を有する。公開プロパティが有する値ZI-1は、整数であり、PLC3が有するデバイスメモリのデバイスアドレスの値が設定される。値ZI-1は、第1オブジェクトとは異なる第2オブジェクトを表示するための第2表示情報の一例である。 The public property included in slave data SD-1 has a value ZI-1 corresponding to a variable. The value ZI-1 of the public property is an integer, and is set to the value of the device address of the device memory of PLC3. The value ZI-1 is an example of second display information for displaying a second object that is different from the first object.
第1オブジェクトは、複合オブジェクトに含まれるオブジェクトのうち、プロパティが公開プロパティの値を含まないオブジェクトである。第2オブジェクトは、複合オブジェクトに含まれるオブジェクトのうち、プロパティが公開プロパティの値を含むオブジェクトである。また、値ZI-1は、第2オブジェクトの属性を示す第2属性情報である。つまり、第2表示情報は第2属性情報を含む。なお、第2表示情報は、第2属性情報以外に、第2オブジェクトの実体を示す第2実体情報を含んでもよい。 The first object is an object included in the composite object whose property does not include the value of a public property. The second object is an object included in the composite object whose property includes the value of a public property. Furthermore, the value ZI-1 is second attribute information indicating the attribute of the second object. In other words, the second display information includes the second attribute information. Note that the second display information may include, in addition to the second attribute information, second entity information indicating the entity of the second object.
図2に示す数値表示器NDのグリッドGL、四角形Q1、四角形Q2、多角形TR1、四角形Q3及び多角形TR2は、これらのプロパティが公開プロパティの値を含まないため、第1オブジェクトの一例である。数値表示器NDの文字表示CHは、そのプロパティが公開プロパティの値を含むため、第2オブジェクトの一例である。 The grid GL, rectangle Q1, rectangle Q2, polygon TR1, rectangle Q3, and polygon TR2 of the numeric display ND shown in Figure 2 are examples of first objects because their properties do not include public property values. The character display CH of the numeric display ND is an example of a second object because its properties include public property values.
(複合オブジェクトの複製)
複合オブジェクトの一例としての数値表示器NDが複製される場合、スレーブデータSD-1が複製されることにより、スレーブデータSD-2が生成される。同様に、スレーブデータSD-1が複製されることにより、スレーブデータSD-3~SD-Nが複製可能である。「SD-N」のNは2以上の自然数である。
(Duplicating a composite object)
When a numeric display ND, which is an example of a composite object, is duplicated, slave data SD-2 is generated by duplicating slave data SD-1. Similarly, slave data SD-1 can be duplicated to generate slave data SD-3 to SD-N. N in "SD-N" is a natural number equal to or greater than 2.
スレーブデータSD-Nでは、スレーブデータSD-1に比べて、複数の部品に対応する複数の値のそれぞれが異なる。例えば、グリッドGLの実体を示す値が、値GL-1から値GL-Nに変更される。また、スレーブデータSD-Nでは、スレーブデータSD-1に比べて、公開プロパティにおける変数に対応する値が、値Z1-1から値Z1-Nに変更される。 In slave data SD-N, the multiple values corresponding to the multiple parts are different from those in slave data SD-1. For example, the value indicating the entity of grid GL is changed from value GL-1 to value GL-N. Also, in slave data SD-N, the values corresponding to variables in public properties are changed from value Z1-1 to value Z1-N, compared to slave data SD-1.
ここで、スレーブデータSD-1が含む複数の部品のプロパティが有する参照情報は、第1属性情報、つまり、マスタデータMDのリストが有する複数の値を参照するための情報である。よって、マスタデータMDには、第1属性情報が含まれ、スレーブデータSD-1には、第1属性情報を参照するための参照情報が含まれる。これにより、同じ第1属性情報を複数記憶し、生成する必要がなくなる。 Here, the reference information held by the properties of the multiple parts included in slave data SD-1 is first attribute information, that is, information for referencing the multiple values held in the list in master data MD. Therefore, master data MD contains first attribute information, and slave data SD-1 contains reference information for referencing the first attribute information. This eliminates the need to store and generate the same first attribute information multiple times.
(制御部10がプロジェクトを作成する処理の流れ)
図4は、図1に示すPC1の制御部10がプロジェクトを作成する処理の流れの一例を示すフローチャートである。制御部10は、画面編集ソフトウェアを用いて図4に示す処理を実行する。また、ユーザが操作部50を操作することにより、プロジェクトに複合オブジェクトを登録した場合、制御部10は図4に示す処理を実行する。なお、ユーザが操作部50を操作することにより、複合オブジェクトを複製した場合、制御部10が図4に示す処理を実行してもよい。
(Process flow of project creation by control unit 10)
Fig. 4 is a flowchart showing an example of the flow of a process in which the control unit 10 of the PC 1 shown in Fig. 1 creates a project. The control unit 10 executes the process shown in Fig. 4 using screen editing software. Furthermore, when a user operates the operation unit 50 to register a composite object in a project, the control unit 10 executes the process shown in Fig. 4. Furthermore, when a user operates the operation unit 50 to duplicate a composite object, the control unit 10 may execute the process shown in Fig. 4.
図4の(A)に示すように、制御部10のマスタ生成部11は、プロジェクトにマスタデータが有るか否かを判定する(S1)。マスタ生成部11がプロジェクトにマスタデータが有ると判定した場合(S1でYES)、制御部10はS3の処理に進む。 As shown in Figure 4 (A), the master generation unit 11 of the control unit 10 determines whether master data exists in the project (S1). If the master generation unit 11 determines that master data exists in the project (YES in S1), the control unit 10 proceeds to processing in S3.
マスタ生成部11は、プロジェクトにマスタデータが無いと判定した場合(S1でNO)、マスタデータを生成する(S2)。S2で生成されるマスタデータは、例えば、図3に示すマスタデータMDである。マスタ生成部11がマスタデータを生成した後、制御部10のスレーブ生成部13は、スレーブデータを生成する(S3)。S3で生成されるスレーブデータは、例えば、図3に示すスレーブデータSD-1である。 If the master generation unit 11 determines that there is no master data in the project (NO in S1), it generates master data (S2). The master data generated in S2 is, for example, the master data MD shown in FIG. 3. After the master generation unit 11 generates the master data, the slave generation unit 13 of the control unit 10 generates slave data (S3). The slave data generated in S3 is, for example, the slave data SD-1 shown in FIG. 3.
マスタ生成部11がマスタデータを生成し、スレーブ生成部13がスレーブデータを生成することにより、制御部10はプロジェクトを作成する。制御部10によって作成されたプロジェクトは、記憶部20に記憶される。 The master generation unit 11 generates master data, and the slave generation unit 13 generates slave data, causing the control unit 10 to create a project. The project created by the control unit 10 is stored in the storage unit 20.
(マスタ生成部11がマスタデータを生成する処理の流れ)
S2の処理において、図4の(B)に示すように、マスタ生成部11は、記憶部20に記憶されているデータ構造から部品を取得する(S21)。マスタ生成部11は、当該データ構造から部品を取得した後、上記データ構造から、S21で取得した部品のプロパティを取得する(S22)。
(Process flow of master data generation by the master data generation unit 11)
4B, in the process of S2, the master generation unit 11 acquires a part from the data structure stored in the storage unit 20 (S21). After acquiring the part from the data structure, the master generation unit 11 acquires the properties of the part acquired in S21 from the data structure (S22).
マスタ生成部11がS21でグリッドGLを取得したとすると、マスタ生成部11は、例えばS22でグリッドGLの行のプロパティとして値V_RWを取得する。マスタ生成部11は、上記データ構造からプロパティを取得した後、S22で取得したプロパティが公開プロパティの値を参照するか否かを判定する(S23)。 Assuming that the master generation unit 11 acquires a grid GL in S21, the master generation unit 11 acquires, for example, a value V_RW as a property of a row of the grid GL in S22. After acquiring the property from the above data structure, the master generation unit 11 determines whether the property acquired in S22 references the value of a public property (S23).
例えば、文字表示CHのテキストのプロパティは、公開プロパティの値ZI-1を参照する。このため、マスタ生成部11は、S22で文字表示CHのテキストのプロパティとして値ZI-1を取得した場合、S22で取得したプロパティが公開プロパティの値を参照すると判定する。一方、例えば、グリッドGLの行のプロパティは、公開プロパティの値を参照しない。このため、マスタ生成部11は、S22でグリッドGLの行のプロパティを取得した場合、S22で取得したプロパティが公開プロパティの値を参照しないと判定する。 For example, the text property of the character display CH references the public property value ZI-1. Therefore, when the master generation unit 11 acquires the value ZI-1 as the text property of the character display CH in S22, it determines that the property acquired in S22 references the value of the public property. On the other hand, for example, the property of a row in the grid GL does not reference the value of a public property. Therefore, when the master generation unit 11 acquires the property of a row in the grid GL in S22, it determines that the property acquired in S22 does not reference the value of a public property.
マスタ生成部11は、S22で取得したプロパティが公開プロパティの値を参照すると判定した場合(S23でYES)、S26の処理に進む。マスタ生成部11は、S22で取得したプロパティが公開プロパティの値を参照しないと判定した場合(S23でNO)、S22で取得したプロパティがマスタデータに含まれるか否かを判定する(S24)。 If the master generation unit 11 determines that the property acquired in S22 references the value of a public property (YES in S23), it proceeds to processing in S26. If the master generation unit 11 determines that the property acquired in S22 does not reference the value of a public property (NO in S23), it determines whether the property acquired in S22 is included in the master data (S24).
マスタ生成部11は、S22で取得したプロパティがマスタデータに含まれると判定した場合(S24でYES)、S26の処理に進む。マスタ生成部11は、S22で取得したプロパティがマスタデータに含まれないと判定した場合(S24でNO)、S22で取得したプロパティをマスタデータ内に生成する(S25)。 If the master generation unit 11 determines that the property acquired in S22 is included in the master data (YES in S24), it proceeds to processing in S26. If the master generation unit 11 determines that the property acquired in S22 is not included in the master data (NO in S24), it generates the property acquired in S22 in the master data (S25).
具体的には、マスタ生成部11は、参照情報と値とを対応付けて、参照情報及び値をマスタデータMD内に生成する。なお、マスタ生成部11は、S25において、プログラマブル表示器2によるインスタンス生成時のプロパティ検索を補助するために、プログラマブル表示器2がプロパティを参照するための参照リストをマスタデータ内に生成してもよい。 Specifically, the master generation unit 11 associates reference information with values and generates the reference information and values in the master data MD. In S25, the master generation unit 11 may also generate a reference list in the master data for the programmable display device 2 to reference properties, in order to assist the programmable display device 2 in searching for properties when generating an instance.
マスタ生成部11は、S21で取得した部品について次のプロパティが有るか否かを判定する(S26)。マスタ生成部11は、S21で取得した部品について次のプロパティが有ると判定した場合(S26でYES)、S22の処理に進む。マスタ生成部11は、S21で取得した部品について次のプロパティが無いと判定した場合(S26でNO)、複合オブジェクトに次の部品が有るか否かを判定する(S27)。 The master generation unit 11 determines whether the next property exists for the part obtained in S21 (S26). If the master generation unit 11 determines that the next property exists for the part obtained in S21 (YES in S26), it proceeds to processing in S22. If the master generation unit 11 determines that the next property does not exist for the part obtained in S21 (NO in S26), it determines whether the next part exists in the composite object (S27).
マスタ生成部11は、複合オブジェクトに次の部品が有ると判定した場合(S27でYES)、S21の処理に進む。マスタ生成部11は、複合オブジェクトに次の部品が無いと判定した場合(S27でNO)、S2の処理を終了する。 If the master generation unit 11 determines that the composite object has a next part (YES in S27), it proceeds to processing in S21. If the master generation unit 11 determines that the composite object does not have a next part (NO in S27), it ends processing in S2.
(スレーブ生成部13がスレーブデータを生成する処理の流れ)
S3の処理において、図4の(C)に示すように、スレーブ生成部13は、公開プロパティを生成する(S31)。具体的には、マスタ生成部11によるS23の処理より前に、制御部10の特定部12は、第2オブジェクトを表示するための第2表示情報を特定する。例えば、ユーザによる操作部50の操作に応じて、特定部12は、第2オブジェクトとしての文字表示CHを表示するための第2表示情報として値ZI-1を特定する。スレーブ生成部13は、S31の処理において、値ZI-1を有する公開プロパティを生成する。
(Processing flow of slave data generation by the slave generation unit 13)
In the process of S3, as shown in (C) of FIG. 4, the slave generation unit 13 generates public properties (S31). Specifically, before the process of S23 by the master generation unit 11, the identification unit 12 of the control unit 10 identifies second display information for displaying the second object. For example, in response to a user's operation of the operation unit 50, the identification unit 12 identifies the value ZI-1 as second display information for displaying the character display CH as the second object. In the process of S31, the slave generation unit 13 generates public properties having the value ZI-1.
スレーブ生成部13は、公開プロパティを生成した後、記憶部20に記憶されている上記データ構造から部品を取得する(S32)。スレーブ生成部13は、上記データ構造から部品を取得した後、S32で取得した部品をスレーブデータ内に生成する(S33)。例えば、スレーブ生成部13は、上記データ構造からグリッドGLを取得した場合、値GL-1をスレーブデータ内に生成する。なお、スレーブ生成部13がS33の処理を実行せずに、マスタ生成部11がS21で取得した部品をマスタデータ内に生成してもよい。 After generating the public properties, the slave generation unit 13 acquires the part from the data structure stored in the storage unit 20 (S32). After acquiring the part from the data structure, the slave generation unit 13 generates the part acquired in S32 in the slave data (S33). For example, if the slave generation unit 13 acquires grid GL from the data structure, it generates the value GL-1 in the slave data. Note that the slave generation unit 13 may not execute the process of S33, and instead generate the part acquired by the master generation unit 11 in S21 in the master data.
スレーブ生成部13は、部品を生成した後、マスタ生成部11によるS22の処理と同様に、上記データ構造から、S32で取得した部品のプロパティを取得する(S34)。スレーブ生成部13は、上記データ構造からプロパティを取得した後、S2でマスタ生成部11により生成されたマスタデータに、S34で取得したプロパティの参照情報が含まれるか否かを判定する(S35)。 After generating the part, the slave generation unit 13 obtains the properties of the part obtained in S32 from the data structure (S34), similar to the processing of S22 by the master generation unit 11. After obtaining the properties from the data structure, the slave generation unit 13 determines whether the master data generated by the master generation unit 11 in S2 includes reference information for the properties obtained in S34 (S35).
例えば、グリッドGLの行のプロパティの参照情報RI_RWは、マスタ生成部11により生成されたマスタデータMDに含まれる。このため、スレーブ生成部13は、S34でグリッドGLの行のプロパティを取得した場合、マスタデータMDにS34で取得したプロパティの参照情報が含まれると判定する。 For example, the reference information RI_RW for the properties of a row in the grid GL is included in the master data MD generated by the master generation unit 11. Therefore, when the slave generation unit 13 acquires the properties of a row in the grid GL in S34, it determines that the master data MD includes the reference information for the properties acquired in S34.
スレーブ生成部13は、マスタデータにS34で取得したプロパティの参照情報が含まれると判定した場合(S35でYES)、マスタデータの参照情報を使用する(S37)。スレーブ生成部13は、マスタデータにS34で取得したプロパティの参照情報が含まれないと判定した場合(S35でNO)、S34で取得したプロパティをスレーブデータ内に生成する(S36)。 If the slave generation unit 13 determines that the master data contains reference information for the property acquired in S34 (YES in S35), it uses the reference information in the master data (S37). If the slave generation unit 13 determines that the master data does not contain reference information for the property acquired in S34 (NO in S35), it generates the property acquired in S34 in the slave data (S36).
S36またはS37の処理の後、スレーブ生成部13は、S32で取得した部品について次のプロパティが有るか否かを判定する(S38)。スレーブ生成部13は、S32で取得した部品について次のプロパティが有ると判定した場合(S38でYES)、S34の処理に進む。スレーブ生成部13は、S32で取得した部品について次のプロパティが無いと判定した場合(S38でNO)、複合オブジェクトに次の部品が有るか否かを判定する(S39)。 After processing S36 or S37, the slave generation unit 13 determines whether the part acquired in S32 has a next property (S38). If the slave generation unit 13 determines that the part acquired in S32 has a next property (YES in S38), it proceeds to processing S34. If the slave generation unit 13 determines that the part acquired in S32 does not have a next property (NO in S38), it determines whether the composite object has a next part (S39).
スレーブ生成部13は、複合オブジェクトに次の部品が有ると判定した場合(S39でYES)、S32の処理に進む。スレーブ生成部13は、複合オブジェクトに次の部品が無いと判定した場合(S39でNO)、S3の処理を終了する。 If the slave generation unit 13 determines that the composite object has a next part (YES in S39), it proceeds to processing in S32. If the slave generation unit 13 determines that the composite object does not have a next part (NO in S39), it ends processing in S3.
なお、ユーザが操作部50を操作することにより、プロジェクトが規定する画面に複合オブジェクトを複製した場合、例えば、スレーブ生成部13は、スレーブデータSD-1を複製することにより、スレーブデータSD-2を生成する。同様に、スレーブ生成部13は、スレーブデータSD-1を複製することにより、スレーブデータSD-3~SD-Nを複製可能である。 When a user operates the operation unit 50 to duplicate a composite object on a screen specified by a project, for example, the slave generation unit 13 duplicates slave data SD-1 to generate slave data SD-2. Similarly, the slave generation unit 13 can duplicate slave data SD-3 to SD-N by duplicating slave data SD-1.
スレーブ生成部13は、スレーブデータSD-1を複製してスレーブデータSD-Nを生成する場合、複数の部品に対応する複数の値をスレーブデータSD-N内に生成する。例えば、スレーブ生成部13は、グリッドGLに対応する値GL-NをスレーブデータSD-N内に生成する。 When the slave generation unit 13 copies slave data SD-1 to generate slave data SD-N, it generates multiple values corresponding to multiple parts in the slave data SD-N. For example, the slave generation unit 13 generates value GL-N corresponding to grid GL in the slave data SD-N.
また、スレーブ生成部13は、ユーザによる操作部50の操作に応じて、公開プロパティをスレーブデータSD-N内に生成する。具体的には、例えば、ユーザの指定により変数名やデバイスアドレスなどを、第2オブジェクトとしての文字表示CHを表示するための第2表示情報として値ZI-Nに設定する。スレーブ生成部13は、値ZI-Nを有する公開プロパティを生成する。さらに、スレーブ生成部13は、スレーブデータSD-1における複数の部品の参照情報をスレーブデータSD-N内に複製する。 The slave generation unit 13 also generates public properties in the slave data SD-N in response to user operation of the operation unit 50. Specifically, for example, a variable name, device address, or the like, specified by the user, is set to the value ZI-N as second display information for displaying the character display CH as the second object. The slave generation unit 13 generates public properties having the value ZI-N. Furthermore, the slave generation unit 13 duplicates the reference information for multiple parts in the slave data SD-1 into the slave data SD-N.
以上において、スレーブ生成部13は、特定部12によって特定された第2表示情報と、第1表示情報を参照するための参照情報と、を含むスレーブデータを生成する。このため、複数のスレーブデータが生成される場合、各スレーブデータは、マスタデータが含む第1表示情報を参照するものとなる。 In the above manner, the slave generation unit 13 generates slave data that includes the second display information identified by the identification unit 12 and reference information for referencing the first display information. Therefore, when multiple slave data are generated, each slave data will reference the first display information included in the master data.
よって、複合オブジェクトが複製されるときに同じ第1表示情報が複数生成されることがなく、プログラマブル表示器2がスレーブデータを用いる場合、プログラマブル表示器2について処理速度を向上でき、記憶領域を削減できる。特に、プログラマブル表示器2において画面を切り替える場合、プログラマブル表示器2は重複するインスタンスを生成する必要がなくなり、処理速度を向上でき、記憶領域を削減できる。当該記憶領域は、プログラマブル表示器2が備える図示しない、実際に処理が行われるDRAM(dynamic random access memory)等のメインメモリまたはユーザメモリ24の記憶領域である。インスタンスの生成については後述する。 As a result, when a composite object is duplicated, the same first display information is not generated multiple times, and when the programmable display device 2 uses slave data, the processing speed of the programmable display device 2 can be improved and the storage area can be reduced. In particular, when switching screens on the programmable display device 2, the programmable display device 2 does not need to generate duplicate instances, improving processing speed and reducing storage area. This storage area is the storage area of the main memory, such as a DRAM (dynamic random access memory) (not shown) provided in the programmable display device 2, where processing actually takes place, or the user memory 24. Instance generation will be described later.
なお、第1表示情報は、スレーブデータが編集される場合において変更不可の情報であってもよい。具体的には、ユーザは、操作部50を操作することによりスレーブデータを編集する場合、第1表示情報を変更できない。例えば、ユーザは、スレーブデータSD-1を編集する場合、マスタデータMDのリストが有する複数の値を変更できない。これにより、ユーザがスレーブデータを編集する場合、ユーザが誤って参照先の第1表示情報を編集してしまうという誤操作、つまり、マスタデータMDの共通性を失う可能性がある誤操作が行われることを防ぐことができる。 The first display information may be information that cannot be changed when the slave data is edited. Specifically, when the user edits the slave data by operating the operation unit 50, the user cannot change the first display information. For example, when editing slave data SD-1, the user cannot change multiple values contained in the list of master data MD. This prevents the user from accidentally editing the referenced first display information when editing slave data, that is, from making an erroneous operation that could result in the loss of commonality in the master data MD.
また、第1表示情報は、マスタデータが編集される場合においては変更可能な情報であり、第2表示情報は、スレーブデータが編集される場合において変更可能な情報である。具体的には、ユーザは、操作部50を操作することによりスレーブデータを編集する場合、第2表示情報を変更できる。例えば、ユーザは、スレーブデータSD-1を編集する場合、スレーブデータSD-1の公開プロパティが有する値ZI-1を変更できる。 Furthermore, the first display information is information that can be changed when master data is edited, and the second display information is information that can be changed when slave data is edited. Specifically, when editing slave data by operating the operation unit 50, the user can change the second display information. For example, when editing slave data SD-1, the user can change the value ZI-1 of the public property of slave data SD-1.
さらに、スレーブ生成部13は、S3の処理でスレーブデータSD-1を生成するときにS33の処理を実行せずに、スレーブデータSD-2~SD-Nを生成するときにS33の処理を実行してもよい。 Furthermore, the slave generation unit 13 may not perform the process of S33 when generating slave data SD-1 in the process of S3, but may perform the process of S33 when generating slave data SD-2 to SD-N.
(プログラマブル表示器2の表示)
プログラマブル表示器2の表示パネル22は、PC1によって作成されたプロジェクトにより規定された画面を表示する。具体的に以下に説明する。プログラマブル表示器2の制御部21は、インタフェース部25を介して、PC1からプロジェクトをダウンロードする。制御部21は、オブジェクト指向プログラミングで作成されたランタイムソフトウェアを用いている場合は以下の処理を実行する。
(Display on programmable display 2)
The display panel 22 of the programmable display device 2 displays a screen defined by the project created by the PC 1. Specific details are explained below. The control unit 21 of the programmable display device 2 downloads the project from the PC 1 via the interface unit 25. When using runtime software created using object-oriented programming, the control unit 21 executes the following process.
制御部21の第1生成部211は、ダウンロードされたプロジェクトに含まれるマスタデータから第1表示情報の第1インスタンスを生成する。具体的には、第1生成部211は、図3に示すマスタデータMDのリストが有する複数の値の第1インスタンスを生成する。 The first generation unit 211 of the control unit 21 generates a first instance of the first display information from the master data included in the downloaded project. Specifically, the first generation unit 211 generates first instances of multiple values contained in the list of master data MD shown in FIG. 3.
また、制御部21の第2生成部212は、ダウンロードされたプロジェクトに含まれるスレーブデータから、第2表示情報の第2インスタンスと、第1生成部211によって生成された第1インスタンスを参照するインスタンス参照情報と、を生成する。具体的には、第2生成部212は、図3に示すスレーブデータSD-1に含まれる値ZI-1の第2インスタンスを生成する。また、第2生成部212は、スレーブデータSD-1に含まれる参照情報から、マスタデータMDのリストが有する複数の値の第1インスタンスを参照するインスタンス参照情報を生成する。 The second generation unit 212 of the control unit 21 also generates, from the slave data included in the downloaded project, a second instance of the second display information and instance reference information that references the first instance generated by the first generation unit 211. Specifically, the second generation unit 212 generates a second instance of the value ZI-1 included in the slave data SD-1 shown in FIG. 3. The second generation unit 212 also generates, from the reference information included in the slave data SD-1, instance reference information that references the first instances of multiple values included in the list of master data MD.
複数のインスタンス参照情報が生成される場合、各インスタンス参照情報は、第1インスタンスを参照し実行するものとなる。よって、同じ第1インスタンスが複数生成されることがなく、プログラマブル表示器2がスレーブデータを用いて複合オブジェクトを表示する場合、プログラマブル表示器2について処理速度を向上でき、記憶領域を削減できる。 When multiple instance reference information items are generated, each instance reference information item references and executes the first instance. Therefore, when the same first instance is not generated multiple times and the programmable display device 2 displays a composite object using slave data, the processing speed of the programmable display device 2 can be improved and the storage area can be reduced.
(変形例)
マスタデータMD及び/または複数のスレーブデータSD-1~SD-Nは、制御部10の上記画面編集ソフトウェアによって生成されてもよく、制御部21の上記ランタイムソフトウェアによって生成されてもよい。
(Modification)
The master data MD and/or the plurality of slave data SD- 1 to SD-N may be generated by the screen editing software of the control unit 10 or may be generated by the runtime software of the control unit 21 .
〔実施形態2〕
本発明の実施形態2について、以下に説明する。なお、説明の便宜上、実施形態1にて説明した部材と同じ機能を有する部材については、同じ符号を付記し、その説明を繰り返さない。図5は、本発明の実施形態2においてプロジェクトに含まれるマスタデータMD2及び複数のスレーブデータSD2-1~SD2-Nを示す図である。
[Embodiment 2]
A second embodiment of the present invention will be described below. For ease of explanation, components having the same functions as those described in the first embodiment will be denoted by the same reference numerals, and their description will not be repeated. Figure 5 is a diagram showing master data MD2 and multiple slave data SD2-1 to SD2-N included in a project in the second embodiment of the present invention.
(マスタデータ)
図5に示すように、マスタデータMD2は、複数の部品のプロパティを含む。マスタデータMD2が含む複数の部品のプロパティにおいて、複数の名前と複数の値とが対応付けられて記憶されている。マスタデータMD2が有する複数の部品のプロパティの複数の値は、第1表示情報の一例である。また、マスタデータMD2が有する複数の部品のプロパティの複数の値は、第1属性情報である。
(master data)
As shown in Fig. 5, the master data MD2 includes properties of multiple parts. In the properties of the multiple parts included in the master data MD2, multiple names and multiple values are stored in association with each other. The multiple values of the properties of the multiple parts included in the master data MD2 are an example of first display information. Furthermore, the multiple values of the properties of the multiple parts included in the master data MD2 are first attribute information.
グリッドGLのプロパティは、行に対応する値V_RWと、列に対応する値V_CLと、を有する。グリッドGLのプロパティは、スレーブデータSD2-1の参照情報RI_GLに対応付けられている。 The properties of the grid GL have a value V_RW corresponding to the row and a value V_CL corresponding to the column. The properties of the grid GL correspond to the reference information RI_GL of the slave data SD2-1.
四角形Q1のプロパティは、位置に対応する値V_LC1と、境界に対応する値V_BDと、色に対応する値V_FC1と、を有する。四角形Q1のプロパティは、スレーブデータSD2-1の参照情報RI_Q1に対応付けられている。 The properties of rectangle Q1 include a value V_LC1 corresponding to the position, a value V_BD corresponding to the boundary, and a value V_FC1 corresponding to the color. The properties of rectangle Q1 correspond to reference information RI_Q1 of slave data SD2-1.
四角形Q2のプロパティは、位置に対応する値V_LC2と、境界(離す)に対応する値V_BDと、色(離す)に対応する値V_FC1と、を有する。また、四角形Q2のプロパティは、境界(押す)に対応する値V_BDと、色(押す)に対応する値V_FC3と、演算に対応する値V_OP1と、を有する。四角形Q2のプロパティは、スレーブデータSD2-1の参照情報RI_Q2に対応付けられている。 The properties of rectangle Q2 include a value V_LC2 corresponding to the position, a value V_BD corresponding to the boundary (release), and a value V_FC1 corresponding to the color (release). The properties of rectangle Q2 also include a value V_BD corresponding to the boundary (push), a value V_FC3 corresponding to the color (push), and a value V_OP1 corresponding to the operation. The properties of rectangle Q2 are associated with reference information RI_Q2 of slave data SD2-1.
四角形Q3のプロパティは、位置に対応する値V_LC3と、境界(離す)に対応する値V_BDと、色(離す)に対応する値V_FC1と、を有する。また、四角形Q3のプロパティは、境界(押す)に対応する値V_BDと、色(押す)に対応する値V_FC3と、演算に対応する値V_OP2と、を有する。四角形Q3のプロパティは、スレーブデータSD2-1の参照情報RI_Q3に対応付けられている。 The properties of rectangle Q3 include a value V_LC3 corresponding to the position, a value V_BD corresponding to the boundary (release), and a value V_FC1 corresponding to the color (release). The properties of rectangle Q3 also include a value V_BD corresponding to the boundary (push), a value V_FC3 corresponding to the color (push), and a value V_OP2 corresponding to the operation. The properties of rectangle Q3 are associated with reference information RI_Q3 of slave data SD2-1.
多角形TR1のプロパティは、位置に対応する値V_LC2と、境界に対応する値V_BDと、色に対応する値V_FC2と、データに対応する値V_DT1と、を有する。多角形TR1のプロパティは、スレーブデータSD2-1の参照情報RI_TR1に対応付けられている。 The properties of polygon TR1 include a value V_LC2 corresponding to the position, a value V_BD corresponding to the boundary, a value V_FC2 corresponding to the color, and a value V_DT1 corresponding to the data. The properties of polygon TR1 are associated with reference information RI_TR1 of slave data SD2-1.
多角形TR2のプロパティは、位置に対応する値V_LC3と、境界に対応する値V_BDと、色に対応する値V_FC2と、データに対応する値V_DT2と、を有する。多角形TR2のプロパティは、スレーブデータSD2-1の参照情報RI_TR2に対応付けられている。 The properties of polygon TR2 include a value V_LC3 corresponding to the position, a value V_BD corresponding to the boundary, a value V_FC2 corresponding to the color, and a value V_DT2 corresponding to the data. The properties of polygon TR2 are associated with reference information RI_TR2 of slave data SD2-1.
(スレーブデータ)
スレーブデータSD2-1は、複数の部品に対応する複数の値及び複数の参照情報を含む。スレーブデータSD2-1において複数の部品の名前と、複数の値及び複数の参照情報と、が対応付けられている。スレーブデータSD2-1における複数の部品の名前と、複数の値及び複数の参照情報と、の対応関係は、図5に示す通りである。
(Slave data)
The slave data SD2-1 includes a plurality of values and a plurality of pieces of reference information corresponding to a plurality of parts. In the slave data SD2-1, the names of the plurality of parts are associated with the plurality of values and the plurality of pieces of reference information. The correspondence between the names of the plurality of parts in the slave data SD2-1 and the plurality of values and the plurality of pieces of reference information is as shown in FIG.
グリッドGLに対応する参照情報RI_GLは、マスタデータMDのグリッドGLのプロパティを参照するための情報である。第2生成部212はグリッドGLのプロパティを参照する。これにより、図2の(A)に示すように、数値表示器NDが配置される領域を2行×3列の領域に分割するグリッドGLが画面に配置される。 The reference information RI_GL corresponding to the grid GL is information for referencing the properties of the grid GL in the master data MD. The second generation unit 212 references the properties of the grid GL. As a result, a grid GL is placed on the screen, dividing the area in which the numeric display ND is placed into an area of 2 rows and 3 columns, as shown in Figure 2 (A).
四角形Q1に対応する参照情報RI_Q1は、マスタデータMDの四角形Q1のプロパティを参照するための情報である。第2生成部212は四角形Q1のプロパティを参照する。これにより、図2の(A)に示すように、グリッドGLによって分割される領域のうち、1行1列目の領域の位置を基準として、2行×2列の領域の周囲に形成された境界内に水色が着色される四角形Q1が配置される。 The reference information RI_Q1 corresponding to the rectangle Q1 is information for referencing the properties of the rectangle Q1 in the master data MD. The second generation unit 212 references the properties of the rectangle Q1. As a result, as shown in FIG. 2A, the rectangle Q1 colored light blue is placed within the boundary formed around the 2-row x 2-column area, based on the position of the area in the first row and first column of the area divided by the grid GL.
四角形Q2に対応する参照情報RI_Q2は、マスタデータMDの四角形Q2のプロパティを参照するための情報である。第2生成部212は四角形Q2のプロパティを参照する。これにより、図2の(A)に示すように、グリッドによって分割される領域のうち、1行3列目の領域の位置に、1行×1列の領域の周囲に形成された境界内に水色が着色される四角形Q2が配置される。また、図2の(B)に示すように、四角形Q2が押される場合に四角形Q2が黄色になり、値ZI-1が1つ加算されるように設定される。 The reference information RI_Q2 corresponding to rectangle Q2 is information for referencing the properties of rectangle Q2 in the master data MD. The second generation unit 212 references the properties of rectangle Q2. As a result, as shown in FIG. 2A, rectangle Q2 colored light blue is placed in the position of the first row, third column area of the area divided by the grid, within the boundary formed around the one row by one column area. Furthermore, as shown in FIG. 2B, when rectangle Q2 is pressed, it turns yellow and the value ZI-1 is incremented by one.
四角形Q3に対応する参照情報RI_Q3は、マスタデータMDの四角形Q3のプロパティを参照するための情報である。第2生成部212は四角形Q3のプロパティを参照する。これにより、図2の(A)に示すように、グリッドによって分割される領域のうち、2行3列目の領域の位置に、1行×1列の領域の周囲に形成された境界内に水色が着色される四角形Q3が配置される。また、図2の(C)に示すように、四角形Q3が押される場合に四角形Q3が黄色になり、値ZI-1の数値が1つ減算されるように設定される。 The reference information RI_Q3 corresponding to rectangle Q3 is information for referencing the properties of rectangle Q3 in the master data MD. The second generation unit 212 references the properties of rectangle Q3. As a result, as shown in FIG. 2A, rectangle Q3 colored light blue is placed in the second row, third column position of the area divided by the grid, within the boundary formed around the one row by one column area. Furthermore, as shown in FIG. 2C, when rectangle Q3 is pressed, rectangle Q3 turns yellow and the value ZI-1 is set to be decreased by one.
文字表示CHに対応する参照情報RI_CHは、スレーブデータSD2-1に含まれる文字表示CHのプロパティを参照するための情報である。文字表示CHのプロパティは、位置に対応する値V_LC1と、色に対応する値V_FC2と、テキストに対応する値ZI-1と、を有する。文字表示CHのプロパティは、スレーブデータSD2-1の参照情報RI_CHに対応付けられている。 The reference information RI_CH corresponding to the character display CH is information for referencing the properties of the character display CH included in the slave data SD2-1. The properties of the character display CH have a value V_LC1 corresponding to the position, a value V_FC2 corresponding to the color, and a value ZI-1 corresponding to the text. The properties of the character display CH are associated with the reference information RI_CH of the slave data SD2-1.
文字表示CHのプロパティが有するstring()内の値ZI-1は、スレーブデータSD2-1が含む公開プロパティが有する値ZI-1と同じ値であり、同期している。スレーブデータSD2-1が含む公開プロパティは、図3に示すスレーブデータSD-1が含む公開プロパティと同様である。 The value ZI-1 in string() of the character display CH property is the same as the value ZI-1 of the public property included in slave data SD2-1, and they are synchronized. The public property included in slave data SD2-1 is the same as the public property included in slave data SD-1 shown in Figure 3.
第2生成部212は文字表示CHのプロパティを参照する。これにより、図2の(A)に示すように、グリッドGLによって分割される領域のうち、1行1列目の領域の位置を基準として、白色が着色される文字表示CHが配置される。また、文字表示CHの文字は、値ZI-1を示す。 The second generation unit 212 references the properties of the character display CH. As a result, as shown in Figure 2(A), the character display CH, colored white, is positioned based on the position of the area in the first row and first column of the area divided by the grid GL. Furthermore, the character in the character display CH indicates the value ZI-1.
多角形TR1に対応する参照情報RI_TR1は、マスタデータMDの多角形TR1のプロパティを参照するための情報である。第2生成部212は多角形TR1のプロパティを参照する。これにより、図2の(A)に示すように、グリッドによって分割される領域のうち、1行3列目の領域の位置に、頂点が上を向く正三角形の領域の周囲に形成された境界内に白色が着色される多角形TR1が配置される。 The reference information RI_TR1 corresponding to polygon TR1 is information for referencing the properties of polygon TR1 in the master data MD. The second generation unit 212 references the properties of polygon TR1. As a result, as shown in Figure 2(A), polygon TR1 is placed in the first row, third column position of the area divided by the grid, with the boundary colored white within the equilateral triangular area with its vertices pointing upward.
多角形TR2に対応する参照情報RI_TR2は、マスタデータMDの多角形TR2のプロパティを参照するための情報である。第2生成部212は多角形TR2のプロパティを参照する。これにより、図2の(A)に示すように、グリッドによって分割される領域のうち、2行3列目の領域の位置に、頂点が下を向く正三角形の領域の周囲に形成された境界内に白色が着色される多角形TR2が配置される。 The reference information RI_TR2 corresponding to polygon TR2 is information for referencing the properties of polygon TR2 in the master data MD. The second generation unit 212 references the properties of polygon TR2. As a result, as shown in FIG. 2A, polygon TR2 is placed in the second row, third column position of the area divided by the grid, with the boundary colored white within the equilateral triangular area with its vertices pointing downward.
(複合オブジェクトの複製)
複合オブジェクトの一例としての数値表示器NDが複製される場合、スレーブデータSD2-1が複製されることにより、スレーブデータSD2-2が生成される。同様に、スレーブデータSD2-1が複製されることにより、スレーブデータSD2-3~SD2-Nが複製可能である。「SD2-N」のNは2以上の自然数である。
(Duplicating a composite object)
When a numeric display ND, which is an example of a composite object, is duplicated, slave data SD2-2 is generated by duplicating slave data SD2-1. Similarly, slave data SD2-1 can be duplicated to generate slave data SD2-3 to SD2-N. N in "SD2-N" is a natural number equal to or greater than 2.
スレーブデータSD2-Nでは、スレーブデータSD2-1に比べて、複数の部品に対応する複数の値のそれぞれが異なる。また、スレーブデータSD2-Nでは、スレーブデータSD2-1に比べて、公開プロパティにおける変数に対応する値が、値Z1-1から値Z1-Nに変更される。 In slave data SD2-N, the multiple values corresponding to multiple components are different from those in slave data SD2-1. Also, in slave data SD2-N, the values corresponding to variables in public properties are changed from value Z1-1 to value Z1-N, compared to slave data SD2-1.
以上により、第1表示情報は、第1オブジェクト毎に、第1オブジェクトの属性を示す第1属性情報を含む。つまり、マスタデータMD2が有する複数の部品のプロパティの複数の値としての第1表示情報は、部品毎に、部品の属性を示す第1属性情報を含む。また、スレーブデータSD2-1が含む、複数の部品に対応する複数の参照情報は、第1オブジェクト毎に第1属性情報を参照するための情報である。 As described above, the first display information includes, for each first object, first attribute information indicating the attributes of the first object. In other words, the first display information as multiple values of the properties of multiple parts contained in the master data MD2 includes, for each part, first attribute information indicating the attributes of the part. Furthermore, the multiple reference information corresponding to multiple parts contained in the slave data SD2-1 is information for referencing the first attribute information for each first object.
マスタデータには、第1オブジェクト毎に第1属性情報が含まれ、スレーブデータには、第1オブジェクト毎に第1属性情報を参照するための参照情報が含まれる。これにより、参照情報を削減することができる。 The master data includes first attribute information for each first object, and the slave data includes reference information for referencing the first attribute information for each first object. This allows for a reduction in the amount of reference information.
(制御部10がプロジェクトを作成する処理の流れ)
図6は、本発明の実施形態2においてPC1の制御部10がプロジェクトを作成する処理の流れの一例を示すフローチャートである。ユーザが操作部50を操作することにより、プロジェクトに複合オブジェクトを登録した場合、制御部10は図6に示す処理を実行する。なお、ユーザが操作部50を操作することにより、複合オブジェクトを複製した場合、制御部10が図6に示す処理を実行してもよい。
(Process flow of project creation by control unit 10)
Fig. 6 is a flowchart showing an example of the flow of a process in which the control unit 10 of the PC 1 creates a project in the second embodiment of the present invention. When the user operates the operation unit 50 to register a composite object in a project, the control unit 10 executes the process shown in Fig. 6. Note that when the user operates the operation unit 50 to duplicate a composite object, the control unit 10 may also execute the process shown in Fig. 6.
図6の(A)に示すように、制御部10は、図4の(A)に示すS1~S3の処理と同様に、S4~S6の処理を実行する。S5で生成されるマスタデータは、例えば、図5に示すマスタデータMD2である。S6で生成されるスレーブデータは、例えば、図5に示すスレーブデータSD2-1である。 As shown in FIG. 6A, the control unit 10 executes steps S4 to S6 in the same manner as steps S1 to S3 shown in FIG. 4A. The master data generated in S5 is, for example, master data MD2 shown in FIG. 5. The slave data generated in S6 is, for example, slave data SD2-1 shown in FIG. 5.
(マスタ生成部11がマスタデータを生成する処理の流れ)
S5の処理において、図6の(B)に示すように、マスタ生成部11は、記憶部20に記憶されているデータ構造から部品を取得する(S51)。マスタ生成部11は、当該データ構造から部品を取得した後、S51で取得した部品について公開プロパティの値を参照するプロパティが有るか否かを判定する(S52)。
(Process flow of master data generation by the master data generation unit 11)
6B, in the process of S5, the master generation unit 11 acquires a part from the data structure stored in the storage unit 20 (S51). After acquiring the part from the data structure, the master generation unit 11 determines whether or not the part acquired in S51 has a property that references the value of a public property (S52).
例えば、文字表示CHのテキストのプロパティは、公開プロパティの値ZI-1を参照する。このため、マスタ生成部11は、S51で文字表示CHを取得した場合、S51で取得した部品について公開プロパティの値を参照するプロパティが有ると判定する。一方、例えば、グリッドGLの行及び列のプロパティは、公開プロパティの値を参照しない。このため、マスタ生成部11は、S51でグリッドGLを取得した場合、S51で取得した部品について公開プロパティの値を参照するプロパティが無いと判定する。 For example, the text property of the character display CH references the public property value ZI-1. Therefore, when the master generation unit 11 acquires the character display CH in S51, it determines that there is a property that references the value of a public property for the component acquired in S51. On the other hand, for example, the row and column properties of the grid GL do not reference the value of a public property. Therefore, when the master generation unit 11 acquires the grid GL in S51, it determines that there is no property that references the value of a public property for the component acquired in S51.
マスタ生成部11は、公開プロパティの値を参照するプロパティが有ると判定した場合(S52でYES)、S56の処理に進む。マスタ生成部11は、公開プロパティの値を参照するプロパティが無いと判定した場合(S52でNO)、上記データ構造から、S51で取得した部品のプロパティを取得する(S53)。 If the master generation unit 11 determines that there is a property that references the value of a public property (YES in S52), it proceeds to processing in S56. If the master generation unit 11 determines that there is no property that references the value of a public property (NO in S52), it obtains the property of the part obtained in S51 from the above data structure (S53).
マスタ生成部11は、上記データ構造からプロパティを取得した後、S53で取得したプロパティをマスタデータ内に生成する(S54)。具体的には、マスタ生成部11は、名前と値とを対応付けて、名前及び値をマスタデータMD内に生成する。なお、マスタ生成部11は、S54において、プログラマブル表示器2によるインスタンス生成時のプロパティ検索を補助するために、プログラマブル表示器2がプロパティを参照するための参照リストをマスタデータ内に生成してもよい。 After acquiring the properties from the above data structure, the master generation unit 11 generates the properties acquired in S53 in the master data (S54). Specifically, the master generation unit 11 associates names with values and generates the names and values in the master data MD. Note that in S54, the master generation unit 11 may also generate a reference list in the master data that the programmable display device 2 uses to reference properties, in order to assist the programmable display device 2 in searching for properties when generating instances.
マスタ生成部11は、S51で取得した部品について次のプロパティが有るか否かを判定する(S55)。マスタ生成部11は、S51で取得した部品について次のプロパティが有ると判定した場合(S55でYES)、S53の処理に進む。マスタ生成部11は、S51で取得した部品について次のプロパティが無いと判定した場合(S55でNO)、複合オブジェクトに次の部品が有るか否かを判定する(S56)。 The master generation unit 11 determines whether the next property exists for the part acquired in S51 (S55). If the master generation unit 11 determines that the next property exists for the part acquired in S51 (YES in S55), it proceeds to processing in S53. If the master generation unit 11 determines that the next property does not exist for the part acquired in S51 (NO in S55), it determines whether the next part exists in the composite object (S56).
マスタ生成部11は、複合オブジェクトに次の部品が有ると判定した場合(S56でYES)、S51の処理に進む。マスタ生成部11は、複合オブジェクトに次の部品が無いと判定した場合(S56でNO)、S5の処理を終了する。 If the master generation unit 11 determines that the composite object has a next part (YES in S56), it proceeds to processing in S51. If the master generation unit 11 determines that the composite object does not have a next part (NO in S56), it ends processing in S5.
(スレーブ生成部13がスレーブデータを生成する処理の流れ)
S6の処理において、図6の(C)に示すように、スレーブ生成部13は、図4の(C)に示すS31の処理と同様に、公開プロパティを生成する(S61)。スレーブ生成部13は、公開プロパティを生成した後、記憶部20に記憶されている上記データ構造から部品を取得する(S62)。スレーブ生成部13は、上記データ構造から部品を取得した後、S62で取得した部品をスレーブデータ内に生成する(S63)。なお、スレーブ生成部13がS63の処理を実行せずに、マスタ生成部11がS51で取得した部品をマスタデータ内に生成してもよい。
(Process flow of slave data generation by the slave generation unit 13)
In the process of S6, as shown in (C) of Fig. 6, the slave generation unit 13 generates public properties (S61), similar to the process of S31 shown in (C) of Fig. 4. After generating the public properties, the slave generation unit 13 acquires components from the data structure stored in the storage unit 20 (S62). After acquiring the components from the data structure, the slave generation unit 13 generates the components acquired in S62 in the slave data (S63). Note that the master generation unit 11 may generate the components acquired in S51 in the master data without the slave generation unit 13 executing the process of S63.
スレーブ生成部13は、部品を生成した後、マスタ生成部11によるS52の処理と同様に、S62で取得した部品について公開プロパティの値を参照するプロパティが有るか否かを判定する(S64)。スレーブ生成部13は、公開プロパティの値を参照するプロパティが無いと判定した場合(S64でNO)、S62で取得した部品の参照情報の参照先として、マスタデータの部品のプロパティを使用する(S65)。 After generating the part, the slave generation unit 13 determines whether there is a property that references the value of a public property for the part acquired in S62 (S64), similar to the processing of S52 by the master generation unit 11. If the slave generation unit 13 determines that there is no property that references the value of a public property (NO in S64), it uses the property of the part in the master data as the reference destination for the reference information of the part acquired in S62 (S65).
スレーブ生成部13は、公開プロパティの値を参照するプロパティが有ると判定した場合(S64でYES)、上記データ構造から、S62で取得した部品のプロパティを取得する(S66)。スレーブ生成部13は、上記データ構造からプロパティを取得した後、S66で取得したプロパティをスレーブデータ内に生成する(S67)。 If the slave generation unit 13 determines that there is a property that references the value of a public property (YES in S64), it obtains the property of the part obtained in S62 from the data structure (S66). After obtaining the property from the data structure, the slave generation unit 13 generates the property obtained in S66 in the slave data (S67).
スレーブ生成部13は、プロパティを生成した後、S62で取得した部品について次のプロパティが有るか否かを判定する(S68)。スレーブ生成部13は、S62で取得した部品について次のプロパティが有ると判定した場合(S68でYES)、S66の処理に進む。スレーブ生成部13は、S62で取得した部品について次のプロパティが無いと判定した場合(S68でNO)、複合オブジェクトに次の部品が有るか否かを判定する(S69)。 After generating the properties, the slave generation unit 13 determines whether the next property exists for the part acquired in S62 (S68). If the slave generation unit 13 determines that the next property exists for the part acquired in S62 (YES in S68), it proceeds to processing in S66. If the slave generation unit 13 determines that the next property does not exist for the part acquired in S62 (NO in S68), it determines whether the next part exists in the composite object (S69).
スレーブ生成部13は、複合オブジェクトに次の部品が有ると判定した場合(S69でYES)、S62の処理に進む。スレーブ生成部13は、複合オブジェクトに次の部品が無いと判定した場合(S69でNO)、S6の処理を終了する。 If the slave generation unit 13 determines that the composite object has a next part (YES in S69), it proceeds to processing in S62. If the slave generation unit 13 determines that the composite object does not have a next part (NO in S69), it ends processing in S6.
なお、スレーブ生成部13は、スレーブデータSD2-1を複製してスレーブデータSD2-Nを生成する場合、スレーブデータSD2-1における、複数の部品に対応する複数の参照情報と、文字表示CHのプロパティが有する複数の値と、をスレーブデータSD2-N内に複製する。 When the slave generation unit 13 copies slave data SD2-1 to generate slave data SD2-N, it copies into slave data SD2-N the multiple pieces of reference information corresponding to the multiple parts in slave data SD2-1 and the multiple values of the character display CH property.
〔実施形態3〕
本発明の実施形態3について、以下に説明する。なお、説明の便宜上、実施形態1及び2にて説明した部材と同じ機能を有する部材については、同じ符号を付記し、その説明を繰り返さない。図7は、本発明の実施形態3においてプロジェクトに含まれるマスタデータMD3及び複数のスレーブデータSD3-1~SD3-Nを示す図である。
[Embodiment 3]
A third embodiment of the present invention will be described below. For ease of explanation, components having the same functions as those described in the first and second embodiments will be denoted by the same reference numerals, and their descriptions will not be repeated. Figure 7 is a diagram showing master data MD3 and multiple slave data SD3-1 to SD3-N included in a project in the third embodiment of the present invention.
(マスタデータ)
図7に示すように、マスタデータMD3は、リストと、複数の部品のプロパティと、を含む。マスタデータMD3が含むリストは、図3に示すマスタデータMDが含むリストと同様である。マスタデータMD3が含む複数の部品のプロパティは、図3に示すスレーブデータSD-1が含む複数の部品のプロパティと同様である。ただし、マスタデータMD3は文字表示CHのプロパティを含まない。また、マスタデータMD3が含む複数の部品のプロパティはそれぞれ、図5に示すマスタデータMD2が含む複数の部品のプロパティと同様に、スレーブデータSD3-1が含む複数の参照情報に対応付けられている。
(master data)
As shown in Fig. 7, the master data MD3 includes a list and properties of multiple parts. The list included in the master data MD3 is the same as the list included in the master data MD shown in Fig. 3. The properties of the multiple parts included in the master data MD3 are the same as the properties of the multiple parts included in the slave data SD-1 shown in Fig. 3. However, the master data MD3 does not include a property for character display CH. Furthermore, the properties of the multiple parts included in the master data MD3 are each associated with multiple pieces of reference information included in the slave data SD3-1, similar to the properties of the multiple parts included in the master data MD2 shown in Fig. 5.
(スレーブデータ)
図7に示すように、スレーブデータSD3-1は、文字表示プロパティCHのプロパティにおいて位置及び色に対応する値が参照情報に変更されている点で、図5に示すスレーブデータSD2-1とは異なる。
(Slave data)
As shown in FIG. 7, the slave data SD3-1 differs from the slave data SD2-1 shown in FIG. 5 in that the values corresponding to the position and color in the character display property CH are changed to reference information.
(実施形態1~3のインスタンス数及び参照情報数)
図8は、従来技術及び実施形態1~3のインスタンス数及び参照情報数を示すグラフである。図8の(A)は、従来技術及び実施形態1~3のインスタンス数を示すグラフであり、図8の(B)は、従来技術及び実施形態1~3の参照情報数を示すグラフである。図8における従来技術は、複合オブジェクトを複製する場合に複合オブジェクトの全体を複製する技術である。
(Number of instances and number of reference information in the first to third embodiments)
Fig. 8 is a graph showing the number of instances and the number of pieces of reference information for the conventional technology and embodiments 1 to 3. Fig. 8(A) is a graph showing the number of instances for the conventional technology and embodiments 1 to 3, and Fig. 8(B) is a graph showing the number of pieces of reference information for the conventional technology and embodiments 1 to 3. The conventional technology in Fig. 8 is a technology in which, when duplicating a composite object, the entire composite object is duplicated.
図8の(A)に示すインスタンス数は、プログラマブル表示器2の制御部21が生成するインスタンスの数であり、図8の(B)に示す参照情報数は、プログラマブル表示器2の制御部21が生成するインスタンス参照情報の数である。 The number of instances shown in (A) of Figure 8 is the number of instances generated by the control unit 21 of the programmable display device 2, and the number of reference information shown in (B) of Figure 8 is the number of instance reference information generated by the control unit 21 of the programmable display device 2.
図8の(A)において、IS1~IS4はそれぞれ、従来技術、実施形態1、実施形態2及び実施形態3に対応する。また、横軸は複合オブジェクトの数を示し、縦軸はオブジェクトの数を示す。具体的には、図8の(A)の縦軸のオブジェクトの数は、生成される部品やプロパティのインスタンス数(実体数)を示すのに対し、図8の(B)の縦軸のオブジェクトの数は、生成される部品やプロパティのインスタンスを参照するための情報数を示す。 In Figure 8 (A), IS1 to IS4 correspond to the prior art, embodiment 1, embodiment 2, and embodiment 3, respectively. The horizontal axis indicates the number of composite objects, and the vertical axis indicates the number of objects. Specifically, the number of objects on the vertical axis in Figure 8 (A) indicates the number of instances (number of entities) of parts and properties to be generated, while the number of objects on the vertical axis in Figure 8 (B) indicates the number of pieces of information for referencing the instances of parts and properties to be generated.
図8の(A)に示すように、実施形態1~3では、従来技術に比べて、複合オブジェクトのインスタンス数を削減することができる。また、複合オブジェクトの数が多い程、インスタンス数の削減効果が見込める。図8の(B)に示すように、実施形態1では、参照情報が多いというデメリットを実施形態2または3で改善することができる。また、複合オブジェクトの数が多い程、参照情報数の削減効果が見込める。 As shown in Figure 8 (A), in embodiments 1 to 3, the number of instances of a composite object can be reduced compared to conventional technology. Furthermore, the greater the number of composite objects, the greater the expected effect of reducing the number of instances. As shown in Figure 8 (B), the disadvantage of embodiment 1, which is the large amount of reference information, can be improved in embodiments 2 and 3. Furthermore, the greater the number of composite objects, the greater the expected effect of reducing the amount of reference information.
生成される部品及びプロパティの数を削減することにより、複合オブジェクトの生成及び削除にかかる時間を短縮し、プログラマブル表示器2の上記DRAM等のメインメモリ及びユーザメモリ24の使用量を削減することができる。また、複合オブジェクトの数及び複合オブジェクトを構成するオブジェクトの内容によって、処理速度の向上及び記憶領域の削減の効果は変化する。複合オブジェクトは、画面上に複数配置されることが多く、複合オブジェクトを構成する部品の機能及びデザインを統一することが多いため、上記の効果は高くなる傾向にある。 By reducing the number of parts and properties generated, the time required to create and delete composite objects can be shortened, and the amount of main memory, such as the DRAM, and user memory 24 used by the programmable display device 2 can be reduced. Furthermore, the effects of improving processing speed and reducing storage space vary depending on the number of composite objects and the contents of the objects that make up the composite objects. Since multiple composite objects are often placed on the screen, and the functions and designs of the parts that make up a composite object are often unified, the above effects tend to be significant.
(変形例)
制御部10は、インスタンス数の削減効果と参照情報数とを考慮した実施形態を選択するために、実施形態1~3のいずれの処理を行うかを選択する選択部を備えてもよい。当該選択部は、ユーザによる操作部50の操作に応じて実施形態1~3のいずれの処理を行うかを選択してもよく、実施形態1~3のいずれの処理を行うかを自動的に選択してもよい。
(Modification)
The control unit 10 may include a selection unit that selects which of the processes of the first to third embodiments to perform in order to select an embodiment that takes into consideration the effect of reducing the number of instances and the number of pieces of reference information. The selection unit may select which of the processes of the first to third embodiments to perform in response to a user's operation of the operation unit 50, or may automatically select which of the processes of the first to third embodiments to perform.
〔実施形態4〕
本発明の実施形態4について、以下に説明する。なお、説明の便宜上、実施形態1~3にて説明した部材と同じ機能を有する部材については、同じ符号を付記し、その説明を繰り返さない。図9は、本発明の実施形態4においてプロジェクトに含まれるマスタデータMD4及び複数のスレーブデータSD4-1~SD4-Nを示す図である。
[Embodiment 4]
A fourth embodiment of the present invention will be described below. For ease of explanation, components having the same functions as those described in the first to third embodiments will be denoted by the same reference numerals, and their descriptions will not be repeated. Fig. 9 is a diagram showing master data MD4 and multiple slave data SD4-1 to SD4-N included in a project in the fourth embodiment of the present invention.
図9に示すように、マスタデータMD4及び複数のスレーブデータSD4-1~SD4-Nは、図3に示すマスタデータMD及び複数のスレーブデータSD-1~SD-Nに比べて、参照情報がハッシュ値となっている点が異なる。 As shown in Figure 9, the master data MD4 and the multiple slave data SD4-1 to SD4-N differ from the master data MD and the multiple slave data SD-1 to SD-N shown in Figure 3 in that the reference information is a hash value.
マスタ生成部11は、マスタデータMD4を生成する場合、各値に基づいてハッシュ値を生成する。例えば、マスタ生成部11は、値V_RWに基づいてハッシュ値HS_RWを生成する。また、マスタ生成部11は、上記データ構造からプロパティを取得するとき、新たなプロパティを取得した場合にハッシュ値を生成する。 When generating master data MD4, the master generation unit 11 generates a hash value based on each value. For example, the master generation unit 11 generates a hash value HS_RW based on the value V_RW. Furthermore, when retrieving properties from the above data structure, the master generation unit 11 generates a hash value if a new property is retrieved.
さらに、スレーブデータSD4-1の複数の部品のプロパティが有するハッシュ値は、マスタデータMD4のハッシュ値に対応する値を参照するための参照情報である。例えば、グリッドGLのプロパティが有するハッシュ値HS_RWは、マスタデータMD4のハッシュ値HS_RWに対応する値V_RWを参照するための参照情報である。本実施形態において、第1表示情報を参照するための参照情報は、第1表示情報に基づいて生成されたハッシュ値である。これにより、参照情報の管理が容易または不要となる。 Furthermore, the hash values held by the properties of multiple parts in slave data SD4-1 are reference information for referencing values corresponding to the hash values in master data MD4. For example, the hash value HS_RW held by the properties of grid GL is reference information for referencing the value V_RW corresponding to the hash value HS_RW in master data MD4. In this embodiment, the reference information for referencing the first display information is a hash value generated based on the first display information. This makes it easy or unnecessary to manage the reference information.
〔実施形態5〕
本発明の実施形態5について、以下に説明する。なお、説明の便宜上、実施形態1~4にて説明した部材と同じ機能を有する部材については、同じ符号を付記し、その説明を繰り返さない。図10の(A)は、従来のプログラマブル表示器が表示する画面を示す図である。図10の(B)は、本発明の実施形態5においてプログラマブル表示器2の表示パネル22が表示する画面を示す図である。
[Embodiment 5]
A fifth embodiment of the present invention will be described below. For ease of explanation, components having the same functions as those described in the first to fourth embodiments will be denoted by the same reference numerals, and their description will not be repeated. Fig. 10A is a diagram showing a screen displayed by a conventional programmable display device. Fig. 10B is a diagram showing a screen displayed by the display panel 22 of the programmable display device 2 in the fifth embodiment of the present invention.
図10の(A)に示すように、従来のプログラマブル表示器において、インスタンスQ11~Q16のそれぞれと、PLC3の内部デバイスと、が通信接続されているものとする。インスタンスQ11~Q16のそれぞれは、対応する内部デバイスを監視している。 As shown in Figure 10 (A), in a conventional programmable display, each of instances Q11 to Q16 is connected to an internal device of PLC3 for communication. Each of instances Q11 to Q16 monitors the corresponding internal device.
このため、例えば、PLC3とインスタンスQ14との間で通信エラーが発生した場合であっても、従来のプログラマブル表示器は、インスタンスQ11~Q16のそれぞれの表示を変更する。例えば、従来のプログラマブル表示器は、インスタンスQ11~Q16のそれぞれに対して、枠線、アイコンの変更または色の変化により表示を変更する。 For example, even if a communication error occurs between PLC3 and instance Q14, a conventional programmable display changes the display of each of instances Q11 to Q16. For example, a conventional programmable display changes the display of each of instances Q11 to Q16 by changing the border, icon, or color.
これに対して、本実施形態に係るプログラマブル表示器2が備える制御部21の管理部213は、第2生成部212が複数の第2インスタンスQ11~Q16を生成した場合、複数の第2インスタンスQ11~Q16を1つの状態情報として管理する。当該1つの状態情報としては、例えば、配列または構造体を用いた変数が挙げられる。複数の第2インスタンスQ11~Q16のそれぞれは、対応する内部デバイスを監視している。 In contrast, when the second generation unit 212 generates multiple second instances Q11 to Q16, the management unit 213 of the control unit 21 provided in the programmable display device 2 according to this embodiment manages the multiple second instances Q11 to Q16 as a single piece of state information. For example, this single piece of state information may be a variable that uses an array or a structure. Each of the multiple second instances Q11 to Q16 monitors a corresponding internal device.
また、制御部21の表示制御部214は、管理部213によって管理された上記1つの状態情報が変更されたことに基づき、図10の(B)に示すように、複数の第2インスタンスQ11~Q16の全体の表示を変更する。例えば、表示制御部214は、複数の第2インスタンスQ11~Q16の全体に対して、枠線、アイコンの変更または色の変化により表示を変更する。これにより、表示変更のためのオブジェクトが集約されるため、上記DRAM等のメインメモリ及びユーザメモリ24の使用量を削減することができる。 Furthermore, the display control unit 214 of the control unit 21 changes the overall display of the multiple second instances Q11 to Q16, as shown in FIG. 10B, based on a change to the one piece of state information managed by the management unit 213. For example, the display control unit 214 changes the display of the multiple second instances Q11 to Q16 as a whole by changing the borders, icons, or colors. This consolidates objects for display changes, thereby reducing the usage of the main memory, such as the DRAM, and the user memory 24.
PLC3と少なくとも1つの第2インスタンスとの間に通信エラーが発生した場合、管理部213は、上記1つの状態情報を変更する。表示制御部214は、複数の第2インスタンスQ11~Q16の全体の表示を変更するため、ユーザが認識し易い画面とすることができる。また、第2インスタンス毎の状態情報の管理が不要になり、プログラマブル表示器2について処理速度を向上でき、記憶領域を削減できる。 If a communication error occurs between PLC3 and at least one second instance, the management unit 213 changes the status information. The display control unit 214 changes the overall display of multiple second instances Q11 to Q16, making it easier for the user to recognize the screen. Furthermore, since there is no need to manage status information for each second instance, the processing speed of the programmable display device 2 can be improved and storage space can be reduced.
〔ソフトウェアによる実現例〕
PC1及びプログラマブル表示器2(以下、「装置」と呼ぶ)の機能は、当該装置としてコンピュータを機能させるためのプログラムであって、当該装置の各制御ブロック(特に制御部10及び制御部21に含まれる各部)としてコンピュータを機能させるためのプログラムにより実現することができる。
[Software implementation example]
The functions of the PC 1 and the programmable display 2 (hereinafter referred to as the "device") can be realized by a program that causes a computer to function as the device, and a program that causes a computer to function as each control block of the device (particularly each part included in the control unit 10 and the control unit 21).
この場合、上記装置は、上記プログラムを実行するためのハードウェアとして、少なくとも1つの制御装置(例えばプロセッサ)と少なくとも1つの記憶装置(例えばメモリ)を有するコンピュータを備えている。この制御装置と記憶装置により上記プログラムを実行することにより、上記各実施形態で説明した各機能が実現される。 In this case, the device includes a computer having at least one control device (e.g., a processor) and at least one storage device (e.g., a memory) as hardware for executing the program. The functions described in each of the above embodiments are realized by executing the program using this control device and storage device.
上記プログラムは、一時的ではなく、コンピュータ読み取り可能な、1または複数の記録媒体に記録されていてもよい。この記録媒体は、上記装置が備えていてもよいし、備えていなくてもよい。後者の場合、上記プログラムは、有線または無線の任意の伝送媒体を介して上記装置に供給されてもよい。 The above program may be stored non-transitory on one or more computer-readable storage media. These storage media may or may not be included in the device. In the latter case, the program may be supplied to the device via any wired or wireless transmission medium.
また、上記各制御ブロックの機能の一部または全部は、論理回路により実現することも可能である。例えば、上記各制御ブロックとして機能する論理回路が形成された集積回路も本発明の範疇に含まれる。この他にも、例えば量子コンピュータにより上記各制御ブロックの機能を実現することも可能である。 Furthermore, some or all of the functions of each of the above control blocks can be realized by logic circuits. For example, integrated circuits incorporating logic circuits that function as each of the above control blocks are also included in the scope of the present invention. In addition, the functions of each of the above control blocks can also be realized by, for example, a quantum computer.
また、上記各実施形態で説明した各処理は、AI(Artificial Intelligence:人工知能)に実行させてもよい。この場合、AIは上記制御装置で動作するものであってもよいし、他の装置(例えばエッジコンピュータまたはクラウドサーバ等)で動作するものであってもよい。 Furthermore, each process described in each of the above embodiments may be executed by AI (Artificial Intelligence). In this case, the AI may run on the control device, or on another device (such as an edge computer or cloud server).
本発明は上述した各実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、異なる実施形態にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。 The present invention is not limited to the above-described embodiments, and various modifications are possible within the scope of the claims. Embodiments obtained by appropriately combining the technical means disclosed in different embodiments are also included in the technical scope of the present invention.
1 PC
2 プログラマブル表示器
11 マスタ生成部
12 特定部
13 スレーブ生成部
211 第1生成部
212 第2生成部
213 管理部
214 表示制御部
MD、MD2、MD3、MD4 マスタデータ
SD-1、SD2-1、SD3-1、SD4-1 スレーブデータ
1 PC
2 Programmable display device 11 Master generation unit 12 Identification unit 13 Slave generation unit 211 First generation unit 212 Second generation unit 213 Management unit 214 Display control unit MD, MD2, MD3, MD4 Master data SD-1, SD2-1, SD3-1, SD4-1 Slave data
Claims (6)
前記複合オブジェクトに含まれる前記オブジェクトのうち第1オブジェクトを表示するための第1表示情報を含むマスタデータを生成するマスタ生成部と、
前記複合オブジェクトに含まれる前記オブジェクトのうち、前記第1オブジェクトとは異なる第2オブジェクトを表示するための第2表示情報を特定する特定部と、
前記特定部によって特定された前記第2表示情報と、前記第1表示情報を参照するための参照情報と、を含むスレーブデータを生成するスレーブ生成部と、を備え、
前記第1表示情報は、前記スレーブデータが編集される場合において変更不可の情報であることを特徴とする作成装置。 A creation device for creating a project that defines a screen having a composite object including at least one object, which is used for displaying on a programmable display, comprising:
a master generating unit that generates master data including first display information for displaying a first object among the objects included in the composite object;
an identification unit that identifies second display information for displaying a second object different from the first object among the objects included in the composite object;
a slave generation unit that generates slave data including the second display information identified by the identification unit and reference information for referencing the first display information ,
The creating device is characterized in that the first display information is information that cannot be changed when the slave data is edited .
前記第2表示情報は、前記第2オブジェクトの属性を示す第2属性情報を含み、
前記参照情報は、前記第1属性情報を参照するための情報であることを特徴とする請求項1に記載の作成装置。 the first display information includes first attribute information indicating an attribute of the first object;
the second display information includes second attribute information indicating attributes of the second object;
2. The creating device according to claim 1, wherein the reference information is information for referencing the first attribute information.
前記第2表示情報は、前記第2オブジェクトの属性を示す第2属性情報を含み、
前記参照情報は、前記第1オブジェクト毎に前記第1属性情報を参照するための情報であることを特徴とする請求項1に記載の作成装置。 the first display information includes, for each of the first objects, first attribute information indicating an attribute of the first object;
the second display information includes second attribute information indicating an attribute of the second object;
2. The creating device according to claim 1, wherein the reference information is information for referencing the first attribute information for each of the first objects.
前記作成装置は、
前記複合オブジェクトに含まれる前記オブジェクトのうち第1オブジェクトを表示するための第1表示情報を含むマスタデータを生成するマスタ生成部と、
前記複合オブジェクトに含まれる前記オブジェクトのうち、前記第1オブジェクトとは異なる第2オブジェクトを表示するための第2表示情報を特定する特定部と、
前記特定部によって特定された前記第2表示情報と、前記第1表示情報を参照するための参照情報と、を含むスレーブデータを生成するスレーブ生成部と、を備え、
前記プログラマブル表示器は、
前記マスタデータから前記第1表示情報の第1インスタンスを生成する第1生成部と、
前記スレーブデータから、前記第2表示情報の第2インスタンスと、前記第1生成部によって生成された前記第1インスタンスを参照するインスタンス参照情報と、を生成する第2生成部と、を備えることを特徴とするプログラマブル表示器。 A programmable display device that displays a screen defined by a project created by a creation device that creates a project that defines a screen having a composite object including at least one object, the composite object being used for displaying the programmable display device, the programmable display device comprising:
The creating device is
a master generating unit that generates master data including first display information for displaying a first object among the objects included in the composite object;
an identification unit that identifies second display information for displaying a second object different from the first object among the objects included in the composite object;
a slave generation unit that generates slave data including the second display information identified by the identification unit and reference information for referencing the first display information,
The programmable display comprises:
a first generation unit that generates a first instance of the first display information from the master data;
A programmable display device comprising: a second generation unit that generates, from the slave data, a second instance of the second display information and instance reference information that references the first instance generated by the first generation unit.
前記管理部によって管理された前記1つの状態情報が変更されたことに基づき、複数の前記第2インスタンスの全体の表示を変更する表示制御部と、を備えることを特徴とする請求項5に記載のプログラマブル表示器。 a management unit that manages the second instances as one piece of state information when the second generation unit generates the second instances;
The programmable display device according to claim 5, further comprising: a display control unit that changes the overall display of the plurality of second instances based on a change in the one piece of state information managed by the management unit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2022070152A JP7797298B2 (en) | 2022-04-21 | 2022-04-21 | Creation device and programmable display |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2022070152A JP7797298B2 (en) | 2022-04-21 | 2022-04-21 | Creation device and programmable display |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2023160082A JP2023160082A (en) | 2023-11-02 |
| JP7797298B2 true JP7797298B2 (en) | 2026-01-13 |
Family
ID=88515860
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2022070152A Active JP7797298B2 (en) | 2022-04-21 | 2022-04-21 | Creation device and programmable display |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7797298B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP7842726B2 (en) * | 2023-11-30 | 2026-04-08 | 花王株式会社 | Water-based ink for inkjet recording. |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2013080332A1 (en) | 2011-11-30 | 2013-06-06 | 三菱電機株式会社 | Project data creation device and programmable display unit |
| WO2014188492A1 (en) | 2013-05-20 | 2014-11-27 | 三菱電機株式会社 | Monitoring control device |
| JP2017054379A (en) | 2015-09-10 | 2017-03-16 | 株式会社デジタル | Programmable display, communication terminal, communication terminal control program, and image creation system |
| JP2019008661A (en) | 2017-06-27 | 2019-01-17 | シュナイダーエレクトリックホールディングス株式会社 | Programmable display |
| JP2020057283A (en) | 2018-10-03 | 2020-04-09 | シュナイダーエレクトリックホールディングス株式会社 | Data processing device and display device |
| WO2020157918A1 (en) | 2019-01-31 | 2020-08-06 | 三菱電機株式会社 | Rendering assistance device, display device, rendering assistance method, and computer program |
-
2022
- 2022-04-21 JP JP2022070152A patent/JP7797298B2/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2013080332A1 (en) | 2011-11-30 | 2013-06-06 | 三菱電機株式会社 | Project data creation device and programmable display unit |
| WO2014188492A1 (en) | 2013-05-20 | 2014-11-27 | 三菱電機株式会社 | Monitoring control device |
| JP2017054379A (en) | 2015-09-10 | 2017-03-16 | 株式会社デジタル | Programmable display, communication terminal, communication terminal control program, and image creation system |
| JP2019008661A (en) | 2017-06-27 | 2019-01-17 | シュナイダーエレクトリックホールディングス株式会社 | Programmable display |
| JP2020057283A (en) | 2018-10-03 | 2020-04-09 | シュナイダーエレクトリックホールディングス株式会社 | Data processing device and display device |
| WO2020157918A1 (en) | 2019-01-31 | 2020-08-06 | 三菱電機株式会社 | Rendering assistance device, display device, rendering assistance method, and computer program |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2023160082A (en) | 2023-11-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR101085720B1 (en) | Framework for creating modular web applications | |
| US7461077B1 (en) | Representation of data records | |
| US5537546A (en) | High-level adaptable bidirectional protocol for use between a hypermedia system and a plurality of editors | |
| US20020140707A1 (en) | Media production system using flowgraph representation of operations | |
| EP1536325B1 (en) | Gui application development support device and method, and computer program | |
| CN111079244B (en) | Distributed simulation platform based on behavior tree | |
| CN105607907A (en) | Model-driven control system with workflow engine dynamically switched | |
| JP7797298B2 (en) | Creation device and programmable display | |
| US11227105B1 (en) | Method and apparatus for structured documents | |
| CN113761304B (en) | Big data intelligent display configuration method based on dynamic parameters | |
| JP3980795B2 (en) | Digital video processing device | |
| CN116069314A (en) | Data large screen visualization processing method and device | |
| JP2008203912A (en) | Screen creation apparatus and method, and program | |
| JPH04313118A (en) | Attribute data managing method | |
| US20240012548A1 (en) | System and method for selectively implementing layout configurations amongst object groupings of a design under edit | |
| CN116719521A (en) | Demonstrator model editing method and system and configuration software system | |
| CN114327448A (en) | Method for generating form nested container | |
| JP2017188043A (en) | Information processing system | |
| KR100817506B1 (en) | Intelligent Content Creation Method | |
| US20240427573A1 (en) | Graphic design system utilizing variable data structures to implement themes for graphic designs | |
| US20250181227A1 (en) | Commenting feature for graphic design systems | |
| KR100681523B1 (en) | Matrix DV Structure in Pop World DVD Structure and Its Implementation Method | |
| JP2724242B2 (en) | Automatic program generator with macro block diagram processing function | |
| CN115639989A (en) | A visual form configuration method and related equipment for corrugated paper packaging industry | |
| JPH056910B2 (en) |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20241108 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20250723 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20250729 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20250925 |
|
| 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: 20251216 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20251224 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7797298 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |