JP2006330866A - Programmable logic controller - Google Patents
Programmable logic controller Download PDFInfo
- Publication number
- JP2006330866A JP2006330866A JP2005150356A JP2005150356A JP2006330866A JP 2006330866 A JP2006330866 A JP 2006330866A JP 2005150356 A JP2005150356 A JP 2005150356A JP 2005150356 A JP2005150356 A JP 2005150356A JP 2006330866 A JP2006330866 A JP 2006330866A
- Authority
- JP
- Japan
- Prior art keywords
- program
- stored
- unit
- backup
- program storage
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
本発明は、PLC(プログラマブル・ロジック・コントローラ)に係り、更に詳しくは、PLCを制御するためのユーザプログラムを記憶する方法の改良に関する。 The present invention relates to a PLC (programmable logic controller), and more particularly to an improvement in a method for storing a user program for controlling a PLC.
工場等に設置される各種制御装置を統括的に制御するためのPLCが知られている(例えば、特許文献1参照)。PLCは、CPUが内蔵されたCPUユニットを備え、このCPUユニットに対して拡張ユニットが着脱可能に構成されている。ユーザは、各種制御装置の機能ごとに拡張ユニットを用意してCPUユニットに取り付けるとともに、拡張ユニットに対応する制御装置を接続することにより、拡張ユニットを介して各制御装置をCPUユニットに接続する。 A PLC for comprehensively controlling various control devices installed in a factory or the like is known (for example, see Patent Document 1). The PLC includes a CPU unit with a built-in CPU, and an expansion unit can be attached to and detached from the CPU unit. The user prepares an expansion unit for each function of the various control devices and attaches the expansion unit to the CPU unit, and connects each control device to the CPU unit via the expansion unit by connecting a control device corresponding to the expansion unit.
PLCを制御するためのユーザプログラムとしては、ラダー図を用いて作成されるラダープログラムが知られている。ラダープログラムは、例えば、パーソナルコンピュータを用いて作成され、パーソナルコンピュータの表示画面上にマトリックス状に表示される複数のセル内に仮想デバイスのシンボルを適宜配置して、視覚的なリレー回路を表すラダー図を構築することにより作成される。 As a user program for controlling the PLC, a ladder program created using a ladder diagram is known. For example, a ladder program is created using a personal computer, and a ladder that represents a visual relay circuit by appropriately arranging symbols of virtual devices in a plurality of cells displayed in a matrix on the display screen of the personal computer. Created by constructing a diagram.
パーソナルコンピュータにおいて作成されたラダープログラムは、パーソナルコンピュータをUSB(Universal Serial Bus)などの通信ケーブルを介してPLCのCPUユニットに接続し、所定の操作を行うことにより、パーソナルコンピュータからCPUユニットに送信され、CPUユニット内のメモリに記憶される。CPUユニットのCPUは、メモリに記憶されているラダープログラムを実行することにより、拡張ユニットを介して各制御装置の動作を制御する。 The ladder program created in the personal computer is transmitted from the personal computer to the CPU unit by connecting the personal computer to the PLC CPU unit via a communication cable such as USB (Universal Serial Bus) and performing a predetermined operation. And stored in the memory in the CPU unit. The CPU of the CPU unit controls the operation of each control device via the expansion unit by executing a ladder program stored in the memory.
作成されたラダープログラムは、パーソナルコンピュータを用いて編集可能である。ユーザは、パーソナルコンピュータを用いてラダープログラムを編集した場合、その編集後のラダープログラムをパーソナルコンピュータからCPUユニットに送信することにより、CPUユニットのメモリに上書きして記憶させることができる。CPUユニットのメモリに記憶されているラダープログラムが編集後のラダープログラムに上書きされた後は、CPUが、その編集後のラダープログラムを実行することにより制御装置の動作を制御することとなる。
ユーザは、時に、一旦編集してCPUユニットに送信したラダープログラム中の間違いに気付き、CPUユニットのメモリに記憶されているラダープログラムを編集前のラダープログラムに復元することを望む場合がある。この様な場合、ユーザは、パーソナルコンピュータのメモリに編集前のラダープログラムが保存されていれば、その編集前のラダープログラムをCPUユニットに送信し、CPUユニットのメモリに記憶させることにより、編集前のラダープログラムを復元することができる。 The user may sometimes notice an error in the ladder program once edited and transmitted to the CPU unit, and may desire to restore the ladder program stored in the memory of the CPU unit to the ladder program before editing. In such a case, if the ladder program before editing is stored in the memory of the personal computer, the user transmits the ladder program before editing to the CPU unit and stores it in the memory of the CPU unit. The ladder program can be restored.
しかし、ユーザが、編集したラダープログラムを上書き保存した場合のように、編集前のラダープログラムがパーソナルコンピュータに残っていない場合には、編集前のラダープログラムを復元することができないという問題があった。 However, there is a problem that the ladder program before editing cannot be restored if the ladder program before editing does not remain in the personal computer as in the case where the user overwrites the edited ladder program. .
本発明は、上記の事情に鑑みてなされたものであり、上書きして記憶される前のユーザプログラムを確実に復元することができるプログラマブル・ロジック・コントローラを提供することを目的とする。 The present invention has been made in view of the above circumstances, and an object thereof is to provide a programmable logic controller that can reliably restore a user program before being overwritten and stored.
本発明によるプログラマブル・ロジック・コントローラは、入力されたユーザプログラムを実行すべきユーザプログラムとして上書きして記憶する実行プログラム記憶手段と、上記実行プログラム記憶手段に上書きされる前に記憶されていたユーザプログラムのバックアップを記憶するためのバックアッププログラム記憶手段と、上記バックアッププログラム記憶手段に記憶されているユーザプログラムを表す識別情報を表示する表示手段と、上記表示手段により表示された識別情報を選択するための選択手段と、上記実行プログラム記憶手段に記憶されているユーザプログラムを、上記選択手段により選択された識別情報に対応するユーザプログラムに書き換えるプログラム書換手段とを備えて構成される。 The programmable logic controller according to the present invention includes an execution program storage means for overwriting and storing an input user program as a user program to be executed, and a user program stored before being overwritten on the execution program storage means Backup program storage means for storing the backup of the program, display means for displaying the identification information representing the user program stored in the backup program storage means, and for selecting the identification information displayed by the display means It comprises a selection means and a program rewriting means for rewriting the user program stored in the execution program storage means to a user program corresponding to the identification information selected by the selection means.
この様な構成によれば、ユーザプログラムが入力された場合には、そのユーザプログラムが実行すべきユーザプログラムとして実行プログラム記憶手段に上書きされ、上書きされる前に実行プログラム記憶手段に記憶されていたユーザプログラムのバックアップがバックアッププログラム記憶手段に自動的に記憶される。したがって、必要に応じて、表示手段により表示される識別情報を選択手段により選択し、バックアッププログラム記憶手段に記憶されているユーザプログラムのバックアップを読み出して、実行プログラム記憶手段に記憶されているユーザプログラムをその読み出したユーザプログラムに書き換えることにより、実行プログラム記憶手段に上書きして記憶される前のユーザプログラムを確実に復元することができる。 According to such a configuration, when a user program is input, the execution program storage unit is overwritten as a user program to be executed by the user program, and is stored in the execution program storage unit before being overwritten. A backup of the user program is automatically stored in the backup program storage means. Therefore, if necessary, the identification information displayed by the display means is selected by the selection means, the user program backup stored in the backup program storage means is read, and the user program stored in the execution program storage means Is rewritten with the read user program, the user program before being overwritten and stored in the execution program storage means can be reliably restored.
また、本発明によるプログラマブル・ロジック・コントローラにおいて、上記バックアッププログラム記憶手段は、入力されたユーザプログラムが上記実行プログラム記憶手段に上書きして記憶される際に、入力されたユーザプログラム又は上記実行プログラム記憶手段に記憶されていたユーザプログラムを、最も古いバックアップが記憶されている領域に上書きして記憶するように構成される。 In the programmable logic controller according to the present invention, the backup program storage means stores the input user program or the execution program storage when the input user program is overwritten on the execution program storage means. The user program stored in the means is configured to be overwritten on the area in which the oldest backup is stored.
この様な構成によれば、入力されたユーザプログラムが実行プログラム記憶手段に上書きして記憶される際、バックアッププログラム記憶手段に記憶されている最も古いバックアップが消去され、その領域に、入力されたユーザプログラム又は実行プログラム記憶手段に記憶されていたユーザプログラムなどの新しいユーザプログラムが記憶される。これにより、限られたメモリ容量において、復元される可能性の高い比較的新しいユーザプログラムだけを、バックアッププログラム記憶手段に記憶しておくことができる。 According to such a configuration, when the input user program is overwritten and stored in the execution program storage means, the oldest backup stored in the backup program storage means is erased, and the input is entered in that area. A new user program such as a user program or a user program stored in the execution program storage means is stored. As a result, only a relatively new user program that is likely to be restored can be stored in the backup program storage means in a limited memory capacity.
本発明によれば、入力されたユーザプログラムが上書きされる前に実行プログラム記憶手段に記憶されていたユーザプログラムのバックアップを、バックアッププログラム記憶手段に自動的に記憶させ、必要に応じて、そのユーザプログラムのバックアップを読み出し、実行プログラム記憶手段に記憶されているユーザプログラムをその読み出したユーザプログラムに書き換えることにより、実行プログラム記憶手段に上書きして記憶される前のユーザプログラムを確実に復元することができるプログラマブル・ロジック・コントローラを提供することができる。 According to the present invention, the backup of the user program stored in the execution program storage means before the input user program is overwritten is automatically stored in the backup program storage means, and the user is stored as necessary. By reading the program backup and rewriting the user program stored in the execution program storage means with the read user program, the user program before being overwritten and stored in the execution program storage means can be reliably restored. A programmable logic controller can be provided.
図1は、本発明の実施の形態によるユーザプログラム編集システムの一構成例を示す概念図である。 FIG. 1 is a conceptual diagram showing a configuration example of a user program editing system according to an embodiment of the present invention.
図1に示すように、このユーザプログラム編集システムは、ユーザプログラムの編集を行うためのプログラム編集装置としてのパーソナルコンピュータ1と、工場等に設置される各種制御装置を統括的に制御するためのPLC(プログラマブル・ロジック・コントローラ)2とを備えている。
As shown in FIG. 1, this user program editing system includes a
PLC2は、CPUが内蔵されたCPUユニット3を備え、このCPUユニット3に対して1つないし複数の拡張ユニット4が着脱可能に構成されている。
The
CPUユニット3には、表示部5及び操作部6が備えられている。表示部5には、CPUユニット3に取り付けられている各拡張ユニット4の動作状況などを表示することができ、表示部5の表示内容は、操作部6を操作することにより切り替えることができる。表示部5には、通常、PLC2内のデバイスの現在値(デバイス値)やPLC2内で生じたエラー情報などが表示される。
The
拡張ユニット4は、PLC2の機能を拡張するために機能ごとに用意され、CPUユニット3に対して側方から取り付けられる。1つ目の拡張ユニット4は、CPUユニット3に対して側方から直接取り付けられる。2つ目以降の拡張ユニット4は、既に取り付けられている拡張ユニット4に対して、側方から直列的に順次取り付けられる。このようにして、CPUユニット3と複数の拡張ユニット4が直列的に取り付けられると、各拡張ユニット4内に備えられた配線を介して、各拡張ユニット4がCPUユニット3に対して通信可能に接続される。各拡張ユニット4には、その拡張ユニット4の機能に対応する制御装置が接続され、これにより、各制御装置が拡張ユニット4を介してCPUユニット3に接続される。制御装置には、センサなどの入力装置や、アクチュエータなどの出力装置が含まれる。
The
パーソナルコンピュータ1は、例えば、携帯可能ないわゆるノートタイプのパーソナルコンピュータであって、表示部7及び操作部8が備えられている。PLC2を制御するためのユーザプログラムの一例であるラダープログラムは、パーソナルコンピュータ1を用いて作成され、その作成されたラダープログラムは、パーソナルコンピュータ1内でニモニックコードに変換される。そして、パーソナルコンピュータ1を、USB(Universal Serial Bus)などの通信ケーブル9を介してPLC2のCPUユニット3に接続し、ニモニックコードに変換されたラダープログラムをパーソナルコンピュータ1からCPUユニット3に送ると、そのラダープログラムがCPUユニット3内でマシンコードに変換され、CPUユニット3に備えられたメモリ内に記憶される。
The
なお、図1では図示していないが、パーソナルコンピュータ1の操作部8には、パーソナルコンピュータ1に接続されたマウスが含まれていてもよい。
Although not shown in FIG. 1, the
また、パーソナルコンピュータ1は、USB以外の他の通信ケーブル9を介して、PLC2のCPUユニット3に対して着脱可能に接続されるような構成であってもよい。
Further, the
図2は、ラダープログラムの作成時にパーソナルコンピュータ1の表示部7に表示されるラダー図17の一例を示す図である。
FIG. 2 is a diagram illustrating an example of a ladder diagram 17 displayed on the
図2に示すように、PLC2を制御するためのラダープログラムは、パーソナルコンピュータ1の表示部7にマトリックス状に表示される複数のセル18内に仮想デバイスのシンボル19を適宜配置して、視覚的なリレー回路を表すラダー図17を構築することにより作成される。
As shown in FIG. 2, the ladder program for controlling the
ラダー図17には、例えば、10列×N行(Nは任意の自然数)のセル18が配置されている。そして、各行のセル18内に、図2に示す左側から右側に向かって、時系列的に仮想デバイスのシンボル19を適宜配置することにより、視覚的なリレー回路を作成することができる。作成されるリレー回路は、1行で表される直列的なリレー回路であってもよいし、複数行に並列的に表されたリレー回路を互いに結合することにより作成された、並列的なリレー回路であってもよい。
In the ladder diagram 17, for example,
図2に示すリレー回路は、入力装置からの入力信号に基づいてオン/オフされる3つの仮想デバイス(以下、「入力デバイス」と呼ぶ。)のシンボル19a,19b,19cと、出力装置の動作を制御するためにオン/オフされる仮想デバイス(以下、「出力デバイス」と呼ぶ。)のシンボル19dとが、適宜結合されることにより構成されている。
The relay circuit shown in FIG. 2 includes three virtual devices (hereinafter referred to as “input devices”) 19a, 19b, and 19c that are turned on / off based on an input signal from the input device, and the operation of the output device. A
各入力デバイスのシンボル19a,19b,19cの上方に表示されている文字(「R0001」、「R0002」及び「R0003」)は、その入力デバイスのデバイス名(アドレス名)21を表している。各入力デバイスのシンボル19a,19b,19cの下方に表示されている文字(「フラグ1」、「フラグ2」及び「フラグ3」)は、その入力デバイスに対応付けられたデバイスコメント22を表している。出力デバイスのシンボル19dの上方に表示されている文字(「原点復帰」)は、その出力デバイスの機能を表す文字列からなるラベル23である。
The characters (“R0001”, “R0002”, and “R0003”) displayed above the
図2に示す例では、デバイス名「R0001」及び「R0002」にそれぞれ対応する2つの入力デバイスのシンボル19a,19bが直列的に結合されることにより、AND回路が構成されている。また、これらの2つの入力デバイスのシンボル19a,19bからなるAND回路に対して、デバイス名「R0003」に対応する入力デバイスのシンボル19cが並列的に結合されることにより、OR回路が構成されている。すなわち、このリレー回路では、2つのシンボル19a,19bに対応する入力デバイスがいずれもオンした場合、又は、シンボル19cに対応する入力デバイスがオンした場合にのみ、シンボル19dに対応する出力デバイスがオンされるようになっている。
In the example shown in FIG. 2, two
図3は、図1のパーソナルコンピュータ1の電気的構成について説明するためのブロック図である。
FIG. 3 is a block diagram for explaining the electrical configuration of the
図3に示すように、パーソナルコンピュータ1には、CPU24、表示部7、操作部8、メモリ25及び通信部26が備えられている。表示部7、操作部8、メモリ25及び通信部26は、それぞれCPU24に対して電気的に接続されている。
As shown in FIG. 3, the
メモリ25は、少なくともRAMを含む構成であり、ラダープログラム記憶部25aと、ラダープログラム編集用ソフト記憶部25bとを備えている。
The
ユーザは、ラダープログラム編集用ソフト記憶部25bに記憶されているラダープログラム編集用ソフトを起動させて、ラダープログラムの編集を行うことができる。ここで、ラダープログラムの編集には、ラダープログラムの作成及び変更が含まれる。ラダープログラム編集用ソフトを用いて作成されたラダープログラムは、ラダープログラム記憶部25aに記憶される。また、ユーザは、必要に応じてラダープログラム記憶部25aに記憶されているラダープログラムを読み出し、そのラダープログラムを、ラダープログラム編集用ソフトを用いて変更することができる。
The user can edit the ladder program by activating the ladder program editing software stored in the ladder program editing
通信部26は、通信ケーブル9を介してパーソナルコンピュータ1をCPUユニット3に通信可能に接続するためのものである。
The
図4は、図1のPLC2の電気的構成について説明するためのブロック図である。
FIG. 4 is a block diagram for explaining the electrical configuration of the
図4に示すように、CPUユニット3には、CPU10、表示部5、操作部6、メモリ12、履歴管理部13及び通信部14が備えられている。表示部5、操作部6、メモリ12、履歴管理部13及び通信部14は、それぞれCPU10に電気的に接続されている。
As shown in FIG. 4, the
メモリ12は、少なくともRAMを含む構成であり、実行プログラム記憶部12aと、第1バックアッププログラム記憶部12bと、第2バックアッププログラム記憶部12cと、第3バックアッププログラム記憶部12dと、第4バックアッププログラム記憶部12eとが割り当てられている。
The
実行プログラム記憶部12aには、パーソナルコンピュータ1から入力されたラダープログラムが、実行すべきラダープログラムとして記憶される。この実行プログラム記憶部12aには、パーソナルコンピュータ1から入力されたラダープログラムが上書きして記憶され、上書きされる前に記憶されていたラダープログラムは、第1〜第4バックアッププログラム記憶部12b〜12eにバックアップとして記憶される。ここで、上書きとは、メモリの所定の領域に記憶されているデータを消去し、その領域に別のデータを記憶させる一連の動作をいう。
The execution
履歴管理部13は、第1〜第4バックアッププログラム記憶部12b〜12eに記憶されているラダープログラムのバックアップに関する各種情報を、履歴として管理している。履歴管理部13により管理されている各バックアップに関する履歴には、各バックアップに対してユーザが付与するコメント、各バックアップに係るラダープログラムのバージョン、各バックアップが第1〜第4バックアッププログラム記憶部12b〜12eに記憶されたときの日付、各バックアップを第1〜第4バックアッププログラム記憶部12b〜12eに記憶させたユーザ名(変更者名)などの識別情報が含まれる。これらの識別情報は、ラダープログラムの編集時に、ユーザのパーソナルコンピュータ1に対する操作により入力され、ラダープログラムとともにCPUユニット3に入力される。CPUユニット3のCPU10は、履歴管理部13により管理されている各バックアップに関する履歴を、表示部5に表示させることができる。
The
通信部14は、通信ケーブル9を介してCPUユニット3をパーソナルコンピュータ1に対して通信可能に接続するためのものである。
The
CPUユニット3のCPU10は、入力装置16から拡張ユニット4を介して入力される入力信号に基づいて、拡張ユニット4を介して対応する出力装置16の動作を制御する。図4では、各拡張ユニット4に制御装置16が一対一に対応付けられて接続されているが、この様な構成に限らず、1つの拡張ユニット4に対して複数の制御装置16が接続されていてもよい。
The
図5は、表示部5に表示される各バックアップに関する履歴30の具体例を示す図である。
FIG. 5 is a diagram illustrating a specific example of the
図5に示すように、表示部5には、第1〜第4バックアッププログラム記憶部12b〜12eに記憶されている4つのバックアップに対応付けて、履歴管理部13により管理されているコメント、バージョン、日付及び変更者名などの識別情報31が履歴30として表示される。
As shown in FIG. 5, the
本実施の形態では、CPUユニット3の操作部6を操作することにより、表示部5に表示されているいずれかの識別情報31を選択し、その識別情報31に対応するバックアップを第1〜第4バックアッププログラム記憶部12b〜12eのいずれかから読み出して、実行プログラム記憶部12aに記憶されているラダープログラムをその読み出したラダープログラムに書き換えることができるようになっている。操作部6には、選択ボタン及び実行ボタン(いずれも図示せず)が含まれ、選択ボタンを操作することにより、表示部5に表示されている識別情報31の中から所望の識別情報31を選択した後、実行ボタンを操作することにより、実行プログラム記憶部12aに記憶されているラダープログラムを、選択された識別情報31に対応するラダープログラムに書き換えることができる。
In the present embodiment, by operating the
図6は、ラダープログラムのバックアップを記憶する際にCPU10が行う制御の流れを示すフローチャートである。
FIG. 6 is a flowchart showing the flow of control performed by the
図6に示すように、パーソナルコンピュータ1からCPUユニット3にラダープログラムが入力されると(ステップS101でYes)、CPU10は、実行プログラム記憶部12aに記憶されているラダープログラムを消去し、その領域に入力されたラダープログラムを記憶させることにより、入力されたラダープログラムを実行プログラム記憶部12aに上書きして記憶させる(ステップS102)。
As shown in FIG. 6, when a ladder program is input from the
その後、CPU10は、その入力されたラダープログラムを、第1〜第4バックアッププログラム記憶部12b〜12eのいずれかにコピーすることにより、バックアップとして記憶させる。より具体的には、CPU10は、第1〜第4バックアッププログラム記憶部12b〜12eに記憶されているバックアップのうち最も古いバックアップを消去し、その領域に入力されたラダープログラムをコピーすることにより、入力されたラダープログラムを第1〜第4バックアッププログラム記憶部12b〜12eのいずれかに上書きして記憶させる(ステップS103)。最も古いラダープログラムの選定は、例えば、履歴管理部13により管理されている各バックアップが第1〜第4バックアッププログラム記憶部12b〜12eに記憶されたときの日付に基づいて行われる。
Thereafter, the
ただし、入力されたラダープログラムが実行プログラム記憶部12aに上書きして記憶される際に、その入力されたラダープログラムが、第1〜第4バックアッププログラム記憶部12b〜12eのいずれかに上書きして記憶されるような構成に限らず、実行プログラム記憶部12aに記憶されていたラダープログラム、すなわち実行プログラム記憶部12aにおいて上書きされる前のラダープログラムが、第1〜第4バックアッププログラム記憶部12b〜12eのいずれかに上書きして記憶されるような構成であってもよい。
However, when the input ladder program is overwritten and stored in the execution
また、第1〜第4バックアッププログラム記憶部12b〜12eのいずれかに空き領域がある場合には、入力されたラダープログラムは、最も古いバックアップが記憶されている領域に上書きして記憶されずに、その空き領域に記憶されるようになっていてもよい。
In addition, when there is an empty area in any of the first to fourth backup
図7は、実行プログラム記憶部12aに記憶されているラダープログラムを書き換える際のCPU10による制御の流れを示すフローチャートである。
FIG. 7 is a flowchart showing the flow of control by the
CPU10は、ユーザの操作部6に対する所定の操作に応じて、図5において説明したような態様で、第1〜第4バックアッププログラム記憶部12b〜12eに記憶されている各バックアップに関する履歴30を表示部5に表示させる(ステップS201)。その後、操作部6が操作されることにより、いずれかのバックアップに対応する識別情報31が選択された場合には(ステップS202でYes)、CPU10は、そのとき実行プログラム記憶部12aに記憶されているラダープログラムが実行中であるか否かを判定する(ステップS203)。
The
実行プログラム記憶部12aに記憶されているラダープログラムが実行中でなければ(ステップS203でNo)、CPU10は、実行プログラム記憶部12aに記憶されているラダープログラムを消去し、その領域に選択された識別情報31に対応するラダープログラムを記憶させることにより、選択されたラダープログラムを実行プログラム記憶部12aに上書きして記憶させる(ステップS204)。このように、実行プログラム記憶部12aに記憶されているラダープログラムを完全に消去して、選択されたラダープログラムに書き換える処理を、通常書き込みと呼ぶこととする。
If the ladder program stored in the execution
一方、実行プログラム記憶部12aに記憶されているラダープログラムが実行中の場合には(ステップS203でYes)、通常書き込みにより実行プログラム記憶部12aに記憶されているラダープログラムを書き換えると、実行中のラダープログラムのデータが失われ、PLC2が正常に動作しなくなるおそれがある。したがって、通常書き込みによりラダープログラムを書き換える場合には、実行ラダープログラム記憶部12aに記憶されているラダープログラムの実行を中断して、PLC2の動作を停止させなければならず、作業効率が悪い。
On the other hand, when the ladder program stored in the execution
そこで、この様な場合には、CPU10は、実行プログラム記憶部12aに記憶されているラダープログラムの実行を中断することなく、そのラダープログラムと選択されたラダープログラムとの変更点のみを書き換える(ステップS205)。このように、実行プログラム記憶部12aに記憶されているラダープログラムの実行を中断することなく変更点のみを書き換える処理は、RUN中書き込みと呼ばれ、従来から周知の処理方法であるため、ここではその詳細な説明を省略する。
Therefore, in such a case, the
本実施の形態のPLC2では、ラダープログラムが入力された場合には、そのラダープログラムが実行すべきラダープログラムとして実行プログラム記憶部12aに上書きされ、上書きされる前に実行プログラム記憶部12aに記憶されていたラダープログラムのバックアップが第1〜第4バックアッププログラム記憶部12b〜12eに自動的に記憶される。したがって、必要に応じて、表示部7に履歴30を表示させて識別情報31を選択し、第1〜第4バックアッププログラム記憶部12b〜12eのいずれかに記憶されているラダープログラムのバックアップを読み出して、実行プログラム記憶部12aに記憶されているラダープログラムをその読み出したラダープログラムに書き換えることにより、実行プログラム記憶部12aに上書きして記憶される前のラダープログラムを確実に復元することができる。
In the
また、入力されたラダープログラムが実行プログラム記憶部12aに上書きして記憶される際、第1〜第4バックアッププログラム記憶部12b〜12eに記憶されている最も古いバックアップが消去され、その領域に、入力されたラダープログラム又は実行プログラム記憶部12aに記憶されていたラダープログラムなどの新しいラダープログラムが記憶される。これにより、限られたメモリ容量において、復元される可能性の高い比較的新しいラダープログラムだけを、第1〜第4バックアッププログラム記憶部12b〜12eに記憶しておくことができる。
When the input ladder program is overwritten and stored in the execution
上記実施の形態では、プログラム編集装置がノートタイプのパーソナルコンピュータ1により構成される場合について説明したが、プログラム編集装置は、ノートタイプのパーソナルコンピュータに限らず、例えば、デスクトップタイプのパーソナルコンピュータであってもよいし、PDA(Personal Digital Assistance)などの他の情報端末装置であってもよい。
In the above-described embodiment, the case where the program editing apparatus is configured by the notebook type
また、プログラム編集装置は、パーソナルコンピュータ1などの汎用の情報端末装置に限らず、ユーザプログラムの編集を行うための専用の装置であってもよい。
Further, the program editing device is not limited to a general-purpose information terminal device such as the
ラダープログラムのバックアップを記憶するための領域は、第1〜第4バックアッププログラム記憶部12b〜12eの4つの領域に限らず、1つないし3つの領域であってもよいし、5つ以上の領域であってもよい。
The area for storing the backup of the ladder program is not limited to the four areas of the first to fourth backup
また、PLC2を制御するためのプログラムは、ユーザにより作成されるユーザプログラムであれば、ラダープログラムに限らず、他のプログラムであってもよい。例えば、PLC2を制御するためのプログラムは、SFC(Sequential Function Chart)、FBD(Function Block Diagram)、LD(Ladder Diagram)、IL(Instruction List)、ST(Struction Text)などのプログラム言語で作成されていてもよい。
Further, the program for controlling the
本発明は、以上の実施の形態の内容に限定されるものではなく、請求項記載の範囲内において種々の変更が可能である。 The present invention is not limited to the contents of the above-described embodiment, and various modifications can be made within the scope of the claims.
1 パーソナルコンピュータ
2 PLC(プログラマブル・ロジック・コントローラ)
5 表示部
6 操作部
12a 実行プログラム記憶部
12b〜12e 第1〜第4バックアッププログラム記憶部
1
5
Claims (2)
上記実行プログラム記憶手段に上書きされる前に記憶されていたユーザプログラムのバックアップを記憶するためのバックアッププログラム記憶手段と、
上記バックアッププログラム記憶手段に記憶されているユーザプログラムを表す識別情報を表示する表示手段と、
上記表示手段により表示された識別情報を選択するための選択手段と、
上記実行プログラム記憶手段に記憶されているユーザプログラムを、上記選択手段により選択された識別情報に対応するユーザプログラムに書き換えるプログラム書換手段とを備えたことを特徴とするプログラマブル・ロジック・コントローラ。 Execution program storage means for overwriting and storing the input user program as a user program to be executed;
Backup program storage means for storing a backup of the user program stored before being overwritten on the execution program storage means;
Display means for displaying identification information representing the user program stored in the backup program storage means;
Selecting means for selecting the identification information displayed by the display means;
A programmable logic controller comprising program rewriting means for rewriting a user program stored in the execution program storage means to a user program corresponding to the identification information selected by the selection means.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005150356A JP2006330866A (en) | 2005-05-24 | 2005-05-24 | Programmable logic controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005150356A JP2006330866A (en) | 2005-05-24 | 2005-05-24 | Programmable logic controller |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2006330866A true JP2006330866A (en) | 2006-12-07 |
Family
ID=37552522
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005150356A Pending JP2006330866A (en) | 2005-05-24 | 2005-05-24 | Programmable logic controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2006330866A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008171053A (en) * | 2007-01-09 | 2008-07-24 | Koyo Electronics Ind Co Ltd | Motion module and programmable controller |
WO2013168224A1 (en) * | 2012-05-08 | 2013-11-14 | 三菱電機株式会社 | Programmable logic controller, programming tool, and program and parameter editing system |
WO2015136966A1 (en) * | 2014-03-14 | 2015-09-17 | オムロン株式会社 | Control device, control system, support apparatus, and control-device maintenance management method |
JP2016081301A (en) * | 2014-10-16 | 2016-05-16 | 株式会社キーエンス | Programmable logic controller, system, control method, and program |
KR20160075490A (en) | 2014-11-05 | 2016-06-29 | 미쓰비시덴키 가부시키가이샤 | Remote control device and control system |
-
2005
- 2005-05-24 JP JP2005150356A patent/JP2006330866A/en active Pending
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008171053A (en) * | 2007-01-09 | 2008-07-24 | Koyo Electronics Ind Co Ltd | Motion module and programmable controller |
WO2013168224A1 (en) * | 2012-05-08 | 2013-11-14 | 三菱電機株式会社 | Programmable logic controller, programming tool, and program and parameter editing system |
JP5583305B2 (en) * | 2012-05-08 | 2014-09-03 | 三菱電機株式会社 | Programmable logic controller, programming tool, and program parameter editing system |
CN104205057A (en) * | 2012-05-08 | 2014-12-10 | 三菱电机株式会社 | Programmable logic controller, programming tool, and program and parameter editing system |
WO2015136966A1 (en) * | 2014-03-14 | 2015-09-17 | オムロン株式会社 | Control device, control system, support apparatus, and control-device maintenance management method |
CN106068481A (en) * | 2014-03-14 | 2016-11-02 | 欧姆龙株式会社 | The management method of the maintenance of control equipment, control system, assisting system and control equipment |
JPWO2015136966A1 (en) * | 2014-03-14 | 2017-04-06 | オムロン株式会社 | Control device, control system, support device, and control device maintenance management method |
US10108187B2 (en) | 2014-03-14 | 2018-10-23 | Omron Corporation | Control device, control system, support device, and control-device maintenance management method |
CN106068481B (en) * | 2014-03-14 | 2020-03-10 | 欧姆龙株式会社 | Control device, control system, support device, and control device maintenance management method |
JP2016081301A (en) * | 2014-10-16 | 2016-05-16 | 株式会社キーエンス | Programmable logic controller, system, control method, and program |
KR20160075490A (en) | 2014-11-05 | 2016-06-29 | 미쓰비시덴키 가부시키가이샤 | Remote control device and control system |
TWI563358B (en) * | 2014-11-05 | 2016-12-21 | Mitsubishi Electric Corp | Remote control device and control system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5039428B2 (en) | Programmable controller and PLC system | |
JP4462449B2 (en) | Control system setting device | |
JP2006330867A (en) | Management system of program change history, program editing device applied to the system, and program | |
JP2006330866A (en) | Programmable logic controller | |
US9188971B2 (en) | Programmable terminal system | |
JP6150953B2 (en) | Debugging device, debugging method, and debugging program | |
JPWO2015075790A1 (en) | Sequence program creation support device | |
JP2010122824A (en) | Diagram debugging system of programmable controller, programming apparatus for the system and program for the system | |
JP7028361B1 (en) | Update management program, information processing device, and update management method | |
JP2006330865A (en) | User program display device, and program applied to the same | |
JP4566904B2 (en) | System, control program and recording medium recording the program, and image data creation program and recording medium recording the program | |
WO2020195195A1 (en) | Development support device, method for controlling development support device, information processing program, and recording medium | |
JP4277206B2 (en) | Ladder program display method and display device | |
JP4476223B2 (en) | Screen data creation device, screen data editing method, and screen data editing program | |
JP6337810B2 (en) | Information processing apparatus, information processing method, and program | |
JP2006317990A (en) | Programmable logic controller, and communication system | |
JP2007179112A5 (en) | ||
JP2007233761A (en) | Method and unit for revision control of configuration data | |
JP5205988B2 (en) | PLC global variable definition method | |
KR20200123224A (en) | Drawing device, drawing program and storage medium | |
JP6576608B1 (en) | Drawing support device, display device, drawing support method, and computer program | |
JP4684848B2 (en) | Control device, program thereof and recording medium | |
CN109287123B (en) | Control device and editing device | |
JP6566151B2 (en) | System design support apparatus and system design support method | |
JP2008040651A (en) | Programmable indicator, file conversion method therefor, and program enabling programmable indicator to execute same method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Effective date: 20080519 Free format text: JAPANESE INTERMEDIATE CODE: A621 |
|
A977 | Report on retrieval |
Effective date: 20091106 Free format text: JAPANESE INTERMEDIATE CODE: A971007 |
|
A131 | Notification of reasons for refusal |
Effective date: 20091117 Free format text: JAPANESE INTERMEDIATE CODE: A131 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20100309 |