JP2004021446A - Programmable controller system and programmable controller - Google Patents

Programmable controller system and programmable controller Download PDF

Info

Publication number
JP2004021446A
JP2004021446A JP2002173648A JP2002173648A JP2004021446A JP 2004021446 A JP2004021446 A JP 2004021446A JP 2002173648 A JP2002173648 A JP 2002173648A JP 2002173648 A JP2002173648 A JP 2002173648A JP 2004021446 A JP2004021446 A JP 2004021446A
Authority
JP
Japan
Prior art keywords
program
run
programmable controller
change
write
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2002173648A
Other languages
Japanese (ja)
Inventor
Kaori Sakagami
坂上 香織
Nobuyuki Yokoe
横江 信幸
Masato Nonomura
野々村 真人
Shigeki Yamada
山田 茂樹
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2002173648A priority Critical patent/JP2004021446A/en
Publication of JP2004021446A publication Critical patent/JP2004021446A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a programmable controller system capable of returning a program after writing processing in the under run condition to a correct pre-change program. <P>SOLUTION: In this programmable controller system equipped with a PC1 and a PC peripheral device 2 for transmitting to the PC1 program data for changing a program of the PC1 and various instructions for executing the program data, the PC1 is equipped with a backup memory 5c for storing pre-change program data on a program before writing processing in the under run condition, a program collation processing execution part 13 for collating a program on the writing processing in the under run condition from the PC peripheral device 2 instructing Undo processing with a program in a program memory 5a, and an Undo processing execution part 14 for rewriting the program after writing processing in the under run condition into the program before run-time writing processing by using the pre-change program data in the backup memory 5c when a coincident collation result is acquired. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
この発明はプログラマブルコントローラ(以下、PCという)への制御プログラムの書込みを行うプログラマブルコントローラシステムに関し、特に、PCに対して間違ったプログラムを書込んでしまったなどの場合に、PCのプログラムをRUN中書込み前のプログラムに戻すことができ、また、PCとプログラマブルコントローラ周辺装置(以下、PC周辺装置という)のプログラム照合を行って、プログラムを元に戻す処理を確実に実行することができるプログラマブルコントローラシステムおよびプログラマブルコントローラに関するものである。
【0002】
【従来の技術】
従来のPCとPC周辺装置を含むプログラマブルコントローラシステムにおけるRUN中書込みについて以下に説明する。
【0003】
ここで、RUN中書込みとは、PC周辺装置よりPCの実行状態を停止することなく、PC内で実行されているシーケンスプログラムの内容を変更する処理のことをいう。例えば、オペレータがシステムを停止しないでシーケンスプログラムを変更したい場合に使用される処理である。またPC周辺装置とは、PC内のシーケンスプログラムの変更やPC内の情報をモニタするための装置のことをいう。
【0004】
図6は、従来のRUN中書込みを行うプログラマブルコントローラシステムの構成を示すブロック図である。図6において、21はPCを、22はPC周辺装置を、23はオペレータにPC周辺装置22の情報を表示するためのCRT(Cathode Ray Tube)や液晶ディスプレイなどの表示装置を、そして24はオペレータからの指示をPC周辺装置22に入力するためのキーボードなどの入力装置をそれぞれ示している。
【0005】
PC21は、メモリ25と、RUN中書込み処理実行部26aと、プログラム照合処理を実施するためのプログラム照合処理実行部26bと、PC周辺装置22とデータの授受を行うための周辺I/F部27とを備えている。メモリ25は、実行するシーケンスプログラムを格納するプログラムメモリ25aと、RUN中書込み時に一時的にRUN中書込みに関するデータを格納するRUN中書込み用ワークエリア25bと、プログラム照合時に一時的に照合するプログラムを格納する照合用ワークエリア25cとを有している。
【0006】
PC周辺装置22は、PC21とデータの授受を行うためのPCI/F部28と、プログラム編集部29と、表示装置23にPC周辺装置22の情報を表示するための表示処理部30と、キーボードなどの入力装置24によって入力された入力キーを判別するキー入力処理部31とを備えている。プログラム編集部29には、RUN中書込み先頭ステップ番号29a、RUN中書込み変更ステップ数29b、RUN中書込みプログラム29c、RUN中書込み前変更ステップ数29d、RUN中書込み前プログラム29eおよびプログラムメモリ29fが格納される。
【0007】
つぎに、図6に示される従来のプログラマブルコントローラシステムにおけるRUN中書込み処理を図7のフローチャートを参照しながら説明する。
【0008】
まず、入力装置24よりRUN中書込みの実行指示に対する処理が入力されると、PC周辺装置22のキー入力処理部31において、入力装置24で入力されたキーがRUN中書込み指示であるか否かの判別処理が行われる(ステップS101)。入力されたキーがRUN中書込みであると判断された場合(ステップS101でYESの場合)には、プログラム編集部29のRUN中書込み先頭ステップ番号29a、RUN中書込み変更ステップ数29b、RUN中書込みプログラム29c、RUN中書込み前変更ステップ数29d、RUN中書込み前プログラム29eを含むRUN中書込み指示が、PCI/F部28および周辺I/F部27を介して、PC21へ送信される(ステップS102)。
【0009】
PC21は、RUN中書込み指示をPC周辺装置22から受信すると(ステップS103)、受信したRUN中書込み指示中のRUN中書込み先頭ステップ番号29a、RUN中書込み変更ステップ数29bおよびRUN中書込みプログラム29cをメモリ25のRUN中書込み用ワークエリア25bへ格納し、RUN中書込み前のプログラム(すなわち、変更前のプログラム)29eをメモリ25の照合用ワークエリア25cへ格納する。また、RUN中書込み先頭ステップ番号29aとRUN中書込み前変更ステップ数29dとで示される範囲のプログラムをプログラムメモリ25aから抽出して、この抽出したプログラムを照合用ワークエリア25cに格納する。
【0010】
RUN中書込み実施前のチェック処理として、PC21のプログラム照合処理実行部26bはメモリ25の照合用ワークエリア25cに格納されたプログラムを基に、プログラム照合処理を実施する(ステップS104)。このプログラム照合処理では、照合用ワークエリア25cに格納された2つのプログラム、すなわち、プログラムメモリ25a中のRUN中書込み先頭ステップ番号29aとRUN中書込み前変更ステップ数29dとで示される範囲の変更前のプログラムと、PC周辺装置22から送信されたRUN中書込み前プログラム29eとを照合し、両者が一致するプログラムであることを確認する。これにより、PC21とPC周辺装置22とで、少なくとも変更前のプログラムに関して、齟齬をきたすことがないことが確かめられる。
【0011】
プログラム照合処理を実施後、RUN中書込み用ワークエリア25bに格納されたRUN中書込み内容を基に、RUN中書込み処理実行部26aはRUN中書込み処理を実施する(ステップS105)。このRUN中書込み処理では、実際にPC21内で実行されているプログラムが格納されているプログラムメモリ25a中のRUN中書込み先頭ステップ番号29aとRUN中書込み変更ステップ数29bとで示される範囲のプログラムをRUN中書込みプログラム29cと入れ替える処理が行われる。RUN中書込み処理を実施後、RUN中書込み処理が完了したことをPC周辺装置22に通知するため、PC21は、周辺I/F部27およびPCI/F部28を介して、RUN中書込み完了信号をPC周辺装置22へ送信する(ステップS106)。
【0012】
PC周辺装置22は、PC21からのRUN中書込み完了信号を受信すると(ステップS107)、RUN中書込み後プログラムの表示処理を実施する(ステップS108)。このRUN中書込み後プログラムの表示処理では、プログラムメモリ29f内のRUN中書込み先頭ステップ番号29aとRUN中書込み変更ステップ数29bとで示される範囲のプログラムと、RUN中書込みプログラム29cとを入れ替え、RUN中書込みプログラム29cが反映された新たなプログラムメモリ29fを、表示処理部30によって表示処理を実施し、このRUN中書込み後のプログラムメモリ29fの内容を表示装置23に表示する。
【0013】
RUN中書込み後プログラムの表示処理を実施した後に、PC周辺装置22は、RUN中書込みが完了したことをオペレータに通知するため、表示処理部30においてメッセージ表示処理を実施し、表示装置23にRUN中書込みが完了した旨のメッセージを表示し(ステップS109)、その後処理を終了する。
【0014】
一方、上述したステップS101で、RUN中書込み指示がRUN中書込み指示以外であると判断された場合(ステップS101でNOの場合)には、無処理でRUN中書込み指示に対応する処理を終了する。
【0015】
【発明が解決しようとする課題】
上述のような従来のPC周辺装置22において、例えばオペレータが操作を誤って間違ったプログラムのRUN中書込みを実施してしまったとする。この場合に、PC21を正常動作させるための処理として、RUN中書込みの実施前、すなわち変更前のプログラムに戻すこと(以下、Undoという)が必要である。しかし、RUN中書込みの実施前のプログラムに戻す際に、元のプログラムとして格納(記憶)されているものが、何らかの原因によって誤ったプログラムに変わってしまっている場合がある。この場合には、実際にUndo処理を実施しても、PC21のプログラムは、正しい元のプログラムへ戻らなくなってしまうという問題点があった。
【0016】
また、本来、Undo機能を実行してはならない他の不当なPC周辺装置22によってUndo機能が実行された場合に、従来のプログラマブルコントローラシステムではそれを防止することができず、PC21のプログラムを正しい元のプログラム、すなわち変更前のプログラムへ戻せなくなるという問題点もあった。
【0017】
この発明は上記に鑑みてなされたもので、RUN中書込み後のPCのプログラムを正しい変更前のプログラムに戻すことを可能とし、また、Undo機能を実行するPC周辺装置の正当性の判別を行って確実なUndo機能を実現することができるプログラマブルコントローラシステムおよびプログラマブルコントローラを得ることを目的とする。
【0018】
【課題を解決するための手段】
上記目的を達成するため、この発明にかかるプログラマブルコントローラシステムは、プログラマブルコントローラのプログラムを変更するための情報を含むプログラムデータとこのプログラムデータを実行させるための各種指示を前記プログラマブルコントローラに対して送信するプログラマブルコントローラ周辺装置と、前記プログラマブルコントローラ周辺装置からの指示と前記プログラムデータにしたがってプログラムメモリに格納されるプログラムのRUN中書込み処理を実行して前記プログラムの変更を行うプログラマブルコントローラとを備えるプログラマブルコントローラシステムにおいて、前記プログラマブルコントローラは、前記RUN中書込み処理前に前記プログラムメモリに格納されていた変更前のプログラムに関する変更前プログラムデータを格納するバックアップ用格納手段と、Undo処理を指示したプログラマブルコントローラ周辺装置から受信した前記プログラムデータに含まれる前記RUN中書込み処理についてのプログラムと、前記プログラムメモリに格納される前記RUN中書込み処理後のプログラムとが一致するかを照合するプログラム照合処理実行手段と、前記プログラム照合処理実行手段による照合結果が一致する場合には、前記RUN中書込み処理後のプログラムを、前記バックアップ用格納手段に格納されている変更前プログラムデータを用いて前記RUN中書込み処理前のプログラムに書換えるUndo処理実行手段と、を備えることを特徴とする。
【0019】
この発明によれば、バックアップ用格納手段によって、RUN中書込み処理前にプログラムメモリに格納されていた変更前のプログラムに関する変更前プログラムデータが格納される。また、プログラム照合処理実行手段によって、Undo処理を指示したプログラマブルコントローラ周辺装置から受信したプログラムデータに含まれるRUN中書込み処理についてのプログラムと、プログラムメモリに格納されるRUN中書込み処理後のプログラムとが一致するかが照合される。そして、Undo処理実行手段によって、プログラム照合処理実行手段での照合結果が一致する場合に、RUN中書込み処理後のプログラムが、バックアップ用格納手段に格納されている変更前プログラムデータを用いてRUN中書込み処理前のプログラムに書換えられる。
【0020】
つぎの発明にかかるプログラマブルコントローラシステムは、上記の発明において、前記Undo処理実行手段は、前記照合結果が一致しない場合には、前記RUN中書込み処理後のプログラムに対して、前記RUN中書込み処理前のプログラムへの書換えを行わないことを特徴とする。
【0021】
この発明によれば、Undo処理実行手段は、照合結果が一致しない場合には、RUN中書込み処理後のプログラムに対して、RUN中書込み処理前のプログラムへの書換えを行わないようにしている。
【0022】
つぎの発明にかかるプログラマブルコントローラシステムは、上記の発明において、前記バックアップ用格納手段は、複数のRUN中書込み処理に対して、該RUN中書込み処理前の前記プログラムメモリのプログラムに関する変更前プログラムデータを複数格納できることを特徴とする。
【0023】
この発明によれば、バックアップ用格納手段は、複数のRUN中書込み処理に対して、該RUN中書込み処理前のプログラムメモリのプログラムに関する変更前プログラムデータを複数格納できるようにしている。
【0024】
つぎの発明にかかるプログラマブルコントローラは、プログラマブルコントローラ周辺装置からの指示とプログラムを変更するための情報を含むプログラムデータにしたがって、プログラムメモリに格納されるプログラムのRUN中書込み処理を実行して前記プログラムの変更を行うプログラマブルコントローラにおいて、前記RUN中書込み処理前に前記プログラムメモリに格納されていた変更前のプログラムに関する変更前プログラムデータを格納するバックアップ用格納手段と、Undo処理を指示したプログラマブルコントローラ周辺装置から受信した前記プログラムデータに含まれる前記RUN中書込み処理についてのプログラムと、前記プログラムメモリに格納される前記RUN中書込み処理後のプログラムとが一致するかを照合するプログラム照合処理実行手段と、前記プログラム照合処理実行手段による照合結果が一致する場合には、前記RUN中書込み処理後のプログラムを、前記バックアップ用格納手段に格納されている変更前プログラムデータを用いて前記RUN中書込み処理前のプログラムに書換えるUndo処理実行手段と、を備えることを特徴とする。
【0025】
この発明によれば、バックアップ用格納手段によって、RUN中書込み処理前にプログラムメモリに格納されていた変更前のプログラムに関する変更前プログラムデータが格納される。また、プログラム照合処理実行手段によって、Undo処理を指示したプログラマブルコントローラ周辺装置から受信したプログラムデータに含まれるRUN中書込み処理についてのプログラムと、プログラムメモリに格納されるRUN中書込み処理後のプログラムとが一致するかが照合される。そして、Undo処理実行手段によって、プログラム照合処理実行手段での照合結果が一致する場合には、RUN中書込み処理後のプログラムが、バックアップ用格納手段に格納されている変更前プログラムデータを用いてRUN中書込み処理前のプログラムに書換えられる。
【0026】
つぎの発明にかかるプログラマブルコントローラは、上記の発明において、前記Undo処理実行手段は、前記照合結果が一致しない場合には、前記RUN中書込み処理後のプログラムに対して、前記RUN中書込み処理前のプログラムへの書換えを行わないことを特徴とする。
【0027】
この発明によれば、Undo処理実行手段は、照合結果が一致しない場合には、RUN中書込み処理後のプログラムに対して、RUN中書込み処理前のプログラムへの書換えを行わないようにしている。
【0028】
つぎの発明にかかるプログラマブルコントローラは、上記の発明において、前記バックアップ用格納手段は、複数のRUN中書込み処理に対して、該RUN中書込み処理前の前記プログラムメモリのプログラムに関する変更前プログラムデータを複数格納できることを特徴とする。
【0029】
この発明によれば、バックアップ用格納手段は、複数のRUN中書込み処理に対して、該RUN中書込み処理前のプログラムメモリのプログラムに関する変更前プログラムデータを複数格納できるようにしている。
【0030】
【発明の実施の形態】
以下に、添付図面を参照して、この発明にかかるプログラマブルコントローラシステムおよびプログラマブルコントローラの好適な実施の形態について詳細に説明する。
【0031】
実施の形態1.
図1はこの発明にかかるプログラマブルコントローラシステムの構成を示すブロック図である。この図1において、1はPCを、2,2’はPC周辺装置を、3はオペレータにPC周辺装置2の情報を表示するためのCRTや液晶ディスプレイなどの表示装置を、そして4はPC周辺装置2に対してオペレータからの指示を入力するためのキーボードなどの入力装置を、それぞれ示している。
【0032】
PC1は、メモリ5と、PC周辺装置2,2’との間でデータの授受を行うための周辺I/F部7と、RUN中書込み処理実行部12と、プログラム照合処理実行部13と、Undo処理実行部14とを備えている。このPC1のメモリ5は、実行するシーケンスプログラムを格納するプログラムメモリ5aと、RUN中書込み時にRUN中書込みに関するデータを一時的に格納するRUN中書込み用ワークエリア5bと、RUN中書込みによって変更される前のいわゆる変更前プログラムを格納するためのバックアップメモリ5cと、照合時に照合に必要なデータを一時的に格納する照合用ワークエリア5dとを含むように構成されている。
【0033】
PC周辺装置2は、PC1とデータの授受を行うためのPCI/F部8と、プログラム編集部9と、表示処理部10と、入力装置4によって入力された入力キーを判別するキー入力処理部11とを備えている。このPC周辺装置2のプログラム編集部9には、RUN中書込み先頭ステップ番号9aと、RUN中書込み変更ステップ数9bと、RUN中書込みプログラム9cと、RUN中書込み前変更ステップ数9dと、RUN中書込み前プログラム9eと、プログラムメモリ9fとが含まれている。
【0034】
また、PC周辺装置2’は、上述したPC周辺装置2と同じ構成を有しており、8’はPC1とデータの授受を行うためのPCI/F部を、9’はプログラム編集部を、そして9c’はPC周辺装置2内のRUN中書込みプログラム9cとは異なるプログラム編集部9’のRUN中書込みプログラムをそれぞれ示している。
【0035】
図2は、RUN中書込みが行われるPC1のメモリ5内に保持されるバックアップメモリ5cのメモリ構成を模式的に示している。バックアップメモリ5c内には、この図2に示されるバックアップ情報テーブル300が格納されている。バックアップ情報テーブル300は、RUN中書込みの先頭を示す先頭ステップ番号301と、RUN中書込みによるプログラムの変更ステップ数302と、そしてRUN中書込み実施前の変更前プログラム(内容)303を格納することができるように構成されている。
【0036】
つぎに、上述したような構成を有するプログラマブルコントローラシステムにおけるRUN中書込みの処理手順について、図3のフローチャートを参照しながら説明する。
【0037】
まず、PC周辺装置2は、キー入力処理部11において、オペレータによって入力装置4で入力されたキーがRUN中書込み指示であるか否かの判別処理を行う(ステップS1)。キー入力処理部11がRUN中書込み指示であると判断された場合(ステップS1でYESの場合)には、そのRUN中書込み指示をPC1へ送信する(ステップS2)。このRUN中書込み指示を送信する処理では、プログラム編集部9は、RUN中書込み先頭ステップ番号9a、RUN中書込み変更ステップ数9b、RUN中書込みプログラム9c、RUN中書込み前変更ステップ数9dおよびRUN中書込み前プログラム9eを含むRUN中書込み指示を作成し、PCI/F部8および周辺I/F部7を介して、PC1へ送信する。
【0038】
PC1は、PC周辺装置2からRUN中書込み指示を受信すると(ステップS3)、その指示に含まれているRUN中書込み先頭ステップ番号9a、RUN中書込み変更ステップ数9bおよびRUN中書込みプログラム9cをメモリ5内のRUN中書込み用ワークエリア5bへ格納し、RUN中書込み前プログラム9eを照合用ワークエリア5dに格納する。また、プログラムメモリ5a内に格納されているプログラムについてRUN中書込み先頭ステップ番号9aとRUN中書込み前変更ステップ数9dとで示される範囲のプログラムを抽出し、この抽出したプログラムを照合用ワークエリア5dに格納する。
【0039】
PC1のプログラム照合処理実行部13は、RUN中書込みの実施前のチェック処理として照合用ワークエリア5dに格納されたプログラムを基に、現在プログラムメモリ5a内に格納されているプログラムに関してプログラム照合処理を実施する(ステップS4)。すなわち、このプログラム照合処理では、照合用ワークエリア5dに格納されたプログラムメモリ5a中から抽出したRUN中書込み先頭ステップ番号9aとRUN中書込み前変更ステップ数9dとで示される範囲のプログラムと、同じく照合用ワークエリア5dに格納され、PC周辺装置2から受信したRUN中書込み前プログラム9eとが一致するかを確認する。
【0040】
プログラム照合処理の後、バックアップメモリ5c内のバックアップ情報テーブル300の先頭ステップ番号301にRUN中書込み先頭ステップ番号9aを、変更ステップ数302にRUN中書込み変更ステップ数9bを、そして変更前プログラム303にRUN中書込み先頭ステップ番号9aとRUN中書込み変更ステップ数9bとで示される範囲のプログラムメモリ5aのプログラムを、それぞれ格納して、変更前のプログラムのバックアップ処理を行う(ステップS5)。
【0041】
プログラムのバックアップ処理の後、RUN中書込み用ワークエリア5bに格納されたRUN中書込みの処理内容を基に、RUN中書込み処理実行部12はRUN中書込み処理、すなわちプログラムを変更する処理を実施する(ステップS6)。
【0042】
このRUN中書込み処理の後に、PC1は、RUN中書込み処理が完了したことをPC周辺装置2に知らせるために、RUN中書込み完了信号を、周辺I/F部7およびPCI/F部8を介して、PC周辺装置2へ送信する(ステップS7)。
【0043】
PC周辺装置2は、PC1からRUN中書込み完了信号を受信すると(ステップS8)、プログラム編集部9は、プログラムメモリ9fのRUN中書込み先頭ステップ番号9aとRUN中書込み変更ステップ数9bが示す範囲のプログラムと、RUN中書込みプログラム9cとを入れ替え、RUN中書込みプログラム9cが反映された新たなプログラムメモリ9fを作成する。そして、表示処理部10にはこの変更されたプログラムの表示処理を実施し、表示装置3にRUN中書込み後のプログラムメモリ9fを表示する(ステップS9)。
【0044】
RUN中書込み後のプログラムメモリ9fの表示処理の後、表示処理部10は、RUN中書込みが完了したことをオペレータに知らせるために、メッセージの表示処理を実施して、表示装置3にRUN中書込みが完了した旨のメッセージを表示させて(ステップS10)、RUN中書込みが終了する。
【0045】
一方、上述したステップS1で、キー入力処理部11がRUN中書込み指示以外の指示であると判断した場合(ステップS1でNOの場合)には、RUN中書込み指示に対応する処理は行われずに、処理はそのまま終了する。
【0046】
つぎに、上述したような構成を有するプログラマブルコントローラシステムにおけるUndoの処理手順について、図4のフローチャートを参照しながら説明する。なお、ここでUndo機能とは、上述した図3のRUN中書込み(すなわち、プログラムの変更)が少なくとも1度実施された後に、RUN中書込み前(すなわち、変更前)のプログラムへ戻す処理のことをいう。
【0047】
オペレータは、Undo機能を実行したい場合には、入力装置4からUndo機能を実行する指示を入力する。PC周辺装置2のキー入力処理部11は、入力装置4で入力されたキーがUndo実行指示であるか否かの判別処理を行う(ステップS21)。ここで、キー入力処理部11によって、入力されたキーがUndo実行指示以外の指示であると判断された場合(ステップS21でNOの場合)には、Undo機能の実行指示に対応する処理は行われずに、そのまま処理は終了する。一方、キー入力処理部11によって、入力されたキーがUndo実行指示であると判断された場合(ステップS21でYESの場合)には、プログラム編集部9はプログラム照合指示をPC1に対して送信する(ステップS22)。すなわち、プログラム編集部9は、RUN中書込みプログラム9cを含むプログラム照合指示を、PCI/F部8および周辺I/F部7を介して、PC1へ送信する。
【0048】
PC1は、プログラム照合指示をPC周辺装置2から受信すると(ステップS23)、受信したプログラム照合指示に含まれているRUN中書込みプログラム9cを照合用ワークエリア5dに格納する。このとき、バックアップメモリ5cのバックアップ情報テーブル300に格納されている先頭ステップ番号301と変更ステップ数302とで示される範囲のプログラムメモリ5a内のプログラムも照合用ワークエリア5dに格納される。
【0049】
その後、プログラム照合処理実行部13によって、照合用ワークエリア5dに格納された2つのプログラムが一致するか否かのプログラム照合処理が実施される(ステップS24)。このプログラム照合処理は、PC周辺装置2,2’が、PC1に対してUndo指示を出す正当性を有するPC周辺装置2,2’であるか否かを確認することを目的とする。
【0050】
例えば、PC周辺装置2からPC1に対してRUN中書込みが実施された後、PC周辺装置2とは異なる別のPC周辺装置2’からPC1に対してUndo指示を送信する操作が実施された場合に、PC周辺装置2’のRUN中書込みプログラム9c’がPCI/F部8’および周辺I/F部7を介して、PC1の照合用ワークエリア5dへ格納される。また同時に、バックアップメモリ5cのバックアップ情報テーブル300に格納されているデータからPC1側の先頭ステップ番号301と変更ステップ数302とで示される範囲のプログラムメモリ5a中のプログラム、すなわち一旦RUN中書込みが実施された変更後のプログラムが抽出され、照合用ワークエリア5dへ格納される。そして、これら2つのプログラムが一致しているか否かについての照合が、プログラム照合処理実行部13によって行われる。
【0051】
この場合、このプログラムメモリ5aのプログラムと、PC周辺装置2’からのRUN中書込みプログラム9c’とが異なるプログラムであるので、このままUndo処理を実行すると、変更前のプログラムに戻すことができず、誤動作を引き起こす原因となる。何故ならば、PC1のプログラムをUndo処理によって正しい元の変更前プログラムに戻せるPC周辺装置2は、以前に当該PC1に対してRUN中書込みを実施して、PC1が現在動かしているプログラムを書き込んだPC周辺装置(またはそれと同じプログラムを格納しているPC周辺装置)2であるが、PC1が現在動かしているプログラムと異なるプログラムをRUN中書込みプログラム9c’として持っているPC周辺装置2’が、Undo処理を行っても正しい元の変更前プログラムに戻せるという保証は無いからである。そのために、この実施の形態1のようにUndo処理前にプログラム照合処理を実施することによって、このような誤動作を防ぐことができる。
【0052】
プログラム照合処理の後、PC1はプログラム照合処理の結果を、周辺I/F部7およびPCI/F部8を介して、PC周辺装置2へ送信する処理を実施する(ステップS25)。
【0053】
PC1からプログラム照合処理の結果を受信すると(ステップS26)、PC周辺装置2のプログラム編集部9は受信した照合結果が正常であるか否かの判別を行う照合結果チェック処理を実施する(ステップS27)。この照合結果チェック処理において照合結果が不一致で異常応答であると判断された場合(ステップS27でNOの場合)には、表示処理部10はメッセージの表示処理を行って、表示装置3にエラーメッセージを表示させて(ステップS35)、Undo機能の実行指示に対応する処理を終了する。一方、照合結果チェック処理において照合結果が一致し正常応答であると判断された場合(ステップS27でYESの場合)には、プログラム編集部9はPC1に対してUndo指示を送信する(ステップS28)。
【0054】
PC1は、PC周辺装置2からUndo指示を受信すると(ステップS29)、元のプログラムに戻すUndo処理を実施する(ステップS30)。すなわち、PC1のUndo処理実行部14は、バックアップ情報テーブル300に格納されているUndo範囲となる先頭ステップ番号301と変更ステップ数302とで示される範囲のプログラムメモリ5aのプログラムを削除し、この削除した部分を変更前プログラム303に置き換えることによって、Undo処理を実行する。
【0055】
その後、PC1は、Undo処理によって置き換えられた変更前プログラム303をPC周辺装置2に表示するために、およびUndo処理が完了したことをPC周辺装置2に通知するために、変更前プログラム303とUndo処理完了信号を、周辺I/F部7およびPCI/F部8を介して、PC周辺装置2へ送信する(ステップS31)。
【0056】
PC周辺装置2は、PC1から変更前プログラム303とUndo処理完了信号を受信すると(ステップS32)、Undo処理後のプログラム表示処理を実施する(ステップS33)。このプログラム表示処理では、プログラム編集部9によってプログラムメモリ9fのRUN中書込み先頭ステップ番号9aとRUN中書込み前変更ステップ数9dが示す範囲のプログラムと、変更前プログラム303とが入れ替えられ、表示処理部10によってこの変更前のプログラムの表示処理が実施され、そして表示装置3によってUndo実施後のプログラムメモリ9fが表示される。
【0057】
その後、PC周辺装置2は、オペレータにUndo処理が完了したことを通知するために、表示処理部10がUndo処理完了メッセージを表示する処理を実施し、表示装置3にUndo処理が完了した旨のメッセージが表示される(ステップS34)。その後、Undo機能の実行指示に対応する処理を終了する。
【0058】
この実施の形態1によれば、Undo処理の実行の際に、すなわち元の変更前プログラムに戻す際に、プログラムに誤りの無い、元の正しいプログラムに容易に戻すことができるという効果を有する。また、Undo処理の実行の際に、PC周辺装置から受信したRUN中書込み処理後のプログラムデータと、PCが格納しているRUN中書込み処理後のプログラムデータとを照合するようにしたので、Undo機能を実行してはならない他の不当なプログラマブルコントローラ周辺装置によるプログラムコントローラ内のプログラムの、変更前の元のプログラムとは異なるプログラムへの書き換えを防止することができるという効果を有する。
【0059】
実施の形態2.
図5は、RUN中書込みが行われるPC1のメモリ5内に保持されるバックアップメモリ5cのメモリ構成を模式的に示している。このバックアップメモリ5cのメモリ構成は、実施の形態1の図2に示したバックアップメモリ5cのメモリ構成と異なり、複数回のUndo処理を実行することができるように構成されている点を特徴とする。すなわち、複数回Undo機能対応用バックアップ情報テーブル500は、バックアップ情報テーブル数501と複数のバックアップ情報テーブル300〜300(nは2以上の自然数)とを含むように構成されている。バックアップ情報テーブル数501には、複数回Undo機能対応用バックアップ情報テーブル500に格納されているバックアップ情報テーブル300〜300の数が格納される。
【0060】
バックアップメモリ5c内のメモリ構成を図5のように、複数個のバックアップ情報テーブル300を保持可能な構成とすることによって、複数回のUndo機能を行なうことが可能となる。例えば、n=10であれば、10回前までUndo機能を実行することができる。
【0061】
ここで、この複数回Undo機能対応用バックアップ情報テーブル500へのバックアップ情報の格納方法について説明する。RUN中書込み処理実行部12は、RUN中書込みを実施するごとに、そのRUN中書込みに対応するバックアップ情報テーブル300を複数回Undo機能対応用バックアップ情報テーブル500内の最終位置に追加するとともに、バックアップ情報テーブル数501として現在の数に1を加算する。一方、Undo処理実行部14は、Undo機能を実施すると、複数回Undo機能対応用バックアップ情報テーブル500からバックアップ情報テーブル数501を取得し、その数値から最終位置に格納されているバックアップ情報テーブル300を取得し、そのバックアップ情報テーブル300に基づいて、実施の形態1の図4で説明したUndo機能を実施する。Undo処理実行部14は、正常にUndo機能が実施された場合には、複数回Undo機能対応用バックアップ情報テーブル500の最終位置に登録されているバックアップ情報テーブル300を削除し、バックアップ情報テーブル数501について現在の数から1を減算する。
【0062】
なお、RUN中書込みの実施がされ続け、Undo機能が実施されない状態が続き、バックアップ情報テーブル数501がすべて満たされてしまった状態で、RUN中書込みを実施する場合には、RUN中書込み処理実行部12は、最前位置すなわち最も古い位置に格納されているバックアップ情報テーブル300を削除し、バックアップ情報テーブル数501について現在の数から1を減算するとともに、削除された最前位置につぎの位置のバックアップ情報テーブル300を前詰めし、その結果空いた位置にそのつぎの位置のバックアップ情報テーブル300を前詰めし、・・・というバックアップ情報テーブル300の前詰め操作を行い、複数回Undo機能対応用バックアップ情報テーブル500の最終位置を空の状態とする。そして、RUN中書込み処理実行部12は、最終位置に最新のRUN中書込みの内容を登録する。
【0063】
上記処理によって、複数回Undo機能対応用バックアップ情報テーブル500に保持されているバックアップ情報テーブル数分のUndo機能を実施することが可能となる。
【0064】
この実施の形態2によれば、複数のRUN中書込み処理に対して、該RUN中書込み処理前にプログラムメモリのプログラムに関するプログラムデータを複数格納できるように構成したので、バックアップメモリに格納されるプログラムデータの数だけ、Undo処理を過去に遡って実施することができるという効果を有する。
【0065】
【発明の効果】
以上説明したように、この発明によれば、プログラマブルコントローラは、RUN中書込み処理前にプログラムメモリに格納されていた変更前のプログラムに関する変更前プログラムデータを格納するバックアップ用格納手段と、Undo処理を指示したプログラマブルコントローラ周辺装置から受信したプログラムデータに含まれるRUN中書込み処理についてのプログラムと、プログラムメモリに格納されるRUN中書込み処理後のプログラムとが一致するかを照合するプログラム照合処理実行手段と、プログラム照合処理実行手段による照合結果が一致する場合には、RUN中書込み処理後のプログラムを、バックアップ用格納手段に格納されている変更前プログラムデータを用いてRUN中書込み処理前のプログラムに書換えるUndo処理実行手段とを備えるように構成したので、Undo処理の実行の際に、すなわち元の変更前プログラムに戻す際に、プログラムに誤りの無い、元の正しいプログラムに容易に戻すことができるという効果を有する。
【0066】
つぎの発明によれば、Undo処理実行手段は、照合結果が一致しない場合には、RUN中書込み処理後のプログラムに対して、RUN中書込み処理前のプログラムへの書換えを行わないようにしたので、Undo処理の実行の際に、Undo機能を実行してはならない他の不当なプログラマブルコントローラ周辺装置によるプログラムコントローラ内のプログラムの、変更前の元のプログラムとは異なるプログラムへの書き換えを防止することができるという効果を有する。
【0067】
つぎの発明によれば、バックアップ用格納手段は、複数のRUN中書込み処理に対して、該RUN中書込み処理前にプログラムメモリのプログラムに関する変更前プログラムデータを複数格納できるように構成したので、バックアップ用格納手段に格納されるプログラムデータの数だけ、Undo処理を過去に遡って実施することができるという効果を有する。
【0068】
つぎの発明によれば、RUN中書込み処理前にプログラムメモリに格納されていた変更前のプログラムに関する変更前プログラムデータを格納するバックアップ用格納手段と、Undo処理を指示したプログラマブルコントローラ周辺装置から受信したプログラムデータに含まれるRUN中書込み処理についてのプログラムと、プログラムメモリに格納されるRUN中書込み処理後のプログラムとが一致するかを照合するプログラム照合処理実行手段と、プログラム照合処理実行手段による照合結果が一致する場合には、RUN中書込み処理後のプログラムを、バックアップ用格納手段に格納されている変更前プログラムデータを用いてRUN中書込み処理前のプログラムに書換えるUndo処理実行手段とを備えるように構成したので、Undo処理の実行の際に、すなわち元の変更前プログラムに戻す際に、プログラムに誤りの無い、元の正しいプログラムに容易に戻すことができるという効果を有する。
【0069】
つぎの発明によれば、Undo処理実行手段は、照合結果が一致しない場合には、RUN中書込み処理後のプログラムに対して、RUN中書込み処理前のプログラムへの書換えを行わないようにしたので、Undo処理の実行の際に、Undo機能を実行してはならない他の不当なプログラマブルコントローラ周辺装置によるプログラムコントローラ内のプログラムの、変更前の元のプログラムとは異なるプログラムへの書き換えを防止することができるという効果を有する。
【0070】
つぎの発明によれば、バックアップ用格納手段は、複数のRUN中書込み処理に対して、該RUN中書込み処理前のプログラムメモリのプログラムに関する変更前プログラムデータを複数格納できるように構成したので、バックアップ用格納手段に格納されるプログラムデータの数だけ、Undo処理を過去に遡って実施することができるという効果を有する。
【図面の簡単な説明】
【図1】この発明のプログラマブルコントローラシステムの構成を示すブロック図である。
【図2】プログラマブルコントローラのメモリ内に保持されるバックアップ用メモリの構成を模式的に示す図である。
【図3】プログラマブルコントローラシステムにおけるRUN中書込みの処理手順を示すフローチャートである。
【図4】プログラマブルコントローラシステムにおけるUndoの処理手順をフローチャートである。
【図5】プログラマブルコントローラのメモリ内に保持されるバックアップメモリの構成を模式的に示す図である。
【図6】プログラマブルコントローラシステムの構成の従来例を示すブロック図である。
【図7】従来のプログラマブルコントローラシステムにおけるRUN中書込みの処理手順を示すフローチャートである。
【符号の説明】
1 プログラマブルコントローラ、2,2’ 周辺装置、3 表示装置、4 入力装置、5 メモリ、5a プログラムメモリ、5b RUN中書込み用ワークエリア、5c バックアップメモリ、5d 照合用ワークエリア、7 周辺I/F部、8,8’ PCI/F部、9,9’ プログラム編集部、9a RUN中書込み先頭ステップ番号、9b RUN中書込み変更ステップ数、9c,9c’ RUN中書込みプログラム、9d RUN中書込み前変更ステップ数、9eRUN中書込み前プログラム、9f プログラムメモリ、10 表示処理部、11 キー入力処理部、12 RUN中書込み処理実行部、13 プログラム照合処理実行部、14 Undo処理実行部、300,300〜300 バックアップ情報テーブル、301 先頭ステップ番号、302 変更ステップ数、303 変更前プログラム、500 複数回Undo機能対応用バックアップ情報テーブル、501 バックアップ情報テーブル数。
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a programmable controller system that writes a control program to a programmable controller (hereinafter, referred to as a PC). In particular, when a wrong program is written to a PC, the PC program is run. A programmable controller system that can return to a program before writing, and can reliably execute a process of restoring a program by comparing a program between a PC and a programmable controller peripheral device (hereinafter, referred to as a PC peripheral device). And a programmable controller.
[0002]
[Prior art]
A description will be given below of writing during RUN in a conventional programmable controller system including a PC and a PC peripheral device.
[0003]
Here, the write during RUN refers to a process of changing the contents of the sequence program executed in the PC without stopping the execution state of the PC from the PC peripheral device. For example, this process is used when the operator wants to change the sequence program without stopping the system. The PC peripheral device refers to a device for changing a sequence program in the PC and monitoring information in the PC.
[0004]
FIG. 6 is a block diagram showing the configuration of a conventional programmable controller system that performs write during RUN. 6, reference numeral 21 denotes a PC, 22 denotes a PC peripheral device, 23 denotes a display device such as a CRT (Cathode Ray Tube) or a liquid crystal display for displaying information of the PC peripheral device 22 to an operator, and 24 denotes an operator. Input devices, such as a keyboard, for inputting instructions from the PC peripheral device 22 are shown.
[0005]
The PC 21 includes a memory 25, a RUN writing process executing unit 26a, a program checking process executing unit 26b for executing a program checking process, and a peripheral I / F unit 27 for exchanging data with the PC peripheral device 22. And The memory 25 includes a program memory 25a for storing a sequence program to be executed, a RUN writing work area 25b for temporarily storing data related to RUN writing during RUN writing, and a program for temporarily checking at program matching. And a collation work area 25c to be stored.
[0006]
The PC peripheral device 22 includes a PCI / F unit 28 for exchanging data with the PC 21, a program editing unit 29, a display processing unit 30 for displaying information on the PC peripheral device 22 on the display device 23, a keyboard, And a key input processing unit 31 for determining an input key input by the input device 24. The program editing unit 29 stores a RUN write start step number 29a, a RUN write change step number 29b, a RUN write program 29c, a RUN write before change number 29d, a RUN write before program 29e, and a program memory 29f. Is done.
[0007]
Next, a write process during RUN in the conventional programmable controller system shown in FIG. 6 will be described with reference to a flowchart of FIG.
[0008]
First, when a process in response to an instruction to execute RUN writing is input from the input device 24, the key input processing unit 31 of the PC peripheral device 22 determines whether the key input by the input device 24 is a RUN writing instruction. Is determined (step S101). If it is determined that the input key is RUN writing (in the case of YES in step S101), the RUN writing start step number 29a of the program editing unit 29, the RUN writing change step number 29b, and the RUN writing are performed. The RUN write command including the program 29c, the number of change steps before writing in RUN 29d, and the program before writing in RUN 29e is transmitted to the PC 21 via the PCI / F unit 28 and the peripheral I / F unit 27 (step S102). ).
[0009]
When receiving the RUN write instruction from the PC peripheral device 22 (step S103), the PC 21 stores the RUN write start step number 29a, the RUN write change step number 29b, and the RUN write program 29c in the received RUN write instruction. The program 25e is stored in the write-in work area 25b of the memory 25, and the program 29e before write in the RUN (that is, the program before change) is stored in the work area 25c for comparison in the memory 25. In addition, a program in the range indicated by the RUN writing start step number 29a and the number of change steps before RUN writing 29d is extracted from the program memory 25a, and the extracted program is stored in the collation work area 25c.
[0010]
As a check process before writing in the RUN, the program matching process execution unit 26b of the PC 21 performs a program matching process based on the program stored in the matching work area 25c of the memory 25 (Step S104). In this program collation processing, two programs stored in the collation work area 25c, that is, before the change of the range indicated by the RUN write start step number 29a and the RUN write before change step number 29d in the program memory 25a. Is compared with the RUN-before-write program 29e transmitted from the PC peripheral device 22 to confirm that the two programs match. As a result, it is confirmed that there is no inconsistency between the PC 21 and the PC peripheral device 22 at least with respect to the program before the change.
[0011]
After executing the program collation processing, the RUN-time writing process execution unit 26a executes the RUN-time writing process based on the RUN-time writing content stored in the RUN-time writing work area 25b (step S105). In the RUN writing process, a program in the range indicated by the RUN writing start step number 29a and the RUN writing change step number 29b in the program memory 25a in which the program actually executed in the PC 21 is stored is stored. A process to replace the RUN writing program 29c is performed. After performing the RUN-time write process, the PC 21 notifies the PC peripheral device 22 of the completion of the RUN-time write process via the peripheral I / F unit 27 and the PCI / F unit 28. Is transmitted to the PC peripheral device 22 (step S106).
[0012]
When the PC peripheral device 22 receives the RUN write completion signal from the PC 21 (step S107), the PC peripheral device 22 executes a display process of the RUN write post-program (step S108). In the display process of the program after writing during RUN, the program in the range indicated by the RUN writing start step number 29a and the RUN writing change step number 29b in the program memory 29f is replaced with the RUN writing program 29c. The display processing unit 30 performs a display process on the new program memory 29f in which the medium writing program 29c is reflected, and displays the contents of the program memory 29f after the RUN writing in the memory on the display device 23.
[0013]
After executing the display processing of the program after writing during RUN, the PC peripheral device 22 performs message display processing in the display processing unit 30 to notify the operator that the writing during RUN has been completed, and displays the RUN on the display device 23. A message indicating that the middle writing has been completed is displayed (step S109), and the process is thereafter terminated.
[0014]
On the other hand, when it is determined in step S101 that the write-in-run instruction is other than the write-in-run instruction (NO in step S101), the processing corresponding to the write-in-run instruction is terminated without any processing. .
[0015]
[Problems to be solved by the invention]
In the conventional PC peripheral device 22 as described above, for example, it is assumed that an operator erroneously performs an operation and writes an incorrect program during RUN. In this case, as a process for operating the PC 21 normally, it is necessary to return to the program before the execution of the RUN writing, that is, the program before the change (hereinafter referred to as Undo). However, when returning to the program before the execution of the RUN-time writing, the program stored (stored) as the original program may be changed to an incorrect program for some reason. In this case, there is a problem that even if the Undo process is actually performed, the program of the PC 21 cannot return to the correct original program.
[0016]
Also, when the Undo function is executed by another illegal PC peripheral device 22 which should not originally execute the Undo function, the conventional programmable controller system cannot prevent the Undo function from being executed. There was also a problem that it was not possible to return to the original program, that is, the program before the change.
[0017]
The present invention has been made in view of the above, and makes it possible to return a program of a PC after writing during RUN to a program before a correct change, and to determine the validity of a PC peripheral device that executes an Undo function. It is an object of the present invention to obtain a programmable controller system and a programmable controller that can realize a reliable Undo function.
[0018]
[Means for Solving the Problems]
In order to achieve the above object, a programmable controller system according to the present invention transmits program data including information for changing a program of the programmable controller and various instructions for executing the program data to the programmable controller. A programmable controller system comprising: a programmable controller peripheral device; and a programmable controller that executes a RUN write process of a program stored in a program memory in accordance with an instruction from the programmable controller peripheral device and the program data to change the program. Wherein the programmable controller relates to a program before change stored in the program memory before the RUN write process. A backup storage unit for storing program data before change, a program for the RUN write process included in the program data received from the programmable controller peripheral device instructing the Undo process, and a program stored in the program memory. A program matching process executing means for checking whether the program after the RUN writing process matches the program, and if the matching result by the program matching process executing means matches, the program after the RUN writing process is copied to the backup And an Undo process executing unit that rewrites the program before the RUN write process using the pre-change program data stored in the storage unit.
[0019]
According to the present invention, the pre-change program data related to the pre-change program stored in the program memory before the RUN write process is stored by the backup storage unit. Further, the program collation processing execution means causes the program for the RUN write processing included in the program data received from the programmable controller peripheral device instructing the Undo processing to be executed, and the program after the RUN write processing stored in the program memory to be executed. A match is made. When the result of the comparison by the Undo processing execution means matches the result of the program comparison processing execution means, the program after the RUN write processing is used to execute the program during the RUN using the pre-change program data stored in the backup storage means. It is rewritten to the program before the writing process.
[0020]
In the programmable controller system according to the next invention, in the above invention, the Undo processing execution means, if the collation result does not match, the program after the RUN write processing before the RUN write processing. It is characterized in that the program is not rewritten.
[0021]
According to the present invention, the Undo processing means does not rewrite the program after the RUN write process to the program before the RUN write process when the collation results do not match.
[0022]
In the programmable controller system according to the next invention, in the above-mentioned invention, the backup storage means stores, in response to a plurality of RUN-time write processing, pre-change program data relating to a program in the program memory before the RUN-time write processing. It is characterized in that a plurality can be stored.
[0023]
According to this invention, the backup storage means can store a plurality of pre-change program data related to the program in the program memory before the RUN write process, for the plurality of RUN write processes.
[0024]
A programmable controller according to the next invention executes a RUN writing process of a program stored in a program memory according to an instruction from a programmable controller peripheral device and program data including information for changing the program, and In the programmable controller that performs the change, the backup storage unit that stores the pre-change program data related to the program before the change stored in the program memory before the RUN write process, and the programmable controller peripheral device that instructs the Undo process It is checked whether the program for the RUN write process included in the received program data matches the program after the RUN write process stored in the program memory. If the verification result by the program verification processing executing means matches the verification result by the program verification processing executing means, the program after the RUN write processing is used by using the pre-change program data stored in the backup storage means. And an Undo process executing means for rewriting the program before the RUN write process.
[0025]
According to the present invention, the pre-change program data related to the pre-change program stored in the program memory before the RUN write process is stored by the backup storage unit. Further, the program collation processing execution means causes the program for the RUN write processing included in the program data received from the programmable controller peripheral device instructing the Undo processing to be executed, and the program after the RUN write processing stored in the program memory to be executed. A match is made. If the result of the comparison by the Undo processing executing means matches the result of the program collation processing executing means, the program after the RUN write processing is executed using the pre-change program data stored in the backup storage means. It is rewritten to the program before the middle writing process.
[0026]
In the programmable controller according to the next invention, in the above invention, the Undo processing execution means, when the collation result does not match, the program after the RUN write processing before the RUN write processing. It is characterized by not rewriting the program.
[0027]
According to the present invention, the Undo processing means does not rewrite the program after the RUN write process to the program before the RUN write process when the collation results do not match.
[0028]
In the programmable controller according to the next invention, in the above invention, the backup storage means stores a plurality of pre-change program data related to a program in the program memory before the RUN write processing for a plurality of RUN write processings. It can be stored.
[0029]
According to this invention, the backup storage means can store a plurality of pre-change program data related to the program in the program memory before the RUN write process, for the plurality of RUN write processes.
[0030]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, preferred embodiments of a programmable controller system and a programmable controller according to the present invention will be described in detail with reference to the accompanying drawings.
[0031]
Embodiment 1 FIG.
FIG. 1 is a block diagram showing a configuration of a programmable controller system according to the present invention. In FIG. 1, 1 is a PC, 2 and 2 'are PC peripheral devices, 3 is a display device such as a CRT or a liquid crystal display for displaying information of the PC peripheral device 2 to an operator, and 4 is a PC peripheral device. Input devices such as a keyboard for inputting an instruction from an operator to the device 2 are shown.
[0032]
The PC 1 includes a memory 5, a peripheral I / F unit 7 for exchanging data between the PC peripheral devices 2 and 2 ′, a RUN write execution unit 12, a program collation execution unit 13, An Undo processing execution unit 14 is provided. The memory 5 of the PC 1 is changed by a program memory 5a for storing a sequence program to be executed, a work area 5b for temporarily storing data relating to the RUN writing during the RUN writing, and a RUN writing. It is configured to include a backup memory 5c for storing a previous so-called pre-change program and a collation work area 5d for temporarily storing data necessary for collation at the time of collation.
[0033]
The PC peripheral device 2 includes a PCI / F unit 8 for exchanging data with the PC 1, a program editing unit 9, a display processing unit 10, and a key input processing unit for determining an input key input by the input device 4. 11 is provided. The program editing unit 9 of the PC peripheral device 2 includes a RUN writing start step number 9a, a RUN writing change step number 9b, a RUN writing program 9c, a RUN writing change number 9d, and a RUN writing change step number 9d. A pre-write program 9e and a program memory 9f are included.
[0034]
The PC peripheral device 2 'has the same configuration as the PC peripheral device 2 described above, 8' is a PCI I / F unit for exchanging data with the PC 1, 9 'is a program editing unit, Reference numeral 9c 'denotes a RUN writing program of the program editing unit 9' different from the RUN writing program 9c in the PC peripheral device 2.
[0035]
FIG. 2 schematically shows the memory configuration of the backup memory 5c held in the memory 5 of the PC 1 in which data is written during RUN. The backup information table 300 shown in FIG. 2 is stored in the backup memory 5c. The backup information table 300 can store the first step number 301 indicating the start of RUN writing, the number of program change steps 302 by RUN writing, and the pre-change program (contents) 303 before RUN writing. It is configured to be able to.
[0036]
Next, a description will be given, with reference to the flowchart of FIG. 3, of a processing procedure of writing during RUN in the programmable controller system having the above-described configuration.
[0037]
First, the PC peripheral device 2 performs, in the key input processing section 11, a process of determining whether or not a key input by the input device 4 by the operator is a write instruction during RUN (step S1). If the key input processing unit 11 determines that the instruction is a RUN write instruction (YES in step S1), the RUN write instruction is transmitted to the PC 1 (step S2). In the process of transmitting the write-in-run instruction, the program editing unit 9 executes the write-in-run start step number 9a, the write-in-run change step number 9b, the write-in-run program 9c, the write-in-run change step number 9d, and the run-in-run change number 9d. A write instruction during RUN including the pre-write program 9e is created and transmitted to the PC 1 via the PCI / F unit 8 and the peripheral I / F unit 7.
[0038]
When receiving the RUN write instruction from the PC peripheral device 2 (step S3), the PC 1 stores the RUN write start step number 9a, the RUN write change step number 9b, and the RUN write program 9c included in the instruction. 5 is stored in the work area 5b for writing during RUN, and the program 9e before writing during RUN is stored in the work area 5d for verification. In addition, the program stored in the program memory 5a is extracted from programs in the range indicated by the RUN write start step number 9a and the number of change steps before RUN write 9d, and the extracted program is stored in the collation work area 5d. To be stored.
[0039]
The program collation processing execution unit 13 of the PC 1 executes the program collation processing on the program currently stored in the program memory 5a based on the program stored in the collation work area 5d as a check processing before the execution of the RUN writing. Perform (Step S4). That is, in this program collation processing, the program in the range indicated by the RUN write start step number 9a extracted from the program memory 5a stored in the collation work area 5d and the number of change steps before RUN write 9d is the same. It is checked whether or not it matches the RUN pre-write program 9e stored in the collation work area 5d and received from the PC peripheral device 2.
[0040]
After the program collation processing, in the backup information table 300 in the backup memory 5c, the first step number 301a in the RUN is written in the first step number 301, the number of change steps in the RUN 9b is written in the number of changed steps 302, and The programs in the program memory 5a in the range indicated by the RUN write start step number 9a and the RUN write change step number 9b are stored, respectively, and the program before the change is backed up (step S5).
[0041]
After the program backup process, the RUN-time write process execution unit 12 executes the RUN-time write process, that is, the process of changing the program, based on the content of the RUN-time write process stored in the RUN-time write work area 5b. (Step S6).
[0042]
After this RUN-time write process, the PC 1 sends a RUN-time write completion signal via the peripheral I / F unit 7 and the PCI / F unit 8 to notify the PC peripheral device 2 that the RUN-time write process has been completed. To the PC peripheral device 2 (step S7).
[0043]
When the PC peripheral device 2 receives the RUN write completion signal from the PC 1 (step S8), the program editing unit 9 sets the RUN write start step number 9a and the RUN write change step number 9b in the program memory 9f. The program and the RUN writing program 9c are exchanged, and a new program memory 9f reflecting the RUN writing program 9c is created. Then, the display processing unit 10 executes the display processing of the changed program, and displays the program memory 9f after the RUN writing on the display device 3 (step S9).
[0044]
After the display processing of the program memory 9f after the writing during the RUN, the display processing unit 10 performs a message display processing to notify the operator that the writing during the RUN is completed, and writes the message during the RUN to the display device 3. Is displayed (step S10), and the RUN-time writing ends.
[0045]
On the other hand, when the key input processing unit 11 determines in step S1 that the instruction is other than the write instruction during RUN (NO in step S1), the processing corresponding to the write instruction during RUN is not performed. , The process is terminated.
[0046]
Next, an Undo processing procedure in the programmable controller system having the above-described configuration will be described with reference to the flowchart of FIG. Here, the Undo function is a process of returning to the program before the RUN write (ie, before the change) after the above-described RUN write (ie, program change) of FIG. 3 is performed at least once. Say.
[0047]
When the operator wants to execute the Undo function, the operator inputs an instruction to execute the Undo function from the input device 4. The key input processing unit 11 of the PC peripheral device 2 performs a process of determining whether or not the key input by the input device 4 is an Undo execution instruction (step S21). Here, when the key input processing unit 11 determines that the input key is an instruction other than the Undo execution instruction (NO in step S21), the processing corresponding to the Undo function execution instruction is performed. Instead, the process ends. On the other hand, if the key input processing unit 11 determines that the input key is an Undo execution instruction (YES in step S21), the program editing unit 9 transmits a program collation instruction to the PC 1. (Step S22). That is, the program editing unit 9 transmits a program collation instruction including the RUN writing program 9c to the PC 1 via the PCI / F unit 8 and the peripheral I / F unit 7.
[0048]
When receiving the program collation instruction from the PC peripheral device 2 (Step S23), the PC 1 stores the RUN writing program 9c included in the received program collation instruction in the collation work area 5d. At this time, the program in the program memory 5a within the range indicated by the head step number 301 and the number of change steps 302 stored in the backup information table 300 of the backup memory 5c is also stored in the collation work area 5d.
[0049]
Thereafter, the program matching process execution unit 13 performs a program matching process to determine whether or not the two programs stored in the matching work area 5d match (step S24). The purpose of this program collation processing is to confirm whether or not the PC peripheral devices 2 and 2 ′ are legitimate PC peripheral devices 2 and 2 ′ for issuing an Undo instruction to the PC1.
[0050]
For example, when an operation of transmitting an Undo instruction from another PC peripheral device 2 ′ different from the PC peripheral device 2 to the PC 1 is performed after the RUN write is performed from the PC peripheral device 2 to the PC 1. Then, the RUN writing program 9c 'of the PC peripheral device 2' is stored in the collation work area 5d of the PC 1 via the PCI / F unit 8 'and the peripheral I / F unit 7. At the same time, from the data stored in the backup information table 300 of the backup memory 5c, the program in the program memory 5a within the range indicated by the first step number 301 and the number of changed steps 302 on the PC1, that is, the RUN write once is executed. The changed program is extracted and stored in the collation work area 5d. Then, collation as to whether or not these two programs match is performed by the program collation processing execution unit 13.
[0051]
In this case, since the program in the program memory 5a and the RUN writing program 9c 'from the PC peripheral device 2' are different programs, if the Undo process is executed as it is, the program before the change cannot be returned. It may cause malfunction. The reason is that the PC peripheral device 2 that can return the program of the PC 1 to the correct original program before the change by the Undo process previously performed the RUN-time write to the PC 1 and wrote the program that the PC 1 is currently running. The PC peripheral device 2 (or the PC peripheral device storing the same program as the PC peripheral device 2), but having a program different from the program currently running by the PC 1 as the RUN writing program 9c ′ is: This is because there is no guarantee that the original original program before the change can be restored even if the Undo process is performed. For this reason, such a malfunction can be prevented by executing the program collation processing before the Undo processing as in the first embodiment.
[0052]
After the program matching process, the PC 1 performs a process of transmitting the result of the program matching process to the PC peripheral device 2 via the peripheral I / F unit 7 and the PCI I / F unit 8 (Step S25).
[0053]
Upon receiving the result of the program collation processing from the PC 1 (step S26), the program editing unit 9 of the PC peripheral device 2 performs a collation result check processing for determining whether the received collation result is normal (step S27). ). When it is determined in the comparison result check process that the comparison result is not the same and the response is abnormal (NO in step S27), the display processing unit 10 performs a message display process and displays an error message on the display device 3. Is displayed (step S35), and the processing corresponding to the instruction to execute the Undo function ends. On the other hand, when the collation results match in the collation result check processing and it is determined that the response is normal (YES in step S27), the program editing unit 9 transmits an Undo instruction to the PC 1 (step S28). .
[0054]
When receiving the Undo instruction from the PC peripheral device 2 (Step S29), the PC 1 performs Undo processing for returning to the original program (Step S30). That is, the Undo processing execution unit 14 of the PC 1 deletes the program in the program memory 5a in the range indicated by the first step number 301 and the number of changed steps 302 which is the Undo range stored in the backup information table 300, and deletes the program. The Undo process is executed by replacing the changed part with the program 303 before the change.
[0055]
Thereafter, the PC 1 and the Undo program 303 are displayed on the PC peripheral device 2 to display the pre-change program 303 replaced by the Undo process on the PC peripheral device 2 and to notify the PC peripheral device 2 of the completion of the Undo process. The processing completion signal is transmitted to the PC peripheral device 2 via the peripheral I / F unit 7 and the PCI / F unit 8 (step S31).
[0056]
When receiving the pre-change program 303 and the Undo processing completion signal from the PC 1 (Step S32), the PC peripheral device 2 executes the program display processing after the Undo processing (Step S33). In this program display process, the program editing unit 9 replaces the program in the range indicated by the RUN write start step number 9a and the RUN write before change step number 9d in the program memory 9f with the program 303 before change. The display process of the program before the change is performed by 10, and the program memory 9 f after the Undo is displayed by the display device 3.
[0057]
Thereafter, in order to notify the operator that the Undo process has been completed, the PC peripheral device 2 performs a process of displaying the Undo process completion message by the display processing unit 10, and the display device 3 informs the display device 3 that the Undo process has been completed. A message is displayed (step S34). Thereafter, the processing corresponding to the instruction to execute the Undo function ends.
[0058]
According to the first embodiment, when executing the Undo process, that is, when returning to the original program before the change, there is an effect that the program can be easily returned to the original correct program without errors. Also, when executing the Undo process, the program data after the RUN write process received from the PC peripheral device is collated with the program data after the RUN write process stored in the PC. This has the effect of preventing rewriting of the program in the program controller by another illegal programmable controller peripheral device which should not execute the function into a program different from the original program before the change.
[0059]
Embodiment 2 FIG.
FIG. 5 schematically shows the memory configuration of the backup memory 5c held in the memory 5 of the PC 1 in which writing during RUN is performed. The memory configuration of the backup memory 5c is different from the memory configuration of the backup memory 5c of the first embodiment shown in FIG. 2 in that the configuration is such that the Undo process can be executed a plurality of times. . That is, the backup information table 500 for multiple times of the Undo function includes a backup information table number 501 and a plurality of backup information tables 300. 1 ~ 300 n (N is a natural number of 2 or more). The number 501 of backup information tables includes the backup information table 300 stored in the backup information table 500 corresponding to the Undo function a plurality of times. 1 ~ 300 n Is stored.
[0060]
By configuring the memory configuration in the backup memory 5c to be able to hold a plurality of backup information tables 300 as shown in FIG. 5, the Undo function can be performed a plurality of times. For example, if n = 10, the Undo function can be executed up to ten times before.
[0061]
Here, a method of storing backup information in the backup information table for multiple times Undo function 500 will be described. Each time the RUN-time writing is performed, the RUN-time writing process execution unit 12 adds the backup information table 300 corresponding to the RUN-time writing to the final position in the Undo function-compatible backup information table 500 a plurality of times, and performs the backup. As the information table number 501, 1 is added to the current number. On the other hand, when the Undo function is performed, the Undo process execution unit 14 acquires the number 501 of backup information tables from the Undo function corresponding backup information table 500 a plurality of times, and, based on the numerical value, the backup information table 300 stored in the final position. n And the backup information table 300 n , The Undo function described in FIG. 4 of the first embodiment is implemented. When the Undo function is normally performed, the Undo process execution unit 14 performs the backup information table 300 registered at the final position of the Undo function corresponding backup information table 500 a plurality of times. n Is deleted, and 1 is subtracted from the current number of the backup information table number 501.
[0062]
In addition, in the case where the RUN-time write process is performed while the RUN-time write is continued and the Undo function is not performed and the backup information table number 501 is completely satisfied, the RUN-time write process is executed. The unit 12 deletes the backup information table 300 stored at the earliest position, that is, the oldest position, subtracts 1 from the current number for the number 501 of the backup information tables, and performs the backup of the next position to the deleted earliest position. Information table 300 2 To the next position, and the next empty position in the backup information table 300 3 , And the backup information table 300 n The last position of the Undo function corresponding backup information table 500 is emptied a plurality of times. Then, the RUN-time write processing execution unit 12 registers the latest RUN-time write content in the final position.
[0063]
With the above processing, it is possible to implement the Undo functions for the number of backup information tables held in the Undo function corresponding backup information table 500 a plurality of times.
[0064]
According to the second embodiment, since a plurality of program data related to the program in the program memory can be stored before the RUN write process, a plurality of program data stored in the backup memory can be stored for the plurality of RUN write processes. The effect is that the Undo processing can be performed retroactively in the past by the number of data.
[0065]
【The invention's effect】
As described above, according to the present invention, the programmable controller includes: a backup storage unit that stores pre-change program data related to a program before change stored in the program memory before the RUN write process; A program collation processing execution means for collating whether the program for the RUN writing process included in the program data received from the instructed programmable controller peripheral device matches the program after the RUN writing process stored in the program memory; If the results of the verification by the program verification processing executing means match, the program after the RUN writing processing is rewritten to the program before the RUN writing processing using the pre-change program data stored in the backup storage means. Un o, so that when executing the Undo process, that is, when returning to the original program before the change, the program can be easily returned to the original correct program without errors. Has an effect.
[0066]
According to the next invention, the Undo processing execution means is configured not to rewrite the program after the RUN write processing to the program before the RUN write processing when the collation results do not match. , When executing the Undo process, to prevent the program in the program controller from being rewritten by another illegal programmable controller peripheral device which should not execute the Undo function to a program different from the original program before the change. It has the effect of being able to.
[0067]
According to the next invention, the backup storage means is configured to be able to store a plurality of pre-change program data relating to the program in the program memory before the RUN write processing, for the plurality of RUN write processing. The effect is that the Undo processing can be performed retrospectively in the past by the number of program data stored in the storage unit for use.
[0068]
According to the next invention, the backup storage means for storing the pre-change program data relating to the program before the change stored in the program memory before the RUN write processing, and the program data received from the programmable controller peripheral device instructing the Undo processing. Program collation processing execution means for collating whether the program for the RUN write processing included in the program data matches the program stored in the program memory after the RUN write processing, and a collation result by the program collation processing execution means If the values match, an Undo process executing means for rewriting the program after the RUN write process to a program before the RUN write process using the pre-change program data stored in the backup storage means. U During execution of the do processing with, i.e. when returning to the original pre-change program, no error in the program, the effect that it is easily revert back to the original correct program.
[0069]
According to the next invention, the Undo processing execution means is configured not to rewrite the program after the RUN write processing to the program before the RUN write processing when the collation results do not match. , When executing the Undo process, to prevent the program in the program controller from being rewritten by another illegal programmable controller peripheral device which should not execute the Undo function to a program different from the original program before the change. It has the effect of being able to.
[0070]
According to the next invention, the backup storage means is configured to be able to store a plurality of pre-change program data related to the program in the program memory before the RUN write processing for a plurality of RUN write processing. The effect is that the Undo processing can be performed retrospectively in the past by the number of program data stored in the storage unit for use.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of a programmable controller system of the present invention.
FIG. 2 is a diagram schematically showing a configuration of a backup memory held in a memory of a programmable controller.
FIG. 3 is a flowchart illustrating a processing procedure of writing during RUN in the programmable controller system;
FIG. 4 is a flowchart showing an Undo processing procedure in the programmable controller system.
FIG. 5 is a diagram schematically showing a configuration of a backup memory held in a memory of a programmable controller.
FIG. 6 is a block diagram showing a conventional example of a configuration of a programmable controller system.
FIG. 7 is a flowchart showing a processing procedure of writing during RUN in a conventional programmable controller system.
[Explanation of symbols]
1 Programmable controller, 2, 2 'peripheral device, 3 display device, 4 input device, 5 memory, 5a program memory, 5b work area for writing during RUN, 5c backup memory, 5d collation work area, 7 peripheral I / F section , 8, 8 'PCI / F section, 9, 9' program editing section, 9a RUN write start step number, 9b RUN write change step number, 9c, 9c 'RUN write program, 9d RUN write change step Number, 9e RUN pre-program, 9f program memory, 10 display processing unit, 11 key input processing unit, 12 RUN write processing execution unit, 13 program collation processing execution unit, 14 Undo processing execution unit, 300, 300 1 ~ 300 n Backup information table, 301 First step number, 302 Number of steps changed, 303 Program before change, 500 Backup information table for multiple times Undo function, 501 Number of backup information tables.

Claims (6)

プログラマブルコントローラのプログラムを変更するための情報を含むプログラムデータとこのプログラムデータを実行させるための各種指示を前記プログラマブルコントローラに対して送信するプログラマブルコントローラ周辺装置と、前記プログラマブルコントローラ周辺装置からの指示と前記プログラムデータにしたがってプログラムメモリに格納されるプログラムのRUN中書込み処理を実行して前記プログラムの変更を行うプログラマブルコントローラとを備えるプログラマブルコントローラシステムにおいて、
前記プログラマブルコントローラは、
前記RUN中書込み処理前に前記プログラムメモリに格納されていた変更前のプログラムに関する変更前プログラムデータを格納するバックアップ用格納手段と、
Undo処理を指示したプログラマブルコントローラ周辺装置から受信した前記プログラムデータに含まれる前記RUN中書込み処理についてのプログラムと、前記プログラムメモリに格納される前記RUN中書込み処理後のプログラムとが一致するかを照合するプログラム照合処理実行手段と、
前記プログラム照合処理実行手段による照合結果が一致する場合には、前記RUN中書込み処理後のプログラムを、前記バックアップ用格納手段に格納されている変更前プログラムデータを用いて前記RUN中書込み処理前のプログラムに書換えるUndo処理実行手段と、
を備えることを特徴とするプログラマブルコントローラシステム。
A programmable controller peripheral device for transmitting program data including information for changing a program of the programmable controller and various instructions for executing the program data to the programmable controller, an instruction from the programmable controller peripheral device, A programmable controller that performs a RUN write process of a program stored in a program memory in accordance with the program data to change the program,
The programmable controller,
Backup storage means for storing pre-change program data relating to the pre-change program stored in the program memory before the RUN write process;
Check whether the program for the RUN write process included in the program data received from the programmable controller peripheral device instructing the Undo process matches the program after the RUN write process stored in the program memory. Means for executing a program matching process,
In the case where the verification results by the program verification processing executing means match, the program after the RUN writing processing is read using the pre-change program data stored in the backup storage means. Undo processing execution means for rewriting the program;
A programmable controller system comprising:
前記Undo処理実行手段は、前記照合結果が一致しない場合には、前記RUN中書込み処理後のプログラムに対して、前記RUN中書込み処理前のプログラムへの書換えを行わないことを特徴とする請求項1に記載のプログラマブルコントローラシステム。The undo processing execution means does not rewrite the program after the RUN writing process to the program before the RUN writing process when the collation results do not match. 2. The programmable controller system according to 1. 前記バックアップ用格納手段は、複数のRUN中書込み処理に対して、該RUN中書込み処理前の前記プログラムメモリのプログラムに関する変更前プログラムデータを複数格納できることを特徴とする請求項1または2に記載のプログラマブルコントローラシステム。The method according to claim 1, wherein the backup storage unit is capable of storing a plurality of pre-change program data related to a program in the program memory before the RUN write processing, for a plurality of RUN write processings. 4. Programmable controller system. プログラマブルコントローラ周辺装置からの指示とプログラムを変更するための情報を含むプログラムデータにしたがって、プログラムメモリに格納されるプログラムのRUN中書込み処理を実行して前記プログラムの変更を行うプログラマブルコントローラにおいて、
前記RUN中書込み処理前に前記プログラムメモリに格納されていた変更前のプログラムに関する変更前プログラムデータを格納するバックアップ用格納手段と、
Undo処理を指示したプログラマブルコントローラ周辺装置から受信した前記プログラムデータに含まれる前記RUN中書込み処理についてのプログラムと、前記プログラムメモリに格納される前記RUN中書込み処理後のプログラムとが一致するかを照合するプログラム照合処理実行手段と、
前記プログラム照合処理実行手段による照合結果が一致する場合には、前記RUN中書込み処理後のプログラムを、前記バックアップ用格納手段に格納されている変更前プログラムデータを用いて前記RUN中書込み処理前のプログラムに書換えるUndo処理実行手段と、
を備えることを特徴とするプログラマブルコントローラ。
In accordance with an instruction from the programmable controller peripheral device and a program data including information for changing the program, a program stored in a program memory is changed during the RUN by executing a RUN write process of the program.
Backup storage means for storing pre-change program data relating to the pre-change program stored in the program memory before the RUN write process;
Check whether the program for the RUN write process included in the program data received from the programmable controller peripheral device instructing the Undo process matches the program after the RUN write process stored in the program memory. Means for executing a program matching process,
In the case where the verification results by the program verification processing executing means match, the program after the RUN writing processing is read using the pre-change program data stored in the backup storage means. Undo processing execution means for rewriting the program;
A programmable controller comprising:
前記Undo処理実行手段は、前記照合結果が一致しない場合には、前記RUN中書込み処理後のプログラムに対して、前記RUN中書込み処理前のプログラムへの書換えを行わないことを特徴とする請求項4に記載のプログラマブルコントローラ。The undo processing execution means does not rewrite the program after the RUN writing process to the program before the RUN writing process when the collation results do not match. 5. The programmable controller according to 4. 前記バックアップ用格納手段は、複数のRUN中書込み処理に対して、該RUN中書込み処理前の前記プログラムメモリのプログラムに関する変更前プログラムデータを複数格納できることを特徴とする請求項4または5に記載のプログラマブルコントローラ。6. The backup storage unit according to claim 4, wherein a plurality of pre-change program data relating to a program in the program memory before the RUN write process is stored for a plurality of RUN write processes. 7. Programmable controller.
JP2002173648A 2002-06-14 2002-06-14 Programmable controller system and programmable controller Pending JP2004021446A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002173648A JP2004021446A (en) 2002-06-14 2002-06-14 Programmable controller system and programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002173648A JP2004021446A (en) 2002-06-14 2002-06-14 Programmable controller system and programmable controller

Publications (1)

Publication Number Publication Date
JP2004021446A true JP2004021446A (en) 2004-01-22

Family

ID=31172817

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002173648A Pending JP2004021446A (en) 2002-06-14 2002-06-14 Programmable controller system and programmable controller

Country Status (1)

Country Link
JP (1) JP2004021446A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009015751A (en) * 2007-07-09 2009-01-22 Koyo Electronics Ind Co Ltd Method for limiting writing to ladder program in run time
JP2012243136A (en) * 2011-05-20 2012-12-10 Hitachi Industrial Equipment Systems Co Ltd Ladder programming tool
JP5653568B1 (en) * 2013-12-03 2015-01-14 三菱電機株式会社 Network system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009015751A (en) * 2007-07-09 2009-01-22 Koyo Electronics Ind Co Ltd Method for limiting writing to ladder program in run time
JP2012243136A (en) * 2011-05-20 2012-12-10 Hitachi Industrial Equipment Systems Co Ltd Ladder programming tool
JP5653568B1 (en) * 2013-12-03 2015-01-14 三菱電機株式会社 Network system

Similar Documents

Publication Publication Date Title
US20050268195A1 (en) Apparatus and method for improving emulation speed of high-level languages in on-chip emulation systems
JP2002132518A (en) Virtual computer system and exchanging method of input- output apparatus among virtual computers
JP2003316595A (en) Installation method, file updating method, its program and computer system
US7478207B2 (en) Control system with a write filter for protection of data
US6483746B2 (en) Electronic apparatus
US9129275B2 (en) POS device
US5657301A (en) Automatic changer system capable of rewriting a control program for controlling the system
JP2004021446A (en) Programmable controller system and programmable controller
JP4229896B2 (en) Rewritable nonvolatile memory, electronic device, rewriteable nonvolatile memory rewrite method, and rewrite program
JP2007011929A (en) Method of updating data of nonvolatile memory, controller, and data updating program
JP2000357216A (en) Ic card
JPH0784894A (en) Method for writing nonvolatile memory
JP2669143B2 (en) Programmable controller programming device
JPH10177674A (en) Vending machine
JP3314719B2 (en) Flash EEPROM and its test method
JPH09330216A (en) Bios rewriting system
JP2713583B2 (en) Electronics
CN117785554A (en) Device power-down data retention method, system, device and readable storage medium
JP3309792B2 (en) Stack pointer trace device, stack pointer trace method, and recording medium
CN114564221A (en) Client bootstrap program-free single chip microcomputer program upgrading method and system
JPS61220021A (en) Set recognition method for floppy disk
JPH0314144A (en) Rerun processing system for user program
JPH0436833A (en) Program correction system using patch
JP3059505U (en) A repair system that repairs recorded programs
JPH0612251A (en) Program starting device

Legal Events

Date Code Title Description
A621 Written request for application examination

Effective date: 20050118

Free format text: JAPANESE INTERMEDIATE CODE: A621

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070119

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070213

A521 Written amendment

Effective date: 20070413

Free format text: JAPANESE INTERMEDIATE CODE: A523

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070605

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20071009