JP4411714B2 - PLC with automatic program transfer function, engineering device and control method thereof - Google Patents

PLC with automatic program transfer function, engineering device and control method thereof Download PDF

Info

Publication number
JP4411714B2
JP4411714B2 JP2000015980A JP2000015980A JP4411714B2 JP 4411714 B2 JP4411714 B2 JP 4411714B2 JP 2000015980 A JP2000015980 A JP 2000015980A JP 2000015980 A JP2000015980 A JP 2000015980A JP 4411714 B2 JP4411714 B2 JP 4411714B2
Authority
JP
Japan
Prior art keywords
plc
program
function
status
automatic
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.)
Expired - Fee Related
Application number
JP2000015980A
Other languages
Japanese (ja)
Other versions
JP2001209413A (en
Inventor
竜太郎 桑村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yaskawa Electric Corp
Original Assignee
Yaskawa Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yaskawa Electric Corp filed Critical Yaskawa Electric Corp
Priority to JP2000015980A priority Critical patent/JP4411714B2/en
Publication of JP2001209413A publication Critical patent/JP2001209413A/en
Application granted granted Critical
Publication of JP4411714B2 publication Critical patent/JP4411714B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、FAネットワークを介してPLCとエンジニアリング装置の間でプログラム、データの自動転送が可能なシステムに関するものである。
【0002】
【従来の技術】
従来、PLC(プログラマブル・ロジック・コントローラの略)を交換するときには、例えば、図6、図7に示すような従来のシステムでは、図6の場合は稼働しているPLC63を停止させて設備から取り外し、新しいPLC62を取付けFAネットワーク64上に配置して、エンジニアリグ装置61をPLC62の側に持って行ってPLC62と直接接続して対象プログラムをダウンロードしていた。
もしくは、図7に示すように、エンジニアリング装置71がPLC72とFAネットワーク74を介して接続されるシステムの場合は、故障PLC73を設備から取り外し、新しいPLC72を取付けた後に作業者がエンジニアリング装置71の場所まで移動して、対象プログラムのダウンロードを行わなければならなかった。
又、PLC側でプログラム、データの変更を行った時は、その変更は変更した作業者の責任において、フロッピーディスク等の外部媒体にバックアップされていた。又、変更に失敗した時には、外部媒体に記憶して保管しておいたバックアップをダウンロードしなければならなかった。
【0003】
【発明が解決しようとする課題】
しかしながら、上記従来技術においては、図6に示すシステムでは、エンジニアリング装置をPLCの側へ持っていかなければならないし、作業者が手動で必要なプログラムを選択してダウンロードするのでプログラムを間違う可能性があるという問題があった。
また、作業者が手動でプログラムをダウンロードするので、ダウンロードが完了するまで作業者はエンジニアリング装置を監視していなければならないので手間が掛かるという問題があった。
また、図7に示すシステムでは、作業者はPLCから離れているエンジニアリング装置まで移動してダウンロード作業を行わなければならないので、新しいPLCを立ち上げるにはダウンロードのために必ず多くの作業時間を要するという問題があった。
また、PLCのプログラム、データをPLC側で直接変更を行った場合には、バックアップを作業者がフロッピーディスク等の外部媒体に記録して取っておかなければならない。若し、バックアップを行うのを忘れていてPLCが故障した場合には、新しく交換したPLCで再度プログラム、データの変更を行わなければならなくなるとという問題があった。
また、PLCのプログラム、データの変更に失敗した場合には、外部媒体に記憶して保管しておいたバックアップを作業者がダウンロードしなければならなくなる等の問題があった。
そこで、本発明の第1の発明は、新しく交換したPLCを立ち上げるためのダウンロード作業を自動的に行って該当するプログラムを間違う可能性を無くし、作業の効率を改善できるプログラム自動転送機能付きPLCおよびエンジニアリング装置とその制御方法を提供することを目的としている。
更に、本発明の第2の発明は、PLC側のプログラム、データが直接変更された時には自動的にアップロードを行い、作業者がバックアップをその都度作成して保管・管理して置く必要を無くして作業効率および信頼性を向上させるプログラム自動転送機能付きPLCおよびエンジニアリング装置とその制御方法を提供することを目的としている。
更に、本発明の第3の発明は、PLC側で万が一プログラムの修正に失敗した場合でも過去の履歴を遡ってプログラム、データを元に戻すことが可能なプログラム自動転送機能付きPLCおよびエンジニアリング装置とその制御方法を提供することを目的としている。
【0004】
【課題を解決するための手段】
上記目的を達成するため、請求項1に記載のプログラム自動転送機能付きPLCおよびエンジニアリング装置の発明は、ネットワークを介してプログラム転送が可能なプログラム自動転送機能付きPLCおよびエンジニアリング装置において、PLCの状態を表すステータスのオン、オフを切替えるPLCステータス機能と、エンジニアリング装置とネットワークを介して通信を行うネットワーク機能を有するPLCと、
プログラム転送手段として、最新のプログラムを保持するカレントプログラムと、内部にプログラムを保持しておくためのプログラムデータベースと、ネットワークを介して前記PLCとの通信を行うネットワーク機能と、常に前記PLCの状態をステータスにより監視するPLCステータス監視機能と、自動的に対象の前記カレントプログラムのデータを前記PLCにダウンロードするプログラム自動ダウンロード機能を有するエンジニアリング装置とを備え、
前記PLCステータス機能は、PLCの交換時に初期化されている状態を表すステータスを最初はオンに、前記PLCにプログラムがダウンロードされるとオフに切替え、
前記PLCステータス監視機能は、初期化されている状態を表すステータスのオンを確認して前記プログラム自動ダウンロード機能を起動することを特徴としている。
また、請求項2に記載の発明は、請求項1記載のプログラム自動転送機能付きPLCおよびエンジニアリング装置において、前記エンジニアリング装置に、前記PLCからプログラム、データをカレントプログラムにアップロードするプログラム自動アップロード機能を更に備え、
前記PLCステータス機能は、前記PLCのプログラム、データの保守・点検時に、PLCのプログラム、データが変更された状態を表すステータスをプログラムがダウンロードまたはアップロードされるとオフに、プログラム、データの変更が行われた時にオンに切替え、
前記PLCステータス監視機能は、PLCのプログラム、データが変更された状態を表すステータスのオンを確認して前記プログラム自動アップロード機能を起動することを特徴としている。
【0005】
また、請求項に記載の発明は、ネットワークを介してプログラム転送が可能なプログラム自動転送機能付きPLCおよびエンジニアリング装置の制御方法において、ネットワークを介してプログラム転送が可能なプログラム自動転送機能付きPLCおよびエンジニアリング装置の制御方法において、
PLCの状態を表すステータスのオン、オフを切替えるPLCステータス機能と、エンジニアリング装置とネットワークを介して通信を行うネットワーク機能を有するPLCと、
プログラム転送手段として、最新のプログラムを保持するカレントプログラムと、内部にプログラムを保持しておくためのプログラムデータベースと、ネットワークを介して前記PLCとの通信を行うネットワーク機能と、常に前記PLCの状態をステータスにより監視するPLCステータス監視機能と、自動的に対象の前記カレントプログラムのデータを前記PLCにダウンロードするプログラム自動ダウンロード機能を有するエンジニアリング装置とを備え、
前記PLCステータス機能は、PLCの交換時に初期化されている状態を表すステータスを最初はオンに、前記PLCにプログラムがダウンロードされるとオフに切替え、
前記PLCステータス監視機能は、初期化されている状態を表すステータスのオンを確認して前記プログラム自動ダウンロード機能を起動することを特徴としている。
また、請求項に記載の発明は、請求項記載のプログラム自動転送機能付きPLCおよびエンジニアリング装置の制御方法において、前記エンジニアリング装置に、前記PLCからプログラム、データをカレントプログラムにアップロードするプログラム自動アップロード機能を更に備え、
前記PLCステータス機能は前記PLCのプログラム、データの保守・点検時に、PLCのプログラム、データが変更された状態を表すステータスをプログラムがダウンロードまたはアップロードされるとオフに、プログラム、データの変更が行われた時にオンに切替え、
前記PLCステータス監視機能は、PLCのプログラム、データが変更された状態を表すステータスのオンを確認して前記プログラム自動アップロード機能を起動することを特徴としている。
このプログラム自動転送機能付きPLCおよびエンジニアリング装置とその制御方法によれば、PLCの初期化状態を表すステータスをエンジニアリング装置のPLCステータス監視機能が常時監視して、ステータスがONに変わるとプログラム自動ダウンロード機能によりネットワークを介してカレントプログラムが自動的にPLCにダウンロードされるので、PLCが交換された時に、人手を介さずに自動的に対象のプログラムをダウンロードすることができる。あるいは、エンジニアリング装置のステータス監視機能が常時PLCのプログラム、データが変更された状態を表すステータスを監視して、PLCでプログラム、データが変更され、PLCのプログラム、データが変更された状態を表すステータスがONに変わるとプログラム自動アップロード機能により、ネットワークを介してPLCからプログラム、データを自動的にカレントプログラムにアップロードされるので、PLCのプログラム、データの保守・点検時にPLCのプログラム、データが変更された時、人手によらず自動的にカレントプログラムにアップロードを実施することができる。
【0006】
【発明の実施の形態】
以下、本発明の第1の実施の形態について図を参照して説明する。
図1は本発明の第1の実施の形態に係るプログラム自動転送機能付きPLCおよびエンジニアリング装置のブロック図である。
図2は図1に示すプログラム自動ダウンロード機能による処理のフローチャートである。
図1において、1はPLC、2はエンジニアリング装置、3〜5はPLCの機能を表し、3はPLCステータス機能でPLCの初期状態を表すステータスと、プログラム、データの変更状態を表すステータスの2つステータスのON/OFF表示切替えを行う。
4はネットワーク機能で、PLC間主体のネットワークでPLCリンクモジュール等で実現され、各PLC間でマスタ・スレーブ等のネットワーク方式を構成する。5は通常のPLC機能であり、CPUモジュール、メモリ、I/Oモジュール、モーション・モジュール、通信(PLCリンク等)モジュール、リモートI/Oモジュール、等により構成されている。
6〜12はエンジニアリング装置の機能であって、6はプログラム自動ダウンロード機能、7はプログラム自動アップロード機能、8はPLCステータス監視機能で、定周期的にPLC1のステータスを採取する。9はプログラムを蓄積するデータベース、10はカレントプログラムで、現在の最新のプログラム、データを保持する。11はプログラム回復機能、12はネットワーク機能で、13はFAネットワークである。
図5は図1に示すPLCのステータスを示す図であり、図5(a)にPLCの初期状態を表すステータスを、図5(b)にはPLCのプログラム、データが変更された状態を示すステータスを示している。
PLCの初期状態を表すステータスは、図5(a)に示すように、PLC交換時当初はオンに、PLCにプログラムがダウンロードされるとオフになる。一方のプログラム、データが変更された状態を表すステータスは、図5(b)のように、プログラムがダウンロード、アップロードされた時にオフになり、プログラムデータの変更が行われた時にオンになる。
【0007】
つぎに動作について図2を参照して説明する。
先ず、システム内の故障PLCが新PLCに交換されると(S100)、エンジニアリング装置2のPLCステータス監視機能8が作動してPLC1のステータスの監視を開始する(S101)。PLCステータス機能3がPLCが初期化されている状態を表すステータスをONに切替える(S102)。
エンジニアリング装置2は、PLCステータス監視機能8によりPLCが初期化されている状態を表すステータスのONを検出すると(S103)、プログラム自動ダウンロード機能6を起動し(S104)、カレントプログラム10をPLC1にダウンロードする(S105)。これによってPLC1のプログラムはカレントプログラム10の内容により更新される(S106)。
カレント・プログラムのダウンロードが完了すると、エンジニアリング装置2側からロード完了通知を行う(S107)。PLC1はエンジニアリング装置2からのロード完了通知を受けて、PLCが初期化されている状態を表すステータスをオフに戻す(S108)。
以上でカレントプログラムのダウンロードが完了し、エンジアリング装置2はPLCステータス監視機能6による通常のステータス監視動作に戻る。
【0008】
次に、本発明の第2の実施の形態について図を参照して説明する。
図3は本発明の第2の実施の形態に係るプログラム自動アップロード機能による処理のフローチャートである。
なお、図1のブロック図は第2の実施の形態の場合も共通とする。
つぎに図3を参照して動作について説明する。
先ず、作業者がPLC1のプログラムを変更する(S200)。エンジニアリング装置2では、PLCステータス監視機能が定周期的にステータス監視を行い(S201)。PLC1のPLCステータス機能3がプログラムの変更に基づいてPLCのプログラムが変更された状態を表すステータスをONにする(S202)。
エンジニアリング装置2は、PLCステータス監視機能がPLCのプログラムが変更された状態を表すステータスのONを検出すると(S203)、プログラム自動アップロード機能7を起動する(S204)。と同時にカレントプログラム10をデータベース9に保存する(S205)。続いて、プログラム自動アップロード機能7によりPLC1からカレントプログラムにアップロードを開始し(S206)、PLC1のプログラム、データがカレントプログラム10にアップロードされる(S207)。
アップロードが完了したら、エンジニアリング装置2はロード完了通知をPLC1へ送る(S208)。ロード完了通知を受けてPLCステータス機能3はPLCのプログラムが変更された状態を表すステータスをOFFに切替える(S209)。エンジニアリング装置2は通常のPLCステータスの監視動作に戻る。
【0009】
次に、本発明の第3の実施の形態について図を参照して説明する。
図4は本発明の第3の実施の形態に係るプログラム回復機能による処理のフローチャートである。
第3の実施の形態は、作業者がPLC1のプログラム、データの変更に失敗したような時に元のプログラムを再度ダウンロードしたい場合や、プログラムを所望のバージョンに戻したい場合などに、第2の実施の形態のS205の処理により、アップロードが行われる前のカレントプログラムが必ずデータベースにバックアップされることで、過去のプログラム変更が自動的に履歴されているので、その都度作業者が外部記憶装置にバックアップしなくても、プログラムを自由にデータベースから読出し、過去のバージョンに戻せるようにしたものである。
つぎに図4を参照して動作について説明する。
PLCのプログラムを前のバージョンに戻したい場合は、エンジニアリング装置2のプログラム回復機能11が起動される(S300)。データベース9のメモリ管理を行っているプログラム回復機能11は、プログラムデータベース9から所望の以前のバージョンをカレントプログラム10へ転送する(S301)。転送されたカレントプログラムは、プログラム自動ダウンロード機能によってPLC1へダウンロードされるので、作業者は自動的にプログラムをバックアップされている前のバージョンに戻して作業を続行することができる。
【0010】
【発明の効果】
以上説明したように、本発明の第1の発明によれば、PLC内に初期化の状態と、プログラムの変更を表す2つのステータスを設けて、PLCの交換時に、エンジニアリング装置はPLCとネットワークを介しPLCステータス監視機能によりPLCの初期化の状態を表すステータスを常時監視し、監視の結果ステータスがオンに変化した場合は、プログラム自動ダウンロード機能により自動的に対象のプログラムをPLCにダウンロードするので、新しく交換したPLCを立ち上げるためのダウンード作業を作業者が行う必要が無くなり、自動的にダウンロードされることで作業者が手動でダウンロードする場合に比較すれば該当プログラムを間違う可能性が無くなり作業の効率が向上するという効果がある。
また、本発明の第2の発明によれば、PLC側のプログラム、データが直接変更された時に、エンジニアリング装置はプログラムの変更を表すステータスのオンを検出すると、プログラム自動アップロード機能によってPLCからプログラム、データをカレントプログラムにアップロードするので、作業者がバックアップをその都度作成して保管・管理して置く必要がなくなり、作業効率及び作業の信頼性が向上するという効果がある。
また、本発明の第3の発明は、PLC側のフログラム、データが直接変更された時に、PLCからプログラム、データをカレントプログラムにアップロードする際に、アップロード前のカレントプログラムを自動的にデータベースにバックアップすることで過去のプログラム変更が自動的に履歴されるので、万が一プログラムの修正・変更に失敗してもプログラム回復機能によって過去の履歴をさかのぼり、プログラム、データを元に戻して修正・変更し直すことが可能になるという効果がある。
【図面の簡単な説明】
【図1】本発明の第1の実施の形態に係るプログラム自動転送機能付きPLCおよびエンジニアリング装置のブロック図である。
【図2】図1に示すプログラム自動ダウンロード機能による処理のフローチャートである。
【図3】本発明の第2の実施の形態に係るプログラム自動アップロード機能による処理のフローチャートである。
【図4】本発明の第3の実施の形態に係るプログラム回復機能による処理のフローチャートである。
【図5】図1に示すPLCのステータスを示す図である。
【図6】従来のPLCとエンジニアリング装置の構成図である。
【図7】従来のネットワークを介して接続されたPLCとエンジニアリング装置の構成図である。
【符号の説明】
1 PLC
2 エンジニアリング装置
3 PLCステータス機能
4、12 ネットワーク機能
5 PLC機能
6 プログラム自動ダウンロード機能
7 プログラム自動アップロード機能
8 PLCステータス監視機能
9 プログラムデータベース
10 カレントプログラム
11 プログラム回復機能
13 FAネットワーク
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a system capable of automatically transferring programs and data between a PLC and an engineering device via an FA network.
[0002]
[Prior art]
Conventionally, when replacing the PLC (abbreviation of programmable logic controller), for example, in the conventional system as shown in FIGS. 6 and 7, in the case of FIG. 6, the operating PLC 63 is stopped and removed from the equipment. Then, a new PLC 62 was installed, placed on the FA network 64, the engineer 61 was brought to the PLC 62 side, and the target program was downloaded by directly connecting to the PLC 62.
Alternatively, as shown in FIG. 7, in the case of a system in which the engineering device 71 is connected to the PLC 72 via the FA network 74, the operator removes the failed PLC 73 from the equipment and installs a new PLC 72. I had to go to and download the target program.
Further, when a program or data is changed on the PLC side, the change is backed up to an external medium such as a floppy disk at the responsibility of the changed operator. Also, when the change failed, a backup stored and stored in an external medium had to be downloaded.
[0003]
[Problems to be solved by the invention]
However, in the above-described prior art, in the system shown in FIG. 6, the engineering device must be brought to the PLC side, and the operator may manually select and download the necessary program, so that the program may be wrong. There was a problem that there was.
In addition, since the operator manually downloads the program, the operator must monitor the engineering device until the download is completed, which is troublesome.
Further, in the system shown in FIG. 7, since the worker must move to the engineering device away from the PLC and perform the download work, it takes a lot of work time for the download to start a new PLC. There was a problem.
Further, when the PLC program and data are changed directly on the PLC side, the operator must record the backup in an external medium such as a floppy disk. If the PLC forgets to back up and fails, there is a problem that the program and data must be changed again with the newly replaced PLC.
In addition, when the change of the PLC program or data fails, there is a problem that the operator has to download the backup stored and stored in the external medium.
Therefore, the first invention of the present invention is a PLC with an automatic program transfer function that can automatically perform a download operation for starting up a newly exchanged PLC, eliminate the possibility of mistaken programs, and improve work efficiency. And it aims at providing an engineering device and its control method.
Furthermore, the second invention of the present invention automatically uploads when the program and data on the PLC side are changed directly, eliminating the need for the operator to create, store and manage backups each time. It is an object of the present invention to provide a PLC with an automatic program transfer function and an engineering apparatus that improve work efficiency and reliability, and a control method therefor.
Further, according to a third aspect of the present invention, there is provided a PLC with an automatic program transfer function and an engineering apparatus capable of returning a program and data back to the original history even if the PLC side should fail to correct the program. It aims at providing the control method.
[0004]
[Means for Solving the Problems]
In order to achieve the above object, the invention of the PLC with an automatic program transfer function and the engineering device according to claim 1 is directed to the PLC and the engineering device with an automatic program transfer function capable of transferring the program via a network. A PLC status function for switching on / off of a status to be represented, and a PLC having a network function for communicating with an engineering device via a network;
As a program transfer means, a current program that holds the latest program, a program database that holds the program inside, a network function that communicates with the PLC via a network, and the state of the PLC always A PLC status monitoring function for monitoring based on the status, and an engineering device having a program automatic download function for automatically downloading the data of the current program of interest to the PLC,
The PLC status function switches on a status indicating a state initialized at the time of PLC replacement at first, and turns off when a program is downloaded to the PLC.
The PLC status monitoring function is characterized in that the program automatic download function is activated after confirming that the status indicating the initialized state is on.
The invention described in claim 2 is the PLC with automatic program transfer function and the engineering device according to claim 1, further comprising a program automatic upload function for uploading a program and data from the PLC to a current program in the engineering device. Prepared,
The PLC status function is turned off when the program is downloaded or uploaded, and the program and data are changed when the PLC program and data are maintained and inspected. Switch on when
The PLC status monitoring function is characterized in that the program automatic upload function is activated after confirming that the status indicating that the PLC program and data have been changed is turned on.
[0005]
According to a third aspect of the present invention, there is provided a PLC with a program automatic transfer function capable of program transfer via a network and a PLC with a program automatic transfer function capable of program transfer via a network in a control method for an engineering apparatus and a PLC. In the control method of engineering equipment,
A PLC status function for switching on / off of a status indicating the state of the PLC, and a PLC having a network function for communicating with an engineering device via a network;
As a program transfer means, a current program that holds the latest program, a program database that holds the program inside, a network function that communicates with the PLC via a network, and the state of the PLC always A PLC status monitoring function for monitoring based on the status, and an engineering device having a program automatic download function for automatically downloading the data of the current program of interest to the PLC,
The PLC status function switches on a status indicating a state initialized at the time of PLC replacement at first, and turns off when a program is downloaded to the PLC.
The PLC status monitoring function is characterized in that the program automatic download function is activated after confirming that the status indicating the initialized state is on.
According to a fourth aspect of the present invention, there is provided a method for controlling a PLC with an automatic program transfer function and an engineering apparatus according to the third aspect , wherein the program is automatically uploaded to the engineering apparatus by uploading a program and data from the PLC to the current program. With more functions,
The PLC status function turns off the program and data when the program is downloaded or uploaded during PLC maintenance and inspection of the PLC program and data. Switch on when
The PLC status monitoring function is characterized in that the program automatic upload function is activated after confirming that the status indicating that the PLC program and data have been changed is turned on.
According to the PLC with the program automatic transfer function and the engineering device and its control method, the PLC status monitoring function of the engineering device constantly monitors the status indicating the initialization state of the PLC, and when the status changes to ON, the program automatic download function Since the current program is automatically downloaded to the PLC via the network, the target program can be automatically downloaded without human intervention when the PLC is exchanged. Alternatively, the status monitoring function of the engineering device constantly monitors the status indicating that the PLC program and data have been changed, and the status indicating that the program and data have been changed in the PLC and the PLC program and data have been changed. When is changed to ON, the program and data are automatically uploaded to the current program from the PLC via the network by the automatic program upload function, so the PLC program and data are changed during the maintenance and inspection of the PLC program and data. Can be automatically uploaded to the current program without human intervention.
[0006]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, a first embodiment of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram of a PLC with an automatic program transfer function and an engineering apparatus according to a first embodiment of the present invention.
FIG. 2 is a flowchart of processing by the program automatic download function shown in FIG.
In FIG. 1, 1 is a PLC, 2 is an engineering device, 3 to 5 are functions of the PLC, 3 is a PLC status function, and a status indicating an initial state of the PLC and a status indicating a change state of a program and data. Switch the status ON / OFF display.
Reference numeral 4 denotes a network function, which is realized by a PLC link module or the like as a main network between PLCs, and constitutes a network system such as a master / slave between PLCs. Reference numeral 5 denotes a normal PLC function, which includes a CPU module, a memory, an I / O module, a motion module, a communication (PLC link, etc.) module, a remote I / O module, and the like.
6 to 12 are functions of the engineering device, 6 is a program automatic download function, 7 is a program automatic upload function, and 8 is a PLC status monitoring function, which periodically collects the status of PLC1. 9 is a database for storing programs, and 10 is a current program, which holds the latest program and data. 11 is a program recovery function, 12 is a network function, and 13 is an FA network.
FIG. 5 shows the status of the PLC shown in FIG. 1, FIG. 5 (a) shows the status indicating the initial state of the PLC, and FIG. 5 (b) shows the status where the PLC program and data have been changed. Indicates the status.
As shown in FIG. 5A, the status indicating the initial state of the PLC is initially turned on when the PLC is replaced, and turned off when the program is downloaded to the PLC. As shown in FIG. 5B, the status indicating that one of the programs and data has been changed is turned off when the program is downloaded and uploaded, and turned on when the program data is changed.
[0007]
Next, the operation will be described with reference to FIG.
First, when a failed PLC in the system is replaced with a new PLC (S100), the PLC status monitoring function 8 of the engineering device 2 is activated to start monitoring the status of the PLC 1 (S101). The PLC status function 3 switches the status indicating that the PLC is initialized to ON (S102).
When the engineering device 2 detects that the status indicating that the PLC has been initialized by the PLC status monitoring function 8 (S103), the engineering device 2 starts the program automatic download function 6 (S104) and downloads the current program 10 to the PLC 1. (S105). As a result, the PLC1 program is updated with the contents of the current program 10 (S106).
When the download of the current program is completed, a load completion notification is sent from the engineering device 2 side (S107). Upon receiving the load completion notification from the engineering device 2, the PLC 1 returns the status indicating that the PLC is initialized to off (S108).
Thus, the download of the current program is completed, and the engineering device 2 returns to the normal status monitoring operation by the PLC status monitoring function 6.
[0008]
Next, a second embodiment of the present invention will be described with reference to the drawings.
FIG. 3 is a flowchart of processing by the program automatic upload function according to the second embodiment of the present invention.
The block diagram in FIG. 1 is common to the second embodiment.
Next, the operation will be described with reference to FIG.
First, an operator changes the program of PLC1 (S200). In the engineering apparatus 2, the PLC status monitoring function periodically monitors the status (S201). The PLC status function 3 of the PLC 1 turns on the status indicating the state in which the PLC program has been changed based on the program change (S202).
When the PLC status monitoring function detects that the status indicating that the PLC program has been changed is ON (S203), the engineering device 2 activates the program automatic upload function 7 (S204). At the same time, the current program 10 is stored in the database 9 (S205). Subsequently, uploading from the PLC 1 to the current program is started by the program automatic upload function 7 (S206), and the program and data of the PLC 1 are uploaded to the current program 10 (S207).
When the upload is completed, the engineering device 2 sends a load completion notification to the PLC 1 (S208). Upon receiving the load completion notification, the PLC status function 3 switches the status indicating that the PLC program has been changed to OFF (S209). The engineering device 2 returns to the normal monitoring operation of the PLC status.
[0009]
Next, a third embodiment of the present invention will be described with reference to the drawings.
FIG. 4 is a flowchart of processing by the program recovery function according to the third embodiment of the present invention.
The third embodiment is the second implementation when the operator wants to download the original program again when he / she has failed to change the PLC 1 program and data, or when he / she wants to return the program to a desired version. With the process of S205 in this form, the current program before uploading is always backed up in the database, so that past program changes are automatically recorded, so that the worker backs up to the external storage device each time Even without this, the program can be freely read from the database and reverted to a previous version.
Next, the operation will be described with reference to FIG.
When it is desired to return the PLC program to the previous version, the program recovery function 11 of the engineering apparatus 2 is activated (S300). The program recovery function 11 that manages the memory of the database 9 transfers a desired previous version from the program database 9 to the current program 10 (S301). Since the transferred current program is downloaded to the PLC 1 by the program automatic download function, the operator can automatically return the program to the previous version backed up and continue the work.
[0010]
【The invention's effect】
As described above, according to the first aspect of the present invention, the initialization state and the two statuses indicating the program change are provided in the PLC, and when the PLC is replaced, the engineering device connects the PLC and the network. Through the PLC status monitoring function, the status indicating the initialization state of the PLC is constantly monitored. When the status changes as a result of monitoring, the program automatic download function automatically downloads the target program to the PLC. There is no need for the operator to perform the download work for starting up the newly replaced PLC, and since it is automatically downloaded, there is no possibility of mistakes in the corresponding program as compared with the case where the worker manually downloads. This has the effect of improving efficiency.
Further, according to the second aspect of the present invention, when the program and data on the PLC side are directly changed, the engineering device detects that the status indicating the change of the program is on, the program is automatically loaded from the PLC by the program automatic upload function, Since the data is uploaded to the current program, there is no need for the operator to create, store, and manage a backup each time, which has the effect of improving work efficiency and work reliability.
The third invention of the present invention automatically backs up the current program before uploading to the database when uploading the program and data from the PLC to the current program when the PLC program and data are directly changed. By doing so, past program changes are automatically recorded, so even if you fail to modify or change a program, you can go back in the past history with the program recovery function, restore the program and data, and modify and change it again. There is an effect that it becomes possible.
[Brief description of the drawings]
FIG. 1 is a block diagram of a PLC with an automatic program transfer function and an engineering apparatus according to a first embodiment of the present invention.
FIG. 2 is a flowchart of processing by an automatic program download function shown in FIG.
FIG. 3 is a flowchart of processing by a program automatic upload function according to a second embodiment of the present invention.
FIG. 4 is a flowchart of processing by a program recovery function according to a third embodiment of the present invention.
FIG. 5 is a diagram showing a status of the PLC shown in FIG. 1;
FIG. 6 is a configuration diagram of a conventional PLC and engineering device.
FIG. 7 is a configuration diagram of a PLC and an engineering apparatus connected via a conventional network.
[Explanation of symbols]
1 PLC
2 Engineering equipment 3 PLC status functions 4 and 12 Network function 5 PLC function 6 Program automatic download function 7 Program automatic upload function 8 PLC status monitoring function 9 Program database 10 Current program 11 Program recovery function 13 FA network

Claims (4)

ネットワークを介してプログラム転送が可能なプログラム自動転送機能付きPLCおよびエンジニアリング装置において、
PLCの状態を表すステータスのオン、オフを切替えるPLCステータス機能と、エンジニアリング装置とネットワークを介して通信を行うネットワーク機能を有するPLCと、
プログラム転送手段として、最新のプログラムを保持するカレントプログラムと、内部にプログラムを保持しておくためのプログラムデータベースと、ネットワークを介して前記PLCとの通信を行うネットワーク機能と、常に前記PLCの状態をステータスにより監視するPLCステータス監視機能と、自動的に対象の前記カレントプログラムのデータを前記PLCにダウンロードするプログラム自動ダウンロード機能を有するエンジニアリング装置とを備え、
前記PLCステータス機能は、PLCの交換時に初期化されている状態を表すステータスを最初はオンに、前記PLCにプログラムがダウンロードされるとオフに切替え、
前記PLCステータス監視機能は、初期化されている状態を表すステータスのオンを確認して前記プログラム自動ダウンロード機能を起動することを特徴とするプログラム自動転送機能付きPLCおよびエンジニアリング装置。
In PLC and engineering equipment with automatic program transfer function that can transfer program via network
A PLC status function for switching on / off of a status indicating the state of the PLC, and a PLC having a network function for communicating with an engineering device via a network;
As a program transfer means, a current program that holds the latest program, a program database that holds the program inside, a network function that communicates with the PLC via a network, and the state of the PLC always A PLC status monitoring function for monitoring based on the status, and an engineering device having a program automatic download function for automatically downloading the data of the current program of interest to the PLC,
The PLC status function switches on a status indicating a state initialized at the time of PLC replacement at first, and turns off when a program is downloaded to the PLC.
A PLC with an automatic program transfer function and an engineering device, wherein the PLC status monitoring function activates the automatic program download function after confirming that a status indicating an initialized state is on.
前記エンジニアリング装置に、前記PLCからプログラム、データをカレントプログラムにアップロードするプログラム自動アップロード機能を更に備え、
前記PLCステータス機能は、前記PLCのプログラム、データの保守・点検時に、PLCのプログラム、データが変更された状態を表すステータスをプログラムがダウンロードまたはアップロードされるとオフに、プログラム、データの変更が行われた時にオンに切替え、
前記PLCステータス監視機能は、PLCのプログラム、データが変更された状態を表すステータスのオンを確認して前記プログラム自動アップロード機能を起動することを特徴とする請求項1記載のプログラム自動転送機能付きPLCおよびエンジニアリング装置。
The engineering device further includes a program automatic upload function for uploading a program and data from the PLC to a current program,
The PLC status function is turned off when the program is downloaded or uploaded, and the program and data are changed when the PLC program and data are maintained and inspected. Switch on when
2. The PLC with a program automatic transfer function according to claim 1, wherein the PLC status monitoring function activates the program automatic upload function after confirming that the status indicating that the program and data of the PLC have been changed is turned on. And engineering equipment.
ネットワークを介してプログラム転送が可能なプログラム自動転送機能付きPLCおよびエンジニアリング装置の制御方法において、In a control method for a PLC with an automatic program transfer function and an engineering device capable of transferring a program via a network,
PLCの状態を表すステータスのオン、オフを切替えるPLCステータス機能と、エンジニアリング装置とネットワークを介して通信を行うネットワーク機能を有するPLCと、A PLC status function for switching on / off of a status indicating the state of the PLC, and a PLC having a network function for communicating with the engineering device via the network;
プログラム転送手段として、最新のプログラムを保持するカレントプログラムと、内部にプログラムを保持しておくためのプログラムデータベースと、ネットワークを介して前記PLCとの通信を行うネットワーク機能と、常に前記PLCの状態をステータスにより監視するPLCステータス監視機能と、自動的に対象の前記カレントプログラムのデータを前記PLCにダウンロードするプログラム自動ダウンロード機能を有するエンジニアリング装置とを備え、As a program transfer means, a current program that holds the latest program, a program database that holds the program inside, a network function that communicates with the PLC via a network, and a state of the PLC that is always kept A PLC status monitoring function for monitoring by status, and an engineering device having a program automatic download function for automatically downloading data of the target current program to the PLC;
前記PLCステータス機能は、PLCの交換時に初期化されている状態を表すステータスを最初はオンに、前記PLCにプログラムがダウンロードされるとオフに切替え、The PLC status function switches on a status indicating a state initialized at the time of PLC replacement at first, and turns off when a program is downloaded to the PLC.
前記PLCステータス監視機能は、初期化されている状態を表すステータスのオンを確認して前記プログラム自動ダウンロード機能を起動することを特徴とするプログラム自動転送機能付きPLCおよびエンジニアリング装置の制御方法。  A control method for a PLC with an automatic program transfer function and an engineering device, wherein the PLC status monitoring function activates the automatic program download function after confirming that the status indicating an initialized state is on.
前記エンジニアリング装置に、前記PLCからプログラム、データをカレントプログラムにアップロードするプログラム自動アップロード機能を更に備え、The engineering device further includes a program automatic upload function for uploading a program and data from the PLC to a current program,
前記PLCステータス機能は前記PLCのプログラム、データの保守・点検時に、PLCのプログラム、データが変更された状態を表すステータスをプログラムがダウンロードまたはアップロードされるとオフに、プログラム、データの変更が行われた時にオンに切替え、The PLC status function is turned off when a program is downloaded or uploaded with a status indicating that the PLC program or data has been changed during maintenance or inspection of the PLC program or data. Switch on when
前記PLCステータス監視機能は、PLCのプログラム、データが変更された状態を表すステータスのオンを確認して前記プログラム自動アップロード機能を起動することを特徴とする請求項3記載のプログラム自動転送機能付きPLCおよびエンジニアリング装置の制御方法。4. The PLC with automatic program transfer function according to claim 3, wherein the PLC status monitoring function activates the automatic program upload function after confirming that the status indicating that the program and data of the PLC have been changed is on. And control method of engineering equipment.
JP2000015980A 2000-01-25 2000-01-25 PLC with automatic program transfer function, engineering device and control method thereof Expired - Fee Related JP4411714B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000015980A JP4411714B2 (en) 2000-01-25 2000-01-25 PLC with automatic program transfer function, engineering device and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000015980A JP4411714B2 (en) 2000-01-25 2000-01-25 PLC with automatic program transfer function, engineering device and control method thereof

Publications (2)

Publication Number Publication Date
JP2001209413A JP2001209413A (en) 2001-08-03
JP4411714B2 true JP4411714B2 (en) 2010-02-10

Family

ID=18543194

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000015980A Expired - Fee Related JP4411714B2 (en) 2000-01-25 2000-01-25 PLC with automatic program transfer function, engineering device and control method thereof

Country Status (1)

Country Link
JP (1) JP4411714B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8335813B2 (en) 2007-05-01 2012-12-18 Illinois Institute Of Technology Systems, methods, and protocols for process migration and group membership management
JP4888718B2 (en) * 2007-06-29 2012-02-29 オムロン株式会社 Distributed control system
JP5481267B2 (en) * 2010-04-22 2014-04-23 株式会社東芝 Control program creation device and control program creation device drive method
IT1401647B1 (en) * 2010-07-09 2013-08-02 Campatents B V METHOD FOR MONITORING CHANGES OF CONFIGURATION OF A MONITORING DEVICE FOR AN AUTOMATIC MACHINE
JP6167532B2 (en) * 2013-01-25 2017-07-26 オムロン株式会社 Control device and operation method of control device
JP7318264B2 (en) * 2019-03-28 2023-08-01 オムロン株式会社 controller system

Also Published As

Publication number Publication date
JP2001209413A (en) 2001-08-03

Similar Documents

Publication Publication Date Title
JP4888718B2 (en) Distributed control system
JP5592931B2 (en) Redundancy manager used in application station
JP4947175B2 (en) Engineering tools
US20150362903A1 (en) Control device and method of operating control device
EP3091404B1 (en) Safety controller with rapid backup and configuration
US20050220127A1 (en) Modular programmable automation controller with multi-processor architecture
CN107924168B (en) Transfer device, control method of transfer device, and readable recording medium
JP5225838B2 (en) Memory having data identical to the data for the drive control of the machine and for the drive control of the machine
JP2011513854A (en) Configuration of field devices on the network
JP2009500996A5 (en)
JP4411714B2 (en) PLC with automatic program transfer function, engineering device and control method thereof
JP2017167593A (en) Relay device, relay device control method, control program, and recording medium
US6505084B2 (en) Programmable controller which operates by means of data management using network computers and method for operating a programmable controller
WO2014174546A1 (en) Programmable logic controller system and programmable logic controller
JPH11184507A (en) Controller system
US20220357711A1 (en) Field device
JP5545759B2 (en) Function addition type control device and function addition type control system
JPH11110027A (en) Industrial robot
JP2009282665A (en) Module type equipment and module equipment system
JP2005301438A (en) Distributed monitoring control system
JPH07248913A (en) Firmware file updating control method and maintenance system
JP2004355389A (en) Remote update system
JP5641217B2 (en) Field device communication equipment
JPS60136822A (en) Updating method of file
JPH10105407A (en) Autonomous program fault restoring system

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20060324

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061219

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20071129

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090416

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090421

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090618

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090722

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090916

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20091109

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121127

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121127

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131127

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20141127

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees