JP2023152155A - controller - Google Patents
controller Download PDFInfo
- Publication number
- JP2023152155A JP2023152155A JP2022062127A JP2022062127A JP2023152155A JP 2023152155 A JP2023152155 A JP 2023152155A JP 2022062127 A JP2022062127 A JP 2022062127A JP 2022062127 A JP2022062127 A JP 2022062127A JP 2023152155 A JP2023152155 A JP 2023152155A
- Authority
- JP
- Japan
- Prior art keywords
- project file
- programmable logic
- controller
- processing unit
- logic controller
- 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.)
- Pending
Links
- 230000006854 communication Effects 0.000 claims abstract description 63
- 238000004891 communication Methods 0.000 claims abstract description 63
- 230000006870 function Effects 0.000 claims description 7
- 230000010076 replication Effects 0.000 description 13
- 238000004519 manufacturing process Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000007175 bidirectional communication Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000000052 comparative effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
Images
Landscapes
- Programmable Controllers (AREA)
Abstract
Description
本開示は、コントローラに関する。 The present disclosure relates to controllers.
プログラマブルロジックコントローラ(PLC:Programmable Logic Controller)等のコントローラは、例えば、ファクトリーオートメーション(FA:Factory Automation)の分野において、マスタ装置として用いられている。 A controller such as a programmable logic controller (PLC) is used as a master device in the field of factory automation (FA), for example.
すなわち、工場などでは、作業に用いられる各種の制御装置、リモートI/O、及び、製造装置を連携して動作させるために、これらの装置を接続する、フィールドネットワークとも呼ばれる産業用ネットワークが構築されている。 In other words, in factories, industrial networks, also called field networks, are constructed to connect various control devices, remote I/Os, and manufacturing devices used in work in order to operate them in coordination with each other. ing.
一般的な産業用ネットワークでは、各種のスレーブ装置と、上記マスタ装置等から構成されるマスタスレーブ方式が採用される。スレーブ装置は、工場内に設置される設備の制御あるいはデータ収集を行う装置である。マスタ装置は、スレーブ装置を集中管理する。 In a general industrial network, a master-slave system is adopted, which is composed of various slave devices and the above-mentioned master device. The slave device is a device that controls equipment installed in a factory or collects data. The master device centrally manages the slave devices.
また、コントローラが記憶する制御プログラム等では、当該制御プログラム等のデータのバックアップまたはリストアは、専用の転送ツールを実行するパーソナルコンピュータ(汎用コンピュータ)等を用いて、行うことが知られている。 Furthermore, it is known that data such as control programs stored in a controller can be backed up or restored using a personal computer (general-purpose computer) or the like that executes a dedicated transfer tool.
ところが、上記のような従来技術では、上述のデータの複製を行うごとに、上記転送ツールを操作する必要があった。更には、自機における、データの書き込み処理、及び他機における、データの読み出し処理を実行させるために、自機及び他機の各々において、複数の処理指示操作を実行する必要があった。このため、従来技術では、自機と他機との間における、データの複製を容易に実施することができないという問題点を生じることがあった。 However, in the conventional technology as described above, it is necessary to operate the transfer tool each time the data is copied. Furthermore, in order to cause the own machine to execute data write processing and the other machine to execute data read processing, it was necessary to execute a plurality of processing instruction operations in each of the own machine and the other machine. For this reason, in the conventional technology, a problem sometimes arises in that data cannot be easily replicated between the own device and other devices.
本開示は上記の問題点を鑑みてなされたものであり、自機と他機との間における、データの複製を容易に実施することができるコントローラを提供することを目的とする。 The present disclosure has been made in view of the above problems, and an object of the present disclosure is to provide a controller that can easily replicate data between the controller itself and other devices.
本開示は、上述の課題を解決するために、以下の構成を採用する。 The present disclosure employs the following configuration in order to solve the above problems.
本開示の一側面に係るコントローラは、被制御機器の制御を行うコントローラであって、前記被制御機器の制御を行うための制御プログラムと、前記コントローラの設定情報と、を少なくとも含むプロジェクトファイルを記憶するための、プロジェクトファイル記憶部と、接続された通信ケーブルを通じ、前記外部機器と通信を行うための通信部と、前記コントローラの動作モードを設定するためのモード設定スイッチと、前記プロジェクトファイルの外部機器との受け渡しを制御する処理部と、を備え、前記処理部は、前記モード設定スイッチが所定の第1モードに設定されていることを検出すると、(1)自機のアドレスを所定の第1アドレスに設定し、(2)前記通信部を介して、所定の第2アドレスの他機とのリンクを試み、(3)前記他機との前記リンクが成功した場合に、(4)前記通信部を介して、前記プロジェクトファイルを前記他機に送付する、プロジェクトファイル転送動作(1)~(4)を実行する。 A controller according to one aspect of the present disclosure is a controller that controls a controlled device, and stores a project file that includes at least a control program for controlling the controlled device and setting information of the controller. a project file storage unit for storing the project file; a communication unit for communicating with the external device through a connected communication cable; a mode setting switch for setting the operating mode of the controller; a processing unit that controls delivery to and from a device, and when the processing unit detects that the mode setting switch is set to a predetermined first mode, (1) sets the address of the device to a predetermined first mode; 1 address, (2) attempts to link with another device at a predetermined second address via the communication unit, (3) if the link with the other device is successful, (4) the Project file transfer operations (1) to (4) are executed to send the project file to the other device via the communication unit.
上記構成によれば、モード設定スイッチが第1モードに設定されている場合において、処理部は、プロジェクトファイル転送動作(1)~(4)を実行する。これにより、転送ツールを介在させることなく、かつ、自機及び他機の各々において、複数の処理指示操作を実行することなく、自機から他機へのデータ転送を行うことができる。従って、処理部は、自機から他機に対して、上記プロジェクトファイルを転送することができる。この結果、自機と他機との間における、データの複製を容易に実施することができる。 According to the above configuration, when the mode setting switch is set to the first mode, the processing unit executes the project file transfer operations (1) to (4). Thereby, data can be transferred from the own machine to the other machine without intervening a transfer tool and without executing multiple processing instruction operations in each of the own machine and the other machine. Therefore, the processing unit can transfer the project file from its own device to another device. As a result, data can be easily replicated between the own device and other devices.
上記一側面に係るコントローラにおいて、前記処理部は、前記プロジェクトファイル転送動作において、(3)前記他機との前記リンクが成功した場合に、前記他機との間で、前記他機への前記プロジェクトファイルの複製が可能か否かのネゴシエーションを実行し、前記ネゴシエーションの結果、前記プロジェクトファイルの複製が可能と判断すると、(4)前記通信部を介して、前記プロジェクトファイルを前記他機に送付してもよい。 In the controller according to the one aspect described above, in the project file transfer operation, (3) if the link with the other device is successful, the processing section performs the following: Negotiation is performed to determine whether or not the project file can be duplicated, and if it is determined as a result of the negotiation that the project file can be duplicated, (4) the project file is sent to the other device via the communication unit. You may.
上記構成によれば、処理部が他機との間でネゴシエーションを実行して、プロジェクトファイルの複製が可能と判断すると、通信部を介して、プロジェクトファイルを他機に送付している。これにより、処理部は、自機と他機との間における、データの確実な複製を容易に実施することができる。 According to the above configuration, when the processing section executes negotiation with the other device and determines that the project file can be copied, the project file is sent to the other device via the communication section. Thereby, the processing unit can easily perform reliable replication of data between its own device and another device.
上記一側面に係るコントローラにおいて、前記コントローラと制御補助装置とが一体として、機能拡張されたマスタ装置として動作するための、接続された前記制御補助装置との間でバス通信を行うバス接続部を更に備えた前記コントローラであって、前記制御補助装置は、機能拡張のための実行プログラムと、自身の設定情報と、を少なくとも含むアドオンアプリケーションを記憶しており、前記処理部は、前記プロジェクトファイル転送動作において、前記プロジェクトファイルを前記他機に送付するときに、前記制御補助装置の前記アドオンアプリケーションを併せて送付してもよい。 The controller according to the above aspect includes a bus connection unit that performs bus communication with the connected control auxiliary device so that the controller and the control auxiliary device operate as a master device with expanded functions. The controller further includes: the control auxiliary device stores an add-on application that includes at least an execution program for functional expansion and its own setting information; and the processing section is configured to transfer the project file. In operation, when the project file is sent to the other device, the add-on application of the control auxiliary device may also be sent.
上記構成によれば、コントローラが制御補助装置と一体的に構成されて機能拡張されている場合でも、自機と他機との間における、必要なデータの複製を容易に実施することができる。 According to the above configuration, even when the controller is configured integrally with the control auxiliary device and its functions are expanded, necessary data can be easily replicated between the own device and another device.
上記一側面に係るコントローラにおいて、前記リンクは、前記他機との1対1通信によるリンクであってもよい。 In the controller according to the above aspect, the link may be a link through one-to-one communication with the other device.
上記構成によれば、自機と他機との間における、データの確実な複製を容易に実施することができる。 According to the above configuration, data can be easily replicated reliably between the own device and another device.
上記一側面に係るコントローラにおいて、前記処理部は、前記モード設定スイッチが所定の第2モードに設定されていることを検出すると、(A)自機のアドレスを所定の第2アドレスに設定し、(B)前記通信部を介して、所定の第1アドレスの他機とのリンクを試み、(C)前記他機との前記リンクが成功した場合に、(D)前記通信部を介して、前記他機からプロジェクトファイルを受信して、前記プロジェクトファイル記憶部に記憶する、プロジェクトファイル受信動作(A)~(D)を実行してもよい。 In the controller according to the above aspect, when the processing unit detects that the mode setting switch is set to a predetermined second mode, (A) sets the address of the own device to a predetermined second address; (B) attempts to link with another device at a predetermined first address via the communication unit, (C) if the link with the other device is successful, (D) via the communication unit, Project file receiving operations (A) to (D) may be executed, in which a project file is received from the other device and stored in the project file storage section.
上記構成によれば、モード設定スイッチが第2モードに設定されている場合において、処理部は、プロジェクトファイル受信動作(A)~(D)を実行する。これにより、メモリカードを介在させることなく、かつ、自機及び他機の各々において、所定の個別操作を実行することなく、他機から自機へのデータ転送を行うことができる。従って、処理部は、他機から自機に対して、転送されてきた上記プロジェクトファイルを受信することができる。この結果、自機と他機との間における、データの複製を容易に実施することができる。 According to the above configuration, when the mode setting switch is set to the second mode, the processing unit executes the project file receiving operations (A) to (D). Thereby, data can be transferred from the other device to the own device without intervening a memory card and without performing predetermined individual operations on each of the own device and the other device. Therefore, the processing section can receive the project file transferred from another device to the own device. As a result, data can be easily replicated between the own device and other devices.
上記一側面に係るコントローラにおいて、前記プロジェクトファイル転送動作は、前記コントローラの起動時に、前記処理部が、前記モード設定スイッチが所定の第1モードに設定されていることを検出すると実行され、前記プロジェクトファイル受信動作は、前記コントローラの起動時に、前記処理部が、前記モード設定スイッチが所定の第2モードに設定されていることを検出すると実行されてもよい。 In the controller according to the above aspect, the project file transfer operation is executed when the processing unit detects that the mode setting switch is set to a predetermined first mode when the controller is started, and The file receiving operation may be executed when the processing unit detects that the mode setting switch is set to a predetermined second mode when the controller is activated.
上記構成によれば、自機と他機との間における、データの容易な複製を自動的に実施することができる。 According to the above configuration, it is possible to automatically easily copy data between the own device and another device.
本開示によれば、自機と他機との間における、データの複製を容易に実施することができるコントローラを提供することができる。 According to the present disclosure, it is possible to provide a controller that can easily replicate data between its own device and another device.
§1 適用例
まず、図1を用いて、本開示が適用される場面の一例について説明する。図1は、本開示の実施形態に係るプログラマブルロジックコントローラ1及び100と拡張ユニット10及び110の構成例を示す機能ブロック図である。尚、以下の説明では、コントローラとして、プログラマブルロジックコントローラ1及び100を用いた場合について説明する。また、以下の説明では、プログラマブルロジックコントローラ1及び100は、同一の構成である。
§1 Application Example First, an example of a scene to which the present disclosure is applied will be described using FIG. 1. FIG. 1 is a functional block diagram showing a configuration example of
本実施形態のプログラマブルロジックコントローラ1は、例えば、工場内に設けられた産業用ネットワーク(フィールドネットワーク)において、マスタスレーブ方式のマスタ装置を構成している。つまり、本実施形態のプログラマブルロジックコントローラ1は、被制御機器としてのスレーブ装置を制御するマスタ装置として動作するコントローラである。 The programmable logic controller 1 of this embodiment constitutes a master device of a master-slave type in an industrial network (field network) provided in a factory, for example. That is, the programmable logic controller 1 of this embodiment is a controller that operates as a master device that controls a slave device as a controlled device.
本実施形態のプログラマブルロジックコントローラ1は、通信部3と、記憶部4と、バックアップ処理部5と、スイッチ6と、を備えている。本実施形態のプログラマブルロジックコントローラ1は、後掲のプロジェクトファイルを、複製先のコントローラである、プログラマブルロジックコントローラ100に転送する複製元のコントローラである。
The programmable logic controller 1 of this embodiment includes a
通信部3は、接続された通信ケーブル30を通じ、外部機器と通信を行うための機能ブロックである。通信部3には、通信ケーブル30が接続される。ユーザ(作業者)は、プログラマブルロジックコントローラ1からプログラマブルロジックコントローラ100にプロジェクトファイルをコピーしたい場合に、通信部3とプログラマブルロジックコントローラ100の通信部103とを、通信ケーブル30で直結する。
The
記憶部4は、プログラマブルロジックコントローラ1のプロジェクトファイル記憶部の一例である。記憶部4は、上記スレーブ装置の制御を行うための制御プログラム4Aと、当該スレーブ装置及びプログラマブルロジックコントローラ1の設定ファイル4B(設定情報)と、を少なくとも含むプロジェクトファイルを記憶する。
The
スイッチ6は、プログラマブルロジックコントローラ1のモード設定スイッチの一例である。スイッチ6は、ユーザの操作に応じて、プログラマブルロジックコントローラ1の動作モードを設定する。
The
バックアップ処理部5は、プログラマブルロジックコントローラ1の処理部の一例である。バックアップ処理部5は、上記プロジェクトファイルのプログラマブルロジックコントローラ100との受け渡しを制御する。
The
また、バックアップ処理部5は、スイッチ6が所定の第1モードに設定されていることを検出すると、以下のプロジェクトファイル転送動作(1)~(4)を実行する。つまり、バックアップ処理部5は、(1)自機のアドレスを所定の第1アドレスに設定する。また、バックアップ処理部5は、(2)通信部3を介して、所定の第2アドレスのプログラマブルロジックコントローラ100とのリンクを試みる。バックアップ処理部5は、(3)プログラマブルロジックコントローラ100とのリンクが成功した場合に、(4)通信部3を介して、上記プロジェクトファイルをプログラマブルロジックコントローラ100に送付する。
Further, when the
よって本実施形態によれば、バックアップ処理部5がプログラマブルロジックコントローラ1(自機)からプログラマブルロジックコントローラ100(他機)に対して、上記プロジェクトファイルを転送する際に、パーソナルコンピュータなどの特定の転送ツールを介在させる必要がない。また、本実施形態のプログラマブルロジックコントローラ1では、プログラマブルロジックコントローラ1及びプログラマブルロジックコントローラ100の各々において、複数の処理指示操作を実行することなく、プロジェクトファイルの転送を実施することができる。
Therefore, according to the present embodiment, when the
この結果、本実施形態では、工場の現場等で、ユーザがプログラマブルロジックコントローラ1の設定を複製する作業を極めて容易に行うことができる。 As a result, in this embodiment, the user can extremely easily duplicate the settings of the programmable logic controller 1 at a factory site or the like.
§2 構成例
<プログラマブルロジックコントローラ1及び100>
次に、図1を参照して、本実施形態のプログラマブルロジックコントローラ1及び100について具体的に説明する。なお、以下の説明では、本開示を、拡張ユニット10を備えた分散/モジュール方式(アドオン式とも呼ばれる)に適用した場合を例示して説明する。また、以下の説明では、プログラマブルロジックコントローラ1及び100は、それぞれプロジェクトファイルの複製元及びプロジェクトファイルの複製先である場合について主に説明する。
§2 Configuration example <
Next, with reference to FIG. 1, the
図1の例では、本実施形態のプログラマブルロジックコントローラ1は、接続部2を備えている。接続部2は、プログラマブルロジックコントローラ1のバス接続部の一例である。また、接続部2には、所定の通信プロトコルでバス通信を行うユニット接続バス20を介して制御補助装置としての拡張ユニット10が接続されている。つまり、接続部2は、プログラマブルロジックコントローラ1と拡張ユニット10とが一体として、プログラマブルロジックコントローラ1が機能拡張されたマスタ装置として動作するための上記バス接続部を構成している。
In the example of FIG. 1 , the programmable logic controller 1 of this embodiment includes a
通信部3は、上記スレーブ装置との間で双方向の通信を行うための、不図示の通信インターフェースを備える。通信部3には、例えば、LAN(Local Area Network)ケーブルまたはUSB(Universal Serial Bus)ケーブルを用いた通信ケーブル30の一端が接続される。また、通信部3は、例えば、IP(Internet Protocol)プロトコルなどの通信プロトコルを用いて上記双方向の通信を行う。
The
記憶部4は、例えば、RAM(Random Access Memory)を備えている。また、記憶部4には、通信部3を通じて、不図示のプログラミングツール(例えば、パーソナルコンピュータ)から上記制御プログラム4A及び設定ファイル4Bが予めダウンロードされている。そして、記憶部4は、ダウンロードされた制御プログラム4A及び設定ファイル4B等を予め記憶している。つまり、記憶部4には、上記スレーブ装置の制御を行うための制御プログラム4Aと、当該スレーブ装置及びプログラマブルロジックコントローラ1の設定ファイル4Bと、を少なくとも含むプロジェクトファイルが予め記憶される。
The
バックアップ処理部5は、例えば、CPU(Central Processing Unit)などを用いて構成されている。バックアップ処理部5が実行する動作については、後述する。
The
スイッチ6は、プログラマブルロジックコントローラ1に設けられたハードウェアスイッチである。スイッチ6は、例えば、ディップスイッチによって構成されている。スイッチ6は、ユーザの操作に応じて、切替えられることにより、プログラマブルロジックコントローラ1の動作モードを所定の第1モードまたは所定の第2モードとすることが可能である。
The
第1モードは、プログラマブルロジックコントローラ1が、記憶しているプロジェクトファイルを、他のプログラマブルロジックコントローラ100にコピーさせる動作モードである。
The first mode is an operation mode in which the programmable logic controller 1 copies the stored project file to another
第2モードは、プログラマブルロジックコントローラ1が、他のプログラマブルロジックコントローラが記憶しているプロジェクトファイルを受け入れて記憶部4にコピーする動作モードである。
The second mode is an operation mode in which the programmable logic controller 1 accepts a project file stored in another programmable logic controller and copies it to the
また、スイッチ6は、ユーザの操作に応じて切替えられることにより、プログラマブルロジックコントローラ1の動作モードを第1モード及び第2モードのいずれのモードでもない他のモードとすることも可能である。例えば、プログラマブルロジックコントローラ1では、スイッチ6に対する操作に応じて、上記マスタ装置として当該プログラマブルロジックコントローラ1が機能する通常のモードも実行し得る。
Further, the
本実施形態のプログラマブルロジックコントローラ100は、接続部102と、通信部103と、記憶部104と、バックアップ処理部105と、スイッチ106と、を備えている。これらの接続部102、通信部103、記憶部104、バックアップ処理部105、及びスイッチ106は、接続部2、通信部3、記憶部4、バックアップ処理部5、及びスイッチ6とそれぞれ同一の構成であるため、その重複した説明は省略する。
The
<拡張ユニット10及び110>
拡張ユニット10は、接続部11と、記憶部12と、を備えている。接続部11には、接続部2と同様に、所定の通信プロトコルで通信を行うユニット接続バス20を介してプログラマブルロジックコントローラ1が接続されている。
<
The
記憶部12は、例えば、RAM(Random Access Memory)を備えている。また、記憶部12には、少なくとも1つのアドオンアプリケーションが予めインストールされている。具体的には、記憶部12は、アドオンアプリケーションごとに、アプリパッケージ12Aと、アプリ実行プログラム12Bと、アプリ設定ファイル12Cとを予め記憶している。
The
より具体的にいえば、アプリパッケージ12Aは、アプリ実行プログラム12B及びアプリ設定ファイル12Cを含んだデータファイルである。アプリ実行プログラム12Bは、拡張ユニット10での機能拡張のための実行プログラムである。アプリ設定ファイル12Cは、拡張ユニット10自身の設定情報である。
More specifically, the
拡張ユニット10では、ユーザが不図示のプログラミングツール(例えば、パーソナルコンピュータ)を操作することにより、記憶部12に対して、アプリパッケージ12Aを用いてアドオンアプリケーションのインストールを実行する。これにより、拡張ユニット10では、アプリ実行プログラム12Bと、例えば、工場出荷時のアプリ設定ファイル12Cとが記憶部12に保持される。
In the
また、拡張ユニット10では、ユーザはプログラミングツールによってアドオンアプリケーションの設定を行うことにより、アプリ設定ファイル12Cに所望の設定を反映することができる。
Furthermore, in the
拡張ユニット110は、拡張ユニット10と同一の構成である。つまり、拡張ユニット110は、拡張ユニット10の接続部11及び記憶部12とそれぞれ同一の接続部111及び記憶部112を備えている。
§3 動作例
次に、本実施形態のプログラマブルロジックコントローラ1及び100の動作例について具体的に説明する。尚、以下の説明では、プログラマブルロジックコントローラ1及び100が、それぞれプロジェクトファイルの複製元のコントローラ及びプロジェクトファイルの複製先のコントローラとして機能する場合を例示して説明する。つまり、以下の説明では、ユーザがプログラマブルロジックコントローラ1の設定を複製する作業を主に説明する。
§3 Operation example Next, an operation example of the
<プログラマブルロジックコントローラ1及び100の動作例>
まず、ユーザは、プログラマブルロジックコントローラ1及び100の各々において、電源をオフにする。次に、ユーザは、プログラマブルロジックコントローラ1において、スイッチ6を第1モードに設定する。また、ユーザは、プログラマブルロジックコントローラ100において、スイッチ106を第2モードに設定する。
<Example of operation of
First, the user turns off the power in each of the
その後、ユーザは、通信ケーブル30の一端及び他端を、それぞれプログラマブルロジックコントローラ1の通信部3及びプログラマブルロジックコントローラ100の通信部103に接続する。
After that, the user connects one end and the other end of the
次に、ユーザが、プログラマブルロジックコントローラ1及び100の各々において、電源をオンする。これにより、プログラマブルロジックコントローラ1及び100では、それぞれ第1モード及び第2モードで起動する。
Next, the user turns on the power in each of the
つまり、プログラマブルロジックコントローラ1では、バックアップ処理部5がスイッチ6に設定された第1モードを検出することにより、バックアップ処理部5は上記プロジェクトファイル転送動作(1)~(4)を順次実行する。また、プログラマブルロジックコントローラ100では、バックアップ処理部105がスイッチ106に設定された第2モードを検出することにより、バックアップ処理部105はプロジェクトファイル受信動作(A)~(D)を順次実行する。
That is, in the programmable logic controller 1, when the
プログラマブルロジックコントローラ1では、プロジェクトファイル転送動作(1)が実行される。具体的には、バックアップ処理部5が、スイッチ6が所定の第1モードに設定されていることを検出すると、自機のアドレスを固定アドレスである所定の第1アドレス(例えば、169.254.100.1)に設定する。
In the programmable logic controller 1, a project file transfer operation (1) is executed. Specifically, when the
一方、プログラマブルロジックコントローラ100では、プロジェクトファイル受信動作(A)が実行される。具体的には、バックアップ処理部105が、スイッチ106が所定の第2モードに設定されていることを検出すると、自機のアドレスを固定アドレスである所定の第2アドレス(例えば、169.254.100.2)に設定する。
On the other hand, the
次に、プログラマブルロジックコントローラ1では、プロジェクトファイル転送動作(2)が実行される。具体的には、バックアップ処理部5が、通信部3を介して、所定の第2アドレスのプログラマブルロジックコントローラ100(他機)とのリンクを試みる。
Next, the programmable logic controller 1 executes a project file transfer operation (2). Specifically, the
一方、プログラマブルロジックコントローラ100では、プロジェクトファイル受信動作(B)が実行される。具体的には、バックアップ処理部105が、通信部103を介して、所定の第1アドレスのプログラマブルロジックコントローラ1(他機)とのリンクを試みる。
On the other hand, the
プログラマブルロジックコントローラ1及び100では、固定のリンクローカルIP(Internet Protocol)アドレスに設定されるので、プログラマブルロジックコントローラ1及び100では、両機を直結させる通信ケーブル30を介在させたIP(Internet Protocol)接続が自動的に確立され得る。
Since the
以上により、プログラマブルロジックコントローラ1とプログラマブルロジックコントローラ100とは、通信ケーブル30を介在させた、IP(Internet Protocol)接続によって双方向のデータ通信を行うことが可能となる。すなわち、プログラマブルロジックコントローラ1は、プログラマブルロジックコントローラ100との1対1通信によるリンクにより、プログラマブルロジックコントローラ100にデータを送信し得る。
As described above, the programmable logic controller 1 and the
次に、プログラマブルロジックコントローラ1では、プロジェクトファイル転送動作(3)が実行される。具体的には、バックアップ処理部5が、プログラマブルロジックコントローラ100とのリンクが成功したか否かについて判別する。そして、バックアップ処理部5は、リンクが成功したことを判別すると、プログラマブルロジックコントローラ100との間で、プログラマブルロジックコントローラ100への上記プロジェクトファイルの複製が可能か否かのネゴシエーションを実行する。
Next, the programmable logic controller 1 executes a project file transfer operation (3). Specifically, the
一方、プログラマブルロジックコントローラ100では、プロジェクトファイル受信動作(B)が実行される。具体的には、バックアップ処理部105が、プログラマブルロジックコントローラ100とのリンクが成功したか否かについて判別する。そして、バックアップ処理部105は、リンクが成功したことを判別すると、プログラマブルロジックコントローラ1との間で、プログラマブルロジックコントローラ1からの上記プロジェクトファイルの複製が可能か否かのネゴシエーションを実行する。
On the other hand, the
上記ネゴシエーションは、複製元と複製先のバックアップ処理部5及び105の間で情報を相互に交換し合い、データ送受信の開始前に手順の調整及び決定を行う処理である。また、このネゴシエーションにおいて、交換し確認する主な情報とその目的を以下に示す。
The above negotiation is a process in which information is mutually exchanged between the
(イ)IP(Internet Protocol)アドレス及びポート番号(第1モードまたは第2モード用の第1アドレス及び第2アドレスであるかどうか)
(ロ)プログラマブルロジックコントローラ1及び100のステータス情報(第1モードまたは第2モードで起動したかどうか)
(ハ)プログラマブルロジックコントローラ1及び100の形式などのプロダクト情報(複製可能な形式かどうか)
(ニ)プログラマブルロジックコントローラ1及び100のセキュリティ情報(複製可であるかどうか)
(ホ)プログラマブルロジックコントローラ1及び100の複製対象の情報(設定、制御プログラム、変数の値など、複製対象のデータの判別)
(ヘ)プログラマブルロジックコントローラ1及び100にそれぞれ装着された拡張ユニット10及び110の構成情報(拡張ユニット10及び110の構成が同じかどうか)
(ト)拡張ユニット10及び110のアドオン情報(アドオンアプリケーションのデータの判別)
(チ)拡張ユニット10及び110のアドオンのセキュリティ情報(複製可であるかどうか)
尚、バックアップ処理部5及び105は、上記ネゴシエーションに失敗した場合、それぞれプロジェクトファイル転送動作及びプロジェクトファイル受信動作を中断する。
(b) IP (Internet Protocol) address and port number (whether the first address and second address are for the first mode or the second mode)
(b) Status information of programmable logic controllers 1 and 100 (whether or not they started in the first mode or second mode)
(c) Product information such as the format of programmable logic controllers 1 and 100 (whether the format is replicable or not)
(d) Security information of programmable logic controllers 1 and 100 (whether duplication is possible or not)
(E) Information to be replicated on the programmable logic controllers 1 and 100 (determination of data to be replicated, such as settings, control programs, variable values, etc.)
(f) Configuration information of the
(g) Add-on information of
(H) Security information of add-ons for
Note that, if the above negotiation fails, the
続いて、プログラマブルロジックコントローラ1では、ネゴシエーションに成功する場合には、バックアップ処理部5は、ネゴシエーションの結果としてプロジェクトファイルの複製及びアドオンアプリケーションの複製が可能と判断することとなる。そして、バックアップ処理部5は、プロジェクトファイル転送動作(4)を実行する。
Subsequently, in the programmable logic controller 1, if the negotiation is successful, the
具体的には、バックアップ処理部5が、通信部3を介して、プロジェクトファイルに含まれた制御プログラム4A及び設定ファイル4Bをプログラマブルロジックコントローラ100に送付する。また、バックアップ処理部5は、ユニット接続バス20を介して拡張ユニット10から全てのアドオンアプリケーションを取得する。バックアップ処理部5は、上記プロジェクトファイルを送付するときに、当該プロジェクトファイルと併せて、全てのアドオンアプリケーションを送付する。
Specifically, the
具体的には、バックアップ処理部5は、記憶部12から、アプリパッケージ12A、アプリ実行プログラム12B、及びアプリ設定ファイル12Cを読み出す。そして、バックアップ処理部105は、通信部3を介して、読み出したアプリパッケージ12A、アプリ実行プログラム12B、及びアプリ設定ファイル12Cをプログラマブルロジックコントローラ100に送付する。
Specifically, the
一方、プログラマブルロジックコントローラ100では、バックアップ処理部105は、ネゴシエーションの結果、プロジェクトファイルの複製及びアドオンアプリケーションの複製が可能と判断すると、プロジェクトファイル受信動作(D)が実行される。
On the other hand, in the
具体的には、バックアップ処理部105が、通信部3を介して、プログラマブルロジックコントローラ1から制御プログラム4A及び設定ファイル4Bを受信する。そして、バックアップ処理部105は、受信した制御プログラム4A及び設定ファイル4Bをそれぞれ制御プログラム104A及び設定ファイル104Bとして記憶部104に記憶する。
Specifically, the
また、バックアップ処理部105が、通信部3を介して、プログラマブルロジックコントローラ1からアプリパッケージ12A、アプリ実行プログラム12B、及びアプリ設定ファイル12Cを受信する。そして、バックアップ処理部105は、ユニット接続バス120を介して受信したアプリパッケージ12A、アプリ実行プログラム12B、及びアプリ設定ファイル12Cを拡張ユニット110に送信する。
Further, the
続いて、バックアップ処理部105は、アプリパッケージ12A、アプリ実行プログラム12B、及びアプリ設定ファイル12Cを受信する。そして、バックアップ処理部105は、それぞれアプリパッケージ112A、アプリ実行プログラム112B、及びアプリ設定ファイル112Cとして記憶部112に記憶する。
Subsequently, the
尚、拡張ユニット10の記憶部12に複数のアドオンアプリケーションが記憶されている場合には、バックアップ処理部5は、アドオンアプリケーションごとに、プログラマブルロジックコントローラ100への送付を繰り返して行う。
Note that if a plurality of add-on applications are stored in the
<作用、効果>
以上のように、本実施形態のプログラマブルロジックコントローラ1では、パーソナルコンピュータなどの機器を用いることなく、通信ケーブル30を用いてプログラマブルロジックコントローラ100に直結する。これにより、本実施形態のプログラマブルロジックコントローラ1では、プログラマブルロジックコントローラ100に対して、上記プロジェクトファイルを転送することができる。
<Action, effect>
As described above, the programmable logic controller 1 of this embodiment is directly connected to the
また、本実施形態のプログラマブルロジックコントローラ100では、バックアップ処理部105は、スイッチ106による第2モードの設定により、プロジェクトファイル受信動作(A)~(D)を実行する。
Furthermore, in the
つまり、プログラマブルロジックコントローラ1では、ユーザは、プログラマブルロジックコントローラ1に設けられたスイッチ6の操作のみを行えばよい。それゆえ、プログラマブルロジックコントローラ1では、上記転送ツールに対して、データの複製先のアドレスなどの情報の入力指示操作作業及び複製対象のデータの指定操作作業などを行う必要がない。
That is, in the programmable logic controller 1, the user only has to operate the
また、プログラマブルロジックコントローラ100では、ユーザは、上記転送ツールに対して、データの複製元のアドレスなどの情報の確認操作作業及び複製対象のデータの指定操作作業などを行う必要がない。そして、プログラマブルロジックコントローラ100は、プログラマブルロジックコントローラ1からのデータ受信を行うことができる。この結果、プログラマブルロジックコントローラ1とプログラマブルロジックコントローラ100との間における、データの複製を容易に実施することができる。
Furthermore, in the
また、以上のように、本実施形態では、データ転送を行うための特定のプログラムを用いたパーソナルコンピュータ(転送ツール)を用いることなく、複製元のプログラマブルロジックコントローラ1からのデータを複製先のプログラマブルロジックコントローラ100に転送することができる。このため、本実施形態では、例えば、プログラマブルロジックコントローラ100の故障やそのソフトウェアの更新などに伴う、工場等の現場でのプログラマブルロジックコントローラ100の入れ替え作業をするときに、転送ツールの管理を行う必要がない。
Further, as described above, in this embodiment, data from the programmable logic controller 1 of the replication source is transferred to the programmable logic controller of the replication destination without using a personal computer (transfer tool) using a specific program for data transfer. It can be transferred to the
コントローラにおいて、メモリカードにプロジェクトファイルをバックアップ可能とし、メモリカードを介してプロジェクトファイルの転送を行うことも考えられる。しかしながら、このようなメモリカードの利用は、データセキュリティを確保することが難しいという問題を生じることがある。つまり、このような比較例では、プロジェクトファイルが記憶されたメモリカードの持ち出しによる機密漏洩の怖れがある。 It is also conceivable that the controller can back up the project file to a memory card and transfer the project file via the memory card. However, the use of such memory cards may pose a problem in that it is difficult to ensure data security. In other words, in such a comparative example, there is a risk of confidential information being leaked if the memory card storing the project file is taken out.
これに対して、本実施形態では、メモリカードを用いていないので、プログラマブルロジックコントローラ1が保持するデータのセキュリティを容易に確保することができる。また、本実施形態では、上記従来例と異なり、メモリカードのプログラマブルロジックコントローラ1または100への装着間違いなどの作業ミスの発生を抑制することができる。
In contrast, in this embodiment, since a memory card is not used, the security of data held by the programmable logic controller 1 can be easily ensured. Further, in this embodiment, unlike the conventional example described above, it is possible to suppress the occurrence of work errors such as incorrect attachment of a memory card to the
更に、本実施形態では、例えば、プログラマブルロジックコントローラ100を組込んだ製造装置、測定装置等を生産する際に、プログラマブルロジックコントローラ1からのデータの複製を容易に行える。これにより、本実施形態では、当該製造装置、測定装置等を容易に量産することができるようになる。
Furthermore, in the present embodiment, data from the programmable logic controller 1 can be easily replicated, for example, when producing a manufacturing device, a measuring device, etc. in which the
また、本実施形態のプログラマブルロジックコントローラ1及び100では、バックアップ処理部5及び105は、ネゴシエーションを実行して、プロジェクトファイルの複製が可能かどうかについて判断している。そして、本実施形態では、バックアップ処理部5は、プロジェクトファイルの複製が可能と判断すると、通信部3を介して、プロジェクトファイルをバックアップ処理部105に送付している。これにより、バックアップ処理部5は、プログラマブルロジックコントローラ1とプログラマブルロジックコントローラ100との間における、データの確実な複製を容易に実施することができる。
Furthermore, in the
また、本実施形態では、バックアップ処理部5は、プロジェクトファイル転送動作において、プロジェクトファイルをバックアップ処理部105に送付するときに、拡張ユニット10のアドオンアプリケーションを併せて送付している。これにより、本実施形態では、プログラマブルロジックコントローラ1及び100がそれぞれ拡張ユニット10及び110と一体的に構成されて機能拡張されている場合でも、プログラマブルロジックコントローラ1及び100の間における、必要なデータの複製を容易に実施することができる。
Further, in this embodiment, when the
また、本実施形態では、プログラマブルロジックコントローラ1における、上記リンクはプログラマブルロジックコントローラ100との1対1通信によるリンクである。これにより、本実施形態では、プログラマブルロジックコントローラ1及び100の間における、データの確実な複製を容易に実施することができる。
Further, in this embodiment, the above-mentioned link in the programmable logic controller 1 is a link through one-to-one communication with the
また、本実施形態では、プロジェクトファイル転送動作(1)~(4)は、プログラマブルロジックコントローラ1の起動時に、バックアップ処理部5が、スイッチ6が所定の第1モードに設定されていることを検出すると実行される。また、プロジェクトファイル受信動作(A)~(D)は、プログラマブルロジックコントローラ100の起動時に、バックアップ処理部105が、スイッチ106が所定の第2モードに設定されていることを検出すると実行される。これにより、本実施形態では、プログラマブルロジックコントローラ1及び100の間における、データの容易な複製を自動的に実施することができる。
Furthermore, in the present embodiment, in the project file transfer operations (1) to (4), when the programmable logic controller 1 is started, the
本開示は上述した実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、実施形態にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施形態についても本開示の技術的範囲に含まれる。 The present disclosure is not limited to the embodiments described above, and various changes can be made within the scope of the claims, and embodiments obtained by appropriately combining technical means disclosed in the embodiments. It is within the technical scope of this disclosure.
1、100 プログラマブルロジックコントローラ(コントローラ)
2、102 接続部(バス接続部)
3、103 通信部
4、104 記憶部(プロジェクトファイル記憶部)
5、105 バックアップ処理部(処理部)
6、106 スイッチ(モード設定スイッチ)
10、110 拡張ユニット(制御補助装置)
1,100 Programmable logic controller (controller)
2, 102 Connection section (bus connection section)
3, 103
5, 105 Backup processing unit (processing unit)
6, 106 switch (mode setting switch)
10, 110 Expansion unit (control auxiliary device)
Claims (6)
前記被制御機器の制御を行うための制御プログラムと、前記コントローラの設定情報と、を少なくとも含むプロジェクトファイルを記憶するための、プロジェクトファイル記憶部と、
接続された通信ケーブルを通じ、前記外部機器と通信を行うための通信部と、
前記コントローラの動作モードを設定するためのモード設定スイッチと、
前記プロジェクトファイルの外部機器との受け渡しを制御する処理部と、
を備え、
前記処理部は、
前記モード設定スイッチが所定の第1モードに設定されていることを検出すると、
(1)自機のアドレスを所定の第1アドレスに設定し、
(2)前記通信部を介して、所定の第2アドレスの他機とのリンクを試み、
(3)前記他機との前記リンクが成功した場合に、
(4)前記通信部を介して、前記プロジェクトファイルを前記他機に送付する、
プロジェクトファイル転送動作(1)~(4)を実行する、
コントローラ。 A controller that controls a controlled device,
a project file storage unit for storing a project file including at least a control program for controlling the controlled device and setting information for the controller;
a communication unit for communicating with the external device through a connected communication cable;
a mode setting switch for setting an operating mode of the controller;
a processing unit that controls transfer of the project file to and from an external device;
Equipped with
The processing unit includes:
Upon detecting that the mode setting switch is set to a predetermined first mode,
(1) Set the address of your machine to the predetermined first address,
(2) Attempt to link with another device at a predetermined second address via the communication unit,
(3) If the link with the other device is successful,
(4) sending the project file to the other device via the communication section;
Execute project file transfer operations (1) to (4),
controller.
(3)前記他機との前記リンクが成功した場合に、
前記他機との間で、前記他機への前記プロジェクトファイルの複製が可能か否かのネゴシエーションを実行し、
前記ネゴシエーションの結果、前記プロジェクトファイルの複製が可能と判断すると、
(4)前記通信部を介して、前記プロジェクトファイルを前記他機に送付する、
請求項1に記載のコントローラ。 In the project file transfer operation, the processing unit:
(3) If the link with the other device is successful,
executing negotiation with the other machine as to whether or not it is possible to copy the project file to the other machine;
As a result of the negotiation, if it is determined that the project file can be copied,
(4) sending the project file to the other device via the communication section;
The controller according to claim 1.
接続された前記制御補助装置との間でバス通信を行うバス接続部を更に備えた前記コントローラであって、
前記制御補助装置は、機能拡張のための実行プログラムと、自身の設定情報と、を少なくとも含むアドオンアプリケーションを記憶しており、
前記処理部は、前記プロジェクトファイル転送動作において、
前記プロジェクトファイルを前記他機に送付するときに、前記制御補助装置の前記アドオンアプリケーションを併せて送付する、
請求項1に記載のコントローラ。 In order for the controller and the control auxiliary device to work together as a master device with expanded functions,
The controller further includes a bus connection unit that performs bus communication with the connected control auxiliary device,
The control auxiliary device stores an add-on application that includes at least an execution program for functional expansion and its own setting information,
In the project file transfer operation, the processing unit:
when sending the project file to the other device, also sending the add-on application of the control auxiliary device;
The controller according to claim 1.
請求項1に記載のコントローラ。 The link is a link based on one-to-one communication with the other device,
The controller according to claim 1.
前記モード設定スイッチが所定の第2モードに設定されていることを検出すると、
(A)自機のアドレスを所定の第2アドレスに設定し、
(B)前記通信部を介して、所定の第1アドレスの他機とのリンクを試み、
(C)前記他機との前記リンクが成功した場合に、
(D)前記通信部を介して、前記他機からプロジェクトファイルを受信して、前記プロジェクトファイル記憶部に記憶する、
プロジェクトファイル受信動作(A)~(D)を実行する、
請求項1から4のいずれか1項に記載のコントローラ。 The processing unit includes:
Upon detecting that the mode setting switch is set to a predetermined second mode,
(A) Set the address of your machine to a predetermined second address,
(B) Attempt to link with another device at a predetermined first address via the communication unit,
(C) If the link with the other device is successful,
(D) receiving a project file from the other device via the communication unit and storing it in the project file storage unit;
Execute project file reception operations (A) to (D),
A controller according to any one of claims 1 to 4.
前記コントローラの起動時に、前記処理部が、前記モード設定スイッチが所定の第1モードに設定されていることを検出すると実行され、
前記プロジェクトファイル受信動作は、
前記コントローラの起動時に、前記処理部が、前記モード設定スイッチが所定の第2モードに設定されていることを検出すると実行される、
請求項5に記載のコントローラ。 The project file transfer operation is as follows:
Executed when the processing unit detects that the mode setting switch is set to a predetermined first mode when the controller is started,
The project file receiving operation is as follows:
executed when the processing unit detects that the mode setting switch is set to a predetermined second mode when the controller is activated;
The controller according to claim 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2022062127A JP2023152155A (en) | 2022-04-01 | 2022-04-01 | controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2022062127A JP2023152155A (en) | 2022-04-01 | 2022-04-01 | controller |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2023152155A true JP2023152155A (en) | 2023-10-16 |
Family
ID=88327675
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2022062127A Pending JP2023152155A (en) | 2022-04-01 | 2022-04-01 | controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2023152155A (en) |
-
2022
- 2022-04-01 JP JP2022062127A patent/JP2023152155A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6968242B1 (en) | Method and apparatus for an active standby control system on a network | |
WO2001067194A1 (en) | Robot, robot system, and robot control method | |
JP6299640B2 (en) | Communication device | |
JPS61133454A (en) | Terminal control system | |
JP2004054907A (en) | Programmable controller and cpu unit, and communication unit and method for controlling communication unit | |
KR101457733B1 (en) | Apparatus for Duplexing Human Machine Interface | |
JP2023152155A (en) | controller | |
JP5088490B2 (en) | Redundant controller | |
TWI590012B (en) | Control machine for distributed control system and distributed control basic module | |
WO2021100624A1 (en) | Computing device, redundant system and program, and method for constructing redundant configuration | |
JP3298239B2 (en) | Equalization method for redundant control system | |
JPH01300742A (en) | Communication control equipment | |
JP6345359B1 (en) | Network system, communication control device, and address setting method | |
JP4788597B2 (en) | Programmable controller redundant system | |
JPH0464162A (en) | Control command execution method for computer | |
JP5400691B2 (en) | Programmable display monitoring operation method, monitoring operation program, and programmable display | |
JP2019114073A (en) | Programmable controller and dual system | |
JP4748326B2 (en) | Distributed control system | |
JP2737480B2 (en) | Method and apparatus for switching redundant communication control device | |
JP2003345407A (en) | Data equivalence method among duplexed plcs | |
JPH0650001Y2 (en) | Redundant digital controller | |
JPS61213932A (en) | Decentralized duplex computer system and its control method | |
JP2925215B2 (en) | Line control system and line control device used in the line control system | |
JP2002049411A (en) | Duplex system for programmable controller | |
JP2015207239A (en) | Control system, control device, and program |