JP2006330867A - Management system of program change history, program editing device applied to the system, and program - Google Patents
Management system of program change history, program editing device applied to the system, and program Download PDFInfo
- Publication number
- JP2006330867A JP2006330867A JP2005150357A JP2005150357A JP2006330867A JP 2006330867 A JP2006330867 A JP 2006330867A JP 2005150357 A JP2005150357 A JP 2005150357A JP 2005150357 A JP2005150357 A JP 2005150357A JP 2006330867 A JP2006330867 A JP 2006330867A
- Authority
- JP
- Japan
- Prior art keywords
- program
- difference information
- change history
- change
- unit
- 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.)
- Withdrawn
Links
Images
Landscapes
- Programmable Controllers (AREA)
Abstract
Description
本発明は、プログラム変更履歴管理システム及びこれに適用されるプログラム編集装置並びにプログラムに係り、更に詳しくは、PLC(プログラマブル・ロジック・コントローラ)を制御するためのユーザプログラムが変更された場合に、変更前のユーザプログラムを復元する方法の改良に関する。 The present invention relates to a program change history management system, a program editing apparatus and a program applied to the program change history management system, and more particularly, when a user program for controlling a PLC (programmable logic controller) is changed. The present invention relates to an improvement of a method for restoring a previous user program.
工場等に設置される各種制御装置を統括的に制御するための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ユニットに送信し、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 provides a program change history management system capable of reliably restoring a user program before change, a program editing apparatus applied to the program change program, and a program. Objective.
また、本発明は、少ないメモリ容量で変更前のユーザプログラムを復元することができるプログラム変更履歴管理システム及びこれに適用されるプログラム編集装置並びにプログラムを提供することを目的とする。 It is another object of the present invention to provide a program change history management system capable of restoring a user program before change with a small memory capacity, a program editing apparatus and a program applied thereto.
本発明によるプログラム変更履歴管理システムは、PLCを制御するためのユーザプログラムを記憶するプログラム記憶手段と、上記プログラム記憶手段に記憶されているユーザプログラムが変更された場合に、変更前と変更後の差分情報を記憶する差分情報記憶手段と、上記差分情報記憶手段に記憶されている差分情報に対応する変更履歴を表示する変更履歴表示手段と、上記変更履歴表示手段により表示された変更履歴を選択するための変更履歴選択手段と、上記変更履歴選択手段により選択された変更履歴に対応する差分情報を上記差分情報記憶手段から読み出して、変更前のユーザプログラムを復元するプログラム復元手段とを備えて構成される。 The program change history management system according to the present invention includes a program storage means for storing a user program for controlling the PLC, and a user program stored in the program storage means before and after the change. Select the difference information storage means for storing the difference information, the change history display means for displaying the change history corresponding to the difference information stored in the difference information storage means, and the change history displayed by the change history display means A change history selection means for reading the difference information corresponding to the change history selected by the change history selection means from the difference information storage means, and a program restoration means for restoring the user program before the change. Composed.
この様な構成によれば、ユーザプログラムが変更された場合には、変更前と変更後の差分情報が差分情報記憶手段に記憶される。したがって、必要に応じて、変更履歴表示手段に表示される変更履歴を変更履歴選択手段により選択し、選択した変更履歴に対応する差分情報を差分情報記憶手段から読み出すことにより、変更前のユーザプログラムを確実に復元することができる。 According to such a configuration, when the user program is changed, the difference information before and after the change is stored in the difference information storage unit. Therefore, if necessary, the change history displayed on the change history display means is selected by the change history selection means, and the difference information corresponding to the selected change history is read from the difference information storage means, whereby the user program before the change Can be reliably restored.
また、変更されたユーザプログラム全体ではなく、変更前と変更後の差分情報のみを差分情報記憶手段に記憶し、その差分情報に基づいて変更前のユーザプログラムを復元することができるので、少ないメモリ容量で変更前のユーザプログラムを復元することができる。 In addition, since only the difference information before and after the change is stored in the difference information storage means, and the user program before the change can be restored based on the difference information, not the entire changed user program, a small memory The user program before the change can be restored with the capacity.
本発明によるプログラム変更履歴管理システムにおいて、上記プログラム記憶手段に記憶されているユーザプログラムを編集するためのプログラム編集装置を備え、上記差分情報記憶手段及び上記プログラム復元手段が、上記プログラム編集装置に設けられていてもよい。 The program change history management system according to the present invention comprises a program editing apparatus for editing a user program stored in the program storage means, and the difference information storage means and the program restoration means are provided in the program editing apparatus. It may be done.
この様な構成によれば、プログラム編集装置において差分情報を記憶し、その差分情報に基づいて、プログラム編集装置において変更前のユーザプログラムを復元することができる。この場合、プログラム編集装置をPLCなどの他の装置に接続することなく、プログラム編集装置において、差分情報を読み出して変更前のユーザプログラムを復元することができる。 According to such a configuration, the difference information can be stored in the program editing apparatus, and the user program before the change can be restored in the program editing apparatus based on the difference information. In this case, without connecting the program editing device to another device such as a PLC, the program editing device can read the difference information and restore the user program before the change.
また、本発明によるプログラム編集履歴管理システムにおいて、上記プログラム記憶手段に記憶されているユーザプログラムを編集するための複数のプログラム編集装置と、上記複数のプログラム編集装置からアクセス可能な共有装置とを備え、上記プログラム復元手段が、上記プログラム編集装置に設けられ、上記差分情報記憶手段が、上記共有装置に設けられていてもよい。 Further, the program editing history management system according to the present invention comprises a plurality of program editing devices for editing the user program stored in the program storage means, and a sharing device accessible from the plurality of program editing devices. The program restoring means may be provided in the program editing apparatus, and the difference information storage means may be provided in the shared apparatus.
この様な構成によれば、共有装置において差分情報を記憶し、その差分情報に基づいて、プログラム編集装置において変更前のユーザプログラムを復元することができる。複数のユーザが、各自のプログラム編集装置を用いてユーザプログラムの編集を行うような場合には、各ユーザによるユーザプログラムの変更に応じて、その差分情報を共有装置に記憶させ、必要に応じて、各ユーザが差分情報を読み出して変更前のユーザプログラムを復元することができる。 According to such a configuration, the difference information can be stored in the shared device, and the user program before the change can be restored in the program editing device based on the difference information. When multiple users edit user programs using their own program editing devices, the difference information is stored in the sharing device according to the change of the user program by each user, and if necessary Each user can read the difference information and restore the user program before the change.
この場合、上記共有装置が、上記PLCであれば、差分情報を記憶しておくための共有装置をPLCと別に設ける必要がなく、システムの低コスト化を図ることができる。 In this case, if the shared device is the PLC, it is not necessary to provide a shared device for storing difference information separately from the PLC, and the cost of the system can be reduced.
本発明によるプログラム編集装置は、PLCを制御するためのユーザプログラムを編集するためのプログラム編集装置において、ユーザプログラムが変更された場合に、変更前と変更後の差分情報に対応する変更履歴を表示する変更履歴表示手段と、上記変更履歴表示手段により表示された変更履歴を選択するための変更履歴選択手段と、上記変更履歴選択手段により選択された変更履歴に対応する差分情報を読み出して、変更前のユーザプログラムを復元するプログラム復元手段とを備えて構成される。 A program editing apparatus according to the present invention displays a change history corresponding to difference information before and after a change when the user program is changed in a program editing apparatus for editing a user program for controlling a PLC. Change history display means, change history selection means for selecting the change history displayed by the change history display means, and difference information corresponding to the change history selected by the change history selection means is read and changed. And a program restoring means for restoring the previous user program.
この様な構成によれば、ユーザプログラムが変更された場合には、プログラム編集装置において、変更前と変更後の差分情報に対応する変更履歴を変更履歴表示手段に表示させることができる。したがって、必要に応じて、プログラム編集装置において、変更履歴表示手段に表示される変更履歴を変更履歴選択手段により選択し、選択した変更履歴に対応する差分情報を読み出すことにより、変更前のユーザプログラムを確実に復元することができる。 According to such a configuration, when the user program is changed, the program editing apparatus can display the change history corresponding to the difference information before and after the change on the change history display means. Therefore, if necessary, in the program editing apparatus, the change history displayed on the change history display means is selected by the change history selection means, and the difference information corresponding to the selected change history is read, whereby the user program before the change Can be reliably restored.
本発明によるプログラムは、PLCを制御するためのユーザプログラムを編集するためのプログラム編集装置のためのコンピュータプログラムにおいて、ユーザプログラムが変更された場合に、変更前と変更後の差分情報に対応する変更履歴を表示する変更履歴表示手段と、上記変更履歴表示手段により表示された変更履歴を選択するための変更履歴選択手段と、上記変更履歴選択手段により選択された変更履歴に対応する差分情報を読み出して、変更前のユーザプログラムを復元するプログラム復元手段として機能させるように構成される。 The program according to the present invention is a computer program for a program editing apparatus for editing a user program for controlling a PLC, and changes corresponding to difference information before and after the change when the user program is changed. Change history display means for displaying history, change history selection means for selecting the change history displayed by the change history display means, and difference information corresponding to the change history selected by the change history selection means is read out Thus, it is configured to function as a program restoring means for restoring the user program before the change.
この様な構成によれば、ユーザプログラムが変更された場合には、プログラム編集装置において、変更前と変更後の差分情報に対応する変更履歴を変更履歴表示手段に表示させることができる。したがって、必要に応じて、プログラム編集装置において、変更履歴表示手段に表示される変更履歴を変更履歴選択手段により選択し、選択した変更履歴に対応する差分情報を読み出すことにより、変更前のユーザプログラムを確実に復元することができる。 According to such a configuration, when the user program is changed, the program editing apparatus can display the change history corresponding to the difference information before and after the change on the change history display means. Therefore, if necessary, in the program editing apparatus, the change history displayed on the change history display means is selected by the change history selection means, and the difference information corresponding to the selected change history is read, whereby the user program before the change Can be reliably restored.
本発明によれば、必要に応じて、変更履歴表示手段に表示される変更履歴を変更履歴選択手段により選択し、選択した変更履歴に対応する差分情報を読み出すことにより、変更前のユーザプログラムを確実に復元することができるプログラム変更履歴管理システム及びこれに適用されるプログラム編集装置並びにプログラムを提供することができる。 According to the present invention, if necessary, the change history displayed on the change history display means is selected by the change history selection means, and by reading the difference information corresponding to the selected change history, the user program before the change is It is possible to provide a program change history management system that can be reliably restored, a program editing apparatus and a program applied thereto.
また、本発明によれば、変更されたユーザプログラム全体ではなく、変更前と変更後の差分情報のみを記憶し、その差分情報に基づいて変更前のユーザプログラムを復元することにより、少ないメモリ容量で変更前のユーザプログラムを復元することができるプログラム変更履歴管理システム及びこれに適用されるプログラム編集装置並びにプログラムを提供することができる。 Further, according to the present invention, not only the changed user program but the difference information before and after the change is stored, and the user program before the change is restored based on the difference information, thereby reducing the memory capacity. Thus, it is possible to provide a program change history management system capable of restoring the user program before the change, a program editing apparatus and a program applied thereto.
図1は、本発明の実施の形態によるプログラム変更履歴管理システムの一構成例を示す概念図である。 FIG. 1 is a conceptual diagram showing a configuration example of a program change history management system according to an embodiment of the present invention.
図1に示すように、このプログラム変更履歴管理システムは、ユーザプログラムの編集を行うためのプログラム編集装置としてのパーソナルコンピュータ1と、工場等に設置される各種制御装置を統括的に制御するためのPLC(プログラマブル・ロジック・コントローラ)2とを備えている。
As shown in FIG. 1, this program change history management system is used to centrally control 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 expansion unit 4 is prepared for each function in order to expand the function of 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のプログラム変更履歴管理システムの電気的構成の概要を示すブロック図である。また、図4は、図1のパーソナルコンピュータ1及びCPUユニット3の電気的構成の詳細を示すブロック図である。
FIG. 3 is a block diagram showing an outline of the electrical configuration of the program change history management system of FIG. FIG. 4 is a block diagram showing details of the electrical configuration of the
パーソナルコンピュータ1には、CPU24、表示部7、操作部8、メモリ25、通信部26及び履歴管理部27が備えられている。表示部7、操作部8、メモリ25、通信部26及び履歴管理部27は、それぞれCPU24に対して電気的に接続されている。
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
履歴管理部27は、ラダープログラム記憶部25aに記憶されているラダープログラムが、ラダープログラム編集ソフトを用いた編集により変更された場合に、変更前と変更後の差分情報を記憶するための差分情報記憶部28を備え、この差分情報記憶部28に記憶されている差分情報を変更履歴として管理している。
The
差分情報の記憶は、ラダープログラムのファイル、デバイスコメント22のファイル、ラベル23のファイルなどのファイル単位で行われる。差分情報には、各ファイルのデータに対して追加又は削除された情報、例えば、ラダープログラム記憶部25aに記憶されているラダープログラムに対して追加又は削除された情報などが含まれる。CPU24は、差分情報記憶部28に記憶されている差分情報に対応する変更履歴を、表示部7に表示させることができる。
Difference information is stored in units of files such as a ladder program file, a
CPUユニット3には、CPU10、表示部5、操作部6、メモリ12及び通信部14が備えられている。表示部5、操作部6、メモリ12及び通信部14は、それぞれCPU10に電気的に接続されている。
The
メモリ12は、少なくともRAMを含む構成であり、パーソナルコンピュータ1のラダープログラム記憶部25aから送信されたラダープログラムが、実行すべきラダープログラムとして記憶されている。このメモリ12に記憶されているラダープログラムは、パーソナルコンピュータ1からラダープログラムが入力されると消去され、その領域に入力されたラダープログラムが記憶されることにより、入力されたラダープログラムがメモリ12に上書きして記憶される。
The
通信部14は、通信ケーブル9を介してCPUユニット3をパーソナルコンピュータ1に対して通信可能に接続するためのものである。
The
CPUユニット3のCPU10は、入力装置16から拡張ユニット4を介して入力される入力信号に基づいて、拡張ユニット4を介して対応する出力装置16の動作を制御する。図3では、各拡張ユニット4に制御装置16が一対一に対応付けられて接続されているが、この様な構成に限らず、1つの拡張ユニット4に対して複数の制御装置16が接続されていてもよい。
The
図5は、図4に示すパーソナルコンピュータ1及びCPUユニット3の電気的構成の第1変形例を示すブロック図である。
FIG. 5 is a block diagram showing a first modification of the electrical configuration of the
この第1変形例では、図4の場合と比較すれば、履歴管理部27が、パーソナルコンピュータ1に備えられているのではなく、パーソナルコンピュータ1とは別に設けられた履歴管理装置29により構成されている点が異なる。この履歴管理装置29は、複数のパーソナルコンピュータ1からアクセス可能な共有装置である。履歴管理装置29は、差分情報記憶部28を備え、パーソナルコンピュータ1の通信部26に対して、LAN(Local Area Network)などの通信ケーブル30を介して、通信可能に接続されている。パーソナルコンピュータ1のCPU24は、差分情報記憶部28に記憶されている差分情報に基づいて、その差分情報に対応する変更履歴を表示部7に表示させることができる。
In the first modification, as compared with the case of FIG. 4, the
図6は、図4に示すパーソナルコンピュータ1及びCPUユニット3の電気的構成の第2変形例を示すブロック図である。
FIG. 6 is a block diagram showing a second modification of the electrical configuration of the
この第2変形例では、図4の場合と比較すれば、履歴管理部27が、パーソナルコンピュータ1ではなく、CPUユニット3に備えられている点が異なる。履歴管理部27は、差分情報記憶部28を備え、CPU10に対して電気的に接続されている。パーソナルコンピュータ1のCPU24は、差分情報記憶部28に記憶されている差分情報に基づいて、その差分情報に対応する変更履歴を表示部7に表示させることができる。
The second modification is different from the case of FIG. 4 in that the
図7は、ラダープログラムの編集を行う際のCPU24による制御の流れを示すフローチャートである。
FIG. 7 is a flowchart showing the flow of control by the
ラダープログラムの編集を行う際、ユーザは、まず、パーソナルコンピュータ1の操作部8を操作して、CPU24に、CPUユニット3のメモリ12に記憶されているラダープログラムを読み込ませ、そのラダープログラムをラダープログラム記憶部25aに記憶させる(ステップS101)。その後、ユーザは、ラダープログラム記憶部25aに記憶されているラダープログラムを読み出し、ラダープログラム編集用ソフトを用いて編集を行うこととなるが、このとき、ユーザは、操作部8を操作することにより、その後のラダープログラムに対する変更を差分情報として記憶させるために、編集中のラダープログラムのファイルをロックする操作(チェックアウト)を行う。
When editing a ladder program, the user first operates the
チェックアウトが行われた後(ステップS102でYes)、ユーザが操作部8を操作することによりラダープログラムの編集が行われ(ステップS103)、そのラダープログラムのファイルを更新して編集を終了するための操作(チェックイン)が行われると(ステップS104でYes)、パーソナルコンピュータ1のCPU24は、チェックアウトからチェックインまでの間にラダープログラムに加えられた変更を差分情報として差分情報記憶部28に記憶させる(ステップS105)。
After the check-out is performed (Yes in step S102), the ladder program is edited by the user operating the operation unit 8 (step S103), and the ladder program file is updated to finish the editing. When the operation (check-in) is performed (Yes in step S104), the
このとき、図4のように、差分情報記憶部28がパーソナルコンピュータ1に備えられている場合には、差分情報がそのままパーソナルコンピュータ1内で処理されて、パーソナルコンピュータ1内の差分情報記憶部28に記憶される。一方、図5又は図6のように、差分情報記憶部28が、履歴管理装置29やCPUユニット3などのパーソナルコンピュータ1以外の装置に備えられている場合には、差分情報がそれらの装置へ送信され、差分情報記憶部28に記憶される。
At this time, when the difference
図4又は図5のように、差分情報記憶部28がCPUユニット3以外の装置に備えられている場合には、差分情報をCPUユニット3にも送信して、CPUユニット3のメモリ12に記憶させてもよい。この場合、編集後のラダープログラムをCPUユニット3に送信してメモリ12に記憶させる際に、差分情報も一緒にCPUユニット3に送信して、CPUユニット3のメモリ12に記憶させてもよい。
As shown in FIG. 4 or 5, when the difference
図7に示すような処理が複数回行われた場合には、各回におけるチェックアウトからチェックインまでの差分情報が差分情報記憶部28に順次記憶され、差分情報記憶部28に複数回分の差分情報が記憶されることとなる。
When the processing as shown in FIG. 7 is performed a plurality of times, difference information from check-out to check-in at each time is sequentially stored in the difference
図8は、差分情報記憶部28に記憶されている差分情報に基づいてラダープログラムを復元する際のCPU24による制御の流れを示すフローチャートである。
FIG. 8 is a flowchart showing the flow of control by the
差分情報記憶部28に差分情報が記憶された状態で、ユーザによりパーソナルコンピュータ1の操作部8に対する所定の操作が行われると、CPU24は、差分情報記憶部28に記憶されている差分情報に対応する変更履歴を表示部7に表示させる(ステップS201)。このとき、差分情報記憶部28に複数回分の差分情報が記憶されている場合には、それらの複数回分の差分情報にそれぞれ対応する変更履歴が表示部7に一覧表示される。表示部7に表示される変更履歴には、対応する差分情報の内容、その差分情報が差分情報記憶部28に記憶された日時、その差分情報を差分情報記憶部28に記憶させたユーザ名(変更者名)などが含まれる。
When the user performs a predetermined operation on the
ユーザは、表示部7に表示されている変更履歴を確認し、操作部8を操作することによりいずれかの変更履歴を選択することができる。ユーザによる変更履歴の選択があれば(ステップS202でYes)、CPU24は、その選択された変更履歴に対応する差分情報を差分情報記憶部28から読み出し(ステップS203)、その差分情報に基づいて変更前のラダープログラムを復元する(ステップS204)。
The user can check the change history displayed on the
ラダープログラムの復元は、例えば、ラダープログラム記憶部25aに記憶されているラダープログラムと、選択された差分情報と、その選択された差分情報よりも後に差分情報記憶部28に記憶された差分情報とに基づいて、選択された差分情報に対応するラダープログラムの変更が行われる前の状態までラダープログラムを戻すことにより行われる。このとき、図4又は図5のように、差分情報記憶部28がCPUユニット3以外の装置に備えられており、差分情報がパーソナルコンピュータ1からCPUユニット3に送信されてメモリ12に記憶されている場合には、そのメモリ12に記憶されている差分情報がパーソナルコンピュータ1内に読み込まれ、その差分情報に基づいてラダープログラムが復元されるようになっていてもよい。
For example, the ladder program is restored by the ladder program stored in the ladder
ただし、上記の様な構成に限らず、作成時のラダープログラムを差分情報記憶部28又は他のメモリに記憶しておいて、その作成時のラダープログラムと、選択された差分情報と、その選択された差分情報よりも前に差分情報記憶部28に記憶された差分情報とに基づいて、選択された差分情報に対応するラダープログラムの変更が行われる前の状態のラダープログラムを生成することにより、ラダープログラムの復元が行われるような構成であってもよい。
However, the configuration is not limited to the above, and the ladder program at the time of creation is stored in the difference
本実施の形態では、ラダープログラムが変更された場合には、変更前と変更後の差分情報が差分情報記憶部28に記憶される。したがって、必要に応じて、パーソナルコンピュータ1の表示部7に表示される変更履歴を操作部8の操作により選択し、選択した変更履歴に対応する差分情報を差分情報記憶部28から読み出すことにより、変更前のラダープログラムを確実に復元することができる。
In the present embodiment, when the ladder program is changed, the difference information before and after the change is stored in the difference
また、変更されたラダープログラム全体ではなく、変更前と変更後の差分情報のみを差分情報記憶部28に記憶し、その差分情報に基づいて変更前のラダープログラムを復元することができるので、少ないメモリ容量で変更前のラダープログラムを復元することができる。
Further, only the difference information before and after the change is stored in the difference
図4のように、パーソナルコンピュータ1に差分情報記憶部28が備えられた構成の場合には、パーソナルコンピュータ1において差分情報を記憶し、その差分情報に基づいて、パーソナルコンピュータ1において変更前のラダープログラムを復元することができる。この場合、パーソナルコンピュータ1をPLC2などの他の装置に接続することなく、パーソナルコンピュータ1において、差分情報を読み出して変更前のラダープログラムを復元することができる。
As shown in FIG. 4, when the
図5のように、複数のパーソナルコンピュータ1からアクセス可能な履歴管理装置29に差分情報記憶部28が備えられた構成の場合には、履歴管理装置29において差分情報を記憶し、その差分情報に基づいて、パーソナルコンピュータ1において変更前のラダープログラムを復元することができる。複数のユーザが、各自のパーソナルコンピュータ1を用いてラダープログラムの編集を行うような場合には、各ユーザによるラダープログラムの変更に応じて、その差分情報を履歴管理装置29に記憶させ、必要に応じて、各ユーザが差分情報を読み出して変更前のラダープログラムを復元することができる。この場合、いずれかのユーザがラダープログラムを編集するためにチェックアウトを行っている間は、他のユーザがそのラダープログラムに対してチェックアウトを行うことができないようになっていることが好ましい。
As shown in FIG. 5, in the case where the
図6のように、PLC2のCPUユニット3に差分情報記憶部28が備えられた構成の場合には、CPUユニット3を共有装置として用いることができるので、図5のように、差分情報を記憶しておくための差分情報記憶装置29をPLC2と別に設ける必要がなく、システムの低コスト化を図ることができる。
As shown in FIG. 6, when the
上記実施の形態では、プログラム編集装置がノートタイプのパーソナルコンピュータ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
また、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(プログラマブル・ロジック・コントローラ)
7 表示部
8 操作部
25a ラダープログラム記憶部
28 差分情報記憶部
29 履歴管理装置
1
7
Claims (6)
上記プログラム記憶手段に記憶されているユーザプログラムが変更された場合に、変更前と変更後の差分情報を記憶する差分情報記憶手段と、
上記差分情報記憶手段に記憶されている差分情報に対応する変更履歴を表示する変更履歴表示手段と、
上記変更履歴表示手段により表示された変更履歴を選択するための変更履歴選択手段と、
上記変更履歴選択手段により選択された変更履歴に対応する差分情報を上記差分情報記憶手段から読み出して、変更前のユーザプログラムを復元するプログラム復元手段とを備えたことを特徴とするプログラム変更履歴管理システム。 Program storage means for storing a user program for controlling the PLC;
When the user program stored in the program storage means is changed, difference information storage means for storing difference information before and after the change,
A change history display means for displaying a change history corresponding to the difference information stored in the difference information storage means;
A change history selection means for selecting the change history displayed by the change history display means;
Program change history management, comprising: program restoration means for reading the difference information corresponding to the change history selected by the change history selection means from the difference information storage means and restoring the user program before the change. system.
上記差分情報記憶手段及び上記プログラム復元手段が、上記プログラム編集装置に設けられていることを特徴とする請求項1に記載のプログラム変更履歴管理システム。 A program editing device for editing the user program stored in the program storage means,
2. The program change history management system according to claim 1, wherein the difference information storage means and the program restoration means are provided in the program editing apparatus.
上記複数のプログラム編集装置からアクセス可能な共有装置とを備え、
上記プログラム復元手段が、上記プログラム編集装置に設けられ、
上記差分情報記憶手段が、上記共有装置に設けられていることを特徴とする請求項1に記載のプログラム編集履歴管理システム。 A plurality of program editing devices for editing the user program stored in the program storage means;
A shared device accessible from the plurality of program editing devices,
The program restoring means is provided in the program editing device,
2. The program editing history management system according to claim 1, wherein the difference information storage means is provided in the shared device.
ユーザプログラムが変更された場合に、変更前と変更後の差分情報に対応する変更履歴を表示する変更履歴表示手段と、
上記変更履歴表示手段により表示された変更履歴を選択するための変更履歴選択手段と、
上記変更履歴選択手段により選択された変更履歴に対応する差分情報を読み出して、変更前のユーザプログラムを復元するプログラム復元手段とを備えたことを特徴とするプログラム編集装置。 In a program editing apparatus for editing a user program for controlling a PLC,
A change history display means for displaying a change history corresponding to the difference information before and after the change when the user program is changed;
A change history selection means for selecting the change history displayed by the change history display means;
A program editing apparatus comprising: program restoring means for reading difference information corresponding to the change history selected by the change history selecting means and restoring the user program before the change.
ユーザプログラムが変更された場合に、変更前と変更後の差分情報に対応する変更履歴を表示する変更履歴表示手段と、
上記変更履歴表示手段により表示された変更履歴を選択するための変更履歴選択手段と、
上記変更履歴選択手段により選択された変更履歴に対応する差分情報を読み出して、変更前のユーザプログラムを復元するプログラム復元手段として機能させることを特徴とするプログラム。 In a computer program for a program editing device for editing a user program for controlling a PLC,
A change history display means for displaying a change history corresponding to the difference information before and after the change when the user program is changed;
A change history selection means for selecting the change history displayed by the change history display means;
A program that reads difference information corresponding to a change history selected by the change history selection means and functions as a program restoration means for restoring a user program before the change.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005150357A JP2006330867A (en) | 2005-05-24 | 2005-05-24 | Management system of program change history, program editing device applied to the system, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005150357A JP2006330867A (en) | 2005-05-24 | 2005-05-24 | Management system of program change history, program editing device applied to the system, and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2006330867A true JP2006330867A (en) | 2006-12-07 |
Family
ID=37552523
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005150357A Withdrawn JP2006330867A (en) | 2005-05-24 | 2005-05-24 | Management system of program change history, program editing device applied to the system, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2006330867A (en) |
Cited By (8)
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 |
JP2013030034A (en) * | 2011-07-29 | 2013-02-07 | Hitachi Industrial Equipment Systems Co Ltd | Programming device for programmable controller |
JP2015005258A (en) * | 2013-06-24 | 2015-01-08 | 横河電機株式会社 | Process control device and system; and update method therefor |
WO2015136966A1 (en) * | 2014-03-14 | 2015-09-17 | オムロン株式会社 | Control device, control system, support apparatus, and control-device maintenance management method |
JP2015187860A (en) * | 2014-03-14 | 2015-10-29 | オムロン株式会社 | Information processor, information processing method, and program |
JP6305667B1 (en) * | 2017-05-22 | 2018-04-04 | 三菱電機株式会社 | Control device and editing device |
CN108121297A (en) * | 2016-11-29 | 2018-06-05 | 发那科株式会社 | Trapezoid figure program managing device |
WO2019093170A1 (en) * | 2017-11-10 | 2019-05-16 | オムロン株式会社 | Control-program-development supporting apparatus, control-program-development supporting system, control-program-development supporting method, and control-program-development supporting program |
-
2005
- 2005-05-24 JP JP2005150357A patent/JP2006330867A/en not_active Withdrawn
Cited By (17)
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 |
JP2013030034A (en) * | 2011-07-29 | 2013-02-07 | Hitachi Industrial Equipment Systems Co Ltd | Programming device for programmable controller |
JP2015005258A (en) * | 2013-06-24 | 2015-01-08 | 横河電機株式会社 | Process control device and system; and update method therefor |
US10108187B2 (en) | 2014-03-14 | 2018-10-23 | Omron Corporation | Control device, control system, support device, and control-device maintenance management method |
WO2015136966A1 (en) * | 2014-03-14 | 2015-09-17 | オムロン株式会社 | Control device, control system, support apparatus, and control-device maintenance management method |
JP2015187860A (en) * | 2014-03-14 | 2015-10-29 | オムロン株式会社 | Information processor, information processing method, and program |
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 |
CN106068481B (en) * | 2014-03-14 | 2020-03-10 | 欧姆龙株式会社 | Control device, control system, support device, and control device maintenance management method |
CN108121297A (en) * | 2016-11-29 | 2018-06-05 | 发那科株式会社 | Trapezoid figure program managing device |
CN108121297B (en) * | 2016-11-29 | 2019-08-23 | 发那科株式会社 | Trapezoid figure program managing device |
US10599119B2 (en) | 2016-11-29 | 2020-03-24 | Fanuc Corporation | Ladder-program managing device |
WO2018216083A1 (en) * | 2017-05-22 | 2018-11-29 | 三菱電機株式会社 | Control device and editing device |
CN109287123A (en) * | 2017-05-22 | 2019-01-29 | 三菱电机株式会社 | Control device and editing device |
JP6305667B1 (en) * | 2017-05-22 | 2018-04-04 | 三菱電機株式会社 | Control device and editing device |
WO2019093170A1 (en) * | 2017-11-10 | 2019-05-16 | オムロン株式会社 | Control-program-development supporting apparatus, control-program-development supporting system, control-program-development supporting method, and control-program-development supporting program |
US11151016B2 (en) | 2017-11-10 | 2021-10-19 | Omron Corporation | Control-program-development supporting apparatus, control-program-development supporting system, control-program-development supporting method, and non-transitory computer-readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2006330867A (en) | Management system of program change history, program editing device applied to the system, and program | |
JP4462449B2 (en) | Control system setting device | |
CN101295173B (en) | Simulation device for programmable controller | |
EP2889707A9 (en) | Control device and communication control method | |
EP3101494B1 (en) | Control apparatus and control system | |
JP2005327263A (en) | Control system setting device | |
WO2015075790A1 (en) | Device for assisting creation of sequence program | |
JP4426492B2 (en) | Programmable terminal system | |
JP4462443B2 (en) | Parameter setting device | |
JP6150953B2 (en) | Debugging device, debugging method, and debugging program | |
JP5921765B2 (en) | Program graph display device, program graph display method, and program graph display program | |
JP2006330866A (en) | Programmable logic controller | |
CN115917500A (en) | Update management program, information processing apparatus, and update management method | |
JP6442131B2 (en) | Control system and control device | |
JP2006330865A (en) | User program display device, and program applied to the same | |
JP6337810B2 (en) | Information processing apparatus, information processing method, and program | |
JP4277206B2 (en) | Ladder program display method and display device | |
JP4628169B2 (en) | User program search device and program applied thereto | |
US20050198613A1 (en) | Method and device for creating project planning for an operating device of an automation component | |
JP6576608B1 (en) | Drawing support device, display device, drawing support method, and computer program | |
CN111971650A (en) | Drawing device, drawing program, and storage medium | |
JP5205988B2 (en) | PLC global variable definition method | |
JP2007193425A (en) | Screen data preparation device, screen data edition method, and screen data edition program | |
JP7241982B1 (en) | Image generation program, image generation device, programmable controller system and image generation method | |
JP2009080736A (en) | Plc construction method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080519 |
|
A761 | Written withdrawal of application |
Effective date: 20090619 Free format text: JAPANESE INTERMEDIATE CODE: A761 |