JPWO2019207679A1 - Monitor support device, monitor support method, and monitor support program - Google Patents

Monitor support device, monitor support method, and monitor support program Download PDF

Info

Publication number
JPWO2019207679A1
JPWO2019207679A1 JP2018554798A JP2018554798A JPWO2019207679A1 JP WO2019207679 A1 JPWO2019207679 A1 JP WO2019207679A1 JP 2018554798 A JP2018554798 A JP 2018554798A JP 2018554798 A JP2018554798 A JP 2018554798A JP WO2019207679 A1 JPWO2019207679 A1 JP WO2019207679A1
Authority
JP
Japan
Prior art keywords
monitor
data
unit
monitor data
control program
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
Application number
JP2018554798A
Other languages
Japanese (ja)
Other versions
JP6469330B1 (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Application granted granted Critical
Publication of JP6469330B1 publication Critical patent/JP6469330B1/en
Publication of JPWO2019207679A1 publication Critical patent/JPWO2019207679A1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/058Safety, monitoring
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/054Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/056Programming the PLC
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/13Plc programming
    • G05B2219/13142Debugging, tracing
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/13Plc programming
    • G05B2219/13174Pc, computer connected to plc to simulate machine

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

モニタ支援装置(20)は、プログラマブルロジックコントローラ(PLC10)に実行させる制御プログラムに含まれる複数の命令のそれぞれが実行される毎に、命令が実行された結果が記憶される記憶領域に記憶されている値をモニタデータとして、命令と対応づけて取得するデータ取得部(5)と、制御プログラムに含まれる複数の命令と、データ取得部によって取得されたモニタデータとを画面上に表示する表示制御部(7)と、を備えることを特徴とする。The monitor support device (20) stores a result of execution of an instruction each time a plurality of instructions included in a control program to be executed by the programmable logic controller (PLC10) are executed and is stored in a storage area. A display control for displaying on a screen a data acquisition unit (5) that acquires a value associated with a command as monitor data, a plurality of commands included in a control program, and the monitor data acquired by the data acquisition unit. And a part (7).

Description

本発明は、プログラマブルロジックコントローラ(Programmable Logic Controller:PLC)の状態をモニタする機能を有するモニタ支援装置、プログラマブルロジックコントローラ、モニタ支援方法およびモニタ支援プログラムに関する。   The present invention relates to a monitor support device having a function of monitoring a state of a programmable logic controller (PLC), a programmable logic controller, a monitor support method, and a monitor support program.

工場の生産設備の制御には、一般的にPLCと呼ばれる産業用コントローラが用いられている。PLCの記憶領域には、外部からPLCへ入力されるデータ、PLCから外部へ出力するデータ、制御プログラムの実行時に使用するデータなどの値が記憶される。それぞれのデータを記憶する記憶領域を予め割り当てておき、この記憶領域のアドレスを使用することで、PLCが実行する制御プログラムは、それぞれの記憶領域に記憶されたデータを使用することができる。制御プログラムが期待した通りに動作するかを検証するために、ユーザは、記憶領域に記憶された値を確認することがある。   An industrial controller generally called PLC is used for controlling the production equipment of the factory. In the storage area of the PLC, values such as data input to the PLC from the outside, data output from the PLC to the outside, and data used when the control program is executed are stored. By previously allocating a storage area for storing each data and using the address of this storage area, the control program executed by the PLC can use the data stored in each storage area. In order to verify that the control program operates as expected, the user may check the value stored in the storage area.

特許文献1には、制御プログラムの修正作業を効率化するために、制御プログラムと並べて、記憶領域に記憶されている値の履歴をグラフ表示する技術が開示されている。この技術では、各記憶領域に記憶された値を定期的に収集して、収集時刻と対応づけて履歴情報を生成している。   Patent Document 1 discloses a technique of displaying a history of values stored in a storage area side by side with a control program in a graph in order to make the correction work of the control program efficient. In this technique, the values stored in each storage area are periodically collected, and the history information is generated in association with the collection time.

国際公開第2014/167726号International Publication No. 2014/167726

しかしながら、上記特許文献1に記載の技術では、各記憶領域に記憶されている値を一定の周期で収集しているため、収集した値は、各命令が実行されたときの値とは限らない。このため、制御プログラムの各命令と、記憶領域に記憶されている値との関係を把握することが困難であり、ユーザが制御プログラムの動作を確認することが困難であるという問題があった。   However, in the technique described in Patent Document 1, since the values stored in each storage area are collected at a constant cycle, the collected values are not always the values when each instruction is executed. .. Therefore, there is a problem that it is difficult to grasp the relationship between each command of the control program and the value stored in the storage area, and it is difficult for the user to confirm the operation of the control program.

本発明は、上記に鑑みてなされたものであって、制御プログラムの動作を容易に確認することが可能なモニタ支援装置を得ることを目的とする。   The present invention has been made in view of the above, and an object of the present invention is to obtain a monitor support device capable of easily confirming the operation of a control program.

上述した課題を解決し、目的を達成するために、本発明にかかるモニタ支援装置は、プログラマブルロジックコントローラに実行させる制御プログラムに含まれる複数の命令のそれぞれが実行される毎に、命令が実行された結果が記憶される記憶領域に記憶されている値をモニタデータとして、命令と対応づけて取得するデータ取得部と、制御プログラムに含まれる複数の命令と、データ取得部によって取得されたモニタデータとを画面上に表示する表示制御部と、を備えることを特徴とする。   In order to solve the above-mentioned problems and achieve the object, the monitor support device according to the present invention executes an instruction each time a plurality of instructions included in a control program to be executed by a programmable logic controller are executed. The data acquisition unit that acquires the value stored in the storage area in which the result is stored as the monitor data in association with the command, the plurality of commands included in the control program, and the monitor data acquired by the data acquisition unit And a display control unit that displays and on the screen.

本発明にかかるモニタ支援装置は、制御プログラムの動作を容易に確認することが可能になるという効果を奏する。   The monitor support device according to the present invention has an effect that the operation of the control program can be easily confirmed.

本発明の実施の形態1にかかるモニタ支援システムの構成を示す図The figure which shows the structure of the monitor assistance system concerning Embodiment 1 of this invention. 図1に示すPLCが使用する制御プログラムの一例を示す図The figure which shows an example of the control program which the PLC shown in FIG. 1 uses. 図1に示す範囲指定部が画面上に表示するモニタ範囲指定画面を示す図The figure which shows the monitor range specification screen which the range specification part shown in FIG. 1 displays on a screen. 図1に示すモニタ対象情報特定部が特定するモニタ対象情報を示す図The figure which shows the monitor target information which the monitor target information specific | specification part shown in FIG. 1 specifies. 図1に示す表示データ記憶部へ記憶される表示データを示す図The figure which shows the display data memorize | stored in the display data memory | storage part shown in FIG. 図1に示すプログラム表示部が表示した制御プログラムにモニタデータ更新部がモニタデータを重畳して表示した画面を示す図The figure which shows the screen which the monitor data update part superimposed and displayed the monitor data on the control program which the program display part shown in FIG. 1 displayed. 図1に示す履歴表示部が表示する履歴情報を示す図The figure which shows the history information which the history display part shown in FIG. 1 displays. 図1に示す強調表示部の動作を説明するための図Diagram for explaining the operation of the highlighting unit shown in FIG. 図1に示すデータ取得部の動作を示すフローチャートFlowchart showing the operation of the data acquisition unit shown in FIG. 図1に示す表示制御部の動作を示すフローチャートFlowchart showing the operation of the display control unit shown in FIG. 図1に示すモニタデータ管理部の動作を示すフローチャートFlowchart showing the operation of the monitor data management unit shown in FIG. 図1に示すPLCおよびモニタ支援装置の機能をソフトウェアを用いて実現するための構成を示す図The figure which shows the structure for implement | achieving the function of PLC and the monitor support apparatus shown in FIG. 1 using software. 図1に示すPLCおよびモニタ支援装置の機能を実現するための専用のハードウェアの構成を示す図The figure which shows the structure of the hardware for exclusive use for implement | achieving the function of the PLC shown in FIG.

以下に、本発明の実施の形態にかかるモニタ支援装置、プログラマブルロジックコントローラ、モニタ支援方法およびモニタ支援プログラムを図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。   A monitor support device, a programmable logic controller, a monitor support method, and a monitor support program according to an embodiment of the present invention will be described below in detail with reference to the drawings. The present invention is not limited to this embodiment.

実施の形態1.
図1は、本発明の実施の形態1にかかるモニタ支援システム100の構成を示す図である。モニタ支援システム100は、PLC10と、モニタ支援装置20とを有する。
Embodiment 1.
FIG. 1 is a diagram showing a configuration of a monitor support system 100 according to the first exemplary embodiment of the present invention. The monitor support system 100 includes a PLC 10 and a monitor support device 20.

PLC10は、工場などの生産設備を制御するために用いられる制御装置であり、制御プログラムを実行することにより、図示しない工作機械などを制御することができる。モニタ支援装置20は、PLC10が実行する制御プログラムを作成するプログラム作成装置であり、PLC10の状態をモニタする機能を有する。   The PLC 10 is a control device used to control production equipment such as a factory, and can execute a control program to control a machine tool (not shown) or the like. The monitor support device 20 is a program creation device that creates a control program executed by the PLC 10, and has a function of monitoring the state of the PLC 10.

PLC10は、プログラム実行部1と、記憶部2と、モニタデータ管理部3と、モニタデータ記憶部4とを有する。プログラム実行部1は、制御プログラムを実行して、工作機械などを制御する。プログラム実行部1は、制御プログラムを実行する際に、記憶部2の記憶領域に記憶されている値を更新することができる。プログラム実行部1は、制御プログラムに含まれる命令を実行する毎に、実行した命令を特定するための情報をモニタデータ管理部3に通知する。   The PLC 10 includes a program execution unit 1, a storage unit 2, a monitor data management unit 3, and a monitor data storage unit 4. The program execution unit 1 executes a control program to control a machine tool or the like. The program execution unit 1 can update the value stored in the storage area of the storage unit 2 when executing the control program. Every time the program execution unit 1 executes an instruction included in the control program, the program execution unit 1 notifies the monitor data management unit 3 of information for specifying the executed instruction.

記憶部2は、格納するデータの種類が予め割り当てられた複数の記憶領域を有する。プログラム実行部1は、記憶部2のアドレスを使用することで、記憶部2の各記憶領域にデータを書き込んだり、各記憶領域からデータを読み出したりすることができる。この記憶領域は、PLC10の外部からも書き込んだり読み出したりすることができるようになっており、これにより、PLC10の外部とのデータの送受信が可能になっている。また、記憶部2は、プログラム実行部1が制御プログラムを実行しているときに使用するデータの値を格納することもできる。記憶部2の記憶領域は、データ種別を示す文字と、アドレスとを用いて表記することができる。例えば、入力データを示す文字はX、出力データを示す文字はY、内部的に使用するビットデータを示す文字はM、ワードデータを示す文字はDなどと定められている。この場合、入力データを格納する記憶領域のアドレス0のものは「X0」と表記される。   The storage unit 2 has a plurality of storage areas to which the types of data to be stored are assigned in advance. The program execution unit 1 can write data in each storage area of the storage unit 2 and read data from each storage area by using the address of the storage unit 2. This storage area can be written to and read from the outside of the PLC 10 as well, whereby data can be transmitted and received to and from the outside of the PLC 10. The storage unit 2 can also store the value of data used when the program execution unit 1 is executing the control program. The storage area of the storage unit 2 can be represented by using a character indicating a data type and an address. For example, the character indicating input data is X, the character indicating output data is Y, the character indicating internally used bit data is M, the character indicating word data is D, and the like. In this case, the address 0 of the storage area for storing the input data is described as "X0".

図2は、図1に示すPLC10が使用する制御プログラムの一例を示す図である。PLC10が使用する制御プログラムは、シーケンスプログラムとも呼ばれ、変数、記憶部2の記憶領域のアドレス、数値、命令などを用いて記述される。制御プログラムには、複数の命令が含まれている。図2に示す制御プログラムの1行目は、記憶領域M0の値が「ON」の場合、記憶領域D0に値「1」をコピーするという動作を示している。制御プログラムの2行目は、記憶領域M1の値が「ON」の場合、記憶領域D0に値「2」をコピーするという動作を示している。制御プログラムの3行目は、記憶領域M2の値が「ON」の場合、記憶領域D0に値「3」をコピーするという動作を示している。制御プログラムの4行目は、記憶領域M3の値が「ON」の場合、記憶領域D1に格納された値に「1」を加算するという動作を示している。制御プログラムの5行目は、記憶領域M0の値が「ON」の場合、記憶領域D0に値「1」をコピーするという動作を示している。制御プログラムの6行目は、記憶領域M1の値が「ON」の場合、記憶領域D0に値「2」をコピーするという動作を示している。   FIG. 2 is a diagram showing an example of a control program used by the PLC 10 shown in FIG. The control program used by the PLC 10 is also called a sequence program and is described using variables, addresses of storage areas of the storage unit 2, numerical values, instructions, and the like. The control program includes a plurality of instructions. The first line of the control program shown in FIG. 2 shows an operation of copying the value “1” to the storage area D0 when the value of the storage area M0 is “ON”. The second line of the control program shows an operation of copying the value "2" to the storage area D0 when the value of the storage area M1 is "ON". The third line of the control program shows an operation of copying the value "3" to the storage area D0 when the value of the storage area M2 is "ON". The fourth line of the control program shows an operation of adding "1" to the value stored in the storage area D1 when the value of the storage area M3 is "ON". The fifth line of the control program shows an operation of copying the value "1" to the storage area D0 when the value of the storage area M0 is "ON". The sixth line of the control program shows an operation of copying the value "2" to the storage area D0 when the value of the storage area M1 is "ON".

図2に示す制御プログラムは、複数の命令と、各命令の実行条件と、命令により更新される記憶領域のアドレスとを含んでいる。命令は、PLC10に制御させたい内容の最小単位を示している。例えば上記制御プログラムの4行目の例では、命令は「加算する」であり、命令の実行条件は「記憶領域M3の値がONであること」であり、命令により更新される記憶領域のアドレスは記憶領域D1である。   The control program shown in FIG. 2 includes a plurality of instructions, an execution condition of each instruction, and an address of a storage area updated by the instruction. The instruction indicates the minimum unit of the content that the PLC 10 wants to control. For example, in the example of the fourth line of the control program, the instruction is “add”, the execution condition of the instruction is “the value of the storage area M3 is ON”, and the address of the storage area updated by the instruction. Is a storage area D1.

図1の説明に戻る。モニタデータ管理部3は、モニタ支援装置20からの指示に従って、制御プログラムに含まれる命令が実行されたときのモニタ対象の記憶領域に記憶されている値であるモニタデータを生成する。モニタ対象の記憶領域は、命令が使用する記憶領域であり、具体的には、命令が実行された結果が記憶される記憶領域と、命令を実行するか否かを判断するために参照する記憶領域とを含む。モニタデータ管理部3は、生成したモニタデータを、モニタデータ記憶部4に記憶させると共に、モニタ支援装置20に送信する。モニタデータ管理部3は、プログラム実行部1から、実行された命令を特定するための情報が通知されたタイミングに合わせて記憶部2の記憶領域に記憶されている値を取得することで、制御プログラムに含まれる命令が実行されたタイミングに合わせて、モニタデータを生成することができる。モニタデータ管理部3は、実行された命令と、当該命令が使用した記憶領域に記憶されている値であるモニタデータとを対応づけて、モニタデータ記憶部4に記憶させると共に、モニタ支援装置20に送信する。モニタデータ管理部3は、モニタデータを、モニタデータが取得された時刻情報と対応づけることもできる。   Returning to the explanation of FIG. The monitor data management unit 3 generates monitor data, which is a value stored in the storage area to be monitored when the instruction included in the control program is executed, according to the instruction from the monitor support device 20. The storage area to be monitored is a storage area used by an instruction, and specifically, a storage area in which a result of execution of an instruction is stored and a storage referred to in order to determine whether or not to execute the instruction. Area and. The monitor data management unit 3 stores the generated monitor data in the monitor data storage unit 4 and transmits it to the monitor support device 20. The monitor data management unit 3 obtains the value stored in the storage area of the storage unit 2 at the timing when the information for specifying the executed instruction is notified from the program execution unit 1, thereby controlling The monitor data can be generated at the timing when the instruction included in the program is executed. The monitor data management unit 3 associates the executed instruction with the monitor data, which is the value stored in the storage area used by the instruction, and stores them in the monitor data storage unit 4, and at the same time, the monitor support device 20. Send to. The monitor data management unit 3 can also associate the monitor data with the time information when the monitor data was acquired.

モニタデータ記憶部4は、モニタデータ管理部3から入力されるモニタデータを、命令を特定するための情報と、モニタデータが取得された時刻と対応づけて記憶する。記憶部2の記憶領域に記憶されている値は、命令の実行やPLC10の外部からの入力データなどによって書換えられるため、経時的に変化するのに対して、モニタデータ記憶部4には、制御プログラムに含まれる命令が実行されたタイミングの値が保持されることになる。   The monitor data storage unit 4 stores the monitor data input from the monitor data management unit 3 in association with the information for specifying the command and the time when the monitor data was acquired. The value stored in the storage area of the storage unit 2 is rewritten by execution of an instruction or input data from the outside of the PLC 10 and thus changes over time. The value of the timing when the instruction included in the program is executed is held.

モニタ支援装置20は、パーソナルコンピュータ上で動作するソフトウェアツールとして提供され、PLC10が設備の制御を行うための制御プログラムの編集を支援したり、PLC10をモニタ支援装置20に接続して、制御プログラムの稼働状態を確認したり、編集した制御プログラムをPLC10へ転送したりする機能を有している。   The monitor support device 20 is provided as a software tool that operates on a personal computer, supports the editing of a control program for the PLC 10 to control the equipment, or connects the PLC 10 to the monitor support device 20 to execute the control program control. It has a function of checking the operating state and transferring the edited control program to the PLC 10.

モニタ支援装置20は、データ取得部5と、表示データ記憶部6と、表示制御部7とを有する。データ取得部5は、PLC10の動作を確認するためのモニタデータをPLC10から取得する。具体的には、データ取得部5は、制御プログラム内のモニタデータを取得する範囲を指定する範囲指定部51と、範囲指定部51によって指定された範囲内に含まれるモニタ対象となる記憶領域のアドレスを特定するモニタ対象情報特定部52とを含む。   The monitor support device 20 includes a data acquisition unit 5, a display data storage unit 6, and a display control unit 7. The data acquisition unit 5 acquires monitor data for confirming the operation of the PLC 10 from the PLC 10. Specifically, the data acquisition unit 5 includes a range designation unit 51 that designates a range in which monitor data in the control program is obtained, and a storage area that is a monitoring target and is included in the range designated by the range designation unit 51. The monitoring target information specifying unit 52 that specifies an address is included.

範囲指定部51は、制御プログラムの中で、モニタ対象となる範囲を指定する。モニタ支援装置20のモニタ機能は、例えばデバッグ時など制御プログラムが期待通りに動作しているか否かを確認するために用いられる。全ての範囲のモニタデータを取得する場合、処理負荷が大きくなったり、モニタデータの記憶容量が大きくなったりするため、範囲指定部51は、必要に応じて、モニタ対象となる範囲を絞り込むことができる。   The range designation unit 51 designates a range to be monitored in the control program. The monitor function of the monitor support device 20 is used, for example, at the time of debugging to confirm whether or not the control program operates as expected. When acquiring the monitor data of the entire range, the processing load increases and the storage capacity of the monitor data increases. Therefore, the range specifying unit 51 can narrow down the range to be monitored as necessary. it can.

図3は、図1に示す範囲指定部51が画面上に表示するモニタ範囲指定画面511を示す図である。モニタ範囲指定画面511を使用することで、ユーザは、制御プログラムの範囲を行数で指定することができる。範囲指定部51は、ユーザがモニタ範囲指定画面511に入力するデータを取得して、この入力データを用いてモニタ範囲を指定することができる。なお、範囲指定部51がモニタ対象範囲を指定する方法は、モニタ範囲指定画面511を使用する例に限定されない。範囲指定部51は、ユーザが入力した値に限らず、任意のアルゴリズムを用いて導き出された範囲を使用してもよい。例えば、範囲指定部51は、機械学習を用いて導き出された範囲を使用してもよい。   FIG. 3 is a diagram showing a monitor range designation screen 511 displayed on the screen by the range designation unit 51 shown in FIG. By using the monitor range designation screen 511, the user can designate the range of the control program by the number of lines. The range designation unit 51 can acquire the data that the user inputs on the monitor range designation screen 511, and can designate the monitor range using this input data. The method by which the range designation unit 51 designates the monitoring target range is not limited to the example of using the monitor range designation screen 511. The range designation unit 51 is not limited to the value input by the user, and may use the range derived by using an arbitrary algorithm. For example, the range designation unit 51 may use the range derived by using machine learning.

モニタ対象情報特定部52は、制御プログラムの内、範囲指定部51によって指定された範囲の中から、モニタ対象となる記憶領域を特定する。例えば、範囲指定部51によって、2行目〜4行目がモニタ対象範囲として指定された場合、モニタ対象情報特定部52は、制御プログラムの2行目〜4行目の中から、命令が使用している記憶領域を特定する。   The monitoring target information specifying unit 52 specifies the storage area to be monitored from the range specified by the range specifying unit 51 in the control program. For example, when the second to fourth lines are designated as the monitoring target range by the range designating unit 51, the monitoring target information specifying unit 52 uses the instruction from the second to fourth lines of the control program. Specify the storage area that is being used.

図4は、図1に示すモニタ対象情報特定部52が特定するモニタ対象情報を示す図である。この例では、モニタ対象情報特定部52は、制御プログラムの2行目の記憶領域M1および記憶領域D0、3行目の記憶領域M2および記憶領域D0、4行目の記憶領域M3および記憶領域D1がモニタ対象であると特定することができる。   FIG. 4 is a diagram showing the monitor target information specified by the monitor target information specifying unit 52 shown in FIG. In this example, the monitoring target information specifying unit 52 causes the storage area M1 and storage area D0 of the second row of the control program, the storage area M2 and storage area D0 of the third row, and the storage area M3 and storage area D1 of the fourth row. Can be specified to be monitored.

モニタ対象情報特定部52は、モニタ対象の命令と、命令が実行された結果が記憶される記憶領域と、命令を実行するか否かを判断するために参照する記憶領域とを対応づけて、モニタ対象情報とする。モニタ対象情報特定部52は、モニタ対象情報をPLC10に送信する。   The monitoring target information specifying unit 52 associates the instruction to be monitored, the storage area in which the result of execution of the instruction is stored, and the storage area to be referred to in order to determine whether or not to execute the instruction, It is the monitoring target information. The monitor target information identification unit 52 transmits the monitor target information to the PLC 10.

データ取得部5は、モニタ対象情報に従ってPLC10が作成したモニタデータと、モニタデータに対応づけられた命令を示す情報と、モニタデータが取得された時刻とを受信し、表示データ記憶部6へ記憶する。図5は、図1に示す表示データ記憶部6へ記憶される表示データを示す図である。表示データは、命令を示す情報である制御プログラム内の行数と、この命令に対応づけて取得されたモニタデータと、モニタデータが取得された時刻とを含んでいる。   The data acquisition unit 5 receives the monitor data created by the PLC 10 according to the monitor target information, the information indicating the command associated with the monitor data, and the time at which the monitor data was acquired, and stored in the display data storage unit 6. To do. FIG. 5 is a diagram showing display data stored in the display data storage unit 6 shown in FIG. The display data includes the number of lines in the control program, which is information indicating a command, the monitor data acquired in association with this command, and the time when the monitor data was acquired.

PLC10のモニタデータ管理部3は、命令が実行される毎にモニタデータを取得してモニタ支援装置20に送信するため、データ取得部5は、命令が実行される毎にモニタデータを取得することになる。また、データ取得部5は、PLC10からモニタデータを取得する毎に表示データ記憶部6に記憶するため、表示データ記憶部6に記憶されたモニタデータは、命令が実行される毎に更新されることになる。   Since the monitor data management unit 3 of the PLC 10 acquires the monitor data every time the command is executed and transmits it to the monitor support device 20, the data acquisition unit 5 acquires the monitor data each time the command is executed. become. Further, since the data acquisition unit 5 stores the monitor data in the display data storage unit 6 each time the monitor data is acquired from the PLC 10, the monitor data stored in the display data storage unit 6 is updated every time the command is executed. It will be.

表示制御部7は、画面上に、制御プログラムと、制御プログラムに含まれる命令が実行されたときのモニタデータの値とを表示することができる。表示制御部7は、プログラム表示部71と、モニタデータ更新部72と、履歴表示部73と、強調表示部74とを有する。表示制御部7が、表示装置を備えており、表示装置の画面上に制御プログラム、モニタデータなどを表示してもよいし、表示制御部7は、外部の表示装置と接続されており、外部の表示装置の画面上に制御プログラム、モニタデータなどを表示してもよい。   The display control unit 7 can display the control program and the value of the monitor data when the instruction included in the control program is executed on the screen. The display control unit 7 includes a program display unit 71, a monitor data updating unit 72, a history display unit 73, and a highlighting display unit 74. The display control unit 7 may include a display device and display a control program, monitor data, and the like on the screen of the display device. The display control unit 7 is connected to an external display device and The control program, monitor data, etc. may be displayed on the screen of the display device.

プログラム表示部71は、画面上に制御プログラムを表示する。プログラム表示部71は、図2に示したように、リレー回路を模したラダー図の形式で制御プログラムを表示することができる。   The program display unit 71 displays the control program on the screen. As shown in FIG. 2, the program display unit 71 can display the control program in the form of a ladder diagram simulating a relay circuit.

モニタデータ更新部72は、表示データ記憶部6に記憶されたモニタデータを使用して、プログラム表示部71が表示した制御プログラムに重畳して、モニタデータを画面上に表示することができる。このときモニタデータ更新部72は、制御プログラムに含まれる命令をこの命令と対応づけて取得されたモニタデータと対応づけて表示する。モニタデータ更新部72は、表示データ記憶部6に記憶されたモニタデータのうち、命令および記憶領域の組み合わせ毎の最新値を画面上に表示することができる。   The monitor data updating unit 72 can use the monitor data stored in the display data storage unit 6 to display the monitor data on the screen by superimposing it on the control program displayed by the program display unit 71. At this time, the monitor data updating unit 72 displays the command included in the control program in association with the monitor data acquired in association with this command. Of the monitor data stored in the display data storage unit 6, the monitor data update unit 72 can display the latest value for each combination of instruction and storage area on the screen.

図6は、図1に示すプログラム表示部71が表示した制御プログラムにモニタデータ更新部72がモニタデータを重畳して表示した画面を示す図である。ここでは、2行目〜4行目がモニタ範囲として指定されているため、制御プログラムの2行目〜4行目にモニタデータの値が重畳して表示されている。ここでは、図5に示す表示データが表示データ記憶部6に記憶されている状態のときに、表示制御部7が表示する画面を示している。制御プログラム中の記憶領域を示す表示と重畳して、記憶領域に格納された値であるモニタデータが表示されている。この画面を見るユーザは、制御プログラムの2行目が最後に実行されたときに、記憶領域M1の値が「ON」であり、記憶領域D0に値「2」がコピーされたことを確認することができる。   FIG. 6 is a diagram showing a screen in which the monitor data updating unit 72 superimposes the monitor data on the control program displayed by the program display unit 71 shown in FIG. Here, since the second to fourth lines are designated as the monitor range, the values of the monitor data are superimposed and displayed on the second to fourth lines of the control program. Here, a screen displayed by the display control unit 7 when the display data shown in FIG. 5 is stored in the display data storage unit 6 is shown. The monitor data, which is the value stored in the storage area, is displayed so as to overlap the display showing the storage area in the control program. The user who views this screen confirms that the value of the storage area M1 is "ON" and the value "2" has been copied to the storage area D0 when the second line of the control program is executed last. be able to.

最新のモニタデータを表示する以外にも、表示制御部7は、モニタデータの履歴情報を画面上に表示する機能を有する。履歴表示部73は、表示データ記憶部6に、同一の命令と対応づけられた同一のモニタデータの値が複数記憶されている場合、履歴表示指示を検知すると、履歴情報として複数のモニタデータを表示することができる。   In addition to displaying the latest monitor data, the display controller 7 has a function of displaying history information of monitor data on the screen. When a plurality of values of the same monitor data associated with the same command are stored in the display data storage unit 6, the history display unit 73 detects a history display instruction and then outputs a plurality of monitor data as history information. Can be displayed.

図7は、図1に示す履歴表示部73が表示する履歴情報を示す図である。履歴表示部73は、例えば、制御プログラムに命令毎に記述された記憶領域に対する選択操作を検知すると、選択された記憶領域に格納された値の履歴を画面上に表示することができる。履歴表示部73が履歴情報を表示する方法は、図7に示す例に限定されない。例えば、履歴表示部73は、複数の記憶領域の履歴を同時に表示してもよいし、履歴の数は3回分に限らず、任意の数にすることができる。命令および記憶領域の組み合わせ毎に、記憶領域に格納された値の履歴を表示することで、命令と、この命令が使用した記憶領域に記憶されている値との関係を把握しやすくなる。   FIG. 7 is a diagram showing history information displayed by the history display unit 73 shown in FIG. For example, when the history display unit 73 detects a selection operation for the storage area described for each instruction in the control program, the history display section 73 can display the history of the values stored in the selected storage area on the screen. The method by which the history display unit 73 displays the history information is not limited to the example shown in FIG. 7. For example, the history display unit 73 may display the histories of a plurality of storage areas at the same time, and the number of histories is not limited to three, but may be any number. By displaying the history of the values stored in the storage area for each combination of the instruction and the storage area, it becomes easier to understand the relationship between the instruction and the value stored in the storage area used by the instruction.

強調表示部74は、制御プログラム上に表示されたモニタデータを強調表示する機能を有する。強調表示部74は、表示データ記憶部6に記憶された時刻情報を用いて、記憶領域が使用された順番に従って、強調表示するモニタデータを順次変化させることができる。このとき、強調表示するモニタデータを変化させる順番は、記憶領域が使用された順番に基づいて、新しいものから古いものへ向かう順番であってもよいし、古いものから新しいものへ向かう順番であってもよい。   The highlighting unit 74 has a function of highlighting the monitor data displayed on the control program. The highlighting unit 74 can sequentially change the monitor data to be highlighted by using the time information stored in the display data storage unit 6 according to the order in which the storage area is used. At this time, the order of changing the monitor data to be highlighted may be the order from the newest to the oldest, or the order from the oldest to the newest, based on the order in which the storage areas are used. May be.

図8は、図1に示す強調表示部74の動作を説明するための図である。強調表示部74は、図8(A)に示すように、4行目の記憶領域M3の部分を強調表示した状態から、図8(B)に示すように、3行目の記憶領域M2の部分を強調表示した状態に変化させて、その後、図8(C)に示すように、2行目の記憶領域D0の部分を強調表示し、図8(D)に示すように、2行目の記憶領域M1の部分を強調表示した状態に変化させる。強調表示部74は、モニタデータを新しいものから古いものに遡って順番に強調表示している。なお、ここでは図8(B)に示すように、3行目の記憶領域M2の値が「OFF」であって、3行目では、記憶領域D0に値「3」をコピーする処理は省略されているため、強調表示も省略される。   FIG. 8 is a diagram for explaining the operation of the highlighting unit 74 shown in FIG. As shown in FIG. 8 (A), the highlighting unit 74 highlights the portion of the storage area M3 in the fourth row, and then, as shown in FIG. 8 (B), displays the storage area M2 in the third row. The portion is changed to a highlighted state, and then, as shown in FIG. 8C, the portion of the storage area D0 in the second row is highlighted, and as shown in FIG. The portion of the storage area M1 is changed to the highlighted state. The highlighting unit 74 highlights the monitor data in order from newest data to oldest data. Here, as shown in FIG. 8B, the value of the storage area M2 in the third row is “OFF”, and the processing of copying the value “3” to the storage area D0 is omitted in the third row. Therefore, the highlighting is also omitted.

続いて、本実施の形態にかかるモニタ支援システム100の動作について説明する。ここで、モニタ支援装置20は、モニタデータを取得する動作と、表示する動作とに分けて説明する。   Next, the operation of the monitor support system 100 according to this embodiment will be described. Here, the monitor support device 20 will be described separately for the operation of acquiring monitor data and the operation of displaying.

まず、モニタ支援装置20がモニタデータを取得する動作について説明する。図9は、図1に示すデータ取得部5の動作を示すフローチャートである。   First, the operation of the monitor support device 20 for acquiring monitor data will be described. FIG. 9 is a flowchart showing the operation of the data acquisition unit 5 shown in FIG.

データ取得部5の範囲指定部51は、例えば図3に示すような入力画面を表示して、当該入力画面に対する入力操作を検知することで、モニタ対象として指定された範囲を示す情報を取得する(ステップS101)。   The range designation unit 51 of the data acquisition unit 5 displays an input screen as shown in FIG. 3, for example, and detects the input operation on the input screen to acquire information indicating the range designated as the monitoring target. (Step S101).

データ取得部5のモニタ対象情報特定部52は、範囲指定部51が取得したモニタ対象の範囲を示す情報に基づいて、モニタ対象の範囲内の制御プログラムから、モニタ対象の命令が実行された結果が記憶される記憶領域およびモニタ対象の命令実行するか否かを判断するために参照した記憶領域を抽出して、取得する対象のモニタデータを指定するモニタ対象情報を生成する(ステップS102)。モニタ対象情報は、例えば、図5に示す表の時刻および値の欄が空白の状態に対応する情報である。   The monitor target information specifying unit 52 of the data acquiring unit 5 executes the monitor target instruction from the control program within the monitor target range based on the information indicating the monitor target range acquired by the range specifying unit 51. Is stored and the storage area referred to in order to determine whether or not the instruction to be monitored is executed, and monitor target information designating the monitor data to be acquired is generated (step S102). The monitoring target information is, for example, information corresponding to a state where the time and value columns in the table shown in FIG. 5 are blank.

モニタ対象情報特定部52は、生成したモニタ対象情報をPLC10に送信する(ステップS103)。続いてデータ取得部5は、モニタ対象情報の送信先のPLC10からモニタデータを受信したか否かを判断する(ステップS104)。モニタデータを受信していない場合(ステップS104:No)、データ取得部5は、モニタデータを受信するまでステップS104の処理を繰り返す。   The monitor target information identification unit 52 transmits the generated monitor target information to the PLC 10 (step S103). Subsequently, the data acquisition unit 5 determines whether the monitor data is received from the PLC 10 that is the transmission destination of the monitoring target information (step S104). When the monitor data is not received (step S104: No), the data acquisition unit 5 repeats the process of step S104 until the monitor data is received.

モニタデータを受信した場合(ステップS104:Yes)、データ取得部5は、受信したモニタデータを表示データとして表示データ記憶部6に記憶させる(ステップS105)。   When the monitor data is received (step S104: Yes), the data acquisition unit 5 stores the received monitor data in the display data storage unit 6 as display data (step S105).

図10は、図1に示す表示制御部7の動作を示すフローチャートである。表示制御部7のプログラム表示部71は、制御プログラムを画面上に表示する。そして、モニタデータ更新部72は、予め定められた表示データ更新時間が経過したか否かを判断する(ステップS201)。表示データ更新時間が経過していない場合(ステップS201:No)、モニタデータ更新部72は、表示データ更新時間が経過するまでステップS201の処理を繰り返す。   FIG. 10 is a flowchart showing the operation of the display control unit 7 shown in FIG. The program display unit 71 of the display control unit 7 displays the control program on the screen. Then, the monitor data update unit 72 determines whether or not a predetermined display data update time has elapsed (step S201). When the display data update time has not elapsed (step S201: No), the monitor data update unit 72 repeats the process of step S201 until the display data update time elapses.

表示データ更新時間が経過した場合(ステップS201:Yes)、モニタデータ更新部72は、制御プログラムに含まれる命令毎にモニタデータの最新値を画面上に表示する(ステップS202)。   When the display data update time has elapsed (step S201: Yes), the monitor data update unit 72 displays the latest value of the monitor data on the screen for each command included in the control program (step S202).

また強調表示部74は、強調表示を指示する強調表示操作を検知したか否かを判断する(ステップS203)。強調表示操作が検知された場合(ステップS203:Yes)、強調表示部74は、記憶領域が使用された順番に基づいて、強調表示する位置を移動させる(ステップS204)。強調表示操作が検知されない場合(ステップS203:No)、ステップS204の処理は省略される。   Further, the highlighting unit 74 determines whether or not a highlighting operation for instructing highlighting is detected (step S203). When the highlighting operation is detected (step S203: Yes), the highlighting unit 74 moves the highlighting position based on the order in which the storage areas are used (step S204). When the highlighting operation is not detected (step S203: No), the process of step S204 is omitted.

履歴表示部73は、履歴表示を指示する履歴表示操作を検知したか否かを判断する(ステップS205)。履歴表示操作が検知された場合(ステップS205:Yes)、履歴表示部73は、表示データ記憶部6に記憶されたデータから履歴情報を生成して、画面上に表示する(ステップS206)。履歴表示操作が検知されない場合(ステップS205:No)、ステップS206の処理は省略される。   The history display unit 73 determines whether or not a history display operation for instructing history display is detected (step S205). When the history display operation is detected (step S205: Yes), the history display unit 73 generates history information from the data stored in the display data storage unit 6 and displays it on the screen (step S206). When the history display operation is not detected (step S205: No), the process of step S206 is omitted.

なお、図10に示した動作は一例であり、本実施の形態はかかる例に限定されない。図10に示す例では、モニタデータ更新部72は、一定の周期で表示するモニタデータを更新することとしたが、表示データ記憶部6の値が更新されるタイミングが分かれば、更新毎に表示するモニタデータを更新してもよい。また、表示制御部7が動作する順番は、図10に示す例に限らない。ステップS201およびステップS202の処理と、ステップS203およびステップS204の処理と、ステップS205およびステップS206の処理とは同時に行われてもよいし、実行する順番を入れ替えることも可能である。   The operation shown in FIG. 10 is an example, and the present embodiment is not limited to this example. In the example shown in FIG. 10, the monitor data updating unit 72 updates the monitor data to be displayed at a constant cycle, but if the timing at which the value in the display data storage unit 6 is updated is known, the monitor data is displayed at each update. The monitor data to be updated may be updated. The order in which the display control unit 7 operates is not limited to the example shown in FIG. The processes of steps S201 and S202, the processes of steps S203 and S204, and the processes of steps S205 and S206 may be performed at the same time, or the order of execution may be interchanged.

図11は、図1に示すモニタデータ管理部3の動作を示すフローチャートである。モニタデータ管理部3は、モニタ対象情報を受信する(ステップS301)。モニタデータ管理部3は、受信したモニタ対象情報に基づいて、モニタデータ記憶部4にモニタデータを記憶するための記憶領域を確保する(ステップS302)。   FIG. 11 is a flowchart showing the operation of the monitor data management unit 3 shown in FIG. The monitor data management unit 3 receives the monitor target information (step S301). The monitor data management unit 3 secures a storage area for storing the monitor data in the monitor data storage unit 4 based on the received monitoring target information (step S302).

モニタデータ管理部3は、プログラム実行部1から通知される、実行した命令を特定するための情報の有無に基づいて、実行された命令を特定するための情報命令が実行されたか否かを判断する(ステップS303)。   The monitor data management unit 3 determines whether or not the information command for specifying the executed command has been executed based on the presence or absence of the information for specifying the executed command, which is notified from the program execution unit 1. Yes (step S303).

命令が実行されていない場合(ステップS303:No)、モニタデータ管理部3は、ステップS303の処理を繰り返す。命令が実行された場合(ステップS303:Yes)、モニタデータ管理部3は、モニタ対象情報に基づいて、記憶領域に記憶されている値を記憶部2に記録してモニタデータを生成する(ステップS304)。   When the instruction is not executed (step S303: No), the monitor data management unit 3 repeats the process of step S303. When the command is executed (step S303: Yes), the monitor data management unit 3 records the value stored in the storage area in the storage unit 2 and generates the monitor data based on the monitoring target information (step S303). S304).

モニタデータを生成すると、モニタデータ管理部3は、生成したモニタデータを、モニタ支援装置20に送信する(ステップS305)。モニタデータ管理部3は、制御プログラムの実行が終了したか否かを判断する(ステップS306)。制御プログラムの実行が終了した場合(ステップS306:Yes)、モニタデータ管理部3は処理を終了する。制御プログラムの実行が終了していない場合(ステップS306:No)、モニタデータ管理部3は、ステップS303の処理に戻り、制御プログラムの実行が終了するまでステップS303〜ステップS306の処理を繰り返す。   When the monitor data is generated, the monitor data management unit 3 transmits the generated monitor data to the monitor support device 20 (step S305). The monitor data management unit 3 determines whether or not the execution of the control program is completed (step S306). When the execution of the control program ends (step S306: Yes), the monitor data management unit 3 ends the process. When the execution of the control program is not completed (step S306: No), the monitor data management unit 3 returns to the process of step S303 and repeats the processes of steps S303 to S306 until the execution of the control program is completed.

ここで、図1に示すPLC10およびモニタ支援装置20の機能を実現するためのハードウェア構成について説明する。PLC10およびモニタ支援装置20の機能は、ソフトウェアを用いて実現されてもよいし、専用のハードウェアを用いることもできる。   Here, a hardware configuration for realizing the functions of the PLC 10 and the monitor support device 20 illustrated in FIG. 1 will be described. The functions of the PLC 10 and the monitor support device 20 may be realized using software, or dedicated hardware may be used.

図12は、図1に示すPLC10およびモニタ支援装置20の機能をソフトウェアを用いて実現するための構成を示す図である。PLC10およびモニタ支援装置20の各機能は、プロセッサ91がメモリ92に記憶されたコンピュータプログラムを読み出して実行することにより、実現することができる。   FIG. 12 is a diagram showing a configuration for realizing the functions of the PLC 10 and the monitor support device 20 shown in FIG. 1 by using software. Each function of the PLC 10 and the monitor support device 20 can be realized by the processor 91 reading and executing the computer program stored in the memory 92.

プロセッサ91は、CPU(Central Processing Unit)であり、中央処理装置、処理装置、演算装置、マイクロプロセッサ、マイクロコンピュータ、DSP(Digital Signal Processor)などとも呼ばれる。   The processor 91 is a CPU (Central Processing Unit) and is also called a central processing unit, a processing unit, an arithmetic unit, a microprocessor, a microcomputer, a DSP (Digital Signal Processor), or the like.

メモリ92は、例えば、RAM(Random Access Memory)、ROM(Read Only Memory)、フラッシュメモリー、EPROM(Erasable Programmable ROM)、EEPROM(登録商標)(Electrically EPROM)などの不揮発性または揮発性の半導体メモリ、磁気ディスク、フレキシブルディスク、光ディスク、コンパクトディスク、ミニディスク、DVD(Digital Versatile Disk)などである。メモリ92は、プロセッサ91が実行する各処理における一時メモリとしても用いられる。   The memory 92 is, for example, a nonvolatile or volatile semiconductor memory such as a RAM (Random Access Memory), a ROM (Read Only Memory), a flash memory, an EPROM (Erasable Programmable ROM), and an EEPROM (registered trademark) (Electrically EPROM), Examples include magnetic disks, flexible disks, optical disks, compact disks, mini disks, DVDs (Digital Versatile Disks), and the like. The memory 92 is also used as a temporary memory in each process executed by the processor 91.

図13は、図1に示すPLC10およびモニタ支援装置20の機能を実現するための専用のハードウェアの構成を示す図である。PLC10およびモニタ支援装置20の機能は、専用のハードウェアである処理回路93を用いて実現することもできる。処理回路93は、例えば、単一回路、複合回路、プログラム化したプロセッサ、並列プログラム化したプロセッサ、ASIC(Application Specific Integrated Circuit)、FPGA(Field-Programmable Gate Array)またはこれらを組み合わせたものである。   FIG. 13 is a diagram showing a configuration of dedicated hardware for realizing the functions of the PLC 10 and the monitor support device 20 shown in FIG. The functions of the PLC 10 and the monitor support device 20 can also be realized by using the processing circuit 93 that is dedicated hardware. The processing circuit 93 is, for example, a single circuit, a composite circuit, a programmed processor, a parallel programmed processor, an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or a combination thereof.

上記のPLC10およびモニタ支援装置20のそれぞれの機能を実現するためのコンピュータプログラムは、通信媒体を介して提供することも可能であるし、コンピュータプログラムを記録した記録媒体の形式で提供されてもよい。   The computer program for realizing the respective functions of the PLC 10 and the monitor support device 20 may be provided via a communication medium, or may be provided in the form of a recording medium recording the computer program. ..

以上説明したように、本実施の形態にかかるモニタ支援装置20は、PLC10が制御プログラムに含まれる命令を実行する毎に、実行した命令が実行された結果が記憶される記憶領域に記憶されている値を記録してモニタデータを生成する。モニタデータは、実行した命令と対応づけて記憶され、表示制御部7は、対応する命令と共にモニタデータを表示する。このため、命令が実行されたときに記憶領域に記憶されている値を確実に表示することが可能になり、ユーザが制御プログラムの動作を確認することが容易になる。   As described above, in the monitor support device 20 according to the present embodiment, every time the PLC 10 executes an instruction included in the control program, the execution result of the executed instruction is stored in the storage area. Record the value that exists and generate the monitor data. The monitor data is stored in association with the executed instruction, and the display control unit 7 displays the monitor data together with the corresponding instruction. Therefore, the value stored in the storage area can be surely displayed when the instruction is executed, and the user can easily confirm the operation of the control program.

特に、制御プログラム内で同一の記憶領域に記憶された値が複数回使用されている場合や、制御プログラムが繰り返し実行される場合には、一定時間間隔で記憶領域の値を取得すると、各命令との対応関係が分かり難い場合がある。このような場合であっても、上記の技術を用いることで、制御プログラムのデバッグ作業などで記憶領域に記憶された値を確認する際に、命令毎に制御プログラムの処理を一時停止する必要がなくなり、命令が実行された時に記憶領域に記憶されている値を容易に確認することができ、作業効率が向上する。   In particular, when the value stored in the same storage area is used multiple times in the control program or when the control program is repeatedly executed, each instruction is It may be difficult to understand the correspondence with. Even in such a case, by using the above technique, it is necessary to temporarily stop the processing of the control program for each instruction when checking the value stored in the storage area in the debugging work of the control program. When the instruction is executed, the value stored in the storage area can be easily confirmed and the working efficiency is improved.

また、モニタ支援装置20は、モニタデータを取得する範囲を指定する範囲指定部51を有する。このため、PLC10およびモニタ支援装置20が取り扱うデータ量を低減することができ、処理負荷の低減、必要な記憶容量の低減につながる。また、表示するモニタデータを必要な範囲に絞り込むことができるため、画面上に表示されるモニタデータが見やすくなり、制御プログラムが取り扱うデータ数が多い場合であっても、ユーザが制御プログラムの動作を確認することが容易になる。   Further, the monitor support device 20 has a range designation unit 51 that designates a range in which monitor data is acquired. Therefore, the amount of data handled by the PLC 10 and the monitor support device 20 can be reduced, leading to a reduction in processing load and a required storage capacity. Also, since the monitor data to be displayed can be narrowed down to the required range, the monitor data displayed on the screen is easy to see, and the user can control the operation of the control program even if the control program handles a large amount of data. It will be easier to confirm.

以上の実施の形態に示した構成は、本発明の内容の一例を示すものであり、別の公知の技術と組み合わせることも可能であるし、本発明の要旨を逸脱しない範囲で、構成の一部を省略、変更することも可能である。   The configurations described in the above embodiments show an example of the content of the present invention, and can be combined with another known technique, and the configurations of the configurations are possible without departing from the gist of the present invention. It is also possible to omit or change parts.

例えば、上記の実施の形態では、制御プログラムに含まれる複数の命令のそれぞれと、各命令が使用した記憶領域に記憶された値を示すモニタデータとは、制御プログラム中で命令が記述された行数を用いて直接対応づけられている。しかしながら、命令とモニタデータとを対応づけるための情報は、かかる例に限定されない。例えば、データ取得部5が命令が実行される毎にモニタデータを時刻と対応づけて取得し、プログラム実行部1が各命令を実行した時刻を記録していれば、間接的に、命令とモニタデータとを対応づけることができる。   For example, in the above-described embodiment, each of the plurality of instructions included in the control program and the monitor data indicating the value stored in the storage area used by each instruction are the line in which the instruction is described in the control program. It is directly associated with numbers. However, the information for associating the command with the monitor data is not limited to this example. For example, if the data acquisition unit 5 acquires the monitor data in association with the time each time the command is executed and the program execution unit 1 records the time when each command is executed, the command and the monitor are indirectly Can be associated with data.

1 プログラム実行部、2 記憶部、3 モニタデータ管理部、4 モニタデータ記憶部、5 データ取得部、6 表示データ記憶部、7 表示制御部、10 PLC、20 モニタ支援装置、51 範囲指定部、52 モニタ対象情報特定部、71 プログラム表示部、72 モニタデータ更新部、73 履歴表示部、74 強調表示部、91 プロセッサ、92 メモリ、93 処理回路、100 モニタ支援システム、511 モニタ範囲指定画面。   1 program execution unit, 2 storage unit, 3 monitor data management unit, 4 monitor data storage unit, 5 data acquisition unit, 6 display data storage unit, 7 display control unit, 10 PLC, 20 monitor support device, 51 range designation unit, 52 monitor target information specifying unit, 71 program display unit, 72 monitor data updating unit, 73 history display unit, 74 highlighting unit, 91 processor, 92 memory, 93 processing circuit, 100 monitor support system, 511 monitor range designation screen.

上述した課題を解決し、目的を達成するために、本発明にかかるモニタ支援装置は、プログラマブルロジックコントローラに実行させる制御プログラムに含まれる複数の命令のそれぞれが実行される毎に、命令が実行された結果が記憶される記憶領域に記憶されている値をモニタデータとして、命令と対応づけて取得し、モニタデータが取得された時刻をモニタデータと対応付けて取得するデータ取得部と、命令と、命令と対応づけて取得されたモニタデータと、当該モニタデータが取得された時刻とを対応づけて記憶する表示データ記憶部と、制御プログラムに含まれる複数の命令と、データ取得部によって取得されたモニタデータとを画面上に表示する表示制御部と、を備え、表示制御部は、画面上に表示された複数のモニタデータを、当該モニタデータが取得された時刻に従って、順番に強調表示することを特徴とする。 In order to solve the above-mentioned problems and achieve the object, the monitor support device according to the present invention executes an instruction each time a plurality of instructions included in a control program to be executed by a programmable logic controller are executed. A data acquisition unit that acquires the value stored in the storage area in which the result is stored as monitor data in association with the command and acquires the time when the monitor data was acquired in association with the monitor data, and the command. , A display data storage unit that stores the monitor data acquired in association with the command and the time when the monitor data was acquired , a plurality of commands included in the control program, and the display data storage unit acquired by the data acquisition unit. comprising a display control unit and a monitor data displayed on the screen, the display control unit, a plurality of monitor data that is displayed on the screen, By time of the monitoring data is obtained, characterized that you highlighted in turn.

Claims (15)

プログラマブルロジックコントローラに実行させる制御プログラムに含まれる複数の命令のそれぞれが実行される毎に、前記命令が実行された結果が記憶される記憶領域に記憶されている値をモニタデータとして、前記命令と対応づけて取得するデータ取得部と、
前記制御プログラムに含まれる複数の命令と、前記データ取得部によって取得された前記モニタデータとを画面上に表示する表示制御部と、
を備えることを特徴とするモニタ支援装置。
Each time a plurality of instructions included in the control program to be executed by the programmable logic controller are executed, a value stored in a storage area in which a result of execution of the instruction is stored is used as monitor data, A data acquisition part that is associated and acquired,
A plurality of commands included in the control program, and a display control unit that displays the monitor data acquired by the data acquisition unit on a screen,
A monitor support device comprising:
前記データ取得部は、前記制御プログラム内の前記モニタデータを取得する範囲を指定する範囲指定部を有し、指定された範囲に含まれる前記命令が実行された結果が記憶される記憶領域に記憶されている値を前記モニタデータとして取得することを特徴とする請求項1に記載のモニタ支援装置。   The data acquisition unit has a range specification unit that specifies a range in which the monitor data in the control program is acquired, and is stored in a storage area in which a result of execution of the command included in the specified range is stored. The monitor support device according to claim 1, wherein the monitored value is acquired as the monitor data. 前記データ取得部は、前記モニタデータを当該モニタデータが取得された時刻と対応づけて取得し、
前記命令と、前記命令と対応づけて取得されたモニタデータと、当該モニタデータが取得された時刻とを対応づけて記憶する表示データ記憶部、
をさらに備えることを特徴とする請求項1または2に記載のモニタ支援装置。
The data acquisition unit acquires the monitor data in association with the time when the monitor data was acquired,
A display data storage unit that stores the command, the monitor data acquired in association with the command, and the time when the monitor data is acquired in association with each other;
The monitor support apparatus according to claim 1 or 2, further comprising:
前記表示制御部は、前記表示データ記憶部に記憶されたモニタデータを用いて、前記画面上に表示されたモニタデータの履歴を前記命令毎に前記画面上に表示する履歴表示部を有することを特徴とする請求項3に記載のモニタ支援装置。   The display control unit has a history display unit that displays the history of the monitor data displayed on the screen for each command using the monitor data stored in the display data storage unit on the screen. The monitor support device according to claim 3, wherein the monitor support device is a monitor support device. 前記表示制御部は、前記制御プログラムを前記画面上に表示し、表示した前記制御プログラムに重畳して、前記モニタデータの履歴を前記画面上に表示することを特徴とする請求項4に記載のモニタ支援装置。   The display control unit displays the control program on the screen, superimposes the control program on the screen, and displays a history of the monitor data on the screen. Monitor support device. 前記履歴表示部は、前記画面上に表示された複数のモニタデータのうち、選択されたモニタデータの履歴を、前記選択されたモニタデータに重畳して表示することを特徴とする請求項5に記載のモニタ支援装置。   The history display unit displays the history of selected monitor data among the plurality of monitor data displayed on the screen by superimposing the history of the selected monitor data on the selected monitor data. The monitor support device described. 前記表示制御部は、前記画面上に表示された複数のモニタデータを、当該モニタデータが取得された時刻に従って、順番に強調表示する強調表示部をさらに有することを特徴とする請求項3に記載のモニタ支援装置。   The display control unit further includes a highlighting unit that highlights the plurality of monitor data displayed on the screen in order according to the time when the monitor data is acquired. Monitor support device. 前記表示制御部は、前記制御プログラムを前記画面上に表示し、表示した前記制御プログラムに重畳して前記モニタデータを前記画面上に表示し、
前記強調表示部は、前記画面上に表示された複数の前記モニタデータのうち強調表示するモニタデータを順次変化させることを特徴とする請求項7に記載のモニタ支援装置。
The display control unit displays the control program on the screen, displays the monitor data on the screen by superimposing it on the displayed control program,
The monitor support device according to claim 7, wherein the highlighting unit sequentially changes the monitor data to be highlighted among the plurality of monitor data displayed on the screen.
前記表示制御部は、前記表示データ記憶部に記憶されたモニタデータの中から、命令毎の最新値を前記画面上に表示することを特徴とする請求項3に記載のモニタ支援装置。   The monitor support device according to claim 3, wherein the display control unit displays the latest value for each instruction on the screen from the monitor data stored in the display data storage unit. 前記表示制御部は、表示した前記制御プログラムに重畳して前記最新値を表示することを特徴とする請求項9に記載のモニタ支援装置。   The monitor support device according to claim 9, wherein the display control unit displays the latest value by superimposing it on the displayed control program. 前記データ取得部は、前記命令を実行するか否かを判断するために参照した記憶領域の値を前記命令と対応づけて前記モニタデータとして取得することを特徴とする請求項1から10のいずれか1項に記載のモニタ支援装置。   11. The data acquisition unit acquires, as the monitor data, the value of a storage area referred to in order to determine whether to execute the command, in association with the command, as the monitor data. 2. The monitor support device according to item 1. 制御プログラムを実行するプログラム実行部と、
記憶するデータの種類が割り当てられた複数の記憶領域を有する記憶部と、
前記プログラム実行部が前記制御プログラムに含まれる命令を実行する毎に、前記命令が実行された結果が記憶される前記記憶領域に記憶されている値をモニタデータとして取得し、前記モニタデータを表示するモニタ支援装置に前記モニタデータと前記命令とを対応づけて送信するモニタデータ管理部と、
を備えることを特徴とするプログラマブルロジックコントローラ。
A program execution unit that executes a control program,
A storage unit having a plurality of storage areas to which the types of data to be stored are assigned;
Each time the program execution unit executes an instruction included in the control program, the value stored in the storage area in which the result of execution of the instruction is stored is acquired as monitor data, and the monitor data is displayed. A monitor data management unit for transmitting the monitor data and the command in association with each other to the monitor support device,
A programmable logic controller comprising:
前記モニタデータ管理部は、取得する対象のモニタデータを指定するモニタ対象情報を前記モニタ支援装置から受信し、受信した前記モニタ対象情報に基づいて、前記モニタデータを取得することを特徴とする請求項12に記載のプログラマブルロジックコントローラ。   The monitor data management unit receives monitor target information designating monitor data to be acquired from the monitor support device, and acquires the monitor data based on the received monitor target information. Item 13. A programmable logic controller according to item 12. 記憶するデータの種類が割り当てられた複数の記憶領域を有するプログラマブルロジックコントローラと、当該プログラマブルロジックコントローラの前記記憶領域に記憶されている値をモニタするモニタ支援装置とを備えるモニタ支援システムにおいて、
前記プログラマブルロジックコントローラが実行する制御プログラムに含まれる複数の命令のそれぞれを、前記プログラマブルロジックコントローラが実行する毎に、前記命令が実行された結果が記憶される記憶領域に記憶されている値をモニタデータとして、前記命令と対応づけて取得するステップと、
前記プログラマブルロジックコントローラが、実行された命令を特定するための情報と、当該命令に対応づけられた前記モニタデータとを前記モニタ支援装置に送信するステップと、
前記モニタ支援装置が、前記実行された命令を特定するための情報と、当該命令に対応づけられた前記モニタデータとを受信するステップと、
前記モニタ支援装置が、前記制御プログラムに含まれる複数の命令のそれぞれと、前記複数の命令のそれぞれに対応づけられた前記モニタデータとを画面上に表示するステップと、
を含むことを特徴とするモニタ支援方法。
In a monitor support system including a programmable logic controller having a plurality of storage areas to which the type of data to be stored is allocated, and a monitor support device that monitors a value stored in the storage area of the programmable logic controller,
Each time the programmable logic controller executes each of a plurality of instructions included in the control program executed by the programmable logic controller, the value stored in the storage area in which the result of execution of the instruction is stored is monitored. A step of acquiring the data in association with the command,
The programmable logic controller, information for identifying the executed instruction, and a step of transmitting the monitor data associated with the instruction to the monitor support device,
The monitor support device receives information for identifying the executed command and the monitor data associated with the command,
A step in which the monitor support device displays on the screen each of a plurality of commands included in the control program and the monitor data associated with each of the plurality of commands;
A monitor support method comprising:
プログラマブルロジックコントローラに実行させる制御プログラムに含まれる複数の命令のそれぞれが実行される毎に、前記命令が実行された結果が記憶される記憶領域に記憶されている値をモニタデータとして、前記命令と対応づけて取得するステップと、
前記制御プログラムに含まれる複数の命令と、前記複数の命令のそれぞれに対応づけらえた前記モニタデータとを画面上に表示するステップと、
をコンピュータに実行させることを特徴とするモニタ支援プログラム。
Each time a plurality of instructions included in the control program to be executed by the programmable logic controller are executed, a value stored in a storage area in which a result of execution of the instruction is stored is used as monitor data, The step of associating and acquiring,
A step of displaying a plurality of commands included in the control program and the monitor data associated with each of the plurality of commands on a screen;
A monitor support program that causes a computer to execute.
JP2018554798A 2018-04-25 2018-04-25 MONITOR SUPPORT DEVICE, MONITOR SUPPORT METHOD, AND MONITOR SUPPORT PROGRAM Active JP6469330B1 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2018/016792 WO2019207679A1 (en) 2018-04-25 2018-04-25 Monitoring assistance device, programmable logic controller, monitoring assistance method, and monitoring assistance program

Publications (2)

Publication Number Publication Date
JP6469330B1 JP6469330B1 (en) 2019-02-13
JPWO2019207679A1 true JPWO2019207679A1 (en) 2020-05-07

Family

ID=65356134

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018554798A Active JP6469330B1 (en) 2018-04-25 2018-04-25 MONITOR SUPPORT DEVICE, MONITOR SUPPORT METHOD, AND MONITOR SUPPORT PROGRAM

Country Status (4)

Country Link
JP (1) JP6469330B1 (en)
KR (1) KR102096595B1 (en)
CN (1) CN110637263B (en)
WO (1) WO2019207679A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113759861B (en) * 2021-11-10 2022-02-01 西安热工研究院有限公司 Background online command receiving and issuing method and system for distributed control system

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08123515A (en) * 1994-10-25 1996-05-17 Fanuc Ltd Display system for sequence program
JPH10260864A (en) * 1997-03-18 1998-09-29 Nec Eng Ltd Tracing device
JP4124976B2 (en) * 2001-03-21 2008-07-23 株式会社日立産機システム PLC monitor device and its reference data / operation program
JP3927042B2 (en) * 2002-02-05 2007-06-06 株式会社東芝 Control system
JP2006209381A (en) * 2005-01-27 2006-08-10 Digital Electronics Corp Control display device, its program, and recording medium
KR20070042435A (en) * 2006-01-05 2007-04-23 한국서부발전 주식회사 Alarm monitoring method of digital control annunciator
JP5434941B2 (en) * 2011-03-22 2014-03-05 横河電機株式会社 Operation monitoring device and operation monitoring method
CN104813246B (en) * 2012-11-22 2017-06-30 三菱电机株式会社 Program Generating servicing unit and method
JP5649748B1 (en) 2013-04-12 2015-01-07 三菱電機株式会社 Programmable controller peripheral device and debugging support program
WO2015181921A1 (en) * 2014-05-28 2015-12-03 三菱電機株式会社 Programmable display device and rendering software

Also Published As

Publication number Publication date
CN110637263B (en) 2022-08-19
KR102096595B1 (en) 2020-04-02
KR20190125303A (en) 2019-11-06
WO2019207679A1 (en) 2019-10-31
JP6469330B1 (en) 2019-02-13
CN110637263A (en) 2019-12-31

Similar Documents

Publication Publication Date Title
TWI467472B (en) Control system having programmable display, programable display and drawing program product of drawing data generating means thereof
JP5039428B2 (en) Programmable controller and PLC system
JP5583305B2 (en) Programmable logic controller, programming tool, and program parameter editing system
JPWO2002042853A1 (en) Programming device and programming method
JP5619328B1 (en) Sequence program creation support device
JP6514252B2 (en) Robot data setting system, data setting method and program
JP6866663B2 (en) Programmable controller system, programmable controller, support device, HCI device, redundant programmable controller system
JP6388736B1 (en) Programmable logic controller system and engineering tool program
JP6469330B1 (en) MONITOR SUPPORT DEVICE, MONITOR SUPPORT METHOD, AND MONITOR SUPPORT PROGRAM
JP6625303B1 (en) Drive control device
JP5469510B2 (en) Programmable controller, set value change system, calculation display device, and set value change unit
JP6414590B2 (en) Control device, control system, support device, and control device maintenance management method
JP2006330866A (en) Programmable logic controller
WO2016071974A1 (en) Remote control device and control system
JP5365875B2 (en) Industrial controller
JP5205988B2 (en) PLC global variable definition method
WO2021044654A1 (en) Information processing system, programmable display device, and information processing device
JP6051545B2 (en) PLC system, status display method, PLC, and programmable display
JP6071782B2 (en) PLANT CONTROL DEVICE, PLANT CONTROL METHOD, AND PLANT CONTROL PROGRAM
JP4479558B2 (en) Programmable controller and programming tool thereof
JP5017047B2 (en) External access data discrimination system for internal memory of programmable controller and programmable controller
JP5287495B2 (en) Programmable controller unit and programmable controller
JPWO2020157790A1 (en) Device state reproduction device, device state reproduction method and device state reproduction program
JP2019197449A (en) Apparatus management system and tag name verification method
JP6247542B2 (en) Monitoring point definition changing method and engineering device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181018

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181018

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20181018

TRDD Decision of grant or rejection written
A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20181212

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20181218

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190115

R150 Certificate of patent or registration of utility model

Ref document number: 6469330

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

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250