JP5235609B2 - Special unit simulation program creation device, programmable controller simulation device, and method - Google Patents
Special unit simulation program creation device, programmable controller simulation device, and method Download PDFInfo
- Publication number
- JP5235609B2 JP5235609B2 JP2008272795A JP2008272795A JP5235609B2 JP 5235609 B2 JP5235609 B2 JP 5235609B2 JP 2008272795 A JP2008272795 A JP 2008272795A JP 2008272795 A JP2008272795 A JP 2008272795A JP 5235609 B2 JP5235609 B2 JP 5235609B2
- Authority
- JP
- Japan
- Prior art keywords
- unit
- special unit
- special
- request
- cpu
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000004088 simulation Methods 0.000 title claims description 26
- 238000000034 method Methods 0.000 title claims description 15
- 230000004044 response Effects 0.000 claims description 32
- 230000006870 function Effects 0.000 claims description 26
- 238000004364 calculation method Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000009434 installation Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000002360 preparation method Methods 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 238000003860 storage Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Description
本発明は、プログラマブルコントローラ(以下、PLCという)のCPUユニットのCPUユニットプログラムと連携して動作する特殊ユニットの模擬プログラムを特殊ユニットの各種設定を加味して作成する特殊ユニット模擬装置作成装置およびCPUユニットプログラムと特殊ユニットの模擬プログラムとを連携させて動作させるプログラマブルコントローラ模擬装置に関するものである。 The present invention relates to a special unit simulation apparatus creating apparatus and a CPU for creating a special unit simulation program that operates in cooperation with a CPU unit program of a CPU unit of a programmable controller (hereinafter referred to as PLC) in consideration of various settings of the special unit. The present invention relates to a programmable controller simulator for operating a unit program and a special unit simulation program in cooperation with each other.
PLCにPLCのCPUユニットの機能を拡張する特殊ユニットが装着されている場合、PLCのCPUユニットを動作させるCPUユニットプログラムは、特殊ユニットに対して動作を実行させる要求を該特殊ユニットのバッファメモリに書き込む。そして、特殊ユニットは、バッファメモリに書き込まれる要求に基づいて動作し、該要求に対応する応答をバッファメモリに書き込む。そして、CPUユニットプログラムは、書き込まれた応答に基づいて次の要求を算出する演算を行う。 When a special unit that expands the function of the PLC CPU unit is mounted on the PLC, the CPU unit program that operates the PLC CPU unit sends a request to the special unit to execute the operation to the buffer memory of the special unit. Write. The special unit operates based on the request written in the buffer memory, and writes a response corresponding to the request in the buffer memory. Then, the CPU unit program performs an operation for calculating the next request based on the written response.
すなわち、パソコンなどのコンピュータを用いてCPUユニットやPLC全体の動作を模擬するシミュレーション装置において、模擬対象のPLCが特殊ユニットを有している場合、該特殊ユニットの動作を模擬する必要があった。そのため、プログラマは、CPUユニットの動作を制御するCPUユニットプログラムとは別に、特殊ユニットの動作を模擬する特殊ユニット模擬プログラムを作成していた。 That is, in a simulation apparatus that simulates the operation of the CPU unit and the entire PLC using a computer such as a personal computer, it is necessary to simulate the operation of the special unit when the PLC to be simulated has a special unit. For this reason, the programmer has created a special unit simulation program for simulating the operation of the special unit separately from the CPU unit program for controlling the operation of the CPU unit.
これに関連して、特許文献1によれば、CPUユニットから位置決めユニットへ送信する位置決めデータと、位置決めユニットからCPUユニットへ送信する完了データと、の対応を記憶し、該対応を使用して前記バッファメモリを読み書きする位置決めユニットの動作を模擬する技術が開示されている。 In relation to this, according to Patent Document 1, a correspondence between positioning data transmitted from the CPU unit to the positioning unit and completion data transmitted from the positioning unit to the CPU unit is stored, and the correspondence is used to A technique for simulating the operation of a positioning unit that reads and writes a buffer memory is disclosed.
しかしながら、上記する特殊ユニット模擬プログラムを作成する方法によると、特殊ユニットの装着位置によって該特殊ユニットのバッファメモリに割り付けられるメモリアドレスが変化するため、装着位置を変更すると、特殊ユニット模擬プログラムも変更する必要があった。また、特殊ユニットの動作は、特殊ユニット毎の動作設定パラメータによって変化するため、動作設定パラメータが変更された際にも特殊ユニット模擬プログラムを変更する必要があった。 However, according to the method for creating the special unit simulation program described above, since the memory address assigned to the buffer memory of the special unit changes depending on the installation position of the special unit, changing the installation position also changes the special unit simulation program. There was a need. Further, since the operation of the special unit changes depending on the operation setting parameter for each special unit, it is necessary to change the special unit simulation program even when the operation setting parameter is changed.
上記特許文献1の技術は、装着位置により変化するメモリアドレスや、動作設定パラメータにより変化する特殊ユニットの動作が考慮された技術ではなかった。 The technique of the above-mentioned Patent Document 1 is not a technique that takes into consideration the memory address that changes depending on the mounting position and the operation of the special unit that changes depending on the operation setting parameter.
本発明は、上記に鑑みてなされたものであって、PLCのCPUユニットのCPUユニットプログラムと連携して動作する特殊ユニットの模擬プログラムを特殊ユニットの各種設定を加味して作成する特殊ユニット模擬装置作成装置およびCPUユニットプログラムと特殊ユニットの模擬プログラムとを連携させて動作させるプログラマブルコントローラ模擬装置を得ることを目的とする。 The present invention has been made in view of the above, and a special unit simulation apparatus that creates a special unit simulation program that operates in cooperation with a CPU unit program of a PLC CPU unit in consideration of various special unit settings. It is an object of the present invention to obtain a programmable controller simulation device that operates a creation device, a CPU unit program and a special unit simulation program in cooperation with each other.
上述した課題を解決し、目的を達成するために、本発明は、プログラマブルコントローラのCPUユニットの機能を拡張する特殊ユニットであって、CPUユニットによるI/O要求処理によって要求が書き込まれるとともに、特殊ユニットによるI/O応答処理によって前記書き込まれた要求が読み出され、該読み出された要求に対応する応答が書き込まれるバッファメモリを有する特殊ユニットの前記I/O応答処理の際の動作を模擬する特殊ユニット模擬プログラムを作成する特殊ユニット模擬プログラム作成装置において、
特殊ユニットの種類と、前記バッファメモリをCPUユニットのメモリ空間に対して割り付けるためのI/O割り付け情報と、前記特殊ユニットに設定される動作設定値と、を取得する情報取得手段と、前記情報取得手段が取得した特殊ユニットの種類、I/O割り付け情報および動作設定値に基づいて前記特殊ユニットが実行するI/O応答処理を模擬する特殊ユニット模擬プログラムを作成する作成手段と、を備えることを特徴とする。
In order to solve the above-described problems and achieve the object, the present invention is a special unit that expands the function of the CPU unit of the programmable controller, and the request is written by the I / O request processing by the CPU unit, The written request is read by the I / O response processing by the unit, and the operation at the time of the I / O response processing of the special unit having a buffer memory in which the response corresponding to the read request is written is simulated. In the special unit simulation program creation device that creates the special unit simulation program
Information acquisition means for acquiring the type of special unit, I / O allocation information for allocating the buffer memory to the memory space of the CPU unit, and operation setting values set in the special unit, and the information Creating means for creating a special unit simulation program for simulating I / O response processing executed by the special unit based on the type of special unit acquired by the acquisition means, I / O allocation information, and operation setting value It is characterized by.
この発明によれば、PLCのCPUユニットのCPUユニットプログラムと連携して動作する特殊ユニットの模擬プログラムを特殊ユニットの各種設定を加味して作成する特殊ユニット模擬装置作成装置を得ることができる。 According to the present invention, it is possible to obtain a special unit simulation device creating apparatus that creates a special unit simulation program that operates in cooperation with the CPU unit program of the PLC CPU unit, taking into account various special unit settings.
以下に、本発明にかかる特殊ユニット模擬装置作成装置の実施の形態を図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。 Embodiments of a special unit simulation device creating apparatus according to the present invention will be described below in detail with reference to the drawings. Note that the present invention is not limited to the embodiments.
実施の形態.
まず、理解を助けるために、本発明の実施の形態に関連する実機のPLCシステムの構成について説明する。図1は、実機のPLCシステムを概略的に説明する構成図である。
Embodiment.
First, in order to help understanding, the configuration of an actual PLC system related to the embodiment of the present invention will be described. FIG. 1 is a block diagram schematically illustrating an actual PLC system.
図1において、PLCシステム1000は、バスユニット3に、PLCシステム1000全体の動作を制御するCPUユニット1と、特殊ユニット2と、が夫々所定の装着位置に装着された構成となっている。特殊ユニット2は、簡単な演算を行ってCPUユニット1の制御機能を拡張するユニットであって、例えば、アナログ入力ユニット、位置決めユニット、温度入力ユニット、温度調節ユニットなど様々なタイプが存在する。例えば特殊ユニット2が温度調節ユニットである場合は、温度制御ユニットは、CPUユニット1から外部装置に対して温度を所定の温度にするように要求されると、該所定の温度になるように外部装置に対して温度制御を行う。バスユニット3には、この他に、入力ユニット、出力ユニット、多軸の同期制御を行うモーションコントローラユニットなどが用途に合わせて装着されるが、ここではCPUユニット1および特殊ユニット2以外のユニットについての説明は省略する。
In FIG. 1, the
特殊ユニット2は、特殊ユニット2や自ユニット2の制御対象の外部装置に対応して設定される動作設定パラメータ211などの特殊ユニットパラメータ21と、CPUユニット1から自ユニット2に対する要求が書き込まれるメモリであるバッファメモリ22を有する。
The special unit 2 is a memory in which a
CPUユニット1は、特殊ユニット2のバッファメモリ22に書き込む外部装置に対して動作を行わせる要求を算出する動作を含むPLCシステム1000全体の制御動作を実現するラダー言語などで記述されるCPUユニットプログラム11と、特殊ユニット2のタイプや型番など種類を示す特殊ユニット種類情報121とCPUユニット1が使用するメモリ空間にバッファメモリ22を割り付けるI/O割り付け情報122とを含むCPUパラメータ12と、を有する。
The CPU unit 1 is a CPU unit program written in a ladder language or the like that realizes the control operation of the
CPUユニットプログラム11は、特殊ユニット2に対する要求を含む様々な値を算出する演算処理と、該要求を自プログラム11に記述されるメモリ空間におけるメモリアドレスに書き込み、該要求に対する応答を同様に自プログラム11に記述されるメモリアドレスから読み出すI/O要求処理と、をCPUユニット1に実行させる。 The CPU unit program 11 calculates various values including a request for the special unit 2, writes the request to a memory address in the memory space described in the program 11, and similarly sends a response to the request to the program. The CPU unit 1 is caused to execute the I / O request processing read from the memory address described in FIG.
この要求書き込み先および応答読み出し先のメモリ空間のメモリアドレスは、I/O割り付け情報122によって、バッファメモリ22の夫々のメモリアドレスに特殊ユニット2が使用可能に対応づけられている。演算処理により算出され、バッファメモリ22に書き込まれる要求の形態は特に限定されるものではなく、動作命令、動作命令信号、あるいは特殊ユニット2の動作に関する目標数値(例えば温度調節ユニットの場合、温度に相当)など、特殊ユニット2が解釈して動作することが可能な形態であればどのようなものであってもよい。
The memory address of the request write destination and the response read destination memory space is associated with each memory address of the
特殊ユニット2は、内部に有する特殊ユニット動作プログラムに基づいて、バッファメモリ22の前記する要求書き込み先のメモリアドレスに書き込まれた要求を解釈して動作し、動作結果を前記する応答読み出し先のメモリアドレスに書き込むI/O応答処理を行う。具体的には、応答とは、例えば、動作完了応答、動作未完了応答、または動作不可能応答などを含む。さらに、特殊ユニット動作プログラムは、バッファメモリ22に書き込まれた要求を解釈して動作、すなわち制御対象の外部装置を制御するとき、動作設定パラメータ211を使用する。動作設定パラメータ211とは、既に説明したように、特殊ユニット2および制御対象の外部装置に応じて設定される動作設定値であって、例えば特殊ユニット2が位置決めユニットであった場合、制御対象の駆動軸の速度制限値や加速時間などが設定される。
The special unit 2 operates by interpreting the request written in the memory address of the request write destination of the
CPUユニット1にて実行されているCPUユニットプログラム11は、I/O要求処理において読み出した応答に基づいて次の要求を算出する演算処理を実行する。 The CPU unit program 11 being executed by the CPU unit 1 executes arithmetic processing for calculating the next request based on the response read in the I / O request processing.
このように、CPUユニットプログラム11は、特殊ユニット2のI/O応答処理によって得られる応答に基づいて次の演算処理を行うようになっている。したがって、特殊ユニット2を含むPLCシステム1000のCPUユニットプログラム11を例えばパソコンなどのコンピュータ上でCPUユニットプログラムシミュレータ(CPUユニットプログラム模擬装置)を用いて模擬的に実行してデバッグする場合、CPUユニットプログラム11のI/O要求処理に対応してI/O応答処理を模擬的に実行する特殊ユニットシミュレータ(特殊ユニット模擬装置)を用意する必要がある。
As described above, the CPU unit program 11 performs the following arithmetic processing based on the response obtained by the I / O response processing of the special unit 2. Therefore, when the CPU unit program 11 of the
ところで、I/O割り付け情報122は、一般的に、特殊ユニット2が装着されるバスユニット3の装着位置毎にバッファメモリ22を異なるメモリ空間に割り付けるように作成されている。したがって、特殊ユニットシミュレータをコンピュータ上で実現する特殊ユニット模擬プログラムは、バスユニット3の装着位置が変わるごとに書き換えられる必要があった。また、同様に、特殊ユニット2は動作設定パラメータ211にも依存した動作を行うので、特殊ユニット模擬プログラムは、動作設定パラメータ211が変更されるごとに書き換えられる必要があった。本発明にかかる実施の形態の特殊ユニット模擬装置作成装置は、特殊ユニットの種類と、I/O割り付け情報と、動作設定パラメータとを取得し、これらの取得した情報に基づいて自動で特殊ユニット模擬プログラムを作成することが主たる特徴となっている。以下に、本発明にかかる実施の形態の特殊ユニット模擬装置作成装置の詳細を説明する。
Incidentally, the I /
図2は、本発明の実施の形態の特殊ユニット模擬装置作成装置の機能構成を説明する図である。なお、以下の説明においては、I/O割り付け情報122は、バッファメモリ22の先頭アドレスと割り付け先のメモリ空間における先頭アドレスとを対応づけているとして説明する。すなわち、バッファメモリ22に割り付けられたメモリ空間における先頭アドレスからの相対アドレスが、バッファメモリ22の先頭アドレスからの相対アドレスに対応づくようになっている。
FIG. 2 is a diagram for explaining the functional configuration of the special unit simulation apparatus creation device according to the embodiment of the present invention. In the following description, the I /
図2において、特殊ユニット模擬装置作成装置4は、特殊ユニット種類情報121から特殊ユニット12の種類およびI/O割り付け情報122から特殊ユニット12のバッファメモリ22の先頭アドレスが割り付けられるメモリ空間における先頭アドレス(以下、先頭アドレス情報という)を取得するとともに、特殊ユニットパラメータ21から動作設定パラメータ211を取得する、情報取得機能41と、取得した特殊ユニット12の種類、先頭アドレス情報、および動作設定パラメータ211に基づいて特殊ユニット模擬プログラムを作成する機能を構成する特殊ユニット模擬プログラムテンプレート作成機能42およびデフォルト値変更機能43と、を有する。
In FIG. 2, the special unit simulation
特殊ユニット模擬プログラムテンプレート作成機能42は、取得した特殊ユニット12の種類から、該種類に対応した特殊ユニット模擬プログラムのテンプレート、すなわち、プログラム中に含まれるメモリ空間のメモリアドレスおよび動作設定パラメータに仮の値(デフォルト値)が使用されている、特殊ユニット12の動作パターンのみを記述する特殊ユニット模擬プログラムテンプレートを作成する。デフォルト値変更機能43は、作成した特殊ユニット模擬プログラムテンプレートに使用されているデフォルト値を、取得した先頭アドレス情報および動作設定パラメータ211に基づいて変更し、特殊ユニット模擬プログラムを完成する。
The special unit simulation program
ここで、特殊ユニット模擬装置作成装置4は、コンピュータ上で情報取得機能41、特殊ユニット模擬プログラムテンプレート作成機能42、およびデフォルト値変更機能43を実現するプログラムであってよい。また、特殊ユニット模擬装置作成装置4は、PLCシステム1000のCPUパラメータ12および特殊ユニットパラメータ21から特殊ユニットの種類などの情報を直接に取得するようにする必要はなく、例えば、予めユーザがフロッピー(登録商標)ディスクやハードディスクなどの記憶媒体にCPUパラメータ12および特殊ユニットパラメータ21を格納し、特殊ユニット模擬装置作成装置4は、該記録媒体から該当する情報を読み出すようにしてもよい。
Here, the special unit simulation
次に、本実施の形態の特殊ユニット模擬装置作成装置4の動作を説明する。図3は、特殊ユニット模擬装置作成装置4の動作を説明するフローチャートである。
Next, the operation of the special unit simulation
図3において、まず、情報取得機能41がCPUパラメータ12から特殊ユニットの種類と先頭アドレス情報とを取得する(ステップS1)。そして、特殊ユニット模擬プログラムテンプレート作成機能42は、取得した特殊ユニットの種類から、その種類の特殊ユニットに対応する特殊ユニット模擬プログラムテンプレートを作成する(ステップS2)。そして、デフォルト値変更機能43は、取得した先頭アドレス情報に基づいて、特殊ユニット模擬プログラムテンプレートに使用されているメモリアドレスのデフォルト値を変更する(ステップS3)。そして、情報取得機能41は、さらに特殊ユニットパラメータ21から動作設定パラメータ211を取得する(ステップS4)。そして、デフォルト値変更機能43は、取得した動作設定パラメータ211に基づいて、特殊ユニット模擬プログラムテンプレートに使用されている動作設定パラメータのデフォルト値を変更する(ステップS5)。
In FIG. 3, first, the
図4は、特殊ユニット模擬プログラムに使用されている動作設定パラメータの具体例を示す図である。図4において、矩形で囲まれている部分の値は、特殊ユニット毎に設定される動作設定パラメータであるが、動作設定パラメータ211を取得する前の特殊ユニット模擬プログラムテンプレートにおいては、図4に示す値とは異なる、例えば全て0などのデフォルト値を使用している。ステップS5においては、このデフォルト値が、取得した動作設定パラメータに基づいて変更される。
FIG. 4 is a diagram showing a specific example of the operation setting parameters used in the special unit simulation program. In FIG. 4, the value of the portion surrounded by a rectangle is an operation setting parameter set for each special unit. In the special unit simulation program template before acquiring the
このようにして特殊ユニット模擬プログラムが自動で作成される。作成された特殊ユニット模擬プログラムは、コンピュータ上で実行されることにより、CPUユニットプログラムシミュレータが行うI/O要求処理に対応するI/O応答処理を行う特殊ユニットシミュレータを実現する。すなわち、作成された特殊ユニット模擬プログラムは、CPUユニットのCPUユニットプログラムと連携して動作する。また、CPUユニットプログラムシミュレータと特殊ユニットシミュレータとを同時に動作させると、CPUユニットプログラムシミュレータからのI/O要求処理に対応して特殊ユニットシミュレータがI/O応答処理を実行するので、CPUユニットプログラムの動作を含むプログラマブルコントローラの動作を模擬的に実行することができるようになる。 In this way, the special unit simulation program is automatically created. The created special unit simulation program is executed on a computer to realize a special unit simulator that performs an I / O response process corresponding to an I / O request process performed by the CPU unit program simulator. That is, the created special unit simulation program operates in cooperation with the CPU unit program of the CPU unit. When the CPU unit program simulator and the special unit simulator are operated simultaneously, the special unit simulator executes I / O response processing in response to the I / O request processing from the CPU unit program simulator. The operation of the programmable controller including the operation can be simulated.
ところで、以上の説明においては、特殊ユニット模擬プログラムを作成する際、特殊ユニット模擬プログラムテンプレート作成機能42が特殊ユニット模擬プログラムテンプレートを作成した後、デフォルト値変更機能43が該テンプレートにデフォルト値として使用されているメモリアドレスおよび動作設定パラメータを変更するとして説明したが、特殊ユニット模擬プログラムを作成するための機能構成および手順はこれに限定されるものではなく、取得した特殊ユニットの種類、I/O割り付け情報、および動作設定パラメータに基づいて特殊ユニット模擬プログラムを作成するように構成されていればどのようなものであってもよい。
By the way, in the above description, when the special unit simulation program is created, after the special unit simulation program
このように、本実施の形態によれば、特殊ユニットの種類と、I/O割り付け情報と、動作設定パラメータとを取得し、取得した特殊ユニットの種類、I/O割り付け情報、および動作設定パラメータに基づいて特殊ユニット模擬プログラムを作成するようにしたので、PLCのCPUユニットのCPUユニットプログラムと連携して動作する特殊ユニットの模擬プログラムを特殊ユニットの各種設定を加味して作成する特殊ユニット模擬装置作成装置を得ることができる。 As described above, according to the present embodiment, the special unit type, I / O allocation information, and operation setting parameters are acquired, and the acquired special unit type, I / O allocation information, and operation setting parameters are acquired. Since the special unit simulation program is created based on the above, the special unit simulation device for creating the special unit simulation program operating in cooperation with the CPU unit program of the PLC CPU unit in consideration of various settings of the special unit A creation device can be obtained.
以上のように、本発明にかかる特殊ユニット模擬装置作成装置およびプログラマブルコントローラ模擬装置は、プログラマブルコントローラのCPUユニットのCPUユニットプログラムと連携して動作する特殊ユニットの模擬プログラムを特殊ユニットの各種設定を加味して作成する特殊ユニット模擬装置作成装置およびCPUユニットプログラムと特殊ユニットの模擬プログラムとを連携させて動作させるプログラマブルコントローラ模擬装置に適用して好適である。 As described above, the special unit simulation device creation device and the programmable controller simulation device according to the present invention include the special unit simulation program that operates in cooperation with the CPU unit program of the CPU unit of the programmable controller in consideration of various settings of the special unit. Therefore, the present invention is preferably applied to a special unit simulation device creation device and a programmable controller simulation device that operates a CPU unit program and a special unit simulation program in cooperation with each other.
1 CPUユニット
2 特殊ユニット
3 バスユニット
4 特殊ユニット模擬装置作成装置
11 CPUユニットプログラム
12 CPUパラメータ
21 特殊ユニットパラメータ
22 バッファメモリ
41 情報取得機能
42 特殊ユニット模擬プログラムテンプレート作成機能
43 デフォルト値変更機能
121 特殊ユニット種類情報
122 I/O割り付け情報
211 動作設定パラメータ
1000 PLCシステム
DESCRIPTION OF SYMBOLS 1 CPU unit 2
Claims (4)
特殊ユニットの種類と、前記バッファメモリをCPUユニットのメモリ空間に対して割り付けるためのI/O割り付け情報と、前記特殊ユニットに設定される動作設定値と、を取得する情報取得手段と、
前記情報取得手段が取得した特殊ユニットの種類、I/O割り付け情報および動作設定値に基づいて前記特殊ユニットが実行するI/O応答処理を模擬する特殊ユニット模擬プログラムを作成する作成手段と、
を備えることを特徴とする特殊ユニット模擬プログラム作成装置。 A special unit that expands the function of the CPU unit of the programmable controller, and the request is written by the I / O request processing by the CPU unit, and the written request is read by the I / O response processing by the special unit, in the special unit simulation program creating apparatus for creating a special unit simulation program for simulating an operation when the I / O response processing of the special unit having a buffer memory response is written that corresponds to the requested read it said,
Information acquisition means for acquiring a type of the special unit, I / O allocation information for allocating the buffer memory to the memory space of the CPU unit, and an operation setting value set in the special unit;
Creating means for creating a special unit simulation program for simulating I / O response processing executed by the special unit based on the type of special unit acquired by the information acquisition means, I / O allocation information, and operation setting value;
A special unit simulation program creation device comprising:
ことを特徴とする請求項1に記載の特殊ユニット模擬プログラム作成装置。 The CPU unit writes an arithmetic process for calculating a request, writes the calculated request into the buffer memory of the special unit using the I / O allocation information, and reads out a response corresponding to the request from the buffer memory. O request processing is executed based on the CPU unit program, and after the I / O request processing, further calculation processing is executed based on the read response.
The special unit simulation program creation device according to claim 1.
前記特殊ユニットの種類と、前記I/O割り付け情報と、前記特殊ユニットに設定される動作設定値と、を取得し、前記バッファメモリに書き込まれた要求を読み出して該読み出した要求に対応する応答を前記バッファメモリに書き込む前記特殊ユニットによるI/O応答処理を模擬する特殊ユニット模擬プログラムを、前記取得した特殊ユニットの種類、I/O割り付け情報および動作設定値に基づいて作成する特殊ユニット模擬プログラム作成装置を備え、
前記CPUユニットプログラム模擬プログラムと前記特殊ユニット模擬プログラムとを動作させる、
ことを特徴とするプログラマブルコントローラ模擬装置。 A calculation process for calculating a request for a special unit that expands the function of the CPU unit of the programmable controller, and writing the calculated request in the buffer memory of the special unit according to the I / O allocation information of the CPU unit, and the next calculation CPU unit that performs an I / O request process for reading a response from the special unit used for processing, and performs a simulation by executing a CPU unit program that operates the CPU unit Memorize the program simulation program ,
Acquires the type of the special unit, the I / O allocation information, and the operation setting value set in the special unit, reads the request written in the buffer memory, and responds to the read request the special unit simulation program which simulates the special unit by the I / O response processing to be written into the buffer memory, the type of special unit that the acquired special unit simulation program to create based on the I / O assignment information and operation set value With a creation device,
Operating the CPU unit program simulation program and the special unit simulation program ;
A programmable controller simulator characterized by the above.
前記コンピュータが備える情報取得部が実行する、特殊ユニットの種類と、前記バッファメモリをCPUユニットのメモリ空間に対して割り付けるためのI/O割り付け情報と、前記特殊ユニットに設定される動作設定値と、を取得するステップと、 The type of special unit executed by the information acquisition unit included in the computer, I / O allocation information for allocating the buffer memory to the memory space of the CPU unit, and an operation setting value set in the special unit Step to get the
前記コンピュータが備える作成部が実行する、前記情報取得部が取得した特殊ユニットの種類、I/O割り付け情報および動作設定値に基づいて前記特殊ユニット模擬プログラムを作成するステップと、 Creating the special unit simulation program based on the type of special unit acquired by the information acquisition unit, the I / O allocation information, and the operation setting value, which is executed by the generation unit included in the computer;
を備えることを特徴とする方法。 A method comprising the steps of:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008272795A JP5235609B2 (en) | 2008-10-23 | 2008-10-23 | Special unit simulation program creation device, programmable controller simulation device, and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008272795A JP5235609B2 (en) | 2008-10-23 | 2008-10-23 | Special unit simulation program creation device, programmable controller simulation device, and method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2010102475A JP2010102475A (en) | 2010-05-06 |
JP5235609B2 true JP5235609B2 (en) | 2013-07-10 |
Family
ID=42293077
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008272795A Active JP5235609B2 (en) | 2008-10-23 | 2008-10-23 | Special unit simulation program creation device, programmable controller simulation device, and method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5235609B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6626314B2 (en) * | 2015-10-21 | 2019-12-25 | 株式会社キーエンス | Programmable logic controller |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03110504U (en) * | 1990-02-22 | 1991-11-13 | ||
JPH11272310A (en) * | 1998-03-23 | 1999-10-08 | Mitsubishi Electric Corp | Emulation device for programmable controller |
JP2001282327A (en) * | 2000-03-31 | 2001-10-12 | Omron Corp | Simulation system and simulator and management server and recording medium |
JP2004258926A (en) * | 2003-02-25 | 2004-09-16 | Matsushita Electric Works Ltd | Device and method for simulating program of programmable controller |
JP2004265001A (en) * | 2003-02-28 | 2004-09-24 | Omron Corp | Process control apparatus and cpu unit |
JP2008165324A (en) * | 2006-12-27 | 2008-07-17 | Fanuc Ltd | Program creation support device |
-
2008
- 2008-10-23 JP JP2008272795A patent/JP5235609B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2010102475A (en) | 2010-05-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5495480B2 (en) | How to test an electronic control system | |
JP6247320B2 (en) | System and method for testing a distributed control system of an industrial plant | |
CN109388107B (en) | Control device | |
US20050102054A1 (en) | Method and system for simulating processing of a workpiece with a machine tool | |
CN103403632A (en) | Computation unit, assistance device, output control method, display control method, and program | |
US10761513B2 (en) | Information processing device, information processing method, and non-transitory computer-readable recording medium | |
US9753447B2 (en) | Control unit, output control method and program | |
US20080319728A1 (en) | System for testing at least one electronic control unit and method | |
US10814486B2 (en) | Information processing device, information processing method, and non-transitory computer-readable recording medium | |
CN103477290A (en) | Controller support device, controller support program to be executed in said device, and recording medium storing said program | |
JP2019159697A (en) | Control system and control method | |
TWI661358B (en) | Simulation device | |
JP5235609B2 (en) | Special unit simulation program creation device, programmable controller simulation device, and method | |
JP6859965B2 (en) | Setting support device and setting support program | |
JP2007102632A (en) | Simulation device | |
WO2021095466A1 (en) | Control device | |
WO2020255486A1 (en) | Controller | |
JP2008165324A (en) | Program creation support device | |
JP2004265001A (en) | Process control apparatus and cpu unit | |
JP2008033572A (en) | Screen generating apparatus, screen generating program and recording medium for recording this program | |
US11640153B2 (en) | Control system, support device, and recording medium | |
WO2022249713A1 (en) | Control system, system program, and debugging method | |
WO2023203604A1 (en) | Simulation program, simulation device, and control method | |
JP2021114019A (en) | Data processing method | |
JP2009244952A (en) | Motion controller, simulation method, and simulation program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110506 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120821 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120822 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20121022 |
|
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: 20130226 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130326 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 Ref document number: 5235609 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20160405 Year of fee payment: 3 |
|
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 |
|
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 |
|
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 |