JP7149826B2 - screen display device - Google Patents

screen display device Download PDF

Info

Publication number
JP7149826B2
JP7149826B2 JP2018227333A JP2018227333A JP7149826B2 JP 7149826 B2 JP7149826 B2 JP 7149826B2 JP 2018227333 A JP2018227333 A JP 2018227333A JP 2018227333 A JP2018227333 A JP 2018227333A JP 7149826 B2 JP7149826 B2 JP 7149826B2
Authority
JP
Japan
Prior art keywords
time
reference value
screen
partial
drawing time
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
Application number
JP2018227333A
Other languages
Japanese (ja)
Other versions
JP2020091354A (en
Inventor
剛 池添
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Schneider Electric Japan Holdings Ltd
Original Assignee
Schneider Electric Japan Holdings Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Schneider Electric Japan Holdings Ltd filed Critical Schneider Electric Japan Holdings Ltd
Priority to JP2018227333A priority Critical patent/JP7149826B2/en
Publication of JP2020091354A publication Critical patent/JP2020091354A/en
Application granted granted Critical
Publication of JP7149826B2 publication Critical patent/JP7149826B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Digital Computer Display Output (AREA)
  • Image Generation (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

本発明は、オブジェクトを含む画面の描画を制御する画面表示装置に関する。 The present invention relates to a screen display device that controls rendering of a screen containing objects.

プログラマブル表示器などのHMI(Human Machine Interface)機器のような表示装置は、オブジェクトを含む、特定の形式で作成された画面を表示する。このような表示装置は、画面の表示を更新するときに、変化するオブジェクトが少なければ、画面の描画時間を短縮するために、画面全体を描画する全体描画を行わずに、変化するオブジェクトのみを描画する部分描画を行う。 A display device such as an HMI (Human Machine Interface) device such as a programmable display displays a screen that includes objects and is created in a specific format. In such a display device, if there are few objects that change when updating the screen display, only the objects that change are displayed instead of drawing the entire screen in order to shorten the drawing time of the screen. Perform partial drawing to draw.

例えば、特許文献1には、通常の描画と、描画データの再利用とを切り替えて、全体の描画時間を短縮する情報機器が記載されている。この情報機器は、描画データの再利用率が再利用可否の判定のための閾値より大きいか否かに応じて、描画データを再利用するか否かを判定している。 For example, Patent Literature 1 describes an information device that reduces the overall drawing time by switching between normal drawing and reuse of drawing data. This information device determines whether or not to reuse drawing data depending on whether or not the reuse rate of drawing data is greater than a threshold value for determining whether or not the drawing data can be reused.

特開2013-218478号公報(2013年10月24日公開)Japanese Patent Application Laid-Open No. 2013-218478 (published on October 24, 2013)

一般に、画面の表示更新においては、全てのオブジェクトが変化することは少ないので、全体描画よりも部分描画の方が描画時間を短縮することができる。しかしながら、多くのオブジェクトが同時に変化した場合や、オブジェクトの重なりが多い場合は、部分描画よりも全体描画の方が描画時間を短縮できることがある。 In general, it is rare for all objects to change in the screen display update, so drawing time can be shortened by partial drawing rather than by whole drawing. However, when many objects change at the same time or when many objects overlap, the overall drawing may shorten the drawing time rather than the partial drawing.

これに対し、特許文献1に開示された情報機器では、上記の閾値が固定値であるため、オブジェクトの変化状況によっては、描画データの再利用の可否を適切に判定することができないことがある。その結果、描画データを再利用したにも関わらず、描画データを再利用しなかった場合(全体描画)よりも描画時間が長くなるという不都合が生じてしまう。 On the other hand, in the information device disclosed in Patent Document 1, since the threshold value is a fixed value, it may not be possible to appropriately determine whether drawing data can be reused depending on how the object changes. . As a result, although the drawing data is reused, the drawing time becomes longer than when the drawing data is not reused (whole drawing).

本発明の一態様は、画面の表示更新時に全体画面描画および部分画面描画のいずれを行うかを効率的に判定することを目的とする。 An object of one embodiment of the present invention is to efficiently determine whether to perform full screen drawing or partial screen drawing when updating the display of the screen.

上記の課題を解決するために、本発明の一態様に係る画面表示装置は、少なくとも1つのオブジェクトを含む画面を表示する画面表示装置であって、前記画面の全てを描画する全体描画、および前記画面において変化する前記オブジェクトを描画する部分描画のいずれが前記画面を速く更新できるかを基準値に基づいて予測して、予測した前記全体描画または前記部分描画で前記画面を描画する描画部と、少なくとも、前記部分描画に要した部分描画時間の前記全体描画に要した全体描画時間に対する長短に応じて前記基準値を更新する基準値更新部と、を備えている。 In order to solve the above problems, a screen display device according to an aspect of the present invention is a screen display device that displays a screen including at least one object, the screen display device comprising: a whole drawing that draws the entire screen; a drawing unit that predicts, based on a reference value, which of the partial drawings for drawing the changing object on the screen can update the screen faster, and draws the screen with the predicted whole drawing or the partial drawing; At least a reference value update unit for updating the reference value according to the length of the partial drawing time required for the partial drawing relative to the overall drawing time required for the entire drawing.

上記の構成によれば、基準値が部分描画時間の全体描画時間に対する長短に応じて更新されるので、基準値を適正な値に近づけることができる。これにより、部分描画を行ったにも関わらず、全体描画時間よりも部分描画時間が長くなったときには基準値を変更することで、全体描画を行う確率を高めるといった調整を行うことができる。 According to the above configuration, the reference value is updated according to the length of the partial drawing time with respect to the entire drawing time, so the reference value can be approximated to an appropriate value. As a result, when the partial drawing time is longer than the overall drawing time even though the partial drawing has been performed, the reference value can be changed to increase the probability of performing the overall drawing.

前記画面表示装置において、前記オブジェクトは、それぞれに固有の固有値を有し、前記基準値は、前記画面における全ての前記オブジェクトについての前記固有値の総和に対する任意の比率で予め設定されており、前記描画部は、変化する前記オブジェクトが有する前記固有値を前記画面において総計した総計値が前記基準値以上であるとき、前記全体描画を行う一方、前記総計値が前記基準値未満であるとき、前記部分描画を行い、前記基準値更新部は、前記部分描画時間が前記全体描画時間を超えるときに前記基準値を下げるように更新し、前記部分描画時間が前記全体描画時間以下であるときに前記基準値を上げるように更新するか、あるいは前記基準値を維持する。 In the screen display device, each of the objects has a unique eigenvalue, the reference value is set in advance as an arbitrary ratio to a sum of the eigenvalues of all the objects on the screen, and the rendering The unit draws the whole when a total value obtained by totaling the eigenvalues of the changing object on the screen is equal to or greater than the reference value, and draws the part when the total value is less than the reference value. and the reference value updating unit updates the reference value so as to decrease when the partial drawing time exceeds the overall drawing time, and updates the reference value when the partial drawing time is equal to or less than the overall drawing time. or maintain the reference value.

上記の構成によれば、これにより、部分描画を行ったにも関わらず、全体描画時間よりも部分描画時間が長くなったときには基準値を下げることで適正に調整することができる。また、全体描画時間よりも部分描画時間が短いときには、基準値を上げることで適正に調整することができる。 According to the above configuration, when the partial drawing time is longer than the total drawing time even though the partial drawing has been performed, the reference value can be lowered to appropriately adjust the drawing time. Also, when the partial drawing time is shorter than the total drawing time, the reference value can be raised to perform appropriate adjustment.

前記画面表示装置において、前記基準値更新部は、規定回数の前記部分描画に要した時間の平均である部分描画平均時間が前記全体描画時間を超えるとき、前記基準値を前記全体描画時間に対する前記部分描画平均時間の割合に応じて下げるように更新し、前記部分描画平均時間が前記全体描画時間以下であるとき、前記規定回数の前記部分描画によって描画された前記オブジェクトの1つ当たりの平均描画時間に前記基準値を乗じることによって前記画面について予測される前記部分描画に要する予測部分描画時間を算出し、予測部分描画時間が前記全体描画時間未満であるときに、前記基準値を前記全体描画時間に対する前記予測部分描画時間の割合に応じて上げるように更新し、予測部分描画時間が前記全体描画時間以上であるときに、前記基準値を維持する。 In the screen display device, the reference value update unit updates the reference value to the total drawing time when a partial drawing average time, which is an average of the times required for the partial drawing of a specified number of times, exceeds the overall drawing time. updating so as to decrease according to the ratio of the partial drawing average time, and when the partial drawing average time is equal to or less than the overall drawing time, the average drawing per one of the objects drawn by the partial drawing of the specified number of times A predicted partial drawing time required for the partial drawing predicted for the screen is calculated by multiplying the time by the reference value, and when the predicted partial drawing time is less than the overall drawing time, the reference value is applied to the overall drawing. The reference value is maintained when the predicted partial drawing time is greater than or equal to the total drawing time, and is updated according to the ratio of the predicted partial drawing time to the time.

上記の構成によれば、規定回数行われる部分描画に要した時間が部分描画平均時間として平均化される。これにより、規定回数の部分描画のうち例えばある1回の部分描画のみが突出して長時間を要する場合でも、部分描画平均時間では、その影響が緩和される。そして、基準値を更新する判断を、部分描画平均時間を全体描画時間と比較することによって行う。したがって、突発的に発生する可能性がある部分描画時間の大きな変化による、基準値の誤った更新を抑えることができる。また、全体描画時間に対する予測部分描画時間に対する割合に応じて、基準値を上げるか、基準値を維持するかを選択する。このように、基準値を上げるか維持するかを選択することで、基準値の不要な更新を回避して、より早く基準値を最適値に近づけることができる。 According to the above configuration, the time required for partial drawing performed the prescribed number of times is averaged as the average partial drawing time. As a result, even if, for example, only one partial drawing out of the prescribed number of partial drawings is outstanding and takes a long time, the partial drawing average time mitigates the effect. Then, a decision to update the reference value is made by comparing the partial drawing average time with the overall drawing time. Therefore, it is possible to suppress erroneous updating of the reference value due to a large change in the partial drawing time that may occur suddenly. Also, it selects whether to increase the reference value or maintain the reference value according to the ratio of the predicted partial drawing time to the entire drawing time. By selecting whether to raise or maintain the reference value in this way, unnecessary updating of the reference value can be avoided, and the reference value can be brought closer to the optimum value more quickly.

前記画面表示装置において、前記オブジェクトは、それぞれに固有の固有値を有し、前記描画部は、前記画面の表示が切り替えられたときに前記全体描画を行うとともに、切り替え表示された前記画面の初回の描画更新時に前記部分描画を行い、前記基準値更新部は、前記全体描画時間および前記部分描画時間を登録するとともに、切り替え表示された前記画面の初回の描画更新時に描画された前記オブジェクトの前記固有値を前記画面において総計した初期総計値を前記基準値に設定し、前記描画部は、2回目以降の描画更新時の、前記部分描画時間が前記全体描画時間未満であるとき、かつ変化する前記オブジェクトが有する前記固有値を前記画面において総計した総計値が前記基準値以下となる第1状態であるとき、前記部分描画時間が前記全体描画時間未満であるとき、かつ前記総計値が前記基準値を超える第2状態であるとき、または、前記部分描画時間が前記全体描画時間以上であるとき、かつ前記総計値が前記基準値以下となる第3状態であるときに、前記部分描画を行い、前記部分描画時間が前記全体描画時間以上であるとき、かつ前記総計値が前記基準値を超える第4状態であるときに、前記全体描画を行い、前記基準値更新部は、2回目以降の描画更新時に、前記第1状態における前記部分描画に要した実描画時間が前記全体描画時間以上であるとき、前記第2状態における前記実描画時間が前記全体描画時間未満であるとき、または前記第3状態であるとき、前記部分描画時間を前記実描画時間に更新するとともに、前記基準値を前記総計値に更新し、前記第2状態における前記実描画時間が前記全体描画時間以上であるとき、前記基準値を前記総計値と前記基準値との平均値に更新するとともに、前記部分描画時間を前記実描画時間と前記部分描画時間との平均値に更新し、前記第4状態であるとき、前記全体描画時間を新たに行われた前記全体描画に要した前記全体描画時間に更新する。 In the screen display device, each of the objects has a unique eigenvalue, and the drawing unit performs the overall drawing when the display of the screen is switched, and the first display of the switched display of the screen. The partial drawing is performed at the time of drawing update, and the reference value updating unit registers the entire drawing time and the partial drawing time, and updates the characteristic value of the object drawn at the first drawing update of the switched display screen. is totaled on the screen as the reference value, and the rendering unit sets the object to be changed when the partial rendering time is less than the total rendering time at the second or later rendering update. is in a first state in which a total value obtained by aggregating the eigenvalues of is equal to or less than the reference value on the screen, when the partial drawing time is less than the entire drawing time, and the total value exceeds the reference value In the second state, or in the third state where the partial drawing time is equal to or longer than the total drawing time and the total value is equal to or less than the reference value, the partial drawing is performed and the partial drawing is performed. When the drawing time is equal to or longer than the overall drawing time, and when the total value exceeds the reference value and is in a fourth state, the reference value update unit performs the overall drawing, and the reference value update unit updates the drawing for the second time or later. , when the actual drawing time required for the partial drawing in the first state is equal to or longer than the overall drawing time, when the actual drawing time in the second state is less than the overall drawing time, or in the third state when the partial drawing time is updated to the actual drawing time and the reference value is updated to the total sum value, and when the actual drawing time in the second state is equal to or greater than the overall drawing time, the reference value is updated to the average value of the total sum value and the reference value, and the partial drawing time is updated to the average value of the actual drawing time and the partial drawing time, and in the fourth state, the overall drawing The time is updated to the overall drawing time required for the newly performed overall drawing.

上記の構成によれば、初回の描画更新時の部分描画で得られる初期総計値が基準値に設定されるので、基準値を予め設定しておく必要がない。 According to the above configuration, the reference value is set to the initial total value obtained by the partial drawing at the time of the first drawing update, so there is no need to set the reference value in advance.

前記画面表示装置において、前記固有値は単位数である。 In the screen display device, the eigenvalue is the number of units.

上記の構成によれば、基準値が簡単に得ることができるオブジェクトの数で規定される。これにより、基準を得るための計算を簡素化することができる。 According to the above configuration, the reference value is defined by the number of objects that can be easily obtained. This can simplify the calculations for obtaining the reference.

前記画面表示装置において、前記固有値は前記画面の全体の面積に対するオブジェクトの面積の割合である。 In the screen display device, the eigenvalue is the ratio of the area of the object to the total area of the screen.

上記の構成によれば、画面に含まれるオブジェクト間で大きさに差があっても、全体描画および部分描画のいずれを行うかを、より適正に判定することができる。 According to the above configuration, even if there is a difference in size between objects included in the screen, it is possible to more appropriately determine which of the entire drawing and the partial drawing is to be performed.

前記画面表示装置において、前記固有値は前記オブジェクトの特性に応じて付与された重みである。 In the screen display device, the eigenvalue is a weight given according to the characteristics of the object.

上記の構成によれば、画面に含まれるオブジェクト間で重みに差があっても、全体描画および部分描画のいずれを行うかを、より適正に判定することができる。 According to the above configuration, even if there is a difference in weight between objects included in the screen, it is possible to more appropriately determine whether to perform full drawing or partial drawing.

前記画面表示装置において、前記描画部は、前記部分描画を行うときに、前記画面において複数の前記オブジェクトが重なっていることを、前記画面ごとに設定された、複数の前記オブジェクトが重なり合うことを示す重なり情報に基づいて判定し、複数の前記オブジェクトの少なくとも1つが変化するときに、重なり合う複数の前記オブジェクトを描画する。 In the screen display device, when performing the partial drawing, the drawing unit indicates that the plurality of objects overlap on the screen, and indicates that the plurality of objects overlap, which is set for each screen. A plurality of overlapping objects are drawn when at least one of the plurality of objects changes based on overlap information.

上記の構成によれば、重なり情報に基づいてオブジェクトの重なりを判定して、効率的に重なり合うオブジェクトを描画することができる。 According to the above configuration, it is possible to determine the overlapping of objects based on the overlapping information, and draw the overlapping objects efficiently.

前記画面表示装置において、前記描画部は、重なり合う複数の前記オブジェクトの描画に複数の描画順序が存在するときに、最も効率的に描画を行う前記描画順序を判定し、当該描画順序によって重なり合う複数の前記オブジェクトの描画を行う。 In the screen display device, the drawing unit determines the drawing order in which drawing is most efficiently performed when there are a plurality of drawing orders for drawing the plurality of overlapping objects, and determines the drawing order for drawing the plurality of overlapping objects according to the drawing order. Draw the object.

上記の構成によれば、描画をより短い時間で行うことができる順序を選択することで、画面の更新時間を短縮することができる。 According to the above configuration, it is possible to shorten the screen update time by selecting an order that allows drawing to be performed in a shorter time.

前記画面表示装置において、前記基準値は前記画面ごとに設定されている。 In the screen display device, the reference value is set for each screen.

上記の構成によれば、画面を切り替えたときに、基準値の最適化を改めて行う必要がなくなる。したがって、基準値が最適値に到達する時間を短くすることができる。 According to the above configuration, there is no need to optimize the reference value again when the screen is switched. Therefore, the time required for the reference value to reach the optimum value can be shortened.

本発明の一態様によれば、画面の表示更新時に全体画面描画および部分画面描画のいずれを行うかを効率的に判定することができる。 According to one aspect of the present invention, it is possible to efficiently determine whether to perform full screen drawing or partial screen drawing when updating the screen display.

本発明の各実施形態に係る制御システムの構成を示すブロック図である。1 is a block diagram showing the configuration of a control system according to each embodiment of the present invention; FIG. 上記プログラマブル表示器のシステム構成を示すブロック図である。It is a block diagram which shows the system configuration|structure of the said programmable display. 上記プログラマブル表示器による画面の表示更新の処理手順を示すフローチャートである。It is a flowchart which shows the display update processing procedure of a screen by the said programmable display. 上記プログラマブル表示器による画面切替時の処理手順を示すフローチャートである。It is a flow chart which shows a processing procedure at the time of screen change by the above-mentioned programmable indicator. 図4のフローチャートの説明で参照する切り替えられる画面の例を示す図である。5A and 5B are diagrams showing examples of switched screens referred to in the description of the flowchart of FIG. 4; FIG. 図4のフローチャートにおける処理によってリスト化されたオブジェクト情報とオブジェクト重なり情報とを示す図である。5 is a diagram showing object information and object overlap information listed by the processing in the flowchart of FIG. 4; FIG. 上記プログラマブル表示器による基準値更新の処理手順を示すフローチャートである。It is a flow chart which shows a processing procedure of reference value update by the above-mentioned programmable indicator. 図7のフローチャートにおける処理で用いる第1計算方法で用いる時間比率と係数との関係を示すグラフである。8 is a graph showing the relationship between the time ratio and the coefficient used in the first calculation method used in the processing in the flowchart of FIG. 7; 図7のフローチャートにおける処理で用いる第2計算方法で用いる時間比率と係数との関係を示すグラフである。8 is a graph showing the relationship between the time ratio and the coefficient used in the second calculation method used in the processing in the flowchart of FIG. 7; 上記プログラマブル表示器による他の基準値更新の処理手順を示すフローチャートである。It is a flowchart which shows the processing procedure of another reference value update by the said programmable display. (a)および(b)は上記基準値をオブジェクトの面積で規定する場合のオブジェクトと面積を規定する矩形との関係を示す図である。(a) and (b) are diagrams showing the relationship between the object and the rectangle defining the area when the reference value is defined by the area of the object. 上記基準値をオブジェクトの面積とする場合の上記基準値の更新に利用される、画面全体の面積に対する各オブジェクト割合の例を示す図である。FIG. 10 is a diagram showing an example of the ratio of each object to the area of the entire screen, which is used for updating the reference value when the reference value is the area of the object;

〔実施形態1〕
本発明の実施形態1について図1~図9に基づいて説明すると、以下の通りである。
[Embodiment 1]
The first embodiment of the present invention will be described below with reference to FIGS. 1 to 9. FIG.

まず、本実施形態に係る制御システムについて説明する。 First, the control system according to this embodiment will be described.

図1は、本実施形態に係る制御システムの構成を示すブロック図である。図2は、プログラマブル表示器1の要部の構成を示すブロック図である。 FIG. 1 is a block diagram showing the configuration of a control system according to this embodiment. FIG. 2 is a block diagram showing the configuration of the essential parts of the programmable display 1. As shown in FIG.

プログラマブル表示器1(画面表示装置)は、専用のOS(Operating System)を実装した組み込み機器であり、プログラマブル表示器1の各種の機能を実現するためのHMIプログラムを実行する機能を備えている。プログラマブル表示器1は、工場などの厳しい環境に適合するように、防塵性、防滴性、耐振動性などを高めたHMI機器である。 The programmable display 1 (screen display device) is a built-in device with a dedicated OS (Operating System) installed, and has a function of executing an HMI program for realizing various functions of the programmable display 1 . The programmable display 1 is an HMI device with improved dust resistance, drip resistance, vibration resistance, etc., so as to be suitable for harsh environments such as factories.

HMIプログラムは、外部機器との通信、当該外部機器から取得したデータの表示、入力装置を用いた操作者による操作の受け付けなどの各種の機能を実現するプログラムである。 The HMI program is a program that realizes various functions such as communication with an external device, display of data acquired from the external device, and reception of operations by an operator using an input device.

まず、プログラマブル表示器1のハードウェア構成について説明する。 First, the hardware configuration of the programmable display 1 will be described.

図1に示すように、プログラマブル表示器1は、CPU(Central Processing Unit)11と、メインメモリ12と、ROM(Read Only Memory)13と、ユーザメモリ14と、タッチパネルを15と、表示パネル16(表示部)と、インターフェース部17とを備えている。 As shown in FIG. 1, the programmable display device 1 includes a CPU (Central Processing Unit) 11, a main memory 12, a ROM (Read Only Memory) 13, a user memory 14, a touch panel 15, and a display panel 16 ( display unit) and an interface unit 17 .

CPU11は、HMIプログラムを実行する処理装置である。具体的には、CPU11は、HMIプログラムの実行に際して、メインメモリ12、ユーザメモリ14、タッチパネル15などからデータを受け取り、当該データに対して演算または加工を施した結果を、メインメモリ12、ユーザメモリ14、表示パネル16などに出力する。 The CPU 11 is a processing device that executes HMI programs. Specifically, when executing the HMI program, the CPU 11 receives data from the main memory 12, the user memory 14, the touch panel 15, etc., and stores the results of computation or processing on the data in the main memory 12, the user memory, or the like. 14, output to the display panel 16 or the like.

メインメモリ12は、プログラマブル表示器1における主記憶装置を構成するメモリであり、DRAM(Dynamic Random Access Memory)によって構成される。 The main memory 12 is a memory that constitutes the main storage device in the programmable display device 1, and is composed of a DRAM (Dynamic Random Access Memory).

ROM13は、プログラマブル表示器1の起動時やリセット時に実行されるBIOS(Basic Input Output System)などの、プログラマブル表示器1の動作に不可欠なプログラムを記憶している。 The ROM 13 stores programs essential for the operation of the programmable display 1, such as BIOS (Basic Input Output System) executed when the programmable display 1 is activated or reset.

ユーザメモリ14は、ユーザが作成したデータ、例えば後述するHMI画面を表示するためのメイン画面データを記憶する大容量の記憶装置である。ユーザメモリ14は、FEPROM(Flash Erasable and Programmable ROM)などで構成されている。 The user memory 14 is a large-capacity storage device that stores data created by the user, for example, main screen data for displaying an HMI screen, which will be described later. The user memory 14 is composed of FEPROM (Flash Erasable and Programmable ROM) or the like.

タッチパネル15は、表示パネル16上に配置されており、表示パネル16に表示された画面上でのタッチ操作を受け入れて、タッチ操作信号を入力信号として出力する。 The touch panel 15 is arranged on the display panel 16, receives a touch operation on the screen displayed on the display panel 16, and outputs a touch operation signal as an input signal.

表示パネル16は、ユーザメモリ14に記憶されているメイン画面データに基づいたHMI画面を表示する。表示パネル16としては、液晶表示パネルなどの平板型表示パネルが用いられる。 The display panel 16 displays an HMI screen based on main screen data stored in the user memory 14 . As the display panel 16, a flat display panel such as a liquid crystal display panel is used.

インターフェース部17は、制御機器2と通信可能に接続するための接続部と、PC(パーソナルコンピュータ)4と通信可能に接続するための接続部とを含んでいる。インターフェース部17は、シリアルインターフェース、LAN(Local Area Network)、USB(Universal Serial Bus)などの各種のインターフェースを装備している。 The interface unit 17 includes a connection unit for communicably connecting with the control device 2 and a connection unit for communicably connecting with the PC (personal computer) 4 . The interface unit 17 is equipped with various interfaces such as a serial interface, LAN (Local Area Network), and USB (Universal Serial Bus).

制御機器2は、PLC(Programmable Logic Controller)、温度調節計、インバータなどの外部機器であり、プログラマブル表示器1と通信する機能を備えている。制御機器2は、デバイス20との間でデータの授受を行なう。デバイス20としては、センサ、スイッチのような入力機器や、アクチュエータ、リレー、電磁弁、表示器のような出力機器が用いられる。 The control device 2 is an external device such as a PLC (Programmable Logic Controller), a temperature controller, an inverter, etc., and has a function of communicating with the programmable display 1 . The control device 2 exchanges data with the device 20 . Input devices such as sensors and switches, and output devices such as actuators, relays, solenoid valves, and indicators are used as the devices 20 .

続いて、プログラマブル表示器1のシステム構成について説明する。 Next, the system configuration of the programmable display 1 will be explained.

図2に示すように、プログラマブル表示器1は、制御機能を有する部分としてHMI制御部3を含んでいる。 As shown in FIG. 2, the programmable display 1 includes an HMI control section 3 as a portion having control functions.

HMI制御部3は、HMIプログラムがCPU11によって実行されることで実現される、HMI機能を有する部分である。 The HMI control unit 3 is a part having an HMI function realized by executing the HMI program by the CPU 11 .

ここで、HMI機能とは、ユーザの入力操作に応じた制御機器2への指示の発生と、制御機器2からの各種データの取得と、取得した当該各種データの表示および上記入力操作の受け付けを行うためのHMI画面の表示とを含む機能である。HMI制御部3は、HMI機能として、ユーザの操作入力および制御機器2が保持するデータの変化に基づいて各部を制御する動作制御部31と、HMI画像の表示を制御する表示制御部32とを有している。 Here, the HMI function is to generate an instruction to the control device 2 according to the user's input operation, acquire various data from the control device 2, display the acquired various data, and accept the input operation. It is a function including display of an HMI screen for performing. The HMI control unit 3 includes, as HMI functions, an operation control unit 31 that controls each unit based on user operation input and changes in data held by the control device 2, and a display control unit 32 that controls display of HMI images. have.

HMI画面は、制御機器2に接続されたデバイス20の状態を表示したり、タッチパネル15への操作を受け付けたりするための各種のオブジェクトを含む画面である。HMI画面に設けられるオブジェクトとしては、ランプ画像、データ表示器画像、スイッチ画像などの各種の部品画像が用意されている。また、オブジェクトとしては、各種の図形(円形、矩形、多角形、直線など)、イメージなども利用することができる。 The HMI screen is a screen including various objects for displaying the status of the device 20 connected to the control device 2 and accepting operations on the touch panel 15 . Various component images such as a lamp image, a data display image, and a switch image are prepared as objects provided on the HMI screen. Various figures (circles, rectangles, polygons, straight lines, etc.) and images can also be used as objects.

このようなHMI画面を表示するための画面データは、PC4において作成されて、ユーザメモリ14に保存されている。PC4は、画面の作成および編集を行うアプリケーションプログラムによって実現される機能ブロックとして作画編集部41を備えている。 Screen data for displaying such an HMI screen are created in the PC 4 and stored in the user memory 14 . The PC 4 has a drawing editing section 41 as a functional block implemented by an application program for creating and editing screens.

動作制御部31は、タッチパネル15におけるユーザのタッチによる入力操作に応じた操作指示を発生する。この操作指示としては、制御機器2の起動・停止指示、制御機器2に与える制御データの変更、画面の切り替えなどがある。また、動作制御部31は、制御機器2のデータの変化に応じた制御指示を発生する。この制御指示としては、画面の切り替えなどがある。 The operation control unit 31 generates an operation instruction according to an input operation by a user's touch on the touch panel 15 . The operation instructions include start/stop instructions for the control device 2, change of control data given to the control device 2, screen switching, and the like. Further, the operation control unit 31 generates a control instruction according to changes in the data of the control device 2 . This control instruction includes screen switching and the like.

表示制御部32は、画面データに基づいて表示パネル16にHMI画面を表示させる制御処理を行う。また、表示制御部32は、インターフェース部17を介して取得した制御機器2のデータを、HMI画面に反映させる処理を行う。例えば、表示制御部32は、HMI画面において、上述のランプ画像を点灯・消灯させたり、上述のデータ表示器画像にデータを表示させたりする処理を行う。また、表示制御部32は、上記操作指示に応じてHMI画面の状態を変化させる処理を行う。例えば、表示制御部32は、上述のスイッチ画像を操作する上記操作指示を受けて、当該スイッチ画像の表示状態(色、形状など)を変化させる処理を行う。さらに、表示制御部32は、ユーザの操作に応じてHMI画面の切り替え処理を行なう。 The display control unit 32 performs control processing for displaying the HMI screen on the display panel 16 based on the screen data. Further, the display control unit 32 performs a process of reflecting the data of the control device 2 acquired via the interface unit 17 on the HMI screen. For example, the display control unit 32 performs processing for turning on/off the above-described lamp image on the HMI screen, and for displaying data on the above-described data display device image. Further, the display control unit 32 performs processing for changing the state of the HMI screen according to the operation instruction. For example, the display control unit 32 receives the operation instruction for operating the switch image, and performs processing for changing the display state (color, shape, etc.) of the switch image. Further, the display control unit 32 performs HMI screen switching processing in accordance with the user's operation.

また、表示制御部32は、画面(HMI画面)の表示の更新において、画面の全てを描画する全体描画と、変化するオブジェクトを描画する部分描画とのいずれかで描画を行う描画制御機能を備えている。表示制御部32は、この描画制御機能を実現するために、描画部331と、描画時間計測部332と、基準値更新部333とを有している。 In addition, the display control unit 32 has a drawing control function that performs either overall drawing for drawing the entire screen or partial drawing for drawing changing objects when updating the display of the screen (HMI screen). ing. The display control unit 32 has a drawing unit 331, a drawing time measuring unit 332, and a reference value updating unit 333 in order to realize this drawing control function.

描画部331は、ユーザメモリ14に記憶されている画面データに基づいて、表示パネルに表示させる。具体的には、描画部331は、画面データを、図示しないビデオメモリに一時的に展開し、表示パネル16に画素単位で転送する。ビデオメモリは、メインメモリ12の一部の記憶領域に割り当てられてもよいし、VRAM(Video RAM)として別途設けられてもよい。 The drawing unit 331 causes the display panel to display based on the screen data stored in the user memory 14 . Specifically, the drawing unit 331 temporarily develops the screen data in a video memory (not shown) and transfers it to the display panel 16 in units of pixels. The video memory may be allocated to a partial storage area of the main memory 12, or may be separately provided as a VRAM (Video RAM).

また、描画部331は、全体描画および部分描画のいずれが画面を速く更新できるかを基準値に基づいて予測して、予測した全体描画または部分描画で、画面をビデオメモリに描画する。 The drawing unit 331 also predicts which of the whole drawing and the partial drawing can update the screen faster based on the reference value, and draws the screen in the video memory with the predicted whole drawing or partial drawing.

基準値は、後述する基準値更新部333が、画面の表示更新時に全体描画および部分描画のいずれを行うかを判定する基準となる値である。本実施形態では、基準値をオブジェクトの数(オブジェクト数)で規定する。また、本実施形態において、オブジェクトは、それぞれに固有の固有値として単位数“1”を有するものとする。基準値の規定については、後述する第1の手法および第2の手法の説明において言及する。 The reference value is a reference value used by the reference value updating unit 333, which will be described later, to determine whether to perform the entire drawing or the partial drawing when updating the display of the screen. In this embodiment, the reference value is defined by the number of objects (the number of objects). Also, in this embodiment, each object is assumed to have the number of units "1" as its unique eigenvalue. The specification of the reference value will be referred to in the description of the first method and the second method, which will be described later.

描画時間計測部332は、描画部331が行う描画の実行時間(描画時間)を計測する。具体的には、描画時間計測部332は、描画を開始したという通知を描画部331より受けてから、描画を終了したという通知を描画部331より受けるまでの時間を計測する。描画時間計測部332は、計測した描画時間をメインメモリ12に記憶させる。 The drawing time measurement unit 332 measures the drawing execution time (drawing time) performed by the drawing unit 331 . Specifically, the drawing time measurement unit 332 measures the time from receiving a notification that drawing has started from the drawing unit 331 to receiving a notification that drawing has ended from the drawing unit 331 . The drawing time measurement unit 332 stores the measured drawing time in the main memory 12 .

基準値更新部333は、上記の基準値を描画時間計測部332によって計測された描画時間に基づいて調整することにより更新する。具体的には、基準値更新部333は、少なくとも、描画部331が部分描画に要した部分描画時間の、描画部331が全体描画に要した全体描画時間に対する長短に応じて基準値を更新する。 The reference value update unit 333 updates the reference value by adjusting it based on the drawing time measured by the drawing time measurement unit 332 . Specifically, the reference value updating unit 333 updates the reference value according to at least the length of the partial drawing time required for the partial drawing by the drawing unit 331 relative to the overall drawing time required by the drawing unit 331 for the entire drawing. .

基準値更新部333による基準値の更新については、後に詳しく説明する。 The update of the reference value by the reference value updating unit 333 will be described later in detail.

続いて、プログラマブル表示器1による描画の動作について説明する。図3は、プログラマブル表示器1による画面の表示更新の処理手順を示すフローチャートである。 Next, the operation of drawing by the programmable display device 1 will be described. FIG. 3 is a flow chart showing a processing procedure for updating the screen display by the programmable display device 1. As shown in FIG.

図3に示すように、プログラマブル表示器1において、描画部331は、最初に画面を表示するとき、描画モードを全体描画に設定して(ステップS1)、当該画面モード、すなわち全体描画で画面を描画する(ステップS2)。 As shown in FIG. 3, in the programmable display device 1, when the screen is displayed for the first time, the drawing unit 331 sets the drawing mode to full drawing (step S1), and displays the screen in the screen mode, that is, the whole drawing. Draw (step S2).

次いで、描画部331は、オブジェクトに何らかの変化が生じることで画面に更新が必要であるか否かを判定する(ステップS3)。描画部331は、画面に更新が必要となるまで待機を続ける(ステップS3のNO)。また、描画部331は、画面に更新が必要であると判定すると(ステップS3のYES)、画面において更新しなければならないオブジェクト数が基準値以上であるか否かを判定する(ステップS4)。 Next, the drawing unit 331 determines whether or not the screen needs to be updated due to some change in the object (step S3). The drawing unit 331 continues waiting until the screen needs to be updated (NO in step S3). When the drawing unit 331 determines that the screen needs to be updated (YES in step S3), it determines whether the number of objects that must be updated on the screen is equal to or greater than a reference value (step S4).

描画部331は、ステップS4において、更新しなければならないオブジェクト数(固有値“1”を総計した総計値)が基準値以上でないと判定すると(NO)、画面において更新しなければならないオブジェクトが重なりのないオブジェクトのみであるか否かを判定する(ステップS5)。 If the rendering unit 331 determines in step S4 that the number of objects to be updated (the total value of the eigenvalues “1”) is not equal to or greater than the reference value (NO), the objects to be updated on the screen overlap. It is determined whether or not there are only objects that do not exist (step S5).

描画部331は、ステップS4において、更新しなければならないオブジェクト数が基準値以上であると判定すると(YES)、描画モードを全体描画に設定して(ステップS6)、処理をステップS2に戻す。 When the drawing unit 331 determines in step S4 that the number of objects to be updated is equal to or greater than the reference value (YES), it sets the drawing mode to full drawing (step S6), and returns the process to step S2.

描画部331は、ステップS5において、更新しなければならないオブジェクトが重なりのないオブジェクトのみであると判定すると(YES)、描画モードを重なり検索を行わない部分描画に設定して(ステップS7)、処理をステップS2に戻す。また、描画部331は、ステップS5において、更新しなければならないオブジェクトが重なりのあるオブジェクトを含むと判定すると(NO)、描画モードを重なり検索を行う部分描画に設定して(ステップS8)、処理をステップS2に戻す。 When the drawing unit 331 determines in step S5 that only non-overlapping objects are to be updated (YES), the drawing unit 331 sets the drawing mode to partial drawing in which overlap search is not performed (step S7). is returned to step S2. Further, when the drawing unit 331 determines in step S5 that the object to be updated includes an overlapping object (NO), the drawing unit 331 sets the drawing mode to partial drawing for overlapping search (step S8). is returned to step S2.

ここで、上記の重なり検索について説明する。図4は、プログラマブル表示器1による画面切替時の処理手順を示すフローチャートである。図5は、図4のフローチャートの説明で参照する切り替えられる画面100の例を示す図である。図6は、図4のフローチャートにおける処理によってリスト化されたオブジェクト情報とオブジェクト重なり情報とを示す図である。 Now, the above overlap search will be described. FIG. 4 is a flow chart showing a processing procedure when switching screens by the programmable display device 1 . FIG. 5 is a diagram showing an example of the switched screen 100 referred to in the description of the flowchart of FIG. FIG. 6 is a diagram showing object information and object overlapping information listed by the processing in the flowchart of FIG.

図4に示すように、描画部331は、まず、タッチパネル15への操作などに応じて画面切替が発生すると、切り替えられる画面に含まれるオブジェクト情報をPC4で生成されたオブジェクト重なり情報と共にリスト化する(ステップS11)。 As shown in FIG. 4, first, when screen switching occurs in response to an operation on the touch panel 15, the drawing unit 331 lists object information included in the switched screen together with object overlapping information generated by the PC 4. (Step S11).

図5に示す画面100が切り替えられて表示される場合、図6に示すオブジェクト重なり情報が用いられる。オブジェクト重なり情報は、PC4の作画編集部41によって、画面の作成時に複数のオブジェクトが重なるように配置された場合に生成される。このオブジェクト重なり情報は、PC4からプログラマブル表示器1に画面データと併せて転送され、画面データと共にユーザメモリ14に記憶されている。 When the screen 100 shown in FIG. 5 is switched and displayed, the object overlap information shown in FIG. 6 is used. The object overlap information is generated by the drawing editing unit 41 of the PC 4 when a plurality of objects are arranged so as to overlap each other when the screen is created. This object overlapping information is transferred from the PC 4 to the programmable display device 1 together with the screen data, and is stored in the user memory 14 together with the screen data.

画面100は、オブジェクトとして、スイッチ101、数値表示器102および円103,104を含んでいる。スイッチ101は、オン・オフ操作、切替操作などをするための操作部品である。数値表示器102は、制御機器2などからデータとして取得した数値を表示する表示部品である。円104は、円103よりも小さく、円103の上に重ねて配置されている。円103,104は、それぞれ異なる色で塗りつぶされている。 A screen 100 includes a switch 101, a numerical display 102, and circles 103 and 104 as objects. The switch 101 is an operation component for performing on/off operation, switching operation, and the like. The numerical display 102 is a display component that displays numerical values acquired as data from the control device 2 or the like. Circle 104 is smaller than circle 103 and is superimposed on circle 103 . Circles 103 and 104 are filled with different colors.

画面100に対するオブジェクト重なり情報は、図6に示すように、スイッチ101、数値表示器102および円103,104のそれぞれについて、重なりの有無を対応付けたリスト形式で作成される。このオブジェクト重なり情報においては、画面100において設けられる各種のオブジェクトについて、オブジェクト名に、序数として1,2,…が付与されている。 The object overlap information for the screen 100 is created in list form, as shown in FIG. In this object overlap information, various objects provided on the screen 100 are assigned ordinal numbers 1, 2, . . . to the object names.

描画部331は、重なり検索において、上記のように作成されたオブジェクト重なり情報において重なりのあるオブジェクトを検索する。そして、描画部331は、重なりのあるオブジェクトについて、画面の表示更新が効率的に行われるような描画更新順序を選択する。例えば、図5に示す円103,104(二重円)の場合、2つのオブジェクトから構成される二重円は、一方のみが変化するが他方は変化しなくても、全体として描画しなおす必要があるので、他方も描画しなければならない。 In the overlap search, the drawing unit 331 searches for overlapping objects in the object overlap information created as described above. Then, the drawing unit 331 selects a drawing update order for efficiently updating the display of the overlapping objects. For example, in the case of the circles 103 and 104 (double circles) shown in FIG. 5, the double circle composed of two objects must be redrawn as a whole even if only one changes but the other does not. , so the other must also be drawn.

例えば、円104のみが変化する場合、円104のみを変化に応じて描画する。また、円103のみが変化する場合、円103を変化に応じて描画した後に、円104を描画前と同じ状態に描画するというように順序(描画順序)が決まっている。これに対し、円103,104の両方が変化する場合、どちらから先に変化させるかに応じて、描画順序が異なる。 For example, if only circle 104 changes, only circle 104 is drawn according to the change. Also, when only the circle 103 changes, the order (drawing order) is determined such that after the circle 103 is drawn according to the change, the circle 104 is drawn in the same state as before drawing. On the other hand, when both the circles 103 and 104 are changed, the drawing order differs depending on which one is changed first.

第1ケースでは、円104を変化させた後に円103を変化させて円104を変化させる。第1ケースは、円104を描画した後に、円104の上に大きい円103を描画するため、最後に円103の上に円104を描画する必要がある。第2ケースでは、円103を変化させた後に円104を変化させる。第2ケースが第1ケースより効率的であるので、描画部331は、円103,104の両方が変化する場合は、第2ケースによる順序を選択して円103,104を描画する。 In the first case, circle 104 is changed by changing circle 103 after changing circle 104 . In the first case, after drawing the circle 104, the large circle 103 is drawn on the circle 104, so the circle 104 needs to be drawn on the circle 103 at the end. In the second case, circle 104 is changed after circle 103 is changed. Since the second case is more efficient than the first case, rendering unit 331 selects the order according to the second case to render circles 103 and 104 when both circles 103 and 104 change.

描画部331は、重なりの検索を行った上で、重なり合う複数のオブジェクトを探し出したときに、これらのオブジェクトの変化状況に応じて、効率的な描画の順序を選択し、選択した順序にしたがって描画を行う。このように、描画をより短い時間で行うことができる順序を選択することで、画面の更新時間を短縮することができる。 When the drawing unit 331 searches for overlapping objects and finds a plurality of overlapping objects, the drawing unit 331 selects an efficient drawing order according to the change state of these objects, and draws according to the selected order. I do. In this way, by selecting the order in which drawing can be performed in a shorter time, it is possible to shorten the screen update time.

重なり合うオブジェクトの描画を行う範囲の計算は、座標計算などが必要であり、多くの演算処理を必要とする。このため、パーソナルコンピュータのように処理能力の高いCPUを搭載した機器では、上記の演算処理によるCPUの負担が少ない。しかしながら、プログラマブル表示器1のような専用機では、処理能力の低いCPUを搭載していることが多いため、上記の演算処理によるCPUの負担が大きい。そこで、上記のように、オブジェクトの描画に複数の描画順序が存在するときに、描画部331が効率的に描画を行える描画順序を選択することにより、上記演算処理の量を少なくして、CPU11の負担を軽減することができる。 Calculation of the range for drawing overlapping objects requires coordinate calculation and the like, and requires a large amount of arithmetic processing. For this reason, in a device such as a personal computer equipped with a CPU having a high processing capability, the load on the CPU due to the above arithmetic processing is small. However, since a dedicated machine such as the programmable display device 1 is often equipped with a CPU with a low processing capability, the load on the CPU due to the above arithmetic processing is heavy. Therefore, as described above, when there are a plurality of drawing orders for drawing an object, by selecting a drawing order in which the drawing unit 331 can draw efficiently, the amount of the above arithmetic processing can be reduced and the CPU 11 can reduce the burden on

また、描画部331は、位置、形状などが変化することによって重なる状態が変化するオブジェクトについても、上記のように、重なりの検索を行った上で、オブジェクトの変化状況に応じて、効率的な描画の順序を選択し、選択した順序にしたがって描画を行う。 In addition, the rendering unit 331 searches for overlapping objects as described above, even for objects whose overlapping state changes due to changes in position, shape, etc. Select the drawing order and draw according to the selected order.

位置については、オブジェクトが移動したときに、重なりが生じる場合と重なりが生じない場合とがある。また、形状については、オブジェクトの大きさが変化したときに、重なりが生じる場合と重なりが生じない場合とがある。これらの場合、画面の作成時には重なりを定義できないので、プログラマブル表示器1が実際に描画動作しているときに重なりを判定する必要がある。このため、描画部331は、画面の更新を行う前に、これらの重なり状態を認識した上で重なり合うオブジェクトを描画する。 As for the position, when the objects are moved, they may or may not overlap. As for the shape, when the size of the object changes, there are cases where overlap occurs and cases where overlap does not occur. In these cases, since the overlap cannot be defined when the screen is created, it is necessary to determine the overlap while the programmable display device 1 is actually performing the drawing operation. Therefore, the drawing unit 331 draws the overlapping objects after recognizing their overlapping state before updating the screen.

引き続いて、プログラマブル表示器1による基準値の更新動作について説明する。 Subsequently, the updating operation of the reference value by the programmable display device 1 will be explained.

ここでは、基準値の更新について、代表的な2つの手法について説明する。 Here, two representative methods for updating the reference value will be described.

まず、第1の手法について説明する。図7は、プログラマブル表示器1による基準値更新の処理手順を示すフローチャートである。 First, the first method will be explained. FIG. 7 is a flow chart showing a processing procedure for updating the reference value by the programmable display device 1. As shown in FIG.

なお、以降の説明では、描画部331が全体描画に要した時間を全体描画時間Taとし、描画部331が部分描画に要した時間を部分描画時間Tpとする。描画時間計測部332は、描画部331が全体描画および部分描画を行うごとに、全体描画時間Taおよび部分描画時間Tpを計測して、メインメモリ12に記憶させている。 In the following description, the time taken by the drawing unit 331 for the entire drawing is taken as the overall drawing time Ta, and the time taken by the drawing unit 331 for the partial drawing is taken as the partial drawing time Tp. The drawing time measurement unit 332 measures the overall drawing time Ta and the partial drawing time Tp each time the drawing unit 331 performs the overall drawing and the partial drawing, and stores them in the main memory 12 .

図7に示すように、まず、画面描画が繰り返し行われている状態で、描画部331は、部分描画がn回(規定回数)発生したか否かを判定する(ステップS21)。描画部331は、ステップS21において、部分描画がn回発生しなかったと判定すると(NO)、処理を終える。 As shown in FIG. 7, first, in a state where screen drawing is repeatedly performed, the drawing unit 331 determines whether or not partial drawing has occurred n times (predetermined number of times) (step S21). When the drawing unit 331 determines in step S21 that partial drawing has not occurred n times (NO), the process ends.

描画部331がステップS21において部分描画がn回発生したと判定すると(YES)、基準値更新部333は、その判定結果を受けて、n回の部分描画時間Tpの平均が全体描画時間Taを超えたか否かを判定する(ステップS22)。基準値更新部333は、ステップS22において、上記の平均が全体描画時間Taを超えたと判定すると(YES)、第1計算方法によって基準値を更新して(ステップS23)、処理を終える。 When the drawing unit 331 determines in step S21 that the partial drawing has occurred n times (YES), the reference value updating unit 333 receives the determination result, and the average of the n partial drawing times Tp equals the total drawing time Ta. It is determined whether or not it has exceeded (step S22). If the reference value updating unit 333 determines in step S22 that the average has exceeded the total drawing time Ta (YES), it updates the reference value using the first calculation method (step S23), and ends the process.

また、基準値更新部333は、ステップS22において、上記の平均が全体描画時間Ta以下であると判定すると(NO)、さらに予測部分描画時間Tppが全体描画時間Ta未満であるか否かを判定する(ステップS24)。 Further, when the reference value updating unit 333 determines in step S22 that the above average is equal to or less than the total drawing time Ta (NO), it further determines whether the predicted partial drawing time Tpp is less than the total drawing time Ta. (step S24).

ここで、オブジェクト1つ分の平均描画時間Tavは、n回の部分描画時間Tp(Tp1,Tp2,…,Tpn)の合計をn回の更新されたオブジェクトの総数Nで除することで算出される(下記の式(1))。また、予測部分描画時間Tppは、オブジェクト1つ分の平均描画時間Tavに基準値Vrを乗じることで算出される(下記の式(2))。 Here, the average rendering time Tav for one object is calculated by dividing the sum of n partial rendering times Tp (Tp1, Tp2, . . . , Tpn) by the total number N of objects updated n times. (Formula (1) below). Also, the predicted partial drawing time Tpp is calculated by multiplying the average drawing time Tav for one object by the reference value Vr (equation (2) below).

Tav=(Tp1+Tp2+,…,+Tpn)/N …(1)
Tpp=Tav*Vr …(2)
基準値更新部333は、ステップS24において、予測部分描画時間Tppが全体描画時間Ta未満であると判定すると(YES)、第2計算方法によって基準値を更新して(ステップS25)、処理を終える。また、基準値更新部333は、ステップS24において、予測部分描画時間Tppが全体描画時間Ta以上であると判定すると(NO)、基準値を維持したまま(ステップS26)、処理を終える。
Tav=(Tp1+Tp2+,...,+Tpn)/N...(1)
Tpp=Tav*Vr (2)
When the reference value updating unit 333 determines in step S24 that the predicted partial drawing time Tpp is less than the total drawing time Ta (YES), it updates the reference value by the second calculation method (step S25), and ends the process. . Further, when the reference value updating unit 333 determines in step S24 that the predicted partial drawing time Tpp is equal to or longer than the total drawing time Ta (NO), the processing ends while maintaining the reference value (step S26).

ステップS26においては、基準値Vrが以下の式で表される値になっている。 In step S26, the reference value Vr is the value represented by the following formula.

(Vr-1)*Tav <Ta≦Tav*Vr
この場合、基準値を変更する必要はない。
(Vr−1)*Tav<Ta≦Tav*Vr
In this case, there is no need to change the reference value.

ここで、第1計算方法および第2計算方法について説明する。 Here, the first calculation method and the second calculation method will be described.

図8は、図7のフローチャートにおける処理で用いる第1計算方法で用いる時間比率と係数との関係を示すグラフである。図9は、図7のフローチャートにおける処理で用いる第2計算方法で用いる時間比率と係数との関係を示すグラフである。 FIG. 8 is a graph showing the relationship between the time ratio and the coefficient used in the first calculation method used in the processing in the flowchart of FIG. FIG. 9 is a graph showing the relationship between the time ratio and the coefficient used in the second calculation method used in the processing in the flowchart of FIG.

まず、第1計算方法について説明する。第1計算方法は、基準値を下げる場合に用いられる。 First, the first calculation method will be explained. The first calculation method is used when lowering the reference value.

第1計算方法では、基準値が、画面における全てのオブジェクトについての固有値“1”の総和(オブジェクトの総数)に対する任意の比率で予め設定されている。 In the first calculation method, the reference value is preset as an arbitrary ratio to the total sum of eigenvalues "1" for all objects on the screen (the total number of objects).

n回の部分描画時間Tpの平均である平均部分描画時間Tpavが全体描画時間Taを超える場合、基準値更新部333は、次の式(3)により、比率Rt1、すなわち平均部分描画時間Tpavを全体描画時間Taと比較して、描画に余分にかかった時間の割合を算出する。比率Rt1の値が大きいほど、基準値を下げる割合が大きくなる。 When the average partial drawing time Tpav, which is the average of the n partial drawing times Tp, exceeds the total drawing time Ta, the reference value updating unit 333 calculates the ratio Rt1, that is, the average partial drawing time Tpav, by the following equation (3). Comparing with the total drawing time Ta, the proportion of the extra drawing time is calculated. As the value of the ratio Rt1 increases, the rate at which the reference value is lowered increases.

Rt1=(Tpav/Ta)*100-100(%) …(3)
基準値更新部333は、算出した比率Rt1に対応する係数を図8に示す関係(グラフ)から求める。例えば、平均部分描画時間Tpavが1.5sであり、全体描画時間Taが1.0sである場合、基準値更新部333は、50%の比率Rt1を算出し、図8の関係において、比率50%に対応する係数は20を求める。なお、図8の横軸は、平均部分描画時間Tpavを全体描画時間Taと比較して、描画に余分にかかった時間の割合を示す。
Rt1=(Tpav/Ta)*100-100(%) (3)
The reference value updating unit 333 obtains the coefficient corresponding to the calculated ratio Rt1 from the relationship (graph) shown in FIG. For example, when the average partial drawing time Tpav is 1.5 s and the total drawing time Ta is 1.0 s, the reference value updating unit 333 calculates a ratio Rt1 of 50%, and in the relationship of FIG. 20 is obtained for the coefficient corresponding to %. Note that the horizontal axis of FIG. 8 indicates the ratio of extra drawing time when the average partial drawing time Tpav is compared with the total drawing time Ta.

図8に示す関係は、描画に余分にかかった時間が長いほど、係数が大きくなる。描画に余分にかかった時間の割合がある一定値を超えて大きくなると、係数を大きくしない。また、描画に余分にかかった時間の割合がある一定値を超えて小さくなると、係数を小さくしない。図8では、係数の上限を20と定め、係数の下限を0と定めている。 In the relationship shown in FIG. 8, the longer the extra time taken for drawing, the larger the coefficient. When the percentage of time spent on drawing increases beyond a certain value, the coefficient is not increased. In addition, when the ratio of the extra time taken for drawing becomes smaller than a certain value, the coefficient is not reduced. In FIG. 8, the upper limit of the coefficient is set to 20, and the lower limit of the coefficient is set to 0.

係数が大きいほど、基準値の変化量が大きくなる。ただし、通常はそれほど係数が大きくならないのに、たまたま大きくなり過ぎると、基準値の変化量が大きくなって、その影響を受けてしまう。このため、基準値を最適値に更新するまでに時間がかかる。そこで、このような影響を受けないように、係数に上限値および下限値を設けている。 The larger the coefficient, the larger the amount of change in the reference value. However, if the coefficient becomes too large, the amount of change in the reference value will increase, and the coefficient will be affected. Therefore, it takes time to update the reference value to the optimum value. Therefore, an upper limit value and a lower limit value are provided for the coefficient so as not to receive such influence.

係数の下限値が0であるのは、平均部分描画時間Tpavや予測部分描画時間Tppが全体描画時間Taと比較してあまり差がない場合の処理としては、基準値を変更する必要がほぼないと考えられるからである。また、割合の下限値を変更する(0に近づける)ことで、これらの時間に差がない場合でも(差が0ではない場合)、基準値を変更することが可能である。 The reason why the lower limit value of the coefficient is 0 is that when the average partial drawing time Tpav and the predicted partial drawing time Tpp are not much different from the total drawing time Ta, there is almost no need to change the reference value. This is because it is considered that Also, by changing the lower limit value of the ratio (bringing it closer to 0), it is possible to change the reference value even when there is no difference between these times (when the difference is not 0).

ここで、図8における比率の上限値(50)および下限値(5)は一例であって、これらの値に限定されない。上限値および下限値は、環境に応じて適切な値に設定する。偶発的に生じる極端な変化によって基準値の変化量が大きくなり過ぎないように、比率の上限値および下限値を設けている。 Here, the upper limit value (50) and lower limit value (5) of the ratio in FIG. 8 are an example, and are not limited to these values. Set the upper and lower limits to appropriate values according to the environment. An upper limit and a lower limit are set for the ratio so that the amount of change in the reference value does not become too large due to an accidental extreme change.

また、係数と、比率の上限値および下限値は予め設定することができる。 Also, the coefficient and the upper and lower limits of the ratio can be set in advance.

そして、基準値更新部333は、新たな基準値Vrn+1を現在の基準値Vrおよび係数Kに基づいて次の式(4)に基づいて算出する。 Then, the reference value update unit 333 calculates a new reference value Vr n+1 based on the current reference value Vr n and the coefficient K based on the following equation (4).

Vrn+1=Vr*(100-K)/100 …(4)
上記のように、第1計算方法は、更新するオブジェクトの数が基準値よりも少ないにも関わらず、部分描画した結果、全体描画よりも時間がかかってしまったときに使用される。この場合、基準値が大きすぎるために、基準値を下げる必要がある。
Vr n+1 =Vr n *(100−K)/100 (4)
As described above, the first calculation method is used when the number of objects to be updated is less than the reference value, but as a result of partial drawing, it takes longer than the entire drawing. In this case, the reference value is too large and needs to be lowered.

次に、第2計算方法について説明する。第2計算方法は基準値を上げる場合に用いられる。 Next, the second calculation method will be explained. The second calculation method is used when raising the reference value.

第2計算方法でも、予め基準値が設定されている。 A reference value is set in advance in the second calculation method as well.

平均部分描画時間Tpavが全体描画時間Ta以下である場合、基準値更新部333は、次の式(5)による比率Rt2、すなわち予測部分描画時間Tppが全体描画時間Taと比較して、短かった時間の割合を算出する。比率Rt2の値が大きいほど、基準値を上げる割合が大きくなる。式(5)における予測部分描画時間Tppは、上述したステップS24において算出されている。 When the average partial drawing time Tpav is equal to or shorter than the total drawing time Ta, the reference value updating unit 333 determines the ratio Rt2 according to the following equation (5), that is, the predicted partial drawing time Tpp is shorter than the total drawing time Ta. Calculate the percentage of time. As the value of the ratio Rt2 increases, the rate at which the reference value is increased increases. The predicted partial drawing time Tpp in Equation (5) is calculated in step S24 described above.

Rt2=100-(Tpp/Ta)*100(%) …(5)
基準値更新部333は、算出した比率Rt2に対応する係数を図9に示す関係(グラフ)から求める。例えば、予測部分描画時間Tppが1.0sであり、全体描画時間Taが2.0sである場合、基準値更新部333は、50%の比率Rt2を算出し、図9の関係において、比率50%に対応する係数は10を求める。なお、図9の横軸は、予測部分描画時間Tppを全体描画時間Taと比較して、短かった時間の割合を示す。
Rt2=100-(Tpp/Ta)*100(%) (5)
The reference value updating unit 333 obtains the coefficient corresponding to the calculated ratio Rt2 from the relationship (graph) shown in FIG. For example, when the predicted partial drawing time Tpp is 1.0 s and the total drawing time Ta is 2.0 s, the reference value updating unit 333 calculates a ratio Rt2 of 50%, and in the relationship of FIG. 10 is obtained for the coefficient corresponding to %. Note that the horizontal axis of FIG. 9 indicates the ratio of the short time when the predicted partial drawing time Tpp is compared with the total drawing time Ta.

図9に示す関係では、予測部分描画時間Tppが全体描画時間Taよりも短かった時間が長いほど、係数が大きくなる。上記の短かった時間の割合がある一定値を超えて大きくなると、係数を大きくしない。また、上記の短かった時間の割合がある一定値を超えて小さくなると、係数を小さくしない。図9では、係数の上限を10と定め、係数の下限を図8に示す係数の下限と同様に0と定めている。 In the relationship shown in FIG. 9, the longer the predicted partial drawing time Tpp is shorter than the total drawing time Ta, the larger the coefficient. When the ratio of the above short time increases beyond a certain value, the coefficient is not increased. Also, when the ratio of the above-mentioned short time becomes smaller than a certain value, the coefficient is not made smaller. In FIG. 9, the upper limit of the coefficient is set to 10, and the lower limit of the coefficient is set to 0, like the lower limit of the coefficient shown in FIG.

ここで、図9における比率の上限値(50)および下限値(10)は一例であって、これらの値に限定されない。上限値および下限値は、環境に応じて適切な値が設定される。偶発的に生じる極端な変化によって基準値の変化量が大きくなり過ぎないように、比率の上限値および下限値を設けている。 Here, the upper limit value (50) and the lower limit value (10) of the ratio in FIG. 9 are an example, and are not limited to these values. Appropriate values are set for the upper limit value and the lower limit value according to the environment. An upper limit and a lower limit are set for the ratio so that the amount of change in the reference value does not become too large due to an accidental extreme change.

また、係数と、比率の上限値および下限値は予め設定することができる。 Also, the coefficient and the upper and lower limits of the ratio can be set in advance.

そして、基準値更新部333は、新たな基準値Vrn+1を現在の基準値Vrおよび係数Kに基づいて次の式(6)に基づいて算出する。 Then, the reference value update unit 333 calculates a new reference value Vr n+1 based on the current reference value Vr n and the coefficient K based on the following equation (6).

Vrn+1=Vr*(100+K)/100 …(6)
上記のように、第2計算方法は、基準値よりも少ないオブジェクト数で部分描画した結果、全体描画より速かったときに使用される。そして、最新の1つのオブジェクトあたりの更新速度を利用して、基準値のオブジェクト数で部分描画に要する時間を計算し、この時間を全体描画時間と比較した結果に基づいて基準値を上げるか維持するかを選択する。これにより、適切な基準値に近づけていくことができる。
Vr n+1 =Vr n *(100+K)/100 (6)
As described above, the second calculation method is used when the result of partial rendering with fewer objects than the reference value is faster than full rendering. Then, using the latest update speed per object, calculate the time required for partial drawing with the number of objects of the reference value, and increase or maintain the reference value based on the result of comparing this time with the total drawing time. choose whether to As a result, it is possible to approach the appropriate reference value.

以上に述べたように、第1の手法では、基準値更新部333が、平均部分描画時間Tpavが全体描画時間Taを超えるときに、基準値を下げるように更新する。また、基準値更新部333は、平均部分描画時間Tpavが全体描画時間Ta以下であるときに、予測部分描画時間Tppが全体描画時間Taより短ければ、基準値を上げるように更新し、予測部分描画時間Tppが全体描画時間Ta以上であれば、基準値を維持する。 As described above, in the first method, the reference value updating unit 333 updates the reference value so as to decrease when the average partial drawing time Tpav exceeds the total drawing time Ta. Further, when the average partial drawing time Tpav is equal to or less than the total drawing time Ta, if the predicted partial drawing time Tpp is shorter than the total drawing time Ta, the reference value updating unit 333 updates the reference value so as to increase the predicted partial drawing time Ta. If the drawing time Tpp is equal to or longer than the total drawing time Ta, the reference value is maintained.

これにより、画面の表示更新の回数が多くなるほど、基準値が最適値に近づいていく。したがって、画面更新の効率を高めることができる。 As a result, the reference value approaches the optimum value as the number of screen display updates increases. Therefore, it is possible to improve the efficiency of screen updating.

ところで、オブジェクトとして多数の数値表示器を含む画面の場合、数値表示器は、外形の矩形と数値との2つの基本要素で構成されている。矩形のみのオブジェクトでは、矩形のみを描画すればよいが、数値表示器では、矩形と数値とを描画する必要がある。したがって、多数の数値表示器の表示を更新する場合、描画に長い時間を要する。 By the way, in the case of a screen including a large number of numerical displays as objects, the numerical displays are composed of two basic elements, a rectangular outline and numerical values. A rectangle-only object needs to draw only a rectangle, but a numeric display needs to draw a rectangle and a number. Therefore, when updating the display of a large number of numerical indicators, it takes a long time to draw.

また、アラーム部品は、アラームを発報する時刻、アラームの内容、アラームの発生状況などを表示するため、それぞれの内容を表示する文字表示器が表に似た形式に組み合わされて構成される。例えば、発報したアラームについては、該当する文字表示器を赤色で表示し、復旧したアラームについては該当する文字表示器を緑色で表示する。 In addition, the alarm component displays the time when the alarm is to be issued, the content of the alarm, the state of occurrence of the alarm, etc., and is configured by combining character displays for displaying the respective content in a format similar to a table. For example, the corresponding character display is displayed in red for the activated alarm, and the corresponding character display is displayed in green for the restored alarm.

また、トレンドグラフでは、1つの四角形の中に多数のグラフが表される。 Also, in the trend graph, many graphs are represented in one square.

このように、複数の部品から構成される複合部品では、複数の部品が描画される。多数の複合部品を含む画面において、大半の複合部品が変化するような場合は、特に描画に時間がかかり、基準値が大きくなってしまう。 In this way, multiple parts are rendered in a composite part composed of a plurality of parts. In a screen containing a large number of composite parts, when most of the composite parts change, drawing takes a particularly long time and the reference value becomes large.

これに対し、第1の手法では、平均部分描画時間Tpavに基づいて比率を求め、この比率に対応する係数に基づいて新たな基準値を算出する。これにより、特に、平均部分描画時間Tpavが全体描画時間Taに近い場合、突発的に発生する可能性がある部分描画時間Tpの大きな変化(例えば、上記のアラーム部品やトレンドグラフをスクロールした場合の表示更新)による、基準値の誤った更新を抑えることができる。 On the other hand, in the first method, a ratio is obtained based on the average partial drawing time Tpav, and a new reference value is calculated based on a coefficient corresponding to this ratio. As a result, particularly when the average partial drawing time Tpav is close to the total drawing time Ta, a large change in the partial drawing time Tp that may occur suddenly (for example, when scrolling the above-mentioned alarm parts or trend graph) erroneous update of the reference value due to display update) can be suppressed.

なお、平均部分描画時間Tpavと全体描画時間Taとに大きな差がある場合は、部分描画時間Tpに大きな変化が突発的に発生しても、基準値にはあまり影響は及ばない。 Note that when there is a large difference between the average partial drawing time Tpav and the total drawing time Ta, even if a large change in the partial drawing time Tp suddenly occurs, the reference value is not so affected.

次に、第2の手法について説明する。図10は、プログラマブル表示器1による他の基準値更新の処理手順を示すフローチャートである。 Next, the second technique will be explained. FIG. 10 is a flow chart showing another processing procedure for updating reference values by the programmable display device 1 .

図10に示すように、まず、画面が切り替えられると、描画部331は、全体描画を行う(ステップS31)。ステップS31において、描画時間計測部332は、当該全体描画に要した全体描画時間Taを計測してメインメモリ12に記録する。 As shown in FIG. 10, first, when the screen is switched, the drawing unit 331 draws the whole (step S31). In step S<b>31 , the drawing time measuring unit 332 measures the overall drawing time Ta required for the overall drawing and records it in the main memory 12 .

切り替えられた画面の初回の表示更新時に、描画部331は、部分描画を行う(ステップS32)。ステップS32において、描画時間計測部332は、当該部分描画に要した部分描画時間Tpを計測してメインメモリ12に記録(登録)する。また、ステップS32において、描画時間計測部332は、初回の表示更新時に描画されたオブジェクトの数(オブジェクト数上限値Nulmt)を、基準値(初期総計値)としてメインメモリ12に記録(設定)する。 At the first display update of the switched screen, the drawing unit 331 performs partial drawing (step S32). In step S<b>32 , the drawing time measurement unit 332 measures the partial drawing time Tp required for the partial drawing and records (registers) it in the main memory 12 . In step S32, the drawing time measurement unit 332 records (sets) the number of objects drawn at the time of the first display update (object number upper limit Nulmt) in the main memory 12 as a reference value (initial total value). .

描画部331が上記の画面の2回目以降の更新に移行すると(ステップS33)、基準値更新部333は、記録された上記の部分描画時間Tpが全体描画時間Ta未満であるか否かを判定する(ステップS34)。この判定において、基準値更新部333は、部分描画時間Tpが全体描画時間Ta未満であると判定すると(YES)、更新が必要なオブジェクトの数(変化するオブジェクトの数)である更新オブジェクト数Nud(総計値)がオブジェクト数上限値Nulmt以下であるか否かを判定する(ステップS35)。 When the drawing unit 331 shifts to updating the screen for the second time or later (step S33), the reference value updating unit 333 determines whether or not the recorded partial drawing time Tp is less than the total drawing time Ta. (step S34). In this determination, if the reference value updating unit 333 determines that the partial drawing time Tp is less than the total drawing time Ta (YES), the updated object count Nud, which is the number of objects that need to be updated (the number of objects that change), It is determined whether or not (total value) is equal to or less than the object number upper limit Nulmt (step S35).

この判定において、基準値更新部333が、更新オブジェクト数Nudがオブジェクト数上限値Nulmt以下であると判定すると(YES,第1状態)、描画部331は部分描画を行う(ステップS36)。ステップS35において、描画時間計測部332は、当該部分描画に要した実描画時間Trを計測してメインメモリ12に記録する。 In this determination, if the reference value updating unit 333 determines that the update object count Nud is equal to or less than the object count upper limit value Nulmt (YES, first state), the drawing unit 331 performs partial drawing (step S36). In step S<b>35 , the drawing time measurement unit 332 measures the actual drawing time Tr required for the partial drawing and records it in the main memory 12 .

次いで、基準値更新部333は、上記の実描画時間Trが記録された最新の全体描画時間Ta以上であるか否かを判定する(ステップS37)。この判定において、基準値更新部333は、実描画時間Trが全体描画時間Ta以上であると判定すると(YES)、メインメモリ12における部分描画時間Tpを実描画時間Trに更新すると共に、メインメモリ12におけるオブジェクト数上限値Nulmtを更新オブジェクト数Nudの値に更新して(ステップS38)、処理をステップS33に戻す。また、ステップS37の判定において、基準値更新部333は、部分描画時間Tpが全体描画時間Ta未満であると判定すると(NO)、部分描画時間Tpおよびオブジェクト数上限値Nulmtの更新を行わずに、処理をステップS33に戻す。 Next, the reference value update unit 333 determines whether or not the actual drawing time Tr is equal to or greater than the latest recorded overall drawing time Ta (step S37). In this determination, if the reference value updating unit 333 determines that the actual drawing time Tr is longer than or equal to the total drawing time Ta (YES), it updates the partial drawing time Tp in the main memory 12 to the actual drawing time Tr, 12 is updated to the updated object number Nud (step S38), and the process returns to step S33. Further, when the reference value updating unit 333 determines in step S37 that the partial drawing time Tp is less than the total drawing time Ta (NO), the partial drawing time Tp and the object number upper limit value Nulmt are not updated. , the process returns to step S33.

また、ステップS35において、基準値更新部333は、更新オブジェクト数Nudがオブジェクト数上限値Nulmtを超えると判定すると(NO,第2状態)、描画部331は部分描画を行う(ステップS39)。その後、基準値更新部333は、上記の実描画時間Trが記録された最新の全体描画時間Ta以上であるか否かを判定する(ステップS40)。この判定において、基準値更新部333は、実描画時間Trが全体描画時間Ta以上であると判定すると(YES)、部分描画時間Tpおよびオブジェクト数上限値Nulmtを以下のようにして計算すると共に更新して(ステップS41)、処理をステップS33に戻す。 In step S35, when the reference value updating unit 333 determines that the update object number Nud exceeds the object number upper limit value Nulmt (NO, second state), the drawing unit 331 performs partial drawing (step S39). After that, the reference value update unit 333 determines whether or not the actual drawing time Tr is equal to or longer than the latest recorded overall drawing time Ta (step S40). In this determination, if the reference value updating unit 333 determines that the actual drawing time Tr is equal to or longer than the total drawing time Ta (YES), it calculates and updates the partial drawing time Tp and the object number upper limit value Nulmt as follows. (step S41), and the process returns to step S33.

基準値更新部333は、ステップS41において、現状のオブジェクト数上限値Nulmtおよび更新オブジェクト数Nudの平均を算出し、その値を新たなオブジェクト数上限値Nulmtとして更新する。また、基準値更新部333は、ステップS41において、部分描画時間Tpおよび実描画時間Trの平均を算出し、その値を新たな部分描画時間Tpとして更新する。 In step S41, the reference value update unit 333 calculates the average of the current object count upper limit value Nulmt and the updated object count value Nud, and updates this value as the new object count upper limit value Nulmt. Also, in step S41, the reference value update unit 333 calculates the average of the partial drawing time Tp and the actual drawing time Tr, and updates the value as the new partial drawing time Tp.

また、ステップS40において、基準値更新部333は、実描画時間Trが全体描画時間Ta未満であると判定すると(NO)、処理をステップS38に移行する。 Also, in step S40, when the reference value updating unit 333 determines that the actual drawing time Tr is less than the total drawing time Ta (NO), the process proceeds to step S38.

また、ステップS34において、基準値更新部333は、部分描画時間Tpが全体描画時間Ta以上であると判定すると(NO)、更新オブジェクト数Nudがオブジェクト数上限値Nulmt以下であるか否かを判定する(ステップS42)。 Further, in step S34, when the reference value updating unit 333 determines that the partial drawing time Tp is equal to or longer than the total drawing time Ta (NO), it determines whether or not the update object count Nud is equal to or less than the object count upper limit value Nulmt. (step S42).

この判定において、基準値更新部333が、更新オブジェクト数Nudがオブジェクト数上限値Nulmt以下であると判定すると(YES,第3状態)、描画部331は部分描画を行って(ステップS43)、処理をステップS33に戻す。ステップS43において、基準値更新部333は、メインメモリ12における部分描画時間Tpを実描画時間Trに更新すると共に、メインメモリ12におけるオブジェクト数上限値Nulmtを更新オブジェクト数Nudの値に更新する。 In this determination, if the reference value updating unit 333 determines that the update object count Nud is equal to or less than the object count upper limit value Nulmt (YES, third state), the drawing unit 331 performs partial drawing (step S43), and performs processing. is returned to step S33. In step S43, the reference value update unit 333 updates the partial drawing time Tp in the main memory 12 to the actual drawing time Tr, and updates the object number upper limit value Nulmt in the main memory 12 to the updated object number Nud.

また、ステップS42において、基準値更新部333が、更新オブジェクト数Nudがオブジェクト数上限値Nulmtを超えると判定すると(NO,第4状態)、描画部331は全体描画を行って(ステップS44)、処理をステップS33に戻す。また、ステップS44において、描画時間計測部332は、メインメモリ12における全体描画時間Taを、上記の全体描画に要した全体描画時間Taに更新する。 Further, in step S42, when the reference value updating unit 333 determines that the update object number Nud exceeds the object number upper limit value Nulmt (NO, fourth state), the drawing unit 331 performs the entire drawing (step S44), The process is returned to step S33. In step S44, the drawing time measurement unit 332 updates the overall drawing time Ta in the main memory 12 to the overall drawing time Ta required for the overall drawing.

続いて上記の処理を具体的に行った例について表1を参照して説明する。 Next, an example in which the above processing is specifically performed will be described with reference to Table 1.

画面切替時に、描画部331は、100の更新オブジェクト数Nudで全体描画を行う。このとき、全体描画に要した実描画時間Trすなわち全体描画時間Taは1.1sである。描画時間計測部332は、この値をメインメモリ12に記録する。 At the time of screen switching, the rendering unit 331 performs the entire rendering with the update object count Nud of 100. FIG. At this time, the actual drawing time Tr required for the entire drawing, that is, the total drawing time Ta is 1.1 s. The drawing time measuring unit 332 records this value in the main memory 12 .

続く、画面の初回更新時において、描画部331は、30の更新オブジェクト数Nudで部分描画を行う。このとき、部分描画に要した実描画時間Trすなわち部分描画時間Tpは0.6sである。描画時間計測部332は、この値をメインメモリ12に記録する。また、基準値更新部333は、30の更新オブジェクト数Nudを基準オブジェクト数としてメインメモリ12に記録する。 When the screen is subsequently updated for the first time, the drawing unit 331 performs partial drawing with the update object count Nud of 30. FIG. At this time, the actual drawing time Tr required for partial drawing, that is, the partial drawing time Tp is 0.6 s. The drawing time measuring unit 332 records this value in the main memory 12 . Further, the reference value updating unit 333 records the update object number Nud of 30 in the main memory 12 as the reference object number.

2回目の更新時において、部分描画時間Tp(0.6s)が全体描画時間Ta(1.1s)未満であり(ステップS34のYES)、かつ更新オブジェクト数Nud(40)がオブジェクト数上限値Nulmt(30)を超える(ステップS35のNO)。 At the time of the second update, the partial drawing time Tp (0.6 s) is less than the total drawing time Ta (1.1 s) (YES in step S34), and the update object count Nud (40) is equal to the object count upper limit value Nulmt. (30) is exceeded (NO in step S35).

したがって、この場合、描画部331は、部分描画を行う(ステップS39)。また、実描画時間Trが全体描画時間Ta未満であるので(ステップS40のNO)、基準値更新部333は、その実描画時間Trを部分描画時間Tpとして更新すると共に、更新オブジェクト数Nudをオブジェクト数上限値Nulmtとして更新する(ステップS38)。 Therefore, in this case, the drawing unit 331 performs partial drawing (step S39). Also, since the actual drawing time Tr is less than the total drawing time Ta (NO in step S40), the reference value updating unit 333 updates the actual drawing time Tr as the partial drawing time Tp, and changes the number of updated objects Nud to the number of objects. It is updated as the upper limit value Nulmt (step S38).

3回目の更新時において、部分描画時間Tp(0.8s)が全体描画時間Ta(1.1s)未満であり(ステップS34のYES)、かつ更新オブジェクト数Nud(80)がオブジェクト数上限値Nulmt(40)を超える(ステップS35のNO)。 At the time of the third update, the partial drawing time Tp (0.8 s) is less than the total drawing time Ta (1.1 s) (YES in step S34), and the update object count Nud (80) is equal to the object count upper limit value Nulmt. (40) is exceeded (NO in step S35).

したがって、この場合、描画部331は部分描画を行う(ステップS39)。また、部分描画の実描画時間Tr(1.6s)は、全体描画時間Ta以上であるので(ステップS40のYES)、基準値更新部333は、部分描画時間Tpおよび実描画時間Trの平均値である1.2sを部分描画時間Tpとして更新すると共に、更新オブジェクト数Nudおよびオブジェクト数上限値Nulmtの平均値である60をオブジェクト数上限値Nulmtとして更新する(ステップS41)。 Therefore, in this case, the drawing unit 331 performs partial drawing (step S39). Also, since the actual drawing time Tr (1.6 s) for partial drawing is equal to or longer than the total drawing time Ta (YES in step S40), the reference value update unit 333 calculates the average value of the partial drawing time Tp and the actual drawing time Tr. 1.2 s as the partial drawing time Tp, and 60, which is the average value of the updated number of objects Nud and the upper limit of the number of objects Nulmt, is updated as the upper limit of the number of objects Nulmt (step S41).

4回目の更新時において、部分描画時間Tp(1.2s)が全体描画時間Ta(1.1s)を超え(ステップS34のNO)、かつ更新オブジェクト数Nud(70)がオブジェクト数上限値Nulmt(60)を超える(ステップS42のNO)。したがって、この場合、描画部331は全体描画を行い、描画時間計測部332は全体描画時間Taを更新する(ステップS44)。 At the time of the fourth update, the partial drawing time Tp (1.2 s) exceeds the total drawing time Ta (1.1 s) (NO in step S34), and the number of updated objects Nud (70) reaches the object number upper limit Nulmt ( 60) (NO in step S42). Therefore, in this case, the drawing unit 331 performs the overall drawing, and the drawing time measurement unit 332 updates the overall drawing time Ta (step S44).

5回目の更新時において、部分描画時間Tp(1.2s)が全体描画時間Ta(1.12s)を超え(ステップS34のNO)、かつ更新オブジェクト数Nud(55)がオブジェクト数上限値Nulmt(60)以下である(ステップS42のYES)。この場合、描画部331は部分描画を行う(ステップS43)。また、基準値更新部333は、部分描画の実描画時間Tr(1.1s)を部分描画時間Tpとして更新すると共に、更新オブジェクト数Nud(55)をオブジェクト数上限値Nulmtとして更新する。 At the time of the fifth update, the partial drawing time Tp (1.2 s) exceeds the total drawing time Ta (1.12 s) (NO in step S34), and the number of updated objects Nud (55) reaches the object number upper limit Nulmt ( 60) below (YES in step S42). In this case, the drawing unit 331 performs partial drawing (step S43). In addition, the reference value updating unit 333 updates the partial drawing time Tr (1.1 s) as the partial drawing time Tp, and updates the update object number Nud (55) as the object number upper limit value Nulmt.

Figure 0007149826000001
Figure 0007149826000001

以上に述べたように、第2の手法では、2回目以降の画面の表示更新から、全体描画時間Taに対する部分描画時間Tpの長短、およびオブジェクト数上限値Nulmtに対する更新オブジェクト数Nudの大小を評価し、その結果に基づいて部分描画時間Tpおよびオブジェクト数上限値Nulmtを更新する。 As described above, in the second method, the length of the partial drawing time Tp relative to the total drawing time Ta and the size of the updated object number Nud relative to the object number upper limit Nulmt are evaluated from the second and subsequent screen display updates. Then, the partial drawing time Tp and the object number upper limit Nulmt are updated based on the result.

これにより、画面の表示更新の回数が多くなるほど、基準値が最適値に近づいていく。したがって、画面更新の効率を高めることができる。 As a result, the reference value approaches the optimum value as the number of screen display updates increases. Therefore, it is possible to improve the efficiency of screen updating.

また、第1の手法と異なり、基準値を予め設定しないことと、毎回の画面表示更新で全体描画時間Ta、部分描画時間Tpおよびオブジェクト数上限値Nulmtの各値を適宜更新する。これにより、基準値を短時間で最適値に近づけることができる。 Also, unlike the first method, reference values are not set in advance, and each value of the total drawing time Ta, the partial drawing time Tp, and the object number upper limit value Nulmt is appropriately updated each time the screen display is updated. As a result, the reference value can be brought close to the optimum value in a short period of time.

ところで、本実施形態において、基準値は画面ごとに設定されている。これにより、描画時間の長いオブジェクトを含む画面と、描画時間の短いオブジェクトを含む画面とで、基準値が異なる。画面に関わらず表示している画面で基準値を最適化すると、ある画面の基準値を最適化した後に他の画面を表示して基準値の最適化を改めてして、ある画面に表示を戻す場合、再度基準値の最適化が必要になって無駄が生じる。基準値が最適化されてない状態で、画面が切り替わっても、また同じ画面に戻すときに最初から最適化を行うのではなく、最適化を続けて行うことができるので、基準値が最適値に到達する時間を短くすることができる。 By the way, in this embodiment, the reference value is set for each screen. As a result, the reference value differs between a screen containing an object with a long drawing time and a screen containing an object with a short drawing time. If you optimize the reference value on the screen that is displayed regardless of the screen, after optimizing the reference value of a certain screen, display another screen to re-optimize the reference value and return the display to the certain screen. In this case, the reference value needs to be optimized again, resulting in waste. Even if the screen is switched when the reference value is not optimized, optimization can be performed continuously instead of optimizing from the beginning when returning to the same screen, so the reference value is the optimal value. can shorten the time to reach

例えば、数値表示器を100個含む2つの画面について、一方ではほぼ全ての数値表示器が100msごとに更新されるような制御機器2の計測値を表示する場合は、部分描画の要否を判定せずに、全体描画を行う方が速く画面を更新できる。これに対し、1sに1回変わるような制御機器2の計測値を表示する場合、全体描画では遅い。同じ画面であっても、オブジェクトの数や、オブジェクトへの変化の反映のさせ方によっても基準値の最適値が変わってくる。 For example, for two screens containing 100 numerical displays, when displaying the measured values of the control device 2 such that almost all the numerical displays are updated every 100 ms, the necessity of partial drawing is determined. The screen can be updated faster by drawing the entire screen without On the other hand, when displaying the measured values of the control device 2 that change once every 1 s, the overall drawing is slow. Even on the same screen, the optimum value of the reference value changes depending on the number of objects and how changes are reflected on the objects.

なお、図3、図7および図10のフローチャートにおける各判定のステップにおける「以上」および「以下」については、前後の処理に矛盾が生じなければ、等しい場合を除外してもよい。また、各判定のステップにおける「超える」および「未満」についても、前後の処理に矛盾が生じなければ、等しい場合を含めてもよい。 As for "greater than" and "less than" in each determination step in the flowcharts of FIGS. Also, "exceeding" and "less than" in each determination step may include the case of equality if there is no contradiction in the processing before and after.

〔実施形態2〕
本発明の実施形態2について以下のとおり説明する。なお、本実施形態において、実施形態1における構成要素と同一の機能を有する構成要素については、同一の符号を付記して、その説明を省略する。
[Embodiment 2]
Embodiment 2 of the present invention will be described as follows. In addition, in this embodiment, the same code|symbol is added about the component which has the same function as the component in Embodiment 1, and the description is abbreviate|omitted.

図11の(a)および(b)は、基準値をオブジェクトの面積で規定する場合のオブジェクトと面積を規定する矩形との関係を示す図である。図12は、基準値をオブジェクトの面積で規定する場合の基準値の更新に利用される、画面全体の面積に対する各オブジェクト割合の例を示す図である。 FIGS. 11A and 11B are diagrams showing the relationship between an object and a rectangle defining the area when the reference value is defined by the area of the object. FIG. 12 is a diagram showing an example of the ratio of each object to the area of the entire screen, which is used for updating the reference value when the reference value is defined by the area of the object.

実施形態1では、基準値をオブジェクト数で規定したが、本実施形態では、基準値を画面全体の面積に対するオブジェクトの面積の割合(面積割合)で規定する。 In the first embodiment, the reference value is defined by the number of objects, but in this embodiment, the reference value is defined by the ratio of the area of objects to the area of the entire screen (area ratio).

具体的には、本実施形態に適用される第1の手法については、基準値が任意の面積割合で予め設定されている。本実施形態に適用される第2の手法については、オブジェクト数上限値に代えて、面積割合の上限値(変化したオブジェクトの面積割合の総和)で基準値を更新する。これら以外のプログラマブル表示器1の構成は、実施形態1におけるプログラマブル表示器1と同じである。 Specifically, in the first method applied to the present embodiment, the reference value is preset with an arbitrary area ratio. As for the second method applied to the present embodiment, the reference value is updated with the upper limit of the area ratio (sum of changed object area ratios) instead of the upper limit of the number of objects. The configuration of the programmable display 1 other than these is the same as the programmable display 1 in the first embodiment.

ここで、オブジェクトの面積は、オブジェクトを含む最小の矩形エリアで求められる。オブジェクトが四角形である場合は、矩形エリアとオブジェクトとは等しい。これに対し、図11の(a)に示すように、オブジェクトが円E1である場合は、円E1に外接する矩形エリアR1でオブジェクトの面積が算出される。また、図11の(b)に示すように、オブジェクトが楕円E2である場合は、楕円E2に外接する矩形エリアR2でオブジェクトの面積が算出される。オブジェクトは、それぞれの固有値として面積割合を有している。 Here, the area of an object is obtained from the smallest rectangular area that includes the object. If the object is a rectangle, the rectangular area equals the object. On the other hand, as shown in FIG. 11A, when the object is a circle E1, the area of the object is calculated by a rectangular area R1 circumscribing the circle E1. Also, as shown in FIG. 11B, when the object is an ellipse E2, the area of the object is calculated by a rectangular area R2 that circumscribes the ellipse E2. Objects have area percentages as their eigenvalues.

PC4の作画編集部41は、オブジェクトの面積を計算するとともに、図12に示すように、画面全体の面積に対するオブジェクトの面積の割合(%)を計算する。この面積割合の情報は、画面データとともに、PC4からプログラマブル表示器1に転送されて、ユーザメモリ14に記憶される。 The drawing editing unit 41 of the PC 4 calculates the area of the object and, as shown in FIG. 12, the ratio (%) of the area of the object to the area of the entire screen. This area ratio information is transferred from the PC 4 to the programmable display 1 and stored in the user memory 14 together with the screen data.

本実施形態に係るプログラマブル表示器1では、基準値がオブジェクトの面積割合で規定される。小さいオブジェクトは描画に要する時間が短いが、大きなオブジェクトは描画に要する時間が長い。このため、大きさの異なるオブジェクトを含む画面では、変化するオブジェクトの大きさに応じて描画の時間が異なる。そこで、基準値をオブジェクトの面積割合で規定することにより、画面に含まれるオブジェクト間で大きさに差があっても、全体描画および部分描画のいずれを行うかを、より適正に判定することができる。 In the programmable display device 1 according to this embodiment, the reference value is defined by the area ratio of the object. Smaller objects take less time to draw, while larger objects take longer to draw. For this reason, on a screen including objects of different sizes, the drawing time varies according to the changing size of the objects. Therefore, by defining the reference value by the area ratio of the object, it is possible to more appropriately determine whether to perform the entire drawing or the partial drawing even if there is a difference in size between the objects included in the screen. can.

〔実施形態3〕
本発明の実施形態3について以下のとおり説明する。なお、本実施形態において、実施形態1における構成要素と同一の機能を有する構成要素については、同一の符号を付記して、その説明を省略する。
[Embodiment 3]
Embodiment 3 of the present invention will be described as follows. In addition, in this embodiment, the same code|symbol is added about the component which has the same function as the component in Embodiment 1, and the description is abbreviate|omitted.

実施形態1では、基準値をオブジェクト数で規定したが、本実施形態では、基準値をオブジェクトの重みで規定する。 In the first embodiment, the reference value is defined by the number of objects, but in this embodiment, the reference value is defined by the weight of the objects.

具体的には、本実施形態に適用される第1の手法については、基準値が画面における全てのオブジェクトについての重みの総和に対する任意の比率で予め設定されている。本実施形態に適用される第2の手法については、オブジェクト数上限値に代えて、オブジェクトの重み合計の上限値(変化したオブジェクトの重みの総和)で基準値を更新する。これら以外のプログラマブル表示器1の構成は、実施形態1におけるプログラマブル表示器1と同じである。 Specifically, in the first method applied to this embodiment, the reference value is set in advance as an arbitrary ratio to the sum total of the weights of all the objects on the screen. In the second method applied to this embodiment, the reference value is updated with the upper limit of the total weight of objects (the total weight of changed objects) instead of the upper limit of the number of objects. The configuration of the programmable display 1 other than these is the same as the programmable display 1 in the first embodiment.

ここで、重みは、基本重みと、オブジェクトを規定する上述の矩形エリアの解像度に対する大きさの割合と、オブジェクトの装飾の重みとの乗算で規定される。オブジェクトは、オブジェクトの特性に応じて付与された重みを、それぞれの固有値として有している。 Here, the weight is defined by multiplying the basic weight, the ratio of the size to the resolution of the rectangular area defining the object, and the decoration weight of the object. Objects have weights assigned according to the properties of the objects as their eigenvalues.

基本重みは、表2に示すように、図形の形状などに応じて値が予め定められている。基本重みは、描画に要する時間が長くなる複雑なオブジェクトほど大きい値が付与される。 As shown in Table 2, the basic weight is predetermined according to the shape of the figure. A larger base weight is assigned to a more complex object that takes longer to draw.

Figure 0007149826000002
Figure 0007149826000002

装飾重みは、表3に示すように、装飾の種類、装飾の細かさなどに応じて値が予め定められている。装飾重みは、基本重みと同じく、描画に要する時間が長くなる装飾ほど大きい値が付与される。例えば、装飾は、塗り込みの有無、グラデーション(縦と横とで異なる)でも重みが異なる。縦方向のグラデーションの場合、各行の色は同じで、行ごとに濃淡を変えていく。横方向のグラデーションの場合、同じ行でも、角度などに応じて濃淡を変えていく。 As shown in Table 3, the decoration weight is predetermined according to the type of decoration, the fineness of decoration, and the like. As with the basic weight, the decoration weight is given a larger value for decorations that take longer to draw. For example, decorations have different weights depending on whether they are painted or not, and gradation (vertical and horizontal are different). In the case of vertical gradation, each line has the same color, and the shade changes from line to line. In the case of horizontal gradation, even in the same line, the shade changes depending on the angle.

Figure 0007149826000003
Figure 0007149826000003

なお、表2および表3に示す重みは、あくまでも一例であって、オブジェクトに付与される重みはオブジェクトの形態に応じて異なる。 Note that the weights shown in Tables 2 and 3 are merely examples, and the weights given to objects differ according to the form of the object.

本実施形態に係るプログラマブル表示器1では、基準値がオブジェクトの重みで規定される。単純な形状のオブジェクトは描画に要する時間が短いが、複雑な形状のオブジェクトは描画に要する時間が長い。また、装飾の有無や形態に応じて描画に要する時間が異なる。このため、重みの異なるオブジェクトを含む画面では、変化するオブジェクトの重みに応じて描画の時間が異なる。そこで、基準値をオブジェクトの重みで規定することにより、画面に含まれるオブジェクト間で重みに差があっても、全体描画および部分描画のいずれを行うかを、より適正に判定することができる。 In the programmable display 1 according to this embodiment, the reference value is defined by the weight of the object. An object with a simple shape takes a short time to draw, but an object with a complicated shape takes a long time to draw. Also, the time required for drawing differs depending on the presence or absence of decoration and the form. For this reason, on a screen including objects with different weights, the drawing time differs according to the changing weight of the objects. Therefore, by defining the reference value by the weight of the object, even if there is a difference in weight between the objects included in the screen, it is possible to more appropriately determine whether to perform the whole drawing or the partial drawing.

〔ソフトウェアによる実現例〕
プログラマブル表示器1の制御ブロック(特に、表示制御部32)は、集積回路(ICチップ)等に形成された論理回路(ハードウェア)によって実現してもよいし、ソフトウェアによって実現してもよい。
[Example of realization by software]
The control block (particularly, the display control unit 32) of the programmable display 1 may be implemented by a logic circuit (hardware) formed in an integrated circuit (IC chip) or the like, or may be implemented by software.

後者の場合、プログラマブル表示器1は、各機能を実現するソフトウェアであるプログラムの命令を実行するコンピュータを備えている。このコンピュータは、例えば1つ以上のプロセッサを備えているとともに、上記プログラムを記憶したコンピュータ読み取り可能な記録媒体を備えている。 In the latter case, the programmable display 1 is provided with a computer that executes instructions of a program, which is software that implements each function. This computer includes, for example, one or more processors, and a computer-readable recording medium storing the above program.

そして、上記コンピュータにおいて、上記プロセッサが上記プログラムを上記記録媒体から読み取って実行することにより、本発明の目的が達成される。上記プロセッサとしては、例えばCPU11を用いることができる。 In the computer, the processor reads the program from the recording medium and executes it, thereby achieving the object of the present invention. For example, the CPU 11 can be used as the processor.

上記記録媒体としては、「一時的でない有形の媒体」、例えば、ROM13等の他、テープ、ディスク、カード、半導体メモリ、プログラマブルな論理回路などを用いることができる。また、プログラマブル表示器1は、上記プログラムを展開するメインメモリ12などを備えていてもよい。 As the recording medium, a "non-temporary tangible medium" such as a ROM 13, a tape, a disk, a card, a semiconductor memory, a programmable logic circuit, or the like can be used. Moreover, the programmable display device 1 may include a main memory 12 for developing the above program.

また、上記プログラムは、該プログラムを伝送可能な任意の伝送媒体(通信ネットワークや放送波等)を介して上記コンピュータに供給されてもよい。なお、本発明の一態様は、上記プログラムが電子的な伝送によって具現化された、搬送波に埋め込まれたデータ信号の形態でも実現され得る。 Also, the program may be supplied to the computer via any transmission medium (communication network, broadcast wave, etc.) capable of transmitting the program. Note that one aspect of the present invention can also be implemented in the form of a data signal embedded in a carrier wave in which the program is embodied by electronic transmission.

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

1 プログラマブル表示器(画面表示装置)
16 表示パネル
331 描画部
332 描画時間計測部
333 基準値更新部
Ta 全体描画時間
Tp 部分描画時間
Tpp 予測部分描画時間
Tr 実描画時間
Nulmt オブジェクト数上限値(基準値)
Nud 更新オブジェクト数(総計値)
1 Programmable display (screen display device)
16 Display panel 331 Rendering unit 332 Rendering time measurement unit 333 Reference value updating unit Ta Overall rendering time Tp Partial rendering time Tpp Predicted partial rendering time Tr Actual rendering time Nulmt Object number upper limit (reference value)
Nud Number of updated objects (total)

Claims (10)

少なくとも1つのオブジェクトを含む画面を表示する画面表示装置であって、
前記画面の全てを描画する全体描画、および前記画面において変化する前記オブジェクトを描画する部分描画のいずれが前記画面を速く更新できるかを基準値に基づいて予測して、予測した前記全体描画または前記部分描画で前記画面を描画する描画部と、
少なくとも、前記部分描画に要した部分描画時間の前記全体描画に要した全体描画時間に対する長短に応じて前記基準値を更新する基準値更新部と、を備えていることを特徴とする画面表示装置。
A screen display device for displaying a screen containing at least one object,
Based on a reference value, it is predicted which of the whole drawing that draws the entire screen and the partial drawing that draws the object that changes on the screen can update the screen faster, and the predicted whole drawing or the a drawing unit that draws the screen by partial drawing;
A screen display device, comprising: a reference value updating unit that updates the reference value according to at least the length of the partial drawing time required for the partial drawing relative to the overall drawing time required for the entire drawing. .
前記オブジェクトは、それぞれに固有の固有値を有し、
前記基準値は、前記画面における全ての前記オブジェクトについての前記固有値の総和に対する任意の比率で予め設定されており、
前記描画部は、変化する前記オブジェクトが有する前記固有値を前記画面において総計した総計値が前記基準値以上であるとき、前記全体描画を行う一方、前記総計値が前記基準値未満であるとき、前記部分描画を行い、
前記基準値更新部は、
前記部分描画時間が前記全体描画時間を超えるときに前記基準値を下げるように更新し、前記部分描画時間が前記全体描画時間以下であるときに前記基準値を上げるように更新するか、あるいは前記基準値を維持することを特徴とする請求項1に記載の画面表示装置。
each of the objects has a unique eigenvalue;
The reference value is set in advance at an arbitrary ratio to the total sum of the eigenvalues for all the objects on the screen,
The drawing unit performs the entire drawing when a total value obtained by totaling the eigenvalues of the changing object on the screen is equal to or greater than the reference value, and when the total value is less than the reference value, the do partial drawing,
The reference value updating unit
updating to lower the reference value when the partial drawing time exceeds the overall drawing time, and updating to raise the reference value when the partial drawing time is equal to or less than the overall drawing time; or 2. The screen display device according to claim 1, wherein the reference value is maintained.
前記基準値更新部は、
規定回数の前記部分描画に要した時間の平均である部分描画平均時間が前記全体描画時間を超えるとき、前記基準値を前記全体描画時間に対する前記部分描画平均時間の割合に応じて下げるように更新し、
前記部分描画平均時間が前記全体描画時間以下であるとき、前記規定回数の前記部分描画によって描画された前記オブジェクトの1つ当たりの平均描画時間に前記基準値を乗じることによって前記画面について予測される前記部分描画に要する予測部分描画時間を算出し、
予測部分描画時間が前記全体描画時間未満であるときに、前記基準値を前記全体描画時間に対する前記予測部分描画時間の割合に応じて上げるように更新し、
予測部分描画時間が前記全体描画時間以上であるときに、前記基準値を維持することを特徴とする請求項2に記載の画面表示装置。
The reference value updating unit
When the partial drawing average time, which is the average of the times required for the partial drawing of a specified number of times, exceeds the overall drawing time, the reference value is updated so as to be lowered according to the ratio of the partial drawing average time to the overall drawing time. death,
When the partial drawing average time is equal to or less than the overall drawing time, the screen is predicted by multiplying the average drawing time per one of the objects drawn by the partial drawing of the specified number of times by the reference value. calculating a predicted partial drawing time required for the partial drawing;
when the predicted partial drawing time is less than the total drawing time, updating the reference value so as to increase in accordance with the ratio of the predicted partial drawing time to the total drawing time;
3. The screen display device according to claim 2, wherein the reference value is maintained when the predicted partial drawing time is equal to or longer than the total drawing time.
前記オブジェクトは、それぞれに固有の固有値を有し、
前記描画部は、
前記画面の表示が切り替えられたときに前記全体描画を行うとともに、切り替え表示された前記画面の初回の描画更新時に前記部分描画を行い、
前記基準値更新部は、
前記全体描画時間および前記部分描画時間を登録するとともに、切り替え表示された前記画面の初回の描画更新時に描画された前記オブジェクトの前記固有値を前記画面において総計した初期総計値を前記基準値に設定し、
前記描画部は、2回目以降の描画更新時の、
前記部分描画時間が前記全体描画時間未満であるとき、かつ変化する前記オブジェクトが有する前記固有値を前記画面において総計した総計値が前記基準値以下となる第1状態であるとき、
前記部分描画時間が前記全体描画時間未満であるとき、かつ前記総計値が前記基準値を超える第2状態であるとき、または、
前記部分描画時間が前記全体描画時間以上であるとき、かつ前記総計値が前記基準値以下となる第3状態であるときに、前記部分描画を行い、
前記部分描画時間が前記全体描画時間以上であるとき、かつ前記総計値が前記基準値を超える第4状態であるときに、前記全体描画を行い、
前記基準値更新部は、2回目以降の描画更新時に、
前記第1状態における前記部分描画に要した実描画時間が前記全体描画時間以上であるとき、前記第2状態における前記実描画時間が前記全体描画時間未満であるとき、または前記第3状態であるとき、前記部分描画時間を前記実描画時間に更新するとともに、前記基準値を前記総計値に更新し、
前記第2状態における前記実描画時間が前記全体描画時間以上であるとき、前記基準値を前記総計値と前記基準値との平均値に更新するとともに、前記部分描画時間を前記実描画時間と前記部分描画時間との平均値に更新し、
前記第4状態であるとき、前記全体描画時間を新たに行われた前記全体描画に要した前記全体描画時間に更新することを特徴とする請求項1に記載の画面表示装置。
each of the objects has a unique eigenvalue;
The drawing unit
performing the entire drawing when the display of the screen is switched, and performing the partial drawing at the first drawing update of the switched display of the screen;
The reference value updating unit
registering the entire drawing time and the partial drawing time, and setting an initial total value obtained by summing the peculiar values of the object drawn at the first drawing update of the switched display screen on the screen as the reference value; ,
The drawing unit, at the time of drawing update after the second time,
When the partial drawing time is less than the entire drawing time, and when the total value obtained by summing the eigenvalues of the changing object on the screen is equal to or less than the reference value,
When the partial drawing time is less than the total drawing time and the total value exceeds the reference value in a second state, or
performing the partial drawing when the partial drawing time is equal to or longer than the overall drawing time and in a third state in which the total value is equal to or less than the reference value;
performing the overall drawing when the partial drawing time is equal to or longer than the overall drawing time and in a fourth state in which the total value exceeds the reference value;
The reference value updating unit, when updating the drawing for the second time or later,
when the actual drawing time required for the partial drawing in the first state is equal to or longer than the overall drawing time, when the actual drawing time in the second state is less than the overall drawing time, or in the third state when the partial drawing time is updated to the actual drawing time, and the reference value is updated to the total value;
When the actual drawing time in the second state is equal to or longer than the total drawing time, the reference value is updated to an average value of the total sum value and the reference value, and the partial drawing time is combined with the actual drawing time. Update to the average value with partial drawing time,
2. The screen display device according to claim 1, wherein, in said fourth state, said overall drawing time is updated to said overall drawing time required for said newly performed overall drawing.
前記固有値は単位数であることを特徴とする請求項2から4のいずれか1項に記載の画面表示装置。 5. The screen display device according to claim 2, wherein the eigenvalue is a number of units. 前記固有値は前記画面の全体の面積に対するオブジェクトの面積の割合であることを特徴とする請求項2から4のいずれか1項に記載の画面表示装置。 5. The screen display device according to any one of claims 2 to 4, wherein the eigenvalue is a ratio of the area of the object to the entire area of the screen. 前記固有値は前記オブジェクトの特性に応じて付与された重みであることを特徴とする請求項2から4のいずれか1項に記載の画面表示装置。 5. The screen display device according to any one of claims 2 to 4, wherein the eigenvalue is a weight given according to the characteristics of the object. 前記描画部は、前記部分描画を行うときに、前記画面において複数の前記オブジェクトが重なっていることを、前記画面ごとに設定された、複数の前記オブジェクトが重なり合うことを示す重なり情報に基づいて判定し、複数の前記オブジェクトの少なくとも1つが変化するときに、重なり合う複数の前記オブジェクトを描画することを特徴とする請求項1から7のいずれか1項に記載の画面表示装置。 When performing the partial drawing, the drawing unit determines whether the plurality of objects overlap on the screen based on overlap information indicating that the plurality of objects overlap, which is set for each screen. 8. The screen display device according to any one of claims 1 to 7, wherein when at least one of the plurality of objects changes, the plurality of overlapping objects are drawn. 前記描画部は、重なり合う複数の前記オブジェクトの描画に複数の描画順序が存在するときに、最も効率的に描画を行う前記描画順序を判定し、当該描画順序によって重なり合う複数の前記オブジェクトの描画を行うことを特徴とする請求項8に記載の画面表示装置。 The drawing unit determines the most efficient drawing order when there are a plurality of drawing orders for drawing the plurality of overlapping objects, and draws the plurality of overlapping objects according to the drawing order. 9. The screen display device according to claim 8, wherein: 前記基準値は前記画面ごとに設定されていることを特徴とする請求項1から9のいずれか1項に記載の画面表示装置。 10. The screen display device according to claim 1, wherein the reference value is set for each screen.
JP2018227333A 2018-12-04 2018-12-04 screen display device Active JP7149826B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018227333A JP7149826B2 (en) 2018-12-04 2018-12-04 screen display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018227333A JP7149826B2 (en) 2018-12-04 2018-12-04 screen display device

Publications (2)

Publication Number Publication Date
JP2020091354A JP2020091354A (en) 2020-06-11
JP7149826B2 true JP7149826B2 (en) 2022-10-07

Family

ID=71012769

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018227333A Active JP7149826B2 (en) 2018-12-04 2018-12-04 screen display device

Country Status (1)

Country Link
JP (1) JP7149826B2 (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004171283A (en) 2002-11-20 2004-06-17 Digital Electronics Corp Display control device, program and recording medium with the program recorded
JP2005275028A (en) 2004-03-25 2005-10-06 Mitsubishi Electric Corp Display system
JP2008185885A (en) 2007-01-31 2008-08-14 Internatl Business Mach Corp <Ibm> Technique for controlling display of screen
JP2009009405A (en) 2007-06-28 2009-01-15 Toshiba Corp Cellular phone
US20090315901A1 (en) 2008-06-18 2009-12-24 Feng Qiao Electronic paper panel image update method
JP2010107924A (en) 2008-10-31 2010-05-13 Delta Electronics (Japan) Inc Screen rewriting method of storage type display device
JP2011008689A (en) 2009-06-29 2011-01-13 Kyocera Mita Corp Image forming apparatus
JP2013045401A (en) 2011-08-26 2013-03-04 Mitsubishi Electric Corp Animation drawing device
JP2013218478A (en) 2012-04-06 2013-10-24 Hitachi Automotive Systems Ltd Plotting quickening method and device
WO2017033289A1 (en) 2015-08-25 2017-03-02 三菱電機株式会社 Rendering control device
US20170124981A1 (en) 2016-01-20 2017-05-04 Mediatek Inc. Adaptive Display Partial Update Methods And Apparatus Thereof

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5436636A (en) * 1990-04-20 1995-07-25 Canon Kabushiki Kaisha Display control device which restricts the start of partial updating in accordance with whether the number of lines to be updated exceeds a predetermined number
JP3707208B2 (en) * 1997-06-23 2005-10-19 富士ゼロックス株式会社 Drawing processor
JPH11238027A (en) * 1998-02-24 1999-08-31 Hitachi Ltd Screen update method and screen update terminal equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004171283A (en) 2002-11-20 2004-06-17 Digital Electronics Corp Display control device, program and recording medium with the program recorded
JP2005275028A (en) 2004-03-25 2005-10-06 Mitsubishi Electric Corp Display system
JP2008185885A (en) 2007-01-31 2008-08-14 Internatl Business Mach Corp <Ibm> Technique for controlling display of screen
JP2009009405A (en) 2007-06-28 2009-01-15 Toshiba Corp Cellular phone
US20090315901A1 (en) 2008-06-18 2009-12-24 Feng Qiao Electronic paper panel image update method
JP2010107924A (en) 2008-10-31 2010-05-13 Delta Electronics (Japan) Inc Screen rewriting method of storage type display device
JP2011008689A (en) 2009-06-29 2011-01-13 Kyocera Mita Corp Image forming apparatus
JP2013045401A (en) 2011-08-26 2013-03-04 Mitsubishi Electric Corp Animation drawing device
JP2013218478A (en) 2012-04-06 2013-10-24 Hitachi Automotive Systems Ltd Plotting quickening method and device
WO2017033289A1 (en) 2015-08-25 2017-03-02 三菱電機株式会社 Rendering control device
US20170124981A1 (en) 2016-01-20 2017-05-04 Mediatek Inc. Adaptive Display Partial Update Methods And Apparatus Thereof

Also Published As

Publication number Publication date
JP2020091354A (en) 2020-06-11

Similar Documents

Publication Publication Date Title
US8471855B2 (en) Graphics-rendering apparatus
JP5107635B2 (en) How to correct the coordinates on the touch panel to the true display coordinates
US10627980B2 (en) Organization mode support mechanisms
CN104718528A (en) Method and device for determining color of interface control, and terminal device
US5151974A (en) Data display method
US20140089867A1 (en) Mobile terminal having touch screen and method for displaying contents therein
US20210375237A1 (en) Methods and systems for display screens with relative coordinate systems
CN106033334B (en) Method and device for drawing interface element
CN107680544B (en) Color temperature calibration method and mobile terminal
KR20130097886A (en) Apparatus and method for rendering
JP7149826B2 (en) screen display device
JP5905433B2 (en) Information processing apparatus, expenditure situation visualization method, and expenditure situation visualization program
KR102536267B1 (en) Electronic device and method for displaying slider track and slider
JP6161290B2 (en) Display control apparatus, display control method and program thereof
JP2012008893A (en) Image creation support system, and support apparatus in image creation support system
JP6667647B2 (en) Remote control device
US20150277676A1 (en) Creating an interaction area for listing user-selectable items
US9830721B2 (en) Rendering method and apparatus
JP2010203956A (en) Bar graph display device
JP6910220B2 (en) Programmable display
JP6286977B2 (en) Electronic device, display method, and display program
KR102550532B1 (en) Method, and apparatus for controlling operation list
JP5941207B1 (en) User interface program and computer mounting method
JP6004985B2 (en) Map drawing device
JP5973104B1 (en) Information processing apparatus, expenditure situation visualization method, and expenditure situation visualization program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20211201

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220824

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220927

R150 Certificate of patent or registration of utility model

Ref document number: 7149826

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150