JP2021068313A - Program and information processing device - Google Patents

Program and information processing device Download PDF

Info

Publication number
JP2021068313A
JP2021068313A JP2019194662A JP2019194662A JP2021068313A JP 2021068313 A JP2021068313 A JP 2021068313A JP 2019194662 A JP2019194662 A JP 2019194662A JP 2019194662 A JP2019194662 A JP 2019194662A JP 2021068313 A JP2021068313 A JP 2021068313A
Authority
JP
Japan
Prior art keywords
control device
unit
memory data
internal memory
information processing
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
JP2019194662A
Other languages
Japanese (ja)
Other versions
JP7415436B2 (en
Inventor
信弘 堀内
Nobuhiro Horiuchi
信弘 堀内
雅夫 堀田
Masao Hotta
雅夫 堀田
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa 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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP2019194662A priority Critical patent/JP7415436B2/en
Publication of JP2021068313A publication Critical patent/JP2021068313A/en
Application granted granted Critical
Publication of JP7415436B2 publication Critical patent/JP7415436B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Abstract

To provide a program capable of highly accurately reproducing a state of a control device.SOLUTION: A program causes an information processing device 10 communicably connected to a control device 20 controlling a control target to perform the following steps of: setting a data acquisition range when acquiring internal memory data stored in the control device 20 and reflected with a state of the control device 20; generating command information for acquiring at least a part of the internal memory data from the control device 20 on the basis of the set data acquisition range; and updating memory data used to simulate the state of the control device 20 on the basis of at least a part of the internal memory data acquired from the control device 20 according to the command information.SELECTED DRAWING: Figure 2

Description

本開示は、プログラム及び情報処理装置に関する。 The present disclosure relates to programs and information processing devices.

従来、PLC(Programmable Logic Controller)等を含む制御装置と、当該制御装置と通信可能に接続される情報処理装置と、を含み、当該情報処理装置によって所定のシミュレーションが実行されるシミュレーションシステムが知られている。 Conventionally, a simulation system including a control device including a PLC (Programmable Logic Controller) and an information processing device communicably connected to the control device, and a predetermined simulation is executed by the information processing device is known. ing.

例えば、特許文献1に開示されているシミュレーションシステムでは、制御装置は、制御対象に係るシーケンス制御及びモーション制御を実行し、これらの制御に係る一定周期ごとのデータを出力する。情報処理装置は、制御対象の少なくとも一部の構成を示す設計データを保持し、制御装置から出力された一定周期ごとのデータのうち予め定められた条件が満たされたタイミングを含む所定期間にわたるデータと設計データとを用いて、当該タイミングの前後の期間における制御対象の挙動を視覚化する。 For example, in the simulation system disclosed in Patent Document 1, the control device executes sequence control and motion control related to the controlled object, and outputs data at regular intervals related to these controls. The information processing device holds design data indicating the configuration of at least a part of the controlled object, and data over a predetermined period including a timing when a predetermined condition is satisfied among the data output from the control device at regular intervals. And the design data are used to visualize the behavior of the controlled object in the period before and after the timing.

特開2015−225419JP 2015-225419

PLCを含むシミュレーションシステムにおいて、例えば、PLC自体に故障等のエラー状態が発生したときに、情報処理装置を用いたシミュレーションによってPLCの状態、すなわちエラー状態を再現して擬似的にデバッグを行う、といったエラー解析に役立つ機能への要求が高まっている。特許文献1には、このようなPLC自体の状態について十分に考慮されておらず、したがって上記の機能についても十分に考慮されていなかった。 In a simulation system including a PLC, for example, when an error state such as a failure occurs in the PLC itself, the state of the PLC, that is, the error state is reproduced by simulation using an information processing device to perform pseudo debugging. There is an increasing demand for features that are useful for error analysis. Patent Document 1 does not fully consider the state of such a PLC itself, and therefore does not fully consider the above-mentioned function.

本開示は、制御装置の状態を精度良く再現できるプログラム及び情報処理装置を提供することを目的とする。 An object of the present disclosure is to provide a program and an information processing device capable of accurately reproducing the state of a control device.

幾つかの実施形態に係るプログラムは、制御対象を制御する制御装置と通信可能に接続される情報処理装置に、制御装置に格納され、制御装置の状態を反映した内部メモリデータを取得するときのデータ取得範囲を設定するステップと、設定された前記データ取得範囲に基づいて前記内部メモリデータの少なくとも一部を前記制御装置から取得するためのコマンド情報を生成するステップと、前記コマンド情報によって前記制御装置から取得された前記内部メモリデータの少なくとも一部に基づいて、前記制御装置の状態のシミュレーションに用いられるメモリデータを更新するステップと、を実行させる。これにより、実施形態に係るプログラムは、制御装置の状態を精度良く再現できる。ユーザは、制御装置の内部メモリデータを再現した状態からシミュレーションの機能を再実行することで、制御装置の実際の状態により近付けて精度良くシミュレーションを行うことができる。 The programs according to some embodiments are stored in the control device in the information processing device communicably connected to the control device that controls the control target, and when the internal memory data reflecting the state of the control device is acquired. A step of setting a data acquisition range, a step of generating command information for acquiring at least a part of the internal memory data from the control device based on the set data acquisition range, and the control by the command information. A step of updating the memory data used for simulating the state of the control device based on at least a part of the internal memory data acquired from the device is executed. As a result, the program according to the embodiment can accurately reproduce the state of the control device. By re-executing the simulation function from the state in which the internal memory data of the control device is reproduced, the user can perform the simulation more accurately than the actual state of the control device.

一実施形態におけるプログラムは、前記制御装置の状態のシミュレーションに実際に用いられる前記メモリデータのデータ使用範囲を管理するための管理情報を生成するステップと、生成された前記管理情報を参照して前記メモリデータの前記データ使用範囲を取得するステップと、を実行させ、前記データ取得範囲を設定するステップにおいて、取得された前記データ使用範囲に基づいて前記データ取得範囲が設定されてもよい。これにより、ユーザは、情報処理装置のプログラムを利用して内部メモリデータのデータ取得範囲を自動で設定することができる。したがって、内部メモリデータのデータ取得範囲の設定処理が簡易化され、情報処理装置を用いるユーザにとって、情報処理装置の利便性が向上する。 The program in one embodiment refers to the step of generating management information for managing the data usage range of the memory data actually used for simulating the state of the control device and the generated management information. In the step of acquiring the data usage range of the memory data and the step of executing and setting the data acquisition range, the data acquisition range may be set based on the acquired data usage range. As a result, the user can automatically set the data acquisition range of the internal memory data by using the program of the information processing device. Therefore, the process of setting the data acquisition range of the internal memory data is simplified, and the convenience of the information processing device is improved for the user who uses the information processing device.

一実施形態におけるプログラムは、生成された前記コマンド情報を、前記情報処理装置及び前記制御装置によって読み込み可能な可搬記憶媒体に格納するステップを実行させてもよい。これにより、ユーザは、制御装置の内部メモリデータを取得するときに、可搬記憶媒体を制御装置に装着する動作だけ行えばよい。したがって、現地ユーザでも、制御装置の内部メモリデータの取得作業に容易に対応することができ、情報処理システムを用いるユーザにとって、情報処理システムの利便性が向上する。 The program in one embodiment may execute a step of storing the generated command information in a portable storage medium that can be read by the information processing device and the control device. As a result, when acquiring the internal memory data of the control device, the user only needs to perform the operation of attaching the portable storage medium to the control device. Therefore, even a local user can easily handle the work of acquiring the internal memory data of the control device, and the convenience of the information processing system is improved for the user who uses the information processing system.

一実施形態におけるプログラムは、前記コマンド情報によって前記制御装置から取得された前記内部メモリデータの少なくとも一部を記憶する、前記情報処理装置及び前記制御装置によって読み込み可能な可搬記憶媒体から、前記内部メモリデータの少なくとも一部を読み込むステップを実行させてもよい。これにより、ユーザは、制御装置の内部メモリデータに基づいて情報処理装置のメモリデータを更新するときに、可搬記憶媒体を情報処理装置に装着する動作だけ行えばよい。したがって、ユーザは、情報処理装置のメモリデータの更新作業を容易に行うことができ、情報処理システムを用いるユーザにとって、情報処理システムの利便性が向上する。 The program in one embodiment is from the information processing device and a portable storage medium readable by the control device that stores at least a part of the internal memory data acquired from the control device by the command information. The step of reading at least a part of the memory data may be executed. As a result, when updating the memory data of the information processing device based on the internal memory data of the control device, the user only needs to perform the operation of attaching the portable storage medium to the information processing device. Therefore, the user can easily update the memory data of the information processing device, and the convenience of the information processing system is improved for the user who uses the information processing system.

一実施形態におけるプログラムは、前記内部メモリデータの少なくとも一部を前記制御装置から取得するときに前記制御装置の運転状態を制御するための制御情報を生成するステップを実行させてもよい。これにより、情報処理装置は、制御装置の内部メモリデータを取得するときの制御装置の運転状態を制御可能である。ユーザは、情報処理装置を用いて、自身が希望する制御内容に基づく制御情報を容易に作成することができる。これにより、情報処理装置を用いるユーザにとって、情報処理装置の利便性が向上する。 The program in one embodiment may execute a step of generating control information for controlling an operating state of the control device when acquiring at least a part of the internal memory data from the control device. As a result, the information processing device can control the operating state of the control device when acquiring the internal memory data of the control device. The user can easily create control information based on the control content desired by the user by using the information processing device. This improves the convenience of the information processing device for the user who uses the information processing device.

幾つかの実施形態に係る情報処理装置は、制御対象を制御する制御装置と通信可能に接続される、制御部を有する情報処理装置であって、前記制御部は、前記制御装置に格納され、前記制御装置の状態を反映した内部メモリデータを取得するときのデータ取得範囲を設定し、設定された前記データ取得範囲に基づいて前記内部メモリデータの少なくとも一部を前記制御装置から取得するためのコマンド情報を生成し、前記コマンド情報によって前記制御装置から取得された前記内部メモリデータの少なくとも一部に基づいて、前記制御装置の状態のシミュレーションに用いられるメモリデータを更新する。これにより、実施形態に係る情報処理装置は、制御装置の状態を精度良く再現できる。ユーザは、制御装置の内部メモリデータを再現した状態からシミュレーションの機能を再実行することで、制御装置の実際の状態により近付けて精度良くシミュレーションを行うことができる。 The information processing device according to some embodiments is an information processing device having a control unit that is communicably connected to a control device that controls a controlled object, and the control unit is stored in the control device. To set a data acquisition range when acquiring internal memory data reflecting the state of the control device, and acquire at least a part of the internal memory data from the control device based on the set data acquisition range. Command information is generated, and the memory data used for simulating the state of the control device is updated based on at least a part of the internal memory data acquired from the control device by the command information. As a result, the information processing device according to the embodiment can accurately reproduce the state of the control device. By re-executing the simulation function from the state in which the internal memory data of the control device is reproduced, the user can perform the simulation more accurately than the actual state of the control device.

本開示によれば、制御装置の状態を精度良く再現できるプログラム及び情報処理装置を提供可能である。 According to the present disclosure, it is possible to provide a program and an information processing device that can accurately reproduce the state of the control device.

本開示の一実施形態に係る情報処理システムの概略構成を示すブロック図である。It is a block diagram which shows the schematic structure of the information processing system which concerns on one Embodiment of this disclosure. 図1の情報処理システムの機能を示すブロック図である。It is a block diagram which shows the function of the information processing system of FIG. 図1の情報処理システムの第1動作を説明するためのフローチャートである。It is a flowchart for demonstrating the 1st operation of the information processing system of FIG. 図1の情報処理システムの第2動作を説明するためのフローチャートである。It is a flowchart for demonstrating the 2nd operation of the information processing system of FIG. 図1の情報処理システムの第3動作を説明するためのフローチャートである。It is a flowchart for demonstrating the 3rd operation of the information processing system of FIG.

従来技術の背景及び問題点についてより詳細に説明する。 The background and problems of the prior art will be described in more detail.

PLCの制御プログラム開発においては、開発効率の向上及びデバッグ期間の短縮を図るために、PLCシミュレータを活用しながら、開発作業を進めるケースが近年増加している。PLCシミュレータは、PLCで動作するラダー言語プログラムと全く同一のプログラムをそのままの形式でダウンロードすることができ、容易にPLC環境のプログラムを利用できる。したがって、PLCシミュレータは、運用面において非常に効果が高い。さらに、PLCシミュレータによっては模擬入力の機能が備わっている場合もあり、ユーザは、模擬入力の機能を有効活用することで、PLC環境により近いデバッグ環境を構築することも可能である。 In the development of PLC control programs, in recent years, there have been an increasing number of cases in which development work is carried out while utilizing a PLC simulator in order to improve development efficiency and shorten the debugging period. The PLC simulator can download the exact same program as the ladder language program running on the PLC in the same format, and the program in the PLC environment can be easily used. Therefore, the PLC simulator is very effective in terms of operation. Further, some PLC simulators may have a simulated input function, and the user can construct a debug environment closer to the PLC environment by effectively utilizing the simulated input function.

このようなPLCシミュレータが幅広く活用されている状況下で、PLCシミュレータに対して、従来の開発用途以外での用途に対する要求が高まっている。その中でもPLC環境でエラー状態が発生した場合に、エラー状態をPLCシミュレータ上に再現してエラー解析に役立てたいという要求が非常に高まっている。 Under the circumstances where such PLC simulators are widely used, there is an increasing demand for PLC simulators for applications other than conventional development applications. Among them, when an error state occurs in a PLC environment, there is a great demand for reproducing the error state on a PLC simulator and using it for error analysis.

しかしながら、現状のPLCシミュレータでは、PLCにより近いプログラム構成を再現することはできるが、実稼働中の装置の状態としてPLCの内部メモリデータを取得して、PLCシミュレータ上に当該データを読み込み、PLCにより近い状態を再現することは容易ではない。例えば、制御対象となる各種センサ等の接続機器と接続されたPLCでは、リアルタイムに、かつ動的にデータの値が変化する。これらのデータをPLCシミュレータ上に例えばワンステップで容易に再現する方法が存在しなかった。したがって、PLCシミュレータをエラー解析の用途に使用することは困難であった。 However, with the current PLC simulator, although it is possible to reproduce a program configuration closer to PLC, the internal memory data of PLC is acquired as the state of the device in actual operation, the data is read on the PLC simulator, and the PLC is used. It is not easy to reproduce a close state. For example, in a PLC connected to a connected device such as various sensors to be controlled, the data value changes dynamically in real time. There was no easy way to reproduce these data on a PLC simulator, for example, in one step. Therefore, it has been difficult to use the PLC simulator for error analysis.

本開示は、以上のような問題点を解決するために、制御装置の状態を精度良く再現できるプログラム及び情報処理装置を提供することを目的とする。以下では、添付図面を参照しながら本開示の一実施形態について主に説明する。 An object of the present disclosure is to provide a program and an information processing device capable of accurately reproducing the state of a control device in order to solve the above problems. Hereinafter, one embodiment of the present disclosure will be mainly described with reference to the accompanying drawings.

図1は、本開示の一実施形態に係る情報処理システム1の概略構成を示すブロック図である。図1を参照しながら、本開示の一実施形態に係る情報処理システム1の概要について主に説明する。情報処理システム1は、情報処理装置10及び制御装置20を有する。図1では説明の簡便のため、情報処理装置10及び制御装置20について、それぞれ1つずつ図示しているが、情報処理システム1が有する情報処理装置10及び制御装置20の数はそれぞれ2つ以上であってもよい。 FIG. 1 is a block diagram showing a schematic configuration of an information processing system 1 according to an embodiment of the present disclosure. The outline of the information processing system 1 according to the embodiment of the present disclosure will be mainly described with reference to FIG. The information processing system 1 includes an information processing device 10 and a control device 20. In FIG. 1, for the sake of simplicity of explanation, one information processing device 10 and one control device 20 are shown, but the number of the information processing device 10 and the control device 20 included in the information processing system 1 is two or more. It may be.

情報処理装置10及び制御装置20は、例えばインターネット及び移動体通信網を含むネットワークを介して互いに通信可能に接続されている。これに限定されず、情報処理装置10及び制御装置20は、ネットワークを介さずに、例えば任意の通信ケーブルによって互いに通信可能に接続されていてもよい。 The information processing device 10 and the control device 20 are communicably connected to each other via a network including, for example, the Internet and a mobile communication network. Not limited to this, the information processing device 10 and the control device 20 may be communicably connected to each other by, for example, an arbitrary communication cable, without going through a network.

情報処理装置10は、例えばPC(Personal Computer)又はスマートフォン等の汎用の電子機器である。情報処理装置10は、例えば制御装置20において実行される制御プログラムの開発者としてのユーザが使用する電子機器である。情報処理装置10は、これらに限定されず、ユーザが使用する1つ又は互いに通信可能な複数のサーバ装置であってもよいし、情報処理システム1に専用の電子機器であってもよい。 The information processing device 10 is a general-purpose electronic device such as a PC (Personal Computer) or a smartphone. The information processing device 10 is, for example, an electronic device used by a user as a developer of a control program executed by the control device 20. The information processing device 10 is not limited to these, and may be one used by the user or a plurality of server devices capable of communicating with each other, or may be an electronic device dedicated to the information processing system 1.

制御装置20は、例えばPLCである。制御装置20は、制御対象となる任意の接続機器と通信可能に接続され、当該接続機器を制御する。本明細書において、「接続機器」は、例えばフィールド機器を含む。接続機器は、被測定対象に対する測定処理を実行して測定値を取得する。 The control device 20 is, for example, a PLC. The control device 20 is communicably connected to any connected device to be controlled and controls the connected device. In the present specification, the "connected device" includes, for example, a field device. The connected device executes the measurement process on the object to be measured and acquires the measured value.

本明細書において、「被測定対象」は、例えば、接続機器が配置されているプラント設備において発生した気体及び液体を含む流体の温度、圧力、及び流量、並びにプラント設備の腐食度及び振動量を含む。これに限定されず、被測定対象は、バルブ、モータ、及びリレーを含むアクチュエータに関連する、温度、圧力、及び電圧を含む任意のパラメータを含む。 In the present specification, the "measured object" refers to, for example, the temperature, pressure, and flow rate of a fluid containing gas and liquid generated in the plant equipment in which the connected equipment is arranged, and the degree of corrosion and vibration of the plant equipment. Including. The object to be measured includes any parameters related to actuators including valves, motors, and relays, including temperature, pressure, and voltage.

本明細書において、「プラント設備」は、例えば、化学等の工業プラントの他、ガス田及び油田を含む井戸元、並びにその周辺を管理制御するプラントを含む。その他にも、プラント設備は、水力発電、火力発電、及び原子力発電を含む発電を管理制御するプラント、太陽光発電及び風力発電を含む環境発電を管理制御するプラント、並びに上下水及びダム等を管理制御するプラントを含んでもよい。 In the present specification, the “plant equipment” includes, for example, an industrial plant such as chemicals, a well source including a gas field and an oil field, and a plant that manages and controls the surroundings thereof. In addition, plant equipment manages hydroelectric power generation, thermal power generation, plants that manage and control power generation including nuclear power generation, plants that manage and control environmental power generation including solar power generation and wind power generation, and water and sewage and dams. It may include a controlled plant.

一実施形態の概要として、情報処理装置10は、制御装置20に格納され、制御装置20の状態を反映した内部メモリデータを取得するときのデータ取得範囲を設定する。本明細書において、「制御装置20の状態」は、例えば、制御装置20のエラー状態、及び後述する制御装置20の運転状態を含む。「エラー状態」は、例えば、スキャンタイムの超過等のプログラムに起因したエラー、及び瞬停等のハードウェアに起因したエラーを含む。「内部メモリデータ」は、例えば、制御装置20と接続されている接続機器及び制御装置20を含む装置の内部のリレー入出力を管理するビットデータ、並びに制御装置20と接続されている接続機器及び制御装置20を含む装置の内部の数値情報を管理するための数値データを含む。 As an outline of one embodiment, the information processing device 10 is stored in the control device 20 and sets a data acquisition range when acquiring internal memory data reflecting the state of the control device 20. In the present specification, the "state of the control device 20" includes, for example, an error state of the control device 20 and an operating state of the control device 20 described later. The "error state" includes, for example, an error caused by a program such as an excess of scan time, and an error caused by hardware such as a momentary power failure. The "internal memory data" includes, for example, a connected device connected to the control device 20, bit data that manages relay input / output inside the device including the control device 20, and a connected device connected to the control device 20. Includes numerical data for managing numerical information inside the device including the control device 20.

情報処理装置10は、設定されたデータ取得範囲に基づいて内部メモリデータの少なくとも一部を制御装置20から取得するためのコマンド情報を生成する。情報処理装置10は、当該コマンド情報によって制御装置20から取得された内部メモリデータの少なくとも一部に基づいて、情報処理装置10側のメモリデータを更新する。本明細書において、「メモリデータ」は、例えば、後述する情報処理装置10の記憶部12に格納され、制御装置20の状態のシミュレーションに用いられるデータを含む。これに限定されず、メモリデータは、情報処理装置10から任意の方法でアクセス可能な外部装置が有する任意の記憶媒体に格納されているデータを含んでもよい。 The information processing device 10 generates command information for acquiring at least a part of the internal memory data from the control device 20 based on the set data acquisition range. The information processing device 10 updates the memory data on the information processing device 10 side based on at least a part of the internal memory data acquired from the control device 20 by the command information. In the present specification, the "memory data" includes, for example, data stored in the storage unit 12 of the information processing device 10 described later and used for simulating the state of the control device 20. The memory data is not limited to this, and may include data stored in any storage medium included in the external device accessible from the information processing device 10 by any method.

図1に示すように、情報処理装置10は、通信部11、記憶部12、入力部13、出力部14、読込部15、及び制御部16を有する。 As shown in FIG. 1, the information processing device 10 includes a communication unit 11, a storage unit 12, an input unit 13, an output unit 14, a reading unit 15, and a control unit 16.

通信部11は、有線又は無線に基づく任意の通信プロトコルに対応した任意の通信モジュールを含む。例えば、通信部11は、インターネット規格に対応する通信モジュール、並びに4G(4th Generation)及び5G(5th Generation)を含む移動体通信規格に対応する通信モジュールの少なくとも一方を含んでもよい。一実施形態において、情報処理装置10は、通信部11を介して制御装置20と通信可能に接続されている。 The communication unit 11 includes an arbitrary communication module corresponding to an arbitrary communication protocol based on wired or wireless. For example, the communication unit 11 may include at least one of a communication module corresponding to an Internet standard and a communication module corresponding to a mobile communication standard including 4G (4th Generation) and 5G (5th Generation). In one embodiment, the information processing device 10 is communicably connected to the control device 20 via the communication unit 11.

記憶部12は、HDD(Hard Disk Drive)、SSD(Solid State Drive)、EEPROM(Electrically Erasable Programmable Read-Only Memory)、ROM(Read-Only Memory)、及びRAM(Random Access Memory)を含む任意の記憶モジュールを含む。記憶部12は、例えば、主記憶装置、補助記憶装置、又はキャッシュメモリとして機能してもよい。記憶部12は、情報処理装置10の動作に用いられる任意の情報を記憶する。例えば、記憶部12は、システムプログラム、アプリケーションプログラム、及び通信部11によって受信された各種情報等を記憶してもよい。記憶部12は、情報処理装置10に内蔵されているものに限定されず、USB(Universal Serial Bus)等のデジタル入出力ポート等によって接続されている外付け型の記憶モジュールであってもよい。例えば、記憶部12は、上述したメモリデータを記憶する。 The storage unit 12 is an arbitrary storage including an HDD (Hard Disk Drive), an SSD (Solid State Drive), an EEPROM (Electrically Erasable Programmable Read-Only Memory), a ROM (Read-Only Memory), and a RAM (Random Access Memory). Includes modules. The storage unit 12 may function as, for example, a main storage device, an auxiliary storage device, or a cache memory. The storage unit 12 stores arbitrary information used for the operation of the information processing device 10. For example, the storage unit 12 may store the system program, the application program, various information received by the communication unit 11, and the like. The storage unit 12 is not limited to the one built in the information processing device 10, and may be an external storage module connected by a digital input / output port or the like such as USB (Universal Serial Bus). For example, the storage unit 12 stores the above-mentioned memory data.

入力部13は、ユーザ入力を検出して、ユーザの操作に基づく入力情報を取得する1つ以上の入力インタフェースを含む。例えば、入力部13は、物理キー、静電容量キー、出力部14のディスプレイと一体的に設けられたタッチスクリーン、又は音声入力を受け付けるマイク等であるが、これらに限定されない。 The input unit 13 includes one or more input interfaces that detect user input and acquire input information based on the user's operation. For example, the input unit 13 is, but is not limited to, a physical key, a capacitance key, a touch screen provided integrally with the display of the output unit 14, a microphone that accepts voice input, and the like.

出力部14は、情報を出力してユーザに通知する1つ以上の出力インタフェースを含む。例えば、出力部14は、情報を映像で出力するディスプレイ、又は情報を音声で出力するスピーカ等であるが、これらに限定されない。 The output unit 14 includes one or more output interfaces that output information and notify the user. For example, the output unit 14 is, but is not limited to, a display that outputs information as a video, a speaker that outputs information as audio, and the like.

読込部15は、可搬記憶媒体を装着可能な任意の装着モジュールを含む。本明細書において、「可搬記憶媒体」は、例えば、SDカード及びUSBメモリを含む。本明細書において、「装着モジュール」は、例えば、SDカードスロット及びUSBコネクタを含む。読込部15は、制御部16による制御に基づいて、読込部15に装着された可搬記憶媒体に格納されている任意のデータの読み込みを可能にする。 The reading unit 15 includes an arbitrary mounting module to which a portable storage medium can be mounted. In the present specification, the "portable storage medium" includes, for example, an SD card and a USB memory. As used herein, the "mounting module" includes, for example, an SD card slot and a USB connector. The reading unit 15 enables reading of arbitrary data stored in the portable storage medium mounted on the reading unit 15 based on the control by the control unit 16.

制御部16は、1つ以上のプロセッサを含む。一実施形態において「プロセッサ」は、汎用のプロセッサ、又は特定の処理に特化した専用のプロセッサであるが、これらに限定されない。制御部16は、情報処理装置10を構成する各構成部と通信可能に接続され、情報処理装置10全体の動作を制御する。 The control unit 16 includes one or more processors. In one embodiment, the "processor" is, but is not limited to, a general purpose processor or a dedicated processor specialized for a particular process. The control unit 16 is communicably connected to each component constituting the information processing device 10 and controls the operation of the entire information processing device 10.

図1に示すように、制御装置20は、通信部21、記憶部22、読込部23、及び制御部24を有する。 As shown in FIG. 1, the control device 20 includes a communication unit 21, a storage unit 22, a reading unit 23, and a control unit 24.

通信部21は、有線又は無線に基づく任意の通信プロトコルに対応した任意の通信モジュールを含む。例えば、通信部21は、インターネット規格に対応する通信モジュール、並びに4G及び5Gを含む移動体通信規格に対応する通信モジュールの少なくとも一方を含んでもよい。一実施形態において、制御装置20は、通信部21を介して情報処理装置10と通信可能に接続されている。 The communication unit 21 includes an arbitrary communication module corresponding to an arbitrary communication protocol based on wired or wireless. For example, the communication unit 21 may include at least one of a communication module corresponding to an Internet standard and a communication module corresponding to a mobile communication standard including 4G and 5G. In one embodiment, the control device 20 is communicably connected to the information processing device 10 via the communication unit 21.

記憶部22は、HDD、SSD、EEPROM、ROM、及びRAMを含む任意の記憶モジュールを含む。記憶部22は、例えば、主記憶装置、補助記憶装置、又はキャッシュメモリとして機能してもよい。記憶部22は、制御装置20の動作に用いられる任意の情報を記憶する。例えば、記憶部22は、システムプログラム、アプリケーションプログラム、及び通信部21によって受信された各種情報等を記憶してもよい。記憶部22は、制御装置20に内蔵されているものに限定されず、USB等のデジタル入出力ポート等によって接続されている外付け型の記憶モジュールであってもよい。例えば、記憶部22は、上述した内部メモリデータを記憶する。 The storage unit 22 includes any storage module including HDD, SSD, EEPROM, ROM, and RAM. The storage unit 22 may function as, for example, a main storage device, an auxiliary storage device, or a cache memory. The storage unit 22 stores arbitrary information used for the operation of the control device 20. For example, the storage unit 22 may store the system program, the application program, various information received by the communication unit 21, and the like. The storage unit 22 is not limited to the one built in the control device 20, and may be an external storage module connected by a digital input / output port such as USB. For example, the storage unit 22 stores the above-mentioned internal memory data.

読込部23は、可搬記憶媒体を装着可能な任意の装着モジュールを含む。読込部23は、制御部24による制御に基づいて、読込部23に装着された可搬記憶媒体に格納されている任意のデータの読み込みを可能にする。 The reading unit 23 includes an arbitrary mounting module to which the portable storage medium can be mounted. The reading unit 23 enables reading of arbitrary data stored in the portable storage medium mounted on the reading unit 23, based on the control by the control unit 24.

制御部24は、1つ以上のプロセッサを含む。制御部24は、制御装置20を構成する各構成部と通信可能に接続され、制御装置20全体の動作を制御する。 The control unit 24 includes one or more processors. The control unit 24 is communicably connected to each component that constitutes the control device 20, and controls the operation of the entire control device 20.

図2は、図1の情報処理システム1の機能を示すブロック図である。図2は、図1の情報処理システム1に含まれる構成部が有する各種機能をより詳細に示したものである。図2を参照しながら、情報処理システム1の構成部が有する各種機能について主に説明する。図2に示すとおり、情報処理装置10は、大きく分けて、制御プログラム開発支援機能100及びPLCシミュレータ200の2つの機能を有する。 FIG. 2 is a block diagram showing the functions of the information processing system 1 of FIG. FIG. 2 shows in more detail various functions of the components included in the information processing system 1 of FIG. With reference to FIG. 2, various functions possessed by the components of the information processing system 1 will be mainly described. As shown in FIG. 2, the information processing apparatus 10 has two main functions, a control program development support function 100 and a PLC simulator 200.

制御プログラム開発支援機能100は、ラダー言語プログラミング部101、プログラム変換部102、通信制御部103、取得コマンド作成部104、及び読込変換部105を含む。制御プログラム開発支援機能100に含まれる各機能部は、情報処理装置10の制御部16が有する機能を示すものである。 The control program development support function 100 includes a ladder language programming unit 101, a program conversion unit 102, a communication control unit 103, an acquisition command creation unit 104, and a read conversion unit 105. Each functional unit included in the control program development support function 100 indicates a function possessed by the control unit 16 of the information processing apparatus 10.

PLCシミュレータ200は、プログラム格納部201、実行型中間言語変換部202、実行型中間言語格納部203、仮想PLCプログラム演算処理部204、内部メモリ205、使用範囲抽出部206、及び再現部207を含む。PLCシミュレータ200に含まれる各機能部は、情報処理装置10の制御部16が有する機能を示すものである。 The PLC simulator 200 includes a program storage unit 201, an execution type intermediate language conversion unit 202, an execution type intermediate language storage unit 203, a virtual PLC program calculation processing unit 204, an internal memory 205, a usage range extraction unit 206, and a reproduction unit 207. .. Each functional unit included in the PLC simulator 200 indicates a function possessed by the control unit 16 of the information processing apparatus 10.

制御装置20は、PLC300の機能を有する。PLC300は、プログラム格納部301、プログラム実行部302、プログラム演算処理部303、内部メモリ304、及び取得処理部305を含む。PLC300に含まれる各機能部は、制御装置20の制御部24が有する機能を示すものである。 The control device 20 has the function of the PLC 300. The PLC 300 includes a program storage unit 301, a program execution unit 302, a program calculation processing unit 303, an internal memory 304, and an acquisition processing unit 305. Each functional unit included in the PLC 300 indicates a function possessed by the control unit 24 of the control device 20.

ラダー言語プログラミング部101は、PLC300上で動作する制御プログラムを開発するためのプログラム言語エディタ機能を含む。プログラム変換部102は、ラダー言語をPLC300上で動作する中間コードに変換する機能を含む。通信制御部103は、プログラム変換部102によって変換された中間コードをPLC300にダウンロードするときに通信部11を制御する機能を含む。 The ladder language programming unit 101 includes a programming language editor function for developing a control program that operates on the PLC 300. The program conversion unit 102 includes a function of converting the ladder language into an intermediate code operating on the PLC 300. The communication control unit 103 includes a function of controlling the communication unit 11 when downloading the intermediate code converted by the program conversion unit 102 to the PLC 300.

取得コマンド作成部104は、制御装置20の記憶部22に格納され、制御装置20の状態を反映した内部メモリデータを取得するときのデータ取得範囲を設定する機能を含む。例えば、取得コマンド作成部104は、通信制御部103及び使用範囲抽出部206を経由して、PLCシミュレータ200上の実行型中間言語格納部203によって生成され記憶部12に格納されている管理情報を参照する。本明細書において、「管理情報」は、例えば、制御装置20の状態のシミュレーションに実際に用いられるメモリデータのデータ使用範囲を管理するための管理テーブルを含む。 The acquisition command creation unit 104 is stored in the storage unit 22 of the control device 20, and includes a function of setting a data acquisition range when acquiring internal memory data reflecting the state of the control device 20. For example, the acquisition command creation unit 104 transmits the management information generated by the execution type intermediate language storage unit 203 on the PLC simulator 200 and stored in the storage unit 12 via the communication control unit 103 and the usage range extraction unit 206. refer. In the present specification, the "management information" includes, for example, a management table for managing the data usage range of the memory data actually used for simulating the state of the control device 20.

取得コマンド作成部104は、生成された管理情報を参照してメモリデータのデータ使用範囲を取得する。取得コマンド作成部104は、取得されたデータ使用範囲に基づいて内部メモリデータのデータ取得範囲を設定する。より具体的には、取得コマンド作成部104は、PLCシミュレータ200と同一のPLCプログラムがダウンロードされたPLC300における内部メモリデータのデータ使用範囲と、PLCシミュレータ200上のPLCプログラムで使用しているメモリデータのデータ使用範囲と、を同等として扱う。これにより、取得コマンド作成部104は、取得されたメモリデータのデータ使用範囲と同等の範囲を、PLC300における内部メモリデータのデータ取得範囲として自動的に設定する。 The acquisition command creation unit 104 acquires the data usage range of the memory data with reference to the generated management information. The acquisition command creation unit 104 sets the data acquisition range of the internal memory data based on the acquired data usage range. More specifically, the acquisition command creation unit 104 determines the data usage range of the internal memory data in the PLC 300 in which the same PLC program as the PLC simulator 200 is downloaded, and the memory data used in the PLC program on the PLC simulator 200. Is treated as equivalent to the data usage range of. As a result, the acquisition command creation unit 104 automatically sets a range equivalent to the data usage range of the acquired memory data as the data acquisition range of the internal memory data in the PLC 300.

例えば、制御装置20の記憶部22に格納されている内部メモリデータのアドレスが、コンフィギュレーションによって、1〜50000の領域で確保されている場合を考える。このとき、例えば、PLCシミュレータ200上のPLCプログラムにおいて、実際には10001、10010のアドレスしか使用されていないとき、データ取得範囲は、10001〜10010のアドレス範囲に設定される。 For example, consider a case where the address of the internal memory data stored in the storage unit 22 of the control device 20 is secured in an area of 1 to 50,000 depending on the configuration. At this time, for example, in the PLC program on the PLC simulator 200, when only the addresses of 10001 and 10010 are actually used, the data acquisition range is set to the address range of 10001 to 10010.

データ取得範囲の設定方法は、上記のように、取得コマンド作成部104によって自動的に実行される方法に限定されない。例えば、PLCシミュレータ200及びPLC300におけるそれぞれのPLCプログラムが一致している場合、及び一致していない場合の両方において、取得コマンド作成部104は、制御装置20の記憶部22から取得する内部メモリデータのデータ取得範囲を任意に設定されてもよい。例えば、取得コマンド作成部104は、ユーザによって任意に設定された内部メモリデータのデータ取得範囲に関する入力情報を情報処理装置10の入力部13から取得して、当該入力情報に対応するデータ取得範囲を設定してもよい。 The method of setting the data acquisition range is not limited to the method automatically executed by the acquisition command creation unit 104 as described above. For example, both when the PLC programs in the PLC simulator 200 and the PLC 300 match and when they do not match, the acquisition command creation unit 104 acquires internal memory data from the storage unit 22 of the control device 20. The data acquisition range may be set arbitrarily. For example, the acquisition command creation unit 104 acquires the input information regarding the data acquisition range of the internal memory data arbitrarily set by the user from the input unit 13 of the information processing apparatus 10, and obtains the data acquisition range corresponding to the input information. It may be set.

取得コマンド作成部104は、設定されたデータ取得範囲に基づいて内部メモリデータの少なくとも一部を制御装置20の記憶部22から取得するためのコマンド情報を生成する機能を含む。取得コマンド作成部104は、生成されたコマンド情報を、例えば、読込部15に装着された情報処理装置10及び制御装置20によって読み込み可能な可搬記憶媒体400に格納する機能を含む。このとき、可搬記憶媒体400は、情報処理装置10及び制御装置20と共に情報処理システム1に含まれていてもよい。 The acquisition command creation unit 104 includes a function of generating command information for acquiring at least a part of the internal memory data from the storage unit 22 of the control device 20 based on the set data acquisition range. The acquisition command creation unit 104 includes a function of storing the generated command information in, for example, a portable storage medium 400 that can be read by the information processing device 10 and the control device 20 mounted on the reading unit 15. At this time, the portable storage medium 400 may be included in the information processing system 1 together with the information processing device 10 and the control device 20.

取得コマンド作成部104は、内部メモリデータの少なくとも一部を制御装置20の記憶部22から取得するときに制御装置20の運転状態を制御するための制御情報を生成する機能を含んでもよい。本明細書において、「制御装置20の運転状態」は、例えば、制御装置20の稼働状態及び停止状態を含む。「制御情報」は、例えば、制御装置20の稼働状態及び停止状態を制御部24が制御するために必要となる任意の情報を含む。例えば、制御情報は、内部メモリデータ取得前及び取得後において制御装置20の稼働状態及び停止状態のいずれかを制御部24が設定する情報を含む。 The acquisition command creation unit 104 may include a function of generating control information for controlling the operating state of the control device 20 when acquiring at least a part of the internal memory data from the storage unit 22 of the control device 20. In the present specification, the "operating state of the control device 20" includes, for example, an operating state and a stopped state of the control device 20. The "control information" includes, for example, arbitrary information necessary for the control unit 24 to control the operating state and the stopped state of the control device 20. For example, the control information includes information in which the control unit 24 sets either the operating state or the stopped state of the control device 20 before and after the acquisition of the internal memory data.

読込変換部105は、PLC300の内部メモリデータとして取得したデータファイルを読み込む機能を含む。例えば、読込変換部105は、読込部15に装着され、上記のコマンド情報によって取得された内部メモリデータの少なくとも一部を記憶する可搬記憶媒体400から、内部メモリデータの少なくとも一部を読み込む。読込変換部105は、読み込まれた内部メモリデータの少なくとも一部を、PLCシミュレータ200が読み取ることのできるデータ形式に変換する機能を含む。読込変換部105は、変換されたデータをPLCシミュレータ200上の内部メモリ205により情報処理装置10の記憶部12に反映するためのコマンドを、通信制御部103を経由して再現部207に送信する機能を含む。 The read conversion unit 105 includes a function of reading a data file acquired as internal memory data of the PLC 300. For example, the read conversion unit 105 reads at least a part of the internal memory data from the portable storage medium 400 which is attached to the read unit 15 and stores at least a part of the internal memory data acquired by the above command information. The read conversion unit 105 includes a function of converting at least a part of the read internal memory data into a data format that can be read by the PLC simulator 200. The read conversion unit 105 transmits a command for reflecting the converted data in the storage unit 12 of the information processing device 10 by the internal memory 205 on the PLC simulator 200 to the reproduction unit 207 via the communication control unit 103. Including functions.

プログラム格納部201は、制御プログラム開発支援機能100によってダウンロードされた制御プログラムの中間コードを、情報処理装置10の記憶部12に格納する機能を含む。実行型中間言語変換部202は、当該中間コードをPLCシミュレータ200上で実行するための実行型中間言語に変換する機能を含む。 The program storage unit 201 includes a function of storing the intermediate code of the control program downloaded by the control program development support function 100 in the storage unit 12 of the information processing device 10. The execution type intermediate language conversion unit 202 includes a function of converting the intermediate code into an execution type intermediate language for execution on the PLC simulator 200.

実行型中間言語格納部203は、変換された実行型中間言語を、情報処理装置10の記憶部12に格納する機能を含む。加えて、実行型中間言語格納部203は、管理情報に基づいて、PLCシミュレータ200上のPLCプログラムで実際に使用しているメモリデータのデータ使用範囲を管理する機能を含む。 The execution type intermediate language storage unit 203 includes a function of storing the converted execution type intermediate language in the storage unit 12 of the information processing apparatus 10. In addition, the executable intermediate language storage unit 203 includes a function of managing the data usage range of the memory data actually used in the PLC program on the PLC simulator 200 based on the management information.

仮想PLCプログラム演算処理部204は、当該実行型中間言語を解釈して実行する機能を含む。内部メモリ205は、当該実行型中間言語を実行する上で使用するメモリデータを、情報処理装置10の記憶部12に格納する機能を含む。 The virtual PLC program arithmetic processing unit 204 includes a function of interpreting and executing the execution type intermediate language. The internal memory 205 includes a function of storing the memory data used for executing the execution type intermediate language in the storage unit 12 of the information processing apparatus 10.

使用範囲抽出部206は、制御プログラム開発支援機能100によって通信制御部103を経由して送信された、PLCシミュレータ200上のPLCプログラムで実際に使用しているメモリデータのデータ使用範囲の取得を要求するコマンドを受け付ける機能を含む。使用範囲抽出部206は、メモリデータのデータ使用範囲の取得を要求するコマンドに応じて、当該データ使用範囲を管理している実行型中間言語格納部203により記憶部12を参照して、メモリデータのデータ使用範囲を返答する機能を含む。 The usage range extraction unit 206 requests acquisition of the data usage range of the memory data actually used in the PLC program on the PLC simulator 200 transmitted via the communication control unit 103 by the control program development support function 100. Includes a function to accept commands to be executed. In response to a command requesting acquisition of the data usage range of the memory data, the usage range extraction unit 206 refers to the storage unit 12 by the execution type intermediate language storage unit 203 that manages the data usage range, and refers to the memory data. Includes the ability to return the data usage range of.

再現部207は、制御プログラム開発支援機能100によって通信制御部103を経由して送信されたコマンドを受け付ける機能を含む。再現部207は、PLCシミュレータ200上の内部メモリ205を介して、内部メモリデータの少なくとも一部に基づく、受け付けたコマンドに係るデータを記憶部12に反映する機能を含む。これにより、再現部207は、上記のコマンド情報によって制御装置20から取得された内部メモリデータの少なくとも一部に基づいて、制御装置20の状態のシミュレーションに用いられるメモリデータを更新する。 The reproduction unit 207 includes a function of receiving a command transmitted via the communication control unit 103 by the control program development support function 100. The reproduction unit 207 includes a function of reflecting the data related to the received command in the storage unit 12 based on at least a part of the internal memory data via the internal memory 205 on the PLC simulator 200. As a result, the reproduction unit 207 updates the memory data used for simulating the state of the control device 20 based on at least a part of the internal memory data acquired from the control device 20 by the above command information.

プログラム格納部301は、制御プログラム開発支援機能100によってダウンロードされた制御プログラムの中間コードを、制御装置20の記憶部22に格納する機能を含む。プログラム実行部302は、当該中間コードを実際に動作する形式のプログラムに変換して実行する機能を含む。プログラム演算処理部303は、このような実行プログラムを解釈して実行する機能を含む。 The program storage unit 301 includes a function of storing the intermediate code of the control program downloaded by the control program development support function 100 in the storage unit 22 of the control device 20. The program execution unit 302 includes a function of converting the intermediate code into a program in a format that actually operates and executing the program. The program calculation processing unit 303 includes a function of interpreting and executing such an execution program.

内部メモリ304は、プログラムを実行する上で使用する内部メモリデータを、制御装置20の記憶部22に格納する機能を含む。取得処理部305は、PLC300上の内部メモリ304を介して記憶部22から内部メモリデータを取得するためのコマンドとなるスクリプト言語を記載した実行形式型のファイルの内容を解釈する機能を含む。スクリプト言語を記載した実行形式型のファイルの内容は、例えば、制御装置20の読込部23に装着された可搬記憶媒体400に記憶されている、取得コマンド作成部104によって生成された上記のコマンド情報を含む。取得処理部305は、PLC300の内部メモリ304を介して、記憶部22に格納されている内部メモリデータを取得し、取得された内部メモリデータをテキスト型のデータに変換してデータファイルとして取得する機能を含む。取得処理部305は、読込部23に装着された可搬記憶媒体400に対して当該データファイルを格納する機能を含む。 The internal memory 304 includes a function of storing the internal memory data used for executing the program in the storage unit 22 of the control device 20. The acquisition processing unit 305 includes a function of interpreting the contents of an execution format type file in which a script language that serves as a command for acquiring internal memory data from the storage unit 22 via the internal memory 304 on the PLC 300 is described. The contents of the executable file in which the script language is described are, for example, the above commands generated by the acquisition command creation unit 104 stored in the portable storage medium 400 mounted on the reading unit 23 of the control device 20. Contains information. The acquisition processing unit 305 acquires the internal memory data stored in the storage unit 22 via the internal memory 304 of the PLC 300, converts the acquired internal memory data into text type data, and acquires it as a data file. Including functions. The acquisition processing unit 305 includes a function of storing the data file in the portable storage medium 400 mounted on the reading unit 23.

図1の情報処理システム1の動作は、以下の3つの動作を含む。1つは、主に、制御装置20の記憶部22に格納されている内部メモリデータを取得するために、取得処理部305で解釈されるコマンド情報を情報処理装置10が生成する第1動作である。1つは、主に、制御装置20の記憶部22から内部メモリデータを取得するための制御装置20の第2動作である。1つは、制御装置20の記憶部22から取得した内部メモリデータをPLCシミュレータ200上に再現するための情報処理装置10の第3動作である。 The operation of the information processing system 1 of FIG. 1 includes the following three operations. One is the first operation in which the information processing device 10 generates command information interpreted by the acquisition processing unit 305 in order to acquire the internal memory data stored in the storage unit 22 of the control device 20. is there. One is mainly the second operation of the control device 20 for acquiring the internal memory data from the storage unit 22 of the control device 20. One is the third operation of the information processing device 10 for reproducing the internal memory data acquired from the storage unit 22 of the control device 20 on the PLC simulator 200.

図3は、図1の情報処理システム1の第1動作を説明するためのフローチャートである。図3を参照しながら、情報処理システム1の第1動作について主に説明する。 FIG. 3 is a flowchart for explaining the first operation of the information processing system 1 of FIG. The first operation of the information processing system 1 will be mainly described with reference to FIG.

ステップS100では、情報処理装置10の制御部16、例えば実行型中間言語格納部203は、制御装置20の状態のシミュレーションに実際に用いられるメモリデータのデータ使用範囲を管理するための管理情報を生成し、記憶部12に格納する。 In step S100, the control unit 16 of the information processing device 10, for example, the execution type intermediate language storage unit 203, generates management information for managing the data usage range of the memory data actually used for simulating the state of the control device 20. Then, it is stored in the storage unit 12.

ステップS101では、制御部16は、PLCシミュレータ200のPLCプログラムを使用するか否かを判定する。制御部16は、PLCシミュレータ200のPLCプログラムを使用すると判定すると、ステップS102の処理を実行する。制御部16は、PLCシミュレータ200のPLCプログラムを使用しないと判定すると、ステップS103の処理を実行する。 In step S101, the control unit 16 determines whether or not to use the PLC program of the PLC simulator 200. When the control unit 16 determines that the PLC program of the PLC simulator 200 is used, the control unit 16 executes the process of step S102. When the control unit 16 determines that the PLC program of the PLC simulator 200 is not used, the control unit 16 executes the process of step S103.

ステップS102では、制御部16、例えば取得コマンド作成部104は、取得コマンド作成部104からの要求を受け付けた使用範囲抽出部206、及び実行型中間言語格納部203を介して、ステップS100において記憶部12に格納された管理情報を参照し、メモリデータのデータ使用範囲を取得する。 In step S102, the control unit 16, for example, the acquisition command creation unit 104, enters the storage unit in step S100 via the usage range extraction unit 206 that receives the request from the acquisition command creation unit 104 and the execution type intermediate language storage unit 203. The data usage range of the memory data is acquired by referring to the management information stored in 12.

ステップS103では、制御部16、例えば取得コマンド作成部104は、制御装置20に格納され、制御装置20の状態を反映した内部メモリデータを取得するときのデータ取得範囲を設定する。例えば、制御部16は、ステップS101においてPLCシミュレータ200のPLCプログラムを使用すると判定すると、ステップS102において取得されたデータ使用範囲に基づいて、データ取得範囲を自動的に設定する。このとき、例えば、制御部16は、自動的に設定されたデータ取得範囲をユーザがさらに微調整するための入力情報を情報処理装置10の入力部13から取得して、取得された入力情報に基づいて、データ取得範囲を再設定してもよい。例えば、制御部16は、ステップS101においてPLCシミュレータ200のPLCプログラムを使用しないと判定すると、ユーザによって任意に設定された内部メモリデータのデータ取得範囲に関する入力情報を情報処理装置10の入力部13から取得して、取得された入力情報に基づいて、データ取得範囲を設定する。 In step S103, the control unit 16, for example, the acquisition command creation unit 104, is stored in the control device 20 and sets a data acquisition range when acquiring internal memory data reflecting the state of the control device 20. For example, if the control unit 16 determines in step S101 that the PLC program of the PLC simulator 200 will be used, the control unit 16 automatically sets the data acquisition range based on the data usage range acquired in step S102. At this time, for example, the control unit 16 acquires the input information for the user to further fine-tune the automatically set data acquisition range from the input unit 13 of the information processing apparatus 10, and uses the acquired input information. Based on this, the data acquisition range may be reset. For example, when the control unit 16 determines in step S101 that the PLC program of the PLC simulator 200 is not used, the control unit 16 inputs input information regarding the data acquisition range of the internal memory data arbitrarily set by the user from the input unit 13 of the information processing device 10. Acquire and set the data acquisition range based on the acquired input information.

ステップS104では、制御部16、例えば取得コマンド作成部104は、ステップS103において設定されたデータ取得範囲に基づいて内部メモリデータの少なくとも一部を制御装置20から取得するためのコマンド情報を生成する。例えば、取得コマンド作成部104は、内部メモリデータを取得するためのコマンドとなるスクリプト言語を記載した実行形式型のファイルを作成する。 In step S104, the control unit 16, for example, the acquisition command creation unit 104, generates command information for acquiring at least a part of the internal memory data from the control device 20 based on the data acquisition range set in step S103. For example, the acquisition command creation unit 104 creates an execution format type file in which a script language that serves as a command for acquiring internal memory data is described.

ステップS105では、制御部16、例えば取得コマンド作成部104は、内部メモリデータの少なくとも一部を制御装置20から取得するときに制御部24が制御装置20の運転状態を制御するための制御情報を生成する。 In step S105, the control unit 16, for example, the acquisition command creation unit 104, receives control information for the control unit 24 to control the operating state of the control device 20 when at least a part of the internal memory data is acquired from the control device 20. Generate.

ステップS106では、制御部16、例えば取得コマンド作成部104は、ステップS104において生成されたコマンド情報と、ステップS105において生成された制御情報と、を情報処理装置10及び制御装置20によって読み込み可能な可搬記憶媒体400に格納する。例えば、取得コマンド作成部104は、ステップS104において作成されたファイルを可搬記憶媒体400に保存する。 In step S106, the control unit 16, for example, the acquisition command creation unit 104 can read the command information generated in step S104 and the control information generated in step S105 by the information processing device 10 and the control device 20. It is stored in the carrying storage medium 400. For example, the acquisition command creation unit 104 saves the file created in step S104 in the portable storage medium 400.

図4は、図1の情報処理システム1の第2動作を説明するためのフローチャートである。図4を参照しながら、情報処理システム1の第2動作について主に説明する。当該第2動作は、例えば、図3のステップS106において必要な情報が格納された可搬記憶媒体400が制御装置20の読込部23に装着されることで、制御装置20の制御部24によって実行される。 FIG. 4 is a flowchart for explaining the second operation of the information processing system 1 of FIG. The second operation of the information processing system 1 will be mainly described with reference to FIG. The second operation is executed by the control unit 24 of the control device 20, for example, when the portable storage medium 400 in which the necessary information is stored in step S106 of FIG. 3 is attached to the reading unit 23 of the control device 20. Will be done.

ステップS200では、制御装置20の制御部24、例えば取得処理部305は、図3のステップS105において生成された制御情報に基づいて、内部メモリデータの取得前に制御装置20の運転状態を停止状態に変更する必要があるか否かを判定する。取得処理部305は、制御装置20の運転状態を停止状態に変更する必要があると判定すると、ステップS201の処理を実行する。例えば、取得する内部メモリデータの同時性が要求されるような場合、取得処理部305によって制御装置20の運転状態を停止状態に変更することが望ましい。取得処理部305による内部メモリデータの取得処理では所定の取得期間が発生するため、仮に制御装置20の運転状態が稼働状態のままであると、取得期間の最初と最後に取得した内部メモリデータ間で、タイムラグが発生する。取得処理部305は、制御装置20の運転状態を停止状態に変更する必要がないと判定すると、ステップS202の処理を実行する。例えば、制御装置20が稼働状態にあって、停止状態に変更すると現場の運用に影響が及ぶ場合、取得処理部305によって制御装置20の運転状態を稼働状態に維持することが望ましい。 In step S200, the control unit 24 of the control device 20, for example, the acquisition processing unit 305, stops the operation state of the control device 20 before acquiring the internal memory data based on the control information generated in step S105 of FIG. Determine if it needs to be changed to. When the acquisition processing unit 305 determines that it is necessary to change the operating state of the control device 20 to the stopped state, the acquisition processing unit 305 executes the process of step S201. For example, when the simultaneity of the internal memory data to be acquired is required, it is desirable that the acquisition processing unit 305 changes the operating state of the control device 20 to the stopped state. Since a predetermined acquisition period occurs in the acquisition process of the internal memory data by the acquisition processing unit 305, if the operating state of the control device 20 remains in the operating state, between the internal memory data acquired at the beginning and the end of the acquisition period. So, a time lag occurs. When the acquisition processing unit 305 determines that it is not necessary to change the operating state of the control device 20 to the stopped state, the acquisition processing unit 305 executes the process of step S202. For example, when the control device 20 is in the operating state and changing to the stopped state affects the operation of the site, it is desirable that the acquisition processing unit 305 keeps the operating state of the control device 20 in the operating state.

ステップS201では、制御部24、例えば取得処理部305は、内部メモリデータを取得する動作の前に制御装置20の運転状態を停止状態に変更する。 In step S201, the control unit 24, for example, the acquisition processing unit 305, changes the operating state of the control device 20 to the stopped state before the operation of acquiring the internal memory data.

ステップS202では、制御部24、例えば取得処理部305は、図3のステップS104において生成されたコマンド情報を処理し、記憶部22に格納されている内部メモリデータの少なくとも一部を可搬記憶媒体400に格納する。 In step S202, the control unit 24, for example, the acquisition processing unit 305 processes the command information generated in step S104 of FIG. 3, and at least a part of the internal memory data stored in the storage unit 22 is a portable storage medium. Store in 400.

ステップS203では、制御部24、例えば取得処理部305は、内部メモリデータの取得後に制御装置20の運転状態が稼働状態にあるか否かを判定する。取得処理部305は、運転状態が稼働状態にあると判定すると、ステップS204の処理を実行する。取得処理部305は、運転状態が停止状態にあると判定すると、ステップS206の処理を実行する。 In step S203, the control unit 24, for example, the acquisition processing unit 305, determines whether or not the operating state of the control device 20 is in the operating state after the acquisition of the internal memory data. When the acquisition processing unit 305 determines that the operating state is in the operating state, the acquisition processing unit 305 executes the process of step S204. When the acquisition processing unit 305 determines that the operating state is in the stopped state, the acquisition processing unit 305 executes the process of step S206.

ステップS204では、制御部24、例えば取得処理部305は、図3のステップS105において生成された制御情報に基づいて、内部メモリデータの取得後に制御装置20の運転状態を稼働状態から停止状態に変更する必要があるか否かを判定する。取得処理部305は、制御装置20の運転状態を稼働状態から停止状態に変更する必要があると判定すると、ステップS205の処理を実行する。取得処理部305は、制御装置20の運転状態を稼働状態から停止状態に変更する必要がないと判定すると、処理を終了する。 In step S204, the control unit 24, for example, the acquisition processing unit 305, changes the operating state of the control device 20 from the operating state to the stopped state after acquiring the internal memory data based on the control information generated in step S105 of FIG. Determine if it needs to be done. When the acquisition processing unit 305 determines that it is necessary to change the operating state of the control device 20 from the operating state to the stopped state, the acquisition processing unit 305 executes the process of step S205. When the acquisition processing unit 305 determines that it is not necessary to change the operating state of the control device 20 from the operating state to the stopped state, the acquisition processing unit 305 ends the processing.

ステップS205では、制御部24、例えば取得処理部305は、内部メモリデータを取得する動作の後に制御装置20の運転状態を稼働状態から停止状態に変更する。 In step S205, the control unit 24, for example, the acquisition processing unit 305, changes the operating state of the control device 20 from the operating state to the stopped state after the operation of acquiring the internal memory data.

ステップS206では、制御部24、例えば取得処理部305は、図3のステップS105において生成された制御情報に基づいて、内部メモリデータの取得後に制御装置20の運転状態を停止状態から稼働状態に変更する必要があるか否かを判定する。取得処理部305は、制御装置20の運転状態を停止状態から稼働状態に変更する必要があると判定すると、ステップS207の処理を実行する。取得処理部305は、制御装置20の運転状態を停止状態から稼働状態に変更する必要がないと判定すると、処理を終了する。 In step S206, the control unit 24, for example, the acquisition processing unit 305, changes the operating state of the control device 20 from the stopped state to the operating state after acquiring the internal memory data based on the control information generated in step S105 of FIG. Determine if it needs to be done. When the acquisition processing unit 305 determines that it is necessary to change the operating state of the control device 20 from the stopped state to the operating state, the acquisition processing unit 305 executes the process of step S207. When the acquisition processing unit 305 determines that it is not necessary to change the operating state of the control device 20 from the stopped state to the operating state, the acquisition processing unit 305 ends the processing.

ステップS207では、制御部24、例えば取得処理部305は、内部メモリデータを取得する動作の後に制御装置20の運転状態を停止状態から稼働状態に変更する。 In step S207, the control unit 24, for example, the acquisition processing unit 305, changes the operating state of the control device 20 from the stopped state to the operating state after the operation of acquiring the internal memory data.

図5は、図1の情報処理システム1の第3動作を説明するためのフローチャートである。図5を参照しながら、情報処理システム1の第3動作について主に説明する。当該第3動作は、例えば、図4のステップS202において必要なデータが格納された可搬記憶媒体400が情報処理装置10の読込部15に装着されることで、情報処理装置10の制御部16によって実行される。 FIG. 5 is a flowchart for explaining the third operation of the information processing system 1 of FIG. The third operation of the information processing system 1 will be mainly described with reference to FIG. In the third operation, for example, the portable storage medium 400 in which the necessary data is stored in step S202 of FIG. 4 is attached to the reading unit 15 of the information processing device 10, so that the control unit 16 of the information processing device 10 is mounted. Is executed by.

ステップS300では、情報処理装置10の制御部16、例えば読込変換部105は、図4のステップS202において制御装置20の記憶部22から取得した内部メモリデータを、可搬記憶媒体400から読み込む。 In step S300, the control unit 16 of the information processing device 10, for example, the read conversion unit 105, reads the internal memory data acquired from the storage unit 22 of the control device 20 in step S202 of FIG. 4 from the portable storage medium 400.

ステップS301では、制御部16、例えば読込変換部105は、ステップS300において読み込まれた内部メモリデータの少なくとも一部を、PLCシミュレータ200が読み取ることのできるデータ形式に変換する。 In step S301, the control unit 16, for example, the read conversion unit 105, converts at least a part of the internal memory data read in step S300 into a data format that can be read by the PLC simulator 200.

ステップS302では、制御部16、例えば読込変換部105は、ステップS301において変換されたデータをPLCシミュレータ200上の内部メモリ205により情報処理装置10の記憶部12に反映するためのコマンドを、通信制御部103を経由して再現部207に送信する。 In step S302, the control unit 16, for example, the read conversion unit 105, communicate controls a command for reflecting the data converted in step S301 in the storage unit 12 of the information processing device 10 by the internal memory 205 on the PLC simulator 200. It is transmitted to the reproduction unit 207 via the unit 103.

ステップS303では、制御部16は、PLCシミュレータ200が機能している場合、その機能を停止させる。例えば、ユーザは、PLCシミュレータ200のデバッグ機能を利用する際に、制御装置20の記憶部22から取得した内部メモリデータをPLCシミュレータ200上に再現してPLCシミュレータ200の機能を一旦停止させるのが一般的である。また、実際問題として、内部メモリデータの再現後にPLCシミュレータ200上で制御装置20の状態をユーザが確認せずにシミュレーション動作を開始させることは考えにくい。したがって、制御部16は、強制的にPLCシミュレータ200の機能を停止させる。これにより、制御部16は、内部メモリデータの再現時に当該機能を停止させる、又は維持するといった判定処理を実行する必要がない。したがって、制御部16による処理が簡易的になる。 In step S303, if the PLC simulator 200 is functioning, the control unit 16 stops the function. For example, when the user uses the debug function of the PLC simulator 200, the user reproduces the internal memory data acquired from the storage unit 22 of the control device 20 on the PLC simulator 200 and temporarily stops the function of the PLC simulator 200. It is common. Further, as a practical problem, it is unlikely that the simulation operation is started without the user confirming the state of the control device 20 on the PLC simulator 200 after reproducing the internal memory data. Therefore, the control unit 16 forcibly stops the function of the PLC simulator 200. As a result, the control unit 16 does not need to execute a determination process such as stopping or maintaining the function when the internal memory data is reproduced. Therefore, the processing by the control unit 16 becomes simple.

ステップS304では、制御部16、例えば再現部207は、ステップS302において読込変換部105から受信したコマンドに基づいて、制御装置20の状態のシミュレーションに用いられるメモリデータを更新する。 In step S304, the control unit 16, for example, the reproduction unit 207 updates the memory data used for simulating the state of the control device 20 based on the command received from the read conversion unit 105 in step S302.

ステップS305では、制御部16は、PLCシミュレータ200の機能を再実行する必要があるか否かを判定する。制御部16は、PLCシミュレータ200の機能を再実行する必要があると判定すると、ステップS306の処理を実行する。例えば、再現された制御装置20の状態をユーザが一通り確認した後、その後の制御装置20の状態を把握したい場合に、制御部16は、ステップS306の処理を実行する。制御部16は、PLCシミュレータ200の機能を再実行する必要がないと判定すると、処理を終了する。例えば、再現された制御装置20の状態をユーザが念入りに確認する必要がある場合に、制御部16は、処理を終了する。このとき、ユーザは、PLCシミュレータ200の機能を再実行させずに、デバッグの作業を行う。 In step S305, the control unit 16 determines whether or not it is necessary to re-execute the function of the PLC simulator 200. When the control unit 16 determines that the function of the PLC simulator 200 needs to be re-executed, the control unit 16 executes the process of step S306. For example, when the user wants to grasp the state of the control device 20 after the user has confirmed the reproduced state of the control device 20, the control unit 16 executes the process of step S306. When the control unit 16 determines that it is not necessary to re-execute the function of the PLC simulator 200, the control unit 16 ends the process. For example, when the user needs to carefully check the reproduced state of the control device 20, the control unit 16 ends the process. At this time, the user performs the debugging work without re-executing the function of the PLC simulator 200.

ステップS306では、制御部16は、PLCシミュレータ200の機能を再実行する。 In step S306, the control unit 16 re-executes the function of the PLC simulator 200.

以上のような一実施形態に係る情報処理装置10によれば、制御装置20の状態を精度良く再現できる。より具体的には、制御部16は、制御装置20から取得された内部メモリデータの少なくとも一部に基づいて、制御装置20の状態のシミュレーションに用いられるメモリデータを更新する。制御装置20の内部メモリデータ内には、接続機器及び制御装置20自体に関する状態についてのデータが含まれている。例えば、制御装置20の内部メモリデータ内には、制御装置20のエラー状態についてのデータが含まれている。したがって、制御部16は、制御装置20で使用している内部メモリデータの所定の範囲を取得してPLCシミュレータ200上に読み込むことで、制御装置20と同等の状態を精度良く再現することができる。これにより、ユーザは、制御装置20の内部メモリデータを再現した状態からPLCシミュレータ200の機能を再実行することで、制御装置20の実際の状態により近付けて精度良くシミュレーションを行うことができる。 According to the information processing device 10 according to the above embodiment, the state of the control device 20 can be accurately reproduced. More specifically, the control unit 16 updates the memory data used for simulating the state of the control device 20 based on at least a part of the internal memory data acquired from the control device 20. The internal memory data of the control device 20 includes data on the state of the connected device and the control device 20 itself. For example, the internal memory data of the control device 20 includes data about the error state of the control device 20. Therefore, the control unit 16 can accurately reproduce the same state as the control device 20 by acquiring a predetermined range of the internal memory data used by the control device 20 and reading it onto the PLC simulator 200. .. As a result, the user can re-execute the function of the PLC simulator 200 from the state in which the internal memory data of the control device 20 is reproduced, so that the simulation can be performed more accurately than the actual state of the control device 20.

例えば、制御部16は、制御装置20がエラー状態にあるときに内部メモリデータを取得してPLCシミュレータ200上に再現すると、制御装置20のエラー状態を含めて制御装置20の状態をPLCシミュレータ200上に再現できる。すなわち、制御部16は、制御装置20のエラー状態を擬似的に再現することができる。ユーザは、PLCシミュレータ200上に再現されたエラー状態に基づいて、現場に設置されている制御装置20のエラー状態を擬似的にデバッグすることができる。 For example, when the control unit 16 acquires the internal memory data and reproduces it on the PLC simulator 200 when the control device 20 is in the error state, the state of the control device 20 including the error state of the control device 20 is displayed on the PLC simulator 200. Can be reproduced above. That is, the control unit 16 can simulate the error state of the control device 20. The user can simulate the error state of the control device 20 installed in the field based on the error state reproduced on the PLC simulator 200.

ユーザは、制御装置20が設置されている現場へ移動することなく、PLCシミュレータ200上でエラー状態のデバッグを行うことができる。したがって、移動コストが削減可能である。ユーザは、PLCシミュレータ200上のデバッグでエラーを解決できず、現地でデバッグを行う必要がある場合であっても、すでにPLCシミュレータ200上でエラーの状態を確認している。したがって、ユーザは、現地でのデバッグ作業を効率良く行うことができる。これにより、デバッグ作業に係る対応工数が削減される。加えて、ユーザは、現場に設置されている制御装置20の状態を認識して現場に移動するので、心理的な負荷を軽減可能である。 The user can debug the error state on the PLC simulator 200 without moving to the site where the control device 20 is installed. Therefore, the travel cost can be reduced. The user has already confirmed the error status on the PLC simulator 200 even if the error cannot be resolved by debugging on the PLC simulator 200 and it is necessary to perform debugging on site. Therefore, the user can efficiently perform the debugging work in the field. As a result, the man-hours required for debugging work are reduced. In addition, since the user recognizes the state of the control device 20 installed at the site and moves to the site, the psychological load can be reduced.

制御部16は、制御装置20の状態をPLCシミュレータ200上に精度良く再現することができる。したがって、ユーザは、エラー解析の用途だけでなく、現場に設置されている制御装置20の動作の理解を深める用途で、又は制御装置20の使用方法に関する教育用途で情報処理装置10を使用することもできる。 The control unit 16 can accurately reproduce the state of the control device 20 on the PLC simulator 200. Therefore, the user uses the information processing device 10 not only for error analysis but also for deepening the understanding of the operation of the control device 20 installed in the field, or for educational purposes regarding how to use the control device 20. You can also.

制御部16は、生成された管理情報を参照して取得されたデータ使用範囲に基づいてデータ取得範囲を設定することで、PLCシミュレータ200のプログラムを利用して内部メモリデータのデータ取得範囲を自動で設定することができる。これにより、内部メモリデータのデータ取得範囲の設定処理が簡易化される。したがって、情報処理装置10を用いるユーザにとって、情報処理装置10の利便性が向上する。 The control unit 16 automatically sets the data acquisition range of the internal memory data by using the program of the PLC simulator 200 by setting the data acquisition range based on the data usage range acquired by referring to the generated management information. Can be set with. This simplifies the process of setting the data acquisition range of the internal memory data. Therefore, the convenience of the information processing device 10 is improved for the user who uses the information processing device 10.

このように、内部メモリデータのデータ取得範囲が自動的に設定されれば、内部メモリデータを取得するためのコマンド情報を生成する工数が削減される。加えて、制御部16は、必要最小限のデータ取得範囲を設定することが可能となる。したがって、コマンド情報を含む実行形式型のファイル自体のファイルサイズが削減される。かつ、制御装置20から内部メモリデータを取得するときのデータ容量も削減され、データ転送にかかる時間も短縮可能である。 If the data acquisition range of the internal memory data is automatically set in this way, the man-hours for generating the command information for acquiring the internal memory data can be reduced. In addition, the control unit 16 can set the minimum necessary data acquisition range. Therefore, the file size of the executable file itself containing the command information is reduced. In addition, the data capacity when acquiring the internal memory data from the control device 20 is also reduced, and the time required for data transfer can be shortened.

制御部16が、生成されたコマンド情報を可搬記憶媒体400に格納することで、ユーザは、制御装置20の内部メモリデータを取得するときに、可搬記憶媒体400を読込部23に装着する動作だけ行えばよい。これにより、現地ユーザでも、制御装置20の内部メモリデータの取得作業に容易に対応することができる。したがって、情報処理システム1を用いるユーザにとって、情報処理システム1の利便性が向上する。 The control unit 16 stores the generated command information in the portable storage medium 400, so that the user attaches the portable storage medium 400 to the reading unit 23 when acquiring the internal memory data of the control device 20. You only have to do the operation. As a result, even a local user can easily handle the work of acquiring the internal memory data of the control device 20. Therefore, the convenience of the information processing system 1 is improved for the user who uses the information processing system 1.

ユーザは、制御装置20の内部メモリデータを取得する機能として、制御装置20に備わっている既存機能を利用することができる。すなわち、ユーザは、既存の制御装置20設備に対して変更を加える必要がない。 The user can use the existing function provided in the control device 20 as a function of acquiring the internal memory data of the control device 20. That is, the user does not need to make any changes to the existing control device 20 equipment.

ユーザは、制御装置20の内部メモリデータを取得するときに、可搬記憶媒体400が用いられることで、情報処理装置10及び制御装置20のそれぞれをネットワークに直接接続する必要がない。したがって、ユーザは、ネットワークセキュリティに対して厳しい現場であっても、安心して内部メモリデータの取得作業を行うことができる。 Since the portable storage medium 400 is used when acquiring the internal memory data of the control device 20, the user does not need to directly connect each of the information processing device 10 and the control device 20 to the network. Therefore, the user can perform the work of acquiring the internal memory data with peace of mind even in a field where network security is strict.

制御部16が、内部メモリデータの少なくとも一部を可搬記憶媒体400から読み込むことで、ユーザは、制御装置20の内部メモリデータに基づいて情報処理装置10のメモリデータを更新するときに、可搬記憶媒体400を読込部15に装着する動作だけ行えばよい。これにより、ユーザは、情報処理装置10のメモリデータの更新作業を容易に行うことができる。したがって、情報処理システム1を用いるユーザにとって、情報処理システム1の利便性が向上する。 When the control unit 16 reads at least a part of the internal memory data from the portable storage medium 400, the user can update the memory data of the information processing device 10 based on the internal memory data of the control device 20. Only the operation of attaching the carry-in storage medium 400 to the reading unit 15 needs to be performed. As a result, the user can easily update the memory data of the information processing device 10. Therefore, the convenience of the information processing system 1 is improved for the user who uses the information processing system 1.

ユーザは、情報処理装置10のメモリデータを更新するときに、可搬記憶媒体400が用いられることで、情報処理装置10及び制御装置20のそれぞれをネットワークに直接接続する必要がない。したがって、ユーザは、現場がネットワークセキュリティに対して厳しい環境であっても、安心してメモリデータの更新作業を行うことができる。 Since the portable storage medium 400 is used when updating the memory data of the information processing device 10, the user does not need to directly connect each of the information processing device 10 and the control device 20 to the network. Therefore, the user can update the memory data with peace of mind even if the site is in a strict environment for network security.

制御部16は、制御装置20の運転状態を制御するための制御情報を生成することで、制御装置20の内部メモリデータを取得するときの制御装置20の運転状態を制御可能である。ユーザは、情報処理装置10の入力部13及び出力部14を用いて、自身が希望する制御内容に基づく制御情報を容易に作成することができる。これにより、情報処理装置10を用いるユーザにとって、情報処理装置10の利便性が向上する。 The control unit 16 can control the operating state of the control device 20 when acquiring the internal memory data of the control device 20 by generating control information for controlling the operating state of the control device 20. The user can easily create control information based on the control content desired by the user by using the input unit 13 and the output unit 14 of the information processing device 10. As a result, the convenience of the information processing device 10 is improved for the user who uses the information processing device 10.

本開示を諸図面及び実施例に基づき説明してきたが、当業者であれば本開示に基づき種々の変形及び修正を行うことが容易であることに注意されたい。したがって、これらの変形及び修正は本開示の範囲に含まれることに留意されたい。例えば、各構成又は各ステップ等に含まれる機能等は論理的に矛盾しないように再配置可能であり、複数の構成又はステップ等を1つに組み合わせたり、或いは分割したりすることが可能である。 Although the present disclosure has been described based on the drawings and examples, it should be noted that those skilled in the art can easily make various modifications and modifications based on the present disclosure. It should be noted, therefore, that these modifications and modifications are within the scope of this disclosure. For example, the functions and the like included in each configuration or each step and the like can be rearranged so as not to be logically inconsistent, and a plurality of configurations or steps and the like can be combined or divided into one. ..

例えば、本開示は、上述した情報処理システム1の各機能を実現する処理内容を記述したプログラム又はプログラムを記録した記憶媒体としても実現し得る。本開示の範囲には、これらも包含されると理解されたい。 For example, the present disclosure can also be realized as a program describing processing contents that realize each function of the information processing system 1 described above, or as a storage medium on which the program is recorded. It should be understood that the scope of this disclosure also includes these.

上記では、一の情報処理装置10が制御プログラム開発支援機能100及びPLCシミュレータ200の2つの機能を有するとして説明したが、これに限定されない。制御プログラム開発支援機能100及びPLCシミュレータ200は、互いに任意の方法で通信可能に接続されている2つの情報処理装置に対してそれぞれ別々に備わっていてもよい。このとき、PLCシミュレータ200を実行する上で必要となる上述した各種情報は、PLCシミュレータ200が備わっている情報処理装置の任意の記憶媒体に格納されていてもよい。 In the above, one information processing apparatus 10 has been described as having two functions of the control program development support function 100 and the PLC simulator 200, but the present invention is not limited to this. The control program development support function 100 and the PLC simulator 200 may be separately provided for two information processing devices that are communicatively connected to each other by any method. At this time, the various information required for executing the PLC simulator 200 may be stored in an arbitrary storage medium of the information processing device provided with the PLC simulator 200.

上記では、可搬記憶媒体400によって、制御装置20の内部メモリデータを取得し、情報処理装置10のメモリデータを更新するとして説明したが、これに限定されない。例えば、制御装置20は、取得コマンド作成部104によって生成された上記のコマンド情報を、ネットワークを介して情報処理装置10から受信し、受信したコマンド情報に基づいて、取得処理部305の機能を実行してもよい。例えば、情報処理装置10は、取得処理部305によって取得された内部メモリデータを、ネットワークを介して制御装置20から受信し、受信した内部メモリデータに基づいて、読込変換部105及び再現部207の機能を実行してもよい。 In the above description, it has been described that the internal memory data of the control device 20 is acquired by the portable storage medium 400 and the memory data of the information processing device 10 is updated, but the present invention is not limited to this. For example, the control device 20 receives the above command information generated by the acquisition command creation unit 104 from the information processing device 10 via the network, and executes the function of the acquisition processing unit 305 based on the received command information. You may. For example, the information processing device 10 receives the internal memory data acquired by the acquisition processing unit 305 from the control device 20 via the network, and based on the received internal memory data, the read conversion unit 105 and the reproduction unit 207 You may perform the function.

上記では、PLCシミュレータ200と同一のPLCプログラムがPLC300にダウンロードされているとして、取得コマンド作成部104による内部メモリデータのデータ取得範囲の自動設定について説明したが、これに限定されない。PLCシミュレータ200のPLCプログラムとPLC300のPLCプログラムとは、互いに異なるものであってもよい。 In the above, assuming that the same PLC program as the PLC simulator 200 is downloaded to the PLC 300, the automatic setting of the data acquisition range of the internal memory data by the acquisition command creation unit 104 has been described, but the present invention is not limited to this. The PLC program of the PLC simulator 200 and the PLC program of the PLC 300 may be different from each other.

例えば、制御装置20の読込部23に装着された可搬記憶媒体400は、制御装置20の内部メモリデータを定期的に取得してもよい。これにより、制御部16は、PLCシミュレータ200上において、制御装置20の状態を時系列で再現することも可能である。 For example, the portable storage medium 400 mounted on the reading unit 23 of the control device 20 may periodically acquire the internal memory data of the control device 20. As a result, the control unit 16 can also reproduce the state of the control device 20 in time series on the PLC simulator 200.

1 情報処理システム
10 情報処理装置
11 通信部
12 記憶部
13 入力部
14 出力部
15 読込部
16 制御部
20 制御装置
21 通信部
22 記憶部
23 読込部
24 制御部
100 制御プログラム開発支援機能
101 ラダー言語プログラミング部
102 プログラム変換部
103 通信制御部
104 取得コマンド作成部
105 読込変換部
200 PLCシミュレータ
201 プログラム格納部
202 実行型中間言語変換部
203 実行型中間言語格納部
204 演算処理部
205 内部メモリ
206 使用範囲抽出部
207 再現部
300 PLC
301 プログラム格納部
302 プログラム実行部
303 プログラム演算処理部
304 内部メモリ
305 取得処理部
400 可搬記憶媒体
1 Information processing system 10 Information processing device 11 Communication unit 12 Storage unit 13 Input unit 14 Output unit 15 Reading unit 16 Control unit 20 Control device 21 Communication unit 22 Storage unit 23 Reading unit 24 Control unit 100 Control program development support function 101 Ladder language Programming unit 102 Program conversion unit 103 Communication control unit 104 Acquisition command creation unit 105 Read conversion unit 200 PLC simulator 201 Program storage unit 202 Execution type intermediate language conversion unit 203 Execution type intermediate language storage unit 204 Arithmetic processing unit 205 Internal memory 206 Usage range Extraction unit 207 Reproduction unit 300 PLC
301 Program storage unit 302 Program execution unit 303 Program calculation processing unit 304 Internal memory 305 Acquisition processing unit 400 Portable storage medium

Claims (6)

制御対象を制御する制御装置と通信可能に接続される情報処理装置に、
前記制御装置に格納され、前記制御装置の状態を反映した内部メモリデータを取得するときのデータ取得範囲を設定するステップと、
設定された前記データ取得範囲に基づいて前記内部メモリデータの少なくとも一部を前記制御装置から取得するためのコマンド情報を生成するステップと、
前記コマンド情報によって前記制御装置から取得された前記内部メモリデータの少なくとも一部に基づいて、前記制御装置の状態のシミュレーションに用いられるメモリデータを更新するステップと、
を実行させる、
プログラム。
For information processing devices that are communicatively connected to the control device that controls the control target,
A step of setting a data acquisition range when acquiring internal memory data stored in the control device and reflecting the state of the control device, and
A step of generating command information for acquiring at least a part of the internal memory data from the control device based on the set data acquisition range, and
A step of updating the memory data used for simulating the state of the control device based on at least a part of the internal memory data acquired from the control device by the command information.
To execute,
program.
請求項1に記載のプログラムであって、
前記制御装置の状態のシミュレーションに実際に用いられる前記メモリデータのデータ使用範囲を管理するための管理情報を生成するステップと、
生成された前記管理情報を参照して前記メモリデータの前記データ使用範囲を取得するステップと、
を実行させ、
前記データ取得範囲を設定するステップにおいて、取得された前記データ使用範囲に基づいて前記データ取得範囲が設定される、
プログラム。
The program according to claim 1.
A step of generating management information for managing the data usage range of the memory data actually used for simulating the state of the control device, and a step of generating management information.
A step of acquiring the data usage range of the memory data by referring to the generated management information, and
To execute,
In the step of setting the data acquisition range, the data acquisition range is set based on the acquired data usage range.
program.
請求項1又は2に記載のプログラムであって、
生成された前記コマンド情報を、前記情報処理装置及び前記制御装置によって読み込み可能な可搬記憶媒体に格納するステップを実行させる、
プログラム。
The program according to claim 1 or 2.
A step of storing the generated command information in a portable storage medium readable by the information processing device and the control device is executed.
program.
請求項1乃至3のいずれか1項に記載のプログラムであって、
前記コマンド情報によって前記制御装置から取得された前記内部メモリデータの少なくとも一部を記憶する、前記情報処理装置及び前記制御装置によって読み込み可能な可搬記憶媒体から、前記内部メモリデータの少なくとも一部を読み込むステップを実行させる、
プログラム。
The program according to any one of claims 1 to 3.
At least a part of the internal memory data is stored from the information processing device and the portable storage medium readable by the control device, which stores at least a part of the internal memory data acquired from the control device by the command information. Perform the loading step,
program.
請求項1乃至4のいずれか1項に記載のプログラムであって、
前記内部メモリデータの少なくとも一部を前記制御装置から取得するときに前記制御装置の運転状態を制御するための制御情報を生成するステップを実行させる、
プログラム。
The program according to any one of claims 1 to 4.
When acquiring at least a part of the internal memory data from the control device, a step of generating control information for controlling the operating state of the control device is executed.
program.
制御対象を制御する制御装置と通信可能に接続される、制御部を有する情報処理装置であって、
前記制御部は、
前記制御装置に格納され、前記制御装置の状態を反映した内部メモリデータを取得するときのデータ取得範囲を設定し、
設定された前記データ取得範囲に基づいて前記内部メモリデータの少なくとも一部を前記制御装置から取得するためのコマンド情報を生成し、
前記コマンド情報によって前記制御装置から取得された前記内部メモリデータの少なくとも一部に基づいて、前記制御装置の状態のシミュレーションに用いられるメモリデータを更新する、
情報処理装置。
An information processing device having a control unit that is communicably connected to a control device that controls a control target.
The control unit
Set the data acquisition range when acquiring the internal memory data stored in the control device and reflecting the state of the control device.
Generates command information for acquiring at least a part of the internal memory data from the control device based on the set data acquisition range.
The memory data used for simulating the state of the control device is updated based on at least a part of the internal memory data acquired from the control device by the command information.
Information processing device.
JP2019194662A 2019-10-25 2019-10-25 Programs and information processing equipment Active JP7415436B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019194662A JP7415436B2 (en) 2019-10-25 2019-10-25 Programs and information processing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019194662A JP7415436B2 (en) 2019-10-25 2019-10-25 Programs and information processing equipment

Publications (2)

Publication Number Publication Date
JP2021068313A true JP2021068313A (en) 2021-04-30
JP7415436B2 JP7415436B2 (en) 2024-01-17

Family

ID=75637350

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019194662A Active JP7415436B2 (en) 2019-10-25 2019-10-25 Programs and information processing equipment

Country Status (1)

Country Link
JP (1) JP7415436B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015166563A1 (en) * 2014-04-30 2015-11-05 三菱電機株式会社 Simulation system, programmable controller, simulation device, and engineering tool
JP2019159697A (en) * 2018-03-12 2019-09-19 オムロン株式会社 Control system and control method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015166563A1 (en) * 2014-04-30 2015-11-05 三菱電機株式会社 Simulation system, programmable controller, simulation device, and engineering tool
JP2019159697A (en) * 2018-03-12 2019-09-19 オムロン株式会社 Control system and control method

Also Published As

Publication number Publication date
JP7415436B2 (en) 2024-01-17

Similar Documents

Publication Publication Date Title
US7703032B2 (en) Binding a GUI element to live measurement data
US8126695B2 (en) Systems and methods for event based execution of fieldbus process control strategies
US10198536B2 (en) Simulation system, method for carrying out a simulation, control system, and computer program product
JP2016012172A (en) Communication system, programmable display, information processing device, operation control method, information processing method, and program
CN109783355A (en) Page elements acquisition methods, system, computer equipment and readable storage medium storing program for executing
CN102739470A (en) Method and device for realizing Hadoop system testing
JP2016224558A (en) Program creation support device, control method, and program
JP2016525731A (en) Program test service
CN103970967B (en) A kind of electromagnetic transient in power system simulation analysis system
US8554528B2 (en) Systems and methods for simulating fieldbus devices
CN101526805A (en) PLC analog control system and analog control method thereof
US20140222408A1 (en) Simulation system, method of carrying out a simulation, guidance system and computer program product
JP7415436B2 (en) Programs and information processing equipment
CN116108645A (en) Engineering digital twin method based on meta universe
Karla et al. Cross-platform real-time nuclear reactor basic principle simulator
Voudoukis Arduino Based Embedded System and Remote Access Technologies of Environmental Variables Monitoring
Zhou Soft PLC Research And Development System Based On PC
EP4167079A1 (en) Method and system for generating and optimizing engineering programs for a technical installation
CN116502433B (en) Virtual inverter and energy monitoring system development method
JPWO2013005350A1 (en) Symbol table generation method, communication method with peripheral device, and programmable logic controller
Geng et al. Automated code generation for development of electric vehicle controller
Wu et al. Intelligent control system of water level for boiler drum based on OPC and MATLAB
Kadir et al. Interactive virtual machining system using informative data structure and on-site machine tool status
JP2024062823A (en) Engineering tool device
Elvitigala Low-Cost Hardware-in-the-Loop (HIL) Simulator for Simulation and Analysis of Embedded Systems with Non-Real-Time Applications

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20221013

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230821

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230829

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20231023

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20231218

R150 Certificate of patent or registration of utility model

Ref document number: 7415436

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150