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 PDF

Info

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
Application number
JP2005150357A
Other languages
Japanese (ja)
Inventor
Kimihiko Sugino
公彦 杉野
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.)
Keyence Corp
Original Assignee
Keyence 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 Keyence Corp filed Critical Keyence Corp
Priority to JP2005150357A priority Critical patent/JP2006330867A/en
Publication of JP2006330867A publication Critical patent/JP2006330867A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a management system of a program change history for surely restoring a user program before change, a program editing device applied to the system, and a program. <P>SOLUTION: A program editing device 1 has a ladder program storage part 25a storing a ladder program; and a difference information storage part 28 storing difference information before and after change when the ladder program is changed, displays a change history corresponding to the difference information on a display part 7, and reads out the difference information corresponding to a change history selected by an operation of an operating part 8 among the displayed change history from the storage part 28 to restore the ladder program before change. <P>COPYRIGHT: (C)2007,JPO&INPIT

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が、その編集後のラダープログラムを実行することにより制御装置の動作を制御することとなる。
特開2005−85076号公報
The created ladder program can be edited using a personal computer. When a user edits a ladder program using a personal computer, the edited ladder program can be overwritten and stored in the memory of the CPU unit by transmitting the edited ladder program from the personal computer to the CPU unit. After the ladder program stored in the memory of the CPU unit is overwritten on the edited ladder program, the CPU of the CPU unit controls the operation of the control device by executing the edited ladder program. Become.
JP 2005-85076 A

ユーザは、時に、一旦編集して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 personal computer 1 as a program editing device for editing a user program and various control devices installed in a factory or the like. A PLC (programmable logic controller) 2 is provided.

PLC2は、CPUが内蔵されたCPUユニット3を備え、このCPUユニット3に対して1つないし複数の拡張ユニット4が着脱可能に構成されている。   The PLC 2 includes a CPU unit 3 with a built-in CPU, and one or a plurality of expansion units 4 can be attached to and detached from the CPU unit 3.

CPUユニット3には、表示部5及び操作部6が備えられている。表示部5には、CPUユニット3に取り付けられている各拡張ユニット4の動作状況などを表示することができ、表示部5の表示内容は、操作部6を操作することにより切り替えることができる。表示部5には、通常、PLC2内のデバイスの現在値(デバイス値)やPLC2内で生じたエラー情報などが表示される。   The CPU unit 3 includes a display unit 5 and an operation unit 6. The display unit 5 can display the operation status of each expansion unit 4 attached to the CPU unit 3, and the display content of the display unit 5 can be switched by operating the operation unit 6. The display unit 5 normally displays a current value (device value) of a device in the PLC 2 and error information generated in the PLC 2.

拡張ユニット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 PLC 2 and is attached to the CPU unit 3 from the side. The first extension unit 4 is directly attached to the CPU unit 3 from the side. The second and subsequent expansion units 4 are sequentially attached in series from the side with respect to the already-installed expansion units 4. Thus, when the CPU unit 3 and the plurality of expansion units 4 are attached in series, each expansion unit 4 can communicate with the CPU unit 3 via the wiring provided in each expansion unit 4. Connected. Each expansion unit 4 is connected to a control device corresponding to the function of the expansion unit 4, whereby each control device is connected to the CPU unit 3 via the expansion unit 4. The control device includes an input device such as a sensor and an output device such as an actuator.

パーソナルコンピュータ1は、例えば、携帯可能ないわゆるノートタイプのパーソナルコンピュータであって、表示部7及び操作部8が備えられている。PLC2を制御するためのユーザプログラムの一例であるラダープログラムは、パーソナルコンピュータ1を用いて作成され、その作成されたラダープログラムは、パーソナルコンピュータ1内でニモニックコードに変換される。そして、パーソナルコンピュータ1を、USB(Universal Serial Bus)などの通信ケーブル9を介してPLC2のCPUユニット3に接続し、ニモニックコードに変換されたラダープログラムをパーソナルコンピュータ1からCPUユニット3に送ると、そのラダープログラムがCPUユニット3内でマシンコードに変換され、CPUユニット3に備えられたメモリ内に記憶される。   The personal computer 1 is, for example, a portable so-called notebook type personal computer, and includes a display unit 7 and an operation unit 8. A ladder program which is an example of a user program for controlling the PLC 2 is created using the personal computer 1, and the created ladder program is converted into a mnemonic code in the personal computer 1. When the personal computer 1 is connected to the CPU unit 3 of the PLC 2 via a communication cable 9 such as a USB (Universal Serial Bus) and the ladder program converted into the mnemonic code is sent from the personal computer 1 to the CPU unit 3, The ladder program is converted into a machine code in the CPU unit 3 and stored in a memory provided in the CPU unit 3.

なお、図1では図示していないが、パーソナルコンピュータ1の操作部8には、パーソナルコンピュータ1に接続されたマウスが含まれていてもよい。   Although not shown in FIG. 1, the operation unit 8 of the personal computer 1 may include a mouse connected to the personal computer 1.

また、パーソナルコンピュータ1は、USB以外の他の通信ケーブル9を介して、PLC2のCPUユニット3に対して着脱可能に接続されるような構成であってもよい。   Further, the personal computer 1 may be configured to be detachably connected to the CPU unit 3 of the PLC 2 via a communication cable 9 other than the USB.

図2は、ラダープログラムの作成時にパーソナルコンピュータ1の表示部7に表示されるラダー図17の一例を示す図である。   FIG. 2 is a diagram illustrating an example of a ladder diagram 17 displayed on the display unit 7 of the personal computer 1 when a ladder program is created.

図2に示すように、PLC2を制御するためのラダープログラムは、パーソナルコンピュータ1の表示部7にマトリックス状に表示される複数のセル18内に仮想デバイスのシンボル19を適宜配置して、視覚的なリレー回路を表すラダー図17を構築することにより作成される。   As shown in FIG. 2, the ladder program for controlling the PLC 2 visually arranges virtual device symbols 19 in a plurality of cells 18 displayed in a matrix on the display unit 7 of the personal computer 1. It is created by constructing a ladder diagram 17 representing a simple relay circuit.

ラダー図17には、例えば、10列×N行(Nは任意の自然数)のセル18が配置されている。そして、各行のセル18内に、図2に示す左側から右側に向かって、時系列的に仮想デバイスのシンボル19を適宜配置することにより、視覚的なリレー回路を作成することができる。作成されるリレー回路は、1行で表される直列的なリレー回路であってもよいし、複数行に並列的に表されたリレー回路を互いに結合することにより作成された、並列的なリレー回路であってもよい。   In the ladder diagram 17, for example, cells 18 of 10 columns × N rows (N is an arbitrary natural number) are arranged. A visual relay circuit can be created by appropriately arranging the virtual device symbols 19 in time series in the cells 18 of each row from the left side to the right side shown in FIG. The created relay circuit may be a serial relay circuit represented by one row, or a parallel relay created by coupling relay circuits represented in parallel in a plurality of rows to each other. It may be a circuit.

図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 symbol 19d of a virtual device (hereinafter referred to as “output device”) that is turned on / off in order to control the signal is appropriately combined.

各入力デバイスのシンボル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 symbols 19a, 19b, and 19c of each input device represent the device name (address name) 21 of the input device. The characters (“flag 1”, “flag 2”, and “flag 3”) displayed below the symbols 19a, 19b, and 19c of each input device represent a device comment 22 associated with the input device. Yes. A character (“origin return”) displayed above the symbol 19d of the output device is a label 23 composed of a character string representing the function of the output device.

図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 input device symbols 19a and 19b respectively corresponding to device names “R0001” and “R0002” are coupled in series to form an AND circuit. In addition, an OR circuit is configured by parallelly connecting the input device symbol 19c corresponding to the device name “R0003” to the AND circuit including the symbols 19a and 19b of these two input devices. Yes. That is, in this relay circuit, the output device corresponding to the symbol 19d is turned on only when both of the input devices corresponding to the two symbols 19a and 19b are turned on or when the input device corresponding to the symbol 19c is turned on. It has come to be.

図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 personal computer 1 and the CPU unit 3 of FIG.

パーソナルコンピュータ1には、CPU24、表示部7、操作部8、メモリ25、通信部26及び履歴管理部27が備えられている。表示部7、操作部8、メモリ25、通信部26及び履歴管理部27は、それぞれCPU24に対して電気的に接続されている。   The personal computer 1 includes a CPU 24, a display unit 7, an operation unit 8, a memory 25, a communication unit 26, and a history management unit 27. The display unit 7, the operation unit 8, the memory 25, the communication unit 26, and the history management unit 27 are electrically connected to the CPU 24, respectively.

メモリ25は、少なくともRAMを含む構成であり、ラダープログラム記憶部25aと、ラダープログラム編集用ソフト記憶部25bとを備えている。   The memory 25 includes at least a RAM, and includes a ladder program storage unit 25a and a ladder program editing software storage unit 25b.

ユーザは、ラダープログラム編集用ソフト記憶部25bに記憶されているラダープログラム編集用ソフトを起動させて、ラダープログラムの編集を行うことができる。ここで、ラダープログラムの編集には、ラダープログラムの作成及び変更が含まれる。ラダープログラム編集用ソフトを用いて作成されたラダープログラムは、ラダープログラム記憶部25aに記憶される。また、ユーザは、必要に応じてラダープログラム記憶部25aに記憶されているラダープログラムを読み出し、そのラダープログラムを、ラダープログラム編集用ソフトを用いて変更することができる。   The user can edit the ladder program by activating the ladder program editing software stored in the ladder program editing software storage unit 25b. Here, the ladder program editing includes creation and modification of the ladder program. The ladder program created using the ladder program editing software is stored in the ladder program storage unit 25a. Further, the user can read the ladder program stored in the ladder program storage unit 25a as needed, and change the ladder program using the ladder program editing software.

通信部26は、通信ケーブル9を介してパーソナルコンピュータ1をCPUユニット3に通信可能に接続するためのものである。   The communication unit 26 is for connecting the personal computer 1 to the CPU unit 3 via the communication cable 9 so as to be communicable.

履歴管理部27は、ラダープログラム記憶部25aに記憶されているラダープログラムが、ラダープログラム編集ソフトを用いた編集により変更された場合に、変更前と変更後の差分情報を記憶するための差分情報記憶部28を備え、この差分情報記憶部28に記憶されている差分情報を変更履歴として管理している。   The history management unit 27 stores difference information for storing difference information before and after the change when the ladder program stored in the ladder program storage unit 25a is changed by editing using the ladder program editing software. A storage unit 28 is provided, and the difference information stored in the difference information storage unit 28 is managed as a change history.

差分情報の記憶は、ラダープログラムのファイル、デバイスコメント22のファイル、ラベル23のファイルなどのファイル単位で行われる。差分情報には、各ファイルのデータに対して追加又は削除された情報、例えば、ラダープログラム記憶部25aに記憶されているラダープログラムに対して追加又は削除された情報などが含まれる。CPU24は、差分情報記憶部28に記憶されている差分情報に対応する変更履歴を、表示部7に表示させることができる。   Difference information is stored in units of files such as a ladder program file, a device comment 22 file, and a label 23 file. The difference information includes information added to or deleted from the data of each file, for example, information added to or deleted from the ladder program stored in the ladder program storage unit 25a. The CPU 24 can cause the display unit 7 to display a change history corresponding to the difference information stored in the difference information storage unit 28.

CPUユニット3には、CPU10、表示部5、操作部6、メモリ12及び通信部14が備えられている。表示部5、操作部6、メモリ12及び通信部14は、それぞれCPU10に電気的に接続されている。   The CPU unit 3 includes a CPU 10, a display unit 5, an operation unit 6, a memory 12, and a communication unit 14. The display unit 5, the operation unit 6, the memory 12, and the communication unit 14 are each electrically connected to the CPU 10.

メモリ12は、少なくともRAMを含む構成であり、パーソナルコンピュータ1のラダープログラム記憶部25aから送信されたラダープログラムが、実行すべきラダープログラムとして記憶されている。このメモリ12に記憶されているラダープログラムは、パーソナルコンピュータ1からラダープログラムが入力されると消去され、その領域に入力されたラダープログラムが記憶されることにより、入力されたラダープログラムがメモリ12に上書きして記憶される。   The memory 12 includes at least a RAM, and stores a ladder program transmitted from the ladder program storage unit 25a of the personal computer 1 as a ladder program to be executed. The ladder program stored in the memory 12 is erased when the ladder program is input from the personal computer 1, and the input ladder program is stored in the memory 12 by storing the ladder program input in that area. Overwritten and stored.

通信部14は、通信ケーブル9を介してCPUユニット3をパーソナルコンピュータ1に対して通信可能に接続するためのものである。   The communication unit 14 is for connecting the CPU unit 3 to the personal computer 1 via the communication cable 9 so that they can communicate with each other.

CPUユニット3のCPU10は、入力装置16から拡張ユニット4を介して入力される入力信号に基づいて、拡張ユニット4を介して対応する出力装置16の動作を制御する。図3では、各拡張ユニット4に制御装置16が一対一に対応付けられて接続されているが、この様な構成に限らず、1つの拡張ユニット4に対して複数の制御装置16が接続されていてもよい。   The CPU 10 of the CPU unit 3 controls the operation of the corresponding output device 16 via the expansion unit 4 based on an input signal input from the input device 16 via the expansion unit 4. In FIG. 3, the control devices 16 are connected to each expansion unit 4 in a one-to-one correspondence. However, the configuration is not limited to this, and a plurality of control devices 16 are connected to one expansion unit 4. It may be.

図5は、図4に示すパーソナルコンピュータ1及びCPUユニット3の電気的構成の第1変形例を示すブロック図である。   FIG. 5 is a block diagram showing a first modification of the electrical configuration of the personal computer 1 and the CPU unit 3 shown in FIG.

この第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 history management unit 27 is not provided in the personal computer 1 but is configured by a history management device 29 provided separately from the personal computer 1. Is different. The history management device 29 is a shared device that can be accessed from a plurality of personal computers 1. The history management device 29 includes a difference information storage unit 28 and is communicably connected to the communication unit 26 of the personal computer 1 via a communication cable 30 such as a LAN (Local Area Network). The CPU 24 of the personal computer 1 can display a change history corresponding to the difference information on the display unit 7 based on the difference information stored in the difference information storage unit 28.

図6は、図4に示すパーソナルコンピュータ1及びCPUユニット3の電気的構成の第2変形例を示すブロック図である。   FIG. 6 is a block diagram showing a second modification of the electrical configuration of the personal computer 1 and the CPU unit 3 shown in FIG.

この第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 history management unit 27 is provided not in the personal computer 1 but in the CPU unit 3. The history management unit 27 includes a difference information storage unit 28 and is electrically connected to the CPU 10. The CPU 24 of the personal computer 1 can display a change history corresponding to the difference information on the display unit 7 based on the difference information stored in the difference information storage unit 28.

図7は、ラダープログラムの編集を行う際のCPU24による制御の流れを示すフローチャートである。   FIG. 7 is a flowchart showing the flow of control by the CPU 24 when editing a ladder program.

ラダープログラムの編集を行う際、ユーザは、まず、パーソナルコンピュータ1の操作部8を操作して、CPU24に、CPUユニット3のメモリ12に記憶されているラダープログラムを読み込ませ、そのラダープログラムをラダープログラム記憶部25aに記憶させる(ステップS101)。その後、ユーザは、ラダープログラム記憶部25aに記憶されているラダープログラムを読み出し、ラダープログラム編集用ソフトを用いて編集を行うこととなるが、このとき、ユーザは、操作部8を操作することにより、その後のラダープログラムに対する変更を差分情報として記憶させるために、編集中のラダープログラムのファイルをロックする操作(チェックアウト)を行う。   When editing a ladder program, the user first operates the operation unit 8 of the personal computer 1 to cause the CPU 24 to read the ladder program stored in the memory 12 of the CPU unit 3, and the ladder program is loaded into the ladder program. The program is stored in the program storage unit 25a (step S101). Thereafter, the user reads out the ladder program stored in the ladder program storage unit 25a and performs editing using the ladder program editing software. At this time, the user operates the operation unit 8. Then, in order to store changes to the ladder program thereafter as difference information, an operation (checkout) is performed to lock the ladder program file being edited.

チェックアウトが行われた後(ステップ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 CPU 24 of the personal computer 1 stores the change made to the ladder program between check-out and check-in as difference information in the difference information storage unit 28. Store (step S105).

このとき、図4のように、差分情報記憶部28がパーソナルコンピュータ1に備えられている場合には、差分情報がそのままパーソナルコンピュータ1内で処理されて、パーソナルコンピュータ1内の差分情報記憶部28に記憶される。一方、図5又は図6のように、差分情報記憶部28が、履歴管理装置29やCPUユニット3などのパーソナルコンピュータ1以外の装置に備えられている場合には、差分情報がそれらの装置へ送信され、差分情報記憶部28に記憶される。   At this time, when the difference information storage unit 28 is provided in the personal computer 1 as shown in FIG. 4, the difference information is directly processed in the personal computer 1, and the difference information storage unit 28 in the personal computer 1 is processed. Is remembered. On the other hand, if the difference information storage unit 28 is provided in a device other than the personal computer 1 such as the history management device 29 or the CPU unit 3 as shown in FIG. 5 or FIG. 6, the difference information is sent to those devices. The difference information is stored in the difference information storage unit 28.

図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 information storage unit 28 is provided in a device other than the CPU unit 3, the difference information is also transmitted to the CPU unit 3 and stored in the memory 12 of the CPU unit 3. You may let them. In this case, when the edited ladder program is transmitted to the CPU unit 3 and stored in the memory 12, the difference information may also be transmitted to the CPU unit 3 and stored in the memory 12 of the CPU unit 3.

図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 information storage unit 28, and the difference information for a plurality of times is stored in the difference information storage unit 28. Will be stored.

図8は、差分情報記憶部28に記憶されている差分情報に基づいてラダープログラムを復元する際のCPU24による制御の流れを示すフローチャートである。   FIG. 8 is a flowchart showing the flow of control by the CPU 24 when restoring the ladder program based on the difference information stored in the difference information storage unit 28.

差分情報記憶部28に差分情報が記憶された状態で、ユーザによりパーソナルコンピュータ1の操作部8に対する所定の操作が行われると、CPU24は、差分情報記憶部28に記憶されている差分情報に対応する変更履歴を表示部7に表示させる(ステップS201)。このとき、差分情報記憶部28に複数回分の差分情報が記憶されている場合には、それらの複数回分の差分情報にそれぞれ対応する変更履歴が表示部7に一覧表示される。表示部7に表示される変更履歴には、対応する差分情報の内容、その差分情報が差分情報記憶部28に記憶された日時、その差分情報を差分情報記憶部28に記憶させたユーザ名(変更者名)などが含まれる。   When the user performs a predetermined operation on the operation unit 8 of the personal computer 1 with the difference information stored in the difference information storage unit 28, the CPU 24 corresponds to the difference information stored in the difference information storage unit 28. The change history to be displayed is displayed on the display unit 7 (step S201). At this time, when difference information for a plurality of times is stored in the difference information storage unit 28, the change history corresponding to each of the difference information for the plurality of times is displayed as a list on the display unit 7. The change history displayed on the display unit 7 includes the contents of the corresponding difference information, the date and time when the difference information is stored in the difference information storage unit 28, and the user name (the difference information storage unit 28 stores the difference information). Name of the person who changed).

ユーザは、表示部7に表示されている変更履歴を確認し、操作部8を操作することによりいずれかの変更履歴を選択することができる。ユーザによる変更履歴の選択があれば(ステップS202でYes)、CPU24は、その選択された変更履歴に対応する差分情報を差分情報記憶部28から読み出し(ステップS203)、その差分情報に基づいて変更前のラダープログラムを復元する(ステップS204)。   The user can check the change history displayed on the display unit 7 and select one of the change histories by operating the operation unit 8. If there is a change history selection by the user (Yes in step S202), the CPU 24 reads the difference information corresponding to the selected change history from the difference information storage unit 28 (step S203), and changes based on the difference information. The previous ladder program is restored (step S204).

ラダープログラムの復元は、例えば、ラダープログラム記憶部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 program storage unit 25a, the selected difference information, and the difference information stored in the difference information storage unit 28 after the selected difference information. The ladder program is returned to the state before the ladder program corresponding to the selected difference information is changed. At this time, as shown in FIG. 4 or 5, the difference information storage unit 28 is provided in a device other than the CPU unit 3, and the difference information is transmitted from the personal computer 1 to the CPU unit 3 and stored in the memory 12. If the difference information is stored, the difference information stored in the memory 12 may be read into the personal computer 1 and the ladder program may be restored based on the difference information.

ただし、上記の様な構成に限らず、作成時のラダープログラムを差分情報記憶部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 information storage unit 28 or other memory, the ladder program at the time of creation, the selected difference information, and the selection thereof By generating a ladder program in a state before the change of the ladder program corresponding to the selected difference information is performed based on the difference information stored in the difference information storage unit 28 prior to the difference information The ladder program may be restored.

本実施の形態では、ラダープログラムが変更された場合には、変更前と変更後の差分情報が差分情報記憶部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 information storage unit 28. Therefore, if necessary, the change history displayed on the display unit 7 of the personal computer 1 is selected by operating the operation unit 8, and the difference information corresponding to the selected change history is read from the difference information storage unit 28. The ladder program before the change can be reliably restored.

また、変更されたラダープログラム全体ではなく、変更前と変更後の差分情報のみを差分情報記憶部28に記憶し、その差分情報に基づいて変更前のラダープログラムを復元することができるので、少ないメモリ容量で変更前のラダープログラムを復元することができる。   Further, only the difference information before and after the change is stored in the difference information storage unit 28 instead of the entire changed ladder program, and the ladder program before the change can be restored based on the difference information. The ladder program before the change can be restored with the memory capacity.

図4のように、パーソナルコンピュータ1に差分情報記憶部28が備えられた構成の場合には、パーソナルコンピュータ1において差分情報を記憶し、その差分情報に基づいて、パーソナルコンピュータ1において変更前のラダープログラムを復元することができる。この場合、パーソナルコンピュータ1をPLC2などの他の装置に接続することなく、パーソナルコンピュータ1において、差分情報を読み出して変更前のラダープログラムを復元することができる。   As shown in FIG. 4, when the personal computer 1 includes the difference information storage unit 28, the difference information is stored in the personal computer 1, and the ladder before change is stored in the personal computer 1 based on the difference information. The program can be restored. In this case, the personal computer 1 can read the difference information and restore the ladder program before the change in the personal computer 1 without connecting the personal computer 1 to another device such as the PLC 2.

図5のように、複数のパーソナルコンピュータ1からアクセス可能な履歴管理装置29に差分情報記憶部28が備えられた構成の場合には、履歴管理装置29において差分情報を記憶し、その差分情報に基づいて、パーソナルコンピュータ1において変更前のラダープログラムを復元することができる。複数のユーザが、各自のパーソナルコンピュータ1を用いてラダープログラムの編集を行うような場合には、各ユーザによるラダープログラムの変更に応じて、その差分情報を履歴管理装置29に記憶させ、必要に応じて、各ユーザが差分情報を読み出して変更前のラダープログラムを復元することができる。この場合、いずれかのユーザがラダープログラムを編集するためにチェックアウトを行っている間は、他のユーザがそのラダープログラムに対してチェックアウトを行うことができないようになっていることが好ましい。   As shown in FIG. 5, in the case where the history management device 29 accessible from a plurality of personal computers 1 is provided with the difference information storage unit 28, the history management device 29 stores the difference information, and the difference information is stored in the difference information. Based on this, it is possible to restore the ladder program before the change in the personal computer 1. When a plurality of users edit a ladder program using their personal computers 1, the difference information is stored in the history management device 29 according to the change of the ladder program by each user, and necessary. In response, each user can read the difference information and restore the ladder program before the change. In this case, while one of the users is checking out to edit the ladder program, it is preferable that no other user can check out the ladder program.

図6のように、PLC2のCPUユニット3に差分情報記憶部28が備えられた構成の場合には、CPUユニット3を共有装置として用いることができるので、図5のように、差分情報を記憶しておくための差分情報記憶装置29をPLC2と別に設ける必要がなく、システムの低コスト化を図ることができる。   As shown in FIG. 6, when the CPU 2 of the PLC 2 is provided with the difference information storage unit 28, the CPU unit 3 can be used as a shared device, so that the difference information is stored as shown in FIG. Therefore, it is not necessary to provide the difference information storage device 29 separately from the PLC 2, and the cost of the system can be reduced.

上記実施の形態では、プログラム編集装置がノートタイプのパーソナルコンピュータ1により構成される場合について説明したが、プログラム編集装置は、ノートタイプのパーソナルコンピュータに限らず、例えば、デスクトップタイプのパーソナルコンピュータであってもよいし、PDA(Personal Digital Assistance)などの他の情報端末装置であってもよい。   In the above-described embodiment, the case where the program editing apparatus is configured by the notebook type personal computer 1 has been described. However, the program editing apparatus is not limited to a notebook type personal computer, and may be, for example, a desktop type personal computer. Or other information terminal devices, such as PDA (Personal Digital Assistance), may be sufficient.

また、プログラム編集装置は、パーソナルコンピュータ1などの汎用の情報端末装置に限らず、ユーザプログラムの編集を行うための専用の装置であってもよい。   Further, the program editing device is not limited to a general-purpose information terminal device such as the personal computer 1 but may be a dedicated device for editing a user program.

また、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 PLC 2 is not limited to the ladder program as long as it is a user program created by the user, and may be another program. For example, a program for controlling the PLC 2 is created in a programming language such as SFC (Sequential Function Chart), FBD (Function Block Diagram), LD (Ladder Diagram), IL (Instruction List), or ST (Struction Text). May be.

本発明は、以上の実施の形態の内容に限定されるものではなく、請求項記載の範囲内において種々の変更が可能である。   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.

本発明の実施の形態によるプログラム変更履歴管理システムの一構成例を示す概念図である。It is a conceptual diagram which shows the example of 1 structure of the program change log | history management system by embodiment of this invention. ラダープログラムの作成時にパーソナルコンピュータの表示部に表示されるラダー図の一例を示す図である。It is a figure which shows an example of the ladder figure displayed on the display part of a personal computer at the time of creation of a ladder program. 図1のプログラム変更履歴管理システムの電気的構成の概要を示すブロック図である。It is a block diagram which shows the outline | summary of the electrical structure of the program change log | history management system of FIG. 図1のパーソナルコンピュータ及びCPUユニットの電気的構成の詳細を示すブロック図である。FIG. 2 is a block diagram illustrating details of an electrical configuration of a personal computer and a CPU unit in FIG. 1. 図4に示すパーソナルコンピュータ及びCPUユニットの電気的構成の第1変形例を示すブロック図である。FIG. 6 is a block diagram showing a first modification of the electrical configuration of the personal computer and CPU unit shown in FIG. 4. 図4に示すパーソナルコンピュータ及びCPUユニットの電気的構成の第2変形例を示すブロック図である。It is a block diagram which shows the 2nd modification of the electrical constitutions of the personal computer and CPU unit shown in FIG. ラダープログラムの編集を行う際のCPUによる制御の流れを示すフローチャートである。It is a flowchart which shows the flow of control by CPU at the time of editing a ladder program. 差分情報記憶部に記憶されている差分情報に基づいてラダープログラムを復元する際のCPUによる制御の流れを示すフローチャートである。It is a flowchart which shows the flow of control by CPU at the time of decompress | restoring a ladder program based on the difference information memorize | stored in the difference information storage part.

符号の説明Explanation of symbols

1 パーソナルコンピュータ
2 PLC(プログラマブル・ロジック・コントローラ)
7 表示部
8 操作部
25a ラダープログラム記憶部
28 差分情報記憶部
29 履歴管理装置
1 Personal Computer 2 PLC (Programmable Logic Controller)
7 Display unit 8 Operation unit 25a Ladder program storage unit 28 Difference information storage unit 29 History management device

Claims (6)

PLCを制御するためのユーザプログラムを記憶するプログラム記憶手段と、
上記プログラム記憶手段に記憶されているユーザプログラムが変更された場合に、変更前と変更後の差分情報を記憶する差分情報記憶手段と、
上記差分情報記憶手段に記憶されている差分情報に対応する変更履歴を表示する変更履歴表示手段と、
上記変更履歴表示手段により表示された変更履歴を選択するための変更履歴選択手段と、
上記変更履歴選択手段により選択された変更履歴に対応する差分情報を上記差分情報記憶手段から読み出して、変更前のユーザプログラムを復元するプログラム復元手段とを備えたことを特徴とするプログラム変更履歴管理システム。
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.
上記共有装置が、上記PLCであることを特徴とする請求項3に記載のプログラム履歴管理システム。   4. The program history management system according to claim 3, wherein the shared device is the PLC. PLCを制御するためのユーザプログラムを編集するためのプログラム編集装置において、
ユーザプログラムが変更された場合に、変更前と変更後の差分情報に対応する変更履歴を表示する変更履歴表示手段と、
上記変更履歴表示手段により表示された変更履歴を選択するための変更履歴選択手段と、
上記変更履歴選択手段により選択された変更履歴に対応する差分情報を読み出して、変更前のユーザプログラムを復元するプログラム復元手段とを備えたことを特徴とするプログラム編集装置。
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.
PLCを制御するためのユーザプログラムを編集するためのプログラム編集装置のためのコンピュータプログラムにおいて、
ユーザプログラムが変更された場合に、変更前と変更後の差分情報に対応する変更履歴を表示する変更履歴表示手段と、
上記変更履歴表示手段により表示された変更履歴を選択するための変更履歴選択手段と、
上記変更履歴選択手段により選択された変更履歴に対応する差分情報を読み出して、変更前のユーザプログラムを復元するプログラム復元手段として機能させることを特徴とするプログラム。
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.
JP2005150357A 2005-05-24 2005-05-24 Management system of program change history, program editing device applied to the system, and program Withdrawn JP2006330867A (en)

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)

* Cited by examiner, † Cited by third party
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

Cited By (17)

* Cited by examiner, † Cited by third party
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