JP6910220B2 - Programmable display - Google Patents
Programmable display Download PDFInfo
- Publication number
- JP6910220B2 JP6910220B2 JP2017125462A JP2017125462A JP6910220B2 JP 6910220 B2 JP6910220 B2 JP 6910220B2 JP 2017125462 A JP2017125462 A JP 2017125462A JP 2017125462 A JP2017125462 A JP 2017125462A JP 6910220 B2 JP6910220 B2 JP 6910220B2
- Authority
- JP
- Japan
- Prior art keywords
- display
- frequency
- display area
- read
- reading
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Digital Computer Display Output (AREA)
- Controls And Circuits For Display Device (AREA)
Description
本発明は、変数値に応じて動的に状態が変化するオブジェクトを含む画像を表示する、プログラマブル表示器に関する。 The present invention relates to a programmable display that displays an image containing an object whose state dynamically changes according to a variable value.
プログラマブルロジックコントローラ(PLC)に接続されたデバイスの稼働状況を表示したり、PLCへの指示等の各種の操作を受け付けたりするプログラマブル表示器が、従来から開発されている。プログラマブル表示器は、タッチパネルモニタ等の表示装置兼入力装置を有しており、上記稼働状況を示すメーターおよびランプ等のオブジェクト、ならびにユーザの操作を受け付けるボタン等のオブジェクトが含まれた画像を表示する。 Programmable indicators that display the operating status of devices connected to a programmable logic controller (PLC) and accept various operations such as instructions to PLC have been conventionally developed. The programmable display has a display device and an input device such as a touch panel monitor, and displays an image including objects such as meters and lamps indicating the above operating status and objects such as buttons that accept user operations. ..
近年のプログラマブル表示器では、該表示器の表示画面の解像度よりも大きな画像を描画し、該画像の一部を表示させることが一般的である。例えば、下記特許文献1には、ディスプレイの解像度よりも大きな仮想スクリーンをスクロール表示させることができるプログラマブル表示器であって、一定周期で接続機器との通信を行って表示内容の更新を行うプログラマブル表示器が開示されている。 In recent programmable displays, it is common to draw an image larger than the resolution of the display screen of the display and display a part of the image. For example, Patent Document 1 below describes a programmable display capable of scrolling a virtual screen larger than the resolution of the display, and a programmable display that communicates with a connected device at regular intervals to update the display contents. The vessel is disclosed.
プログラマブル表示器は、画像に含まれるオブジェクトの表示に、PLCから読み出すデバイス値およびビット値等の変数値を反映させることができる。プログラマブル表示器がPLCから変数値を読み出す頻度は、プログラマブル表示器の内部設定等で一定頻度に設定することができるが、プログラマブル表示器における最高頻度に設定されることが多い。これは、変数値に応じて各オブジェクトの表示を細やかに変化させるためには、変数値をよりリアルタイムに近い頻度で読み出す必要があるためである。 The programmable display can reflect variable values such as device values and bit values read from the PLC in the display of objects included in the image. The frequency with which the programmable display reads the variable value from the PLC can be set to a constant frequency by the internal setting of the programmable display or the like, but it is often set to the highest frequency in the programmable display. This is because it is necessary to read the variable value at a frequency closer to real time in order to finely change the display of each object according to the variable value.
しかしながら、読出頻度を最高頻度に設定した場合、従来技術に係るプログラマブル表示器では、表示されないオブジェクトが参照する変数値を必要以上に高頻度で読み出すことになり、変数値の読み出しに係る処理負荷が増大する。処理負荷が増大すると、プログラマブル表示器における画像の描画速度および画面更新の速度が低下してしまい、却って表示品質が低下してしまう虞があった。 However, when the read frequency is set to the highest frequency, the programmable display according to the prior art reads the variable value referred to by the invisible object more frequently than necessary, and the processing load related to the read of the variable value becomes high. Increase. If the processing load increases, the image drawing speed and screen update speed of the programmable display will decrease, and there is a risk that the display quality will deteriorate.
本発明は、上記問題点に鑑みてなされたものであり、その目的は、プログラマブル表示器の処理負荷を低減することにある。 The present invention has been made in view of the above problems, and an object of the present invention is to reduce the processing load of a programmable display.
上記の課題を解決するために、本発明の一態様に係るプログラマブル表示器は、変数値に応じて動的に状態が変化するオブジェクトを配置した第1画像の一部分を、表示領域として表示するプログラマブル表示器であって、コントローラからの上記変数値の読出頻度を決定する読出頻度決定部と、上記読出頻度決定部が決定した上記読出頻度で上記コントローラから上記変数値を読み出す読出部と、上記変数値に応じて上記オブジェクトを再描画する表示更新部と、を備え、上記読出頻度決定部は、上記表示領域の範囲外に位置しているオブジェクトの上記読出頻度を、少なくとも一部が上記表示領域の範囲内に位置しているオブジェクトの上記読出頻度よりも、低い頻度に決定する。 In order to solve the above problems, the programmable display according to one aspect of the present invention is programmable to display a part of a first image in which an object whose state changes dynamically according to a variable value is arranged as a display area. A display, a read frequency determination unit that determines the read frequency of the variable value from the controller, a read unit that reads the variable value from the controller at the read frequency determined by the read frequency determination unit, and the variable. A display update unit that redraws the object according to the value is provided, and the read frequency determination unit determines the read frequency of an object located outside the range of the display area, at least in part of the display area. It is determined that the frequency of reading the objects located within the range of is lower than the above-mentioned reading frequency.
上記オブジェクトは読出頻度を変更可能なオブジェクトを示している。しかしながら、上記第1画像は、読出頻度が一定であるオブジェクトを含んでいてもよい。例えば、トレンドグラフを描画する機能、またはデータロギングの機能を有するオブジェクトの読出頻度は、一定としてもよい。このようなオブジェクトは、変数値を一定間隔で読み出してグラフ化する、またはログをとる必要があるからである。読出頻度が一定であるオブジェクトが参照する変数値については、該オブジェクトが表示領域の範囲内であるか範囲外であるかに関わらず、一定の読出頻度で読み出される。 The above object indicates an object whose read frequency can be changed. However, the first image may include an object whose reading frequency is constant. For example, the reading frequency of an object having a function of drawing a trend graph or a function of data logging may be constant. This is because such objects need to read variable values at regular intervals and graph or log them. Variable values referenced by an object with a constant read frequency are read at a constant read frequency regardless of whether the object is within or outside the display area.
上記の構成または方法によれば、プログラマブル表示器は、表示していないオブジェクトに係る変数値の読み込み頻度を低下させる。これにより、変数値の読み出しに係る処理負荷を低減することができる。したがって、プログラマブル表示器における画像の描画速度および画面更新の速度を向上させることができる。 According to the above configuration or method, the programmable display reduces the frequency of reading variable values for non-displaying objects. As a result, the processing load related to reading the variable value can be reduced. Therefore, it is possible to improve the image drawing speed and the screen update speed of the programmable display.
従来のプログラマブル表示器では、各オブジェクトに係る変数値の読出頻度が一様であるため、第1画像に含まれるオブジェクトの数が増えるほど処理負荷がより増大していた。一方、上記の構成によれば、プログラマブル表示器は、オブジェクトの数が増加した場合でも、表示していないオブジェクトに係る変数値の読み出し頻度を抑えることができる。そのため、第1画像のサイズが大きい場合等、第1画像がより多くのオブジェクトを含む場合の処理負荷を低減することができるため、オブジェクトの数が増加した場合でもプログラマブル表示器における画像の描画速度および画面更新の速度を確保することができる。 In the conventional programmable display, since the frequency of reading the variable values related to each object is uniform, the processing load increases as the number of objects included in the first image increases. On the other hand, according to the above configuration, the programmable display can suppress the reading frequency of the variable value related to the non-displayed object even when the number of objects increases. Therefore, the processing load when the first image contains more objects, such as when the size of the first image is large, can be reduced, so that the drawing speed of the image on the programmable display is increased even when the number of objects increases. And the speed of screen update can be secured.
上記の課題を解決するために、上記第1画像は、第1オブジェクトと、該第1オブジェクトの上記変数値の参照先である第2オブジェクトと、を含み、上記読出頻度決定部は、上記第1オブジェクトが上記表示領域の範囲内に位置している場合、上記第2オブジェクトの位置に関わらず、当該第2オブジェクトが上記表示領域の範囲内に位置しているとみなして上記読出頻度を決定してもよい。 In order to solve the above problem, the first image includes a first object and a second object which is a reference destination of the variable value of the first object, and the read frequency determination unit is the first object. When one object is located within the range of the display area, it is considered that the second object is located within the range of the display area regardless of the position of the second object, and the read frequency is determined. You may.
上記の構成によれば、プログラマブル表示器は、表示していないオブジェクトであっても、表示しているオブジェクトが変数値を参照しているオブジェクトについては、高い読出頻度を確保する。これにより、表示しているオブジェクトに対する変数値を高い反映頻度に確保することができる。したがって、ユーザに変数値の反映遅れ等の表示の違和感を与えることなく、プログラマブル表示器における画像の描画速度および画面更新の速度を向上させることができる。 According to the above configuration, the programmable display ensures a high read frequency for an object whose display refers to a variable value, even if the object is not displayed. As a result, the variable value for the displayed object can be secured with a high reflection frequency. Therefore, it is possible to improve the image drawing speed and the screen update speed on the programmable display without giving the user a sense of display discomfort such as a delay in reflecting the variable value.
上記の課題を解決するために、上記プログラマブル表示器は、上記第1画像に対する上記表示領域の位置および大きさの少なくとも一方を、ユーザの入力操作に応じて変更する表示領域変更部を備え、上記読出頻度決定部は、上記表示領域変更部が上記表示領域の位置および大きさの少なくとも一方を変更した場合、上記読出頻度を再決定してもよい。 In order to solve the above problems, the programmable display includes a display area changing unit that changes at least one of the position and size of the display area with respect to the first image according to a user's input operation. The read frequency determination unit may redetermine the read frequency when the display area change unit changes at least one of the position and size of the display area.
上記の構成によれば、プログラマブル表示器は、例えばユーザの画面スクロールまたは画面の拡大/縮小等の操作に応じて表示領域が変化した場合、該変化に伴って動的に読出頻度を変更する。これにより、ユーザに変数値の反映遅れ等の表示の違和感を与えることなく、プログラマブル表示器における画像の描画速度および画面更新の速度を向上させることができる。 According to the above configuration, when the display area changes according to an operation such as scrolling the screen of the user or enlarging / reducing the screen, the programmable display dynamically changes the reading frequency according to the change. As a result, it is possible to improve the image drawing speed and the screen update speed on the programmable display without giving the user a sense of display discomfort such as a delay in reflecting the variable value.
上記の課題を解決するために、上記プログラマブル表示器の上記読出頻度決定部は、上記表示領域の範囲外に位置しているオブジェクトの上記読出頻度を、上記表示領域と上記オブジェクトとの位置関係に応じて段階的に低下させてもよい。 In order to solve the above problem, the read frequency determination unit of the programmable display sets the read frequency of an object located outside the range of the display area to the positional relationship between the display area and the object. It may be lowered stepwise accordingly.
上記の構成によれば、プログラマブル表示器は、読出頻度をどの程度低下させるか、より細やかに決定することができる。したがって、高い表示品質を確保することができる。 According to the above configuration, the programmable display can more finely determine how much the read frequency is reduced. Therefore, high display quality can be ensured.
上記の課題を解決するために、上記表示更新部は、上記表示領域の範囲外に位置しているオブジェクトを、上記表示領域の範囲内に位置しているオブジェクトより低頻度で再描画してもよい。 In order to solve the above problem, the display update unit may redraw an object located outside the range of the display area less frequently than an object located within the range of the display area. good.
上記の構成によれば、プログラマブル表示器は、表示していないオブジェクトの再描画の頻度を抑える。したがって、第1画像に含まれるオブジェクト全部を同じ頻度で再描画するよりも、描画に係る処理負荷を低減することができる。これにより、プログラマブル表示器における画像の描画速度および画面更新の速度をさらに向上させることができる。 According to the above configuration, the programmable display reduces the frequency of redrawing objects that are not displayed. Therefore, the processing load related to drawing can be reduced as compared with redrawing all the objects included in the first image at the same frequency. This makes it possible to further improve the image drawing speed and screen update speed of the programmable display.
上記の課題を解決するために、上記第1画像は、上記オブジェクトに重畳して表示されるウィンドウを含み、上記読出頻度決定部は、上記表示領域の範囲内に位置しているオブジェクトのうち、上記ウィンドウと重なって位置しているオブジェクトの読出頻度を、上記ウィンドウと重なっていないオブジェクトの読出頻度よりも低い頻度に決定してもよい。 In order to solve the above problem, the first image includes a window displayed superimposed on the object, and the read frequency determination unit is among the objects located within the range of the display area. The reading frequency of the object located overlapping the window may be determined to be lower than the reading frequency of the object not overlapping the window.
上記の構成によれば、ウィンドウの下に隠れてユーザからは見えないオブジェクトについては、変数値の読出頻度を抑えることができる。したがって、過剰な変数値の読み出しを防いでより処理負荷を低減することができる。これにより、プログラマブル表示器における画像の描画速度および画面更新の速度をさらに向上させることができる。 According to the above configuration, the frequency of reading the variable value can be suppressed for the object hidden under the window and invisible to the user. Therefore, it is possible to prevent reading of an excessive variable value and further reduce the processing load. This makes it possible to further improve the image drawing speed and screen update speed of the programmable display.
本発明の一態様によれば、プログラマブル表示器の処理負荷を低減することができる。 According to one aspect of the present invention, the processing load of the programmable display can be reduced.
〔実施形態1〕
本発明の実施形態1について、図1〜7を参照して説明する。まず始めに、本実施形態に係る表示制御システム300に含まれる各種装置の構成について、図1を参照して説明する。図1は、表示制御システム300に含まれる装置の要部構成を示すブロック図である。表示制御システム300は少なくとも、プログラマブルロジックコントローラ(PLC、コントローラ)3と、パーソナルコンピュータ(PC)1と、プログラマブル表示器2とを含む。また、PLC3は変数値(後述)の収集先である1つ以上の機器4と接続している。
[Embodiment 1]
Embodiment 1 of the present invention will be described with reference to FIGS. 1 to 7. First, the configurations of various devices included in the
(PLC3および機器4の構成)
PLC3は、機器4から変数値を収集するコントローラである。本実施形態における「変数値」とは、PLC3が内部に保持している、または機器4から取得するデバイス値を示す。換言すると、本実施形態における変数値は、プログラマブル表示器2の内部変数値ではなく、PLC3が保持するものである。例えば、機器4が測定した温度または圧力等、外部機器で測定される各種パラメータの値、外部機器(具体的には、I/O機器およびセンサ等)のオンまたはオフを示す外部機器のビット値、PLC3の内部デバイス(レジスタ等)に保持されている各種パラメータおよびビットの値等を示す。
(Configuration of
The
PLC3は、機器4それぞれから所定の周期で変数値を収集している。PLC3は、プログラマブル表示器2からの要求に従って、変数値をプログラマブル表示器2に送信する。また、PLC3は、プログラマブル表示器2の制御指示にしたがって、PLC3に接続された機器4の動作を制御する。機器4は、PLC3に接続している外部機器である。機器4は例えば、工場の生産ラインの各工程に係る製造機器である。
The
(PC1の構成)
PC1は、プログラマブル表示器2が描画する画像を作成するための作画装置である。PC1は例えば、OS(Operating System)が実装されている汎用コンピュータで実現される。PC1は、入力装置11と、モニタ12と、データ作成部13と、記憶部14と、送信部15とを備えている。PC1はこの他に、CPU(Central Processing Unit)、メモリ、および通信インタフェース(I/F)等、汎用コンピュータに一般的に備えられている構成を含んでいてもよい。
(Configuration of PC1)
The PC 1 is a drawing device for creating an image drawn by the
入力装置11は、ユーザの入力操作を受け付ける。入力装置11は例えば、PC1のキーボードおよびマウスである。モニタ12は、PC1のGUI(Graphical User Interface)を表示する。記憶部14は、PC1の画像作成に係る各種データを記憶する。記憶部14は、HDD(Hard Disk Drive)やSSD(Solid State Drive)等のようなPC1の内部記憶装置であってもよい。また、記憶部14は、SDカード、USB(Universal Serial Bus)フラッシュメモリ、およびDVD(Digital Versatile Disc)等のように、PC1が所定のI/Fまたはドライブを介してアクセス可能な外部記憶装置であってもよい。
The input device 11 accepts a user's input operation. The input device 11 is, for example, the keyboard and mouse of the PC1. The monitor 12 displays the GUI (Graphical User Interface) of the PC1. The
記憶部14は、少なくともデータファイル141を記憶している。データファイル141は、プログラマブル表示器2が1枚の画像を描画するために必要なデータをまとめたデータ群である。なお、本実施形態に係るプログラマブル表示器2は、表示面の解像度よりも大きい画像を内部的に一旦描画し、描画した画像の一部分の領域を、表示領域として表示面に表示する仕様である。以降、プログラマブル表示器2が描画する1枚の画像全体を「全体画像」と称する。
The
データファイル141は、少なくともオブジェクト設定142と、画像データ143とを含む。オブジェクト設定142の構成については、後で詳述する。画像データ143は、全体画像の背景画像およびオブジェクトの画像のデータである。なお、データファイル141には、後述する全体画像のサイズを示す情報も含まれる。
The data file 141 includes at
データ作成部13は、入力装置11が受け付けた入力操作に応じて、プログラマブル表示器2が描画する画像を作成する。データ作成部13は、作成した画像を示すデータファイル141を生成して記憶部14に記憶させる。また、データ作成部13は、作成したデータファイル141を、送信部15を介してプログラマブル表示器2に送信する。なお、データ作成部13は、データファイル141をプログラマブル表示器2で実行可能なファイル形式に変換してから送信してもよい。
The
図2は、データ作成部13が作画する全体画像(第1画像)500の一例を示す図である。全体画像500は1つ以上のオブジェクトを含んでいる。本実施形態に係るオブジェクトは、変数値に応じて、色、大きさ、形、および表示内容等、該オブジェクトの状態のうち少なくとも1つが動的に変化する、動的オブジェクトである。
FIG. 2 is a diagram showing an example of an overall image (first image) 500 drawn by the
各オブジェクトには、該オブジェクトが参照している変数値の読出頻度が設定されている。読出頻度の設定(初期設定)は、プログラマブル表示器2またはPC1にて行われる。ここで、「読出頻度」とは、プログラマブル表示器2がPLC3から変数値を読み出す頻度を意味する。詳しくは後述するが、読出頻度は、プログラマブル表示器2によってリアルタイムに変更され得る。
For each object, the reading frequency of the variable value referred to by the object is set. The reading frequency is set (initial setting) on the
なお、読出頻度が初期設定された値から変化しない(読出頻度が一定である)オブジェクトが存在していてもよい。例えば、トレンドグラフを描画する機能、またはデータロギングの機能を有するオブジェクトの読出頻度は、一定としてもよい。このようなオブジェクトは変数値を一定間隔で読み出して、グラフ化する、またはログをとる必要があるからである。オブジェクトの読出頻度が可変であるか一定であるかを示す情報は、読出頻度の初期設定時に設定される。 It should be noted that there may be an object whose read frequency does not change from the initially set value (the read frequency is constant). For example, the reading frequency of an object having a function of drawing a trend graph or a function of data logging may be constant. This is because such objects need to read variable values at regular intervals and graph or log them. Information indicating whether the read frequency of the object is variable or constant is set at the time of initial setting of the read frequency.
以下の説明では、オブジェクトは全て、読出頻度が可変に設定されているオブジェクトであるとする。しかしながら、本実施形態にて示す内容は、読出頻度が一定のオブジェクトと可変のオブジェクトとが混在する全体画像500にも適用可能である。この場合、以下で説明する読出頻度の変更に係る処理は、読出頻度が可変なオブジェクトについてのみ行われる。
In the following description, it is assumed that all the objects are objects whose read frequency is set to be variable. However, the content shown in the present embodiment can be applied to the
以下、データ作成部13による全体画像500の作画の各工程について説明する。なお、以下で説明する各工程は順不同で行われてもよいし、特定の工程が繰り返し行われてもよい。また、以下で説明する各工程は、ユーザが入力装置11を介して入力操作を行うことで実行される工程であってもよいし、PC1が自動的に実行する工程であってもよい。
Hereinafter, each step of drawing the
データ作成部13は、作画の一工程として、全体画像500のサイズを決定する。また、データ作成部13は、作画の一工程として、全体画像500に配置するオブジェクトを指定し、該オブジェクトの全体画像500における位置と、該オブジェクトの各種パラメータとを設定する。なお、データ作成部13は作画の一工程として、全体画像500の背景色または背景画像を設定してもよい。
The
データ作成部13は、各工程での設定を示す情報をオブジェクト設定142としてまとめて、画像データ143とともにデータファイル141として記憶部14に記憶させる。
The
図3は、オブジェクト設定142のデータ構造の一例を示す図である。オブジェクト設定142は、オブジェクトを一意に示す識別情報に対し、該オブジェクトの全体画像500における位置と、各種パラメータの設定に係る情報とを対応付けたデータである。図示の例では、オブジェクト設定142は1レコードで、ある1つのオブジェクトの全体画像500における位置と、該オブジェクトの各種パラメータの設定とを示している。
FIG. 3 is a diagram showing an example of the data structure of the object setting 142. The object setting 142 is data in which the position of the object in the
「名称」列には、オブジェクトの識別情報としてオブジェクト名が格納される。「位置座標」列には、オブジェクトの全体画像500における位置座標(例えば、オブジェクトの画像の左上隅の1点におけるx座標およびy座標)が格納される。「タイプ」列には、オブジェクトのタイプを示す情報が格納される。
In the "Name" column, the object name is stored as the identification information of the object. The "position coordinates" column stores the position coordinates of the
なお、本実施形態において「オブジェクトのタイプ」とは、オブジェクトの機能(種類)を示す情報であって、オブジェクトにおける変数値の反映方法を指定する情報である。例えば、オブジェクトのタイプが「ランプ」である場合、該オブジェクトは例えばオンまたはオフの状態を示す機能を持つランプである。そして、変数値は、該ランプのオンオフの状態に反映される。また例えば、オブジェクトのタイプが「メーター」である場合、オブジェクトはメーターの形状をしており、変数値は、該メーターの表示する数値に反映される。 In the present embodiment, the "object type" is information indicating the function (type) of the object, and is information for specifying the method of reflecting the variable value in the object. For example, when the type of an object is "lamp", the object is, for example, a lamp having a function of indicating an on or off state. Then, the variable value is reflected in the on / off state of the lamp. Further, for example, when the type of the object is "meter", the object has the shape of a meter, and the variable value is reflected in the numerical value displayed by the meter.
「塗込色」列には、オブジェクトの塗りつぶし色(塗込色)を示す情報が格納される。「枠線色」列には、オブジェクトの枠線の色(枠線色)を示す情報が格納される。スイッチおよびランプのように、オブジェクトのタイプがオンまたはオフの状態を示す機能を持つオブジェクトである場合、塗込色および枠線色は、図示のようにオン時とオフ時の2種類設定されていてもよい。「参照値」列には、オブジェクトが参照する変数を一意に示す情報が格納される。図示の例では、Dから始まる変数は、数値が格納される変数である。一方、Mから始まる変数は、ビット値が格納される変数である。なお、図示の例は一例であって、各オブジェクトが参照する変数の種類は特に限定されない。 In the "Fill color" column, information indicating the fill color (fill color) of the object is stored. Information indicating the border color (border color) of the object is stored in the "border color" column. When the object type is an object that has a function to indicate the on or off state, such as a switch and a lamp, the fill color and the border color are set to two types, on and off, as shown in the figure. You may. The "reference value" column stores information that uniquely indicates the variable referenced by the object. In the illustrated example, the variables starting with D are the variables that store the numbers. On the other hand, the variable starting with M is a variable in which the bit value is stored. Note that the illustrated example is an example, and the types of variables referenced by each object are not particularly limited.
なお、各オブジェクトが参照する変数は1種類とは限らない。例えば図中のObject3のように、塗込色および枠線色を変数値に応じて決定することとしてもよい。この場合、Object3の数値表示の塗込色および枠線色は、プログラマブル表示器2がPLC3から取得する、D005およびD006という変数の値に応じて決定される。
The variable referenced by each object is not limited to one type. For example, as in Object3 in the figure, the fill color and the border color may be determined according to the variable values. In this case, the fill color and the border color of the numerical display of Object3 are determined according to the values of the variables D005 and D006 acquired from the PLC3 by the
送信部15は、データ作成部13の指示に従って、記憶部14に保存されているデータファイル141をプログラマブル表示器2に送信する。
The
(プログラマブル表示器2の構成)
プログラマブル表示器2は、全体画像500を描画し、該全体画像500の一部分を表示領域として表示するHMI(Human Machine Interface)機器である。プログラマブル表示器2は、全体画像500を描画し、該全体画像500の一部分の領域を表示する表示機能と、表示画面に対するユーザの入力を受け付ける操作機能と、全体画像500に配置されたオブジェクトそれぞれが参照している変数値の読出頻度を動的に決定する読出頻度決定機能と、を有している。
(Configuration of programmable display 2)
The
プログラマブル表示器2はこれらの機能を実現するために、受信部21と、タッチパネル22と、表示パネル23と、インタフェース(I/F)26と、記憶部25と、制御部24と、を含む。
The
受信部21は、PC1の送信部15と通信し、PC1からデータファイル141を受信する。受信部21はデータファイル141を制御部24に送る。タッチパネル22は、表示パネル23に重ねるように設けられており、表示パネル23上でのタッチ入力を受け付ける。表示パネル23は、例えば液晶ディスプレイのような平板型の表示装置である。I/F26は、後述する読出部242の指示に従って、PLC3と通信する。具体的には、I/F26はPLC3に変数値を要求し、該要求への返信としてPLC3から変数値を受信する。
The receiving
なお、本実施形態では、プログラマブル表示器2をタッチパネル22および表示パネル23を備えた装置としたが、プログラマブル表示器2はこのような装置形態には限らない。例えば、プログラマブル表示器2は、産業用コンピュータのような、タッチパネル22および表示パネル23を備えていない装置に、タッチパネル22および表示パネル23を含むディスプレイを接続することによって構成してもよい。
In the present embodiment, the
記憶部25は、PC1から受信したデータファイル141と、制御部24において作成される読出頻度データ251と、PLC3から読み出された各種変数値252とを記憶する。読出頻度データ251のデータ構造については、後で詳述する。なお、記憶部25は複数の記憶装置で構成されていてもよい。この場合、例えばプログラマブル表示器2に頻繁に読み出される読出頻度データ251および変数値252をプログラマブル表示器2に内蔵された記憶装置に格納し、SDカード等の外部記憶装置にデータファイル141を格納していてもよい。
The
制御部24は、プログラマブル表示器2を統括的に制御する。制御部24は、表示制御部(表示更新部、表示領域変更部)243と、読出頻度決定部241と、読出部242と、を含む。
The
表示制御部243は、データファイル141と、読出部242が読み出した変数値とに応じて全体画像500を描画し、表示パネル23に全体画像500の一部分を表示させる。表示制御部243はまた、所定の表示更新の周期で、全体画像500および全体画像500に含まれるオブジェクトを再描画する。
The
また、表示制御部243は、タッチパネル22がユーザの特定の入力操作(例えばタッチ操作、スワイプ操作、またはピンチ操作など)を受け付けた場合、該入力操作に応じて、表示パネル23に表示している画像を変更する。
Further, when the
より具体的には、上記特定の入力操作が全体画像500の切り替えを指示する操作の場合、表示制御部243は、記憶部25から次に表示すべき全体画像500を描画するためのデータファイル141を読み出し、読み出した新たなデータファイル141と読出部242が読み出す変数値とに応じて、新たな全体画像500を生成する。
More specifically, when the specific input operation is an operation instructing switching of the
また、上記特定の入力操作が、表示パネル23に表示している画像の拡大または縮小を指示する操作の場合、表示制御部243は、これらの入力操作に従って、表示領域の大きさを変更する。また、上記特定の入力操作が、表示パネル23の表示画面のスクロールを指示する操作の場合、表示制御部243は、該入力操作に従って、全体画像500に対する表示領域の位置を変更することで、上記表示画面をスクロールさせる。
Further, when the specific input operation is an operation for instructing enlargement or reduction of the image displayed on the
表示制御部243は全体画像500の切り替え、表示領域の位置の変更、および表示領域の大きさの変更の少なくともいずれかを行った場合、該切り替えおよび変更を読出頻度決定部241に通知する。表示制御部243はまた、制御部24がアイドル状態(全体画像500の描画、および表示領域の変更が無い状態)である場合、オブジェクトの再描画を定期的に行ってもよい。例えば、表示制御部243は、表示パネル23のリフレッシュのタイミング等に合わせて、オブジェクトの再描画を行ってもよい。
When the
読出頻度決定部241は、データファイル141のオブジェクト設定142にて指定されるオブジェクトそれぞれについて、該オブジェクトが参照している変数値の読出頻度を決定する。読出頻度決定部241は、少なくとも、表示制御部243が表示パネルに全体画像500の一部分を表示させるタイミングまでに、該全体画像500に含まれるオブジェクトの読出頻度を決定する。
The read
読出頻度決定部241は、各オブジェクトが、表示領域の範囲内に位置しているか否かに応じて読出頻度を決定する。読出頻度決定部241は、表示領域の範囲内に位置していないオブジェクトの読出頻度を、少なくとも一部が表示領域の範囲内に位置しているオブジェクトの読出頻度よりも低い頻度に決定する。以降、少なくとも一部分が表示領域の範囲内に位置しているオブジェクトを「表示オブジェクト」、表示領域の範囲内に位置していない(すなわち、表示領域の範囲外に位置している)オブジェクトを「非表示オブジェクト」と称する。
The read
なお、読出頻度は少なくとも「高頻度」および「低頻度」の2段階に分かれていればよい。また、読出頻度の具体的な値は適宜定められればよい。例えば、読出頻度が低頻度の場合、5秒に1回の割合、または高頻度の場合の4分の1の割合で変数値が読み出されることとしてもよい。また、具体的な読出頻度の値または割合は、ユーザが適宜設定可能なものであってもよい。 The reading frequency may be divided into at least two stages, "high frequency" and "low frequency". Further, a specific value of the reading frequency may be appropriately determined. For example, when the reading frequency is low, the variable value may be read once every 5 seconds, or at a rate of 1/4 when the reading frequency is high. Further, the specific value or ratio of the reading frequency may be appropriately set by the user.
図4は、表示領域600とオブジェクトの読出頻度との関係を示す図である。全体画像500は、上述のようにPC1にて作画されデータファイル141に記録されているため、図4に示す全体画像500は図2に示す全体画像500と見た目は同じものである。図4における点線は、表示パネル23の表示領域600を示している。また、図4において斜線で塗りつぶされたオブジェクトは、読出頻度が高頻度であるオブジェクトである。
FIG. 4 is a diagram showing the relationship between the
読出頻度決定部241は、表示制御部243から表示領域600の位置および大きさを取得する。読出頻度決定部241はデータファイル141のオブジェクト設定142を参照して、各オブジェクトが、表示領域600の範囲内に位置しているか否かを判定する。読出頻度決定部241は、オブジェクトの画像の少なくとも一部分が表示領域600に含まれている場合に、該オブジェクトが表示領域600の範囲内に位置していると判定する。
The read
読出頻度決定部241は上述の判定を行うことで、全体画像500に含まれるオブジェクトを表示オブジェクトと非表示オブジェクトとに分類し、各オブジェクトの読出頻度を決定する。具体的には、図4に示すように、表示オブジェクトの読出頻度は高頻度に、非表示オブジェクトの読出頻度は低頻度に決定される。
By performing the above determination, the read
読出頻度決定部241は決定したオブジェクト毎の読出頻度を、読出頻度データ251として記憶部25に記憶させる。また、読出頻度決定部241は、表示制御部243から表示領域の位置または大きさの変更を通知された場合は、上記判定および読出頻度の再決定を行い、読出頻度データ251を更新する。
The read
図5は、読出頻度データ251のデータ構造の一例を示す図である。読出頻度データ251は、オブジェクトを一意に示す識別情報に、読出頻度を示す情報が対応付けられたデータである。図示の例では、「名称」列に上記識別情報としてオブジェクト名が格納されている。また図示の例では、「読出頻度」列に、読出頻度の高低を示す情報が格納される。
FIG. 5 is a diagram showing an example of the data structure of the read
読出頻度データ251は、データファイル141ごとに作成され、読出頻度決定部241が読出頻度を決定する毎に更新される。
The read
なお、読出頻度決定部241は、全体画像500自体が変更される(すなわち、表示パネル23に別の画像の一部を表示させる)場合は、読出頻度データ251を破棄してもよいし、新たに別データとして、次に表示させる全体画像500の読出頻度データ251を作成して記憶部25に記憶させてもよい。
When the
読出部242は、インタフェース(I/F)26を介しPLC3と通信を行うことで、PLC3から変数値を読み出す。読出部242は、全体画像500に含まれる各オブジェクトが参照する変数値を、読出頻度決定部241が決定した読出頻度でPLC3から読み出す。読出部242は読み出した値を記憶部25に記憶させる。
The
具体的には、読出部242は、記憶部25に記憶された読出頻度データ251を参照し、オブジェクト毎の読出頻度を特定する。次に、読出部242は、データファイル141のオブジェクト設定142を読み出し、該オブジェクト設定142にリストアップされているオブジェクトそれぞれの参照する変数値を特定する。読出部242は特定した参照値を、オブジェクト毎の読出頻度でPLC3から読み出す。
Specifically, the
例えば図4のように、読出頻度が「高頻度」と「低頻度」の2段階に分けられている場合、読出部242は、読出頻度が低頻度であるオブジェクトが参照している変数値を取得する間隔を、読出頻度が高頻度であるオブジェクトの変数値を取得する間隔よりも長くする。
For example, as shown in FIG. 4, when the reading frequency is divided into two stages of "high frequency" and "low frequency", the
なお、PLC3において、例えば複数の変数値が連続するデバイス値である場合、PLC3からプログラマブル表示器2にまとめて書込みまたは読み出しする仕様とする場合がある。この場合、読出部242はこれらの連続するデバイス値について、いずれかのデバイス値を読み出すタイミングで一括して読み出してもよいし、各デバイス値を個別の読み出しタイミングで読み出してもよい。
In addition, in PLC3, for example, when a plurality of variable values are continuous device values, it may be specified that the PLC3 writes or reads out from the PLC3 collectively to the
(処理の流れ)
最後に、読出頻度決定部241の処理の流れについて、図6を用いて説明する。図6は、読出頻度の決定に係る処理の流れを示すフローチャートである。
(Processing flow)
Finally, the processing flow of the read
表示制御部243は、タッチパネル22が受け付けた入力操作等に応じて、全体画像500の描画および再描画(画面の切り替え)、オブジェクトの再描画(画面表示の更新、または各種オブジェクトの表示もしくは消去)、ならびに、表示領域の大きさまたは位置の変更(すなわち、画面のスクロール、画面の拡大または縮小)を行う。
The
読出頻度決定部241は、上述の全体画像500の描画、オブジェクトの再描画、ならびに表示領域の大きさまたは位置の変更のいずれかを通知されると、Local Objectリストを生成する(S100)。
The read
Local Objectリストとは、全体画像500に含まれるオブジェクトのリストであって、オブジェクトの識別情報に、該オブジェクトをピックアップしたか否かを示すフラグ情報が対応付けられたものである。該リストは一時的に記憶部25に記憶されてもよいし、制御部24で保持していてもよい。
The Local Object list is a list of objects included in the
読出頻度決定部241は次に、生成したLocal Objectリストにオブジェクトが含まれているか否か(Local Objectリストが空か否か)を確認する(S102)。Local Objectリストが空の場合(S102でYES)、全体画像500にはオブジェクトが含まれていないことになるため、読出頻度決定部241は読出頻度の決定を行わず処理を終了する。
Next, the read
一方、Local Objectリストが空でない場合(S102でNO)、読出頻度決定部241は該リストから任意のオブジェクトをピックアップし(S104)、該オブジェクトが表示領域600内に配置されているか否かを判定する(S106)。該オブジェクトが表示領域600内に配置されている場合(S106でYES)、読出頻度決定部241は該オブジェクトを表示オブジェクトと判定し(S108)、読出頻度を「高頻度」と決定する(S110、読出頻度決定ステップ)。一方、該オブジェクトが表示領域600内に配置されていない場合(S106でNO)、読出頻度決定部241は該オブジェクトを非表示オブジェクトと判定し(S112)、読出頻度を「低頻度」と決定する(S114、読出頻度決定ステップ)。
On the other hand, when the Local Object list is not empty (NO in S102), the read
読出頻度決定部241は、S106の判定を行ったオブジェクトについて、Local Objectリストのフラグを、ピックアップ済を示すように変更する。以降、読出頻度決定部241はLocal Objectリスト中の全てのオブジェクトをピックアップして、S106〜S114の処理を完了するまで処理を繰り返す(S116でNO)。Local Objectリスト中の全てのオブジェクトについてピックアップおよびS106〜S114の処理が終了すると(S116でYES)、読出頻度決定部241は読出頻度データ251にオブジェクト毎の読出頻度を記録して、読出頻度の決定に係る処理を終了する。そして、読出部242は読出頻度データ251を参照して、該データに記載の読出頻度で、各オブジェクトの変数値をPLC3から読出す(読出ステップ)。
The read
以上の処理によれば、プログラマブル表示器2は、非表示オブジェクトの変数値の読み出しに係る処理負荷を低減することができる。従来のプログラマブル表示器では、各オブジェクトに係る変数値の読出頻度が一様であるため、全体画像が大きくなるほど、非表示オブジェクトの数が増え、不要な変数値の読み出しにより処理負荷が増大していた。一方、本実施形態に係るプログラマブル表示器2によれば、全体画像が多くの非表示オブジェクトを含む場合の処理負荷を低減することができる。したがって、オブジェクトの数が増加した場合でもプログラマブル表示器における画像の描画速度および画面更新の速度を確保することができる。
According to the above processing, the
これは、プログラマブル表示器2の処理負荷を低減することで、制御部24のリソースをより有効に使用することができるからである。例えば、表示制御部243の表示制御に係る処理の遅延や処理落ちを防ぐことで、表示パネル23の画面切り替え速度を向上させ、および表示品質を向上させることができる。
〔実施形態2〕
本発明の実施形態2について、図7〜10を用いて説明する。なお、説明の便宜上、実施形態1で説明した部材と同じ機能を有する部材については、同じ符号を付記し、その説明を省略する。
This is because the resources of the
[Embodiment 2]
図7は、本実施形態に係るPC1が作成するオブジェクト設定142のデータ構造を示す図である。なお、図7において、図3に示したオブジェクト設定142と同様の内容については説明を省略する。 FIG. 7 is a diagram showing a data structure of the object setting 142 created by the PC 1 according to the present embodiment. In FIG. 7, the same contents as the object setting 142 shown in FIG. 3 will not be described.
本実施形態に係るデータファイル142は、実施形態1にて説明したデータファイル142と異なる方法で変数値を指定したレコードを含んでいる。具体的には、本実施形態に係るデータファイル142は、あるオブジェクト(第1オブジェクト)の1つ以上のパラメータについて、いずれかの変数値を直接指定するのではなく、他のオブジェクト(第2オブジェクト)の同パラメータに割り当てられた変数値を参照するよう指定したレコードを含む。 The data file 142 according to the present embodiment includes a record in which a variable value is specified by a method different from that of the data file 142 described in the first embodiment. Specifically, the data file 142 according to the present embodiment does not directly specify one or more variable values for one or more parameters of a certain object (first object), but another object (second object). ) Includes records specified to refer to the variable value assigned to the same parameter.
例えば、図7に示すデータファイル142では、Object5のオブジェクトの塗込色および枠線色がそれぞれ、Object6の塗込色および枠線色を参照して決定するように指定されている。図7のObject5とObject6との関係のように、第1オブジェクトのいずれかのパラメータの参照先が第2オブジェクトの同パラメータになっている関係を、以降は「第1オブジェクトと第2オブジェクトとが因果関係にある」と称する。 For example, in the data file 142 shown in FIG. 7, it is specified that the fill color and the border color of the object of Object5 are determined by referring to the fill color and the border color of Object6, respectively. Like the relationship between Object 5 and Object 6 in FIG. 7, the relationship in which the reference destination of any parameter of the first object is the same parameter of the second object is changed to "the first object and the second object are There is a causal relationship. "
図8は、図7に示すオブジェクト(Object5およびObject6)の因果関係を模式的に示した図である。Object6の塗込色および枠線色にはそれぞれ、D100およびD200というデバイス値が割り当てられている。したがって、読出部242は、PLC3のメモリからデバイス値D100およびD200の値(図8の例ではD100=1、D200=2)を既定の読出頻度で読出し、表示制御部243がオブジェクトの再描画の際に、該デバイス値をObject6に反映させる。またこのとき、表示制御部243はObject5の塗込色および枠線色についても、D100=1、およびD200=2の値を反映させる。
FIG. 8 is a diagram schematically showing the causal relationship of the objects (Object 5 and Object 6) shown in FIG. 7. Device values D100 and D200 are assigned to the fill color and border color of Object6, respectively. Therefore, the
図9は、本実施形態における、表示領域600とオブジェクトの読出頻度との関係を示す図である。なお、図9において図4と同様の箇所については説明を省略する。
FIG. 9 is a diagram showing the relationship between the
本実施形態に係る読出頻度決定部241は、第1オブジェクトが表示オブジェクトである場合、第2オブジェクトが表示オブジェクトであるか非表示オブジェクトであるかに関わらず、第2オブジェクトが表示オブジェクトであるとみなして読出頻度を決定する。これにより、因果関係にある両オブジェクトの変数値を適切な読出頻度で読み出すことができる。図9に示すオブジェクトA1はA2と、B1はB2と、C1はC2と因果関係にある。この場合、図示のように、A2、B2、およびC2は非表示オブジェクトであるか否かに関わらず、読出頻度が高頻度に決定される。
When the first object is a display object, the read
(処理の流れ)
図10は、本実施形態に係る読出頻度決定部241の読出頻度の決定に係る処理の流れを示すフローチャートである。本実施形態に係る読出頻度決定部241は、実施形態1において説明したLocal Objectリストに、さらに該オブジェクトが表示オブジェクトであるか否かを示す情報と、該オブジェクトの因果関係を確認したか(Visited)否か(Unvisited)を示すフラグを加えたLocal Objectリストを生成する(S300)。
(Processing flow)
FIG. 10 is a flowchart showing a flow of processing related to determination of the read frequency of the read
読出頻度決定部241は次に、生成したLocal Objectリストが空か否かを確認する(S302)。Local Objectリストが空の場合(S302でYES)、全体画像500にはオブジェクトが含まれていないことになるため、読出頻度決定部241は読出頻度の決定を行わず処理を終了する。
Next, the read
一方、Local Objectリストが空でない場合(S302でNO)、読出頻度決定部241は該リストの全オブジェクトのフラグをUnvisitedとし、各オブジェクトが表示オブジェクトであるか非表示オブジェクトであるかを判定する(S304)。S304の処理は、実施形態1の図6のS104、S106、S108、S112、およびS116の処理の流れと同様である。なお、実施形態1と異なり、S304の判定処理の時点では、読出頻度決定部241は読出頻度を決定しない。読出頻度決定部241は、S304の判定結果をLocal Objectリストに記録する。
On the other hand, when the Local Object list is not empty (NO in S302), the read
読出頻度決定部241は次に、Local Objectリストに含まれる表示オブジェクトのうち、フラグがUnvisitedなものがあるか否か確認する(S306)。Unvisitedな表示オブジェクトがある場合(S306でYES)、読出頻度決定部241は任意のUnvisitedな表示オブジェクトを第1オブジェクトとしてピックアップし(S308)、該第1オブジェクトのオブジェクト設定142を参照することで、第1オブジェクトと因果関係にある第2オブジェクトがあるか否かを特定する。第2オブジェクトがある場合は、さらに第2オブジェクトについて、因果関係にあるオブジェクトを辿る(S310)。読出頻度決定部241はこのようにして因果関係を確認したオブジェクト全てのフラグをVisitedにし(S312)、フラグをVisited状態にしたオブジェクトの読出頻度を「高頻度」に決定する(S314、読出頻度決定ステップ)。読出頻度決定部241は、Local Objectリストに含まれる表示オブジェクトのうち、フラグがUnvisitedなものがなくなるまで(S306でNO)、S306〜S314までの処理を繰り返す。
Next, the read
一方、Local Objectリストに含まれる表示オブジェクトのうち、フラグがUnvisitedなものがない場合(S306でNO)、読出頻度決定部241はさらに、Local Objectリストに含まれる非表示オブジェクトのうち、フラグがUnvisitedなものがあるか否か確認する(S316)。フラグがUnvisitedな非表示オブジェクトがない場合(S316でNO)、読出頻度決定部241は処理を終了する。一方、フラグがUnvisitedな非表示オブジェクトがある場合、(S316でYES)、読出頻度決定部241は任意のUnvisitedな非表示オブジェクトを第1オブジェクトとしてピックアップする(S318)。さらに、読出頻度決定部241は、ピックアップしたオブジェクト全てのフラグをVisitedにするとともに(S320)、フラグをVisited状態にしたオブジェクトの読出頻度を「低頻度」に決定する(S322、読出頻度決定ステップ)。読出頻度決定部241は、Local Objectリストに含まれる非表示オブジェクトのうち、フラグがUnvisitedなものがなくなるまで、S316〜S324までの処理を繰り返す。非表示オブジェクトでフラグがUnvisitedなオブジェクトがなくなった場合(S316でNO)、読出頻度決定部241は全てのオブジェクトについて読出頻度の決定が終了したと判断し、読出頻度の決定に係る処理を終了する。
On the other hand, when there is no display object included in the Local Object list whose flag is Unvisited (NO in S306), the read
以上の処理によれば、プログラマブル表示器2は、非表示オブジェクトであっても、表示オブジェクトと因果関係にあるオブジェクトについては、高い読出頻度を確保する。これにより、表示オブジェクトに対する変数値を高い反映頻度に確保することができる。したがって、ユーザに表示オブジェクトの変数値の反映遅れ等の違和感を与えることなく、プログラマブル表示器における画像の描画速度および画面更新の速度を向上させることができる。
〔実施形態3〕
なお、読出頻度決定部241は、非表示オブジェクトの読出頻度を、表示領域600と非表示オブジェクトとの位置関係に応じて、段階的に低下させてもよい。例えば、表示制御部(表示頻度算出部)243は、表示領域600の描画時と、再描画時に各オブジェクトの表示頻度を示す値(表示頻度点数)を算出する。このとき、表示制御部243は、表示オブジェクトについては点数を増加させ、非表示オブジェクトの点数を減少させる。もしくは、表示制御部243は、表示オブジェクトに、非表示オブジェクトよりも高い点数を付与する。
According to the above processing, the
[Embodiment 3]
The read
より具体的には、表示制御部243は、全体画像500の最初の描画時(画面切り替え時)の表示オブジェクトには表示頻度点数として4点、非表示オブジェクトには0点を付与する。また表示制御部243は、表示領域の位置または大きさを変更させた(表示パネル23の画面をスクロール、拡大、または縮小させた)ときに表示オブジェクトになったオブジェクトの表示頻度点数を2点加点する。また表示制御部243は、制御部24のアイドル時間中、一定時間ごとに、表示オブジェクトの表示頻度点数を1点加算し、非表示オブジェクトの表示頻度点数を1点減算する。
More specifically, the
以上の処理によれば、プログラマブル表示器2は、読出頻度をどの程度低下させるか、より細やかに決定することができる。したがって、高い表示品質を確保することができる。また、以上の処理によれば、高頻度で表示されるオブジェクトについては読込頻度を高頻度に保つ一方、低頻度でしか表示されないオブジェクトについては、読込頻度をより低下させることができる。したがって、高い表示品質を確保することができる。
〔実施形態4〕
なお、各実施形態に係る表示制御部243は、非表示オブジェクトを表示オブジェクトより低頻度で再描画してもよい。例えば、表示制御部243は、表示オブジェクトを1秒間に60回の割合で再描画する場合、非表示オブジェクトを1秒間に30回の割合で再描画することとしてもよい。もしくは、表示制御部243は、非表示オブジェクトについては再描画しないこととしてもよい。
According to the above processing, the
[Embodiment 4]
The
これにより、プログラマブル表示器2は、非表示オブジェクトの再描画の頻度を抑えることができる。したがって、全体画像500に含まれるオブジェクトを全部同じ頻度で再描画するよりも、オブジェクトの再描画に係る処理負荷を低減することができる。これにより、プログラマブル表示器における画像の描画速度および画面更新の速度をさらに向上させることができる。
〔実施形態5〕
各実施形態に係る全体画像500は、あるオブジェクトの上(前面)に、ウィンドウを示す画像(以下、単にウィンドウと称する)が重畳して配置されたものであってもよい。ここで、「ウィンドウ」は、各実施形態にて説明した動的オブジェクトであってもよいし、単なる画像オブジェクトであってもよい。
As a result, the
[Embodiment 5]
The
このようにオブジェクトとウィンドウが重畳して配置されている場合、読出頻度決定部241は、表示オブジェクトのうち、オブジェクト全体がウィンドウと重なっている(すなわち、オブジェクト全体がウィンドウの背面に隠れている)オブジェクトの読出頻度を、ウィンドウと重なっていない部分がある(すなわち、オブジェクトの少なくとも一部が最前面に現れている)オブジェクトの読出頻度よりも低い頻度に決定してもよい。
When the object and the window are arranged so as to overlap each other, the read
また、全体画像500は、ウィンドウ内にさらにオブジェクトが配置されている画像であってもよい。換言すると、全体画像500において、ウィンドウの画像領域内であって該ウィンドウの画像より前面に、オブジェクトの画像が重畳して配置されていてもよい。また、あるウィンドウの少なくとも一部分に別のウィンドウが重畳して配置されていてもよい。
Further, the
このように、全体画像500においてウィンドウとオブジェクトまたはウィンドウ同士が重畳して配置されている場合、読出頻度決定部241は、表示オブジェクトのうち、オブジェクト全体がウィンドウの背面に隠れているオブジェクトの読出頻度を、オブジェクトの少なくとも一部が最前面に現れているオブジェクトの読出頻度よりも、低い頻度に決定してもよい。
In this way, when the windows and the objects or the windows are arranged so as to overlap each other in the
これにより、ウィンドウの背面全て隠れていて、表示上ユーザから見えなくなっているオブジェクトについては、必要以上の頻度で変数値を読み出すことを防止することができる。したがって、プログラマブル表示器2は、高い表示品質を確保しつつ、変数値の読み出しに係る処理負荷を低減することができる。これにより、プログラマブル表示器における画像の描画速度および画面更新の速度をさらに向上させることができる。
As a result, it is possible to prevent the variable value from being read out more frequently than necessary for the object that is completely hidden behind the window and cannot be seen by the user on the display. Therefore, the
さらに言えば、ウィンドウとオブジェクトまたはウィンドウ同士が重畳して配置されている場合、表示オブジェクトのうち、オブジェクト全体がウィンドウと重なっているオブジェクトは、非表示オブジェクトとみなされてもよい。例えば、実施形態3において説明した表示頻度の点数付与において、表示制御部243は、表示オブジェクトのうち、オブジェクト全体がウィンドウと重なっているオブジェクトを、非表示オブジェクトとみなして点数算出を行ってもよい。
〔実施形態6〕
本発明に係るプログラマブル表示器2は、表示領域変更部(表示制御部243)が表示領域の位置および大きさの少なくとも一方を変更する度にオブジェクトの表示頻度を示す値を算出する表示頻度算出部(表示制御部243)を備え、該表示頻度算出部において、上記オブジェクトの少なくとも一部が上記表示領域の範囲内にある場合に上記オブジェクトの上記表示頻度を示す値を増加させ、上記オブジェクトが上記表示領域の範囲外にある場合に上記オブジェクトの上記表示頻度を示す値を減少させ、読出頻度決定部241において、上記表示領域の範囲外に位置しているオブジェクトの上記読出頻度を、上記表示頻度に応じて段階的に低下させてもよい。
Furthermore, when the window and the object or the windows are arranged so as to overlap each other, the display object in which the entire object overlaps the window may be regarded as a hidden object. For example, in the display frequency score assignment described in the third embodiment, the
[Embodiment 6]
The
上記の構成によれば、高頻度で表示されるオブジェクトについて読込頻度を高頻度に保つ一方、低頻度でしか表示されないオブジェクトについては、読込頻度をより低下させることができる。したがって、プログラマブル表示器2は、高い表示品質を確保することができる。
According to the above configuration, the read frequency can be kept high for the objects displayed frequently, while the read frequency can be further reduced for the objects displayed only infrequently. Therefore, the
〔ソフトウェアによる実現例〕
プログラマブル表示器2の制御ブロックは、集積回路(ICチップ)等に形成された論理回路(ハードウェア)によって実現してもよいし、ソフトウェアによって実現してもよい。
[Example of realization by software]
The control block of the
後者の場合、プログラマブル表示器2は、各機能を実現するソフトウェアであるプログラムの命令を実行するコンピュータを備えている。このコンピュータは、例えば1つ以上のプロセッサを備えていると共に、上記プログラムを記憶したコンピュータ読み取り可能な記録媒体を備えている。そして、上記コンピュータにおいて、上記プロセッサが上記プログラムを上記記録媒体から読み取って実行することにより、本発明の目的が達成される。上記プロセッサとしては、例えばCPU(Central Processing Unit)を用いることができる。上記記録媒体としては、「一時的でない有形の媒体」、例えば、ROM(Read Only Memory)等の他、テープ、ディスク、カード、半導体メモリ、プログラマブルな論理回路などを用いることができる。また、上記プログラムを展開するRAM(Random Access Memory)などをさらに備えていてもよい。また、上記プログラムは、該プログラムを伝送可能な任意の伝送媒体(通信ネットワークや放送波等)を介して上記コンピュータに供給されてもよい。なお、本発明の一態様は、上記プログラムが電子的な伝送によって具現化された、搬送波に埋め込まれたデータ信号の形態でも実現され得る。
In the latter case, the
本発明は上述した各実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、異なる実施形態にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。 The present invention is not limited to the above-described embodiments, and various modifications can be made within the scope of the claims, and the embodiments obtained by appropriately combining the technical means disclosed in the different embodiments. Is also included in the technical scope of the present invention.
1 PC(作画装置)
11 入力装置
12 モニタ
13 データ作成部
14 記憶部
141 データファイル
142 オブジェクト設定
143 画像データ
15 送信部
2 プログラマブル表示器
21 受信部
22 タッチパネル
23 表示パネル
24 制御部
241 読出頻度決定部
242 読出部
243 表示制御部(表示更新部、表示領域変更部、表示頻度算出部)
25 記憶部
251 読出頻度データ
252 変数値
26 I/F
3 PLC(コントローラ)
4 機器
300 表示制御システム
500 全体画像(第1画像)
600 表示領域
1 PC (drawing device)
11 Input device 12
25
3 PLC (controller)
4
600 display area
Claims (7)
コントローラからの上記変数値の読出頻度を決定する読出頻度決定部と、
上記読出頻度決定部が決定した上記読出頻度で上記コントローラから上記変数値を読み出す読出部と、
上記変数値に応じて上記オブジェクトを再描画する表示更新部と、を備え、
上記読出頻度決定部は、上記オブジェクトの全部が上記表示領域の範囲外に位置している非表示オブジェクトの上記読出頻度を、上記オブジェクトの少なくとも一部が上記表示領域の範囲内に位置している表示オブジェクトの上記読出頻度よりも、低い頻度に決定することを特徴とする、プログラマブル表示器。 A part of the first image in which an object whose state changes dynamically according to a variable value is arranged is displayed on the display device as a display area, and a part outside the range of the display area of the first image is displayed on the display device. A programmable display that does not display
A read frequency determination unit that determines the read frequency of the above variable values from the controller,
A reading unit that reads the variable value from the controller at the reading frequency determined by the reading frequency determining unit, and
It is equipped with a display update unit that redraws the above object according to the above variable value.
The read frequency determination unit sets the read frequency of non-display objects in which all of the objects are located outside the range of the display area, and at least a part of the objects is located in the range of the display area. A programmable display, characterized in that the display object is determined to be read less frequently than the above-mentioned reading frequency.
上記読出頻度決定部は、上記第1オブジェクトの少なくとも一部が上記表示領域の範囲内に位置している場合、上記第2オブジェクトの位置に関わらず、当該第2オブジェクトが上記表示領域の範囲内に位置しているとみなして上記読出頻度を決定することを特徴とする、請求項1に記載のプログラマブル表示器。 The first image includes a first object and a second object to which the variable value of the first object is referenced.
When at least a part of the first object is located within the range of the display area, the read frequency determination unit indicates that the second object is within the range of the display area regardless of the position of the second object. The programmable display according to claim 1, wherein the read frequency is determined by assuming that the object is located in.
上記読出頻度決定部は、上記表示領域変更部が上記表示領域の位置および大きさの少なくとも一方を変更した場合、上記読出頻度を再決定することを特徴とする、請求項1または2に記載のプログラマブル表示器。 A display area changing unit that changes at least one of the position and size of the display area with respect to the first image according to a user's input operation is provided.
The reading frequency determining unit according to claim 1 or 2, wherein when the display area changing unit changes at least one of the position and the size of the display area, the reading frequency is redetermined. Programmable display.
上記読出頻度決定部は、上記表示領域の範囲内に位置している上記表示オブジェクトのうち、上記ウィンドウと重なって位置している上記表示オブジェクトの読出頻度を、上記ウィンドウと重なっていない上記表示オブジェクトの読出頻度よりも低い頻度に決定することを特徴とする、請求項1〜5のいずれか1項に記載のプログラマブル表示器。 The first image includes a window displayed superimposed on the object.
The reading frequency determining unit, among the display objects that are located within the display area, the reading frequency of the display object that is positioned to overlap with the window, the display objects that do not overlap with the window The programmable display according to any one of claims 1 to 5, wherein the frequency is determined to be lower than the reading frequency of the above.
コントローラからの上記変数値の読出頻度を決定する読出頻度決定部と、
上記読出頻度決定部が決定した上記読出頻度で上記コントローラから上記変数値を読み出す読出部と、
上記変数値に応じて上記オブジェクトを再描画する表示更新部と、を備え、
上記読出頻度決定部は、上記表示領域の範囲外に位置しているオブジェクトの上記読出頻度を、少なくとも一部が上記表示領域の範囲内に位置しているオブジェクトの上記読出頻度よりも、低い頻度に決定し、
上記第1画像は、第1オブジェクトと、該第1オブジェクトの上記変数値の参照先である第2オブジェクトと、を含み、
上記読出頻度決定部は、上記第1オブジェクトが上記表示領域の範囲内に位置している場合、上記第2オブジェクトの位置に関わらず、当該第2オブジェクトが上記表示領域の範囲内に位置しているとみなして上記読出頻度を決定することを特徴とする、プログラマブル表示器。 A programmable display that displays a part of the first image in which an object whose state changes dynamically according to a variable value is arranged as a display area.
A read frequency determination unit that determines the read frequency of the above variable values from the controller,
A reading unit that reads the variable value from the controller at the reading frequency determined by the reading frequency determining unit, and
It is equipped with a display update unit that redraws the above object according to the above variable value.
The read frequency determination unit sets the read frequency of objects located outside the display area to be lower than the read frequency of objects located at least in part within the display area. Decided to
The first image includes a first object and a second object to which the variable value of the first object is referenced.
When the first object is located within the range of the display area, the read frequency determination unit positions the second object within the range of the display area regardless of the position of the second object. and determining the reading frequency is regarded as have, programmable display.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2017125462A JP6910220B2 (en) | 2017-06-27 | 2017-06-27 | Programmable display |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2017125462A JP6910220B2 (en) | 2017-06-27 | 2017-06-27 | Programmable display |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2019008661A JP2019008661A (en) | 2019-01-17 |
| JP6910220B2 true JP6910220B2 (en) | 2021-07-28 |
Family
ID=65028971
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2017125462A Active JP6910220B2 (en) | 2017-06-27 | 2017-06-27 | Programmable display |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6910220B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP7797298B2 (en) * | 2022-04-21 | 2026-01-13 | シュナイダーエレクトリックホールディングス株式会社 | Creation device and programmable display |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH11238027A (en) * | 1998-02-24 | 1999-08-31 | Hitachi Ltd | Screen updating method and screen updating terminal device |
| JP2000148228A (en) * | 1998-11-16 | 2000-05-26 | Mitsubishi Electric Corp | Data monitoring device |
-
2017
- 2017-06-27 JP JP2017125462A patent/JP6910220B2/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| JP2019008661A (en) | 2019-01-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP4357892A1 (en) | Desktop management method for terminal device, and terminal device | |
| JP4912397B2 (en) | Display object layout change device | |
| US5790819A (en) | Mechanism for fine-grained and coarse-grained control of zooming in a display of a one-dimensional data set | |
| CN109298909B (en) | A window adjustment method, mobile terminal and computer-readable storage medium | |
| US12073070B2 (en) | Dynamic element control method, electronic device, and computer readable storage medium | |
| JP6026363B2 (en) | Information processing apparatus and control program | |
| JP6432409B2 (en) | Touch panel control device and touch panel control program | |
| KR20160097050A (en) | Method and apparatus for displaying composition screen by composing the OS screens | |
| CN107203434A (en) | A kind of texture shared method, device and computer-readable recording medium | |
| KR20160051373A (en) | User terminal device and method for controlling the user terminal device thereof | |
| JP6068758B2 (en) | Programmable display | |
| JP6910220B2 (en) | Programmable display | |
| CN115705231A (en) | Screen display method and terminal device | |
| CN107820601B (en) | Display control method, display control system and display device | |
| JP2019053196A (en) | Information processing device, and screen control method | |
| CN100464368C (en) | A display controller that allows overlapping displays | |
| CN107589890A (en) | A kind of mouse clicks on the response method and device for the view that is blocked | |
| CN117827337A (en) | Interface display method and display device | |
| CN113093961B (en) | Window switching method, storage medium and related equipment | |
| CN102023747A (en) | Information processing apparatus, display control method, and program | |
| EP3522530A1 (en) | System performance improvement method, system performance improvement device and display device | |
| CN116136721A (en) | Delay-free line drawing display method, device, equipment and storage medium | |
| JP2017146471A (en) | Programmable display unit, programmable system having the same, and display method for programmable display unit | |
| US20260010260A1 (en) | Touch Operation Processing Method, Device, and Storage Medium | |
| JP6752311B2 (en) | Display device and display method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20170922 |
|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20200601 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20210324 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20210330 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20210507 |
|
| 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: 20210629 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20210706 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 6910220 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |