JP2021002197A - Display control apparatus and display control program - Google Patents
Display control apparatus and display control program Download PDFInfo
- Publication number
- JP2021002197A JP2021002197A JP2019115349A JP2019115349A JP2021002197A JP 2021002197 A JP2021002197 A JP 2021002197A JP 2019115349 A JP2019115349 A JP 2019115349A JP 2019115349 A JP2019115349 A JP 2019115349A JP 2021002197 A JP2021002197 A JP 2021002197A
- Authority
- JP
- Japan
- Prior art keywords
- display
- function block
- information
- parameters
- output parameters
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 claims description 75
- 238000012217 deletion Methods 0.000 claims 1
- 230000037430 deletion Effects 0.000 claims 1
- 230000006870 function Effects 0.000 description 97
- 238000004891 communication Methods 0.000 description 12
- 230000010365 information processing Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 4
- 238000005520 cutting process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Stored Programmes (AREA)
- Programmable Controllers (AREA)
Abstract
Description
本発明は、表示制御装置及び表示制御プログラムに関する。 The present invention relates to a display control device and a display control program.
プログラマブルコントローラ(Programmable Logic Controller,PLC)は、ラダープログラムと呼ばれるシーケンスプログラムを実行することで、モータ、センサ等の制御対象機器の動作を制御する。ラダープログラムを記述するための関数として、入力パラメータ及び出力パラメータを有するファンクションブロック(Function Block,FB)が用いられることがある。 A programmable logic controller (PLC) controls the operation of controlled devices such as motors and sensors by executing a sequence program called a ladder program. As a function for describing a ladder program, a function block (FB) having an input parameter and an output parameter may be used.
ファンクションブロックに関連して、ファンクションブロック呼び出し命令を含むラダープログラムの表示方法ラダープログラムの表示方法が知られている(例えば、特許文献1を参照)。この表示方法は、ファンクションブロック呼び出し命令の表示形態として、すべての入出力条件を表示する全表示形態と、ラダープログラムのラダー回路と連結していない入出力条件をグループ化してまとめて表示するグループ表示形態とを持つ。 A method of displaying a ladder program including a function block calling instruction in relation to a function block A method of displaying a ladder program is known (see, for example, Patent Document 1). This display method is a display form of a function block call instruction, which is a group display in which all input / output conditions are displayed and input / output conditions not connected to the ladder circuit of the ladder program are grouped and displayed together. Has morphology.
表示装置は、複数の入力条件と出力条件の少なくとも一方の条件のうちの複数個を1つのグループとしたグループ設定情報を記憶保持する。そして、表示装置は、グループ表示形態で表示する際に、記憶保持したグループ設定情報に基づき、グループ化されている個々の条件は非表示とするとともに、そのグループ代表条件を1つ表示する。 The display device stores and holds group setting information in which a plurality of at least one of a plurality of input conditions and an output condition is set as one group. Then, when displaying in the group display form, the display device hides the individual conditions grouped based on the group setting information stored in the memory and displays one group representative condition.
また、表示装置は、ファンクションブロック呼び出し命令を表示する表示領域と別に、入出力条件に関するデータを表示する領域を有し、その領域に対するグループ化された入力条件或いは出力条件の出力形態として、非表示と表示とを切り替えることができる。 Further, the display device has an area for displaying data related to the input / output conditions in addition to the display area for displaying the function block call instruction, and is hidden as an output form of the grouped input conditions or output conditions for the area. And display can be switched.
ファンクションブロックを含むラダープログラムを画面上に表示しながら、ラダープログラムを作成する作業において、入出力パラメータの個数が多くなると、そのファンクションブロックの表示領域が縦長の矩形領域になり、画面上の大きな面積を占有する。このため、1画面でラダープログラム全体を表示することが困難になる。 In the work of creating a ladder program while displaying a ladder program including a function block on the screen, if the number of input / output parameters increases, the display area of the function block becomes a vertically long rectangular area, and a large area on the screen. Occupy. Therefore, it becomes difficult to display the entire ladder program on one screen.
また、特許文献1の表示方法では、ユーザがグループ化する入出力条件を選択して、グループ名を入力するため、入出力条件を非表示にするまでの操作が多く、簡単な操作でファンクションブロックの入出力条件の非表示と表示とを切り替えることが困難である。
Further, in the display method of
なお、かかる問題は、ラダープログラムを作成する場合に限らず、ファンクションブロックを含む様々なプログラムの作成又はデバッグを行う場合において生ずるものである。 It should be noted that such a problem occurs not only when creating a ladder program but also when creating or debugging various programs including function blocks.
1つの側面において、本発明は、ファンクションブロックを含むプログラムを画面上に効率良く表示することを目的とする。 In one aspect, the present invention aims to efficiently display a program including a function block on a screen.
1つの実施形態によれば、表示制御装置は、記憶部及び生成部を含む。記憶部は、ファンクションブロックを示す第1図形の形状情報を記憶するとともに、第1表示処理と第2表示処理のうちいずれかの表示処理を指定する設定情報を記憶する。ファンクションブロックは、複数の入力パラメータ及び複数の出力パラメータを有し、表示対象プログラムを記述する関数として用いられる。 According to one embodiment, the display control device includes a storage unit and a generation unit. The storage unit stores the shape information of the first figure indicating the function block, and also stores the setting information for designating one of the first display process and the second display process. The function block has a plurality of input parameters and a plurality of output parameters, and is used as a function for describing a program to be displayed.
第1表示処理は、複数の入力パラメータ及び複数の出力パラメータと第1図形とを画面上に表示する。第2表示処理は、複数の入力パラメータ及び複数の出力パラメータを省略して、ファンクションブロックを示し第1図形よりも小さな第2図形を画面上に表示する。 In the first display process, a plurality of input parameters, a plurality of output parameters, and a first figure are displayed on the screen. In the second display process, a plurality of input parameters and a plurality of output parameters are omitted, a function block is shown, and a second figure smaller than the first figure is displayed on the screen.
設定情報が第1表示処理を指定している場合、生成部は、第1図形の形状情報に基づいて、複数の入力パラメータ及び複数の出力パラメータと第1図形とを表示する第1表示情報を生成する。一方、設定情報が第2表示処理を指定している場合、生成部は、複数の入力パラメータ及び複数の出力パラメータを省略して第2図形を表示する第2表示情報を生成する。 When the setting information specifies the first display process, the generation unit generates the first display information for displaying the plurality of input parameters, the plurality of output parameters, and the first figure based on the shape information of the first figure. Generate. On the other hand, when the setting information specifies the second display process, the generation unit generates the second display information for displaying the second figure by omitting the plurality of input parameters and the plurality of output parameters.
1つの側面において、ファンクションブロックを含むプログラムを画面上に効率良く表示することができる。 In one aspect, a program including a function block can be efficiently displayed on the screen.
以下、図面を参照しながら、実施形態を詳細に説明する。 Hereinafter, embodiments will be described in detail with reference to the drawings.
図1は、実施形態の表示制御装置の機能的構成例を示している。図1の表示制御装置101は、記憶部111及び生成部112を含む。記憶部111は、ファンクションブロックを示す第1図形の形状情報121を記憶するとともに、第1表示処理と第2表示処理のうちいずれかの表示処理を指定する設定情報122を記憶する。ファンクションブロックは、複数の入力パラメータ及び複数の出力パラメータを有し、表示対象プログラムを記述する関数として用いられる。
FIG. 1 shows an example of a functional configuration of the display control device of the embodiment. The
第1表示処理は、複数の入力パラメータ及び複数の出力パラメータと第1図形とを画面上に表示する。第2表示処理は、複数の入力パラメータ及び複数の出力パラメータを省略して、ファンクションブロックを示し第1図形よりも小さな第2図形を画面上に表示する。 In the first display process, a plurality of input parameters, a plurality of output parameters, and a first figure are displayed on the screen. In the second display process, a plurality of input parameters and a plurality of output parameters are omitted, a function block is shown, and a second figure smaller than the first figure is displayed on the screen.
設定情報122が第1表示処理を指定している場合、生成部112は、第1図形の形状情報121に基づいて、複数の入力パラメータ及び複数の出力パラメータと第1図形とを表示する第1表示情報を生成する。一方、設定情報122が第2表示処理を指定している場合、生成部112は、複数の入力パラメータ及び複数の出力パラメータを省略して第2図形を表示する第2表示情報を生成する。
When the
図1の表示制御装置101によれば、ファンクションブロックを含むプログラムを画面上に効率良く表示することができる。
According to the
図2は、図1の表示制御装置101を含むプログラマブルコントローラシステム(PLCシステム)の機能的構成例を示している。図2のPLCシステムは、プログラム作成支援装置201及びPLC202を含む。
FIG. 2 shows a functional configuration example of a programmable controller system (PLC system) including the
プログラム作成支援装置201は、PLC202が実行するラダープログラムの作成又はデバッグを支援する情報処理装置(コンピュータ)であり、通信ネットワーク203を介してPLC202と通信することができる。ラダープログラムは、表示対象プログラムの一例である。
The program
プログラム作成支援装置201は、表示制御装置101の一例であり、記憶部211、受付部212、生成部213、表示部214、及び通信部215を含む。記憶部211及び生成部213は、図1の記憶部111及び生成部112にそれぞれ対応する。記憶部211は、ラダープログラムを記述する関数として用いられる各ファンクションブロックのファンクションブロック情報(FB情報)221と、設定情報222とを記憶する。
The program
FB情報221は、ファンクションブロックの入出力パラメータを示す情報と、ファンクションブロック内部で行われる演算を示す情報と、画面上に表示されるファンクションブロックの形状を示す情報とを含む。ファンクションブロックは、ファンクションブロック呼び出し命令又はファンクションブロック命令と呼ばれることもある。
The
図3は、表示領域を表すワークシート上においてファンクションブロック(FB)を示す図形の例を示している。図3(a)は、矩形のセルを単位として生成される、セル方式の図形の例を示している。この場合、ワークシートは、縦横の分割線によって複数のセルに分割されており、水平方向に並んでいる複数のセルは行を表し、垂直方向に並んでいる複数のセルは列を表す。ファンクションブロックを示す矩形301は、4個のセルから形成され、矩形301の高さは2行であり、幅は2列である。したがって、矩形301の形状及びサイズは、幅及び高さを表すセルの個数によって決定される。
FIG. 3 shows an example of a graphic showing a function block (FB) on a worksheet representing a display area. FIG. 3A shows an example of a cell-type figure generated in units of rectangular cells. In this case, the worksheet is divided into a plurality of cells by vertical and horizontal dividing lines, the plurality of cells arranged in the horizontal direction represent rows, and the plurality of cells arranged in the vertical direction represent columns. The
図3(b)は、平面上の点の座標に基づいて生成される、ドット方式の図形の例を示している。この場合、ワークシートは複数の点を含み、ファンクションブロックを示す矩形302は、4個の点を頂点とする矩形であり、矩形302の高さ及び幅は、各頂点の座標から計算される。したがって、矩形302の形状及びサイズは、4個の点の座標によって決定される。
FIG. 3B shows an example of a dot-type figure generated based on the coordinates of points on the plane. In this case, the worksheet contains a plurality of points, the
図3(a)のセル方式の図形を用いた場合、幅及び高さの計算を省略することができるため、図3(b)のドット方式の図形を用いた場合よりも表示処理が簡単になる。 When the cell-type figure of FIG. 3 (a) is used, the calculation of the width and height can be omitted, so that the display process is easier than the case of using the dot-type figure of FIG. 3 (b). Become.
図4は、セル方式の図形を用いた場合のFB情報221の例を示している。図4のFB情報221は、管理情報、名称情報、及びヘッダ情報を含む。
FIG. 4 shows an example of
管理情報は、ヘッダ番号及びインスタンス種別を含む。ヘッダ番号は、ファンクションブロックに対して割り当てられる管理番号であり、インスタンス種別は、ユーザファンクションブロック又はシステムファンクションブロックのいずれかを示す。ユーザファンクションブロックは、ユーザによって作成されるファンクションブロックであり、システムファンクションブロックは、事前にプログラム作成支援装置201に組み込まれているファンクションブロックである。
The management information includes the header number and the instance type. The header number is a management number assigned to the function block, and the instance type indicates either a user function block or a system function block. The user function block is a function block created by the user, and the system function block is a function block incorporated in the program
名称情報は、命令名称長及び命令名称を含む。命令名称は、ファンクションブロックの名称であり、命令名称長は、ファンクションブロックの名称の情報量を表す。 The name information includes the command name length and the command name. The instruction name is the name of the function block, and the instruction name length represents the amount of information of the name of the function block.
ヘッダ情報は、形状情報、端子情報、及び命令情報を含む。形状情報は、図1の形状情報121に対応し、ファンクションブロックを示す図形の形状及びサイズを示す情報である。例えば、セル方式の図形の場合、ファンクションブロックを示す矩形の幅及び高さを表すセルの個数(列数及び行数)が、形状情報として用いられる。
The header information includes shape information, terminal information, and instruction information. The shape information corresponds to the
端子情報は、複数の入力端子名、複数の出力端子名、複数の入力パラメータ、及び複数の出力パラメータを含む。各入力端子名は、ファンクションブロックの入力端子(入力変数)の名称であり、各出力端子名は、ファンクションブロックの出力端子(出力変数)の名称である。各入力パラメータは、いずれかの入力端子名と関連付けられており、その入力端子に入力される変数値を表すパラメータである。各出力パラメータは、いずれかの出力端子名と関連付けられており、その出力端子から出力される変数値を表すパラメータである。命令情報は、複数の入力変数から複数の出力変数を生成する演算を表す。 The terminal information includes a plurality of input terminal names, a plurality of output terminal names, a plurality of input parameters, and a plurality of output parameters. Each input terminal name is the name of the input terminal (input variable) of the function block, and each output terminal name is the name of the output terminal (output variable) of the function block. Each input parameter is associated with one of the input terminal names and is a parameter representing a variable value input to the input terminal. Each output parameter is associated with one of the output terminal names and is a parameter representing a variable value output from that output terminal. The instruction information represents an operation that generates a plurality of output variables from a plurality of input variables.
図5は、画面上に表示されたファンクションブロックの例を示している。ファンクションブロックを示す矩形501は、第1図形の一例であり、矩形501の幅は3列であり、高さは7行である。行511は、矩形501を含む7行の領域512のうち先頭の行に対応する。
FIG. 5 shows an example of a function block displayed on the screen. The
矩形501内の行511には、“USERFB”、“FB0”、及び“0”が表示されている。“USERFB”は、ユーザファンクションブロックを示すインスタンス種別であり、“FB0”は命令名称であり、“0”はヘッダ番号である。
"USERFB", "FB0", and "0" are displayed in
矩形501内の他の行に表示されている“V1 in1”、“V2 in2”、“V3 in3”、“V4 in4”、“V5 in5”、及び“V6 in6”は、入力端子名である。また、“V7 out1”、“V8 out2”、“V9 out3”、“V10 out4”、“V11 out5”、及び“V12 out6”は、出力端子名である。
“V1 in1”, “V2 in2”, “V3 in3”, “V4 in4”, “V5 in5”, and “V6 in6” displayed on other lines in the
矩形501の左側の列に表示されている“M0”、“M1”、“M2”、“M3”、“M4”、及び“M5”は、入力パラメータである。矩形501の右側の列に表示されている“M0”、“M1”、“M2”、“M3”、“M4”、及び“M5”は、出力パラメータである。
“M0”, “M1”, “M2”, “M3”, “M4”, and “M5” displayed in the left column of the
設定情報222は、図1の設定情報122に対応し、各ファンクションブロックの表示処理として、全表示処理又は縮小表示処理を指定する情報である。全表示処理は、第1表示処理の一例であり、ファンクションブロックを示す図形と、ファンクションブロックのすべての入出力パラメータとを併せて表示する処理である。縮小表示処理は、第2表示処理の一例であり、入出力パラメータを省略して、ファンクションブロックを示す図形を縮小した縮小図形のみを表示する処理である。縮小図形は、第2図形の一例である。
The setting
生成部213は、ラダープログラムを表示する表示情報を生成し、表示部214は、生成された表示情報を用いて、そのラダープログラムを画面上に表示する。
The
設定情報222が全表示処理を指定している場合、生成部213は、FB情報221に基づいて、ファンクションブロックを示す図形とすべての入出力パラメータとを併せて表示する表示情報を生成する。そして、表示部214は、生成された表示情報を用いて、その図形と入出力パラメータとを画面上に表示する。
When the setting
一方、設定情報222が縮小表示処理を指定している場合、生成部213は、入出力パラメータを省略して縮小図形のみを表示する表示情報を生成する。そして、表示部214は、生成された表示情報を用いて、その縮小図形を画面上に表示する。
On the other hand, when the setting
受付部212は、表示されたラダープログラムに対するユーザの操作を受け付ける。ユーザの操作は、キーボード、ポインティングデバイス等の入力装置によって入力される。
The
例えば、ユーザは、縮小図形が画面上に表示されている状態で、縮小図形を選択してファンクションブロックをコピーするコピー操作、又は縮小図形を選択してファンクションブロックを削除する削除操作(切り取り操作)を行うことができる。 For example, the user can select a reduced figure to copy a function block while the reduced figure is displayed on the screen, or select a reduced figure to delete a function block (cut operation). It can be performed.
受付部212がコピー操作を受け付けた場合、生成部213は、記憶部211内でFB情報221をコピーする。FB情報221をコピーすることで、端子情報に含まれる入出力パラメータもコピーされる。また、受付部212が切り取り操作を受け付けた場合、生成部213は、FB情報221を記憶部211から削除する。FB情報221を削除することで、端子情報に含まれる入出力パラメータも削除される。
When the
したがって、縮小表示処理においても、ファンクションブロックが全表示処理と同様に扱われ、縮小図形に対するコピー操作及び切り取り操作が可能になるため、ユーザの利便性が向上する。 Therefore, in the reduced display process, the function block is treated in the same manner as the full display process, and the copy operation and the cut operation for the reduced figure become possible, which improves the convenience of the user.
設定情報222が縮小表示処理を指定している状態でラダープログラムの表示が終了した後に、そのラダープログラムが再度表示される場合、生成部213は、設定情報222に基づいて、縮小図形のみを表示する表示情報を生成する。そして、表示部214は、生成された表示情報を用いて、その縮小図形を画面上に表示する。
If the ladder program is displayed again after the display of the ladder program is completed while the setting
例えば、生成部213は、プログラム作成支援装置201の動作終了時に、外部ファイルに設定情報222を保存しておき、プログラム作成支援装置201の次回起動時に、外部ファイルから設定情報222を読み込む。これにより、動作終了時のファンクションブロックの表示方法を、次回起動時のラダープログラムの表示処理に反映させることができる。外部ファイルとしては、XML(Extensible Markup Language)ファイル等を用いてもよい。
For example, the
通信部215は、作成されたラダープログラムを、通信ネットワーク203を介してPLC202へ送信し、PLC202は、プログラム作成支援装置201から受信したラダープログラムを実行することで、制御対象機器の動作を制御する。
The
図6は、画面上に表示されたラダープログラムの例を示している。図6(a)は、全表示処理の例を示している。全表示処理の場合、ファンクションブロックを示す矩形601とともに、入出力パラメータが表示される。図5に示したファンクションブロックと同様に、矩形601内には、インスタンス種別、命令名称、ヘッダ番号、入力端子名、及び出力端子名が表示されている。また、入力パラメータは、矩形601の左側の列に表示されており、出力パラメータは、矩形601の右側の列に表示されている。
FIG. 6 shows an example of a ladder program displayed on the screen. FIG. 6A shows an example of full display processing. In the case of full display processing, the input / output parameters are displayed together with the
ユーザは、矩形601の左側の列に含まれるセル602を選択する選択操作を行うことで、ファンクションブロックを選択することができる。
The user can select a function block by performing a selection operation for selecting
図6(b)は、図6(a)のファンクションブロックに対する縮小表示処理の例を示している。縮小表示処理の場合、矩形601の代わりに、ファンクションブロックを示す縮小図形である矩形603が表示され、入出力パラメータは表示されない。
FIG. 6B shows an example of reduced display processing for the function block of FIG. 6A. In the case of the reduced display process, the
矩形603内には、インスタンス種別、命令名称、及びヘッダ番号のみが表示されている。インスタンス種別、命令名称、及びヘッダ番号を表示することで、ユーザは、表示されたファンクションブロックを容易に特定することができる。矩形603の幅は矩形601と同じであるが、矩形603の高さは1行であり、矩形601よりも小さい。矩形601を矩形603に置き換えることで、ファンクションブロックに後続する命令であるJMP、JMPC、JMPCN等を同じ画面上に表示できるようになる。
In the
縮小表示処理の場合も、ユーザは、セル602を選択する選択操作を行うことで、ファンクションブロックを選択することができる。
Also in the case of the reduced display process, the user can select the function block by performing the selection operation for selecting the
図2のプログラム作成支援装置201によれば、ユーザは、ラダープログラムの作成又はデバッグの作業において、設定情報222を変更することで、ファンクションブロックの表示方法を全表示処理から縮小表示処理に切り替えることができる。これにより、ファンクションブロックを含む多数の命令を1画面で表示することが可能になり、ラダープログラムの視認性が向上する。
According to the program
特に、デバッグ作業の場合、ファンクションブロックの前後の命令も併せて画面上に表示されるため、ユーザは、容易に修正箇所を特定して修正することができ、作業効率が向上する。また、ラダープログラムを印刷する場合においても、ファンクションブロックを含む多数の命令を1画面分の紙面に印刷することが可能になる。 In particular, in the case of debugging work, since the instructions before and after the function block are also displayed on the screen, the user can easily identify and correct the correction part, and the work efficiency is improved. Also, when printing a ladder program, it is possible to print a large number of instructions including a function block on one screen of paper.
例えば、ユーザは、ラダープログラムが表示された画面上で、表示メニュー又はLD(Ladder Diagram)エディタのコンテキストメニューを用いて、全表示処理と縮小表示処理との切り替えを指示することができる。 For example, the user can instruct the switching between the full display process and the reduced display process on the screen on which the ladder program is displayed by using the display menu or the context menu of the LD (Ladder Diagram) editor.
図7は、画面上で表示タブを開いたときの表示メニューの例を示している。ユーザが項目701の「FBのパラメータ表示(F)」を有効にする操作を行うと、設定情報222に、全表示処理を示す値が設定される。一方、ユーザが「FBのパラメータ表示(F)」を無効にする操作を行うと、設定情報222に、縮小表示処理を示す値が設定される。
FIG. 7 shows an example of the display menu when the display tab is opened on the screen. When the user performs an operation to enable "FB parameter display (F)" of
図8は、画面上に表示されたコンテキストメニューの例を示している。ユーザが項目801の「FBのパラメータ表示(P)」を有効にする操作を行うと、設定情報222に、全表示処理を示す値が設定される。一方、ユーザが「FBのパラメータ表示(P)」を無効にする操作を行うと、設定情報222に、縮小表示処理を示す値が設定される。
FIG. 8 shows an example of a context menu displayed on the screen. When the user performs an operation to enable "FB parameter display (P)" of
ユーザがいずれのファンクションブロックも選択することなく、表示メニュー又はコンテキストメニューから設定情報222を変更した場合、ラダープログラム内のすべてのファンクションブロックに対して変更後の表示処理が適用される。
When the user changes the setting
一方、ユーザが特定のファンクションブロックを選択した後に、表示メニュー又はコンテキストメニューから設定情報222を変更した場合、選択されたファンクションブロックのみに対して変更後の表示処理が適用される。
On the other hand, when the setting
このようなメニューを設けることで、特許文献1のように、グループ化する入出力条件を選択する操作が不要になり、全表示処理と縮小表示処理とをワンクリック操作で切り替えることが可能になる。
By providing such a menu, the operation of selecting the input / output conditions to be grouped becomes unnecessary as in
ファンクションブロックに対するコピー操作又は切り取り操作を行う場合、ユーザは、ファンクションブロックを示す矩形を含むすべてのセルを選択することで、そのファンクションブロックを操作対象として指定することができる。 When performing a copy operation or a cut operation on a function block, the user can specify the function block as an operation target by selecting all cells including a rectangle indicating the function block.
例えば、図6(a)に示した全表示処理の場合、ユーザは、矩形601を含む複数のセルを選択することで、コピー操作又は切り取り操作を行う。また、図6(b)に示した縮小表示処理の場合、ユーザは、矩形603を含む複数のセルを選択することで、コピー操作又は切り取り操作を行う。
For example, in the case of the full display process shown in FIG. 6A, the user performs a copy operation or a cut operation by selecting a plurality of cells including the
図9は、図6(b)の縮小表示処理における選択領域の例を示している。この例では、矩形603を含む3個のセルと、矩形603の左側のセル901、及び矩形603の右側のセル902とが選択されている。ユーザは、これらの5個のセルを選択することで、コピー操作又は切り取り操作を行う。
FIG. 9 shows an example of a selection area in the reduced display process of FIG. 6B. In this example, three cells including the
生成部213は、図9の5個のセルが選択された場合、矩形603が示すファンクションブロックが選択されたものとみなして、そのファンクションブロックのFB情報221をコピーする処理又は削除する処理を行う。なお、ユーザは、セル901及びセル902を除く3個のセルを選択することで、コピー操作又は切り取り操作を行ってもよい。
When the five cells shown in FIG. 9 are selected, the
図10は、図2のプログラム作成支援装置201がラダープログラムの表示を終了するときに行う保存処理の例を示すフローチャートである。
FIG. 10 is a flowchart showing an example of a saving process performed when the program
生成部213は、記憶部211から設定情報222を取得し(ステップ1001)、取得した設定情報222を外部ファイルに保存する(ステップ1002)。外部ファイルは、記憶部211とは別に設けられた記憶装置に格納されている。
The
図11は、プログラム作成支援装置201がファンクションブロックを表示するときに行う表示制御処理の例を示すフローチャートである。プログラム作成支援装置201の起動時に、生成部213は、外部ファイルから設定情報222を取得して、記憶部211に格納する(ステップ1101)。
FIG. 11 is a flowchart showing an example of display control processing performed when the program
次に、生成部213は、ワークシート上の表示対象の行がファンクションブロックに割り当てられているか否かをチェックする(ステップ1102)。表示対象の行がファンクションブロックに割り当てられていない場合(ステップ1102,NO)、生成部213は、処理を終了する。
Next, the
表示対象の行がファンクションブロックに割り当てられている場合(ステップ1102,YES)、生成部213は、FB情報221の形状情報から、ファンクションブロックを示す矩形の幅及び高さを取得する(ステップ1103)。そして、生成部213は、設定情報222が全表示処理を指定しているか否かをチェックする(ステップ1104)。
When the line to be displayed is assigned to the function block (
設定情報222が縮小表示処理を指定している場合(ステップ1104,NO)、生成部213は、縮小表示処理を行う(ステップ1105)。この場合、生成部213は、FB情報221を用いて、インスタンス種別、命令名称、及びヘッダ番号を含む縮小矩形を表示する表示情報を生成し、表示部214は、生成された表示情報を用いて、その縮小矩形を画面上に表示する。したがって、ファンクションブロックに割り当てられた先頭の行に縮小矩形のみが表示され、入出力パラメータは非表示となる。
When the setting
一方、設定情報222が全表示処理を指定している場合(ステップ1104,YES)、生成部213は、全表示処理を行う(ステップ1106)。この場合、生成部213は、FB情報221から取得した幅及び高さを有する矩形と、入出力パラメータとを表示する、表示情報を生成する。この矩形には、インスタンス種別、命令名称、ヘッダ番号、入力端子名、及び出力端子名が含まれている。そして、表示部214は、生成された表示情報を用いて、その矩形と入出力パラメータとを画面上に表示する。
On the other hand, when the setting
図12は、画面上に縮小矩形が表示されている状態でプログラム作成支援装置201が行う編集処理の例を示すフローチャートである。まず、生成部213は、受付部212が受け付けたユーザの操作が、ファンクションブロックに対するコピー操作であるか否かをチェックする(ステップ1201)。
FIG. 12 is a flowchart showing an example of an editing process performed by the program
ユーザの操作がコピー操作である場合(ステップ1201,YES)、生成部213は、画面上で選択された選択領域が、ファンクションブロックの有効領域全体に対応するか否かをチェックする(ステップ1202)。
When the user's operation is a copy operation (
例えば、図9に示した例では、矩形603を含む3個のセル、セル901、及びセル902からなる領域が、ファンクションブロックの有効領域として用いられる。矩形603を含む3個のセルからなる領域を有効領域として用いてもよい。選択領域が有効領域の一部のセルのみである場合、その選択領域は有効領域全体には対応しない。
For example, in the example shown in FIG. 9, an area consisting of three cells including a
選択領域が有効領域全体に対応する場合(ステップ1202,YES)、生成部213は、記憶部211内にコピー先領域を確保する(ステップ1203)。そして、生成部213は、記憶部211内のコピー元領域からFB情報221を読み出して(ステップ1204)、コピー先領域に書き込む(ステップ1205)。
When the selected area corresponds to the entire effective area (
一方、選択領域が有効領域全体に対応しない場合(ステップ1202,NO)、生成部213は、ユーザの操作が無効であると判定して(ステップ1206)、処理を終了する。
On the other hand, when the selected area does not correspond to the entire effective area (
ユーザの操作がコピー操作ではない場合(ステップ1201,NO)、生成部213は、ユーザの操作が、ファンクションブロックに対する切り取り操作であるか否かをチェックする(ステップ1207)。
When the user's operation is not a copy operation (
ユーザの操作が切り取り操作である場合(ステップ1207,YES)、生成部213は、画面上で選択された選択領域が、ファンクションブロックの有効領域全体に対応するか否かをチェックする(ステップ1208)。
When the user's operation is a cut operation (
選択領域が有効領域全体に対応する場合(ステップ1208,YES)、生成部213は、記憶部211内のFB情報221を削除し(ステップ1209)、画面上からファンクションブロックを示す縮小矩形を削除する(ステップ1210)。
When the selected area corresponds to the entire effective area (
一方、選択領域が有効領域全体に対応しない場合(ステップ1208,NO)、生成部213は、ユーザの操作が無効であると判定して(ステップ1206)、処理を終了する。ユーザの操作が切り取り操作ではない場合(ステップ1207,NO)、生成部213は、他の処理を行う(ステップ1211)。
On the other hand, when the selected area does not correspond to the entire effective area (
図1の表示制御装置101の構成は一例に過ぎず、表示制御装置101の用途又は条件に応じて、一部の構成要素を省略又は変更してもよい。
The configuration of the
図2のPLCシステムの構成は一例に過ぎず、PLCシステムの用途又は条件に応じて、一部の構成要素を省略又は変更してもよい。例えば、プログラム作成支援装置201がPLC202と通信する必要がない場合は、通信部215を省略することができる。
The configuration of the PLC system shown in FIG. 2 is only an example, and some components may be omitted or changed depending on the use or conditions of the PLC system. For example, when the program
図10〜図12に示したフローチャートは一例に過ぎず、PLCシステムの構成又は条件に応じて、一部の処理を省略又は変更してもよい。 The flowcharts shown in FIGS. 10 to 12 are merely examples, and some processes may be omitted or changed depending on the configuration or conditions of the PLC system.
図3、図5、図6、及び図9に示したファンクションブロックは一例に過ぎず、ファンクションブロックは、表示対象プログラムに応じて変化する。ファンクションブロックを示す図形は、矩形以外の図形であってもよい。 The function blocks shown in FIGS. 3, 5, 6 and 9 are merely examples, and the function blocks change according to the program to be displayed. The figure indicating the function block may be a figure other than a rectangle.
図4に示したFB情報は一例に過ぎず、PLCシステムの用途又は条件に応じて、一部の情報を省略又は変更してもよい。例えば、ファンクションブロックを示す矩形の4個の頂点の座標を、形状情報として用いることもできる。 The FB information shown in FIG. 4 is only an example, and some information may be omitted or changed depending on the use or conditions of the PLC system. For example, the coordinates of the four vertices of the rectangle indicating the function block can be used as the shape information.
図7及び図8に示したメニューは一例に過ぎず、別のグラフィカルユーザインタフェースを用いて、全表示処理と縮小表示処理とを切り替えてもよい。 The menus shown in FIGS. 7 and 8 are merely examples, and the full display process and the reduced display process may be switched using another graphical user interface.
図13は、図1の表示制御装置101及び図2のプログラム作成支援装置201として用いられる情報処理装置(コンピュータ)のハードウェア構成例を示している。図13の情報処理装置は、CPU(Central Processing Unit)1301、メモリ1302、入力装置1303、出力装置1304、補助記憶装置1305、媒体駆動装置1306、及びネットワーク接続装置1307を含む。これらの構成要素はハードウェアであり、バス1308により互いに接続されている。
FIG. 13 shows a hardware configuration example of an information processing device (computer) used as the
メモリ1302は、例えば、ROM(Read Only Memory)、RAM(Random Access Memory)、フラッシュメモリ等の半導体メモリであり、処理に用いられるプログラム及びデータを記憶する。メモリ1302は、図1の記憶部111又は図2の記憶部211として用いることができる。
The
CPU1301(プロセッサ)は、例えば、メモリ1302を利用してプログラムを実行することにより、図1の生成部112として動作する。CPU1301は、メモリ1302を利用してプログラムを実行することにより、図2の受付部212及び生成部213としても動作する。
The CPU 1301 (processor) operates as the
入力装置1303は、例えば、キーボード、ポインティングデバイス等であり、オペレータ又はユーザからの指示又は情報の入力に用いられる。出力装置1304は、例えば、表示装置、プリンタ、スピーカ等であり、オペレータ又はユーザへの問い合わせ又は指示、及び処理結果の出力に用いられる。処理結果は、表示対象プログラムであってもよい。出力装置1304は、図2の表示部214として用いることができる。
The
補助記憶装置1305は、例えば、磁気ディスク装置、光ディスク装置、光磁気ディスク装置、テープ装置等である。補助記憶装置1305は、ハードディスクドライブ又はフラッシュメモリであってもよい。情報処理装置は、補助記憶装置1305にプログラム及びデータを格納しておき、それらをメモリ1302にロードして使用することができる。補助記憶装置1305は、図1の記憶部111又は図2の記憶部211として用いることができる。設定情報222を含む外部ファイルは、補助記憶装置1305に格納される。
The
媒体駆動装置1306は、可搬型記録媒体1309を駆動し、その記録内容にアクセスする。可搬型記録媒体1309は、メモリデバイス、フレキシブルディスク、光ディスク、光磁気ディスク等である。可搬型記録媒体1309は、CD−ROM(Compact Disk Read Only Memory)、DVD(Digital Versatile Disk)、USB(Universal Serial Bus)メモリ等であってもよい。オペレータ又はユーザは、この可搬型記録媒体1309にプログラム及びデータを格納しておき、それらをメモリ1302にロードして使用することができる。
The
このように、処理に用いられるプログラム及びデータを格納するコンピュータ読み取り可能な記録媒体は、メモリ1302、補助記憶装置1305、又は可搬型記録媒体1309のような、物理的な(非一時的な)記録媒体である。
As described above, the computer-readable recording medium that stores the programs and data used for processing is a physical (non-temporary) recording such as a
ネットワーク接続装置1307は、LAN(Local Area Network)、WAN(Wide Area Network)等の通信ネットワークに接続され、通信に伴うデータ変換を行う通信インタフェース回路である。情報処理装置は、プログラム及びデータを外部の装置からネットワーク接続装置1307を介して受信し、それらをメモリ1302にロードして使用することができる。ネットワーク接続装置1307は、図2の通信部215として用いることができる。
The
なお、情報処理装置が図13のすべての構成要素を含む必要はなく、用途又は条件に応じて一部の構成要素を省略することも可能である。例えば、可搬型記録媒体1309又は通信ネットワークを使用しない場合は、媒体駆動装置1306又はネットワーク接続装置1307を省略してもよい。
It is not necessary for the information processing apparatus to include all the components shown in FIG. 13, and some components may be omitted depending on the application or conditions. For example, when the
開示の実施形態とその利点について詳しく説明したが、当業者は、特許請求の範囲に明確に記載した本発明の範囲から逸脱することなく、様々な変更、追加、省略をすることができるであろう。 Having described in detail the embodiments of the disclosure and its advantages, those skilled in the art will be able to make various changes, additions and omissions without departing from the scope of the invention as expressly stated in the claims. Let's do it.
101 表示制御装置
111、211 記憶部
112、213 生成部
121 形状情報
122、222 設定情報
201 プログラム作成支援装置
202 PLC
203 通信ネットワーク
212 受付部
214 表示部
215 通信部
301、302、501、601、603 矩形
602、901、902 セル
701、801 項目
1301 CPU
1302 メモリ
1303 入力装置
1304 出力装置
1305 補助記憶装置
1306 媒体駆動装置
1307 ネットワーク接続装置
1308 バス
1309 可搬型記録媒体
101
203
1302
Claims (5)
前記設定情報が前記第1表示処理を指定している場合、前記第1図形の形状情報に基づいて、前記複数の入力パラメータ及び前記複数の出力パラメータと前記第1図形とを表示する第1表示情報を生成し、前記設定情報が前記第2表示処理を指定している場合、前記複数の入力パラメータ及び前記複数の出力パラメータを省略して前記第2図形を表示する第2表示情報を生成する生成部と、
を備えることを特徴とする表示制御装置。 The shape information of the first figure which has a plurality of input parameters and a plurality of output parameters and indicates a function block used as a function for describing a display target program is stored, and the plurality of input parameters and the plurality of output parameters are stored. The first display process for displaying the first figure on the screen, the function block is shown by omitting the plurality of input parameters and the plurality of output parameters, and the second figure smaller than the first figure is described. A storage unit that stores setting information that specifies one of the second display processes to be displayed on the screen,
When the setting information specifies the first display process, the first display for displaying the plurality of input parameters, the plurality of output parameters, and the first figure based on the shape information of the first figure. When the information is generated and the setting information specifies the second display process, the second display information for displaying the second figure is generated by omitting the plurality of input parameters and the plurality of output parameters. Generator and
A display control device comprising.
前記記憶部は、前記複数の入力パラメータ及び前記複数の出力パラメータを、前記ファンクションブロックと関連付けて記憶し、
前記生成部は、前記受付部が前記コピー操作を受け付けた場合、前記記憶部内で前記複数の入力パラメータ及び前記複数の出力パラメータをコピーし、前記受付部が前記削除操作を受け付けた場合、前記複数の入力パラメータ及び前記複数の出力パラメータを前記記憶部から削除することを特徴とする請求項1又は2記載の表示制御装置。 A copy operation of selecting the second figure to copy the function block or a delete operation of selecting the second figure to delete the function block while the second figure is displayed on the screen. It also has a reception desk that accepts any of
The storage unit stores the plurality of input parameters and the plurality of output parameters in association with the function block.
When the receiving unit accepts the copy operation, the generation unit copies the plurality of input parameters and the plurality of output parameters in the storage unit, and when the receiving unit accepts the deletion operation, the plurality of The display control device according to claim 1 or 2, wherein the input parameter and the plurality of output parameters of the above are deleted from the storage unit.
前記複数の入力パラメータ及び前記複数の出力パラメータを省略して、前記ファンクションブロックを示し前記第1図形よりも小さな第2図形を前記画面上に表示する第2表示処理を、前記設定情報が指定している場合、前記複数の入力パラメータ及び前記複数の出力パラメータを省略して前記第2図形を表示する第2表示情報を生成する、
処理をコンピュータに実行させるための表示制御プログラム。 The first graphic showing a function block having a plurality of input parameters and a plurality of output parameters and used as a function for describing a display target program, and the plurality of input parameters and the plurality of output parameters are displayed on the screen. When the setting information specifies the first display process, the first display information for displaying the plurality of input parameters, the plurality of output parameters, and the first figure based on the shape information of the first figure. To generate
The setting information specifies a second display process for displaying the function block and displaying a second figure smaller than the first figure on the screen by omitting the plurality of input parameters and the plurality of output parameters. If so, the second display information for displaying the second figure is generated by omitting the plurality of input parameters and the plurality of output parameters.
A display control program that allows a computer to perform processing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019115349A JP7351109B2 (en) | 2019-06-21 | 2019-06-21 | Display control device and display control program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019115349A JP7351109B2 (en) | 2019-06-21 | 2019-06-21 | Display control device and display control program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2021002197A true JP2021002197A (en) | 2021-01-07 |
JP7351109B2 JP7351109B2 (en) | 2023-09-27 |
Family
ID=73995249
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2019115349A Active JP7351109B2 (en) | 2019-06-21 | 2019-06-21 | Display control device and display control program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP7351109B2 (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07248809A (en) * | 1994-03-14 | 1995-09-26 | Fuji Electric Co Ltd | Programming device |
JP2004280341A (en) * | 2003-03-14 | 2004-10-07 | Omron Corp | Display switching method for ladder program including function block calling instruction and programming device |
JP2009237947A (en) * | 2008-03-27 | 2009-10-15 | Fuji Electric Systems Co Ltd | Programmable controller, programmable controller support device, and programmable controller system |
-
2019
- 2019-06-21 JP JP2019115349A patent/JP7351109B2/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07248809A (en) * | 1994-03-14 | 1995-09-26 | Fuji Electric Co Ltd | Programming device |
JP2004280341A (en) * | 2003-03-14 | 2004-10-07 | Omron Corp | Display switching method for ladder program including function block calling instruction and programming device |
JP2009237947A (en) * | 2008-03-27 | 2009-10-15 | Fuji Electric Systems Co Ltd | Programmable controller, programmable controller support device, and programmable controller system |
Also Published As
Publication number | Publication date |
---|---|
JP7351109B2 (en) | 2023-09-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7351109B2 (en) | Display control device and display control program | |
JP4838655B2 (en) | Document creation support apparatus and document creation support method | |
JPH025102A (en) | Input system for pc rudder graphic | |
JPS59206978A (en) | Character string, graphic, picture synthesizing device | |
JPS63139751A (en) | Printing method in printing system | |
JP6244743B2 (en) | Layout editing processing method, apparatus and program | |
JPH08212361A (en) | Device and method for editing graphic | |
JP2005038149A (en) | Form processing method, form processing program and form processing device | |
JPH06110884A (en) | Editing device | |
JP2014178905A (en) | Image display device, image display method, and program | |
JP2013131874A (en) | Margin-reducing program | |
JPH0548876A (en) | Picture processor with grid function | |
JP4830573B2 (en) | Printing system, preview apparatus, printing method, and printing program | |
JP2611971B2 (en) | Output device | |
JPH064640A (en) | Method for processing character graphic and device therefor | |
JP2000090131A (en) | Layer converting method for graphic data and recording medium recorded with layer converting program | |
JP2008077322A (en) | Document editing method | |
JPH05143702A (en) | Image processor | |
JP2000293511A (en) | Document processor, its method and storage medium | |
JPH06215096A (en) | Menu selecting/displaying method in image processing system | |
JPH0916746A (en) | Image filing device | |
JPH09330313A (en) | Document processor | |
JPH04127361A (en) | Document processor | |
JPH09212496A (en) | Document processor and method | |
JPH03176767A (en) | Document processor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20220516 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20230414 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20230425 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20230524 |
|
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: 20230815 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20230828 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 7351109 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |