JP2023152155A - controller - Google Patents

controller Download PDF

Info

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
Application number
JP2022062127A
Other languages
Japanese (ja)
Inventor
政則 太田
Masanori Ota
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.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
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 Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP2022062127A priority Critical patent/JP2023152155A/en
Publication of JP2023152155A publication Critical patent/JP2023152155A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Abstract

To provide a controller that can easily copy data between the controller and another apparatus.SOLUTION: A programmable logic controller (1) comprises a storage unit (4) for storing a project file, a communication unit (3) for communicating with an external apparatus, a switch (6) for setting an operation mode, and a backup processing unit (5) for controlling delivery of the project file to the external apparatus. When detecting the switch (6) being set to a prescribed first mode, the backup processing unit (5) sets an address of the programmable logic controller to a prescribed first address and attempts to link with another apparatus at a prescribed second address via the communication unit (3). When the link with the other apparatus is successful, the same executes project file transfer operation of sending the project file to the other apparatus via the communication unit (3).SELECTED DRAWING: Figure 1

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.

国際公開第2011-099146号International Publication No. 2011-099146

ところが、上記のような従来技術では、上述のデータの複製を行うごとに、上記転送ツールを操作する必要があった。更には、自機における、データの書き込み処理、及び他機における、データの読み出し処理を実行させるために、自機及び他機の各々において、複数の処理指示操作を実行する必要があった。このため、従来技術では、自機と他機との間における、データの複製を容易に実施することができないという問題点を生じることがあった。 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.

本開示の実施形態に係るプログラマブルロジックコントローラと拡張ユニットの構成例を示す機能ブロック図である。FIG. 2 is a functional block diagram showing a configuration example of a programmable logic controller and an expansion unit according to an embodiment of the present disclosure.

§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 programmable logic controllers 1 and 100 and expansion units 10 and 110 according to an embodiment of the present disclosure. In the following description, a case will be described in which the programmable logic controllers 1 and 100 are used as the controllers. Furthermore, in the following description, the programmable logic controllers 1 and 100 have the same configuration.

本実施形態のプログラマブルロジックコントローラ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 communication section 3, a storage section 4, a backup processing section 5, and a switch 6. The programmable logic controller 1 of this embodiment is a replication source controller that transfers a project file, which will be described later, to a programmable logic controller 100, which is a replication destination controller.

通信部3は、接続された通信ケーブル30を通じ、外部機器と通信を行うための機能ブロックである。通信部3には、通信ケーブル30が接続される。ユーザ(作業者)は、プログラマブルロジックコントローラ1からプログラマブルロジックコントローラ100にプロジェクトファイルをコピーしたい場合に、通信部3とプログラマブルロジックコントローラ100の通信部103とを、通信ケーブル30で直結する。 The communication unit 3 is a functional block for communicating with external devices through the connected communication cable 30. A communication cable 30 is connected to the communication section 3 . When a user (worker) wants to copy a project file from the programmable logic controller 1 to the programmable logic controller 100, the communication section 3 and the communication section 103 of the programmable logic controller 100 are directly connected with the communication cable 30.

記憶部4は、プログラマブルロジックコントローラ1のプロジェクトファイル記憶部の一例である。記憶部4は、上記スレーブ装置の制御を行うための制御プログラム4Aと、当該スレーブ装置及びプログラマブルロジックコントローラ1の設定ファイル4B(設定情報)と、を少なくとも含むプロジェクトファイルを記憶する。 The storage unit 4 is an example of a project file storage unit of the programmable logic controller 1. The storage unit 4 stores a project file including at least a control program 4A for controlling the slave device, and a setting file 4B (setting information) for the slave device and the programmable logic controller 1.

スイッチ6は、プログラマブルロジックコントローラ1のモード設定スイッチの一例である。スイッチ6は、ユーザの操作に応じて、プログラマブルロジックコントローラ1の動作モードを設定する。 The switch 6 is an example of a mode setting switch of the programmable logic controller 1. The switch 6 sets the operating mode of the programmable logic controller 1 according to a user's operation.

バックアップ処理部5は、プログラマブルロジックコントローラ1の処理部の一例である。バックアップ処理部5は、上記プロジェクトファイルのプログラマブルロジックコントローラ100との受け渡しを制御する。 The backup processing section 5 is an example of a processing section of the programmable logic controller 1. The backup processing unit 5 controls the transfer of the project file to and from the programmable logic controller 100.

また、バックアップ処理部5は、スイッチ6が所定の第1モードに設定されていることを検出すると、以下のプロジェクトファイル転送動作(1)~(4)を実行する。つまり、バックアップ処理部5は、(1)自機のアドレスを所定の第1アドレスに設定する。また、バックアップ処理部5は、(2)通信部3を介して、所定の第2アドレスのプログラマブルロジックコントローラ100とのリンクを試みる。バックアップ処理部5は、(3)プログラマブルロジックコントローラ100とのリンクが成功した場合に、(4)通信部3を介して、上記プロジェクトファイルをプログラマブルロジックコントローラ100に送付する。 Further, when the backup processing unit 5 detects that the switch 6 is set to a predetermined first mode, it executes the following project file transfer operations (1) to (4). That is, the backup processing unit 5 (1) sets the address of its own device to a predetermined first address. Further, the backup processing unit 5 (2) attempts to link with the programmable logic controller 100 at a predetermined second address via the communication unit 3 . If (3) the link with the programmable logic controller 100 is successful, the backup processing unit 5 (4) sends the project file to the programmable logic controller 100 via the communication unit 3 .

よって本実施形態によれば、バックアップ処理部5がプログラマブルロジックコントローラ1(自機)からプログラマブルロジックコントローラ100(他機)に対して、上記プロジェクトファイルを転送する際に、パーソナルコンピュータなどの特定の転送ツールを介在させる必要がない。また、本実施形態のプログラマブルロジックコントローラ1では、プログラマブルロジックコントローラ1及びプログラマブルロジックコントローラ100の各々において、複数の処理指示操作を実行することなく、プロジェクトファイルの転送を実施することができる。 Therefore, according to the present embodiment, when the backup processing unit 5 transfers the project file from the programmable logic controller 1 (own device) to the programmable logic controller 100 (other device), a specific transfer from a personal computer or the like is performed. There is no need for intervening tools. Further, in the programmable logic controller 1 of this embodiment, the project file can be transferred without executing multiple processing instruction operations in each of the programmable logic controller 1 and the programmable logic controller 100.

この結果、本実施形態では、工場の現場等で、ユーザがプログラマブルロジックコントローラ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 <Programmable logic controllers 1 and 100>
Next, with reference to FIG. 1, the programmable logic controllers 1 and 100 of this embodiment will be specifically described. Note that in the following description, the present disclosure will be described by exemplifying a case where the present disclosure is applied to a distributed/modular system (also called an add-on system) that includes the expansion unit 10. Furthermore, in the following description, the programmable logic controllers 1 and 100 will mainly be described as a project file replication source and a project file replication destination, respectively.

図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 connection section 2 . The connection section 2 is an example of a bus connection section of the programmable logic controller 1. Further, an expansion unit 10 as a control auxiliary device is connected to the connection section 2 via a unit connection bus 20 that performs bus communication using a predetermined communication protocol. In other words, the connection section 2 constitutes the above-mentioned bus connection section through which the programmable logic controller 1 and the expansion unit 10 work together as a master device with expanded functions.

通信部3は、上記スレーブ装置との間で双方向の通信を行うための、不図示の通信インターフェースを備える。通信部3には、例えば、LAN(Local Area Network)ケーブルまたはUSB(Universal Serial Bus)ケーブルを用いた通信ケーブル30の一端が接続される。また、通信部3は、例えば、IP(Internet Protocol)プロトコルなどの通信プロトコルを用いて上記双方向の通信を行う。 The communication unit 3 includes a communication interface (not shown) for performing bidirectional communication with the slave device. The communication unit 3 is connected to one end of a communication cable 30 using, for example, a LAN (Local Area Network) cable or a USB (Universal Serial Bus) cable. Further, the communication unit 3 performs the above-mentioned two-way communication using a communication protocol such as an IP (Internet Protocol) protocol, for example.

記憶部4は、例えば、RAM(Random Access Memory)を備えている。また、記憶部4には、通信部3を通じて、不図示のプログラミングツール(例えば、パーソナルコンピュータ)から上記制御プログラム4A及び設定ファイル4Bが予めダウンロードされている。そして、記憶部4は、ダウンロードされた制御プログラム4A及び設定ファイル4B等を予め記憶している。つまり、記憶部4には、上記スレーブ装置の制御を行うための制御プログラム4Aと、当該スレーブ装置及びプログラマブルロジックコントローラ1の設定ファイル4Bと、を少なくとも含むプロジェクトファイルが予め記憶される。 The storage unit 4 includes, for example, RAM (Random Access Memory). Further, the control program 4A and setting file 4B are downloaded in advance to the storage unit 4 from a programming tool (for example, a personal computer) not shown through the communication unit 3. The storage unit 4 stores the downloaded control program 4A, setting file 4B, etc. in advance. That is, the storage unit 4 stores in advance a project file that includes at least a control program 4A for controlling the slave device, and a configuration file 4B for the slave device and the programmable logic controller 1.

バックアップ処理部5は、例えば、CPU(Central Processing Unit)などを用いて構成されている。バックアップ処理部5が実行する動作については、後述する。 The backup processing unit 5 is configured using, for example, a CPU (Central Processing Unit). The operations executed by the backup processing unit 5 will be described later.

スイッチ6は、プログラマブルロジックコントローラ1に設けられたハードウェアスイッチである。スイッチ6は、例えば、ディップスイッチによって構成されている。スイッチ6は、ユーザの操作に応じて、切替えられることにより、プログラマブルロジックコントローラ1の動作モードを所定の第1モードまたは所定の第2モードとすることが可能である。 The switch 6 is a hardware switch provided in the programmable logic controller 1. The switch 6 is configured by, for example, a dip switch. The switch 6 can set the operation mode of the programmable logic controller 1 to a predetermined first mode or a predetermined second mode by being switched according to a user's operation.

第1モードは、プログラマブルロジックコントローラ1が、記憶しているプロジェクトファイルを、他のプログラマブルロジックコントローラ100にコピーさせる動作モードである。 The first mode is an operation mode in which the programmable logic controller 1 copies the stored project file to another programmable logic controller 100.

第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 storage unit 4.

また、スイッチ6は、ユーザの操作に応じて切替えられることにより、プログラマブルロジックコントローラ1の動作モードを第1モード及び第2モードのいずれのモードでもない他のモードとすることも可能である。例えば、プログラマブルロジックコントローラ1では、スイッチ6に対する操作に応じて、上記マスタ装置として当該プログラマブルロジックコントローラ1が機能する通常のモードも実行し得る。 Further, the switch 6 can be switched in response to a user's operation to set the operation mode of the programmable logic controller 1 to a mode other than either the first mode or the second mode. For example, the programmable logic controller 1 can also execute a normal mode in which the programmable logic controller 1 functions as the master device in response to the operation on the switch 6.

本実施形態のプログラマブルロジックコントローラ100は、接続部102と、通信部103と、記憶部104と、バックアップ処理部105と、スイッチ106と、を備えている。これらの接続部102、通信部103、記憶部104、バックアップ処理部105、及びスイッチ106は、接続部2、通信部3、記憶部4、バックアップ処理部5、及びスイッチ6とそれぞれ同一の構成であるため、その重複した説明は省略する。 The programmable logic controller 100 of this embodiment includes a connection section 102, a communication section 103, a storage section 104, a backup processing section 105, and a switch 106. The connection unit 102, communication unit 103, storage unit 104, backup processing unit 105, and switch 106 have the same configuration as the connection unit 2, communication unit 3, storage unit 4, backup processing unit 5, and switch 6, respectively. Therefore, the redundant explanation will be omitted.

<拡張ユニット10及び110>
拡張ユニット10は、接続部11と、記憶部12と、を備えている。接続部11には、接続部2と同様に、所定の通信プロトコルで通信を行うユニット接続バス20を介してプログラマブルロジックコントローラ1が接続されている。
<Expansion units 10 and 110>
The expansion unit 10 includes a connection section 11 and a storage section 12. Similar to the connection section 2, the programmable logic controller 1 is connected to the connection section 11 via a unit connection bus 20 that communicates using a predetermined communication protocol.

記憶部12は、例えば、RAM(Random Access Memory)を備えている。また、記憶部12には、少なくとも1つのアドオンアプリケーションが予めインストールされている。具体的には、記憶部12は、アドオンアプリケーションごとに、アプリパッケージ12Aと、アプリ実行プログラム12Bと、アプリ設定ファイル12Cとを予め記憶している。 The storage unit 12 includes, for example, RAM (Random Access Memory). Furthermore, at least one add-on application is installed in the storage unit 12 in advance. Specifically, the storage unit 12 stores in advance an application package 12A, an application execution program 12B, and an application setting file 12C for each add-on application.

より具体的にいえば、アプリパッケージ12Aは、アプリ実行プログラム12B及びアプリ設定ファイル12Cを含んだデータファイルである。アプリ実行プログラム12Bは、拡張ユニット10での機能拡張のための実行プログラムである。アプリ設定ファイル12Cは、拡張ユニット10自身の設定情報である。 More specifically, the application package 12A is a data file that includes an application execution program 12B and an application setting file 12C. The application execution program 12B is an execution program for functional expansion in the expansion unit 10. The application setting file 12C is setting information for the expansion unit 10 itself.

拡張ユニット10では、ユーザが不図示のプログラミングツール(例えば、パーソナルコンピュータ)を操作することにより、記憶部12に対して、アプリパッケージ12Aを用いてアドオンアプリケーションのインストールを実行する。これにより、拡張ユニット10では、アプリ実行プログラム12Bと、例えば、工場出荷時のアプリ設定ファイル12Cとが記憶部12に保持される。 In the expansion unit 10, the user operates a programming tool (for example, a personal computer) (not shown) to install an add-on application in the storage unit 12 using the application package 12A. As a result, in the expansion unit 10, the application execution program 12B and, for example, the factory-set application setting file 12C are held in the storage unit 12.

また、拡張ユニット10では、ユーザはプログラミングツールによってアドオンアプリケーションの設定を行うことにより、アプリ設定ファイル12Cに所望の設定を反映することができる。 Furthermore, in the expansion unit 10, the user can reflect desired settings in the application setting file 12C by configuring the add-on application using a programming tool.

拡張ユニット110は、拡張ユニット10と同一の構成である。つまり、拡張ユニット110は、拡張ユニット10の接続部11及び記憶部12とそれぞれ同一の接続部111及び記憶部112を備えている。 Expansion unit 110 has the same configuration as expansion unit 10. In other words, the expansion unit 110 includes a connection section 111 and a storage section 112 that are the same as the connection section 11 and storage section 12 of the expansion unit 10, respectively.

§3 動作例
次に、本実施形態のプログラマブルロジックコントローラ1及び100の動作例について具体的に説明する。尚、以下の説明では、プログラマブルロジックコントローラ1及び100が、それぞれプロジェクトファイルの複製元のコントローラ及びプロジェクトファイルの複製先のコントローラとして機能する場合を例示して説明する。つまり、以下の説明では、ユーザがプログラマブルロジックコントローラ1の設定を複製する作業を主に説明する。
§3 Operation example Next, an operation example of the programmable logic controllers 1 and 100 of this embodiment will be specifically described. In the following description, an example will be described in which the programmable logic controllers 1 and 100 function as a project file replication source controller and a project file replication destination controller, respectively. That is, in the following explanation, the operation in which the user copies the settings of the programmable logic controller 1 will be mainly explained.

<プログラマブルロジックコントローラ1及び100の動作例>
まず、ユーザは、プログラマブルロジックコントローラ1及び100の各々において、電源をオフにする。次に、ユーザは、プログラマブルロジックコントローラ1において、スイッチ6を第1モードに設定する。また、ユーザは、プログラマブルロジックコントローラ100において、スイッチ106を第2モードに設定する。
<Example of operation of programmable logic controllers 1 and 100>
First, the user turns off the power in each of the programmable logic controllers 1 and 100. Next, the user sets the switch 6 in the programmable logic controller 1 to the first mode. The user also sets the switch 106 in the programmable logic controller 100 to the second mode.

その後、ユーザは、通信ケーブル30の一端及び他端を、それぞれプログラマブルロジックコントローラ1の通信部3及びプログラマブルロジックコントローラ100の通信部103に接続する。 After that, the user connects one end and the other end of the communication cable 30 to the communication section 3 of the programmable logic controller 1 and the communication section 103 of the programmable logic controller 100, respectively.

次に、ユーザが、プログラマブルロジックコントローラ1及び100の各々において、電源をオンする。これにより、プログラマブルロジックコントローラ1及び100では、それぞれ第1モード及び第2モードで起動する。 Next, the user turns on the power in each of the programmable logic controllers 1 and 100. As a result, the programmable logic controllers 1 and 100 start up in the first mode and the second mode, respectively.

つまり、プログラマブルロジックコントローラ1では、バックアップ処理部5がスイッチ6に設定された第1モードを検出することにより、バックアップ処理部5は上記プロジェクトファイル転送動作(1)~(4)を順次実行する。また、プログラマブルロジックコントローラ100では、バックアップ処理部105がスイッチ106に設定された第2モードを検出することにより、バックアップ処理部105はプロジェクトファイル受信動作(A)~(D)を順次実行する。 That is, in the programmable logic controller 1, when the backup processing section 5 detects the first mode set in the switch 6, the backup processing section 5 sequentially executes the project file transfer operations (1) to (4). Furthermore, in the programmable logic controller 100, when the backup processing unit 105 detects the second mode set in the switch 106, the backup processing unit 105 sequentially executes the project file receiving operations (A) to (D).

プログラマブルロジックコントローラ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 backup processing unit 5 detects that the switch 6 is set to a predetermined first mode, the backup processing unit 5 changes the address of its own device to a predetermined first address that is a fixed address (for example, 169.254.100.1). Set to .

一方、プログラマブルロジックコントローラ100では、プロジェクトファイル受信動作(A)が実行される。具体的には、バックアップ処理部105が、スイッチ106が所定の第2モードに設定されていることを検出すると、自機のアドレスを固定アドレスである所定の第2アドレス(例えば、169.254.100.2)に設定する。 On the other hand, the programmable logic controller 100 executes a project file receiving operation (A). Specifically, when the backup processing unit 105 detects that the switch 106 is set to a predetermined second mode, the backup processing unit 105 changes the address of its own device to a predetermined second address that is a fixed address (for example, 169.254.100.2). Set to .

次に、プログラマブルロジックコントローラ1では、プロジェクトファイル転送動作(2)が実行される。具体的には、バックアップ処理部5が、通信部3を介して、所定の第2アドレスのプログラマブルロジックコントローラ100(他機)とのリンクを試みる。 Next, the programmable logic controller 1 executes a project file transfer operation (2). Specifically, the backup processing unit 5 attempts to link with the programmable logic controller 100 (another device) at a predetermined second address via the communication unit 3 .

一方、プログラマブルロジックコントローラ100では、プロジェクトファイル受信動作(B)が実行される。具体的には、バックアップ処理部105が、通信部103を介して、所定の第1アドレスのプログラマブルロジックコントローラ1(他機)とのリンクを試みる。 On the other hand, the programmable logic controller 100 executes a project file receiving operation (B). Specifically, the backup processing unit 105 attempts to link with the programmable logic controller 1 (another device) at a predetermined first address via the communication unit 103.

プログラマブルロジックコントローラ1及び100では、固定のリンクローカルIP(Internet Protocol)アドレスに設定されるので、プログラマブルロジックコントローラ1及び100では、両機を直結させる通信ケーブル30を介在させたIP(Internet Protocol)接続が自動的に確立され得る。 Since the programmable logic controllers 1 and 100 are set to a fixed link local IP (Internet Protocol) address, the programmable logic controllers 1 and 100 have an IP (Internet Protocol) connection via the communication cable 30 that directly connects the two devices. Can be established automatically.

以上により、プログラマブルロジックコントローラ1とプログラマブルロジックコントローラ100とは、通信ケーブル30を介在させた、IP(Internet Protocol)接続によって双方向のデータ通信を行うことが可能となる。すなわち、プログラマブルロジックコントローラ1は、プログラマブルロジックコントローラ100との1対1通信によるリンクにより、プログラマブルロジックコントローラ100にデータを送信し得る。 As described above, the programmable logic controller 1 and the programmable logic controller 100 can perform bidirectional data communication through an IP (Internet Protocol) connection with the communication cable 30 interposed. That is, the programmable logic controller 1 can transmit data to the programmable logic controller 100 by linking with the programmable logic controller 100 through one-to-one communication.

次に、プログラマブルロジックコントローラ1では、プロジェクトファイル転送動作(3)が実行される。具体的には、バックアップ処理部5が、プログラマブルロジックコントローラ100とのリンクが成功したか否かについて判別する。そして、バックアップ処理部5は、リンクが成功したことを判別すると、プログラマブルロジックコントローラ100との間で、プログラマブルロジックコントローラ100への上記プロジェクトファイルの複製が可能か否かのネゴシエーションを実行する。 Next, the programmable logic controller 1 executes a project file transfer operation (3). Specifically, the backup processing unit 5 determines whether the link with the programmable logic controller 100 is successful. When the backup processing unit 5 determines that the link is successful, it executes negotiation with the programmable logic controller 100 to determine whether the project file can be copied to the programmable logic controller 100.

一方、プログラマブルロジックコントローラ100では、プロジェクトファイル受信動作(B)が実行される。具体的には、バックアップ処理部105が、プログラマブルロジックコントローラ100とのリンクが成功したか否かについて判別する。そして、バックアップ処理部105は、リンクが成功したことを判別すると、プログラマブルロジックコントローラ1との間で、プログラマブルロジックコントローラ1からの上記プロジェクトファイルの複製が可能か否かのネゴシエーションを実行する。 On the other hand, the programmable logic controller 100 executes a project file receiving operation (B). Specifically, the backup processing unit 105 determines whether the link with the programmable logic controller 100 is successful. When the backup processing unit 105 determines that the link is successful, it executes negotiation with the programmable logic controller 1 to determine whether or not the project file from the programmable logic controller 1 can be copied.

上記ネゴシエーションは、複製元と複製先のバックアップ処理部5及び105の間で情報を相互に交換し合い、データ送受信の開始前に手順の調整及び決定を行う処理である。また、このネゴシエーションにおいて、交換し確認する主な情報とその目的を以下に示す。 The above negotiation is a process in which information is mutually exchanged between the backup processing units 5 and 105 of the replication source and the replication destination, and procedures are adjusted and determined before the start of data transmission and reception. In addition, the main information to be exchanged and confirmed during this negotiation and its purpose are shown below.

(イ)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 expansion units 10 and 110 installed in the programmable logic controllers 1 and 100, respectively (whether the configurations of the expansion units 10 and 110 are the same)
(g) Add-on information of expansion units 10 and 110 (discrimination of add-on application data)
(H) Security information of add-ons for expansion units 10 and 110 (whether duplication is possible or not)
Note that, if the above negotiation fails, the backup processing units 5 and 105 interrupt the project file transfer operation and the project file reception operation, respectively.

続いて、プログラマブルロジックコントローラ1では、ネゴシエーションに成功する場合には、バックアップ処理部5は、ネゴシエーションの結果としてプロジェクトファイルの複製及びアドオンアプリケーションの複製が可能と判断することとなる。そして、バックアップ処理部5は、プロジェクトファイル転送動作(4)を実行する。 Subsequently, in the programmable logic controller 1, if the negotiation is successful, the backup processing unit 5 determines that it is possible to copy the project file and the add-on application as a result of the negotiation. Then, the backup processing unit 5 executes the project file transfer operation (4).

具体的には、バックアップ処理部5が、通信部3を介して、プロジェクトファイルに含まれた制御プログラム4A及び設定ファイル4Bをプログラマブルロジックコントローラ100に送付する。また、バックアップ処理部5は、ユニット接続バス20を介して拡張ユニット10から全てのアドオンアプリケーションを取得する。バックアップ処理部5は、上記プロジェクトファイルを送付するときに、当該プロジェクトファイルと併せて、全てのアドオンアプリケーションを送付する。 Specifically, the backup processing unit 5 sends the control program 4A and setting file 4B included in the project file to the programmable logic controller 100 via the communication unit 3. The backup processing unit 5 also acquires all add-on applications from the expansion unit 10 via the unit connection bus 20. When the backup processing unit 5 sends the project file, it sends all add-on applications together with the project file.

具体的には、バックアップ処理部5は、記憶部12から、アプリパッケージ12A、アプリ実行プログラム12B、及びアプリ設定ファイル12Cを読み出す。そして、バックアップ処理部105は、通信部3を介して、読み出したアプリパッケージ12A、アプリ実行プログラム12B、及びアプリ設定ファイル12Cをプログラマブルロジックコントローラ100に送付する。 Specifically, the backup processing unit 5 reads the application package 12A, the application execution program 12B, and the application setting file 12C from the storage unit 12. Then, the backup processing unit 105 sends the read application package 12A, application execution program 12B, and application setting file 12C to the programmable logic controller 100 via the communication unit 3.

一方、プログラマブルロジックコントローラ100では、バックアップ処理部105は、ネゴシエーションの結果、プロジェクトファイルの複製及びアドオンアプリケーションの複製が可能と判断すると、プロジェクトファイル受信動作(D)が実行される。 On the other hand, in the programmable logic controller 100, if the backup processing unit 105 determines that the project file can be duplicated and the add-on application can be duplicated as a result of the negotiation, the project file receiving operation (D) is executed.

具体的には、バックアップ処理部105が、通信部3を介して、プログラマブルロジックコントローラ1から制御プログラム4A及び設定ファイル4Bを受信する。そして、バックアップ処理部105は、受信した制御プログラム4A及び設定ファイル4Bをそれぞれ制御プログラム104A及び設定ファイル104Bとして記憶部104に記憶する。 Specifically, the backup processing unit 105 receives the control program 4A and the setting file 4B from the programmable logic controller 1 via the communication unit 3. Then, the backup processing unit 105 stores the received control program 4A and setting file 4B in the storage unit 104 as a control program 104A and a setting file 104B, respectively.

また、バックアップ処理部105が、通信部3を介して、プログラマブルロジックコントローラ1からアプリパッケージ12A、アプリ実行プログラム12B、及びアプリ設定ファイル12Cを受信する。そして、バックアップ処理部105は、ユニット接続バス120を介して受信したアプリパッケージ12A、アプリ実行プログラム12B、及びアプリ設定ファイル12Cを拡張ユニット110に送信する。 Further, the backup processing unit 105 receives the application package 12A, the application execution program 12B, and the application setting file 12C from the programmable logic controller 1 via the communication unit 3. The backup processing unit 105 then transmits the application package 12A, application execution program 12B, and application setting file 12C received via the unit connection bus 120 to the expansion unit 110.

続いて、バックアップ処理部105は、アプリパッケージ12A、アプリ実行プログラム12B、及びアプリ設定ファイル12Cを受信する。そして、バックアップ処理部105は、それぞれアプリパッケージ112A、アプリ実行プログラム112B、及びアプリ設定ファイル112Cとして記憶部112に記憶する。 Subsequently, the backup processing unit 105 receives the application package 12A, the application execution program 12B, and the application setting file 12C. Then, the backup processing unit 105 stores them in the storage unit 112 as an application package 112A, an application execution program 112B, and an application setting file 112C, respectively.

尚、拡張ユニット10の記憶部12に複数のアドオンアプリケーションが記憶されている場合には、バックアップ処理部5は、アドオンアプリケーションごとに、プログラマブルロジックコントローラ100への送付を繰り返して行う。 Note that if a plurality of add-on applications are stored in the storage unit 12 of the expansion unit 10, the backup processing unit 5 repeatedly sends each add-on application to the programmable logic controller 100.

<作用、効果>
以上のように、本実施形態のプログラマブルロジックコントローラ1では、パーソナルコンピュータなどの機器を用いることなく、通信ケーブル30を用いてプログラマブルロジックコントローラ100に直結する。これにより、本実施形態のプログラマブルロジックコントローラ1では、プログラマブルロジックコントローラ100に対して、上記プロジェクトファイルを転送することができる。
<Action, effect>
As described above, the programmable logic controller 1 of this embodiment is directly connected to the programmable logic controller 100 using the communication cable 30 without using a device such as a personal computer. Thereby, the programmable logic controller 1 of this embodiment can transfer the project file to the programmable logic controller 100.

また、本実施形態のプログラマブルロジックコントローラ100では、バックアップ処理部105は、スイッチ106による第2モードの設定により、プロジェクトファイル受信動作(A)~(D)を実行する。 Furthermore, in the programmable logic controller 100 of this embodiment, the backup processing unit 105 executes the project file receiving operations (A) to (D) by setting the second mode using the switch 106.

つまり、プログラマブルロジックコントローラ1では、ユーザは、プログラマブルロジックコントローラ1に設けられたスイッチ6の操作のみを行えばよい。それゆえ、プログラマブルロジックコントローラ1では、上記転送ツールに対して、データの複製先のアドレスなどの情報の入力指示操作作業及び複製対象のデータの指定操作作業などを行う必要がない。 That is, in the programmable logic controller 1, the user only has to operate the switch 6 provided in the programmable logic controller 1. Therefore, in the programmable logic controller 1, there is no need to perform operations for inputting information such as an address of a data copy destination and operations for specifying data to be copied, etc., to the transfer tool.

また、プログラマブルロジックコントローラ100では、ユーザは、上記転送ツールに対して、データの複製元のアドレスなどの情報の確認操作作業及び複製対象のデータの指定操作作業などを行う必要がない。そして、プログラマブルロジックコントローラ100は、プログラマブルロジックコントローラ1からのデータ受信を行うことができる。この結果、プログラマブルロジックコントローラ1とプログラマブルロジックコントローラ100との間における、データの複製を容易に実施することができる。 Furthermore, in the programmable logic controller 100, the user does not need to perform operations such as confirming information such as the address of the data replication source and specifying data to be copied using the transfer tool. The programmable logic controller 100 can receive data from the programmable logic controller 1. As a result, data can be easily replicated between the programmable logic controller 1 and the programmable logic controller 100.

また、以上のように、本実施形態では、データ転送を行うための特定のプログラムを用いたパーソナルコンピュータ(転送ツール)を用いることなく、複製元のプログラマブルロジックコントローラ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 logic controller 100. Therefore, in this embodiment, it is necessary to manage the transfer tool when replacing the programmable logic controller 100 at a factory or other site due to a failure of the programmable logic controller 100 or an update of its software. There is no.

コントローラにおいて、メモリカードにプロジェクトファイルをバックアップ可能とし、メモリカードを介してプロジェクトファイルの転送を行うことも考えられる。しかしながら、このようなメモリカードの利用は、データセキュリティを確保することが難しいという問題を生じることがある。つまり、このような比較例では、プロジェクトファイルが記憶されたメモリカードの持ち出しによる機密漏洩の怖れがある。 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 programmable logic controller 1 or 100.

更に、本実施形態では、例えば、プログラマブルロジックコントローラ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 programmable logic controller 100 is incorporated. Thereby, in this embodiment, the manufacturing device, measuring device, etc. can be easily mass-produced.

また、本実施形態のプログラマブルロジックコントローラ1及び100では、バックアップ処理部5及び105は、ネゴシエーションを実行して、プロジェクトファイルの複製が可能かどうかについて判断している。そして、本実施形態では、バックアップ処理部5は、プロジェクトファイルの複製が可能と判断すると、通信部3を介して、プロジェクトファイルをバックアップ処理部105に送付している。これにより、バックアップ処理部5は、プログラマブルロジックコントローラ1とプログラマブルロジックコントローラ100との間における、データの確実な複製を容易に実施することができる。 Furthermore, in the programmable logic controllers 1 and 100 of this embodiment, the backup processing units 5 and 105 execute negotiation to determine whether the project file can be copied. In this embodiment, when the backup processing unit 5 determines that the project file can be copied, it sends the project file to the backup processing unit 105 via the communication unit 3. Thereby, the backup processing unit 5 can easily perform reliable duplication of data between the programmable logic controller 1 and the programmable logic controller 100.

また、本実施形態では、バックアップ処理部5は、プロジェクトファイル転送動作において、プロジェクトファイルをバックアップ処理部105に送付するときに、拡張ユニット10のアドオンアプリケーションを併せて送付している。これにより、本実施形態では、プログラマブルロジックコントローラ1及び100がそれぞれ拡張ユニット10及び110と一体的に構成されて機能拡張されている場合でも、プログラマブルロジックコントローラ1及び100の間における、必要なデータの複製を容易に実施することができる。 Further, in this embodiment, when the backup processing section 5 sends the project file to the backup processing section 105 in the project file transfer operation, it also sends the add-on application of the expansion unit 10. As a result, in this embodiment, even if the programmable logic controllers 1 and 100 are configured integrally with the expansion units 10 and 110 to expand their functions, necessary data can be exchanged between the programmable logic controllers 1 and 100. Replication can be easily performed.

また、本実施形態では、プログラマブルロジックコントローラ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 programmable logic controller 100. Thereby, in this embodiment, data can be easily replicated reliably between the programmable logic controllers 1 and 100.

また、本実施形態では、プロジェクトファイル転送動作(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 backup processing unit 5 detects that the switch 6 is set to a predetermined first mode. Then it will be executed. Further, the project file receiving operations (A) to (D) are executed when the backup processing unit 105 detects that the switch 106 is set to a predetermined second mode when the programmable logic controller 100 is started. Thereby, in this embodiment, data can be easily replicated automatically between the programmable logic controllers 1 and 100.

本開示は上述した実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、実施形態にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施形態についても本開示の技術的範囲に含まれる。 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 Communication Department 4, 104 Storage Department (Project File Storage Department)
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対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.
JP2022062127A 2022-04-01 2022-04-01 controller Pending JP2023152155A (en)

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)

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